1 2015-08-06 Clem Dickey <clemd@acm.org>
4 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
8 * complaints.c (enum complaint_series): Add newlines and remove
10 (struct complaints) <series>: Change type to enum
11 complaint_series and remove out of date comment.
12 (symfile_complaint_hook): Use equivalent enum value
13 ISOLATED_MESSAGE instead of 0.
15 2015-08-06 Pedro Alves <palves@redhat.com>
17 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
20 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
22 * common/agent.c (symbol_list) <required>: Remove.
24 2015-08-06 Pedro Alves <palves@redhat.com>
26 * target/waitstatus.h (enum target_stop_reason)
27 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
29 2015-08-05 Pedro Alves <palves@redhat.com>
30 Joel Brobecker <brobecker@adacore.com>
32 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
33 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
34 case where BS->STOP is not set.
36 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
38 * nat/gdb_thread_db.h: Add copyright header.
39 Protect against multiple inclusion.
41 2015-08-05 Yao Qi <yao.qi@linaro.org>
43 * aarch64-linux-nat.c (get_thread_id): Remove.
44 (debug_reg_change_callback): Call ptid_get_lwp instead of
46 (fetch_gregs_from_thread): Likewise.
47 (store_gregs_to_thread): Likewise.
48 (fetch_fpregs_from_thread): Likewise.
49 (store_fpregs_to_thread): Likewise.
50 (aarch64_linux_get_debug_reg_capacity): Likewise.
51 * arm-linux-nat.c (get_thread_id): Remove.
52 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
53 * xtensa-linux-nat.c (get_thread_id): Remove.
54 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
55 * arm-linux-nat.c (get_thread_id): Remove.
56 (GET_THREAD_ID): Remove.
57 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
58 (store_fpregs, fetch_regs, store_regs): Likewise.
59 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
60 (fetch_vfp_regs, store_vfp_regs): Likewise.
61 (arm_linux_read_description): Likewise.
62 (arm_linux_get_hwbp_cap): Likewise.
63 * xtensa-linux-nat.c (get_thread_id): Remove.
64 (GET_THREAD_ID): Remove.
65 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
68 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
70 * python/py-linetable.c: Fix case of Linetable to LineTable
71 in docstrings and code comments.
72 * python/py-symtab.c: Same.
74 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
76 * infcmd.c (signal_command): Call do_cleanups for args_chain.
78 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
81 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
84 2015-08-04 Pedro Alves <palves@redhat.com>
86 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
87 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
88 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
89 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
90 (td_thr_validate_ftype, td_thr_get_info_ftype)
91 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
92 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
94 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
95 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
96 local macros and use them instead of verbose_dlsym and dlsym
99 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
101 * nios2-tdep.h: Include opcode/nios2.h here.
102 (NIOS2_CDX_OPCODE_SIZE): New.
103 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
104 * nios2-tdep.c: Don't include opcode/nios2.h here.
105 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
107 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
108 (nios2_match_addi, nios2_match_orhi): Likewise.
109 (nios2_match_stw, nios2_match_ldw): Likewise.
110 (nios2_match_rdctl): Likewise.
111 (nios2_match_stwm, nios2_match_ldwm): New.
112 (nios2_match_branch): Add cases for R2 encodings.
113 (nios2_match_jmpi, nios2_match_calli): Likewise.
114 (nios2_match_jmpr, nios2_match_callr): Likewise.
115 (nios2_match_break, nios2_match_trap): Likewise.
116 (nios2_in_epilogue_p): Add R2 support.
117 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
119 (nios2_breakpoint_from_pc): Handle R2 instructions.
120 (nios2_get_next_pc): Likewise. Adjust call to
121 tdep->syscall_next_pc.
122 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
123 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
124 instruction field macros instead of literal hex values.
125 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
126 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
127 Use size field from OP instead of assuming all instructions
129 (nios2_linux_init_abi): Register appropriate unwinder for mach.
131 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
133 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
134 variable warning with some compilers.
136 2015-08-03 Yao Qi <yao.qi@linaro.org>
138 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
139 in comment. Replace "rw" with "type".
140 (arm_linux_remove_watchpoint): Change type of "rw" to
141 "enum target_hw_bp_type".
143 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
145 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
147 * ft32-tdep.c (ft32_skip_prologue): Likewise.
148 * moxie-tdep.c (moxie_skip_prologue): Likewise.
149 * mt-tdep.c (mt_skip_prologue): Likewise.
150 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
152 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
154 * ada-exp.y (write_object_renaming): Replace struct
155 ada_symbol_info with struct block_symbol. Update field
156 references accordingly.
157 (block_lookup, select_possible_type_sym): Likewise.
158 (find_primitive_type): Likewise. Also update call to
159 ada_lookup_symbol to extract the symbol itself.
160 (write_var_or_type, write_name_assoc): Likewise.
161 * ada-lang.h (struct ada_symbol_info): Remove.
162 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
164 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
165 (ada_lookup_symbol): Return struct block_symbol instead of a
167 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
168 with struct block_symbol.
169 (resolve_subexp, ada_resolve_function, sort_choices,
170 user_select_syms, is_nonfunction, add_defn_to_vec,
171 num_defns_collected, defns_collected,
172 symbols_are_identical_enums, remove_extra_symbols,
173 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
174 ada_lookup_symbol_list, ada_iterate_over_symbols,
175 ada_lookup_encoded_symbol, get_var_value): Likewise.
176 (ada_lookup_symbol): Return a block_symbol instead of a mere
177 symbol. Replace struct ada_symbol_info with struct
179 (ada_lookup_symbol_nonlocal): Likewise.
180 (standard_lookup): Make block passing explicit through
181 lookup_symbol_in_language.
182 * ada-tasks.c (get_tcb_types_info): Update the calls to
183 lookup_symbol_in_language to extract the mere symbol out of the
185 (ada_tasks_inferior_data_sniffer): Likewise.
186 * ax-gdb.c (gen_static_field): Likewise for the call to
188 (gen_maybe_namespace_elt): Deal with struct block_symbol from
190 (gen_expr): Likewise.
191 * c-exp.y: Likewise. Remove uses of block_found.
192 (lex_one_token, classify_inner_name, c_print_token): Likewise.
193 (classify_name): Likewise. Rename the "sym" local variable to
195 * c-valprint.c (print_unpacked_pointer): Likewise.
196 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
197 "sym" parameter from struct symbol * to struct block_symbol.
198 Use it to remove uses of block_found. Deal with struct
199 block_symbol from lookup functions.
200 (gcc_convert_symbol): Likewise. Update the call to
202 * compile/compile-object-load.c (compile_object_load): Deal with
203 struct block_symbol from lookup functions.
204 * cp-namespace.c (cp_lookup_nested_symbol_1,
205 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
206 cp_search_static_and_baseclasses,
207 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
208 cp_lookup_symbol_imports_or_template,
209 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
210 lookup_namespace_scope, cp_lookup_nonlocal,
211 find_symbol_in_baseclass): Return struct block_symbol instead of
212 mere symbols and deal with struct block_symbol from lookup
214 * cp-support.c (inspect_type, replace_typedefs,
215 cp_lookup_rtti_type): Deal with struct block_symbol from
217 * cp-support.h (cp_lookup_symbol_nonlocal,
218 cp_lookup_symbol_from_namespace,
219 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
220 Return struct block_symbol instead of mere symbols.
221 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
223 Deal with struct block_symbol from lookup functions. Remove
225 * eval.c (evaluate_subexp_standard): Update call to
226 cp_lookup_symbol_namespace.
227 * f-exp.y: Deal with struct block_symbol from lookup functions.
228 Remove uses of block_found.
230 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
231 lookup_enum, lookup_template_type, check_typedef): Deal with
232 struct block_symbol from lookup functions.
233 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
234 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
235 (gdbscm_lookup_global_symbol): Likewise.
236 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
237 * go-exp.y: Likewise. Remove uses of block_found.
238 (package_name_p, classify_packaged_name, classify_name):
240 * infrun.c (insert_exception_resume_breakpoint): Likewise.
241 * jv-exp.y (push_variable): Likewise.
242 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
243 * language.c (language_bool_type): Likewise.
244 * language.h (struct language_defn): Update
245 la_lookup_symbol_nonlocal to return a struct block_symbol rather
247 * linespec.c (find_label_symbols): Deal with struct block_symbol
248 from lookup functions.
249 * m2-exp.y: Likewise. Remove uses of block_found.
251 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
252 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
253 * p-exp.y: Likewise. Remove uses of block_found.
255 * p-valprint.c (pascal_val_print): Likewise.
256 * parse.c (write_dollar_variable): Likewise. Remove uses of
258 * parser-defs.h (struct symtoken): Turn the SYM field into a
260 * printcmd.c (address_info): Deal with struct block_symbol from
262 * python/py-frame.c (frapy_read_var): Likewise.
263 * python/py-symbol.c (gdbpy_lookup_symbol,
264 gdbpy_lookup_global_symbol): Likewise.
265 * skip.c (skip_function_command): Likewise.
266 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
267 block_symbol instead of a mere symbol.
268 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
269 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
270 * solib.c (solib_global_lookup): Likewise.
271 * solist.h (solib_global_lookup): Likewise.
272 (struct target_so_ops): Update lookup_lib_global_symbol to
273 return a struct block_symbol rather than a mere symbol.
274 * source.c (select_source_symtab): Deal with struct block_symbol
275 from lookup functions.
276 * stack.c (print_frame_args, iterate_over_block_arg_vars):
278 * symfile.c (set_initial_language): Likewise.
279 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
281 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
282 (struct symbol_cache_slot): Turn the FOUND field into a struct
284 (block_found): Remove.
285 (eq_symbol_entry): Update to deal with struct block_symbol in
287 (symbol_cache_lookup): Return a struct block_symbol rather than
289 (symbol_cache_mark_found): Add a BLOCK parameter to fill
290 appropriately the cache slots. Update callers.
291 (symbol_cache_dump): Update cache slots handling to the type
293 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
294 lookup_symbol_aux, lookup_local_symbol,
295 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
296 lookup_symbol_in_objfile_symtabs,
297 lookup_symbol_in_objfile_from_linkage_name,
298 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
299 lookup_symbol_in_static_block, lookup_static_symbol,
300 lookup_global_symbol):
301 Return a struct block_symbol rather than a mere symbol. Deal
302 with struct block_symbol from other lookup functions. Remove
304 (lookup_symbol_in_block): Remove uses of block_found.
305 (struct global_sym_lookup_data): Turn the RESULT field into a
307 (lookup_symbol_global_iterator_cb): Update references to the
309 (search_symbols): Deal with struct block_symbol from lookup
311 * symtab.h (struct block_symbol): New structure.
312 (block_found): Remove.
313 (lookup_symbol_in_language, lookup_symbol,
314 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
315 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
316 lookup_global_symbol_from_objfile): Return a struct block_symbol
317 rather than just a mere symbol. Update comments to remove
318 mentions of block_found.
319 * valops.c (find_function_in_inferior,
320 value_struct_elt_for_reference, value_maybe_namespace_elt,
321 value_of_this): Deal with struct block_symbol from lookup
323 * value.c (value_static_field, value_fn_field): Likewise.
325 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
327 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
330 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
331 Pedro Alves <palves@redhat.com>
333 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
334 type or value instead of integer.
335 (aarch64_linux_insert_watchpoint): Likewise.
336 (aarch64_linux_remove_watchpoint): Likewise.
337 * ada-lang.c (ada_op_print_tab): Likewise.
338 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
339 (amd64_linux_syscall_record_common): Likewise.
340 * arch-utils.c (target_byte_order_user): Likewise.
341 (default_byte_order): Likewise.
342 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
343 (arm_linux_get_hwbp_type): Likewise.
344 (arm_linux_hw_watchpoint_initialize): Likewise.
345 (arm_linux_insert_watchpoint): Likewise.
346 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
347 (arm_linux_syscall_record): Likewise.
348 * breakpoint.c (update_watchpoint): Likewise.
349 (breakpoint_here_p): Likewise.
350 (bpstat_print): Likewise.
351 (enable_breakpoint_disp): Likewise.
352 * c-lang.c (c_op_print_tab): Likewise.
353 * cli/cli-decode.c (add_info_alias): Likewise.
354 * d-lang.c (d_op_print_tab): Likewise.
355 * eval.c (evaluate_subexp_standard): Likewise.
356 * f-exp.y (dot_ops): Likewise.
357 (f77_keywords): Likewise.
358 * f-lang.c (f_op_print_tab): Likewise.
359 * go-lang.c (go_op_print_tab): Likewise.
360 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
361 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
362 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
363 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
364 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
365 (struct scm_from_stringn_data): Likewise.
366 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
367 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
368 (ia64_linux_remove_watchpoint): Likewise.
369 (ia64_linux_can_use_hw_breakpoint): Likewise.
370 * infrun.c (print_stop_event): Likewise.
371 * jv-lang.c (java_op_print_tab): Likewise.
372 * linux-nat.c (linux_proc_xfer_partial): Likewise.
373 * linux-nat.h (struct lwp_info): Likewise.
374 * linux-thread-db.c (enable_thread_event): Likewise.
375 * m2-lang.c (m2_op_print_tab): Likewise.
376 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
377 (mi_cmd_stack_list_variables): Likewise.
378 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
379 * mi/mi-out.c (mi_table_begin): Likewise.
380 (mi_table_header): Likewise.
381 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
382 (mips_linux_insert_watchpoint): Likewise.
383 (mips_linux_remove_watchpoint): Likewise.
384 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
385 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
386 (mips_linux_watch_type_to_irw): Likewise.
387 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
388 (procfs_insert_hw_watchpoint): Likewise.
389 (procfs_remove_hw_watchpoint): Likewise.
390 (procfs_hw_watchpoint): Likewise.
391 (procfs_can_use_hw_breakpoint): Likewise.
392 (procfs_remove_hw_watchpoint): Likewise.
393 (procfs_insert_hw_watchpoint): Likewise.
394 * p-lang.c (pascal_op_print_tab): Likewise.
395 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
396 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
397 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
398 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
399 (procfs_insert_watchpoint): Likewise.
400 (procfs_remove_watchpoint): Likewise.
401 * psymtab.c (recursively_search_psymtabs): Likewise.
402 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
403 (m32r_insert_watchpoint): Likewise.
404 * remote-mips.c (mips_can_use_watchpoint): Likewise.
405 (mips_insert_watchpoint): Likewise.
406 (mips_remove_watchpoint): Likewise.
407 * remote.c (watchpoint_to_Z_packet): Likewise.
408 (remote_insert_watchpoint): Likewise.
409 (remote_remove_watchpoint): Likewise.
410 (remote_check_watch_resources): Likewise.
411 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
412 (s390_remove_watchpoint): Likewise.
413 (s390_can_use_hw_breakpoint): Likewise.
414 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
415 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
416 * target.h (struct target_ops): Likewise.
417 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
418 * ui-out.c (struct ui_out_hdr): Likewise.
419 (append_header_to_list): Likewise.
420 (get_next_header): Likewise.
421 (verify_field): Likewise.
422 (ui_out_begin): Likewise.
423 (ui_out_field_int): Likewise.
424 (ui_out_field_fmt_int): Likewise.
425 (ui_out_field_skip): Likewise.
426 (ui_out_field_string): Likewise.
427 (ui_out_field_fmt): Likewise.
428 * varobj.c (new_variable): Likewise.
429 * x86-nat.c (x86_insert_watchpoint): Likewise.
430 (x86_remove_watchpoint): Likewise.
431 (x86_can_use_hw_breakpoint): Likewise.
432 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
433 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
434 previously anonymous enumeration type..
435 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
437 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
438 (target_debug_print_enum_bptype): New.
439 * target-delegates.c: Regenerate.
441 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
443 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
444 already says and disallow non-stack memory writes in the prologue.
446 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
448 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
449 reflect how current GCC emits stack overflow checks. Match
450 both trap and break instructions for backward compatbility.
451 Disallow other trap and break instructions in the prologue.
453 2015-07-30 Pedro Alves <palves@redhat.com>
456 * linux-nat.c (wait_lwp): Report to the core when thread group
459 2015-07-30 Pedro Alves <palves@redhat.com>
460 Simon Marchi <simon.marchi@ericsson.com>
463 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
464 mark the new thread as resumed. Remove STOPPING parameter.
465 (wait_lwp): Adjust call to linux_handle_extended_wait.
466 (linux_nat_filter_event): Adjust call to
467 linux_handle_extended_wait.
468 (resume_stopped_resumed_lwps): Add debug output.
470 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
472 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
474 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
475 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
476 gdbarch_fast_tracepoint_valid_at.
477 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
478 * gdbarch.h: Regenerate.
479 * gdbarch.c: Regenerate.
480 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
481 argument. Do not set it.
482 * remote.c (remote_download_tracepoint): Adjust call to
483 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
484 the instruction length.
486 2015-07-30 Yao Qi <yao.qi@linaro.org>
488 * arm-tdep.h (enum gdb_regnum): Move it to ...
489 * arch/arm.h: ... here. New file.
490 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
492 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
494 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
495 Change its type to int *.
496 (decode_br): Rename link argument to is_blr. Change its type to
498 (decode_cb): Rename op argument to is_cbnz. Change its type to
500 (decode_tb): Rename op argument to is_tbnz. Change its type to
501 int *. Set is_tbnz to either 1 or 0.
502 (aarch64_analyze_prologue): Change type of is_link to int. Add
503 new variables is_cbnz and is_tbnz. Adjust call to
504 aarch64_decode_cb and aarch64_decode_tb.
506 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
508 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
510 (mips_linux_new_thread): Likewise.
511 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
513 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
515 * top.c: Include "tui/tui.h".
516 (undo_terminal_modifications_before_exit): New static function.
517 (quit_force): Use it.
519 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
521 * target.c (terminal_state): Initialize to terminal_is_ours.
523 2015-07-29 Yao Qi <yao.qi@linaro.org>
526 * dcache.c (dcache_read_memory_partial): Call
527 raw_memory_xfer_partial.
528 * target.c (raw_memory_xfer_partial): Make it non-static.
529 * target.h (raw_memory_xfer_partial): Declare.
531 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
533 * c-valprint.c (c_val_print_array): Consider addressable memory
535 (c_val_print_ptr): Likewise.
536 (c_val_print_int): Likewise.
537 * findvar.c (read_frame_register_value): Likewise.
538 * valarith.c (find_size_for_pointer_math): Likewise.
539 (value_ptrdiff): Likewise.
540 (value_subscripted_rvalue): Likewise.
541 * valops.c (read_value_memory): Likewise (and rename variables).
542 (value_assign): Likewise.
543 (value_repeat): Likewise.
544 (value_array): Likewise.
545 (value_slice): Likewise.
546 * valprint.c (generic_val_print_ptr): Likewise.
547 (generic_val_print_enum): Likewise.
548 (generic_val_print_bool): Likewise.
549 (generic_val_print_int): Likewise.
550 (generic_val_print_char): Likewise.
551 (generic_val_print_float): Likewise.
552 (generic_val_print_decfloat): Likewise.
553 (generic_val_print_complex): Likewise.
554 (val_print_scalar_formatted): Likewise.
555 (val_print_array_elements): Likewise.
556 * value.c (set_value_parent): Likewise.
557 (value_contents_copy_raw): Likewise.
558 (set_internalvar_component): Likewise.
559 (value_primitive_field): Likewise.
560 (value_fetch_lazy): Likewise.
561 * value.h (read_value_memory): Update comment.
563 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
565 * value.c (get_value_arch): New function.
566 * value.h (get_value_arch): New declaration.
568 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
570 * value.c (struct value): Update comments.
572 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
574 * gdbtypes.c (type_length_units): New function.
575 * gdbtypes.h (type_length_units): New declaration.
576 (struct type) <length>: Update comment.
578 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
580 * valprint.c (generic_val_print): Factor out complex
582 (generic_val_print_complex): ... this new function.
584 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
586 * valprint.c (generic_val_print): Factor out decfloat
588 (generic_val_print_decfloat): ... this new function.
590 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
592 * valprint.c (generic_val_print): Factor out float
594 (generic_val_print_float): ... this new function.
596 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
598 * valprint.c (generic_val_print): Factor out char
600 (generic_val_print_char): ... this new function.
602 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
604 * valprint.c (generic_val_print): Factor out integer
606 (generic_val_print_int): ... this new function.
608 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
610 * valprint.c (generic_val_print): Factor out bool
612 (generic_val_print_bool): ... this new function.
614 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
616 * valprint.c (generic_val_print): Factor out function/method
618 (generic_val_print_func): ... this new function.
620 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
622 * valprint.c (generic_val_print): Factor out flags
624 (generic_val_print_flags): ... this new function.
626 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
628 * valprint.c (generic_val_print): Factor out enum
630 (generic_val_print_enum): ... this new function.
632 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
634 * valprint.c (generic_val_print): Factor out reference
636 (generic_val_print_ref): ... this new function.
638 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
640 * valprint.c (generic_val_print): Factor out memberptr
642 (generic_val_print_memberptr): ... this new function.
644 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
646 * valprint.c (generic_val_print): Factor out pointer
648 (generic_val_print_ptr): ... this new function.
650 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
652 * valprint.c (generic_val_print): Factor out array
654 (generic_val_print_array): ... this new function.
656 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
658 * valprint.c (generic_val_print): Factor out
659 print_unpacked_pointer code to ...
660 (print_unpacked_pointer): ... this new function.
662 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
664 * event-top.c (handle_sigterm): Don't inspect
665 target_can_async_p. Always set the quit flag and always mark
666 the async signal handler.
668 2015-07-27 Yao Qi <yao.qi@linaro.org>
670 * Makefile.in (REMOTE_EXAMPLES): Remove it.
672 2015-07-25 Kevin Buettner <kevinb@redhat.com>
674 * remote.c (read_ptid): Return null_ptid when no thread id
676 (remote_current_thread): Add log warning for malformed
678 (remote_start_remote): Add log warning when current thread
681 2015-07-24 Pedro Alves <palves@redhat.com>
683 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
684 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
685 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
687 2015-07-24 Pedro Alves <palves@redhat.com>
690 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
691 is resumed, and extend the debug log.
693 2015-07-24 Pedro Alves <palves@redhat.com>
695 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
697 2015-07-24 Pedro Alves <palves@redhat.com>
699 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
701 * alpha-linux-nat.c: Likewise.
702 * amd64-linux-nat.c: Likewise.
703 * arm-linux-nat.c: Likewise.
704 * hppa-linux-nat.c: Likewise.
705 * i386-linux-nat.c: Likewise.
706 * ia64-linux-nat.c: Likewise.
707 * linux-fork.c: Likewise.
708 * linux-nat.c: Likewise.
709 * m32r-linux-nat.c: Likewise.
710 * m68klinux-nat.c: Likewise.
711 * mips-linux-nat.c: Likewise.
712 * nat/linux-btrace.c: Likewise.
713 * nat/linux-ptrace.c: Likewise.
715 * nat/mips-linux-watch.c: Likewise.
716 * nat/x86-linux-dregs.c: Likewise.
717 * ppc-linux-nat.c: Likewise.
718 * s390-linux-nat.c: Likewise.
719 * spu-linux-nat.c: Likewise.
720 * tilegx-linux-nat.c: Likewise.
721 * x86-linux-nat.c: Likewise.
722 * xtensa-linux-nat.c: Likewise.
724 2015-07-24 Pedro Alves <palves@redhat.com>
726 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
727 __ptrace_request as first parameter type instead of int.
728 (PTRACE_TYPE_ARG1): Define.
729 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
730 that casts first argument to PTRACE_TYPE_ARG1.
731 * config.in: Regenerate.
732 * configure: Regenerate.
734 2015-07-24 Pedro Alves <palves@redhat.com>
736 * gdb_ptrace.h: Move ...
737 * nat/gdb_ptrace.h: ... here.
738 * inf-ptrace.c: Adjust.
740 2015-07-24 Pedro Alves <palves@redhat.com>
742 * acinclude.m4: Include ptrace.m4.
743 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
744 * ptrace.m4: ... to this new file.
746 2015-07-23 Doug Evans <dje@google.com>
748 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
749 (load_cu): Handle dummy CUs.
750 (dw2_do_instantiate_symtab, process_queuef): Ditto.
751 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
753 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
755 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
756 documentation to say that it returns a list rather than
758 (linetable_object_methods): Update the docstring of the
761 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
763 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
764 type to the recursive call instead of the original (maybe
765 TYPE_CODE_TYPEDEF) type.
767 2015-07-23 Yao Qi <yao.qi@linaro.org>
769 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
770 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
771 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
773 2015-07-21 Yao Qi <yao.qi@linaro.org>
775 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
776 Move it to nat/aarch64-linux-hw-point.c.
777 (aarch64_linux_child_post_startup_inferior): Update.
778 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
780 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
783 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
785 * common/btrace-common.c (btrace_data_append): Change case label.
787 2015-07-20 Yao Qi <yao.qi@linaro.org>
789 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
791 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
792 "unsigned long long".
794 2015-07-18 Kevin Buettner <kevinb@redhat.com>
796 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
797 to be set for SEC_ALLOC sections too.
799 2015-07-17 Yao Qi <yao.qi@linaro.org>
801 * Makefile.in (HFILES_NO_SRCDIR): Add
802 nat/aarch64-linux-hw-point.h.
803 (aarch64-linux-hw-point.o): New rule.
804 * nat/aarch64-linux-hw-point.h: New file.
805 * nat/aarch64-linux-hw-point.c: New file.
806 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
807 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
808 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
809 (AARCH64_HWP_ALIGNMENT): Likewise.
810 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
811 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
812 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
813 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
814 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
815 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
816 (struct aarch64_debug_reg_state): Likewise.
817 (struct arch_lwp_info): Likewise.
818 (aarch64_linux_set_debug_regs): Likewise.
819 (aarch64_notify_debug_reg_change): Remove static.
820 (aarch64_align_watchpoint): Likewise.
821 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
822 (aarch64_watchpoint_length): Likewise.
823 (aarch64_point_encode_ctrl_reg): Likewise
824 (aarch64_point_is_aligned): Likewise.
825 (aarch64_dr_state_insert_one_point): Likewise.
826 (aarch64_dr_state_remove_one_point): Likewise.
827 (aarch64_handle_breakpoint): Likewise.
828 (aarch64_handle_aligned_watchpoint): Likewise.
829 (aarch64_handle_unaligned_watchpoint): Likewise.
830 (aarch64_handle_watchpoint): Likewise.
831 * config/aarch64/linux.mh (NAT_FILE): Add
832 aarch64-linux-hw-point.o.
834 2015-07-17 Yao Qi <yao.qi@linaro.org>
836 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
837 state and don't call aarch64_get_debug_reg_state. All callers
839 (aarch64_linux_insert_hw_breakpoint): Call
840 aarch64_get_debug_reg_state earlier.
841 (aarch64_linux_remove_hw_breakpoint): Likewise.
842 (aarch64_handle_aligned_watchpoint): Add argument state and
843 don't call aarch64_get_debug_reg_state. All callers update.
844 (aarch64_handle_unaligned_watchpoint): Likewise.
845 (aarch64_handle_watchpoint): Add argument state.
846 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
848 (aarch64_linux_remove_watchpoint): Likewise.
850 2015-07-17 Yao Qi <yao.qi@linaro.org>
852 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
854 (aarch64_handle_unaligned_watchpoint): Likewise.
856 2015-07-17 Yao Qi <yao.qi@linaro.org>
858 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
859 argument type's type to 'enum target_hw_bp_type'.
860 (aarch64_dr_state_remove_one_point): Likewise.
861 (aarch64_handle_breakpoint): Likewise.
862 (aarch64_linux_insert_hw_breakpoint): Likewise.
863 (aarch64_linux_remove_hw_breakpoint): Likewise.
864 (aarch64_handle_aligned_watchpoint): Likewise.
866 2015-07-17 Yao Qi <yao.qi@linaro.org>
868 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
869 ptid_get_pid instead of get_thread_id.
871 2015-07-17 Yao Qi <yao.qi@linaro.org>
873 * remote.c (get_current_thread): Initialise ptid to null_ptid.
874 (add_current_inferior_and_thread): Don't initialise ptid.
876 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
878 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
879 unavailable if invalid.
881 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
883 Revert the previous 6 commits:
884 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
885 Move gdb_regex* to common/
886 Prepare linux_find_memory_regions_full & co. for move
887 Move linux_find_memory_regions_full & co.
888 gdbserver build-id attribute generator
889 Validate symbol file using build-id
891 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
892 Jan Kratochvil <jan.kratochvil@redhat.com>
894 Validate symbol file using build-id.
895 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
896 and 'show validate-build-id'. Add build-id attribute.
897 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
898 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
899 * solib-frv.c (_initialize_frv_solib): Ditto.
900 * solib-spu.c (set_spu_solib_ops): Ditto.
901 * solib-svr4.c: Include rsp-low.h.
902 (NOTE_GNU_BUILD_ID_NAME): New define.
903 (svr4_validate): New function.
904 (svr4_copy_library_list): Duplicate field build_id.
905 (library_list_start_library): Parse 'build-id' attribute.
906 (svr4_library_attributes): Add 'build-id' attribute.
907 (_initialize_svr4_solib): Assign validate value.
908 * solib-target.c (solib.h): Include.
909 (_initialize_solib_target): Assign validate value.
910 * solib.c (validate_build_id, show_validate_build_id): New.
911 (solib_map_sections): Use ops->validate.
912 (clear_so): Free build_id.
913 (default_solib_validate): New function.
914 (_initialize_solib): Add "validate-build-id".
915 * solib.h (default_solib_validate): New declaration.
916 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
917 (target_so_ops): New field 'validate'.
919 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
920 Jan Kratochvil <jan.kratochvil@redhat.com>
922 gdbserver build-id attribute generator.
923 * features/library-list-svr4.dtd (library-list-svr4): New
924 'build-id' attribute.
926 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
927 Jan Kratochvil <jan.kratochvil@redhat.com>
929 Move linux_find_memory_regions_full & co.
930 * linux-tdep.c (nat/linux-maps.h): Include.
931 (gdb_regex.h): Remove the include.
932 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
933 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
934 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
935 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
936 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
938 (struct smaps_vmflags, read_mapping, decode_vmflags)
939 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
940 (linux_find_memory_regions_full): Move from linux-tdep.c.
941 * nat/linux-maps.h (read_mapping): New declaration.
942 (linux_find_memory_region_ftype, enum filterflags): Moved from
944 (linux_find_memory_regions_full): New declaration.
945 * target.c (target/target-utils.h): Include.
946 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
947 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
948 definitions to target/target-utils.c.
949 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
950 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
952 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
953 (read_alloc): New declaration.
954 (read_stralloc_func_ftype): New typedef.
955 (read_stralloc): New declaration.
956 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
958 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
959 Jan Kratochvil <jan.kratochvil@redhat.com>
961 Prepare linux_find_memory_regions_full & co. for move.
962 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
963 (linux_find_memory_regions_full): Change signature and prepare
964 for moving to linux-maps.
965 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
966 (linux_find_memory_regions_thunk): New.
967 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
968 (linux_find_memory_regions_gdb): New.
969 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
970 (linux_make_mappings_corefile_notes): Use
971 linux_find_memory_regions_gdb.
972 * target.c (read_alloc_pread_ftype): New typedef.
973 (target_fileio_read_alloc_1_pread): New function.
974 (read_alloc): Refactor from target_fileio_read_alloc_1.
975 (read_stralloc_func_ftype): New typedef.
976 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
977 (read_stralloc): Refactored from target_fileio_read_stralloc.
978 (target_fileio_read_stralloc): New implementation, use read_stralloc.
980 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
982 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
984 (COMMON_OBS): Add gdb_regex.o.
986 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
987 --without-included-regex and USE_INCLUDED_REGEX.
988 * common/gdb_regex.c: New file from utils.c functions.
989 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
990 file wrapping define name.
991 * configure: Rebuilt.
992 * configure.ac (gdb_use_included_regex, --without-included-regex)
993 (USE_INCLUDED_REGEX): Move them to common/common.m4.
994 * gdb_regex.h: Move it to common/gdb_regex.h.
995 * utils.c: Remove include gdb_regex.h.
996 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
997 (compile_rx_or_error): Move them to common/gdb_regex.c.
999 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1000 Jan Kratochvil <jan.kratochvil@redhat.com>
1002 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1003 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
1004 common/target-utils.h.
1005 (COMMON_OBS): Add target-utils.o.
1006 (linux-maps.o, target-utils.o): New.
1007 * target/target-utils.c: New file.
1008 * target/target-utils.h: New file.
1009 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
1010 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1011 * nat/linux-maps.c: New file.
1012 * nat/linux-maps.h: New file.
1014 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
1015 Pedro Alves <palves@redhat.com>
1017 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
1018 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
1019 (perf_event_read_bts): Change the type of SIZE and READ.
1020 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
1021 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
1022 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
1024 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
1025 buffer size to UINT_MAX.
1026 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
1028 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
1029 <last_head>: Change type.
1030 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
1031 * common/btrace-common.c (btrace_data_append): Change the type of
1033 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
1036 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
1038 * gdbtypes.h (CHECK_TYPEDEF): Remove.
1039 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
1041 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
1042 (ada_array_length): Likewise.
1043 (find_parallel_type_by_descriptive_type): Likewise.
1044 (ada_check_typedef): Likewise.
1045 * arm-tdep.c (arm_return_in_memory): Likewise.
1046 * ax-gdb.c (gen_trace_static_fields): Likewise.
1047 (gen_struct_ref_recursive): Likewise.
1048 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1049 (variable: block COLONCOLON name): Likewise.
1050 (qualified_name: TYPENAME COLONCOLON name): Likewise.
1051 * c-lang.c (classify_type): Likewise.
1052 * c-typeprint.c (c_print_type): Likewise.
1053 (c_print_typedef): Likewise.
1054 (c_type_print_base): Likewise.
1055 * c-valprint.c (c_val_print): Likewise.
1056 * compile/compile-c-types.c (convert_type): Likewise.
1057 * compile/compile-object-load.c (get_out_value_type): Likewise.
1058 * completer.c (add_struct_fields): Likewise.
1059 (expression_completer): Likewise.
1060 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
1061 (cp_lookup_nested_symbol_1): Likewise.
1062 (cp_lookup_nested_symbol): Likewise.
1063 * cp-valprint.c (cp_print_value_fields): Likewise.
1064 (cp_print_static_field): Likewise.
1065 * d-valprint.c (d_val_print): Likewise.
1066 * eval.c (evaluate_subexp_standard): Likewise.
1067 (evaluate_subexp_for_sizeof): Likewise.
1068 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1069 * f-typeprint.c (f_type_print_base): Likewise.
1070 * f-valprint.c (f_val_print): Likewise.
1071 * gdbtypes.c (get_discrete_bounds): Likewise.
1072 (create_array_type_with_stride): Likewise.
1073 (type_name_no_tag_or_error): Likewise.
1074 (lookup_struct_elt_type): Likewise.
1075 (get_unsigned_type_max): Likewise.
1076 (internal_type_vptr_fieldno): Likewise.
1077 (set_type_vptr_fieldno): Likewise.
1078 (internal_type_vptr_basetype): Likewise.
1079 (set_type_vptr_basetype): Likewise.
1080 (get_vptr_fieldno): Likewise.
1081 (is_integral_type): Likewise.
1082 (is_scalar_type): Likewise.
1083 (is_scalar_type_recursive): Likewise.
1084 (distance_to_ancestor): Likewise.
1085 (is_unique_ancestor_worker): Likewise.
1086 (check_types_equal): Likewise.
1087 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1089 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
1091 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
1092 also test for language_d.
1093 (dwarf2_compute_name): Likewise.
1094 (read_func_scope): Likewise.
1095 (read_structure_type): Likewise.
1096 (new_symbol_full): Likewise.
1097 (determine_prefix): Likewise.
1098 (read_import_statement): Use dot as the separator for language_d.
1099 (typename_concat): Likewise, but don't prefix the D main function.
1101 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
1103 * nat/linux-namespaces.c (setns): Rename from this ...
1104 (do_setns): ... to this. Support calling setns if it exists.
1105 (mnsh_handle_setns): Call do_setns.
1107 2015-07-13 Yao Qi <yao.qi@linaro.org>
1109 * exec.c (exec_file_attach): Add period at the end of error
1112 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1114 * tui/tui-win.c (window_name_completer): New function.
1115 (focus_completer): Call window_name_completer. All old content
1116 moved into window_name_completer.
1117 (winheight_completer): New function.
1118 (_initialize_tui_win): Rename variable. Add completer to
1119 winheight command. Update doc string on winheight.
1121 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
1123 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
1124 all nios2 mach variants.
1126 2015-07-10 Kevin Buettner <kevinb@redhat.com>
1128 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
1129 of target_read_memory.
1131 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1133 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
1135 (parse_scrolling_args): Likewise.
1137 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1139 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
1140 names in this function.
1142 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1144 * tui/tui-data.h (SRC_NAME): Convert to lower case.
1145 (CMD_NAME): Likewise.
1146 (DATA_NAME): Likewise.
1147 (DISASSEM_NAME): Likewise.
1148 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
1149 (tui_set_win_height): Likewise.
1150 (parse_scrolling_args): Likewise.
1152 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
1154 * record-btrace.c (record_btrace_goto_begin)
1155 (record_btrace_goto_end, record_btrace_goto): Move call to
1156 print_stack_frame ...
1157 (record_btrace_set_replay): ... here. Set stop_pc.
1158 * record-full.c (record_full_goto_entry): Set stop_pc.
1160 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1162 * NEWS: Mention support for tracepoints on aarch64-linux.
1164 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1166 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
1168 (the_low_target): Install it.
1170 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1172 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
1173 * gdb.trace/collection.exp: Likewise.
1174 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
1175 * gdb.trace/mi-trace-unavailable.exp: Likewise.
1176 * gdb.trace/report.exp: Likewise.
1177 * gdb.trace/trace-break.exp: Likewise.
1178 * gdb.trace/unavailable.exp: Likewise.
1179 * gdb.trace/while-dyn.exp: Likewise.
1181 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1183 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
1184 (aarch64_gen_return_address): New function.
1185 (aarch64_gdbarch_init): Hook it.
1187 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1189 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
1190 swallow NOT_AVAILABLE_ERROR.
1191 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
1192 available_p is not set.
1193 (aarch64_stub_frame_unwind_stop_reason): New function.
1194 (aarch64_stub_unwind): Install it.
1196 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1198 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
1200 (aarch64_make_prologue_cache_1): New function, factored out from
1201 aarch64_make_prologue_cache. Do not allocate cache. Set
1203 (aarch64_make_prologue_cache): Reimplement wrapping
1204 aarch64_make_prologue_cache_1, and swallowing
1205 NOT_AVAILABLE_ERROR.
1206 (aarch64_prologue_frame_unwind_stop_reason): New function.
1207 Return UNWIND_UNAVAILABLE if available_p is not set.
1208 (aarch64_prologue_unwind): Install it.
1209 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
1210 checks into aarch64_prologue_frame_unwind_stop_reason. Call
1211 frame_id_build_unavailable_stack if available_p is not set.
1213 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1215 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
1217 (aarch64_scan_prologue): Set prev_pc.
1218 (aarch64_make_prologue_cache): Set func.
1219 (aarch64_make_stub_cache): Set prev_pc.
1220 (aarch64_prologue_this_id): Remove local variables id, pc and
1221 func. Read prev_pc and func from cache.
1222 (aarch64_stub_this_id): Read prev_pc from cache.
1224 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1226 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
1227 argument this_cache. Remove unused local variables reg and
1228 unwound_fp. Return early if this_cache is already set. Set
1230 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
1232 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1234 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
1235 New argument this_cache. Return early if this_cache is already
1236 set. Set this_cache.
1237 (aarch64_prologue_this_id): Update call to
1238 aarch64_make_prologue_cache.
1239 (aarch64_prologue_prev_register): Likewise.
1240 (aarch64_normal_frame_base): Likewise.
1242 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1244 * c-valprint.c (c_val_print): Factor out memberptr printing code
1245 from c_val_print to ...
1246 (c_val_print_memberptr): ... this new function.
1248 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1250 * c-valprint.c (c_val_print): Factor out int printing code to ...
1251 (c_val_print_int): ... this new function.
1253 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1255 * c-valprint.c (c_val_print): Factor out struct and union
1256 printing code to ...
1257 (c_val_print_struct): ... this new function ...
1258 (c_val_print_union): ... and this new function.
1260 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1262 * c-valprint.c (c_val_print): Factor out pointer printing code
1264 (c_val_print_ptr): ... this new function.
1266 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1268 * c-valprint.c (c_valprint): Factor our array printing code from
1270 (c_val_print_array): ... this new function.
1272 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1274 * c-valprint.c (c_val_print): Factor out pointer printing code
1276 (print_unpacked_pointer): ... this new function.
1278 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1280 * c-valprint.c (c_val_print): Remove an assignment to i and move
1283 2015-07-09 Yao Qi <yao.qi@linaro.org>
1285 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
1286 argument ptid. Update comments. Caller update.
1288 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1290 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
1293 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1295 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
1297 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1299 * progspace.c (delete_program_space): Add missing spaces.
1301 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1303 * inferior.c (delete_inferior_1): Rename to ...
1304 (delete_inferior): ..., remove 'silent' parameter, delete
1305 program space when unused and remove call to prune_program_spaces.
1306 Remove the old, unused, delete_inferior.
1307 (delete_inferior_silent): Remove.
1308 (prune_inferiors): Change call from delete_inferior_1 to
1309 delete_inferior and remove 'silent' parameter. Remove call to
1310 prune_program_spaces.
1311 (remove_inferior_command): Idem.
1312 * inferior.h (delete_inferior_1): Rename to...
1313 (delete_inferior): ..., remove 'silent' parameter and remove the
1314 original delete_inferior.
1315 (delete_inferior_silent): Remove.
1316 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
1317 delete_inferior_1 to delete_inferior and remove 'silent'
1319 * progspace.c (prune_program_spaces): Remove.
1320 (pspace_empty_p): Rename to...
1321 (program_space_empty_p): ... and make non-static.
1322 (delete_program_space): New.
1323 * progspace.h (prune_program_spaces): Remove declaration.
1324 (program_space_empty_p): New declaration.
1325 (delete_program_space): New declaration.
1326 * monitor.c (monitor_close): Replace call to
1327 delete_thread_silent and delete_inferior_silent with
1328 discard_all_inferiors.
1330 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
1332 * defs.h (deprecated_register_changed_hook): Remove prototype.
1333 * interps.c (clear_iterpreter_hooks): Remove reference to
1334 deprecated_register_changed_hook.
1335 * top.c (deprecated_register_changed_hook): Remove prototype.
1336 * valops.c (value_assign): Remove reference to
1337 deprecated_register_changed_hook.
1338 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
1339 Add comment documenting the function.
1340 (tui_register_changed_observer): Define.
1341 (tui_install_hooks): Remove reference to
1342 deprecated_register_changed_hook. Set
1343 tui_register_changed_observer.
1344 (tui_remove_hooks): Remove reference to
1345 deprecated_register_changed_hook. Unset
1346 tui_register_changed_observer.
1348 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1351 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
1353 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
1356 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
1358 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1360 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
1362 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1364 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
1365 Use safe_strerror() instead of strerror().
1367 2015-07-07 Yao Qi <yao.qi@linaro.org>
1369 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
1370 * features/arm-with-m-fpa-layout.c: Regenerated.
1371 * features/arm-with-m-vfp-d16.xml: Likewise.
1372 * features/arm-with-m-vfp-d16.c: Regenerated.
1373 * features/arm-with-m.xml: Likewise.
1374 * features/arm-with-m.c: Regenerated.
1375 * features/arm-with-neon.xml: Likewise.
1376 * features/arm-with-neon.c: Regenerated.
1377 * features/arm-with-vfpv2.xml: Likewise.
1378 * features/arm-with-vfpv2.c: Regenerated.
1379 * features/arm-with-vfpv3.xml: Likewise.
1380 * features/arm-with-vfpv3.c: Regenerated.
1382 2015-07-07 Yao Qi <yao.qi@linaro.org>
1384 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
1386 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
1388 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
1389 if target is 32-bit.
1390 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
1391 if target is 32-bit.
1392 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
1393 if target is 32-bit.
1394 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
1395 if target is 32-bit.
1396 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
1397 (aarch64_linux_read_description): Return the right target
1399 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
1400 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1401 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
1404 2015-07-07 Yao Qi <yao.qi@linaro.org>
1406 * aarch32-linux-nat.c: New file.
1407 * aarch32-linux-nat.h: New file.
1408 * arm-linux-nat.c: Include aarch32-linux-nat.h.
1409 (fetch_regs): Move code to aarch32-linux-nat.c. Call
1410 aarch32_gp_regcache_supply.
1411 (store_regs): Move code to aarch32-linux-nat.c. Call
1412 aarch32_gp_regcache_collect.
1413 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
1414 aarch32_vfp_regcache_supply.
1415 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
1416 aarch32_vfp_regcache_collect.
1417 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1419 2015-07-07 Yao Qi <yao.qi@linaro.org>
1421 * arm-linux-nat.c (store_fpregister): Remove.
1422 (store_register): Likewise.
1423 (fetch_fpregister): Likewise.
1424 (fetch_register): Likewise.
1425 (arm_linux_store_inferior_registers): Call store_regs and
1426 store_fpregs instead.
1427 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
1430 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1432 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
1435 2015-07-06 Joel Brobecker <brobecker@adacore.com>
1437 * NEWS: Create a new section for the next release branch.
1438 Rename the section of the current branch, now that it has
1441 2015-07-06 Joel Brobecker <brobecker@adacore.com>
1443 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
1444 * version.in: Bump version to 7.10.50.DATE-cvs.
1446 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
1448 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
1449 breakpoints in a special way.
1450 (remove_breakpoint): Likewise.
1451 (mark_breakpoints_out): Likewise.
1453 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1455 * doc/gdb.texinfo (TUI): Add comma after @xref.
1457 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1459 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
1460 instead of casting the structure type.
1462 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1464 * valops.c (search_struct_field): Remove OFFSET parameter.
1465 (value_cast_structs): Adjust calls to search_struct_field.
1466 (value_struct_elt): Same.
1467 (find_overload_match): Same.
1469 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1471 * value.c (value_fetch_lazy): Update comment, change return
1473 * value.h (value_fetch_lazy): Change return value to void.
1475 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1477 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
1478 (tui_win_name): Make parameter and result const.
1479 * tui/tui-data.h (tui_win_name): Make parameter and result const.
1481 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
1483 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
1484 use printf_unfiltered.
1485 (set_mpx_cmd): Add missing trailing space to command string
1487 (_initialize_i386_tdep): Give the "mpx" prefix command its
1490 2015-07-02 Kevin Buettner <kevinb@redhat.com>
1492 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
1493 (enum rx_frame_type): New.
1494 (struct rx_prologue): Add new field `frame_type'.
1495 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
1496 parameter in the prologue struct. Add code for recording
1497 locations of PC and PSW for fast interrupt and exception frames.
1498 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
1499 (rx_analyze_frame_prologue): Add `frame_type' parameter.
1500 (rx_frame_type): New function.
1501 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
1502 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
1504 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
1505 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1506 RX_FRAME_TYPE_FAST_INTERRUPT.
1507 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
1508 (rx_frame_sniffer, rx_exception_sniffer): New functions.
1509 (rx_frame_unwind): Use rx_frame_sniffer instead of
1510 default_frame_sniffer.
1511 (rx_frame_unwind): New unwinder.
1512 (rx_gdbarch_init): Register new unwinder.
1514 2015-07-02 Kevin Buettner <kevinb@redhat.com>
1516 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
1517 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
1518 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
1520 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
1522 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1524 Fix GCC false warning.
1525 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
1527 2015-07-02 Yao Qi <yao.qi@linaro.org>
1529 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
1530 typo in the debugging message.
1532 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1534 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
1535 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
1536 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
1537 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
1538 (btrace_maint_clear): New.
1539 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
1540 (pt_print_packet, btrace_maint_decode_pt)
1541 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
1542 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
1543 (maint_btrace_packet_history_cmd)
1544 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1545 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
1546 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
1547 (maint_info_btrace_cmd, _initialize_btrace): New.
1548 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
1549 (btrace_maint_packet_history, btrace_maint_info): New.
1550 (btrace_thread_info) <maint>: New.
1551 * NEWS: Announce it.
1553 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1555 * btrace.c (btrace_fetch): Append the new trace data.
1556 (btrace_clear): Clear the stored trace data.
1557 * btrace.h (btrace_thread_info) <data>: New.
1558 * common/btrace-common.h (btrace_data_clear)
1559 (btrace_data_append): New.
1560 * common/btrace-common.c (btrace_data_clear)
1561 (btrace_data_append): New.
1563 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1565 * nat/linux-btrace.c (linux_enable_bts): Check for
1566 PERF_ATTR_SIZE_VER5.
1567 Check for data_offset and data_size fields. Use them.
1569 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1571 * NEWS: Announce new commands "record btrace pt" and "record pt".
1572 Announce new options "set|show record btrace pt buffer-size".
1573 * btrace.c: Include "rsp-low.h".
1574 Include "inttypes.h".
1575 (btrace_add_pc): Add forward declaration.
1576 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
1577 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
1578 (btrace_compute_ftrace_pt): New.
1579 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
1580 (check_xml_btrace_version): Update version check.
1581 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
1582 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
1583 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
1584 (btrace_pt_children): New.
1585 (btrace_children): Add support for "pt".
1586 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
1587 (btrace_conf_children): Add support for "pt".
1588 * btrace.h: Include "intel-pt.h".
1589 (btrace_pt_error): New.
1590 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
1591 (btrace_data_empty): Support BTRACE_FORMAT_PT.
1592 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
1593 (struct btrace_config_pt): New.
1594 (struct btrace_config)<pt>: New.
1595 (struct btrace_data_pt_config, struct btrace_data_pt): New.
1596 (struct btrace_data)<pt>: New.
1597 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
1599 * features/btrace.dtd (btrace)<pt>: New.
1600 (pt, pt-config, cpu): New.
1601 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
1602 (perf_event_pt_event_type, kernel_supports_pt)
1603 (linux_supports_pt): New.
1604 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
1605 (linux_enable_bts): Free tinfo on error.
1606 (linux_enable_pt): New.
1607 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
1608 (linux_disable_pt): New.
1609 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
1610 (linux_fill_btrace_pt_config, linux_read_pt): New.
1611 (linux_read_btrace): Support BTRACE_FORMAT_PT.
1612 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
1613 (struct btrace_target_info)<pt>: New.
1614 * record-btrace.c (set_record_btrace_pt_cmdlist)
1615 (show_record_btrace_pt_cmdlist): New.
1616 (record_btrace_print_pt_conf): New.
1617 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
1618 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
1619 (cmd_record_btrace_pt_start): New.
1620 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
1621 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
1622 (_initialize_record_btrace): Add new commands.
1623 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
1624 (remote_protocol_features): Add "Qbtrace:pt".
1625 Add "Qbtrace-conf:pt:size".
1626 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
1627 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
1628 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
1629 (_initialize_remote): Add new commands.
1631 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1633 * configure.ac: check for libipt
1634 * configure: Regenerate.
1635 * config.in: Regenerate.
1636 * Makefile.in (LIBIPT): New.
1637 (CLIBS): Add $LIBIPT.
1638 * NEWS: document new configure options
1640 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1642 * compile/compile-object-load.c (compile_object_load): Replace debug
1643 message "lookup undefined ELF symbol" by 3 more specific messages.
1645 2015-07-01 Kevin Buettner <kevinb@redhat.com>
1647 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
1648 (rl78_register_type): Add case for RL78_PSW_REGNUM.
1649 (rl78_gdbarch_init): Initialize rl78_psw_type.
1651 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
1653 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1654 Update commentary. Always refresh the registers when frame
1655 information has changed.
1656 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
1657 Change return type to int. Return 1 if frame information has
1658 changed, 0 otherwise.
1659 (tui_before_prompt): Update commentary.
1660 * tui/tui-stack.h (tui_show_frame_info): Change return type to
1663 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1666 * frame.c (select_frame): Remove reference to
1667 deprecated_selected_frame_level_changed_hook.
1668 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
1670 * stack.c (deprecated_selected_frame_level_changed_hook):
1672 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
1674 (tui_refresh_frame_and_register_information): ... this. Bail
1675 out if there is no stack. Don't update register information
1676 unless registers_too_p is true.
1677 (tui_print_frame_info_listing_hook): Rename to ...
1678 (tui_dummy_print_frame_info_listing_hook): ... this.
1679 (tui_before_prompt): New function.
1680 (tui_normal_stop): New function.
1681 (tui_before_prompt_observer): New observer.
1682 (tui_normal_stop_observer): New observer.
1683 (tui_install_hooks): Set
1684 deprecated_print_frame_info_listing_hook to
1685 tui_dummy_print_frame_info_listing_hook. Register
1686 tui_before_prompt_observer to call tui_before_prompt and
1687 tui_normal_stop_observer to call tui_normal_stop. Remove
1688 reference to deprecated_selected_frame_level_changed_hook.
1689 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
1690 and tui_normal_stop_observer. Remove reference to
1691 deprecated_selected_frame_level_changed_hook.
1693 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1696 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
1697 return an int instead of void. Return whether the locator
1699 (tui_show_frame_info): If the locator info has not changed, then
1700 bail out early to avoid refreshing the windows.
1702 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1704 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
1705 LOCATOR_WIN to tui_alloc_content.
1707 2015-06-30 Yao Qi <yao.qi@linaro.org>
1710 * arm-tdep.c (arm_get_next_pc_raw): Break for media
1713 2015-06-29 Kevin Buettner <kevinb@redhat.com>
1715 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
1716 (rx_dwarf_reg_to_regnum): New function.
1717 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
1720 2015-06-29 Pedro Alves <palves@redhat.com>
1723 * infcall.c (run_inferior_call): On infcall success, if the thread
1724 was marked stopped before, reset it back to stopped.
1725 * infrun.c (resume): Don't suppress the set_running calls when
1727 (normal_stop): Only discard the finish_thread_state cleanup if the
1730 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1732 * MAINTAINERS (Write After Approval): Update my email address.
1734 2015-06-26 Keith Seitz <keiths@redhat.com>
1735 Doug Evans <dje@google.com>
1738 * block.c (block_lookup_symbol): For non-function blocks,
1739 continue to search for a symbol with an exact domain match
1740 Otherwise, return any previously found "best domain" symbol.
1741 (block_lookup_symbol_primary): Likewise.
1743 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1745 * NEWS: Mention the new option "history remove-duplicates".
1746 * top.c (history_remove_duplicates): New static variable.
1747 (show_history_remove_duplicates): New static function.
1748 (gdb_add_history): Conditionally remove duplicate history
1750 (init_main): Add "history remove-duplicates" option.
1752 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1754 * tui/tui-win.c (focus_completer): New static function.
1755 (_initialize_tui_win): Set the completion function of the
1756 "focus" command to focus_completer.
1758 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1760 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
1762 * symtab.c (find_function_start_sal): Likewise.
1764 2015-06-25 Gary Benson <gbenson@redhat.com>
1766 * solib.c (solib_find_1): Set local variable sysroot to NULL if
1767 it is the empty string after trailing slashes have been stripped.
1769 2015-06-25 Gary Benson <gbenson@redhat.com>
1771 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
1772 * infrun.c (follow_exec): Likewise.
1773 * remote.c (remote_filesystem_is_local): Likewise.
1774 * solib.c (solib_find_1): Likewise.
1776 2015-06-24 Keith Seitz <keiths@redhat.com>
1778 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
1779 return value from lrealpath.
1781 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1783 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
1785 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1787 * remote-sim.c: Include gdb_bfd.h.
1788 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
1789 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
1791 2015-06-24 Yao Qi <yao.qi@linaro.org>
1793 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
1794 set_gdbarch_get_siginfo_type.
1795 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
1796 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1797 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1798 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1799 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1800 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1801 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
1802 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
1803 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
1804 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
1806 2015-06-24 Gary Benson <gbenson@redhat.com>
1808 * common/buffer.c (stdint.h): Do not include.
1809 * common/print-utils.c (stdint.h): Likewise.
1810 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
1811 * compile/compile-c-types.c (gdb_assert.h): Likewise.
1812 * ft32-tdep.c (gdb_assert.h): Likewise.
1813 * guile/scm-utils.c (stdint.h): Likewise.
1814 * i386-linux-tdep.c (stdint.h): Likewise.
1815 * i386-tdep.c (stdint.h): Likewise.
1816 * nat/linux-btrace.c (stdint.h): Likewise.
1817 * nat/linux-btrace.h (stdint.h): Likewise.
1818 * nat/linux-ptrace.c (stdint.h): Likewise.
1819 * nat/mips-linux-watch.h (stdint.h): Likewise.
1820 * ppc-linux-nat.c (stdint.h): Likewise.
1821 * python/python-internal.h (stdint.h): Likewise.
1822 * stub-termcap.c (stdlib.h): Likewise.
1823 * target/target.h (stdint.h): Likewise.
1824 * xtensa-linux-nat.c (stdint.h): Likewise.
1826 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
1828 * top.c (init_history): Look at errno after calling strtol to
1829 properly map large GDBHISTSIZE values to infinity.
1831 2015-06-23 Doug Evans <dje@google.com>
1833 * inferior.h (struct inferior_suspend_state): Delete, unused.
1834 All references deleted.
1836 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1838 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
1839 (microblaze_push_dummy_call): Likewise.
1840 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
1841 and set_gdbarch_push_dummy_call.
1843 2015-06-23 Yao Qi <yao.qi@linaro.org>
1845 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1846 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
1847 (amd64_linux_store_inferior_registers): Likewise.
1848 * arm-linux-nat.c (fetch_fpregister): Likewise.
1849 (fetch_fpregs, store_fpregister): Likewise.
1850 (store_fpregister, store_fpregs): Likewise.
1851 (fetch_register, fetch_regs): Likewise.
1852 (store_register, store_regs): Likewise.
1853 (fetch_vfp_regs, store_vfp_regs): Likewise.
1854 (arm_linux_read_description): Check have_ptrace_getregset is
1855 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
1857 * i386-linux-nat.c (fetch_xstateregs): Check
1858 have_ptrace_getregset is not TRIBOOL_TRUE.
1859 (store_xstateregs): Likewise.
1860 * linux-nat.c (have_ptrace_getregset): Change its type to
1862 * linux-nat.h (tribool): New enum.
1863 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
1864 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
1866 2015-06-19 Doug Evans <dje@google.com>
1868 * NEWS: Mention Sun's version of stabs is no longer supported.
1869 * elfread.c (free_elfinfo): Delete. All uses updated.
1870 (elfstab_offset_sections): Delete. All uses updated.
1871 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
1872 * psympriv.h (partial_symtab) <section_offsets>: Delete.
1874 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
1875 All callers updated.
1877 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
1879 * common/rsp-low.c (needs_escaping): New.
1880 (remote_escape_output): Add unit_size parameter. Refactor to
1881 support multi-byte addressable units. Rename parameters.
1882 * common/rsp-low.h (remote_escape_output): Add unit_size
1883 parameter and rename others. Update doc.
1884 * remote.c (align_for_efficient_write): New.
1885 (remote_write_bytes_aux): Add unit_size parameter and use it.
1886 Rename some variables. Update doc.
1887 (remote_xfer_partial): Get unit size and use it.
1888 (remote_read_bytes_1): Add unit_size parameter and use it.
1889 Rename some variables. Update doc.
1890 (remote_write_bytes): Same.
1891 (remote_xfer_live_readonly_partial): Same.
1892 (remote_read_bytes): Same.
1893 (remote_flash_write): Update call to remote_write_bytes_aux.
1894 (remote_write_qxfer): Update call to remote_escape_output.
1895 (remote_search_memory): Same.
1896 (remote_hostio_pwrite): Same.
1898 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
1900 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
1901 locations as inserted.
1902 Update and expand comment about permanent locations.
1903 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
1904 Move comment to add_location_to_breakpoint.
1905 (update_global_location_list): Don't error out if a permanent
1906 breakpoint is not marked inserted.
1907 Don't error out if a non-permanent breakpoint location is inserted on
1908 top of a permanent breakpoint.
1910 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
1912 * breakpoint.c (make_breakpoint_permanent): Remove unused
1914 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
1916 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1919 * NEWS: Mention new GDBHISTSIZE behavior.
1920 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
1921 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
1923 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1925 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
1926 * top.c (init_history): Read from GDBHISTSIZE instead of
1928 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
1930 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1932 * top.c (gdb_safe_append_history): Do not call
1933 history_truncate_file if the history is not stifled.
1935 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
1937 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
1938 * syscalls/s390x-linux.xml: Likewise.
1940 2015-06-16 Michael Eager <eager@eagercon.com>
1942 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
1944 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
1946 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
1947 target_terminal_ours_for_output() before calling
1948 tui_show_frame_info(), and restore the original terminal
1949 settings afterwards.
1951 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
1953 * arm-linux-nat.c: Include nat/linux-ptrace.h.
1955 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
1957 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
1959 (mi_cmd_data_write_memory_bytes): Same.
1961 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
1963 * corefile.c (write_memory): Update doc.
1964 * gdbcore.h (write_memory): Same.
1966 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1968 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
1969 (dump_mapping_p): Use it for parameter filterflags.
1970 (linux_find_memory_regions_full): Use it for variable filterflags.
1972 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
1973 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 Merge multiple hex conversions.
1976 * monitor.c: Include rsp-low.h.
1977 (fromhex): Remove definition.
1979 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
1980 Jan Kratochvil <jan.kratochvil@redhat.com>
1982 Move utility functions to common/.
1983 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
1984 Move defs to common/common-utils.c.
1985 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
1986 (skip_to_space_const): Move decls to common/common-utils.h.
1987 * common/common-defs.h: Move include of common-types.h before
1989 * common/common-utils.c: Include host-defs.h and ctype.h.
1990 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
1992 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
1994 * common/common-utils.h (strtoulst): Move decl from utils.h.
1995 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
1996 Move from cli/cli-utils.h.
1997 * common/host-defs.h: Include limits.h.
1998 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
1999 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
2000 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
2001 common/common-utils.h.
2002 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
2003 (strtoulst): Move to common/common-utils.c.
2004 * utils.h (strtoulst): Moved decl to common/common-utils.h.
2006 2015-06-15 Yao Qi <yao.qi@linaro.org>
2008 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
2010 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
2012 * build-id.c: Don't include elf-bfd.h.
2013 (build_id_bfd_get): Use bfd_build_id.
2014 (build_id_verify): Ditto.
2015 * build-id.h: Ditto.
2016 (find_separate_debug_file_by_buildid): Ditto.
2017 * python/py-objfile.c: Don't include elf-bfd.h.
2018 (objfpy_get_build_id) Use bfd_build_id.
2019 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
2020 * coffread.c: Include build-id.h.
2021 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
2023 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2025 * windows-nat.c (do_windows_fetch_inferior_registers)
2026 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
2027 conditional with __CYGWIN__.
2029 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
2031 * completer.c: Add arch-utils.h include.
2032 (enum reg_completer_targets): New enum.
2033 (reg_or_group_completer_1): New function containing old
2034 reg_or_group_completer, add and use new parameter to control what
2035 is completed on. Use get_current_arch rather than architecture of
2036 currently selected frame.
2037 (reg_or_group_completer): Call new reg_or_group_completer_1.
2038 (reggroup_completer): Call new reg_or_group_completer_1.
2039 * completer.h (reggroup_completer): Add declaration.
2040 * tui/tui-regs.c: Add 'completer.h' include.
2041 (tui_reg_next_command): Renamed to...
2042 (tui_reg_next): ...this. Adjust parameters and return rather than
2044 (tui_reg_prev_command): Renamed to...
2045 (tui_reg_prev): ...this. Adjust parameters and return rather than
2047 (tui_reg_float_command): Delete.
2048 (tui_reg_general_command): Delete.
2049 (tui_reg_system_command): Delete.
2050 (tui_reg_command): Rewrite to perform switching of register group.
2052 (tuireglist): Remove.
2053 (tui_reggroup_completer): New function.
2054 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
2055 creation of 'tui reg' command.
2056 * NEWS: Add comment about 'tui reg' changes.
2058 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2060 * target.c (target_read): Consider addressable unit size when
2061 reading from a memory object.
2062 (read_memory_robust): Same.
2063 (read_whatever_is_readable): Same.
2064 (target_write_with_progress): Consider addressable unit size
2065 when writing to a memory object.
2066 * target.h (target_read): Update documentation.
2067 (target_write): Add documentation.
2069 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2071 * arch-utils.h (default_addressable_memory_unit_size): New.
2072 * arch-utils.c (default_addressable_memory_unit_size): New.
2073 * gdbarch.sh (addressable_memory_unit_size): New.
2074 * gdbarch.h: Re-generate.
2075 * gdbarch.c: Re-generate.
2077 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2079 * target.c (target_read): Rename variables and use
2081 (target_read_with_progress): Same.
2082 (read_memory_robust): Constify parameters and rename
2084 (read_whatever_is_readable): Constify parameters,
2085 rename variables, adjust formatting.
2086 * target.h (read_memory_robust): Constify parameters.
2088 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2090 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
2091 synthetic (non-AltiVec) vector types.
2092 (ppc64_sysv_abi_return_value): Likewise.
2094 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
2096 PR breakpoints/16465
2097 * breakpoint.c (create_breakpoint): Save extra_string for
2098 pending breakpoints.
2100 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2102 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
2103 and bt_mask to CORE_ADDR.
2105 2015-06-11 Gary Benson <gbenson@redhat.com>
2107 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
2108 (mnsh_recv_message): Likewise.
2110 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
2112 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
2113 long long int and plongest instead of %ll.
2115 2015-06-11 Gary Benson <gbenson@redhat.com>
2117 * nat/linux-namespaces.c (gdb_wait.h): New include.
2118 (sys/wait.h): Do not include.
2120 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
2122 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
2123 end_sequence is true.
2125 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 * solib-target.c (library_list_start_list): Use explicit NULL
2131 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * solib-target.c (library_list_start_list): Do not dereference
2134 variable version in its initialization. Make the VERSION check handle
2136 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
2138 2015-06-10 Gary Benson <gbenson@redhat.com>
2140 * NEWS: Announce support for direct access of executable and
2141 shared library files when attaching to inferiors in containers
2142 on GNU/Linux systems.
2144 2015-06-10 Gary Benson <gbenson@redhat.com>
2146 * remote.c (struct remote_state) <fs_pid>: New field.
2147 (new_remote_state): Initialize the above.
2148 (PACKET_vFile_setfs): New enum value.
2149 (remote_hostio_set_filesystem): New function.
2150 (remote_hostio_open): Call the above.
2151 (remote_hostio_unlink): Likewise.
2152 (remote_hostio_readlink): Likewise.
2153 (_initialize_remote): Register new "set/show remote
2154 hostio-setfs-packet" command.
2155 * NEWS: Announce new vFile:setfs packet.
2157 2015-06-10 Gary Benson <gbenson@redhat.com>
2159 * linux-nat.c (nat/linux-namespaces.h): New include.
2160 (fileio.h): Likewise.
2161 (linux_nat_filesystem_is_local): New function.
2162 (linux_nat_fileio_pid_of): Likewise.
2163 (linux_nat_fileio_open): Likewise.
2164 (linux_nat_fileio_readlink): Likewise.
2165 (linux_nat_fileio_unlink): Likewise.
2166 (linux_nat_add_target): Initialize to_filesystem_is_local,
2167 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
2168 (_initialize_linux_nat): New "set/show debug linux-namespaces"
2170 * NEWS: Mention new "set/show debug linux-namespaces" commands.
2172 2015-06-10 Gary Benson <gbenson@redhat.com>
2174 * target.h (struct inferior): New forward declaration.
2175 (struct target_ops) <to_filesystem_is_local>: Update comment.
2176 (struct target_ops) <to_fileio_open>: New argument inf.
2177 Update comment. All implementations updated.
2178 (struct target_ops) <to_fileio_unlink>: Likewise.
2179 (struct target_ops) <to_fileio_readlink>: Likewise.
2180 (target_filesystem_is_local): Update comment.
2181 (target_fileio_open): New argument inf. Update comment.
2182 (target_fileio_unlink): Likewise.
2183 (target_fileio_readlink): Likewise.
2184 (target_fileio_read_alloc): Likewise.
2185 (target_fileio_read_stralloc): Likewise.
2186 * target.c (target_fileio_open): New argument inf.
2187 Pass inf to implementation. Update debug printing.
2188 (target_fileio_unlink): Likewise.
2189 (target_fileio_readlink): Likewise.
2190 (target_fileio_read_alloc_1): New argument inf. Pass inf
2191 to target_fileio_open.
2192 (target_fileio_read_alloc): New argument inf. Pass inf to
2193 target_fileio_read_alloc_1.
2194 (target_fileio_read_stralloc): Likewise.
2195 * gdb_bfd.c (inferior.h): New include.
2196 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
2197 argument with new argument "inferior". Pass inferior to
2199 (gdb_bfd_open): Supply inferior argument to
2200 gdb_bfd_iovec_fileio_open.
2201 * linux-tdep.c (linux_info_proc): Supply inf argument to
2202 relevant target_fileio calls.
2203 (linux_find_memory_regions_full): Likewise.
2204 (linux_fill_prpsinfo): Likewise.
2205 * remote.c (remote_filesystem_is_local): Supply inf
2206 argument to remote_hostio_open.
2207 (remote_file_put): Likewise.
2208 (remote_file_get): Likewise.
2209 (remote_file_delete): Supply inf argument to
2210 remote_hostio_unlink.
2212 2015-06-10 Gary Benson <gbenson@redhat.com>
2214 * inf-child.c (inf_child_fileio_open): Replace comment.
2215 (inf_child_fileio_pwrite): Likewise.
2216 (inf_child_fileio_pread): Likewise.
2217 (inf_child_fileio_fstat): Insert blank line before comment.
2218 (inf_child_fileio_close): Replace comment.
2219 (inf_child_fileio_unlink): Likewise.
2220 (inf_child_fileio_readlink): Likewise.
2221 * remote.c (remote_hostio_open): Likewise.
2222 (remote_hostio_pread): Likewise.
2223 (remote_hostio_pwrite): Likewise.
2224 (remote_hostio_close): Likewise.
2225 (remote_hostio_unlink): Likewise.
2226 (remote_hostio_readlink): Likewise.
2227 (remote_hostio_fstat): Likewise.
2228 (remote_filesystem_is_local): Likewise.
2229 * target.c (target_fileio_open): Likewise.
2230 (target_fileio_pwrite): Likewise.
2231 (target_fileio_pread): Likewise.
2232 (target_fileio_fstat): Insert blank line before comment.
2233 (target_fileio_close): Replace comment.
2234 (target_fileio_unlink): Likewise.
2235 (target_fileio_readlink): Likewise.
2236 (target_fileio_read_alloc): Likewise.
2237 (target_fileio_read_stralloc): Likewise.
2239 2015-06-10 Gary Benson <gbenson@redhat.com>
2241 * linux-thread-db.c (nat/linux-namespaces.h): New include.
2242 (check_pid_namespace_match): Use linux_ns_same rather than
2243 linux_proc_pid_get_ns to spot PID namespace mismatches.
2244 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
2245 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
2247 2015-06-10 Gary Benson <gbenson@redhat.com>
2249 * configure.ac (AC_CHECK_FUNCS): Add setns.
2250 * config.in: Regenerate.
2251 * configure: Likewise.
2252 * nat/linux-namespaces.h: New file.
2253 * nat/linux-namespaces.c: Likewise.
2254 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
2255 (linux-namespaces.o): New rule.
2256 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
2257 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2258 * config/arm/linux.mh (NATDEPFILES): Likewise.
2259 * config/i386/linux.mh (NATDEPFILES): Likewise.
2260 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2261 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2262 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2263 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2264 * config/mips/linux.mh (NATDEPFILES): Likewise.
2265 * config/pa/linux.mh (NATDEPFILES): Likewise.
2266 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2267 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2268 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2269 * config/s390/linux.mh (NATDEPFILES): Likewise.
2270 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2271 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2272 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2273 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2275 2015-06-10 Gary Benson <gbenson@redhat.com>
2277 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
2278 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
2279 (make_cleanup_close): Likewise.
2280 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
2281 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
2282 (make_cleanup_close): Likewise.
2284 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2286 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
2287 from SuspendThread().
2289 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2291 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
2292 from OutputDebugString.
2294 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2295 Mircea Gherzan <mircea.gherzan@intel.com>
2297 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
2298 MPX_BT_MASK_32): New macros.
2299 (i386_mpx_set_bounds): New function that implements
2300 the command "set-mpx-bound".
2301 (i386_mpx_enabled): Helper function to test MPX availability.
2302 (i386_mpx_bd_base): Helper function to calculate the base directory
2304 (i386_mpx_get_bt_entry): Helper function to access a bound
2306 (i386_mpx_print_bounds): Effectively display bound information.
2307 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
2309 (_initialize_i386_tdep):
2310 Add "bound" to the commands "show mpx" and "set mpx" commands.
2311 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
2312 and "show mpx" commands.
2313 * NEWS: List new commands for MPX support.
2315 2015-06-09 Gary Benson <gbenson@redhat.com>
2317 * common/fileio.h (fileio_to_host_mode): New declaration.
2318 * common/fileio.c (fileio_to_host_mode): New Function.
2319 * inf-child.c (inf_child_fileio_open): Process mode argument
2320 with fileio_to_host_mode.
2322 2015-06-09 Gary Benson <gbenson@redhat.com>
2324 * common/fileio.c (fileio_mode_pack): Fix preprocessor
2327 2015-06-05 Gary Benson <gbenson@redhat.com>
2329 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
2330 * remote.c (remote_filesystem_is_local): ...here.
2332 2015-06-04 Yao Qi <yao.qi@linaro.org>
2334 * gdbarch.c: Regenerate it.
2336 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2338 * arch-utils.c (default_infcall_munmap): New.
2339 * arch-utils.h (default_infcall_munmap): New declaration.
2340 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
2341 (munmap_list_free, munmap_listp_free_cleanup): New.
2342 (struct setup_sections_data): Add field munmap_list_headp.
2343 (setup_sections): Call munmap_list_add.
2344 (compile_object_load): New variable munmap_list_head, initialize
2345 setup_sections_data.munmap_list_headp, return munmap_list_head.
2346 * compile/compile-object-load.h (struct munmap_list): New declaration.
2347 (struct compile_module): Add field munmap_list_head.
2348 (munmap_list_free): New declaration.
2349 * compile/compile-object-run.c (struct do_module_cleanup): Add field
2351 (do_module_cleanup): Call munmap_list_free.
2352 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
2353 * gdbarch.c: Regenerate.
2354 * gdbarch.h: Regenerate.
2355 * gdbarch.sh (infcall_munmap): New.
2356 * linux-tdep.c (linux_infcall_munmap): New.
2357 (linux_init_abi): Install it.
2359 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
2362 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
2364 2015-06-02 Yao Qi <yao.qi@linaro.org>
2366 * i386-linux-nat.c: Include linux-nat.h.
2368 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
2369 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
2374 * dwarf2loc.c (chain_candidate): Likewise.
2376 2015-06-01 Yao Qi <yao.qi@linaro.org>
2378 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
2379 (store_vfp_regs): Use PTRACE_SETREGSET.
2381 2015-06-01 Yao Qi <yao.qi@linaro.org>
2383 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
2384 (fetch_fpregs): Likewise.
2385 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
2386 (store_fpregs): Likewise.
2388 2015-06-01 Yao Qi <yao.qi@linaro.org>
2390 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
2391 (fetch_regs): Likewise.
2392 (store_regs): Use PTRACE_SETREGSET.
2393 (store_register): Likewise.
2395 2015-06-01 Yao Qi <yao.qi@linaro.org>
2397 * arm-linux-nat.c (arm_linux_read_description): Check whether
2398 kernel supports PTRACE_GETREGSET.
2400 2015-06-01 Yao Qi <yao.qi@linaro.org>
2402 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
2403 * linux-nat.c: ... here.
2404 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
2406 * linux-nat.h: ... here.
2408 2015-06-01 Yao Qi <yao.qi@linaro.org>
2410 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
2411 * i386-linux-nat.c: Likewise.
2412 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
2413 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
2414 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2415 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
2416 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2418 2015-05-30 Eli Zaretskii <eliz@gnu.org>
2420 * go32-nat.c (go32_xfer_memory): Fix the return value to be
2421 compatible to what read_child and write_child return. This
2422 unbreaks that DJGPP build of GDB which was broken since v7.7.
2424 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
2426 * MAINTAINERS (Write After Approval): Add Martin Galvan.
2428 2015-05-29 Roland McGrath <mcgrathr@google.com>
2431 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
2432 rather than internal_error for an unrecognized value.
2434 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
2436 * xtensa-tdep.c (xtensa_pseudo_register_read)
2437 (xtensa_pseudo_register_write): Don't alias last pseudo register
2440 2015-05-28 Don Breazeal <donb@codesourcery.com>
2442 * infrun.c (follow_fork_inferior): Ensure the use of
2443 process-style ptids (pid,0,0) in verbose/debug "Detaching"
2446 2015-05-28 Doug Evans <dje@google.com>
2448 * dwarf2read.c (record_line_ftype): Remove, duplicate.
2450 2015-05-28 Yao Qi <yao.qi@linaro.org>
2452 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
2453 (arm_linux_fetch_inferior_registers): Use
2454 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
2455 (arm_linux_store_inferior_registers): Likewise.
2456 (arm_linux_read_description): Don't set
2457 arm_linux_has_wmmx_registers.
2458 * arm-tdep.c (arm_gdbarch_init): Set
2459 tdep->have_wmmx_registers according target descriptions.
2460 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
2463 2015-05-28 Yao Qi <yao.qi@linaro.org>
2465 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
2466 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
2467 instead of arm_linux_vfp_register_count.
2468 (store_vfp_regs): Likewise.
2469 (arm_linux_fetch_inferior_registers): Likewise.
2470 (arm_linux_store_inferior_registers): Likewise.
2471 (arm_linux_read_description): Don't set
2472 arm_linux_vfp_register_count.
2473 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
2475 * arm-tdep.c (arm_gdbarch_init): Add assert on
2477 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
2478 field to vfp_register_count. All users updated.
2480 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
2482 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
2483 ELFOSABI_GNU binaries.
2485 2015-05-27 Doug Evans <dje@google.com>
2487 * dwarf2read.c (lnp_state_machine): New typedef.
2488 (lnp_reader_state): New typedef.
2489 (dwarf_record_line_1): Renamed from dwarf_record_line.
2490 All callers updated.
2491 (dwarf_record_line): New function.
2492 (init_lnp_state_machine): New function.
2493 (check_line_address): Replace p_record_line parameter with state.
2494 All callers updated.
2495 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
2496 Update to record state in lnp_state_machine.
2498 2015-05-27 Doug Evans <dje@google.com>
2500 * dwarf2read.c (record_line_ftype): New typedef.
2501 (check_line_address): New function.
2502 (dwarf_decode_lines_1): Call it.
2504 2015-05-27 Doug Evans <dje@google.com>
2506 * NEWS: Mention "set debug dwarf-line".
2507 * dwarf2read.c (dwarf_line_debug): New static global.
2508 (add_include_dir): Add debug dwarf-line support.
2509 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
2510 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
2512 2015-05-27 Doug Evans <dje@google.com>
2514 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
2515 All callers updated.
2516 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
2517 * cp-support.h (cp_lookup_nested_symbol): Update.
2519 2015-05-27 Doug Evans <dje@google.com>
2522 * block.c (block_find_symbol): New function.
2523 (block_find_non_opaque_type): Ditto.
2524 (block_find_non_opaque_type_preferred): Ditto.
2525 * block.h (block_symbol_matcher_ftype): New typedef.
2526 (block_find_symbol): Declare.
2527 (block_find_non_opaque_type): Ditto.
2528 (block_find_non_opaque_type_preferred): Ditto.
2529 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
2530 * psymtab.c (psym_lookup_symbol): Ditto.
2531 * symtab.c (basic_lookup_transparent_type_1): New function.
2532 (basic_lookup_transparent_type): Call it.
2534 2015-05-27 Yao Qi <yao.qi@linaro.org>
2536 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
2537 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
2539 2015-05-27 Yao Qi <yao.qi@linaro.org>
2541 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
2543 (aarch64_record_load_store): Likewise.
2545 2015-05-26 Doug Evans <dje@google.com>
2547 PR c++/18141, c++/18417.
2548 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
2551 2015-05-26 Doug Evans <dje@google.com>
2553 * NEWS: Add entries for command renamings.
2554 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
2556 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
2557 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
2559 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
2560 All callers updated. Fix spelling of DWARF in help text.
2561 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
2563 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
2565 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
2566 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
2567 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
2569 (show_dwarf_always_disassemble): Renamed from
2570 show_dwarf2_always_disassemble. All callers updated.
2571 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
2572 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
2573 "set/show dwarf max-cache-age". Rename
2574 "set/show dwarf2 always-disassemble" to
2575 "set/show dwarf always-disassemble". Rename
2576 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
2577 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
2579 2015-05-26 Doug Evans <dje@google.com>
2582 * python/py-lazy-string.c (stpy_convert_to_value): Use
2583 gdbpy_gdb_memory_error not PyExc_MemoryError.
2584 (gdbpy_create_lazy_string_object): Ditto.
2586 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2588 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
2590 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2592 * tui/tui-regs.c (tui_reg_prev_command): New function.
2593 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
2594 * reggroups.c (reggroup_prev): New function.
2595 * reggroups.h (reggroup_prev): Add declaration. Update comment.
2597 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
2598 Yao Qi <yao.qi@linaro.org>
2600 * aarch64-linux-tdep.c: Include linux-record.h and
2602 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
2603 (aarch64_syscall): New enum.
2604 (aarch64_canonicalize_syscall): New function.
2605 (aarch64_all_but_pc_registers_record): New function.
2606 (aarch64_linux_syscall_record): New function.
2607 (aarch64_linux_init_abi): Install AArch64 process record
2608 handler. Update to handle syscall recording.
2609 * aarch64-tdep.c: Include record.h and record-full.h.
2610 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
2611 (struct aarch64_mem_r): Define.
2612 (aarch64_record_result): New enum.
2613 (struct insn_decode_record): Define.
2614 (insn_decode_record): New typedef.
2615 (aarch64_record_data_proc_reg): New function.
2616 (aarch64_record_data_proc_imm): New function.
2617 (aarch64_record_branch_except_sys): New function.
2618 (aarch64_record_load_store): New function.
2619 (aarch64_record_data_proc_simd_fp): New function.
2620 (aarch64_record_asimd_load_store): New function.
2621 (aarch64_record_decode_insn_handler): New function.
2622 (deallocate_reg_mem): New function.
2623 (aarch64_process_record): New function.
2624 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
2626 (aarch64_process_record): New extern declaration.
2627 * configure.tgt: Add linux-record.o to gdb_target_obs.
2628 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
2630 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
2632 * NEWS: Add a note on process record-replay support on aarch64*-linux*
2635 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
2637 * amd64-tdep.c: Replace in_function_epilogue_p with
2638 stack_frame_destroyed_p throughout.
2639 * arch-utils.c: Ditto.
2640 * arch-utils.h: Ditto.
2641 * arm-tdep.c: Ditto.
2642 * breakpoint.c: Ditto.
2643 * gdbarch.sh: Ditto.
2644 * hppa-tdep.c: Ditto.
2645 * i386-tdep.c: Ditto.
2646 * mips-tdep.c: Ditto.
2647 * nios2-tdep.c: Ditto.
2648 * rs6000-tdep.c: Ditto.
2649 * s390-linux-tdep.c: Ditto.
2650 * score-tdep.c: Ditto.
2652 * sparc-tdep.c: Ditto.
2653 * sparc-tdep.h: Ditto.
2654 * sparc64-tdep.c: Ditto.
2655 * spu-tdep.c: Ditto.
2656 * tic6x-tdep.c: Ditto.
2657 * tilegx-tdep.c: Ditto.
2658 * xstormy16-tdep.c: Ditto.
2659 * gdbarch.c, gdbarch.h: Re-generated.
2661 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2663 * NEWS: Mention 'tui enable' and 'tui disable'.
2664 * tui/tui.c (tui_enable_command): New function.
2665 (tui_disable_command): New function.
2666 (_initialize_tui): New function.
2668 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2670 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
2672 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2674 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
2677 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2679 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
2681 (tui_set_layout_for_display_command): ...here, before calling
2682 tui_set_layout. Only set the layout if gdb has not already
2683 entered the TUI_FAILURE state.
2685 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2687 * tui/tui-layout.c (layout_completer): New function.
2688 (_initialize_tui_layout): Set completer on layout command.
2690 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2692 * tui/tui-layout.c (tui_set_layout): Remove
2693 tui_register_display_type parameter. Remove all checking of this
2694 parameter, and reindent function. Update header comment.
2695 (tui_set_layout_for_display_command): Rename to...
2696 (tui_set_layout_by_name): ...this, and don't check for different
2697 register class types, don't pass a tui_register_display_type to
2698 tui_set_layout. Update header comment.
2699 (layout_names): Remove register set specific names.
2700 * tui/tui-layout.h (tui_set_layout): Remove
2701 tui_register_display_type parameter.
2702 * tui/tui.c (tui_rl_change_windows): Don't pass a
2703 tui_register_display_type to tui_set_layout.
2704 (tui_rl_delete_other_windows): Likewise.
2705 (tui_enable): Likewise.
2706 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
2707 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
2708 (TUI_GENERAL_REGS_NAME): Remove.
2709 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
2710 (TUI_SPECIAL_REGS_NAME): Remove.
2711 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
2712 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
2713 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
2714 (enum tui_register_display_type): Remove.
2715 (struct tui_layout_def): Remove regs_display_type and
2716 float_regs_display_type fields.
2717 (struct tui_data_info): Remove regs_display_type field.
2718 (tui_layout_command): Use new name for
2719 tui_set_layout_for_display_command.
2720 * tui/tui-data.c (layout_def): Don't initialise removed fields.
2721 (tui_clear_win_detail): Don't initialise removed fields of
2723 * tui/tui-regs.c (tui_show_registers): Use new name for
2724 tui_set_layout_for_display_command.
2725 * tui/tui.h (tui_set_layout_for_display_command): Rename
2727 (tui_set_layout_by_name): ...this.
2728 * printcmd.c (display_command): Remove tui related layout call,
2731 2015-05-20 Joel Brobecker <brobecker@adacore.com>
2733 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
2734 (handle_inferior_event): New function.
2736 2015-05-20 Joel Brobecker <brobecker@adacore.com>
2738 * ada-lang.c (to_fixed_array_type): Rename local variable
2739 typename into type_name.
2741 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2743 Fix ASAN crash for gdb.compile/compile.exp.
2744 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
2746 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2748 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
2749 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
2750 * compile/compile-object-load.c (setup_sections, compile_object_load):
2752 * compile/compile.c (compile_to_object): Likewise.
2754 2015-05-16 Doug Evans <xdje42@gmail.com>
2756 * NEWS: Mention support for unbuffered Guile memory ports.
2757 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
2758 (ioscm_lseek_address): Improve overflow calculation.
2759 (gdbscm_memory_port_fill_input): Add assert.
2760 (gdbscm_memory_port_write): Handle unbuffered ports.
2761 Handle large writes identical to Guile's fport_write.
2762 (gdbscm_memory_port_seek): Fix seeking past end check.
2763 (gdbscm_memory_port_close): Handle closing unbuffered port.
2764 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
2765 (ioscm_init_memory_port): Handle unbuffered ports.
2766 (ioscm_reinit_memory_port): Ditto.
2767 (ioscm_init_memory_port): Update size calculation.
2768 (gdbscm_open_memory): Support zero sized ports.
2770 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2772 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
2773 variable compiler warnings.
2775 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2777 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
2779 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2780 Phil Muldoon <pmuldoon@redhat.com>
2782 * NEWS (Changes since GDB 7.9): Add compile print.
2783 * compile/compile-c-support.c (add_code_header, add_code_footer)
2784 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
2785 COMPILE_I_PRINT_VALUE_SCOPE.
2786 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
2787 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
2789 * compile/compile-object-load.c: Include block.h.
2790 (get_out_value_type): New function.
2791 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2792 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
2794 * compile/compile-object-load.h (struct compile_module): Add fields
2795 out_value_addr and out_value_type.
2796 * compile/compile-object-run.c: Include valprint.h and compile.h.
2797 (struct do_module_cleanup): Add fields out_value_addr and
2799 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2800 COMPILE_I_PRINT_VALUE_SCOPE.
2801 (compile_object_run): Propagate out_value_addr and out_value_type.
2802 Pass OUT_VALUE_ADDR.
2803 * compile/compile.c: Include valprint.h.
2804 (compile_print_value, compile_print_command): New functions.
2805 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
2806 (_initialize_compile): Update compile code help text. Install
2807 compile_print_command.
2808 * compile/compile.h (compile_print_value): New prototype.
2809 * defs.h (enum compile_i_scope_types): Add
2810 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
2812 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2814 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
2815 Rely on its parameter count.
2816 (compile_object_load): Replace lookup_minimal_symbol_text by
2817 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
2819 * compile/compile-object-load.h (struct compile_module): Replace
2820 func_addr by func_sym.
2821 * compile/compile-object-run.c: Include block.h.
2822 (compile_object_run): Reset module variable after it is freed. Use
2823 FUNC_SYM instead of FUNC_ADDR. Rely on it.
2825 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2827 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
2828 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
2829 (c_compute_program): Call generate_register_struct after typedefs.
2830 * compile/compile-loc2c.c (push, pushf_register_address)
2831 (pushf_register): Cast to GCC_UINTPTR.
2832 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
2833 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
2834 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
2835 * compile/compile.c (_initialize_compile): Enable warnings for
2838 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2840 * cli/cli-script.c (execute_control_command): Update
2841 eval_compile_command caller.
2842 * compile/compile-object-load.c (compile_object_load): Add parameters
2843 scope and scope_data. Set them.
2844 * compile/compile-object-load.h (struct compile_module): Add fields
2845 scope and scope_data.
2846 (compile_object_load): Add parameters scope and scope_data.
2847 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
2848 scope and scope_data.
2849 (compile_object_run): Propagate the fields scope and scope_data.
2850 * compile/compile.c (compile_file_command, compile_code_command):
2851 Update eval_compile_command callers.
2852 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
2853 * compile/compile.h (eval_compile_command): Add parameter scope_data.
2854 * defs.h (struct command_line): Add field scope_data.
2856 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2858 * printcmd.c (struct format_data): Move it to valprint.h.
2859 (print_command_parse_format, print_value): New functions from ...
2860 (print_command_1): ... here. Call them.
2861 * valprint.h (struct format_data): Move it here from printcmd.c.
2862 (print_command_parse_format, print_value): New declarations.
2864 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2866 * compile/compile-object-load.c (compile_object_load): Add
2867 COMPILE_DEBUG message.
2869 2015-05-15 Jerome Guitton <guitton@adacore.com>
2871 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
2872 index to get element instead of enum value.
2873 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
2874 of index to compute length, but enum values to compute bounds.
2875 (ada_array_length): Use enum position of index instead of enum value.
2876 (pos_atr): Move position computation to...
2877 (ada_evaluate_subexp): Use enum values to compute bounds.
2878 * gdbtypes.c (discrete_position): ...this new function.
2879 * gdbtypes.h (discrete_position): New function declaration.
2880 * valprint.c (val_print_array_elements): Call discrete_position
2881 to handle array indexed by non-contiguous enumeration types.
2883 2015-05-15 Jerome Guitton <guitton@adacore.com>
2885 * ada-lang.c (find_parallel_type_by_descriptive_type):
2886 Go through typedefs during lookup.
2887 (to_fixed_array_type): Add support for non-bit packed arrays
2888 as variable-length fields.
2890 2015-05-15 Pedro Alves <palves@redhat.com>
2891 Simon Marchi <simon.marchi@ericsson.com>
2893 * event-loop.c (gdb_notifier) <next_file_handler,
2894 next_poll_fds_index>: New fields.
2895 (get_next_file_handler_to_handle_and_advance): New function.
2896 (delete_file_handler): If deleting the next file handler to
2897 handle, advance to the next file handler.
2898 (gdb_wait_for_event): Bail early if no event fired. Poll file
2899 handlers in round-robin fashion.
2901 2015-05-15 Pedro Alves <palves@redhat.com>
2903 * linux-tdep.c (linux_find_memory_regions_full): Rename local
2904 'private' to 'priv'.
2906 2015-05-15 Pedro Alves <palves@redhat.com>
2908 * nat/linux-nat.h: Include "target/waitstatus.h".
2910 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
2912 * python/py-unwind.c (struct reg_info): Move out of ...
2913 (struct cached_frame_info): ... this scope.
2914 (pending_frame_object_type, unwind_info_object_type): Make extern.
2916 2015-05-15 Joel Brobecker <brobecker@adacore.com>
2918 * ada-lang.c (ada_value_primitive_packed_val): Make sure
2919 accumSize is never negative.
2921 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
2923 * tui/tui-command.c: Remove include of <ctype.h>.
2924 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
2926 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
2928 * dwarf2read.c (die_needs_namespace): Return 1 for
2929 DW_TAG_inlined_subroutine.
2931 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2933 * regcache.c (regcache_cpy_no_passthrough): New declaration.
2934 (regcache_cpy_no_passthrough): Make it static, add function comment.
2935 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
2936 (regcache_cpy_no_passthrough): Remove declaration.
2938 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2940 * gdbthread.h (struct thread_control_state): Update comment for
2942 * infcall.c (run_inferior_call): Update comment about
2944 * infcmd.c (get_return_value): Update comment about stop_registers.
2945 (finish_forward): Update comment about proceed_to_finish.
2946 * infrun.c (stop_registers): Remove.
2947 (clear_proceed_status, normal_stop): Remove stop_registers handling.
2948 * infrun.h (stop_registers): Remove.
2950 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2952 * infcall.c (struct dummy_frame_context_saver)
2953 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
2954 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
2955 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
2957 (call_function_by_hand_dummy): Move discard_cleanups of
2958 inf_status_cleanup before dummy_frame_push. Call
2959 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
2960 Use dummy_frame_context_saver_get_regs instead of stop_registers.
2961 * infcall.h (struct dummy_frame_context_saver)
2962 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
2963 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
2965 * infcmd.c: Include infcall.h.
2966 (get_return_value): Add parameter ctx_saver, use it instead of
2968 (print_return_value): Add parameter ctx_saver, pass it.
2969 (struct finish_command_continuation_args): Add field ctx_saver.
2970 (finish_command_continuation): Update print_return_value caller.
2971 (finish_command_continuation_free_arg): Free also ctx_saver.
2972 (finish_forward): Call dummy_frame_context_saver_setup.
2973 * inferior.h (struct dummy_frame_context_saver): New declaration.
2974 (get_return_value): Add parameter ctx_saver.
2975 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
2976 get_return_value caller.
2978 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2980 * dummy-frame.c (struct dummy_frame_dtor_list): New.
2981 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
2982 (remove_dummy_frame): Process dtor_list.
2983 (pop_dummy_frame): Process dtor_list.
2984 (register_dummy_frame_dtor): Maintain dtor_list.
2985 (find_dummy_frame_dtor): Handle dtor_list.
2986 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
2989 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2991 * compile/compile-object-run.c (do_module_cleanup): Add parameter
2993 (compile_object_run): Update do_module_cleanup caller.
2994 * dummy-frame.c: Include infcall.h.
2995 (struct dummy_frame): Update dtor comment.
2996 (remove_dummy_frame): Call dtor.
2997 (pop_dummy_frame): Update dtor caller.
2998 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
3001 2015-05-13 Joel Brobecker <brobecker@adacore.com>
3005 2015-05-13 Joel Brobecker <brobecker@adacore.com>
3007 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
3008 Xmethods now being able to specify a result type to that new
3011 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3013 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
3014 first before resizing the window.
3015 * tui/tui.c (tui_enable): Likewise.
3017 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3019 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
3020 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
3021 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
3022 dummy_dtor parameter.
3023 * infcall.h: Include dummy-frame.h.
3024 (call_function_by_hand_dummy_dtor_ftype): Remove.
3025 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
3028 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3031 * top.c (history_size_setshow_var): Change type to signed.
3032 Initialize to -2. Update documentation.
3033 (set_readline_history_size): Define.
3034 (set_history_size_command): Use it. Remove logic for handling
3036 (init_history): Use set_readline_history_size(). Test for a
3037 value of -2 instead of 0 when determining whether to set a
3038 default history size.
3039 (init_main): Decode the argument of the "size" command as a
3040 zuinteger_unlimited.
3042 2015-05-12 Doug Evans <dje@google.com>
3044 * dwarf2read.c (struct file_entry): Tweak comments.
3045 (get_debug_line_section): Tweak comments.
3047 2015-05-12 Don Breazeal <donb@codesourcery.com>
3049 * NEWS: Announce fork support in the RSP and support
3050 for fork debugging in extended mode.
3052 2015-05-12 Don Breazeal <donb@codesourcery.com>
3054 * remote.c (remote_insert_fork_catchpoint): New function.
3055 (remote_remove_fork_catchpoint): New function.
3056 (remote_insert_vfork_catchpoint): New function.
3057 (remote_remove_vfork_catchpoint): New function.
3058 (pending_fork_parent_callback): New function.
3059 (remove_new_fork_child): New function.
3060 (remote_update_thread_list): Call remote_notif_get_pending_events
3061 and remove_new_fork_child.
3062 (extended_remote_kill): Kill fork child when killing the
3063 parent before follow_fork completes.
3064 (init_extended_remote_ops): Initialize target vector with
3065 new fork catchpoint functions.
3067 2015-05-12 Don Breazeal <donb@codesourcery.com>
3069 * remote.c (remove_vfork_event_p): New function.
3070 (remote_follow_fork): Add vfork event type to event checking.
3071 (remote_parse_stop_reply): New stop reasons "vfork" and
3072 "vforkdone" for RSP 'T' Stop Reply Packet.
3074 2015-05-12 Don Breazeal <donb@codesourcery.com>
3076 * linux-nat.c (linux_nat_ptrace_options): New function.
3077 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
3078 Call linux_nat_ptrace_options and use different argument to
3079 linux_enable_event_reporting.
3080 (_initialize_linux_nat): Delete call to
3081 linux_ptrace_set_additional_flags.
3082 * nat/linux-ptrace.c (current_ptrace_options): Rename to
3083 supported_ptrace_options.
3084 (additional_flags): Delete variable.
3085 (linux_check_ptrace_features): Use supported_ptrace_options.
3086 (linux_test_for_tracesysgood, linux_test_for_tracefork):
3087 Likewise, and remove additional_flags check.
3088 (linux_enable_event_reporting): Change 'attached' argument to
3089 'options'. Use supported_ptrace_options.
3090 (ptrace_supports_feature): Change comment. Use
3091 supported_ptrace_options.
3092 (linux_ptrace_set_additional_flags): Delete function.
3093 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3094 Delete function prototype.
3095 * remote.c (remote_fork_event_p): New function.
3096 (remote_detach_pid): New function.
3097 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
3098 if doing detach-on-fork.
3099 (remote_follow_fork): New function.
3100 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
3101 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
3102 (init_extended_remote_ops): Initialize to_follow_fork.
3104 2015-05-12 Don Breazeal <donb@codesourcery.com>
3106 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
3107 from static to extern.
3108 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
3109 * remote.c (anonymous enum): <PACKET_fork_event_feature,
3110 * PACKET_vfork_event_feature>: New enumeration constants.
3111 (remote_protocol_features): Add table entries for new packets.
3112 (remote_query_supported): Add new feature queries to qSupported
3115 2015-05-12 Gary Benson <gbenson@redhat.com>
3117 * remote.c (remote_add_inferior): Call exec_file_locate_attach
3118 for fake PIDs as well as real ones.
3119 (remote_pid_to_exec_file): Send empty annex if PID is fake.
3121 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
3123 * NEWS (Python Scripting): Mention the new gdb.Value methods.
3124 * python/py-value.c (valpy_reference_value): New function.
3125 (valpy_const_value): Likewise.
3126 (value_object_methods): Add new methods.
3127 * value.c (make_cv_value): New function.
3128 * value.h (make_cv_value): Declare.
3130 2015-05-08 Yao Qi <yao@codesourcery.com>
3131 Sandra Loosemore <sandra@codesourcery.com>
3133 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
3134 to 'lh->include_dirs' before accessing to it.
3135 (psymtab_include_file_name): Likewise.
3136 (dwarf_decode_lines_1): Likewise.
3137 (dwarf_decode_lines): Likewise.
3138 (file_file_name): Likewise.
3140 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3142 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
3143 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
3144 (nios2_linux_rt_sigreturn_init): Adjust base address of
3147 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3149 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
3150 "trap 31" as the breakpoint instruction on all targets.
3152 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3154 * infcmd.c (print_return_value): Remove unused declaration.
3156 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3158 * dwarf2read.c (attr_to_dynamic_prop)
3159 <DW_AT_data_member_location>: Use read_type_die isntead of
3162 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3164 * ada-lang.c (ada_convert_actual): Add handling of formals
3165 passed inside an aligner type.
3167 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3169 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
3171 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
3174 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
3175 Print xmethod matcher status.
3177 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
3179 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
3180 register in the regcache when treating the PSWM register, and vice
3183 2015-05-07 Gary Benson <gbenson@redhat.com>
3185 * linux-thread-db.c (struct thread_db_info)
3186 <td_ta_map_id2thr_p>: Remove field.
3187 (try_thread_db_load_1): Remove initialization for the above.
3189 2015-05-07 Gary Benson <gbenson@redhat.com>
3191 * linux-thread-db.c (struct thread_db_info)
3192 <td_thr_validate_p>: Remove field.
3193 (try_thread_db_load_1): Remove initialization for the above.
3195 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3197 * compile/compile-object-load.c (compile_object_load): Support
3200 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3202 * compile/compile.c (compile_to_object): Make the cmd_string parameter
3203 const. Use new variables for the const compatibility.
3204 (eval_compile_command): Make the cmd_string parameter const.
3205 * compile/compile.h (eval_compile_command): Make the cmd_string
3208 2015-05-06 Joel Brobecker <brobecker@adacore.com>
3210 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
3212 * top.c (deprecated_init_ui_hook): Delete.
3213 (gdb_init): Remove handling of deprecated_init_ui_hook.
3214 * interps.c (clear_interpreter_hooks): Remove handling of
3215 deprecated_init_ui_hook.
3216 * main.c (captured_main): Update comment.
3218 2015-05-06 Joel Brobecker <brobecker@adacore.com>
3220 * solib.c (_initialize_solib): Add "info dll" alias creation.
3221 * windows-nat.c (set_windows_aliases): Delete.
3222 (_initialize_windows_nat): Remove deprecated_init_ui_hook
3224 * NEWS: Add news entry about "info dll" now being available
3227 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3229 * ada-lang.c (value_assign_to_component): Reformat and improve
3230 documentation. Remove all trailing spaces.
3232 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3234 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3235 Stop counting inlined frames as soon as an out-of-line function
3238 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
3240 * dwarf2read.c (inherit_abstract_dies): Skip
3241 DW_TAG_GNU_call_site dies while inheriting children of an
3242 abstract DIE into a scope.
3243 (read_lexical_block_scope): Inherit abstract DIE's for
3246 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3248 * ada-valprint.c (val_print_packed_array_elements): Delete
3249 variable "len". Add a type-length check when comparing two
3250 consecutive elements of the array. Use the element's actual
3251 length in call to value_contents_eq.
3252 * ada-lang.c (ada_value_primitive_packed_val): Always return
3253 a value whose type has been resolved.
3255 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3257 * ada-lang.c (ada_value_primitive_packed_val): Recompute
3258 BIT_SIZE and LEN if the size of the resolved type is smaller
3259 than BIT_SIZE * HOST_CHAR_BIT.
3261 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3263 * ada-lang.c (ada_value_primitive_packed_val): Use a more
3264 correct address in call to value_at. Adjust call to
3265 value_address accordingly.
3267 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3269 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
3272 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3274 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
3275 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
3277 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
3278 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
3279 (resolve_dynamic_type_internal): Set pinfo.valaddr.
3280 Add handling of addr_stack->valaddr.
3281 (resolve_dynamic_type): Add "valaddr" parameter.
3282 Set pinfo.valaddr field.
3283 * ada-lang.c (ada_discrete_type_high_bound): Update call to
3284 resolve_dynamic_type.
3285 (ada_discrete_type_low_bound): Likewise.
3286 * findvar.c (default_read_var_value): Likewise.
3287 * value.c (value_from_contents_and_address): Likewise.
3289 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3291 * gdbtypes.c (resolve_dynamic_array): Use
3292 create_array_type_with_stride instead of create_array_type.
3294 2015-04-30 DJ Delorie <dj@redhat.com>
3296 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
3299 2015-04-29 Doug Evans <dje@google.com>
3302 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
3303 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
3304 EVAL_AVOID_SIDE_EFFECTS for xmethods.
3305 * extension-priv.h (struct extension_language_ops)
3306 <get_xmethod_result_type>: New member.
3307 * extension.c (get_xmethod_result_type): New function.
3308 * extension.h (get_xmethod_result_type): Declare.
3309 * python/py-xmethods.c (get_result_type_method_name): New static
3311 (py_get_result_type_method_name): Ditto.
3312 (gdbpy_get_xmethod_result_type): New function.
3313 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
3314 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
3315 * python/python.c (python_extension_ops): Add
3316 gdbpy_get_xmethod_result_type.
3317 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
3318 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
3320 (value_x_unop): Ditto.
3321 * value.c (result_type_of_xmethod): New function.
3322 * value.h (result_type_of_xmethod): Declare.
3324 2015-04-29 Gary Benson <gbenson@redhat.com>
3326 * solib.c (solib_find_1): Allow fd argument to be NULL.
3327 (exec_file_find): Update comment.
3328 (solib_find): Likewise.
3329 * exec.c (exec_file_locate_attach): Use NULL as fd
3330 argument to exec_file_find to avoid having to close
3332 * infrun.c (follow_exec): Likewise.
3334 2015-04-28 Doug Evans <dje@google.com>
3337 * python/lib/gdb/printing.py (register_pretty_printer): Handle
3338 name or __name__ attributes. Handle gdb module as first argument.
3340 2015-04-28 Doug Evans <dje@google.com>
3343 * python/py-prettyprint.c (print_children): Verify result of children
3344 iterator. Provide better error message.
3345 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
3346 * python/python.c (gdbpy_print_python_errors_p): New function.
3348 2015-04-28 Doug Evans <dje@google.com>
3350 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
3352 2015-04-28 Sasha Smundak <asmundak@google.com>
3354 * NEWS: Mention gdb.Type.optimized_out method.
3355 * python/py-type.c (typy_optimized_out): New function.
3357 2015-04-28 John Baldwin <jhb@FreeBSD.org>
3359 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3361 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3363 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
3364 (initialize_utils): Move call of init_page_info() to ...
3365 * top.c (gdb_init): ... here.
3367 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3369 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
3370 (tui_sigwinch_handler): Still update our idea of
3371 the terminal's width and height even when TUI is not active.
3373 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3375 * utils.h (set_screen_width_and_height): Declare.
3376 * utils.c (set_screen_width_and_height): Define.
3377 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
3379 2015-04-28 Gary Benson <gbenson@redhat.com>
3381 * infrun.c (solist.h): New include.
3382 (follow_exec): Use exec_file_find to prefix execd_pathname
3385 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3387 * tui/tui-source.c (tui_set_source_content): Avoid calling
3388 strcpy() when offset is 0.
3390 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3393 * tui/tui-data.c (tui_free_window): Don't free the locator
3394 window when passed an SRC_WIN or a DISASSEM_WIN.
3396 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3398 * tui/tui-data.h (struct tui_win_element): Forward-declare.
3399 (tui_win_content): Move declaration.
3400 (struct tui_gen_win_info): Give 'content' field the
3401 type tui_win_content.
3402 * tui/tui-data.c (init_content_element): Remove redundant and
3404 (tui_add_content_elements): Remove erroneous cast.
3405 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
3407 (tui_get_begin_asm_address): Likewise.
3408 * tui/tui-regs.c (tui_show_registers): Likewise.
3409 (tui_show_register_group): Likewise.
3410 (tui_display_registers_from): Likewise.
3411 (tui_check_register_values): Likewise.
3412 * tui/tui-source.c (tui_set_source_content): Likewise.
3413 (tui_set_source_content_nil): Likewise.
3414 (tui_source_is_displayed): Likewise.
3415 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3416 (tui_set_locator_fullname): Likewise.
3417 (tui_set_locator_info): Likewise.
3418 (tui_show_frame_info): Likewise.
3419 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
3420 (tui_show_source_line): Likewise.
3421 (tui_horizontal_source_scroll): Likewise.
3422 (tui_update_breakpoint_info): Likewise.
3423 (tui_set_exec_info_content): Likewise.
3424 (tui_show_exec_info_content): Likewise.
3425 (tui_alloc_source_buffer): Likewise.
3426 (tui_line_is_displayed): Likewise.
3427 (tui_addr_is_displayed): Likewise.
3429 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3431 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
3432 event if PL_FLAG_EXEC is set.
3433 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
3434 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
3435 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
3436 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
3437 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
3439 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3441 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
3442 [TDP_RFPPWAIT] New variable fbsd_pending_children.
3443 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
3444 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
3445 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
3446 [PT_LWPINFO] (fbsd_wait): New function.
3447 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
3448 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
3449 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
3450 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
3451 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
3452 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
3453 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
3454 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
3455 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
3457 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
3458 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
3459 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
3460 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
3461 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
3462 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
3463 Set "to_post_attach" to "fbsd_post_attach".
3465 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3467 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
3468 (fbsd_find_memory_regions): Mark static.
3469 (fbsd_nat_add_target): New function.
3470 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
3471 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
3472 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
3473 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3474 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
3475 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
3477 2015-04-27 Gary Benson <gbenson@redhat.com>
3479 * objfiles.c (allocate_objfile): Do not attempt to expand name
3480 if name is a "target:" filename.
3481 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
3482 to load auto-load scripts for objfiles with "target:" filenames.
3484 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3486 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
3487 (enum s390_vector_abi_kind): New enum.
3488 (struct gdbarch_tdep)<vector_abi>: New field.
3489 (s390_effective_inner_type): Add parameter min_size. Stop
3490 unwrapping if the inner type is smaller than min_size.
3491 (s390_function_arg_float): Adjust call to
3492 s390_effective_inner_type.
3493 (s390_function_arg_vector): New function.
3494 (s390_function_arg_integer): Adjust comment.
3495 (struct s390_arg_state)<vr>: New field.
3496 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
3497 arguments according to vector ABI when appropriate.
3498 (s390_push_dummy_call): Initialize the argument state's field
3499 'vr'. Adjust calls to s390_handle_arg.
3500 (s390_register_return_value): Handle vector return values.
3501 (s390_return_value): Apply the "register" return value convention
3502 to a vector when appropriate.
3503 (s390_gdbarch_init): Initialize tdep->vector_abi.
3504 * NEWS: Announce S390 vector ABI support.
3506 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3508 * s390-linux-tdep.c (s390_return_value_convention): Remove
3509 function. Inline its logic...
3510 (s390_return_value): ...here. Instead, move the handling of the
3511 "register" return value convention...
3512 (s390_register_return_value): ...here. New function.
3514 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3517 (is_float_singleton): Remove function. Move the "singleton" part
3519 (s390_effective_inner_type): ...here. New function.
3520 (is_float_like): Remove function. Inline its logic...
3521 (s390_function_arg_float): ...here.
3522 (is_pointer_like, is_integer_like, is_struct_like): Remove
3523 functions. Inline their logic...
3524 (s390_function_arg_integer): ...here.
3525 (s390_function_arg_pass_by_reference): Remove function.
3526 (extend_simple_arg): Remove function.
3527 (alignment_of): Remove function.
3528 (struct s390_arg_state): New structure.
3529 (s390_handle_arg): New function.
3530 (s390_push_dummy_call): Move parameter placement logic to the new
3531 function s390_handle_arg. Call it for calculating the stack area
3532 sizes first, and again for actually writing the parameters.
3534 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3536 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
3537 false if the argument is zero.
3539 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
3541 * ada-lang.c (template_to_static_fixed_type): Return input type
3542 when it is already fixed. Cache the input type itself when not
3543 creating a static fixed copy. Make it explicit that we never
3544 molestate the input type.
3545 * gdbtypes.c (resolve_dynamic_struct): Reset the
3546 TYPE_TARGET_TYPE field for resolved copies.
3548 2015-04-27 Joel Brobecker <brobecker@adacore.com>
3550 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
3551 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
3552 (template_to_static_fixed_type): Call ada_check_typedef only
3555 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3557 * cli/cli-dump.c (srec_dump_command): Add internationalization
3559 (ihex_dump_command): Likewise.
3560 (tekhex_dump_command): Likewise.
3561 (binary_dump_command): Likewise.
3562 (binary_append_command): Likewise.
3564 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3566 * cli/cli-dump.c (verilog_cmdlist): New variable.
3567 (dump_verilog_memory): New function.
3568 (dump_verilog_value): New function.
3569 (verilog_dump_command): New function.
3570 (_initialize_cli_dump): Add new commands to support verilog dump
3572 * NEWS: Add entry for "dump verilog".
3574 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
3576 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
3577 descriptive type when there is none.
3579 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
3581 * tui/tui-win.c (tui_async_resize_screen): Call
3582 rl_resize_terminal().
3584 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3586 * windows-nat.c (handle_output_debug_string): Don't change
3587 current_event.dwThreadId.
3588 (get_windows_debug_event): Use thread_id, rather than relying on
3589 current_event.dwThreadId being changed.
3591 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3593 * windows-nat.c (windows_continue): Report an error if
3594 ContinueDebugEvent() fails.
3596 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3598 * windows-nat.c (windows_resume): Fix misspelling in debug output.
3600 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3602 * windows-nat.c (get_windows_debug_event): Replace retval with
3603 thread_id throughout. Update stale comment.
3605 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3607 * windows-nat.c (get_windows_debug_event): Don't use ternary
3608 conditional operator.
3610 2015-04-21 Pierre Muller <muller@sourceware.org>
3613 p-exp.y (yylex): Reorganize code to return the matched pattern
3614 for a field of this.
3616 2015-04-21 Gary Benson <gbenson@redhat.com>
3618 * common/fileio.h (fileio_to_host_openflags): New declaration.
3619 * common/fileio.c (fcntl.h): New include.
3620 (fileio_to_host_openflags): New function, factored out from...
3621 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
3624 2015-04-21 Kevin Buettner <kevinb@redhat.com>
3626 * rl78-tdep.c (RL78_SP_ADDR): Define.
3627 (opc_reg_to_gdb_regnum): New static function.
3628 (rl78_analyze_prologue): Recognize instructions forming slightly
3629 more interesting prologues.
3631 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3634 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3635 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
3636 TYPE_CODE_REF types so that they are not considered as dynamic
3637 depending on the referenced type.
3638 (resolve_dynamic_type_internal): Likewise.
3640 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3643 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3644 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
3645 "top_level" parameter.
3646 (resolve_dynamic_type_internal): Remove the unused "top_level"
3647 parameter. Update call to is_dynamic_type_internal.
3648 (is_dynamic_type): Update call to is_dynamic_type_internal.
3649 (resolve_dynamic_range): Update call to
3650 resolve_dynamic_type_internal.
3651 (resolve_dynamic_union): Likewise.
3652 (resolve_dynamic_struct): Likewise.
3653 (resolve_dynamic_type): Likewise.
3655 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
3657 * breakpoint.c (update_dprintf_command_list): Remove duplicated
3660 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
3662 * reply_mig_hack.awk: Robustify parsing.
3664 * reply_mig_hack.awk: Don't bother to declare an intermediate
3665 function pointer variable.
3667 2015-04-17 Doug Evans <dje@google.com>
3669 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
3670 to "exec_displacement" to avoid confusion with inner use of the name.
3672 2015-04-17 Pedro Alves <palves@redhat.com>
3674 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
3675 if HW point of TYPE isn't supported.
3677 2015-04-17 Yao Qi <yao.qi@linaro.org>
3678 Pedro Alves <palves@redhat.com>
3680 * target.h (target_can_use_hardware_watchpoint): Update comments.
3681 Remove trailing ";".
3683 2015-04-17 Gary Benson <gbenson@redhat.com>
3685 * remote.c (remote_add_inferior): New argument try_open_exec.
3686 If nonzero, attempt to open the inferior's executable file as
3687 the main executable if no main executable is open already.
3688 All callers updated.
3689 * NEWS: Mention that GDB now supports automatic location and
3690 retrieval of executable + files from remote targets.
3692 2015-04-17 Gary Benson <gbenson@redhat.com>
3694 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
3695 * remote.c (PACKET_qXfer_exec_file): Likewise.
3696 (remote_protocol_features): Register the
3697 "qXfer:exec-file:read" feature.
3698 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
3699 (remote_pid_to_exec_file): New function.
3700 (init_remote_ops): Initialize to_pid_to_exec_file.
3701 (_initialize_remote): Register new "set/show remote
3702 pid-to-exec-file-packet" command.
3703 * NEWS: Announce new qXfer:exec-file:read packet.
3705 2015-04-17 Gary Benson <gbenson@redhat.com>
3707 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
3709 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
3710 New function, factored out from...
3711 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
3713 2015-04-17 Gary Benson <gbenson@redhat.com>
3715 * exec.c (solist.h): New include.
3716 (exec_file_locate_attach): Prefix absolute executable
3717 paths with gdb_sysroot if set.
3718 * NEWS: Mention that executable paths may be prepended
3721 2015-04-17 Gary Benson <gbenson@redhat.com>
3723 * solist.h (exec_file_find): New declaration.
3724 * solib.c (solib_find_1): New function, factored out from...
3725 (solib_find): ...here.
3726 (exec_file_find): New function.
3728 2015-04-17 Gary Benson <gbenson@redhat.com>
3730 * gdbcore.h (exec_file_locate_attach): New declaration.
3731 * exec.c (exec_file_locate_attach): New function, factored
3733 * infcmd.c (attach_command_post_wait): ...here.
3735 2015-04-17 Mike Frysinger <vapier@gentoo.org>
3737 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
3739 2015-04-16 Yao Qi <yao.qi@linaro.org>
3741 * infrun.c (maybe_software_singlestep): Declare.
3742 (displaced_step_fixup): Call maybe_software_singlestep.
3744 2015-04-15 Doug Evans <dje@google.com>
3746 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
3748 2015-04-15 Doug Evans <dje@google.com>
3750 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
3752 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
3754 * python/lib/gdb/command/unwinders.py: Add parentheses.
3756 2015-04-15 Yao Qi <yao.qi@linaro.org>
3758 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
3760 2015-04-15 Yao Qi <yao.qi@linaro.org>
3762 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
3764 2015-04-15 Yao Qi <yao.qi@linaro.org>
3766 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3767 dsc->insn_size instead of 4.
3769 2015-04-14 Gary Benson <gbenson@redhat.com>
3771 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
3772 * minidebug.c (lzma_stat): Likewise.
3773 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
3774 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
3776 2015-04-13 Stan Shebs <stanshebs@google.com>
3778 * MAINTAINERS: Update my email address.
3780 2015-04-13 John Baldwin <jhb@FreeBSD.org>
3782 * amd64-tdep.c (amd64_target_description): New function.
3783 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
3784 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
3785 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3786 x86 extended save area.
3787 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3788 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
3789 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
3790 (_initialize_amd64fbsd_nat): Set "to_read_description" to
3791 "amd64fbsd_read_description".
3792 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
3793 (amd64fbsd_supply_xstateregset): New function.
3794 (amd64fbsd_collect_xstateregset): New function.
3795 Add "amd64fbsd_xstateregset".
3796 (amd64fbsd_iterate_over_regset_sections): New function.
3797 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
3798 "I386_FBSD_XSAVE_XCR0_OFFSET".
3799 Add "iterate_over_regset_sections" gdbarch method.
3800 Add "core_read_description" gdbarch method.
3801 * i386-tdep.c (i386_target_description): New function.
3802 * i386-tdep.h: Export i386_target_description and tdesc_i386.
3803 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
3804 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3805 x86 extended save area.
3806 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3807 * i386bsd-nat.h: Export i386bsd_xsave_len.
3808 * i386fbsd-nat.c (i386fbsd_read_description): New function.
3809 (_initialize_i386fbsd_nat): Set "to_read_description" to
3810 "i386fbsd_read_description".
3811 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
3812 (i386fbsd_core_read_description): New function.
3813 (i386fbsd_supply_xstateregset): New function.
3814 (i386fbsd_collect_xstateregset): New function.
3815 Add "i386fbsd_xstateregset".
3816 (i386fbsd_iterate_over_regset_sections): New function.
3817 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
3818 "I386_FBSD_XSAVE_XCR0_OFFSET".
3819 Add "iterate_over_regset_sections" gdbarch method.
3820 Add "core_read_description" gdbarch method.
3821 * i386fbsd-tdep.h: New file.
3823 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3825 * NEWS (Changes since GDB 7.9): Add removed -xdb.
3826 * breakpoint.c (command_line_is_silent): Remove xdb_commands
3828 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
3830 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
3832 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
3834 * defs.h (xdb_commands): Remove declaration.
3835 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
3836 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
3837 * infcmd.c (run_no_args_command, go_command): Remove.
3838 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
3839 * infrun.c (xdb_handle_command): Remove.
3840 (_initialize_infrun): Remove xdb_commands for lz and z.
3841 * main.c (xdb_commands): Remove variable.
3842 (captured_main): Remove "xdb" from long_options.
3843 (print_gdb_help): Remove --xdb from help.
3844 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
3845 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
3846 * stack.c (backtrace_full_command, args_plus_locals_info)
3847 (current_frame_command): Remove.
3848 (_initialize_stack): Remove xdb_commands for t, T and l.
3849 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
3850 * thread.c (_initialize_thread): Remove xdb_commands condition.
3851 * tui/tui-layout.c (tui_toggle_layout_command)
3852 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
3853 (_initialize_tui_layout): Remove xdb_commands for td and ts.
3854 * tui/tui-regs.c (tui_scroll_regs_forward_command)
3855 (tui_scroll_regs_backward_command): Remove.
3856 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
3857 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
3858 (_initialize_tui_win): Remove xdb_commands for U and w.
3859 * utils.c (pagination_on_command, pagination_off_command): Remove.
3860 (initialize_utils): Remove xdb_commands for am and sm.
3862 2015-04-10 Pedro Alves <palves@redhat.com>
3864 * infrun.c (displaced_step_fixup): Switch to the event ptid
3865 earlier. If the thread stopped for a watchpoint and the
3866 target/arch has non-continuable watchpoints, cancel the displaced
3868 (resume): Don't start a displaced step if in-line step-over info
3871 2015-04-10 Pedro Alves <palves@redhat.com>
3873 * infrun.c (displaced_step_in_progress): New function.
3874 (do_target_resume): Advise target to report all signals if
3877 2015-04-10 Pedro Alves <palves@redhat.com>
3880 * infrun.c (process_event_stop_test): Don't assume a step-resume
3881 is set if tp->stepped_breakpoint is true.
3883 2015-04-10 Yao Qi <yao.qi@linaro.org>
3885 * arm-tdep.c (install_alu_reg): Update comment.
3886 (thumb_copy_alu_reg): Remove local variable rn. Update
3887 debugging message. Use r2 instead of r1 in the modified
3890 2015-04-10 Pedro Alves <palves@redhat.com>
3893 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
3894 linux_displaced_step_location as gdbarch_displaced_step_location
3896 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3897 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3898 * linux-tdep.c (linux_displaced_step_location): New function,
3899 based on ppc_linux_displaced_step_location.
3900 * linux-tdep.h (linux_displaced_step_location): New declaration.
3901 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
3902 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
3904 (ppc_linux_init_abi): Install linux_displaced_step_location as
3905 gdbarch_displaced_step_location hook, even without Cell/B.E..
3906 (_initialize_ppc_linux_tdep): Don't install
3907 ppc_linux_inferior_created as inferior_created observer.
3908 * s390-linux-tdep.c (s390_gdbarch_init): Install
3909 linux_displaced_step_location as gdbarch_displaced_step_location
3912 2015-04-09 Gary Benson <gbenson@redhat.com>
3914 * common/common-remote-fileio.h: Rename to...
3915 * common/fileio.h: ...this. Update all references.
3916 (remote_fileio_to_fio_error): Rename to...
3917 (host_to_fileio_error): ...this.
3918 (remote_fileio_to_be): Rename to...
3919 (host_to_bigendian): ...this. Update all callers.
3920 (remote_fileio_to_fio_uint): Rename to...
3921 (host_to_fileio_uint): ...this. Update all callers.
3922 (remote_fileio_to_fio_time): Rename to...
3923 (host_to_fileio_time): ...this. Update all callers.
3924 (remote_fileio_to_fio_stat): Rename to...
3925 (host_to_fileio_stat): ...this.
3926 Update all references.
3927 * common/common-remote-fileio.c: Rename to...
3928 * common/fileio.c: ...this. Update all references.
3929 (remote_fileio_to_fio_error): Rename to...
3930 (host_to_fileio_error): ...this. Update all callers.
3931 (remote_fileio_mode_to_target): Rename to...
3932 (fileio_mode_pack): ...this. Update all callers.
3933 (remote_fileio_to_fio_mode): Rename to...
3934 (host_to_fileio_mode): ...this. Update all callers.
3935 (remote_fileio_to_fio_ulong): Rename to...
3936 (host_to_fileio_ulong): ...this. Update all callers.
3937 (remote_fileio_to_fio_stat): Rename to...
3938 (host_to_fileio_stat): ...this. Update all callers.
3940 2015-04-09 Andy Wingo <wingo@igalia.com>
3942 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
3943 (frame_functions): Bind gdbscm_frame_read_register to
3944 frame-read-register.
3945 * guile/lib/gdb.scm (frame-read-register): Export.
3947 2015-04-09 Gary Benson <gbenson@redhat.com>
3949 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
3951 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
3952 New function, factored out the named functions below.
3953 * inf-child.c (gdb/fileio.h): Remove include.
3954 (common-remote-fileio.h): New include.
3955 (inf_child_errno_to_fileio_error): Remove function. Update
3956 all callers to use remote_fileio_to_fio_error.
3957 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
3959 2015-04-09 Andy Wingo <wingo@igalia.com>
3961 * MAINTAINERS (Write After Approval): Add Andy Wingo.
3963 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
3965 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
3966 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
3967 * configure: Regenerated.
3969 2015-04-09 Pedro Alves <palves@redhat.com>
3971 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
3972 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
3973 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
3974 * gnulib/import/Makefile.am: Update.
3975 * gnulib/import/Makefile.in: Update.
3976 * gnulib/import/m4/gnulib-cache.m4: Update.
3977 * gnulib/import/m4/gnulib-comp.m4: Update.
3978 * gnulib/import/m4/strtok_r.m4: New file.
3979 * gnulib/import/strtok_r.c: New file.
3981 2015-04-09 Pedro Alves <palves@redhat.com>
3983 * gnulib/update-gnulib.sh (aclocal version check): Filter out
3984 "called too early to check prototype".
3986 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
3989 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
3990 use a caching mechanism. Adjust comments and code to reflect
3991 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
3992 (cmdpy_completer_handle_brkchars): Adjust call to
3993 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
3994 (cmdpy_completer): Likewise.
3996 2015-04-08 Yao Qi <yao.qi@linaro.org>
3998 * spu-tdep.c (spu_gdbarch_init): Don't call
3999 set_gdbarch_cannot_step_breakpoint.
4001 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
4003 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
4005 2015-04-07 Pedro Alves <palves@redhat.com>
4007 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
4008 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
4009 (delete_exited_threads): New declaration.
4010 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
4011 * linux-nat.c (linux_nat_update_thread_list): New function.
4012 (linux_nat_add_target): Install it.
4013 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
4014 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
4015 (delete_exited_threads): New function.
4017 2015-04-07 Pedro Alves <pedro@codesourcery.com>
4019 * infrun.c (resume) <displaced stepping debug output>: Get the
4020 leader thread's regcache, not resume_ptid's.
4022 2015-04-06 Doug Evans <xdje42@gmail.com>
4024 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
4026 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
4027 Include symbol domain in debugging output.
4029 2015-04-06 Pedro Alves <palves@redhat.com>
4030 Bernd Edlinger <bernd.edlinger@hotmail.de>
4032 * configure.ac: Remove the mingw32-specific stub-termcap.o
4033 fallback, and instead fallback to the stub termcap on all hosts.
4034 * configure: Regenerate.
4035 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
4038 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4040 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
4041 "top_level" parameter.
4042 (resolve_dynamic_type_internal): Remove the unused "top_level"
4043 parameter. Update call to is_dynamic_type_internal.
4044 (is_dynamic_type): Update call to is_dynamic_type_internal.
4045 (resolve_dynamic_range): Update call to
4046 resolve_dynamic_type_internal.
4047 (resolve_dynamic_union): Likewise.
4048 (resolve_dynamic_struct): Likewise.
4049 (resolve_dynamic_type): Likewise.
4051 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4053 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
4054 TYPE_CODE_REF types so that they are not considered as dynamic
4055 depending on the referenced type.
4056 (resolve_dynamic_type_internal): Likewise.
4058 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
4060 * Makefile.in (top_srcdir): New.
4061 * configure: Regenerated.
4063 2015-04-02 Gary Benson <gbenson@redhat.com>
4065 * NEWS: Announce the new default sysroot of "target:".
4067 2015-04-02 Gary Benson <gbenson@redhat.com>
4069 * main.c (captured_main): Set gdb_sysroot to "target:"
4070 if not otherwise set.
4072 2015-04-02 Gary Benson <gbenson@redhat.com>
4074 * exec.c (exec_file_attach): Support "target:" filenames.
4076 2015-04-02 Gary Benson <gbenson@redhat.com>
4078 * solib.c (solib_find): Strip "target:" prefix from sysroot
4079 if accessing local files.
4081 2015-04-02 Gary Benson <gbenson@redhat.com>
4083 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
4084 checks and error messages.
4086 2015-04-02 Gary Benson <gbenson@redhat.com>
4088 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
4089 (remote_filename_p): Remove declaration.
4090 (remote_bfd_open): Likewise.
4091 * remote.c (remote_bfd_iovec_open): Remove function.
4092 (remote_bfd_iovec_close): Likewise.
4093 (remote_bfd_iovec_pread): Likewise.
4094 (remote_bfd_iovec_stat): Likewise.
4095 (remote_filename_p): Likewise.
4096 (remote_bfd_open): Likewise.
4097 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
4098 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
4099 (gdb_bfd_open_maybe_remote): Remove function.
4100 (symfile_bfd_open): Replace remote filename check with
4101 target filename check.
4102 (reread_symbols): Use gdb_bfd_open.
4103 * build-id.c (gdbcore.h): New include.
4104 (build_id_to_debug_bfd): Use gdb_bfd_open.
4105 * infcmd.c (attach_command_post_wait): Remove remote filename
4107 * solib.c (solib_find): Replace remote-specific handling with
4108 target-specific handling. Update comments where necessary.
4109 (solib_bfd_open): Replace remote-specific handling with
4110 target-specific handling.
4111 (gdb_sysroot_changed): New function.
4112 (_initialize_solib): Call the above when gdb_sysroot changes.
4113 * windows-tdep.c (gdbcore.h): New include.
4114 (windows_xfer_shared_library): Use gdb_bfd_open.
4116 2015-04-02 Gary Benson <gbenson@redhat.com>
4118 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
4119 (is_target_filename): New declaration.
4120 (gdb_bfd_has_target_filename): Likewise.
4121 (gdb_bfd_open): Update documentation comment.
4122 * gdb_bfd.c (target.h): New include.
4123 (gdb/fileio.h): Likewise.
4124 (is_target_filename): New function.
4125 (gdb_bfd_has_target_filename): Likewise.
4126 (fileio_errno_to_host): Likewise.
4127 (gdb_bfd_iovec_fileio_open): Likewise.
4128 (gdb_bfd_iovec_fileio_pread): Likewise.
4129 (gdb_bfd_iovec_fileio_close): Likewise.
4130 (gdb_bfd_iovec_fileio_fstat): Likewise.
4131 (gdb_bfd_open): Use target fileio to access paths prefixed
4132 with "target:" where necessary.
4134 2015-04-02 Gary Benson <gbenson@redhat.com>
4136 * target.h (struct target_ops) <to_filesystem_is_local>:
4138 (target_filesystem_is_local): New macro.
4139 * target-delegates.c: Regenerate.
4140 * remote.c (remote_filesystem_is_local): New function.
4141 (init_remote_ops): Initialize to_filesystem_is_local.
4143 2015-04-02 Gary Benson <gbenson@redhat.com>
4145 * target.h (struct target_ops) <to_fileio_fstat>: New field.
4146 (target_fileio_fstat): New declaration.
4147 * target.c (target_fileio_fstat): New function.
4148 * inf-child.c (inf_child_fileio_fstat): Likewise.
4149 (inf_child_target): Initialize to_fileio_fstat.
4150 * remote.c (init_remote_ops): Likewise.
4152 2015-04-01 Sasha Smundak <asmundak@google.com>
4154 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
4155 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
4156 (py-unwind.o): New recipe.
4157 * NEWS: mention Python frame unwinding.
4158 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
4159 gdb/unwinder.py and gdb/command/unwinder.py
4160 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
4162 (execute_unwinders): New function.
4163 * python/lib/gdb/command/unwinders.py: New file.
4164 * python/lib/gdb/unwinder.py: New file.
4165 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
4166 (objfpy_dealloc): Decrement frame_unwinders reference count.
4167 (objfpy_initialize): Create frame_unwinders list.
4168 (objfpy_get_frame_unwinders): New function.
4169 (objfpy_set_frame_unwinders): Ditto.
4170 (objfile_getset): Add frame_unwinders attribute to Objfile.
4171 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
4172 (pspy_dealloc): Decrement frame_unwinders reference count.
4173 (pspy_initialize): Create frame_unwinders list.
4174 (pspy_get_frame_unwinders): New function.
4175 (pspy_set_frame_unwinders): Ditto.
4176 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
4177 * python/py-unwind.c: New file.
4178 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
4179 (objpy_get_frame_unwinders): New prototype.
4180 (gdbpy_initialize_unwind): New prototype.
4181 * python/python.c (gdbpy_apply_type_printers): Call
4182 gdbpy_initialize_unwind.
4184 2015-04-01 Pedro Alves <palves@redhat.com>
4186 * infrun.c (resume): Check currently_stepping after clearing
4187 stepped_breakpoint, not before.
4189 2015-04-01 Pedro Alves <palves@redhat.com>
4191 * infrun.c (print_target_wait_results): Print all the ptid
4194 2015-04-01 Pedro Alves <palves@redhat.com>
4196 * infrun.c (keep_going): Also discard cleanups if inserting
4199 2015-04-01 Pedro Alves <palves@redhat.com>
4201 * infrun.c (wait_for_inferior): Install the
4202 finish_thread_state_cleanup cleanup across the whole function, not
4203 just around handle_inferior_event.
4205 2015-04-01 Pedro Alves <palves@redhat.com>
4207 * infrun.c (resume) <step past permanent breakpoint>: Use
4210 2015-04-01 Pedro Alves <palves@redhat.com>
4212 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
4214 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
4216 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
4218 2015-04-01 Pedro Alves <palves@redhat.com>
4220 * linux-thread-db.c (record_thread): Readd the thread to gdb's
4221 list if it was marked exited.
4223 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
4225 * configure: Regenerated.
4227 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4228 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 Oleg Nesterov <oleg@redhat.com>
4232 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
4233 New enum identifying the various options of the coredump_filter
4235 (struct smaps_vmflags): New struct.
4236 (use_coredump_filter): New variable.
4237 (decode_vmflags): New function.
4238 (mapping_is_anonymous_p): Likewise.
4239 (dump_mapping_p): Likewise.
4240 (linux_find_memory_regions_full): New variables
4241 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
4242 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
4243 parsing of its information. Implement memory mapping filtering
4244 based on its contents.
4245 (show_use_coredump_filter): New function.
4246 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
4247 * NEWS: Mention the possibility of using the
4248 '/proc/PID/coredump_filter' file when generating a corefile.
4249 Mention new command 'set use-coredump-filter'.
4251 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4253 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
4254 read_memory_unsigned_integer.
4256 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
4258 * Makefile.in (ZLIB): New.
4259 (ZLIBINC): Likewise.
4260 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
4261 (CLIBS): Add $(ZLIB).
4262 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
4264 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
4265 * top.c (print_gdb_configuration): Remove --with-zlib and
4267 * config.in: Regenerated.
4268 * configure: Likewise.
4270 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4272 * NEWS: Mention info os cpus support.
4273 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
4274 (struct osdata_type): Add cpus entry, reorder the entries in
4277 2015-03-31 Matthias Klose <doko@ubuntu.com>
4279 * compile/compile.c (compile_to_object): Allow triplets with or
4282 2015-03-30 Doug Evans <dje@google.com>
4285 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
4286 klass in VAR_DOMAIN.
4288 2015-03-30 Gary Benson <gbenson@redhat.com>
4290 * remote.c (remote_mourn_1): Remove function. Update all callers
4291 to use remote_mourn.
4292 (extended_remote_mourn_1): Remove function. Update all callers
4293 to use extended_remote_mourn.
4294 (extended_remote_attach_1): Remove function. Update all callers
4295 to use extended_remote_attach.
4297 2015-03-28 James Bowman <james.bowman@ftdichip.com>
4299 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
4300 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
4301 (ALLDEPFILES): Add ft32-tdep.c.
4302 * configure.tgt: Add FT32 entry.
4303 * ft32-tdep.c: New file, FT32 target-dependent code.
4304 * ft32-tdep.h: New file, FT32 target-dependent code.
4306 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4309 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4311 * printcmd.c (print_command_1): Move expr variable scope.
4313 2015-03-27 Joel Brobecker <brobecker@adacore.com>
4315 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
4317 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
4319 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
4322 2015-03-26 Joel Brobecker <brobecker@adacore.com>
4324 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
4325 exception raised while parsing the probe arguments.
4326 Force parsing to be done using the C language parser.
4327 * expression.h (parse_expression_with_language): Declare.
4328 * parse.c (parse_expression_with_language): New function.
4330 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
4332 * MAINTAINERS (Write After Approval): Add "Jon Turney".
4334 2015-03-26 Andy Wingo <wingo@igalia.com>
4337 * dwarf2read.c (struct partial_die_info): Add has_const_value
4339 (add_partial_symbol): Don't punt on symbols that have const_value
4341 (read_partial_die): Detect DW_AT_const_value.
4343 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4346 * printcmd.c (print_command_1): Move expr variable scope.
4348 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4351 * printcmd.c (validate_format): Make the parameter cmdname const.
4353 2015-03-26 Don Breazeal <donb@codesourcery.com>
4355 * remote.c (_initialize_remote): Update comment.
4357 2015-03-26 Pedro Alves <palves@redhat.com>
4358 Jon TURNEY <jon.turney@dronecode.org.uk>
4360 * coffread.c (coff_symfile_read): When constructing the name of an
4361 import stub symbol from import symbol for amd64, only skip the
4362 char after _imp_ if the target is underscored (like i386) and the
4363 char is indeed the target's leading char.
4365 2015-03-25 Pedro Alves <palves@redhat.com>
4367 * target.h <to_async>: Replace 'callback' and 'context' parameters
4368 with boolean 'enable' parameter.
4369 (target_async): Replace CALLBACK and CONTEXT parameters with
4370 boolean ENABLE parameter.
4371 * inf-loop.c (inferior_event_handler): Adjust.
4372 * linux-nat.c (linux_nat_attach, linux_nat_resume)
4373 (linux_nat_resume): Adjust.
4374 (async_client_callback, async_client_context): Delete.
4375 (handle_target_event): Call inferior_event_handler directly.
4376 (linux_nat_async): Replace 'callback' and 'context' parameters
4377 with boolean 'enable' parameter. Adjust. Remove references to
4378 async_client_callback and async_client_context.
4379 (linux_nat_close): Adjust.
4380 * record-btrace.c (record_btrace_async): Replace 'callback' and
4381 'context' parameters with boolean 'enable' parameter. Adjust.
4382 (record_btrace_resume): Adjust.
4383 * record-full.c (record_full_async): Replace 'callback' and
4384 'context' parameters with boolean 'enable' parameter. Adjust.
4385 (record_full_resume, record_full_core_resume): Adjust.
4386 * remote.c (struct remote_state) <async_client_callback,
4387 async_client_context>: Delete fields.
4388 (remote_start_remote, extended_remote_attach_1, remote_resume)
4389 (extended_remote_create_inferior): Adjust.
4390 (remote_async_serial_handler): Call inferior_event_handler
4392 (remote_async): Replace 'callback' and 'context' parameters with
4393 boolean 'enable' parameter. Adjust.
4394 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
4396 * target-delegates.c: Regenerate.
4398 2015-03-25 Gary Benson <gbenson@redhat.com>
4399 Pedro Alves <palves@redhat.com>
4401 * target.c (fileio_ft_t): New typedef, define object vector.
4402 (fileio_fhandles): New static variable.
4403 (is_closed_fileio_fh): New macro.
4404 (lowest_closed_fd): New static variable.
4405 (acquire_fileio_fd): New function.
4406 (release_fileio_fd): Likewise.
4407 (fileio_fd_to_fh): New macro.
4408 (target_fileio_open): Wrap the file descriptor on success.
4409 (target_fileio_pwrite): Updated to use wrapped file descriptor.
4410 (target_fileio_pread): Likewise.
4411 (target_fileio_close): Likewise.
4413 2015-03-24 Pedro Alves <palves@redhat.com>
4415 * thread.c (thread_apply_all_command): Take exited threads into
4418 2015-03-24 Pedro Alves <palves@redhat.com>
4420 * infrun.c (resume, proceed): Mention
4421 switch_back_to_stepped_thread, not switch_back_to_stepping.
4423 2015-03-24 Pedro Alves <palves@redhat.com>
4425 * infrun.c (user_visible_resume_ptid): Rewrite going from
4426 most-locked to unlocked instead of the opposite. Move comment ...
4427 * infrun.h (user_visible_resume_ptid): ... here.
4429 2015-03-24 Pedro Alves <palves@redhat.com>
4431 * linux-nat.c (linux_nat_resume): Output debug logs before trying
4432 to resume the event lwp. Use the lwp's ptid instead of the passed
4433 in (maybe wildcard) ptid.
4434 (stop_wait_callback): Tweak debug log output.
4435 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
4437 (linux_nat_filter_event): In debug output, distinguish a
4438 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
4439 before trying to resume the lwp.
4441 2015-03-24 Joel Brobecker <brobecker@adacore.com>
4443 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
4444 pointer indirection.
4445 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
4446 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
4448 2015-03-24 Joel Brobecker <brobecker@adacore.com>
4450 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
4451 Renames DYN_ATTR_DATA_LOCATION.
4452 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
4453 DYN_ATTR_DATA_LOCATION.
4454 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
4455 instead of DYN_ATTR_DATA_LOCATION.
4457 2015-03-24 Pedro Alves <palves@redhat.com>
4459 * breakpoint.c (until_break_command): Adjust call to proceed.
4460 * gdbthread.h (struct thread_control_state) <stepping_command>:
4462 * infcall.c (run_inferior_call): Adjust call to proceed.
4463 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
4464 Adjust calls to proceed.
4465 (set_step_frame): Set the current thread's step_start_function
4467 (step_once): Adjust calls to proceed.
4468 (jump_command, signal_command, until_next_command)
4469 (finish_backward, finish_forward, proceed_after_attach_callback)
4470 (attach_command_post_wait): Adjust calls to proceed.
4471 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
4472 (do_target_resume): New function, factored out from ...
4473 (resume): ... here. Remove 'step' parameter. Instead, check
4474 currently_stepping to determine whether the thread should be
4476 (proceed): Remove 'step' parameter and don't set the thread's
4477 step_start_function here. Adjust call to 'resume'.
4478 (handle_inferior_event): Adjust calls to 'resume'.
4479 (switch_back_to_stepped_thread): Use do_target_resume instead of
4481 (keep_going): Adjust calls to 'resume'.
4482 * infrun.h (proceed): Remove 'step' parameter.
4484 * windows-nat.c (do_initial_windows_stuff): Adjust call to
4486 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
4488 2015-03-24 Pedro Alves <palves@redhat.com>
4490 * gdbthread.h (struct thread_control_state) <stepping_command>:
4492 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
4493 the thread's stepping_command field.
4494 * infrun.c (resume): Check the thread's stepping_command flag to
4495 determine which threads should be resumed. Rename 'entry_step'
4497 (clear_proceed_status_thread): Clear 'stepping_command'.
4498 (schedlock_applies): Change parameter type to struct thread_info
4500 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
4501 (switch_back_to_stepped_thread): Adjust calls to
4502 'schedlock_applies'.
4503 (_initialize_infrun): Adjust "set scheduler-locking step" help.
4505 2015-03-24 Pedro Alves <palves@redhat.com>
4507 * infrun.c (step_start_function): Delete and ...
4508 * gdbthread.h (struct thread_control_state) <step_start_function>:
4509 ... now a field here.
4510 * infrun.c (clear_proceed_status_thread): Clear the thread's
4511 step_start_function.
4512 (proceed, process_event_stop_test, print_stop_event): Adjust.
4514 2015-03-24 Pedro Alves <palves@redhat.com>
4516 * infrun.c (proceed): No longer handle negative step.
4518 2015-03-24 Gary Benson <gbenson@redhat.com>
4520 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
4521 (x86_linux_prepare_to_resume): Likewise.
4522 * x86-linux-nat.c (x86_linux_new_thread):
4523 Moved to nat/x86-linux.c.
4524 (x86_linux_prepare_to_resume): Likewise.
4525 * nat/x86-linux.c (x86_linux_new_thread): New function.
4526 (x86_linux_prepare_to_resume): Likewise.
4528 2015-03-24 Gary Benson <gbenson@redhat.com>
4530 * nat/x86-linux-dregs.h: New file.
4531 * nat/x86-linux-dregs.c: Likewise.
4532 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
4533 (x86-linux-dregs.o): New rule.
4534 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
4535 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4536 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
4537 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
4538 (x86_linux_dr_get): Likewise.
4539 (x86_linux_dr_set): Likewise.
4540 (x86_linux_dr_get_addr): Likewise.
4541 (x86_linux_dr_get_control): Likewise.
4542 (x86_linux_dr_get_status): Likewise.
4543 (update_debug_registers_callback): Likewise.
4544 (x86_linux_dr_set_control): Likewise.
4545 (x86_linux_dr_set_addr): Likewise.
4546 (x86_linux_update_debug_registers): Likewise.
4548 2015-03-24 Gary Benson <gbenson@redhat.com>
4550 * x86-linux-nat.c (x86_linux_update_debug_registers):
4551 New function, factored out from...
4552 (x86_linux_prepare_to_resume): ...this.
4554 2015-03-24 Gary Benson <gbenson@redhat.com>
4556 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
4557 (x86_linux_dr_set): Likewise.
4558 (x86_linux_dr_get_addr): Likewise.
4559 (x86_linux_dr_get_control): Likewise.
4560 (x86_linux_dr_get_status): Likewise.
4561 (update_debug_registers_callback): Likewise.
4562 (x86_linux_dr_set_control): Likewise.
4563 (x86_linux_dr_set_addr): Likewise.
4564 (x86_linux_prepare_to_resume): Likewise.
4565 (x86_linux_new_thread): Likewise.
4567 2015-03-24 Gary Benson <gbenson@redhat.com>
4569 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
4570 (x86_linux_new_thread): Rename argument.
4572 2015-03-24 Gary Benson <gbenson@redhat.com>
4574 * nat/x86-linux.h: New file.
4575 * nat/x86-linux.c: Likewise.
4576 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
4577 (x86-linux.o): New rule.
4578 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
4579 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4580 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
4581 (lwp_set_arch_private_info): New declaration.
4582 (lwp_arch_private_info): Likewise.
4583 * linux-nat.c (lwp_set_arch_private_info): New function.
4584 (lwp_arch_private_info): Likewise.
4585 * x86-linux-nat.c: Include nat/x86-linux.h.
4586 (arch_lwp_info): Removed structure.
4587 (update_debug_registers_callback):
4588 Use lwp_set_debug_registers_changed.
4589 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
4590 and lwp_set_debug_registers_changed.
4591 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
4593 2015-03-24 Gary Benson <gbenson@redhat.com>
4595 * nat/linux-nat.h (ptid_of_lwp): New declaration.
4596 (lwp_is_stopped): Likewise.
4597 (lwp_stop_reason): Likewise.
4598 * linux-nat.c (ptid_of_lwp): New function.
4599 (lwp_is_stopped): Likewise.
4600 (lwp_is_stopped_by_watchpoint): Likewise.
4601 * x86-linux-nat.c (update_debug_registers_callback):
4603 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
4606 2015-03-24 Gary Benson <gbenson@redhat.com>
4608 * linux-nat.h (linux_stop_lwp): Move declaration to...
4609 * nat/linux-nat.h (linux_stop_lwp): New declaration.
4611 2015-03-24 Gary Benson <gbenson@redhat.com>
4613 * linux-nat.h: Include nat/linux-nat.h.
4614 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
4615 * nat/linux-nat.h (struct lwp_info): New forward declaration.
4616 (iterate_over_lwps_ftype): New typedef.
4617 (iterate_over_lwps): New declaration.
4618 * linux-nat.h (iterate_over_lwps): Update comment. Use
4619 iterate_over_lwps_ftype. Update callback return value check.
4621 2015-03-24 Gary Benson <gbenson@redhat.com>
4623 * x86-nat.h (x86_debug_reg_state): Move declaration to...
4624 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
4626 2015-03-24 Gary Benson <gbenson@redhat.com>
4628 * nat/linux-nat.h (current_lwp_ptid): New declaration.
4629 * linux-nat.c (current_lwp_ptid): New function.
4630 * x86-linux-nat.c: Include nat/linux-nat.h.
4631 (x86_linux_dr_get_addr): Use current_lwp_ptid.
4632 (x86_linux_dr_get_control): Likewise.
4633 (x86_linux_dr_get_status): Likewise.
4634 (x86_linux_dr_set_control): Likewise.
4635 (x86_linux_dr_set_addr): Likewise.
4637 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
4639 PR breakpoints/16466
4640 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
4642 2015-03-23 Joel Brobecker <brobecker@adacore.com>
4644 * ser-mingw.c (ser_windows_setparity): Fix indentation.
4645 * ser-unix.c (hardwire_setparity): Likewise.
4647 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4649 * NEWS: Mention set/show serial parity command.
4650 * monitor.c (monitor_open): Call serial_setparity.
4651 * remote.c (remote_open_1): Likewise.
4652 * ser-base.c (ser_base_serparity): New function.
4653 * ser-base.h (ser_base_setparity): Add declaration.
4654 * ser-go32.c (dos_ops): Set "setparity" field.
4655 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
4657 (ser_windows_setparity): New function.
4658 (hardwire_ops): Add ser_windows_setparity.
4659 (tty_ops): Add NULL for setparity field.
4660 (pipe_ops): Add ser_base_setparity.
4661 (tcp_ops): Likewise.
4662 * ser-pipe.c (pipe_ops): Likewise.
4663 * ser-tcp.c (tcp_ops): Likewise.
4664 * ser-unix.c (hardwire_setparity): Add declaration.
4665 (hardwire_raw): Don't reset PARENB flag.
4666 (hardwire_setparity): New function.
4667 (hardwire_ops): Add hardwire_setparity.
4668 * serial.c (serial_setparity): New function.
4669 (serial_parity): New global.
4670 (parity_none, parity_odd, parity_even, parity_enums, parity):
4672 (set_parity): New function.
4673 (_initialize_serial): Add set/show serial parity commands.
4674 * serial.h (GDBPARITY_NONE): Define.
4675 (GDBPARITY_ODD): Define.
4676 (GDBPARITY_EVEN): Define.
4677 (serial_setparity) Add declaration.
4678 (struct serial_ops): Add setparity field.
4679 * target.h (serial_parity): Add declaration.
4681 2015-03-23 Keith Seitz <keiths@redhat.com>
4683 * linespec.c (linespec_lexer_lex_keyword): Update comment.
4685 2015-03-23 Keith Seitz <keiths@redhat.com>
4687 * breakpoint.c (parse_breakpoint_sals): Use
4688 linespec_lexer_lex_keyword to ascertain if the user specified
4690 * linespec.c [IF_KEYWORD_INDEX]: Define.
4691 (linespec_lexer_lex_keyword): Export.
4692 (struct ls_parser) <keyword_ok>: Remove.
4693 A keyword is only a keyword if not followed by another keyword.
4694 (linespec_lexer_lex_one): Remove keyword_ok handling.
4695 Add comment explaining why the parsing stream is not advanced
4696 when a keyword is seen.
4697 (parse_linespec): Remove parser->keyword_ok.
4698 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
4700 2015-03-23 Keith Seitz <keiths@redhat.com>
4703 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
4704 if we find a static method with DW_AT_vtable_elem_location.
4706 2015-03-21 Eli Zaretskii <eliz@gnu.org>
4708 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
4709 before the second loop, to avoid undefined behavior. Reported by
4710 Anton Blanchard <anton@samba.org>.
4712 2015-03-20 Keven Boell <keven.boell@intel.com>
4714 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
4715 data_location usage to linked list.
4716 (resolve_dynamic_type_internal): Adapt data_location to
4718 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
4719 (copy_type_recursive, copy_type): Add copy of linked list.
4720 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
4721 (struct dynamic_prop_list): New struct.
4722 * dwarf2read.c (set_die_type): Set data_location data.
4724 2015-03-20 Pedro Alves <palves@redhat.com>
4726 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
4727 inner block and make it const.
4728 * machoread.c (get_archive_prefix_len): Make "lparen" const.
4730 2015-03-20 Pedro Alves <palves@redhat.com>
4732 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
4733 * breakpoint.h (set_breakpoint_condition): Update declaration.
4735 2015-03-20 Pedro Alves <palves@redhat.com>
4737 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
4739 2015-03-20 Pedro Alves <palves@redhat.com>
4741 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
4743 2015-03-20 Pedro Alves <palves@redhat.com>
4745 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
4747 2015-03-20 Pedro Alves <palves@redhat.com>
4749 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
4750 (nto_init_solib_absolute_prefix): Likewise.
4752 2015-03-20 Pedro Alves <palves@redhat.com>
4754 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
4755 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
4757 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4759 * config/djgpp/README: Remove gdb.hp.
4761 2015-03-20 Yao Qi <yao.qi@linaro.org>
4763 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
4764 set_gdbarch_cannot_step_breakpoint.
4766 2015-03-19 Pedro Alves <palves@redhat.com>
4768 * linux-nat.c (linux_resume_one_lwp): Rename to ...
4769 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
4770 instead call perror_with_name.
4771 (check_ptrace_stopped_lwp_gone): New function.
4772 (linux_resume_one_lwp): Reimplement as wrapper around
4773 linux_resume_one_lwp_throw that swallows errors if the LWP is
4775 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
4776 swallows errors if the LWP is gone. Use
4777 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
4779 2015-03-19 Pedro Alves <palves@redhat.com>
4781 * linux-nat.c (status_callback): Return early if the LWP has no
4784 2015-03-19 Pedro Alves <palves@redhat.com>
4786 * linux-nat.c (select_event_lwp_callback): Update comment to no
4787 longer mention SIGTRAP.
4789 2015-03-18 Tristan Gingold <gingold@adacore.com>
4791 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
4792 redirection code to ...
4793 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
4794 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
4796 2015-03-18 Gary Benson <gbenson@redhat.com>
4798 (remote_protocol_features): Remove the "vFile:fstat" feature.
4799 (remote_hostio_fstat): Probe for "vFile:fstat" support.
4801 2015-03-11 Yao Qi <yao.qi@linaro.org>
4804 * aarch64-linux-tdep.c: Include xml-syscall.h
4805 (aarch64_linux_get_syscall_number): New function.
4806 (aarch64_linux_init_abi): Call
4807 set_gdbarch_get_syscall_number.
4808 * syscalls/aarch64-linux.xml: New file.
4810 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4812 * ser-base.h (ser_base_setstopbits): Change second argument name
4813 from "rate" to "num".
4815 2015-03-17 Gary Benson <gbenson@redhat.com>
4816 Luke Allardyce <lukeallardyce@gmail.com>
4819 * common/common-remote-fileio.h (sys/stat.h): New include.
4820 (stuct stat): Remove forward declaration.
4822 2015-03-16 John Baldwin <jhb@FreeBSD.org>
4824 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
4825 before writing core register notes.
4827 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
4828 Pedro Alves <palves@redhat.com>
4830 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
4831 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
4832 (tgoto): Wrap with extern "C".
4834 2015-03-16 Pedro Alves <palves@redhat.com>
4835 Yuanhui Zhang <asmwarrior@gmail.com>
4837 * stub-termcap.c (tputs): Change prototype.
4839 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
4840 Pedro Alves <palves@redhat.com>
4842 * windows-nat.c (struct thread_info_struct): Rename to ...
4843 (struct windows_thread_info_struct): ... this.
4844 (thread_info): Rename to ...
4845 (windows_thread_info): ... this.
4848 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4849 Pedro Alves <palves@redhat.com>
4851 * NEWS: New Removed targets and native configurations.
4853 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4856 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
4857 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
4858 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
4859 ia64-hpux-tdep.h, solib-ia64-hpux.h.
4860 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
4861 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
4862 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
4864 * config/ia64/hpux.mh: Remove file.
4865 * config/pa/hpux.mh: Remove file.
4866 * configure: Rebuilt.
4867 * configure.ac (dlgetmodinfo, somread.o): Remove.
4868 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4869 (ia64-*-hpux*): Remove its float format exception.
4870 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4871 * hppa-hpux-nat.c: Remove file.
4872 * hppa-hpux-tdep.c: Remove file.
4873 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
4874 Move them here from hppa-tdep.h
4875 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
4876 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
4877 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
4878 Move them to hppa-tdep.c.
4879 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
4881 * ia64-hpux-nat.c: Remove file.
4882 * ia64-hpux-tdep.c: Remove file.
4883 * ia64-hpux-tdep.h: Remove file.
4884 * inf-ttrace.c: Remove file.
4885 * inf-ttrace.h: Remove file.
4886 * solib-ia64-hpux.c: Remove file.
4887 * solib-ia64-hpux.h: Remove file.
4888 * solib-pa64.c: Remove file.
4889 * solib-pa64.h: Remove file.
4890 * solib-som.c: Remove file.
4891 * solib-som.h: Remove file.
4892 * somread.c: Remove file.
4894 2015-03-13 John Baldwin <jhb@FreeBSD.org>
4896 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
4897 * config.in: Regenerate.
4898 * configure: Regenerate.
4899 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
4901 (fbsd_find_memory_regions): Use kinfo_getvmmap to
4902 enumerate memory regions if present.
4904 2015-03-13 John Baldwin <jhb@FreeBSD.org>
4906 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
4907 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
4909 (i386fbsd_sigtramp_p): Likewise.
4911 2015-03-12 John Baldwin <jhb@FreeBSD.org>
4913 * MAINTAINERS (Write After Approval): Add John Baldwin.
4915 2015-03-12 Gary Benson <gbenson@redhat.com>
4917 * solib.c (_initialize_solib): Make "set/show sysroot" use
4918 add_setshow_optional_filename_cmd so it can be restored to
4919 empty after being set.
4921 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
4923 * Makefile.in (SFILES): New source break-catch-syscall.c.
4924 (COMMON_OBS): New object break-catch-syscall.o.
4925 * break-catch-syscall.c: New file.
4926 * breakpoint.c: Remove inclusion of "xml-syscall.h".
4927 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
4928 (struct syscall_catchpoint): Likewise.
4929 (dtor_catch_syscall): Likewise.
4930 (catch_syscall_inferior_data): Likewise.
4931 (struct catch_syscall_inferior_data): Likewise.
4932 (get_catch_syscall_inferior_data): Likewise.
4933 (catch_syscall_inferior_data_cleanup): Likewise.
4934 (insert_catch_syscall): Likewise.
4935 (remove_catch_syscall): Likewise.
4936 (breakpoint_hit_catch_syscall): Likewise.
4937 (print_it_catch_syscall): Likewise.
4938 (print_one_catch_syscall): Likewise.
4939 (print_mention_catch_syscall): Likewise.
4940 (print_recreate_catch_syscall): Likewise.
4941 (catch_syscall_breakpoint_ops): Likewise.
4942 (syscall_catchpoint_p): Likewise.
4943 (create_syscall_event_catchpoint): Likewise.
4944 (catch_syscall_split_args): Likewise.
4945 (catch_syscall_command_1): Likewise.
4946 (is_syscall_catchpoint_enabled): Likewise.
4947 (catch_syscall_enabled): Likewise.
4948 (catching_syscall_number): Likewise.
4949 (catch_syscall_completer): Likewise.
4950 (clear_syscall_counts): Likewise.
4951 (initialize_breakpoint_ops): Move initialization of syscall
4952 catchpoints to break-catch-syscall.c.
4953 (_initialize_breakpoint): Move code related to syscall catchpoints
4954 to break-catch-syscall.c.
4956 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
4958 * breakpoint.c (breakpoint_find_if): New function.
4959 * breakpoint.h (breakpoint_find_if): New prototype.
4961 2015-03-11 Gary Benson <gbenson@redhat.com>
4963 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
4964 * remote-fileio.c (remote_fileio_to_host_uint): New function.
4965 (remote_fileio_to_host_ulong): Likewise.
4966 (remote_fileio_to_host_mode): Likewise.
4967 (remote_fileio_to_host_time): Likewise.
4968 (remote_fileio_to_host_stat): Likewise.
4969 * remote.c (PACKET_vFile_fstat): New enum value.
4970 (remote_protocol_features): Register the "vFile:fstat" feature.
4971 (remote_hostio_fstat): New function.
4972 (remote_bfd_iovec_stat): Use the above.
4973 (_initialize_remote): Register new "set/show remote
4974 hostio-fstat-packet" command.
4975 * symfile.c (separate_debug_file_exists): Update comment.
4976 * NEWS: Announce new vFile:fstat packet.
4978 2015-03-11 Gary Benson <gbenson@redhat.com>
4980 * common/common-remote-fileio.h: New file.
4981 * common/common-remote-fileio.c: Likewise.
4982 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
4983 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
4984 (COMMON_OBS): Add common-remote-fileio.o.
4985 (common-remote-fileio.o): New rule.
4986 * remote-fileio.h (common-remote-fileio.h): New include.
4987 * remote-fileio.c (gdb/fileio.h): Do not include.
4988 (remote_fileio_to_be): Moved to common-remote-fileio.h.
4989 (remote_fileio_to_fio_uint): Likewise.
4990 (remote_fileio_to_fio_time): Likewise.
4991 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
4992 (remote_fileio_to_fio_mode): Likewise.
4993 (remote_fileio_to_fio_ulong): Likewise.
4994 (remote_fileio_to_fio_stat): Likewise.
4996 2015-03-11 Andy Wingo <wingo@igalia.com>
4998 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
4999 we were checking the cached type, not the cached dynamic type.
5001 2015-03-11 Andy Wingo <wingo@igalia.com>
5003 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
5004 other strings, as these are on the GC'd heap, and will be
5005 collected along with the smob.
5007 2015-03-11 Andy Wingo <wingo@igalia.com>
5009 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
5010 (objfile_functions): Bind gdbscm_objfile_progspace to
5012 * guile/lib/gdb.scm: Add objfile-progspace to exports.
5014 2015-03-11 Andy Wingo <wingo@igalia.com>
5016 * guile/guile.c (_initialize_guile): Disable automatic
5017 finalization, if Guile offers us that possibility.
5018 * guile/guile.c (call_initialize_gdb_module):
5019 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
5020 finalizers in appropriate places.
5021 * configure.ac (AC_TRY_LIBGUILE): Add a check for
5022 scm_set_automatic_finalization_enabled.
5023 * configure: Regenerated.
5025 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5027 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
5030 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5032 * s390-linux-nat.c (struct arch_lwp_info): New.
5033 (s390_fix_watch_points): Rename to...
5034 (s390_prepare_to_resume): ...this. Skip the PER info update
5035 unless the watch points have changed.
5036 (s390_refresh_per_info, s390_new_thread): New functions.
5037 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
5038 s390_fix_watch_points.
5039 (s390_remove_watchpoint): Likewise.
5040 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
5041 Register s390_prepare_to_resume.
5043 2015-03-09 Pedro Alves <palves@redhat.com>
5046 2015-03-07 Pedro Alves <palves@redhat.com>
5047 * common/gdb_socket.h: New file.
5048 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5050 (net_open): Use union gdb_sockaddr_u.
5052 2015-03-07 Pedro Alves <palves@redhat.com>
5054 * configure.ac (build_warnings): Move -Wmissing-prototypes
5055 -Wdeclaration-after-statement -Wmissing-parameter-type
5056 -Wold-style-declaration -Wold-style-definition to the C-specific
5058 * configure: Regenerate.
5060 2015-03-07 Pedro Alves <palves@redhat.com>
5062 * common/gdb_socket.h: New file.
5063 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5065 (net_open): Use union gdb_sockaddr_u.
5067 2015-03-07 Pedro Alves <palves@redhat.com>
5069 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
5070 (exceptions_state_mc_action_iter)
5071 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5073 [__cplusplus] (try_scope_depth): New global.
5074 [__cplusplus] (exception_try_scope_entry)
5075 (exception_try_scope_exit, gdb_exception_sliced_copy)
5076 (exception_rethrow): New functions.
5077 (throw_exception): In C++ mode, throw
5078 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
5079 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
5080 (throw_it): In C++ mode, use try_scope_depth.
5081 * common/common-exceptions.h [!__cplusplus]
5082 (exceptions_state_mc_action_iter)
5083 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5085 [__cplusplus] (exception_try_scope_entry)
5086 (exception_try_scope_exit, exception_rethrow): Declare.
5087 [__cplusplus] (struct exception_try_scope): New struct.
5088 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
5090 (struct gdb_exception_RETURN_MASK_ALL)
5091 (struct gdb_exception_RETURN_MASK_ERROR)
5092 (struct gdb_exception_RETURN_MASK_QUIT): New types.
5094 2015-03-07 Pedro Alves <palves@redhat.com>
5096 * main.c (handle_command_errors): Remove volatile qualifier from
5099 2015-03-07 Pedro Alves <palves@redhat.com>
5101 * breakpoint.c (save_breakpoints): Adjust to avoid code between
5103 * gdbtypes.c (safe_parse_type): Remove empty line.
5104 (types_deeply_equal):
5105 * guile/scm-frame.c (gdbscm_frame_name):
5106 * linux-thread-db.c (find_new_threads_once):
5107 * python/py-breakpoint.c (bppy_get_commands):
5108 * record-btrace.c (record_btrace_insert_breakpoint)
5109 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
5110 (record_btrace_start_replaying): Adjust to avoid code between TRY
5113 2015-03-07 Pedro Alves <palves@redhat.com>
5115 * common/common-exceptions.c (struct catcher) <exception>: No
5116 longer a pointer to volatile exception. Now an exception value.
5117 <mask>: Delete field.
5118 (exceptions_state_mc_init): Remove all parameters. Adjust.
5119 (exceptions_state_mc): No longer pop the catcher here.
5120 (exceptions_state_mc_catch): New function.
5121 (throw_exception): Adjust.
5122 * common/common-exceptions.h (exceptions_state_mc_init): Remove
5124 (exceptions_state_mc_catch): Declare.
5125 (TRY_CATCH): Rename to ...
5126 (TRY): ... this. Remove EXCEPTION and MASK parameters.
5127 (CATCH, END_CATCH): New.
5128 All callers adjusted.
5130 2015-03-07 Tom Tromey <tromey@redhat.com>
5132 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
5134 2015-03-07 Pedro Alves <palves@redhat.com>
5136 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5137 (amd64_epilogue_frame_cache): Normal exception handling code.
5138 * break-catch-throw.c (check_status_exception_catchpoint)
5139 (re_set_exception_catchpoint): Ditto.
5140 * cli/cli-interp.c (safe_execute_command):
5141 * cli/cli-script.c (script_from_file): Ditto.
5142 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
5144 * compile/compile-object-run.c (compile_object_run): Ditto.
5145 * cp-abi.c (baseclass_offset): Ditto.
5146 * cp-valprint.c (cp_print_value): Ditto.
5147 * exceptions.c (catch_exceptions_with_msg):
5148 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
5149 * frame.c (get_frame_address_in_block_if_available): Ditto.
5150 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5151 (i386_sigtramp_frame_cache): Ditto.
5152 * infcmd.c (post_create_inferior): Ditto.
5153 * linespec.c (parse_linespec, find_linespec_symbols):
5154 * p-valprint.c (pascal_object_print_value): Ditto.
5155 * parse.c (parse_expression_for_completion): Ditto.
5156 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5157 * remote.c (remote_get_noisy_reply): Ditto.
5158 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
5159 * solib-svr4.c (solib_svr4_r_map): Ditto.
5161 2015-03-06 Gary Benson <gbenson@redhat.com>
5163 * common/common-utils.h (startswith): New inline function.
5164 All places where this logic was used updated to use the above.
5166 2015-03-05 Pedro Alves <palves@redhat.com>
5169 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
5170 after reading the breakpoint's shadow memory.
5172 2015-03-05 Mark Kettenis <kettenis@gnu.org>
5174 * hppabsd-nat.c: Remove file.
5175 * hppaobsd-nat.c: New file.
5176 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
5178 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
5181 2015-03-04 Pedro Alves <palves@redhat.com>
5183 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
5184 (target_decr_pc_after_break): Delete declaration.
5185 * target.c (default_target_decr_pc_after_break)
5186 (target_decr_pc_after_break): Delete.
5187 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
5188 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
5189 * linux-thread-db.c (check_event): Likewise.
5190 * infrun.c (adjust_pc_after_break): Likewise.
5191 * darwin-nat.c (cancel_breakpoint): Likewise.
5192 * aix-thread.c (aix_thread_wait): Likewise.
5193 * target-delegates.c: Regenerate.
5195 2015-03-04 Pedro Alves <palves@redhat.com>
5197 * linux-nat.c (save_sigtrap): Check for breakpoints before
5198 checking watchpoints.
5199 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
5200 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
5201 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
5202 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
5203 (linux_nat_stopped_by_sw_breakpoint)
5204 (linux_nat_supports_stopped_by_sw_breakpoint)
5205 (linux_nat_stopped_by_hw_breakpoint)
5206 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
5207 (linux_nat_wait_1): Don't re-increment the PC if relying on
5208 SIGTRAP's siginfo->si_code.
5209 (linux_nat_add_target): Install new target methods.
5210 * linux-thread-db.c (check_event): Don't account for breakpoint PC
5211 offset if the target already adjusted the PC.
5212 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
5213 (GDB_ARCH_TRAP_BRKPT): New.
5214 (TRAP_HWBKPT): Define if not already defined.
5216 2015-03-04 Pedro Alves <palves@redhat.com>
5218 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
5219 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
5221 <stop_reason>: New field.
5222 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
5223 (packet_set_cmd_state): New function.
5224 (remote_protocol_features): Register the "swbreak" and "hwbreak"
5226 (remote_query_supported): If not disabled with the corresponding
5227 "set remote foo-packet" command, report support for the swbreak
5228 and hwbreak features.
5229 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
5231 <stop_reason>: New field.
5232 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
5233 (remote_wait_as): Adjust.
5234 (remote_stopped_by_sw_breakpoint)
5235 (remote_supports_stopped_by_sw_breakpoint)
5236 (remote_stopped_by_hw_breakpoint)
5237 (remote_supports_stopped_by_hw_breakpoint): New functions.
5238 (remote_stopped_by_watchpoint): New function.
5239 (init_remote_ops): Install them.
5240 (_initialize_remote): Register new "set/show remote
5241 swbreak-feature-packet" and "set/show remote
5242 swbreak-feature-packet" commands.
5244 2015-03-04 Pedro Alves <palves@redhat.com>
5246 * btrace.h: Include target/waitstatus.h.
5247 (struct btrace_thread_info) <stop_reason>: New field.
5248 * record-btrace.c (record_btrace_step_thread): Use
5249 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5250 (record_btrace_decr_pc_after_break): Delete.
5251 (record_btrace_stopped_by_sw_breakpoint)
5252 (record_btrace_supports_stopped_by_sw_breakpoint)
5253 (record_btrace_stopped_by_hw_breakpoint)
5254 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
5255 (init_record_btrace_ops): Install them.
5256 * record-full.c (record_full_hw_watchpoint): Delete and replace
5258 (record_full_stop_reason): ... this throughout.
5259 (record_full_exec_insn): Adjust.
5260 (record_full_wait_1): Adjust. No longer re-increment the PC.
5261 (record_full_wait_1): Adjust. Use
5262 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5263 (record_full_stopped_by_watchpoint): Adjust.
5264 (record_full_stopped_by_sw_breakpoint)
5265 (record_full_supports_stopped_by_sw_breakpoint)
5266 (record_full_supports_stopped_by_sw_breakpoint)
5267 (record_full_stopped_by_hw_breakpoint)
5268 (record_full_supports_stopped_by_hw_breakpoint): New functions.
5269 (init_record_full_ops, init_record_full_core_ops): Install them.
5270 * record.c (record_check_stopped_by_breakpoint): New function.
5271 * record.h: Include target/waitstatus.h.
5272 (record_check_stopped_by_breakpoint): New declaration.
5274 2015-03-04 Pedro Alves <palves@redhat.com>
5276 enum lwp_stop_reason -> enum target_stop_reason
5277 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
5278 (linux_nat_stopped_by_watchpoint, status_callback)
5279 (linux_nat_wait_1): Adjust.
5280 * linux-nat.h (enum lwp_stop_reason): Delete.
5281 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
5282 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
5283 * target/waitstatus.h (enum target_stop_reason): New.
5285 2015-03-04 Pedro Alves <palves@redhat.com>
5287 * breakpoint.c (need_moribund_for_location_type): New function.
5288 (bpstat_stop_status): Don't skipping checking moribund locations
5289 of breakpoint types which the target tell caused a stop.
5290 (program_breakpoint_here_p): New function, factored out from ...
5291 (bp_loc_is_permanent): ... this.
5292 (update_global_location_list): Don't create a moribund location if
5293 the target supports reporting stops of the type of the removed
5295 * breakpoint.h (program_breakpoint_here_p): New declaration.
5296 * infrun.c (adjust_pc_after_break): Return early if the target has
5297 already adjusted the PC. Add comments.
5298 (handle_signal_stop): If nothing explains a signal, and the target
5299 tells us the stop was caused by a software breakpoint, check if
5300 there's a breakpoint instruction in the memory. If so, adjust the
5301 PC before presenting the stop to the user. Otherwise, ignore the
5302 trap. If nothing explains a signal, and the target tells us the
5303 stop was caused by a hardware breakpoint, ignore the trap.
5304 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
5305 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
5306 to_supports_stopped_by_hw_breakpoint>: New fields.
5307 (target_stopped_by_sw_breakpoint)
5308 (target_supports_stopped_by_sw_breakpoint)
5309 (target_stopped_by_hw_breakpoint)
5310 (target_supports_stopped_by_hw_breakpoint): Define.
5311 * target-delegates.c: Regenerate.
5313 2015-03-04 Pedro Alves <palves@redhat.com>
5315 * infrun.c (follow_fork_inferior): Use the whole of the
5316 inferior_ptid and pending_follow.related_pid ptids instead of
5317 building ptids from the process components. Adjust verbose output
5318 to use target_pid_to_str.
5319 * linux-nat.c (linux_child_follow_fork): Use the whole of the
5320 inferior_ptid and pending_follow.related_pid ptids instead of
5321 building ptids from the process components.
5323 2015-03-04 Mark Kettenis <kettenis@gnu.org>
5325 * inf-ptrace.c [PT_GET_PROCESS_STATE]
5326 (inf_ptrace_insert_fork_catchpoint): New function.
5327 (inf_ptrace_remove_fork_catchpoint): New function.
5328 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
5330 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5332 * s390-linux-tdep.c (s390_register_name): Return empty string
5333 instead of NULL for registers that shouldn't be visible.
5335 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5337 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
5338 XML file for 64-bit targets.
5340 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
5342 * target.h (find_default_create_inferior): Remove declaration.
5343 (find_default_attach): Likewise.
5345 2015-03-03 Pedro Alves <palves@redhat.com>
5347 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
5348 Use ptid_get_pid to get the overall process id when resuming all
5351 2015-03-03 Pedro Alves <palves@redhat.com>
5353 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
5354 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
5355 * inf-ptrace.c (get_ptrace_pid): New function.
5356 (inf_ptrace_resume): Use it.
5357 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
5360 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5362 * nat/linux-btrace.c: Include sys/utsname.h.
5363 (linux_determine_kernel_ptr_bits): New.
5364 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
5365 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
5368 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5370 * btrace.c (ftrace_update_function): Treat return as tailcall for
5371 "_dl_runtime_resolve".
5373 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5375 * btrace.h (btrace_function) <lbegin, lend>: Remove.
5376 * btrace.c (ftrace_debug): Do not print the line range.
5377 (ftrace_skip_file, ftrace_update_lines): Remove.
5378 (ftrace_new_function): Remove lbegin and lend initialization.
5379 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
5380 * record-btrace.c (btrace_compute_src_line_range): New.
5381 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
5383 2015-03-02 Pedro Alves <palves@redhat.com>
5385 * infrun.c (follow_exec): Delete all threads of the process except
5386 the event thread. Extended comments.
5388 2015-03-02 Joel Brobecker <brobecker@adacore.com>
5390 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
5392 2015-03-02 Joel Brobecker <brobecker@adacore.com>
5394 * utils.h: Remove <stdbool.h> #include.
5395 (producer_is_gcc): Change return type to "int".
5396 * utils.c (producer_is_gcc): Change return type to int.
5397 Return 1 instead of true, and 0 instead of false.
5398 Adjust function documentation accordingly.
5400 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5402 * s390-linux-nat.c (have_regset_vxrs): New static variable.
5403 (s390_linux_fetch_inferior_registers): Handle vector registers, if
5405 (s390_linux_store_inferior_registers): Likewise.
5406 (s390_get_hwcap): Remove function. Embed its logic...
5407 (s390_read_description): ...here. Yield a target description with
5408 vector registers if applicable.
5409 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
5410 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
5411 "features/s390x-tevx-linux64.c".
5412 (struct gdbarch_tdep) <v0_full_regnum>: New field.
5413 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
5414 for "GNU/Linux-specific registers".
5415 (s390_dwarf_reg_r0l): New enum value.
5416 (s390_dwarf_reg_to_regnum): Support vector registers.
5417 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
5418 of GPR lower halves.
5419 (regnum_is_vxr_full): New function.
5420 (s390_register_name): New function.
5421 (s390_pseudo_register_name): Handle v0-v15, which are composed of
5422 f0-f15 and v0l-v15l.
5423 (s390_pseudo_register_type): Likewise.
5424 (s390_pseudo_register_read): Likewise.
5425 (s390_pseudo_register_write): Likewise.
5426 (s390_value_from_register): Account for the fact that values are
5427 placed left-justified in vector registers.
5428 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
5429 the vector reggroup and omit them from the general reggroup.
5430 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
5431 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
5432 (s390_iterate_over_regset_sections): Add iterations for the two
5434 (s390_core_read_description): Yield a target description with
5435 vector registers if applicable.
5436 (s390_gdbarch_init): Handle target descriptions with vector
5437 registers. Add "register_name" gdbarch method.
5438 (_initialize_s390_tdep): Call new tdesc initialization functions.
5439 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
5440 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
5441 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
5442 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
5443 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
5444 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
5445 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
5446 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
5447 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
5448 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
5449 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
5450 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
5451 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
5452 (S390_NUM_REGS): Adjust value.
5453 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
5454 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
5455 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
5456 * NEWS: Announce S/390 vector register support.
5458 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5460 * features/s390-tevx-linux64.xml: New file.
5461 * features/s390-vx-linux64.xml: New file.
5462 * features/s390-vx.xml: New file.
5463 * features/s390x-tevx-linux64.xml: New file.
5464 * features/s390x-vx-linux64.xml: New file.
5465 * features/Makefile (WHICH): Add s390-vx-linux64,
5466 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
5467 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
5468 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
5470 * features/s390-tevx-linux64.c: New generated file.
5471 * features/s390-vx-linux64.c: Likewise.
5472 * features/s390x-tevx-linux64.c: Likewise.
5473 * features/s390x-vx-linux64.c: Likewise.
5474 * regformats/s390-tevx-linux64.dat: Likewise.
5475 * regformats/s390-vx-linux64.dat: Likewise.
5476 * regformats/s390x-tevx-linux64.dat: Likewise.
5477 * regformats/s390x-vx-linux64.dat: Likewise.
5479 2015-02-28 Doug Evans <xdje42@gmail.com>
5481 * symtab.h (struct symtab) <next>: Fix comment.
5483 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
5485 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
5488 2015-02-27 Pedro Alves <palves@redhat.com>
5490 * dtrace-probe.c (dtrace_probe_ops): Make extern.
5492 2015-02-27 Pedro Alves <palves@redhat.com>
5494 * common/common-exceptions.h (exception_none): Declare.
5495 * common/common-exceptions.c (exception_none): Moved from
5497 (exceptions_state_mc_init): Use exception_none.
5498 * exceptions.c (exception_none): Move to
5499 common/common-exceptions.c.
5500 * exceptions.h (exception_none): Move to
5501 common/common-exceptions.h.
5503 2015-02-27 Pedro Alves <palves@redhat.com>
5505 * main.c (catch_command_errors, catch_command_errors_const):
5506 Remove 'mask' argument. Adjust.
5507 (captured_main): Adjust callers.
5509 2015-02-27 Pedro Alves <palves@redhat.com>
5511 * python/python-internal.h: Include "extension-priv.h".
5513 2015-02-27 Pedro Alves <palves@redhat.com>
5515 * breakpoint.h (enum print_stop_action): Move further up in the
5518 2015-02-27 Pedro Alves <palves@redhat.com>
5520 * gdbarch.sh: Include regcache.h.
5521 * gdbarch.h: Regenerate.
5523 2015-02-27 Pedro Alves <palves@redhat.com>
5525 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
5526 Remove duplicate const.
5527 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
5530 2015-02-27 Pedro Alves <palves@redhat.com>
5532 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
5533 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
5534 * features/feature_to_c.sh: Tag the generated xml_builtin array
5535 with extern const in C++ mode.
5537 2015-02-27 Tom Tromey <tromey@redhat.com>
5539 * minidebug.c (struct lzma_stream): Rename to ...
5540 (struct gdb_lzma_stream): ... this.
5541 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
5543 2015-02-27 Pedro Alves <palves@redhat.com>
5545 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
5547 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5548 (mi_cmd_stack_list_variables): Use it.
5550 2015-02-27 Pedro Alves <palves@redhat.com>
5552 * x86-linux-nat.c (u_debugreg_offset): New function.
5553 (x86_linux_dr_get, x86_linux_dr_set): Use it.
5555 2015-02-27 Pedro Alves <palves@redhat.com>
5557 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
5559 Include break-common.h.
5561 2015-02-27 Tom Tromey <tromey@redhat.com>
5562 Pedro Alves <palves@redhat.com>
5564 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
5565 local used to iterate over enums.
5566 * completer.c (signal_completer): Likewise.
5567 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
5568 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5569 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
5570 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
5571 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
5572 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
5573 * tui-wingeneral.c (tui_refresh_all): Likewise.
5575 2015-02-27 Pedro Alves <palves@redhat.com>
5577 * target.h: Include "infrun.h".
5579 2015-02-27 Pedro Alves <palves@redhat.com>
5581 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
5583 2015-02-27 Pedro Alves <palves@redhat.com>
5585 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
5587 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
5589 2015-02-27 Pedro Alves <palves@redhat.com>
5591 * cli-out.c (_rl_erase_entire_line): Move declaration out of
5592 cli_mld_erase_entire_line, and make it extern "C".
5593 * common/common-defs.h (EXTERN_C): New.
5594 * completer.c (_rl_completion_prefix_display_length)
5595 (_rl_print_completions_horizontally, QSFUNC): Move declarations
5596 out of gdb_display_match_list_1.
5597 (_rl_qsort_string_compare): Move declaration out of
5598 gdb_display_match_list_1, and make it extern "C".
5599 * defs.h (re_comp): Use EXTERN_C.
5600 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
5601 and make it extern "C".
5602 (monstartup): Move declaration out of maintenance_set_profile_cmd,
5603 and make it extern "C".
5604 (main): Move declaration out of maintenance_set_profile_cmd.
5605 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
5608 2015-02-27 Pedro Alves <palves@redhat.com>
5610 * python/python.c (GdbMethods): Rename to ...
5611 (python_GdbMethods): ... this and make extern.
5612 (GdbModuleDef): Rename to ...
5613 (python_GdbModuleDef): ... this and make extern.
5615 2015-02-27 Pedro Alves <palves@redhat.com>
5617 * record-btrace.c (set_record_btrace_cmdlist)
5618 (show_record_btrace_cmdlist): Remove redefinitions.
5620 2015-02-27 Tom Tromey <tromey@redhat.com>
5621 Pedro Alves <palves@redhat.com>
5623 * dwarf2-frame.c (enum cfa_how_kind, struct
5624 dwarf2_frame_state_reg_info): Move out of struct
5626 * dwarf2read.c (struct tu_stats): Move out of struct
5628 (struct file_entry): Move out of struct line_header.
5629 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
5630 typedef_field_list): Move out of struct field_info.
5631 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
5632 Move out of struct dynamic_prop.
5633 (union type_owner, union field_location, struct field, struct
5634 range_bounds, union type_specific): Move out of struct main_type.
5635 (struct fn_fieldlist, struct fn_field, struct typedef_field)
5636 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
5637 (struct call_site_target, union call_site_parameter_u, struct
5638 call_site_parameter): Move out of struct call_site.
5639 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
5641 (enum srcdest_kind): Move out of struct srcdest.
5642 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
5643 * prologue-value.h (enum prologue_value_kind): Move out of struct
5645 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
5647 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
5648 out of struct field_info.
5649 * symfile.h (struct other_sections): Move out of struct
5651 * symtab.c (struct symbol_cache_slot): Move out struct
5653 * target-descriptions.c (enum tdesc_type_kind): Move out of
5654 typedef struct tdesc_type.
5655 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
5656 struct tui_line_or_address.
5657 * value.c (enum internalvar_kind, union internalvar_data): Move
5658 out of struct internalvar.
5659 * xtensa-tdep.h (struct ctype_cache): Move out of struct
5662 2015-02-27 Tom Tromey <tromey@redhat.com>
5663 Pedro Alves <palves@redhat.com>
5665 Rename symbols whose names are reserved C++ keywords throughout.
5667 2015-02-27 Pedro Alves <palves@redhat.com>
5669 * Makefile.in (COMPILER): New, get it from autoconf.
5670 (COMPILE.pre, CC_LD): Use COMPILER.
5671 (CXX): Get from autoconf instead.
5672 (CXX_FOR_TARGET): Default to g++ instead of gcc.
5673 * acinclude.m4: Include build-with-cxx.m4.
5674 * build-with-cxx.m4: New file.
5675 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
5676 Disable -Werror by default if building in C++ mode.
5677 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
5678 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
5679 Run supported-warning-flags tests with the C++ compiler.
5680 Save/restore CXXFLAGS too.
5681 * configure: Regenerate.
5683 2015-02-27 Pedro Alves <palves@redhat.com>
5685 * libiberty.m4: New file.
5686 * acinclude.m4: Include libiberty.m4.
5687 * configure.ac: Call libiberty_INIT.
5688 * config.in, configure: Regenerate.
5690 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5692 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
5693 31-bit targets, but 64-bit targets as well.
5694 (s390_gnu_triplet_regexp): New function.
5695 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
5696 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
5699 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
5701 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
5702 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
5703 from CONTEXT_DEBUGGER.
5705 2015-02-26 Doug Evans <dje@google.com>
5707 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
5709 (set_type_vptr_fieldno): Ditto.
5710 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
5711 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
5713 2015-02-26 Pedro Alves <palves@redhat.com>
5715 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
5716 * complaints.c (vcomplaint): Pass argument FMT directly to
5717 printf-like functions instead of complaint->fmt.
5718 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
5719 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
5720 * compile/compile-loc2c.c (pushf, unary, binary): Add
5722 (do_compile_dwarf_expr_to_c): Pass string literal as format string
5724 (BINARY): Pass string literal as format string to 'binary'.
5725 * compile/compile-object-load.c (link_callbacks_einfo): Add
5727 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
5729 2015-02-26 Pedro Alves <palves@redhat.com>
5731 * windows-termcap.c: Rename to ...
5732 * stub-termcap.c: ... this. Adjust header line.
5733 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
5735 * configure: Regenerate.
5736 * configure.ac: Refer to stub-termcap.o instead of
5738 * gdb_curses.h: Mention stub-termcap.c instead of
5741 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5743 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
5744 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
5746 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
5748 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
5750 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5752 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
5753 bfd_canonicalize_symtab.
5755 2015-02-25 John Baldwin <jhb@FreeBSD.org>
5757 * amd64fbsd-nat.c: Include sys/user.h.
5758 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5759 instead of KERN_PS_STRINGS to locate the signal trampoline.
5760 * i386fbsd-nat.c: Include sys/user.h.
5761 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5762 instead of KERN_PS_STRINGS to locate the signal trampoline.
5763 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
5764 (amd64fbsd_sigtramp_p): New.
5765 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
5766 longer set default values.
5767 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
5768 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
5769 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
5770 (i386fbsd_freebsd4_sigtramp_start)
5771 (i386fbsd_freebsd4_sigtramp_middle)
5772 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
5773 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
5774 (i386fbsd_sigtramp_p): New.
5775 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
5776 longer set default values.
5777 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
5779 2015-02-25 John Baldwin <jhb@freebsd.org>
5781 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
5782 get_frame_register instead of frame_unwind_register_unsigned.
5784 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 * compile/compile-c-support.c (c_compute_program): Change // comment.
5788 * compile/compile-object-load.c (setup_sections): Change // comment.
5790 2015-02-26 Joel Brobecker <brobecker@adacore.com>
5793 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
5795 2015-02-23 Pedro Alves <palves@redhat.com>
5797 * remote.c (skip_to_semicolon): New function.
5798 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
5799 special case the stop reasons that look like hex numbers
5800 upfront. Instead handle real register numbers after matching
5801 all the known stop reasons.
5803 2015-02-21 Doug Evans <dje@google.com>
5805 PR c++/17976, symtab/17821
5806 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
5807 is_in_anonymous. All callers updated.
5808 (find_symbol_in_baseclass): Ditto.
5809 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
5810 for symbols in an anonymous namespace.
5811 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
5812 DW_AT_name directly.
5813 (dwarf2_name): Convert missing namespace name to
5814 CP_ANONYMOUS_NAMESPACE_STR.
5816 2015-02-20 Pedro Alves <palves@redhat.com>
5818 * linux-nat.c (linux_handle_extended_wait): Call
5819 thread_db_notice_clone whenever a new clone LWP is detected.
5820 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
5822 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
5823 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
5824 (linux_unstop_all_lwps): Declare.
5825 * linux-thread-db.c (struct thread_get_info_inout): Delete.
5826 (thread_get_info_callback): Delete.
5827 (thread_from_lwp): Use td_thr_get_info and record_thread.
5828 (thread_db_attach_lwp): Delete.
5829 (thread_db_notice_clone): New function.
5830 (try_thread_db_load_1): If /proc is mounted and shows the
5831 process'es task list, walk over all LWPs and call thread_from_lwp
5832 instead of relying on td_ta_thr_iter.
5833 (attach_thread): Don't call check_thread_signals here. Split the
5834 tail part of the function (which adds the thread to the core GDB
5836 (record_thread): ... this function. Call check_thread_signals
5838 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
5839 call thread_from_lwp.
5840 (thread_db_update_thread_list): Rename to ...
5841 (thread_db_update_thread_list_org): ... this.
5842 (thread_db_update_thread_list): New function.
5843 (thread_db_find_thread_from_tid): Delete.
5844 (thread_db_get_ada_task_ptid): Simplify.
5845 * nat/linux-procfs.c: Include <sys/stat.h>.
5846 (linux_proc_task_list_dir_exists): New function.
5847 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
5849 2015-02-20 Pedro Alves <palves@redhat.com>
5851 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
5852 main LWP. Handle the case of waitpid returning 0 if we're already
5853 attached to the LWP. Don't set the LWP's last_resume_kind to
5854 resume_stop if we already knew about the LWP.
5855 (linux_nat_filter_event): Add debug logs.
5857 2015-02-20 Pedro Alves <palves@redhat.com>
5859 * target.h (forward_target_decr_pc_after_break): Delete
5862 2015-02-20 Pedro Alves <palves@redhat.com>
5865 * linux-thread-db.c (thread_get_info_callback): Return early if
5866 the thread's lwp id is -1.
5868 2015-02-20 Joel Brobecker <brobecker@adacore.com>
5872 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
5874 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
5875 (dtrace_get_probes) Change type of variable 'dof'.
5877 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
5879 PR breakpoints/16812
5880 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
5881 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
5882 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
5884 2015-02-19 David Taylor <dtaylor@emc.com>
5886 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
5888 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
5890 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
5892 (tui_putc): Don't call tui_handle_resize_during_io.
5893 (tui_getc): Likewise.
5894 (tui_mld_getc): Likewise.
5895 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
5896 (tui_sigwinch_token): New static variable.
5897 (tui_initialize_win): Adjust documentation. Set
5899 (tui_async_resize_screen): New asynchronous callback.
5900 (tui_sigwinch_handler): Adjust documentation. Asynchronously
5901 invoke tui_async_resize_screen.
5903 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
5905 * configure: Regenerated.
5906 * configure.ac: Use GDB_AC_TRANSFORM.
5907 * Makefile.in (aclocal_m4_deps): Added transform.m4.
5908 * acinclude.m4: sinclude transform.m4.
5909 * transform.m4: New file.
5910 (GDB_AC_TRANSFORM): New macro.
5912 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5914 * NEWS: Announce the support for DTrace SDT probes.
5916 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5918 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
5919 (amd64_dtrace_parse_probe_argument): New function.
5920 (amd64_dtrace_probe_is_enabled): Likewise.
5921 (amd64_dtrace_enable_probe): Likewise.
5922 (amd64_dtrace_disable_probe): Likewise.
5923 (amd64_linux_init_abi): Register the
5924 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
5925 `gdbarch_dtrace_disable_probe' and
5926 `gdbarch_dtrace_probe_is_enabled' hooks.
5927 (amd64_dtrace_disabled_probe_sequence_1): New constant.
5928 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
5929 (amd64_dtrace_enable_probe_sequence): Likewise.
5930 (amd64_dtrace_disable_probe_sequence): Likewise.
5932 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5934 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
5935 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
5936 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
5938 * Makefile.in (SFILES): dtrace-probe.c added.
5939 * configure: Regenerate.
5940 * dtrace-probe.c: New file.
5941 (SHT_SUNW_dof): New constant.
5942 (dtrace_probe_type): New enum.
5943 (dtrace_probe_arg): New struct.
5944 (dtrace_probe_arg_s): New typedef.
5945 (struct dtrace_probe_enabler): New struct.
5946 (dtrace_probe_enabler_s): New typedef.
5947 (dtrace_probe): New struct.
5948 (dtrace_probe_is_linespec): New function.
5949 (dtrace_dof_sect_type): New enum.
5950 (dtrace_dof_dofh_ident): Likewise.
5951 (dtrace_dof_encoding): Likewise.
5952 (DTRACE_DOF_ENCODE_LSB): Likewise.
5953 (DTRACE_DOF_ENCODE_MSB): Likewise.
5954 (dtrace_dof_hdr): New struct.
5955 (dtrace_dof_sect): Likewise.
5956 (dtrace_dof_provider): Likewise.
5957 (dtrace_dof_probe): Likewise.
5958 (DOF_UINT): New macro.
5959 (DTRACE_DOF_PTR): Likewise.
5960 (DTRACE_DOF_SECT): Likewise.
5961 (dtrace_process_dof_probe): New function.
5962 (dtrace_process_dof): Likewise.
5963 (dtrace_build_arg_exprs): Likewise.
5964 (dtrace_get_arg): Likewise.
5965 (dtrace_get_probes): Likewise.
5966 (dtrace_get_probe_argument_count): Likewise.
5967 (dtrace_can_evaluate_probe_arguments): Likewise.
5968 (dtrace_evaluate_probe_argument): Likewise.
5969 (dtrace_compile_to_ax): Likewise.
5970 (dtrace_probe_destroy): Likewise.
5971 (dtrace_gen_info_probes_table_header): Likewise.
5972 (dtrace_gen_info_probes_table_values): Likewise.
5973 (dtrace_probe_is_enabled): Likewise.
5974 (dtrace_probe_ops): New variable.
5975 (info_probes_dtrace_command): New function.
5976 (_initialize_dtrace_probe): Likewise.
5977 (dtrace_type_name): Likewise.
5979 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5981 * gdbarch.sh (dtrace_parse_probe_argument): New.
5982 (dtrace_probe_is_enabled): Likewise.
5983 (dtrace_enable_probe): Likewise.
5984 (dtrace_disable_probe): Likewise.
5985 * gdbarch.c: Regenerate.
5986 * gdbarch.h: Regenerate.
5988 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5990 * stap-probe.c (stap_probe_ops): Add NULLs in the static
5991 stap_probe_ops for `enable_probe' and `disable_probe'.
5992 * probe.c (enable_probes_command): New function.
5993 (disable_probes_command): Likewise.
5994 (_initialize_probe): Define the cli commands `enable probe' and
5996 (parse_probe_linespec): New function.
5997 (info_probes_for_ops): Use parse_probe_linespec.
5998 * probe.h (probe_ops): New hooks `enable_probe' and
6001 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6003 * probe.c (compute_probe_arg): Moved from stap-probe.c
6004 (compile_probe_arg): Likewise.
6005 (probe_funcs): Likewise.
6006 * stap-probe.c (compute_probe_arg): Moved to probe.c.
6007 (compile_probe_arg): Likewise.
6008 (probe_funcs): Likewise.
6010 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6012 * probe.c (print_ui_out_not_applicables): New function.
6013 (exists_probe_with_pops): Likewise.
6014 (info_probes_for_ops): Do not include column headers for probe
6015 types for which no probe has been actually found on any object.
6016 Also invoke `print_ui_out_not_applicables' in order to match the
6017 column rows with the header when probes of several types are
6019 Print the "Type" column.
6020 * probe.h (probe_ops): Added a new probe operation `type_name'.
6021 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
6022 (stap_type_name): New function.
6024 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
6026 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
6027 (key_is_command_char): Delete.
6029 2015-02-17 Pedro Alves <palves@redhat.com>
6031 * tui/tui.c (tui_enable): Resize windows before anything
6032 might show a window.
6034 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
6037 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
6038 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
6040 * aarch64-tdep.h (tdesc_aarch64): Declare.
6042 2015-02-12 Mark Wielaard <mjw@redhat.com>
6044 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
6046 2015-02-13 Doug Evans <dje@google.com>
6048 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
6049 anonymous_namespace to is_in_anonymous for consistency with the rest
6051 (cp_lookup_bare_symbol): Fix typo in comment.
6052 (cp_search_static_and_baseclasses): Ditto.
6053 (search_symbol_list): Use vertical space in comment better.
6054 (reset_directive_searched): Ditto. Fix typo.
6055 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
6057 2015-02-13 Yao Qi <yao.qi@arm.com>
6059 * MAINTAINERS: Update my email address.
6061 2015-02-12 Doug Evans <dje@google.com>
6063 * symtab.c (completion_list_add_name): Fix memory leak.
6065 2015-02-12 Doug Evans <dje@google.com>
6067 * completer.c (complete_line): Remove incorrect comment.
6069 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6071 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
6072 (py_print_frame): Use RETURN_MASK_ERROR.
6074 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
6077 function comment. Wrap all function that can throw in cleanups.
6078 (gdbpy_apply_frame_filter): Wrap all function that can throw in
6081 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6083 * python/py-framefilter.c (py_print_frame): Substitute goto error.
6084 Remove the error label.
6086 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6088 * python/py-framefilter.c (py_print_frame): Put conditional code paths
6089 with goto first, indent the former else codepath left. Put variable
6090 'elided' to a new inner block.
6092 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6094 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
6096 2015-02-11 Pedro Alves <palves@redhat.com>
6098 * xcoffread.c (within_function): Delete.
6100 2015-02-11 Tom Tromey <tromey@redhat.com>
6101 Pedro Alves <palves@redhat.com>
6103 * breakpoint.c (base_breakpoint_ops): Delete.
6104 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
6105 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
6106 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
6107 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
6108 * python/py-arch.c (arch_object_type): Make extern.
6109 * python/py-block.c (block_syms_iterator_object_type): Make extern.
6110 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
6111 * python/py-cmd.c (cmdpy_object_type): Make extern.
6112 * python/py-continueevent.c (continue_event_object_type)
6113 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
6114 parameter. Update all callers.
6115 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
6116 * python/py-exitedevent.c (exited_event_object_type): Make extern.
6117 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
6118 * python/py-function.c (fnpy_object_type): Make extern.
6119 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
6120 * python/py-infevents.c (call_pre_event_object_type)
6121 (inferior_call_post_event_object_type).
6122 (memory_changed_event_object_type): Make extern.
6123 * python/py-infthread.c (thread_object_type): Make extern.
6124 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
6125 * python/py-linetable.c (linetable_entry_object_type)
6126 (linetable_object_type, ltpy_iterator_object_type): Make extern.
6127 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6128 (clear_objfiles_event_object_type): Make extern.
6129 * python/py-objfile.c (objfile_object_type): Make extern.
6130 * python/py-param.c (parmpy_object_type): Make extern.
6131 * python/py-progspace.c (pspace_object_type): Make extern.
6132 * python/py-signalevent.c (signal_event_object_type): Make extern.
6133 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
6134 * python/py-type.c (type_object_type, field_object_type)
6135 (type_iterator_object_type): Make extern.
6136 * python/python.c (python_extension_script_ops)
6137 (python_extension_ops): Make extern.
6138 * stap-probe.c (stap_probe_ops): Make extern.
6140 2015-02-11 Pedro Alves <pedro@codesourcery.com>
6142 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
6143 because the event thread is not the current thread.
6145 2015-02-11 Doug Evans <xdje42@gmail.com>
6147 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
6148 been initialized yet, return NULL.
6150 2015-02-11 Doug Evans <dje@google.com>
6152 * symfile.h (new_symfile_objfile): Delete.
6153 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
6154 All callers updated.
6156 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6158 * tui/tui-io.c (tui_handle_resize_during_io): Call
6159 tui_update_gdb_sizes() after resizing the screen.
6160 * tui/tui.c (tui_enable): Resize the terminal before
6161 calling tui_update_gdb_sizes().
6163 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6165 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
6166 line before printing a newline.
6168 2015-02-11 Mark Wielaard <mjw@redhat.com>
6170 * utils.c (producer_is_gcc): Return true or false.
6172 2015-02-10 Mark Wielaard <mjw@redhat.com>
6174 * utils.h (producer_is_gcc): Change return type to bool. Add major
6176 * utils.c (producer_is_gcc): Likewise.
6177 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
6178 * dwarf2read.c (check_producer): Likewise.
6180 2015-02-10 Pedro Alves <palves@redhat.com>
6182 * infrun.c (displaced_step_fixup): Switch to the event thread
6183 before calling gdbarch_displaced_step_fixup.
6185 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6187 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
6189 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
6191 * ada-varobj.c (ada_name_of_child): Constify parent.
6192 (ada_path_expr_of_child): Same.
6193 (ada_value_of_child): Same.
6194 (ada_type_of_child): Same.
6195 * c-varobj.c (c_is_path_expr_parent): Same.
6196 (c_describe_child): Same.
6197 (c_name_of_child): Same.
6198 (c_value_of_child): Same.
6199 (c_type_of_child): Same.
6200 (cplus_number_of_children): Same.
6201 (cplus_describe_child): Constify var.
6202 (cplus_name_of_child): Constify parent.
6203 (cplus_value_of_child): Same.
6204 (cplus_type_of_child): Same.
6205 * jv-varobj.c (java_name_of_child): Same.
6206 (java_value_of_child): Same.
6207 (java_type_of_child): Same.
6208 * varobj.c (value_of_child): Same.
6209 (varobj_default_is_path_expr_parent): Constify var, parent and return
6211 (varobj_get_path_expr): Constify var, modify path_expr through
6213 (install_new_value): Constify parent.
6214 (value_of_child): Constify parent.
6215 * varobj.h (struct varobj): Constify parent.
6216 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
6218 (varobj_get_path_expr): Constify var.
6219 (varobj_get_path_expr_parent): Constify var and return value.
6221 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
6223 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
6224 (arm_prologue_this_id): Move PC and SP limit checks to
6225 arm_prologue_unwind_stop_reason.
6226 (arm_prologue_unwind) <stop_reason> : Set to
6227 arm_prologue_unwind_stop_reason.
6229 2015-02-09 Mark Wielaard <mjw@redhat.com>
6231 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
6232 DW_LANG_Fortran08 as language_fortran.
6234 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
6237 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
6238 of pointer against char.
6240 2015-02-09 Mark Wielaard <mjw@redhat.com>
6242 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
6243 (c_type_print_modifier): Likewise.
6244 * dwarf2read.c (read_tag_atomic_type): New function.
6245 (read_type_die_1): Handle DW_TAG_atomic_type.
6246 * gdbtypes.c (make_atomic_type): New function.
6247 (recursive_dump_type): Handle TYPE_ATOMIC.
6248 * gdbtypes.h (enum type_flag_values): Renumber.
6249 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
6250 (TYPE_ATOMIC): New macro.
6251 (make_atomic_type): Declare.
6253 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6255 * btrace.c (ftrace_find_call): Skip gaps.
6256 (ftrace_new_function): Initialize level.
6257 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
6258 (ftrace_new_switch): Update
6260 (ftrace_new_gap): New.
6261 (ftrace_update_function): Create new function after gap.
6262 (btrace_compute_ftrace_bts): Create gap on error.
6263 (btrace_stitch_bts): Update parameters. Clear trace if it
6265 (btrace_stitch_trace): Update parameters. Update callers.
6266 (btrace_clear): Reset the number of gaps.
6267 (btrace_insn_get): Return NULL if the iterator points to a gap.
6268 (btrace_insn_number): Return zero if the iterator points to a gap.
6269 (btrace_insn_end): Allow gaps at the end.
6270 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
6271 (btrace_find_insn_by_number): Assert that the found iterator does
6273 (btrace_call_next, btrace_call_prev): Assert that the last function
6275 * btrace.h (btrace_bts_error): New.
6276 (btrace_function): Update comment.
6277 (btrace_function) <insn, insn_offset, number>: Update comment.
6278 (btrace_function) <errcode>: New.
6279 (btrace_thread_info) <ngaps>: New.
6280 (btrace_thread_info) <replay>: Update comment.
6281 (btrace_insn_get): Update comment.
6282 * record-btrace.c (btrace_ui_out_decode_error): New.
6283 (record_btrace_info): Print number of gaps.
6284 (btrace_insn_history, btrace_call_history): Call
6285 btrace_ui_out_decode_error for gaps.
6286 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
6288 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6290 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
6291 * nat/linux-btrace.c: (btrace_this_cpu): New.
6292 (cpu_supports_bts): Call btrace_this_cpu.
6293 (intel_supports_bts): Add cpu parameter.
6295 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6297 * btrace.h (btrace_insn_class): New.
6298 (btrace_insn) <size, iclass>: New.
6299 * btrace.c (ftrace_find_call): Update parameters. Update users.
6300 Use instruction classification.
6301 (ftrace_new_return): Update parameters. Update users.
6302 (ftrace_update_function): Update parameters. Update users. Use
6303 instruction classification.
6304 (ftrace_update_insns): Update parameters. Update users.
6305 (ftrace_classify_insn): New.
6306 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
6307 TRY_CATCH around call to gdb_insn_length.
6309 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6311 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
6312 Update parameters. Update users.
6314 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6316 * btrace.c (parse_xml_btrace_conf_bts): Add size.
6317 (btrace_conf_bts_attributes): New.
6318 (btrace_conf_children): Add attributes.
6319 * common/btrace-common.h (btrace_config_bts): New.
6320 (btrace_config)<bts>: New.
6321 (btrace_config): Update comment.
6322 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
6324 * features/btrace-conf.dtd: Increment version. Add size
6325 attribute to bts element.
6326 * record-btrace.c (set_record_btrace_bts_cmdlist,
6327 show_record_btrace_bts_cmdlist): New.
6328 (record_btrace_adjust_size, record_btrace_print_bts_conf,
6329 record_btrace_print_conf, cmd_set_record_btrace_bts,
6330 cmd_show_record_btrace_bts): New.
6331 (record_btrace_info): Call record_btrace_print_conf.
6332 (_initialize_record_btrace): Add commands.
6333 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
6334 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
6335 (btrace_sync_conf): Synchronize bts size.
6336 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
6337 * NEWS: Announce new commands and new packets.
6339 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6341 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
6342 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
6343 (x86_linux_btrace_conf): New.
6344 (x86_linux_create_target): Initialize to_btrace_conf.
6345 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
6346 Check format. Split into this and ...
6347 (linux_enable_bts): ... this.
6348 (linux_btrace_conf): New.
6349 (perf_event_skip_record): Renamed into ...
6350 (perf_event_skip_bts_record): ... this. Updated users.
6351 (linux_disable_btrace): Split into this and ...
6352 (linux_disable_bts): ... this.
6353 (linux_read_btrace): Check format.
6354 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
6355 (linux_btrace_conf): New.
6356 (btrace_target_info)<ptid>: Moved.
6357 (btrace_target_info)<conf>: New.
6358 (btrace_target_info): Split into this and ...
6359 (btrace_tinfo_bts): ... this. Updated users.
6360 * btrace.c (btrace_enable): Update parameters.
6361 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
6362 (btrace_conf_children, btrace_conf_attributes)
6363 (btrace_conf_elements): New.
6364 * btrace.h (btrace_enable): Update parameters.
6365 (btrace_conf, parse_xml_btrace_conf): New.
6366 * common/btrace-common.h (btrace_config): New.
6367 * feature/btrace-conf.dtd: New.
6368 * record-btrace.c (record_btrace_conf): New.
6369 (record_btrace_cmdlist): New.
6370 (record_btrace_enable_warn, record_btrace_open): Pass
6371 &record_btrace_conf.
6372 (record_btrace_info): Print recording format.
6373 (cmd_record_btrace_bts_start): New.
6374 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
6375 (_initialize_record_btrace): Add "record btrace bts" subcommand.
6376 Add "record bts" alias command.
6377 * remote.c (remote_state)<btrace_config>: New.
6378 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
6379 (remote_protocol_features): Add qXfer:btrace-conf:read.
6380 (remote_open_1): Call remote_btrace_reset.
6381 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
6382 (btrace_target_info)<conf>: New.
6383 (btrace_sync_conf, btrace_read_config): New.
6384 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
6386 (remote_btrace_conf): New.
6387 (init_remote_ops): Initialize to_btrace_conf.
6388 (_initialize_remote): Add qXfer:btrace-conf packet.
6389 * target.c (target_enable_btrace): Update parameters.
6390 (target_btrace_conf): New.
6391 * target.h (target_enable_btrace): Update parameters.
6392 (target_btrace_conf): New.
6393 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
6394 (target_ops)<to_enable_btrace>: Update parameters and comment.
6395 (target_ops)<to_btrace_conf>: New.
6396 * target-delegates: Regenerate.
6397 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
6398 (target_debug_print_const_struct_btrace_target_info_p): New.
6399 * NEWS: Announce new command and new packet.
6401 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6403 * nat/linux-btrace.h (perf_event_buffer): New.
6404 (btrace_target_info) <buffer, size, data_head>: Replace with ...
6406 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
6407 (perf_event_buffer_size, perf_event_buffer_begin)
6408 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
6410 (perf_event_new_data): New.
6412 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6414 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
6415 * record-btrace.c (record_btrace_open): Remove call to
6416 target_supports_btrace.
6417 * remote.c (remote_supports_btrace): Update parameters.
6418 * target.c (target_supports_btrace): Update parameters.
6419 * target.h (to_supports_btrace, target_supports_btrace): Update
6421 * target-delegates.c: Regenerate.
6422 * target-debug.h (target_debug_print_enum_btrace_format): New.
6423 * nat/linux-btrace.c
6424 (kernel_supports_btrace): Rename into ...
6425 (kernel_supports_bts): ... this. Update users. Update warning text.
6426 (intel_supports_btrace): Rename into ...
6427 (intel_supports_bts): ... this. Update users.
6428 (cpu_supports_btrace): Rename into ...
6429 (cpu_supports_bts): ... this. Update users.
6430 (linux_supports_btrace): Update parameters. Split into this and ...
6431 (linux_supports_bts): ... this.
6432 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
6434 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6436 * Makefile.in (SFILES): Add common/btrace-common.c.
6437 (COMMON_OBS): Add common/btrace-common.o.
6438 (btrace-common.o): Add build rules.
6439 * btrace.c (parse_xml_btrace): Update parameters.
6440 (parse_xml_btrace_block): Set format field.
6441 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
6442 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
6443 (btrace_compute_ftrace): Split into this and...
6444 (btrace_compute_ftrace_bts): ...this.
6445 (btrace_stitch_trace): Split into this and...
6446 (btrace_stitch_bts): ...this.
6447 * btrace.h (parse_xml_btrace): Update parameters.
6448 (make_cleanup_btrace_data): New.
6449 * common/btrace-common.c: New.
6450 * common/btrace-common.h: Include common-defs.h.
6451 (btrace_block_s): Update comment.
6452 (btrace_format): New.
6453 (btrace_format_string): New.
6454 (btrace_data_bts): New.
6456 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
6457 * remote.c (remote_read_btrace): Update parameters.
6458 * target.c (target_read_btrace): Update parameters.
6459 * target.h (target_read_btrace): Update parameters.
6460 (target_ops)<to_read_btrace>: Update parameters.
6461 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
6462 * target-delegates.c: Regenerate.
6463 * target-debug (target_debug_print_struct_btrace_data_p): New.
6464 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
6465 (linux_read_bts): ...this.
6466 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
6468 2015-02-06 Doug Evans <dje@google.com>
6470 * remote-m32r-sdi.c: Include symfile.h.
6472 2015-02-06 Doug Evans <dje@google.com>
6474 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
6475 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
6478 2015-02-06 Pedro Alves <palves@redhat.com>
6480 * linux-thread-db.c (find_new_threads_callback): Add debug output.
6482 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
6485 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
6486 (enable_count_command): Check args for NULL value.
6488 2015-02-05 Doug Evans <xdje42@gmail.com>
6490 * guile/scm-frame.c: Fix spelling errors in a comment.
6492 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6494 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
6495 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
6498 2015-02-04 Pedro Alves <palves@redhat.com>
6500 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
6501 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
6503 (resume_stopped_resumed_lwps): Don't check whether the thread is
6504 marked as executing.
6505 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
6507 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6509 * regset.h (struct regset): Add flags field.
6510 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
6511 * corelow.c (get_core_register_section): Add warning if the size
6512 exceeds the requested size and the regset does not have the
6513 REGSET_VARIABLE_SIZE flag set.
6514 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
6516 * armbsd-tdep.c (armbsd_gregset): Likewise.
6517 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6518 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
6519 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
6520 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
6522 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6524 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
6525 For ".reg-xstate", explicitly specify the requested section size
6526 via X86_XSTATE_SIZE instead of just 0 on input and
6527 X86_XSTATE_MAX_SIZE on output.
6528 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
6531 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6534 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
6535 function type, particularly its SIZE parameter.
6536 * gdbarch.h: Regenerate.
6537 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
6538 actual against required size using ">=" instead of "==".
6539 (amd64_collect_fpregset): Likewise.
6540 * i386-tdep.c (i386_supply_gregset): Likewise.
6541 (i386_collect_gregset): Likewise.
6542 (i386_supply_fpregset): Likewise.
6543 (i386_collect_fpregset): Likewise.
6544 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
6545 (mips_fill_gregset_wrapper): Likewise.
6546 (mips_supply_fpregset_wrapper): Likewise.
6547 (mips_fill_fpregset_wrapper): Likewise.
6548 (mips64_supply_gregset_wrapper): Likewise.
6549 (mips64_fill_gregset_wrapper): Likewise.
6550 (mips64_supply_fpregset_wrapper): Likewise.
6551 (mips64_fill_fpregset_wrapper): Likewise.
6552 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
6553 (am33_supply_fpregset_method): Likewise.
6554 (am33_collect_gregset_method): Likewise.
6555 (am33_collect_fpregset_method): Likewise.
6557 2015-02-04 Doug Evans <dje@google.com>
6558 Pedro Alves <palves@redhat.com>
6559 Eli Zaretskii <eliz@gnu.org>
6562 * tui/tui-command.c (tui_refresh_cmd_win): New function.
6563 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
6564 * tui/tui-file.c: #include tui/tui-command.h.
6565 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
6566 (tui_file_flush): Refresh command window if stream is gdb_stdout.
6567 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
6569 2015-02-04 Pedro Alves <palves@redhat.com>
6572 * event-loop.c (gdb_do_one_event): Add default switch case.
6574 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6576 Filter out inferior gcc option -fpreprocessed.
6577 * compile/compile.c (filter_args): New function.
6580 2015-02-03 Pedro Alves <palves@redhat.com>
6582 * event-loop.c: Don't declare nor define a queue type for
6584 (event_queue): Delete.
6585 (create_event, create_file_event, gdb_event_xfree)
6586 (initialize_event_loop, process_event): Delete.
6587 (gdb_do_one_event): Return as soon as one event is handled.
6588 (handle_file_event): Change prototype. Used the passed in
6589 file_handler pointer and ready_mask instead of looping over all
6591 (gdb_wait_for_event): Update the poll/select timeouts before
6592 blocking. Run event handlers directly instead of queueing events.
6593 Return as soon as one event is handled.
6594 (struct async_event_handler_data): Delete.
6595 (invoke_async_event_handler): Delete.
6596 (check_async_event_handlers): Change return type to int. Run
6597 event handlers directly instead of queueing events. Return as
6598 soon as one event is handled.
6599 (handle_timer_event): Delete.
6600 (update_wait_timeout): New function, factored out from
6602 (poll_timers): Reimplement.
6603 * event-loop.h (initialize_event_loop): Delete declaration.
6604 * top.c (gdb_init): Don't call initialize_event_loop.
6606 2015-02-03 Pedro Alves <palves@redhat.com>
6608 * event-loop.c (clear_async_event_handler): New function.
6609 * event-loop.h (clear_async_event_handler): New declaration.
6610 * record-btrace.c (record_btrace_async): New function.
6611 (init_record_btrace_ops): Install record_btrace_async.
6612 * record-full.c (record_full_async): New function.
6613 (record_full_resume): Don't mark the async event source here.
6614 (init_record_full_ops): Install record_full_async.
6615 (record_full_core_resume): Don't mark the async event source here.
6616 (init_record_full_core_ops): Install record_full_async.
6617 * remote.c (remote_async): Mark and clear the async stop reply
6618 queue event-loop token as appropriate.
6620 2015-02-03 Pedro Alves <palves@redhat.com>
6622 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
6623 target_is_async_p instead of target_can_async.
6624 (linux_nat_wait): Use target_is_async_p instead of
6625 target_can_async. Don't enable async here.
6626 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
6627 target_is_async_p instead of target_can_async.
6629 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
6631 * varobj.h (lang_varobj_ops): Mention which return values need
6634 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6636 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
6638 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6641 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
6642 results found in the cache.
6644 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6647 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
6648 when allocating a new one.
6650 2015-02-01 Tom Tromey <tom@tromey.com>
6652 * MAINTAINERS: Remove myself.
6654 2015-01-31 Doug Evans <xdje42@gmail.com>
6656 * dwarf2read.c (process_structure_scope): Update setting of
6657 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
6658 * gdbtypes.c (internal_type_vptr_fieldno): New function.
6659 (set_type_vptr_fieldno): New function.
6660 (internal_type_vptr_basetype): New function.
6661 (set_type_vptr_basetype): New function.
6662 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
6664 (allocate_cplus_struct_type): Initialize vptr_fieldno.
6665 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
6666 (print_cplus_stuff): ... moved here.
6667 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
6668 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
6670 (struct cplus_struct_type): ... here. All uses updated.
6671 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
6672 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
6673 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
6674 * stabsread.c (read_tilde_fields): Update setting of
6675 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
6677 2015-01-31 Doug Evans <xdje42@gmail.com>
6679 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
6681 (cp_print_class_member): Rename local domain to self_type.
6682 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
6683 domain_type to self_type.
6684 (set_die_type) <need_gnat_info>: Handle
6685 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
6686 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
6687 TYPE_SPECIFIC_SELF_TYPE.
6688 * gdbtypes.c (internal_type_self_type): New function.
6689 (set_type_self_type): New function.
6690 (smash_to_memberptr_type): Rename parameter domain to self_type.
6691 Update setting of TYPE_SELF_TYPE.
6692 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
6693 (smash_to_method_type): Rename parameter domain to self_type.
6694 Update setting of TYPE_SELF_TYPE.
6695 (check_stub_method): Call smash_to_method_type.
6696 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
6697 (copy_type_recursive): Ditto.
6698 * gdbtypes.h (enum type_specific_kind): New value
6699 TYPE_SPECIFIC_SELF_TYPE.
6700 (struct main_type) <type_specific>: New member self_type.
6701 (struct cplus_struct_type) <fn_field.type>: Update comment.
6702 (TYPE_SELF_TYPE): Rewrite.
6703 (internal_type_self_type, set_type_self_type): Declare.
6704 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
6706 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
6707 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
6709 * stabsread.c (read_member_functions): Mark methods with
6710 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
6713 2015-01-31 Doug Evans <xdje42@gmail.com>
6715 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
6718 2015-01-31 Doug Evans <xdje42@gmail.com>
6720 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
6721 or unions. Return zero if union.
6722 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
6723 (gnuv3_rtti_type): Pass already-check_typedef'd value to
6725 (compute_vtable_size): Assert only passed structs.
6726 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
6728 2015-01-31 Doug Evans <xdje42@gmail.com>
6730 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
6733 2015-01-31 Gary Benson <gbenson@redhat.com>
6734 Doug Evans <dje@google.com>
6739 * cli/cli-cmds.c (complete_command): Notify user if max-completions
6741 * common/common-exceptions.h (enum errors)
6742 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
6743 * completer.h (get_max_completions_reached_message): New declaration.
6744 (max_completions): Likewise.
6745 (completion_tracker_t): New typedef.
6746 (new_completion_tracker): New declaration.
6747 (make_cleanup_free_completion_tracker): Likewise.
6748 (maybe_add_completion_enum): New enum.
6749 (maybe_add_completion): New declaration.
6750 (throw_max_completions_reached_error): Likewise.
6751 * completer.c (max_completions): New global variable.
6752 (new_completion_tracker): New function.
6753 (free_completion_tracker): Likewise.
6754 (make_cleanup_free_completion_tracker): Likewise.
6755 (maybe_add_completions): Likewise.
6756 (throw_max_completions_reached_error): Likewise.
6757 (complete_line): Remove duplicates and limit result to max_completions
6759 (get_max_completions_reached_message): New function.
6760 (gdb_display_match_list): Handle max_completions.
6761 (_initialize_completer): New declaration and function.
6762 * symtab.c: Include completer.h.
6763 (completion_tracker): New static variable.
6764 (completion_list_add_name): Call maybe_add_completion.
6765 (default_make_symbol_completion_list_break_on_1): Renamed from
6766 default_make_symbol_completion_list_break_on. Maintain
6767 completion_tracker across calls to completion_list_add_name.
6768 (default_make_symbol_completion_list_break_on): New function.
6769 * top.c (init_main): Set rl_completion_display_matches_hook.
6770 * tui/tui-io.c: Include completer.h.
6771 (tui_old_rl_display_matches_hook): New static global.
6772 (tui_rl_display_match_list): Notify user if max-completions reached.
6773 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
6774 * NEWS (New Options): Mention set/show max-completions.
6776 2015-01-31 Gary Benson <gbenson@redhat.com>
6778 * symtab.c (struct add_name_data) <code>: New field.
6780 (add_symtab_completions): New function.
6781 (symtab_expansion_callback): Likewise.
6782 (default_make_symbol_completion_list_break_on): Set datum.code.
6783 Move minimal symbol scan before calling expand_symtabs_matching.
6784 Scan known primary symtabs for externs and statics before calling
6785 expand_symtabs_matching. Pass symtab_expansion_callback as
6786 expansion_notify argument to expand_symtabs_matching. Do not scan
6787 primary symtabs for externs and statics after calling
6788 expand_symtabs_matching.
6790 2015-01-31 Gary Benson <gbenson@redhat.com>
6792 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
6793 (struct quick_symbol_functions) <expand_symtabs_matching>:
6794 New argument expansion_notify. All uses updated.
6795 (expand_symtabs_matching): New argument expansion_notify.
6797 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6798 Also print expansion notify.
6799 * symtab.c (expand_symtabs_matching_via_partial): Call
6800 expansion_notify whenever a partial symbol table is expanded.
6801 * dwarf2read.c (dw2_expand_symtabs_matching): Call
6802 expansion_notify whenever a symbol table is instantiated.
6804 2015-01-31 Doug Evans <xdje42@gmail.com>
6806 * cli-out.c: #include completer.h, readline/readline.h.
6807 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
6808 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
6809 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
6810 * cli-out.h (cli_display_match_list): Declare.
6811 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
6812 (ELLIPSIS_LEN): Ditto.
6813 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
6814 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
6815 (gdb_fnprint, gdb_print_filename): Ditto.
6816 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
6817 (gdb_display_match_list): Ditto.
6818 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
6819 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
6820 (mld_beep_ftype, mld_read_key_ftype): Ditto.
6821 (match_list_displayer): New struct.
6822 (gdb_display_match_list): Declare.
6823 * top.c (init_main): Set rl_completion_display_matches_hook.
6824 * tui/tui-io.c: #include completer.h.
6825 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
6826 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
6827 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
6828 (tui_mld_getc, tui_mld_read_key): Ditto.
6829 (tui_rl_display_match_list): Rewrite.
6830 (tui_handle_resize_during_io): New arg for_completion. All callers
6833 2015-01-31 Doug Evans <xdje42@gmail.com>
6835 Add symbol lookup cache.
6836 * NEWS: Document new options and commands.
6837 * symtab.c (symbol_cache_key): New static global.
6838 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
6839 (SYMBOL_LOOKUP_FAILED): New macro.
6840 (symbol_cache_slot_state): New enum.
6841 (block_symbol_cache): New struct.
6842 (symbol_cache): New struct.
6843 (new_symbol_cache_size, symbol_cache_size): New static globals.
6844 (hash_symbol_entry, eq_symbol_entry): New functions.
6845 (symbol_cache_byte_size, resize_symbol_cache): New functions.
6846 (make_symbol_cache, free_symbol_cache): New functions.
6847 (get_symbol_cache, symbol_cache_cleanup): New function.
6848 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
6849 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
6850 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
6851 (symbol_cache_flush, symbol_cache_dump): New functions.
6852 (maintenance_print_symbol_cache): New function.
6853 (maintenance_flush_symbol_cache): New function.
6854 (symbol_cache_stats): New function.
6855 (maintenance_print_symbol_cache_statistics): New function.
6856 (symtab_new_objfile_observer): New function.
6857 (symtab_free_objfile_observer): New function.
6858 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
6859 (_initialize_symtab): Init symbol_cache_key. New parameter
6860 maint symbol-cache-size. New maint commands print symbol-cache,
6861 print symbol-cache-statistics, flush-symbol-cache.
6862 Install new_objfile, free_objfile observers.
6864 2015-01-31 Joel Brobecker <brobecker@adacore.com>
6867 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
6870 2015-01-31 Doug Evans <xdje42@gmail.com>
6872 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
6873 * auto-load.c: #include ctype.h.
6874 (struct auto_load_pspace_info): Replace member loaded_scripts with
6875 new members loaded_script_files, loaded_script_texts.
6876 (auto_load_pspace_data_cleanup): Update.
6877 (init_loaded_scripts_info): Update.
6878 (get_auto_load_pspace_data_for_loading): Update.
6879 (maybe_add_script_file): Renamed from maybe_add_script. All callers
6881 (maybe_add_script_text): New function.
6882 (clear_section_scripts): Update.
6883 (source_script_file, execute_script_contents): New functions.
6884 (source_section_scripts): Add support for
6885 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
6886 (print_scripts): New function.
6887 (auto_load_info_scripts): Also print inlined scripts.
6888 (maybe_print_unsupported_script_warning): Renamed from
6889 unsupported_script_warning_print. All callers updated.
6890 (maybe_print_script_not_found_warning): Renamed from
6891 script_not_found_warning_print. All callers updated.
6892 * extension-priv.h (struct extension_language_script_ops): New member
6893 objfile_script_executor.
6894 * extension.c (ext_lang_objfile_script_executor): New function.
6895 * extension.h (objfile_script_executor_func): New typedef.
6896 (ext_lang_objfile_script_executor): Declare.
6897 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
6898 * guile/guile.c (guile_extension_script_ops): Update.
6899 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
6900 * python/python.c (python_extension_script_ops): Update.
6901 (gdbpy_execute_objfile_script): New function.
6903 2015-01-31 Eli Zaretskii <eliz@gnu.org>
6905 * tui/tui-io.c (tui_expand_tabs): New function.
6906 (tui_puts, tui_redisplay_readline): Expand TABs into the
6907 appropriate number of spaces.
6908 * tui/tui-regs.c: Include tui-io.h.
6909 (tui_register_format): Call tui_expand_tabs to expand TABs into
6910 the appropriate number of spaces.
6911 * tui/tui-io.h: Add prototype for tui_expand_tabs.
6913 2015-01-30 Doug Evans <dje@google.com>
6915 * NEWS: "info source" command now display producer string if present.
6916 * source.c (source_info): Print producer string if present.
6918 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6920 * varobj.c (varobj_delete): Fix comment.
6922 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6924 * varobj.c (create_child): Modify comment.
6926 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6928 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
6930 (ada_name_of_variable): Same.
6931 (ada_path_expr_of_child): Same.
6932 (ada_value_of_variable): Same.
6933 (ada_value_is_changeable_p): Same.
6934 (ada_value_has_mutated): Same.
6935 * c-varobj.c (varobj_is_anonymous_child): Same.
6936 (c_is_path_expr_parent): Same.
6937 (c_number_of_children): Same.
6938 (c_name_of_variable): Same.
6939 (c_path_expr_of_child): Same.
6941 (c_value_of_variable): Same.
6942 (cplus_number_of_children): Same.
6943 (cplus_name_of_variable): Same.
6944 (cplus_path_expr_of_child): Same.
6945 (cplus_value_of_variable): Same.
6946 * jv-varobj.c (java_number_of_children): Same.
6947 (java_name_of_variable): Same.
6948 (java_path_expr_of_child): Same.
6949 (java_value_of_variable): Same.
6950 * varobj.c (number_of_children): Same.
6951 (name_of_variable): Same.
6953 (varobj_ensure_python_env): Same.
6954 (varobj_get_objname): Same.
6955 (varobj_get_expression): Same.
6956 (varobj_get_display_format): Same.
6957 (varobj_get_display_hint): Same.
6958 (varobj_has_more): Same.
6959 (varobj_get_thread_id): Same.
6960 (varobj_get_frozen): Same.
6961 (dynamic_varobj_has_child_method): Same.
6962 (varobj_get_gdb_type): Same.
6963 (is_path_expr_parent): Same.
6964 (varobj_default_is_path_expr_parent): Same.
6965 (varobj_get_language): Same.
6966 (varobj_get_attributes): Same.
6967 (varobj_is_dynamic_p): Same.
6968 (varobj_get_child_range): Same.
6969 (varobj_value_has_mutated): Same.
6970 (varobj_get_value_type): Same.
6971 (number_of_children): Same.
6972 (name_of_variable): Same.
6973 (check_scope): Same.
6974 (varobj_editable_p): Same.
6975 (varobj_value_is_changeable_p): Same.
6976 (varobj_floating_p): Same.
6977 (varobj_default_value_is_changeable_p): Same.
6979 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6981 * varobj.c (varobj_get_path_expr): Set var->path_expr.
6982 * c-varobj.c (c_path_expr_of_child): Set local var instead of
6984 (cplus_path_expr_of_child): Same.
6986 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6988 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
6990 (mi_cmd_var_info_expression): Same.
6991 * varobj.c (varobj_get_expression): Mention in the comment that
6992 the result must by freed by the caller.
6994 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6996 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
6998 (varobj_update_one): Same.
6999 * varobj.c (update_type_if_necessary): Free curr_type_str and
7001 (varobj_get_type): Specify in comment that the result needs to be
7002 freed by the caller.
7004 2015-01-29 Doug Evans <dje@google.com>
7007 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
7009 2015-01-25 Mark Wielaard <mjw@redhat.com>
7011 * dwarf2read.c (checkproducer): Call producer_is_gcc.
7012 * utils.c (producer_is_gcc_ge_4): Likewise.
7013 (producer_is_gcc): New function.
7014 * utils.h (producer_is_gcc): New declaration.
7016 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7018 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
7020 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
7021 parameter by "addr_stack" parameter.
7022 (resolve_dynamic_range): Replace "addr" parameter by
7023 "stack_addr" parameter. Update function documentation.
7024 Update code accordingly.
7025 (resolve_dynamic_array, resolve_dynamic_union)
7026 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
7027 (resolve_dynamic_type): Update code, following the changes made
7028 to resolve_dynamic_type_internal's interface.
7029 * dwarf2loc.h (struct property_addr_info): New.
7030 (dwarf2_evaluate_property): Replace "address" parameter
7031 by "addr_stack" parameter. Adjust function documentation.
7032 (struct dwarf2_offset_baton): New.
7033 (struct dwarf2_property_baton): Update documentation of
7034 field "referenced_type" to be more general. New field
7035 "offset_info" in union data field.
7036 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
7037 parameter by "addr_stack" parameter. Adjust code accordingly.
7038 Add support for PROP_ADDR_OFFSET properties.
7039 * dwarf2read.c (attr_to_dynamic_prop): Add support for
7040 DW_AT_data_member_location attributes as well. Use case
7041 statements instead of if/else condition.
7043 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7045 * ada-varobj.c (ada_varobj_get_array_number_of_children):
7046 Return zero if PARENT_VALUE is NULL and parent_type's
7047 range type is dynamic.
7049 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7051 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
7052 nonzero if the type's subtype is dynamic.
7053 (resolve_dynamic_range): Also resolve the range's subtype.
7055 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7057 Pushed by Joel Brobecker <brobecker@adacore.com>.
7058 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
7060 2015-01-27 Doug Evans <dje@google.com>
7062 * NEWS: Mention gdb.Objfile.username.
7063 * python/py-objfile.c (objfpy_get_username): New function.
7064 (objfile_getset): Add "username".
7066 2015-01-24 Mark Wielaard <mjw@redhat.com>
7068 * stack.c (return_command): Markup warning message with _.
7070 2015-01-24 Doug Evans <xdje42@gmail.com>
7072 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
7074 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7076 Fix 100x slowdown regression on DWZ files.
7077 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
7078 (struct line_header): Add offset and offset_in_dwz.
7079 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
7080 (free_line_header_voidp): New declaration.
7081 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
7083 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
7084 (handle_DW_AT_stmt_list): Use line_header_hash.
7085 (free_line_header_voidp): New function.
7086 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
7087 (dwarf_decode_lines): New parameter decode_mapping, use it.
7088 (dwarf2_free_objfile): Free line_header_hash.
7090 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
7093 * valops.c (value_rtti_indirect_type): Catch exception thrown by
7096 2015-01-15 Mark Wielaard <mjw@redhat.com>
7098 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
7100 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
7101 calling_convention an 8 bit bit field.
7102 (TYPE_NO_RETURN): New macro.
7103 * infcmd.c (finish_command): Query if function does not return
7105 * stack.c (return_command): Likewise.
7107 2015-01-23 Pedro Alves <palves@redhat.com>
7109 * linux-nat.c (linux_is_async_p): New macro.
7110 (linux_nat_is_async_p):
7111 (linux_nat_terminal_inferior): Check whether the target can async
7112 instead of whether it is already async.
7113 (linux_nat_terminal_ours): Don't check whether the target is
7115 (linux_async_pipe): Use linux_is_async_p.
7117 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7119 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
7121 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
7122 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
7123 Sort tp_array using tp_array_compar.
7124 (_initialize_thread): Extend thread_apply_all_command help.
7126 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7128 * corelow.c (core_open): Call also thread_command.
7129 * gdbthread.h (thread_command): New prototype moved from ...
7130 * thread.c (thread_command): ... here.
7131 (thread_command): Make it global.
7133 2015-01-22 Pedro Alves <palves@redhat.com>
7135 * configure.ac [*mingw32*]: Check $curses_found instead of
7137 * configure: Regenerate.
7138 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
7139 HAVE_NCURSES_NCURSES_H checks.
7141 2015-01-22 Eli Zaretskii <eliz@gnu.org>
7143 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
7144 fails with the 1st arg NULL, try again with "unknown". Don't test
7145 the "cup" capability: it isn't supported by the Windows port of
7146 ncurses, but the Windows console driver is still capable of
7149 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
7153 2015-01-22 Eli Zaretskii <eliz@gnu.org>
7155 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
7156 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
7157 reason that "make TAGS" is broken.
7159 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
7161 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
7162 and check additional store instructions.
7164 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
7166 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
7168 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
7170 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
7171 ppc_canonicalize_syscall, ppc_linux_syscall_record,
7172 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
7173 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7174 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
7175 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
7176 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
7177 ppc_process_record_op19, ppc_process_record_op31,
7178 ppc_process_record_op59, ppc_process_record_op60,
7179 ppc_process_record_op63): Likewise.
7181 2015-01-20 Joel Brobecker <brobecker@adacore.com>
7183 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
7184 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
7187 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
7189 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
7190 ppc_process_record_op31, ppc_process_record_op59,
7191 ppc_process_record_op60, ppc_process_record_op63,
7192 ppc_process_record): Fix -Wformat warning.
7193 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
7194 Remove unused variables.
7196 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
7198 * MAINTAINERS (Write After Approval): Add "Chen Gang".
7200 2015-01-19 Eli Zaretskii <eliz@gnu.org>
7202 * configure.ac [*mingw32*]: Only add windows-termcap.o to
7203 CONFIG_OBS if not building with a curses library.
7204 * configure: Regenerate.
7206 * windows-termcap.c: Include defs.h. Make the whole body empty if
7207 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
7208 HAVE_NCURSES_NCURSES_H is defined.
7210 2015-01-19 Joel Brobecker <brobecker@adacore.com>
7212 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
7213 from end of line to start of next line.
7215 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7217 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
7218 Scan PLT stub backward for reverse debugging.
7219 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7221 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7222 Ulrich Weigand <uweigand@de.ibm.com>
7224 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
7226 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
7228 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
7229 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
7230 (ppc_linux_init_abi): Set process_record, process_record_signal.
7231 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
7232 ppc_linux_record_tdep to gdbarch_tdep.
7233 (ppc_process_record): New declaration.
7234 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
7235 ppc_process_record_op19, ppc_process_record_op31,
7236 ppc_process_record_op59, ppc_process_record_op60,
7237 ppc_process_record_op63, ppc_process_record): New functions.
7239 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7241 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
7242 rs6000_in_function_epilogue_frame_p and add an argument
7244 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
7245 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
7247 (rs6000_epilogue_frame_unwind): New.
7248 (rs6000_gdbarch_init): Append epilogue unwinder.
7250 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7252 * nat/linux-personality.c: Replace "#ifndef
7253 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
7254 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
7257 2015-01-16 Eli Zaretskii <eliz@gnu.org>
7259 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
7261 (_initialize_tui_win) <border-kind, border-mode>:
7262 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
7263 (tui_set_tab_width_command): Fix the commentary.
7265 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
7267 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
7269 (tui_set_tab_width_command): Delete and recreate the source and
7270 the disassembly windows, to show the effect of the changed tab
7273 * tui/tui-data.h (LINE_PREFIX): Make shorter
7274 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
7275 "Thread NNNNN.XXXX" thread ID notation on Windows.
7277 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7279 Fix gcc-5 compilation.
7280 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
7282 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7284 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
7285 (linux-personality.o): New rule.
7286 * common/common-defs.h: Include <stdint.h>.
7287 * config/aarch64/linux.mh (NATDEPFILES): Include
7288 linux-personality.o.
7289 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7290 * config/arm/linux.mh (NATDEPFILES): Likewise.
7291 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7292 * config/i386/linux.mh (NATDEPFILES): Likewise.
7293 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7294 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7295 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7296 * config/mips/linux.mh (NATDEPFILES): Likewise.
7297 * config/pa/linux.mh (NATDEPFILES): Likewise.
7298 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7299 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7300 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7301 * config/s390/linux.mh (NATDEPFILES): Likewise.
7302 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7303 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7304 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7305 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7306 * defs.h: Remove #include <stdint.h> (moved to
7307 common/common-defs.h).
7308 * linux-nat.c: Include nat/linux-personality.h. Remove #include
7309 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
7310 nat/linux-personality.c).
7311 (linux_nat_create_inferior): Remove code to disable address space
7312 randomization (moved to nat/linux-personality.c). Create cleanup
7313 to disable address space randomization.
7314 * nat/linux-personality.c: New file.
7315 * nat/linux-personality.h: Likewise.
7317 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7319 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
7320 common/posix-strerror.c.
7321 (posix-strerror.o): New rule.
7322 (mingw-strerror.o): Likewise.
7323 * common/common-utils.h (safe_strerror): Move prototype to here,
7325 * common/common.host: New file.
7326 * common/mingw-strerror.c: Likewise.
7327 * common/posix-strerror.c: Likewise.
7328 * configure: Regenerated.
7329 * configure.ac: Source common/common.host. Add variable
7330 common_host_obs to gdb_host_obs.
7331 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
7332 gdb/common/posix-strerror.c when warning about the use of
7334 * mingw-hdep.c (safe_strerror): Remove definition; move it to
7335 common/mingw-strerror.c.
7336 * posix-hdep.c (safe_strerror): Remove definition; move it to
7337 common/posix-hdep.c.
7338 * utils.h (safe_strerror): Remove prototype; move to
7339 common/common-utils.h.
7341 2015-01-15 Joel Brobecker <brobecker@adacore.com>
7345 2015-01-15 Joel Brobecker <brobecker@adacore.com>
7347 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
7348 ___XA type if the array has already been fixed.
7350 2015-01-14 Yao Qi <yao@codesourcery.com>
7352 * Makefile.in (ppc-linux.o): New rule.
7353 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
7354 * configure.ac: AC_CHECK_FUNCS(getauxval).
7355 * config.in: Re-generated.
7356 * configure: Re-generated.
7357 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
7359 * nat/ppc-linux.c: New file.
7360 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
7361 Call ppc64_64bit_inferior_p.
7363 2015-01-14 Yao Qi <yao@codesourcery.com>
7365 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
7367 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
7368 (PPC_FEATURE_HAS_DFP): Likewise.
7369 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7370 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7371 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7372 Include "nat/ppc-linux.h".
7373 * nat/ppc-linux.h: New file.
7374 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
7376 2015-01-14 Pedro Alves <palves@redhat.com>
7379 * breakpoint.c: Include "interps.h".
7380 (bpstat_do_actions_1): Also check whether the interpreter is
7383 2015-01-14 Pedro Alves <palves@redhat.com>
7386 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
7387 reinstall if the interpreter is sync.
7389 2015-01-13 Doug Evans <dje@google.com>
7391 * objfiles.c (objfile_filename): New function.
7392 * objfiles.h (objfile_filename): Declare it.
7393 (objfile_name): Add function comment.
7394 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
7395 bfd file name (which may be realpath'd), and the original name.
7397 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7399 * NEWS: Create a new section for the next release branch.
7400 Rename the section of the current branch, now that it has
7403 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7405 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
7406 * version.in: Bump version to 7.9.50.DATE-cvs.
7408 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7410 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
7411 Remove trailing new-line in argument of call to warning.
7413 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7415 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
7416 new-line in argument of call to "warning".
7418 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7420 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
7421 in static block, then try searching for primitive types.
7423 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
7425 * top.h (gdb_add_history): Declare.
7426 * top.c (command_count): New variable.
7427 (gdb_add_history): New function.
7428 (gdb_safe_append_history): New static function.
7429 (quit_force): Call it.
7430 (command_line_input): Use gdb_add_history instead of
7432 * event-top.c (command_line_handler): Likewise.
7434 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
7437 * darwin-nat.c: Replace <machine/setjmp.h> #include by
7438 <setjmp.h> #include.
7440 2015-01-11 Doug Evans <xdje42@gmail.com>
7442 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
7444 2015-01-11 Doug Evans <xdje42@gmail.com>
7447 * NEWS: The "maint demangle" command is renamed as "demangle".
7448 * demangle.c: #include cli/cli-utils.h, language.h.
7449 (demangle_command): New function.
7450 (_initialize_demangle): Add new command "demangle".
7451 * maint.c (maintenance_demangle): Stub out.
7452 (_initialize_maint_cmds): Update help text for "maint demangle",
7453 and mark as deprecated.
7455 2015-01-11 Mark Kettenis <kettenis@gnu.org>
7457 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
7458 inferior_thread is a function.
7460 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7462 * Makefile.in (.y.c): Don't munge yacc's #line
7465 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7467 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
7468 to prompt for input.
7469 * tui/tui-hooks.c (tui_query_hook): Remove.
7470 (tui_install_hooks): Don't set deprecated_query_hook.
7471 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
7472 height calculation. Always update the command window's cur_line.
7474 2015-01-09 Pedro Alves <palves@redhat.com>
7476 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
7478 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
7480 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
7481 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
7483 (check_stopped_by_watchpoint): New function.
7484 (save_sigtrap): Reimplement.
7485 (linux_nat_stopped_by_watchpoint): Adjust.
7486 (linux_nat_lp_status_is_event): Delete.
7487 (stop_wait_callback): Only call save_sigtrap after storing the
7489 (status_callback): If the thread had been stopped for a breakpoint
7490 that has since been removed, discard the event and resume the LWP.
7491 (count_events_callback, select_event_lwp_callback): Use
7492 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
7493 (cancel_breakpoint): Rename to ...
7494 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7495 stopped for a software breakpoint or hardware breakpoint.
7496 (select_event_lwp): Only give preference to the stepping LWP in
7497 all-stop mode. Adjust comments.
7498 (stop_and_resume_callback): Remove references to new_pending_p.
7499 (linux_nat_filter_event): Likewise. Leave exit events of the
7500 leader thread pending here. Handle signal short circuiting here.
7501 Only call save_sigtrap after storing the pending waitstatus.
7502 (linux_nat_wait_1): Remove 'retry' label. Remove references to
7503 new_pending. Don't handle leaving events the caller is not
7504 interested in pending here, nor handle signal short-circuiting
7505 here. Also give equal priority to all LWPs that have had events
7506 in non-stop mode. If reporting a software breakpoint event,
7507 unadjust the LWP's PC.
7508 * linux-nat.h (enum lwp_stop_reason): New.
7509 (struct lwp_info) <stop_pc>: New field.
7510 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
7511 (struct lwp_info) <stop_reason>: New field.
7512 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7514 2015-01-09 Pedro Alves <palves@redhat.com>
7516 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
7517 Set the LWP's 'resumed' flag.
7519 2015-01-09 Pedro Alves <palves@redhat.com>
7521 * linux-nat.c (linux_resume_one_lwp): New function.
7522 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
7523 (linux_nat_resume): Use lwp_status_pending_p and
7524 linux_resume_one_lwp.
7525 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
7526 (linux_handle_extended_wait): Use linux_resume_one_lwp.
7527 (status_callback, running_callback): Use lwp_status_pending_p.
7528 (lwp_status_pending_p): New function.
7529 (stop_and_resume_callback): Use lwp_status_pending_p.
7530 (linux_nat_filter_event): Use linux_resume_one_lwp.
7531 (linux_nat_wait_1): Always use status_callback to look for an LWP
7532 with a pending status. Use linux_resume_one_lwp.
7533 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
7534 linux_resume_one_lwp.
7536 2015-01-09 Pedro Alves <palves@redhat.com>
7538 * breakpoint.c (bp_location_inserted_here_p): New function,
7539 factored out from ...
7540 (breakpoint_inserted_here_p): ... here. Use
7541 ALL_BP_LOCATIONS_AT_ADDR.
7542 (software_breakpoint_inserted_here_p): Use
7543 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
7545 2014-01-09 Pedro Alves <palves@redhat.com>
7547 Skip enabling event reporting if the kernel supports
7549 * linux-thread-db.c: Include "nat/linux-ptrace.h".
7550 (thread_db_use_events): New function.
7551 (try_thread_db_load_1): Check thread_db_use_events before enabling
7553 (update_thread_state): New function.
7554 (attach_thread): Use it. Check thread_db_use_events before
7555 enabling event reporting.
7556 (thread_db_detach): Check thread_db_use_events before disabling
7558 (find_new_threads_callback): Check thread_db_use_events before
7559 enabling event reporting. Update the thread's state if not using
7560 libthread_db events.
7562 2015-01-09 Pedro Alves <palves@redhat.com>
7564 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
7565 about to wait for is > 0.
7566 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
7567 the kernel thread ID is -1.
7569 2015-01-09 Pedro Alves <palves@redhat.com>
7571 * linux-nat.c (attach_proc_task_lwp_callback): New function.
7572 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
7573 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
7574 ptrace option flags.
7575 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
7577 * nat/linux-procfs.c: Include <dirent.h>.
7578 (linux_proc_get_int): New parameter "warn". Handle it.
7579 (linux_proc_get_tgid): Adjust.
7580 (linux_proc_get_tracerpid): Rename to ...
7581 (linux_proc_get_tracerpid_nowarn): ... this.
7582 (linux_proc_pid_get_state): New function, factored out from
7583 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
7585 (linux_proc_pid_is_gone): New function.
7586 (linux_proc_pid_is_stopped): Adjust.
7587 (linux_proc_pid_is_zombie_maybe_warn)
7588 (linux_proc_pid_is_zombie_nowarn): New functions.
7589 (linux_proc_pid_is_zombie): Use
7590 linux_proc_pid_is_zombie_maybe_warn.
7591 (linux_proc_attach_tgid_threads): New function.
7592 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
7593 (linux_proc_get_tracerpid): Rename to ...
7594 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
7595 (linux_proc_pid_is_gone): New declaration.
7596 (linux_proc_pid_is_zombie): Update comment.
7597 (linux_proc_pid_is_zombie_nowarn): New declaration.
7598 (linux_proc_attach_lwp_func): New typedef.
7599 (linux_proc_attach_tgid_threads): New declaration.
7600 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
7601 use nowarn functions.
7602 (linux_ptrace_attach_fail_reason_string): Move here from
7603 gdbserver/linux-low.c and rename.
7604 (ptrace_supports_feature): If the current ptrace options are not
7605 known yet, check them now, instead of asserting.
7606 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
7609 2015-01-09 Pedro Alves <palves@redhat.com>
7611 * linux-thread-db.c (thread_db_find_new_threads_silently)
7612 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
7613 (find_new_threads_once): Print debug output on gdb_stdlog.
7615 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
7616 Pedro Alves <palves@redhat.com>
7618 * compile/compile.c: Include "gdb_wait.h".
7619 (do_rmdir): Check return value, and free 'zap'.
7621 2015-01-08 Pedro Alves <palves@redhat.com>
7622 Yao Qi <yao@codesourcery.com>
7624 * dwarf2loc.c (indirect_pieced_value): Don't call
7625 gdb_sign_extend. Call extract_signed_integer instead.
7626 * utils.c (gdb_sign_extend): Remove.
7627 * utils.h (gdb_sign_extend): Remove declaration.
7629 2015-01-07 Pierre Muller <muller@sourceware.org>
7632 * stabsread.c (define_symbol): Set language for C++ special symbols.
7634 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7636 * inflow.c (initial_gdb_ttystate): Tweak comment.
7638 2015-01-07 Joel Brobecker <brobecker@adacore.com>
7640 * inflow.c (set_initial_gdb_ttystate): Add empty line after
7641 comment documenting function.
7643 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7645 * terminal.h (set_initial_gdb_ttystate): Declare.
7646 * inflow.c (initial_gdb_ttystate): New static variable.
7647 (set_initial_gdb_ttystate): New setter.
7648 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
7649 instead of our current terminal state.
7650 * top.c (gdb_init): Call set_initial_gdb_ttystate.
7652 2015-01-07 Joel Brobecker <brobecker@adacore.com>
7654 * guile/scm-type.c (tyscm_array_1): Add comment.
7655 * python/py-type.c (typy_array_1): Add comment.
7657 2015-01-06 Joel Brobecker <brobecker@adacore.com>
7659 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
7660 error if N2 is equal to N1 - 1.
7662 2015-01-06 Joel Brobecker <brobecker@adacore.com>
7664 * python/py-type.c (typy_array_1): Do not raise negative-length
7665 exception if N2 is equal to N1 - 1.
7667 2015-01-03 Doug Evans <xdje42@gmail.com>
7669 * c-exp.y: Whitespace cleanup.
7670 (classify_inner_name): Remove extra ;.
7672 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
7674 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
7677 2015-01-02 Doug Evans <dje@google.com>
7679 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
7681 2015-01-02 Doug Evans <dje@google.com>
7683 * symtab.h (struct symbol): Fix typo in comment.
7685 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7687 Update year range in copyright notice of all files.
7689 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7691 * top.c (print_gdb_version): Update copyright year to 2015.
7693 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7695 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
7697 For older changes see ChangeLog-2014.
7703 version-control: never