1 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
3 * Makefile.in (LIBICONV): Define.
5 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6 * configure: Regenerate.
8 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
9 Pedro Alves <palves@redhat.com>
11 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
12 (arm_set_abi): Likewise.
13 * ax-general.c (ax_print): Likewise.
14 * c-exp.y (exp : string_exp): Likewise.
15 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
16 (do_compile_dwarf_expr_to_c): Likewise.
17 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
19 * dwarf2expr.c (execute_stack_op): Likewise.
20 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
21 (disassemble_dwarf_expression): Likewise.
22 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
23 (read_array_order): Likewise.
24 (abbrev_table_read_table): Likewise.
25 (read_attribute_value): Likewise.
26 (skip_unknown_opcode): Likewise.
27 (dwarf_decode_macro_bytes): Likewise.
28 (dwarf_decode_macros): Likewise.
29 * eval.c (value_f90_subarray): Likewise.
30 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
31 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
32 * infrun.c (handle_command): Likewise.
33 * memory-map.c (memory_map_start_memory): Likewise.
34 * osabi.c (set_osabi): Likewise.
35 * parse.c (operator_length_standard): Likewise.
36 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
38 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
39 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
40 (gdbpy_lookup_global_symbol): Likewise.
41 * record-full.c (record_full_restore): Likewise.
42 * regcache.c (regcache_register_status): Likewise.
43 (regcache_raw_read): Likewise.
44 (regcache_cooked_read): Likewise.
45 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
46 * symtab.c (initialize_ordinary_address_classes): Likewise.
47 * target-debug.h (target_debug_print_signals): Likewise.
48 * utils.c (do_restore_current_language): Likewise.
50 2015-08-06 Clem Dickey <clemd@acm.org>
53 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
55 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
57 * complaints.c (enum complaint_series): Add newlines and remove
59 (struct complaints) <series>: Change type to enum
60 complaint_series and remove out of date comment.
61 (symfile_complaint_hook): Use equivalent enum value
62 ISOLATED_MESSAGE instead of 0.
64 2015-08-06 Pedro Alves <palves@redhat.com>
66 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
69 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
71 * common/agent.c (symbol_list) <required>: Remove.
73 2015-08-06 Pedro Alves <palves@redhat.com>
75 * target/waitstatus.h (enum target_stop_reason)
76 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
78 2015-08-05 Pedro Alves <palves@redhat.com>
79 Joel Brobecker <brobecker@adacore.com>
81 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
82 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
83 case where BS->STOP is not set.
85 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
87 * nat/gdb_thread_db.h: Add copyright header.
88 Protect against multiple inclusion.
90 2015-08-05 Yao Qi <yao.qi@linaro.org>
92 * aarch64-linux-nat.c (get_thread_id): Remove.
93 (debug_reg_change_callback): Call ptid_get_lwp instead of
95 (fetch_gregs_from_thread): Likewise.
96 (store_gregs_to_thread): Likewise.
97 (fetch_fpregs_from_thread): Likewise.
98 (store_fpregs_to_thread): Likewise.
99 (aarch64_linux_get_debug_reg_capacity): Likewise.
100 * arm-linux-nat.c (get_thread_id): Remove.
101 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
102 * xtensa-linux-nat.c (get_thread_id): Remove.
103 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
104 * arm-linux-nat.c (get_thread_id): Remove.
105 (GET_THREAD_ID): Remove.
106 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
107 (store_fpregs, fetch_regs, store_regs): Likewise.
108 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
109 (fetch_vfp_regs, store_vfp_regs): Likewise.
110 (arm_linux_read_description): Likewise.
111 (arm_linux_get_hwbp_cap): Likewise.
112 * xtensa-linux-nat.c (get_thread_id): Remove.
113 (GET_THREAD_ID): Remove.
114 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
117 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
119 * python/py-linetable.c: Fix case of Linetable to LineTable
120 in docstrings and code comments.
121 * python/py-symtab.c: Same.
123 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
125 * infcmd.c (signal_command): Call do_cleanups for args_chain.
127 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
130 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
133 2015-08-04 Pedro Alves <palves@redhat.com>
135 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
136 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
137 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
138 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
139 (td_thr_validate_ftype, td_thr_get_info_ftype)
140 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
141 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
143 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
144 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
145 local macros and use them instead of verbose_dlsym and dlsym
148 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
150 * nios2-tdep.h: Include opcode/nios2.h here.
151 (NIOS2_CDX_OPCODE_SIZE): New.
152 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
153 * nios2-tdep.c: Don't include opcode/nios2.h here.
154 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
156 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
157 (nios2_match_addi, nios2_match_orhi): Likewise.
158 (nios2_match_stw, nios2_match_ldw): Likewise.
159 (nios2_match_rdctl): Likewise.
160 (nios2_match_stwm, nios2_match_ldwm): New.
161 (nios2_match_branch): Add cases for R2 encodings.
162 (nios2_match_jmpi, nios2_match_calli): Likewise.
163 (nios2_match_jmpr, nios2_match_callr): Likewise.
164 (nios2_match_break, nios2_match_trap): Likewise.
165 (nios2_in_epilogue_p): Add R2 support.
166 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
168 (nios2_breakpoint_from_pc): Handle R2 instructions.
169 (nios2_get_next_pc): Likewise. Adjust call to
170 tdep->syscall_next_pc.
171 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
172 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
173 instruction field macros instead of literal hex values.
174 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
175 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
176 Use size field from OP instead of assuming all instructions
178 (nios2_linux_init_abi): Register appropriate unwinder for mach.
180 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
182 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
183 variable warning with some compilers.
185 2015-08-03 Yao Qi <yao.qi@linaro.org>
187 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
188 in comment. Replace "rw" with "type".
189 (arm_linux_remove_watchpoint): Change type of "rw" to
190 "enum target_hw_bp_type".
192 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
194 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
196 * ft32-tdep.c (ft32_skip_prologue): Likewise.
197 * moxie-tdep.c (moxie_skip_prologue): Likewise.
198 * mt-tdep.c (mt_skip_prologue): Likewise.
199 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
201 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
203 * ada-exp.y (write_object_renaming): Replace struct
204 ada_symbol_info with struct block_symbol. Update field
205 references accordingly.
206 (block_lookup, select_possible_type_sym): Likewise.
207 (find_primitive_type): Likewise. Also update call to
208 ada_lookup_symbol to extract the symbol itself.
209 (write_var_or_type, write_name_assoc): Likewise.
210 * ada-lang.h (struct ada_symbol_info): Remove.
211 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
213 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
214 (ada_lookup_symbol): Return struct block_symbol instead of a
216 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
217 with struct block_symbol.
218 (resolve_subexp, ada_resolve_function, sort_choices,
219 user_select_syms, is_nonfunction, add_defn_to_vec,
220 num_defns_collected, defns_collected,
221 symbols_are_identical_enums, remove_extra_symbols,
222 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
223 ada_lookup_symbol_list, ada_iterate_over_symbols,
224 ada_lookup_encoded_symbol, get_var_value): Likewise.
225 (ada_lookup_symbol): Return a block_symbol instead of a mere
226 symbol. Replace struct ada_symbol_info with struct
228 (ada_lookup_symbol_nonlocal): Likewise.
229 (standard_lookup): Make block passing explicit through
230 lookup_symbol_in_language.
231 * ada-tasks.c (get_tcb_types_info): Update the calls to
232 lookup_symbol_in_language to extract the mere symbol out of the
234 (ada_tasks_inferior_data_sniffer): Likewise.
235 * ax-gdb.c (gen_static_field): Likewise for the call to
237 (gen_maybe_namespace_elt): Deal with struct block_symbol from
239 (gen_expr): Likewise.
240 * c-exp.y: Likewise. Remove uses of block_found.
241 (lex_one_token, classify_inner_name, c_print_token): Likewise.
242 (classify_name): Likewise. Rename the "sym" local variable to
244 * c-valprint.c (print_unpacked_pointer): Likewise.
245 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
246 "sym" parameter from struct symbol * to struct block_symbol.
247 Use it to remove uses of block_found. Deal with struct
248 block_symbol from lookup functions.
249 (gcc_convert_symbol): Likewise. Update the call to
251 * compile/compile-object-load.c (compile_object_load): Deal with
252 struct block_symbol from lookup functions.
253 * cp-namespace.c (cp_lookup_nested_symbol_1,
254 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
255 cp_search_static_and_baseclasses,
256 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
257 cp_lookup_symbol_imports_or_template,
258 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
259 lookup_namespace_scope, cp_lookup_nonlocal,
260 find_symbol_in_baseclass): Return struct block_symbol instead of
261 mere symbols and deal with struct block_symbol from lookup
263 * cp-support.c (inspect_type, replace_typedefs,
264 cp_lookup_rtti_type): Deal with struct block_symbol from
266 * cp-support.h (cp_lookup_symbol_nonlocal,
267 cp_lookup_symbol_from_namespace,
268 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
269 Return struct block_symbol instead of mere symbols.
270 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
272 Deal with struct block_symbol from lookup functions. Remove
274 * eval.c (evaluate_subexp_standard): Update call to
275 cp_lookup_symbol_namespace.
276 * f-exp.y: Deal with struct block_symbol from lookup functions.
277 Remove uses of block_found.
279 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
280 lookup_enum, lookup_template_type, check_typedef): Deal with
281 struct block_symbol from lookup functions.
282 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
283 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
284 (gdbscm_lookup_global_symbol): Likewise.
285 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
286 * go-exp.y: Likewise. Remove uses of block_found.
287 (package_name_p, classify_packaged_name, classify_name):
289 * infrun.c (insert_exception_resume_breakpoint): Likewise.
290 * jv-exp.y (push_variable): Likewise.
291 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
292 * language.c (language_bool_type): Likewise.
293 * language.h (struct language_defn): Update
294 la_lookup_symbol_nonlocal to return a struct block_symbol rather
296 * linespec.c (find_label_symbols): Deal with struct block_symbol
297 from lookup functions.
298 * m2-exp.y: Likewise. Remove uses of block_found.
300 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
301 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
302 * p-exp.y: Likewise. Remove uses of block_found.
304 * p-valprint.c (pascal_val_print): Likewise.
305 * parse.c (write_dollar_variable): Likewise. Remove uses of
307 * parser-defs.h (struct symtoken): Turn the SYM field into a
309 * printcmd.c (address_info): Deal with struct block_symbol from
311 * python/py-frame.c (frapy_read_var): Likewise.
312 * python/py-symbol.c (gdbpy_lookup_symbol,
313 gdbpy_lookup_global_symbol): Likewise.
314 * skip.c (skip_function_command): Likewise.
315 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
316 block_symbol instead of a mere symbol.
317 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
318 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
319 * solib.c (solib_global_lookup): Likewise.
320 * solist.h (solib_global_lookup): Likewise.
321 (struct target_so_ops): Update lookup_lib_global_symbol to
322 return a struct block_symbol rather than a mere symbol.
323 * source.c (select_source_symtab): Deal with struct block_symbol
324 from lookup functions.
325 * stack.c (print_frame_args, iterate_over_block_arg_vars):
327 * symfile.c (set_initial_language): Likewise.
328 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
330 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
331 (struct symbol_cache_slot): Turn the FOUND field into a struct
333 (block_found): Remove.
334 (eq_symbol_entry): Update to deal with struct block_symbol in
336 (symbol_cache_lookup): Return a struct block_symbol rather than
338 (symbol_cache_mark_found): Add a BLOCK parameter to fill
339 appropriately the cache slots. Update callers.
340 (symbol_cache_dump): Update cache slots handling to the type
342 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
343 lookup_symbol_aux, lookup_local_symbol,
344 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
345 lookup_symbol_in_objfile_symtabs,
346 lookup_symbol_in_objfile_from_linkage_name,
347 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
348 lookup_symbol_in_static_block, lookup_static_symbol,
349 lookup_global_symbol):
350 Return a struct block_symbol rather than a mere symbol. Deal
351 with struct block_symbol from other lookup functions. Remove
353 (lookup_symbol_in_block): Remove uses of block_found.
354 (struct global_sym_lookup_data): Turn the RESULT field into a
356 (lookup_symbol_global_iterator_cb): Update references to the
358 (search_symbols): Deal with struct block_symbol from lookup
360 * symtab.h (struct block_symbol): New structure.
361 (block_found): Remove.
362 (lookup_symbol_in_language, lookup_symbol,
363 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
364 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
365 lookup_global_symbol_from_objfile): Return a struct block_symbol
366 rather than just a mere symbol. Update comments to remove
367 mentions of block_found.
368 * valops.c (find_function_in_inferior,
369 value_struct_elt_for_reference, value_maybe_namespace_elt,
370 value_of_this): Deal with struct block_symbol from lookup
372 * value.c (value_static_field, value_fn_field): Likewise.
374 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
376 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
379 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
380 Pedro Alves <palves@redhat.com>
382 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
383 type or value instead of integer.
384 (aarch64_linux_insert_watchpoint): Likewise.
385 (aarch64_linux_remove_watchpoint): Likewise.
386 * ada-lang.c (ada_op_print_tab): Likewise.
387 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
388 (amd64_linux_syscall_record_common): Likewise.
389 * arch-utils.c (target_byte_order_user): Likewise.
390 (default_byte_order): Likewise.
391 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
392 (arm_linux_get_hwbp_type): Likewise.
393 (arm_linux_hw_watchpoint_initialize): Likewise.
394 (arm_linux_insert_watchpoint): Likewise.
395 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
396 (arm_linux_syscall_record): Likewise.
397 * breakpoint.c (update_watchpoint): Likewise.
398 (breakpoint_here_p): Likewise.
399 (bpstat_print): Likewise.
400 (enable_breakpoint_disp): Likewise.
401 * c-lang.c (c_op_print_tab): Likewise.
402 * cli/cli-decode.c (add_info_alias): Likewise.
403 * d-lang.c (d_op_print_tab): Likewise.
404 * eval.c (evaluate_subexp_standard): Likewise.
405 * f-exp.y (dot_ops): Likewise.
406 (f77_keywords): Likewise.
407 * f-lang.c (f_op_print_tab): Likewise.
408 * go-lang.c (go_op_print_tab): Likewise.
409 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
410 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
411 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
412 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
413 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
414 (struct scm_from_stringn_data): Likewise.
415 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
416 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
417 (ia64_linux_remove_watchpoint): Likewise.
418 (ia64_linux_can_use_hw_breakpoint): Likewise.
419 * infrun.c (print_stop_event): Likewise.
420 * jv-lang.c (java_op_print_tab): Likewise.
421 * linux-nat.c (linux_proc_xfer_partial): Likewise.
422 * linux-nat.h (struct lwp_info): Likewise.
423 * linux-thread-db.c (enable_thread_event): Likewise.
424 * m2-lang.c (m2_op_print_tab): Likewise.
425 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
426 (mi_cmd_stack_list_variables): Likewise.
427 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
428 * mi/mi-out.c (mi_table_begin): Likewise.
429 (mi_table_header): Likewise.
430 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
431 (mips_linux_insert_watchpoint): Likewise.
432 (mips_linux_remove_watchpoint): Likewise.
433 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
434 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
435 (mips_linux_watch_type_to_irw): Likewise.
436 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
437 (procfs_insert_hw_watchpoint): Likewise.
438 (procfs_remove_hw_watchpoint): Likewise.
439 (procfs_hw_watchpoint): Likewise.
440 (procfs_can_use_hw_breakpoint): Likewise.
441 (procfs_remove_hw_watchpoint): Likewise.
442 (procfs_insert_hw_watchpoint): Likewise.
443 * p-lang.c (pascal_op_print_tab): Likewise.
444 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
445 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
446 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
447 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
448 (procfs_insert_watchpoint): Likewise.
449 (procfs_remove_watchpoint): Likewise.
450 * psymtab.c (recursively_search_psymtabs): Likewise.
451 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
452 (m32r_insert_watchpoint): Likewise.
453 * remote-mips.c (mips_can_use_watchpoint): Likewise.
454 (mips_insert_watchpoint): Likewise.
455 (mips_remove_watchpoint): Likewise.
456 * remote.c (watchpoint_to_Z_packet): Likewise.
457 (remote_insert_watchpoint): Likewise.
458 (remote_remove_watchpoint): Likewise.
459 (remote_check_watch_resources): Likewise.
460 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
461 (s390_remove_watchpoint): Likewise.
462 (s390_can_use_hw_breakpoint): Likewise.
463 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
464 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
465 * target.h (struct target_ops): Likewise.
466 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
467 * ui-out.c (struct ui_out_hdr): Likewise.
468 (append_header_to_list): Likewise.
469 (get_next_header): Likewise.
470 (verify_field): Likewise.
471 (ui_out_begin): Likewise.
472 (ui_out_field_int): Likewise.
473 (ui_out_field_fmt_int): Likewise.
474 (ui_out_field_skip): Likewise.
475 (ui_out_field_string): Likewise.
476 (ui_out_field_fmt): Likewise.
477 * varobj.c (new_variable): Likewise.
478 * x86-nat.c (x86_insert_watchpoint): Likewise.
479 (x86_remove_watchpoint): Likewise.
480 (x86_can_use_hw_breakpoint): Likewise.
481 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
482 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
483 previously anonymous enumeration type..
484 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
486 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
487 (target_debug_print_enum_bptype): New.
488 * target-delegates.c: Regenerate.
490 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
492 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
493 already says and disallow non-stack memory writes in the prologue.
495 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
497 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
498 reflect how current GCC emits stack overflow checks. Match
499 both trap and break instructions for backward compatbility.
500 Disallow other trap and break instructions in the prologue.
502 2015-07-30 Pedro Alves <palves@redhat.com>
505 * linux-nat.c (wait_lwp): Report to the core when thread group
508 2015-07-30 Pedro Alves <palves@redhat.com>
509 Simon Marchi <simon.marchi@ericsson.com>
512 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
513 mark the new thread as resumed. Remove STOPPING parameter.
514 (wait_lwp): Adjust call to linux_handle_extended_wait.
515 (linux_nat_filter_event): Adjust call to
516 linux_handle_extended_wait.
517 (resume_stopped_resumed_lwps): Add debug output.
519 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
521 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
523 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
524 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
525 gdbarch_fast_tracepoint_valid_at.
526 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
527 * gdbarch.h: Regenerate.
528 * gdbarch.c: Regenerate.
529 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
530 argument. Do not set it.
531 * remote.c (remote_download_tracepoint): Adjust call to
532 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
533 the instruction length.
535 2015-07-30 Yao Qi <yao.qi@linaro.org>
537 * arm-tdep.h (enum gdb_regnum): Move it to ...
538 * arch/arm.h: ... here. New file.
539 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
541 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
543 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
544 Change its type to int *.
545 (decode_br): Rename link argument to is_blr. Change its type to
547 (decode_cb): Rename op argument to is_cbnz. Change its type to
549 (decode_tb): Rename op argument to is_tbnz. Change its type to
550 int *. Set is_tbnz to either 1 or 0.
551 (aarch64_analyze_prologue): Change type of is_link to int. Add
552 new variables is_cbnz and is_tbnz. Adjust call to
553 aarch64_decode_cb and aarch64_decode_tb.
555 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
557 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
559 (mips_linux_new_thread): Likewise.
560 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
562 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
564 * top.c: Include "tui/tui.h".
565 (undo_terminal_modifications_before_exit): New static function.
566 (quit_force): Use it.
568 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
570 * target.c (terminal_state): Initialize to terminal_is_ours.
572 2015-07-29 Yao Qi <yao.qi@linaro.org>
575 * dcache.c (dcache_read_memory_partial): Call
576 raw_memory_xfer_partial.
577 * target.c (raw_memory_xfer_partial): Make it non-static.
578 * target.h (raw_memory_xfer_partial): Declare.
580 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
582 * c-valprint.c (c_val_print_array): Consider addressable memory
584 (c_val_print_ptr): Likewise.
585 (c_val_print_int): Likewise.
586 * findvar.c (read_frame_register_value): Likewise.
587 * valarith.c (find_size_for_pointer_math): Likewise.
588 (value_ptrdiff): Likewise.
589 (value_subscripted_rvalue): Likewise.
590 * valops.c (read_value_memory): Likewise (and rename variables).
591 (value_assign): Likewise.
592 (value_repeat): Likewise.
593 (value_array): Likewise.
594 (value_slice): Likewise.
595 * valprint.c (generic_val_print_ptr): Likewise.
596 (generic_val_print_enum): Likewise.
597 (generic_val_print_bool): Likewise.
598 (generic_val_print_int): Likewise.
599 (generic_val_print_char): Likewise.
600 (generic_val_print_float): Likewise.
601 (generic_val_print_decfloat): Likewise.
602 (generic_val_print_complex): Likewise.
603 (val_print_scalar_formatted): Likewise.
604 (val_print_array_elements): Likewise.
605 * value.c (set_value_parent): Likewise.
606 (value_contents_copy_raw): Likewise.
607 (set_internalvar_component): Likewise.
608 (value_primitive_field): Likewise.
609 (value_fetch_lazy): Likewise.
610 * value.h (read_value_memory): Update comment.
612 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
614 * value.c (get_value_arch): New function.
615 * value.h (get_value_arch): New declaration.
617 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
619 * value.c (struct value): Update comments.
621 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
623 * gdbtypes.c (type_length_units): New function.
624 * gdbtypes.h (type_length_units): New declaration.
625 (struct type) <length>: Update comment.
627 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
629 * valprint.c (generic_val_print): Factor out complex
631 (generic_val_print_complex): ... this new function.
633 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
635 * valprint.c (generic_val_print): Factor out decfloat
637 (generic_val_print_decfloat): ... this new function.
639 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
641 * valprint.c (generic_val_print): Factor out float
643 (generic_val_print_float): ... this new function.
645 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
647 * valprint.c (generic_val_print): Factor out char
649 (generic_val_print_char): ... this new function.
651 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
653 * valprint.c (generic_val_print): Factor out integer
655 (generic_val_print_int): ... this new function.
657 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
659 * valprint.c (generic_val_print): Factor out bool
661 (generic_val_print_bool): ... this new function.
663 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
665 * valprint.c (generic_val_print): Factor out function/method
667 (generic_val_print_func): ... this new function.
669 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
671 * valprint.c (generic_val_print): Factor out flags
673 (generic_val_print_flags): ... this new function.
675 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
677 * valprint.c (generic_val_print): Factor out enum
679 (generic_val_print_enum): ... this new function.
681 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
683 * valprint.c (generic_val_print): Factor out reference
685 (generic_val_print_ref): ... this new function.
687 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
689 * valprint.c (generic_val_print): Factor out memberptr
691 (generic_val_print_memberptr): ... this new function.
693 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
695 * valprint.c (generic_val_print): Factor out pointer
697 (generic_val_print_ptr): ... this new function.
699 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
701 * valprint.c (generic_val_print): Factor out array
703 (generic_val_print_array): ... this new function.
705 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
707 * valprint.c (generic_val_print): Factor out
708 print_unpacked_pointer code to ...
709 (print_unpacked_pointer): ... this new function.
711 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
713 * event-top.c (handle_sigterm): Don't inspect
714 target_can_async_p. Always set the quit flag and always mark
715 the async signal handler.
717 2015-07-27 Yao Qi <yao.qi@linaro.org>
719 * Makefile.in (REMOTE_EXAMPLES): Remove it.
721 2015-07-25 Kevin Buettner <kevinb@redhat.com>
723 * remote.c (read_ptid): Return null_ptid when no thread id
725 (remote_current_thread): Add log warning for malformed
727 (remote_start_remote): Add log warning when current thread
730 2015-07-24 Pedro Alves <palves@redhat.com>
732 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
733 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
734 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
736 2015-07-24 Pedro Alves <palves@redhat.com>
739 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
740 is resumed, and extend the debug log.
742 2015-07-24 Pedro Alves <palves@redhat.com>
744 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
746 2015-07-24 Pedro Alves <palves@redhat.com>
748 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
750 * alpha-linux-nat.c: Likewise.
751 * amd64-linux-nat.c: Likewise.
752 * arm-linux-nat.c: Likewise.
753 * hppa-linux-nat.c: Likewise.
754 * i386-linux-nat.c: Likewise.
755 * ia64-linux-nat.c: Likewise.
756 * linux-fork.c: Likewise.
757 * linux-nat.c: Likewise.
758 * m32r-linux-nat.c: Likewise.
759 * m68klinux-nat.c: Likewise.
760 * mips-linux-nat.c: Likewise.
761 * nat/linux-btrace.c: Likewise.
762 * nat/linux-ptrace.c: Likewise.
764 * nat/mips-linux-watch.c: Likewise.
765 * nat/x86-linux-dregs.c: Likewise.
766 * ppc-linux-nat.c: Likewise.
767 * s390-linux-nat.c: Likewise.
768 * spu-linux-nat.c: Likewise.
769 * tilegx-linux-nat.c: Likewise.
770 * x86-linux-nat.c: Likewise.
771 * xtensa-linux-nat.c: Likewise.
773 2015-07-24 Pedro Alves <palves@redhat.com>
775 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
776 __ptrace_request as first parameter type instead of int.
777 (PTRACE_TYPE_ARG1): Define.
778 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
779 that casts first argument to PTRACE_TYPE_ARG1.
780 * config.in: Regenerate.
781 * configure: Regenerate.
783 2015-07-24 Pedro Alves <palves@redhat.com>
785 * gdb_ptrace.h: Move ...
786 * nat/gdb_ptrace.h: ... here.
787 * inf-ptrace.c: Adjust.
789 2015-07-24 Pedro Alves <palves@redhat.com>
791 * acinclude.m4: Include ptrace.m4.
792 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
793 * ptrace.m4: ... to this new file.
795 2015-07-23 Doug Evans <dje@google.com>
797 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
798 (load_cu): Handle dummy CUs.
799 (dw2_do_instantiate_symtab, process_queuef): Ditto.
800 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
802 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
804 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
805 documentation to say that it returns a list rather than
807 (linetable_object_methods): Update the docstring of the
810 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
812 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
813 type to the recursive call instead of the original (maybe
814 TYPE_CODE_TYPEDEF) type.
816 2015-07-23 Yao Qi <yao.qi@linaro.org>
818 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
819 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
820 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
822 2015-07-21 Yao Qi <yao.qi@linaro.org>
824 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
825 Move it to nat/aarch64-linux-hw-point.c.
826 (aarch64_linux_child_post_startup_inferior): Update.
827 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
829 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
832 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
834 * common/btrace-common.c (btrace_data_append): Change case label.
836 2015-07-20 Yao Qi <yao.qi@linaro.org>
838 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
840 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
841 "unsigned long long".
843 2015-07-18 Kevin Buettner <kevinb@redhat.com>
845 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
846 to be set for SEC_ALLOC sections too.
848 2015-07-17 Yao Qi <yao.qi@linaro.org>
850 * Makefile.in (HFILES_NO_SRCDIR): Add
851 nat/aarch64-linux-hw-point.h.
852 (aarch64-linux-hw-point.o): New rule.
853 * nat/aarch64-linux-hw-point.h: New file.
854 * nat/aarch64-linux-hw-point.c: New file.
855 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
856 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
857 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
858 (AARCH64_HWP_ALIGNMENT): Likewise.
859 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
860 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
861 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
862 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
863 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
864 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
865 (struct aarch64_debug_reg_state): Likewise.
866 (struct arch_lwp_info): Likewise.
867 (aarch64_linux_set_debug_regs): Likewise.
868 (aarch64_notify_debug_reg_change): Remove static.
869 (aarch64_align_watchpoint): Likewise.
870 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
871 (aarch64_watchpoint_length): Likewise.
872 (aarch64_point_encode_ctrl_reg): Likewise
873 (aarch64_point_is_aligned): Likewise.
874 (aarch64_dr_state_insert_one_point): Likewise.
875 (aarch64_dr_state_remove_one_point): Likewise.
876 (aarch64_handle_breakpoint): Likewise.
877 (aarch64_handle_aligned_watchpoint): Likewise.
878 (aarch64_handle_unaligned_watchpoint): Likewise.
879 (aarch64_handle_watchpoint): Likewise.
880 * config/aarch64/linux.mh (NAT_FILE): Add
881 aarch64-linux-hw-point.o.
883 2015-07-17 Yao Qi <yao.qi@linaro.org>
885 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
886 state and don't call aarch64_get_debug_reg_state. All callers
888 (aarch64_linux_insert_hw_breakpoint): Call
889 aarch64_get_debug_reg_state earlier.
890 (aarch64_linux_remove_hw_breakpoint): Likewise.
891 (aarch64_handle_aligned_watchpoint): Add argument state and
892 don't call aarch64_get_debug_reg_state. All callers update.
893 (aarch64_handle_unaligned_watchpoint): Likewise.
894 (aarch64_handle_watchpoint): Add argument state.
895 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
897 (aarch64_linux_remove_watchpoint): Likewise.
899 2015-07-17 Yao Qi <yao.qi@linaro.org>
901 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
903 (aarch64_handle_unaligned_watchpoint): Likewise.
905 2015-07-17 Yao Qi <yao.qi@linaro.org>
907 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
908 argument type's type to 'enum target_hw_bp_type'.
909 (aarch64_dr_state_remove_one_point): Likewise.
910 (aarch64_handle_breakpoint): Likewise.
911 (aarch64_linux_insert_hw_breakpoint): Likewise.
912 (aarch64_linux_remove_hw_breakpoint): Likewise.
913 (aarch64_handle_aligned_watchpoint): Likewise.
915 2015-07-17 Yao Qi <yao.qi@linaro.org>
917 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
918 ptid_get_pid instead of get_thread_id.
920 2015-07-17 Yao Qi <yao.qi@linaro.org>
922 * remote.c (get_current_thread): Initialise ptid to null_ptid.
923 (add_current_inferior_and_thread): Don't initialise ptid.
925 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
927 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
928 unavailable if invalid.
930 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
932 Revert the previous 6 commits:
933 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
934 Move gdb_regex* to common/
935 Prepare linux_find_memory_regions_full & co. for move
936 Move linux_find_memory_regions_full & co.
937 gdbserver build-id attribute generator
938 Validate symbol file using build-id
940 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
941 Jan Kratochvil <jan.kratochvil@redhat.com>
943 Validate symbol file using build-id.
944 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
945 and 'show validate-build-id'. Add build-id attribute.
946 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
947 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
948 * solib-frv.c (_initialize_frv_solib): Ditto.
949 * solib-spu.c (set_spu_solib_ops): Ditto.
950 * solib-svr4.c: Include rsp-low.h.
951 (NOTE_GNU_BUILD_ID_NAME): New define.
952 (svr4_validate): New function.
953 (svr4_copy_library_list): Duplicate field build_id.
954 (library_list_start_library): Parse 'build-id' attribute.
955 (svr4_library_attributes): Add 'build-id' attribute.
956 (_initialize_svr4_solib): Assign validate value.
957 * solib-target.c (solib.h): Include.
958 (_initialize_solib_target): Assign validate value.
959 * solib.c (validate_build_id, show_validate_build_id): New.
960 (solib_map_sections): Use ops->validate.
961 (clear_so): Free build_id.
962 (default_solib_validate): New function.
963 (_initialize_solib): Add "validate-build-id".
964 * solib.h (default_solib_validate): New declaration.
965 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
966 (target_so_ops): New field 'validate'.
968 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
969 Jan Kratochvil <jan.kratochvil@redhat.com>
971 gdbserver build-id attribute generator.
972 * features/library-list-svr4.dtd (library-list-svr4): New
973 'build-id' attribute.
975 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
976 Jan Kratochvil <jan.kratochvil@redhat.com>
978 Move linux_find_memory_regions_full & co.
979 * linux-tdep.c (nat/linux-maps.h): Include.
980 (gdb_regex.h): Remove the include.
981 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
982 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
983 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
984 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
985 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
987 (struct smaps_vmflags, read_mapping, decode_vmflags)
988 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
989 (linux_find_memory_regions_full): Move from linux-tdep.c.
990 * nat/linux-maps.h (read_mapping): New declaration.
991 (linux_find_memory_region_ftype, enum filterflags): Moved from
993 (linux_find_memory_regions_full): New declaration.
994 * target.c (target/target-utils.h): Include.
995 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
996 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
997 definitions to target/target-utils.c.
998 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
999 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
1001 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
1002 (read_alloc): New declaration.
1003 (read_stralloc_func_ftype): New typedef.
1004 (read_stralloc): New declaration.
1005 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
1007 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1008 Jan Kratochvil <jan.kratochvil@redhat.com>
1010 Prepare linux_find_memory_regions_full & co. for move.
1011 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
1012 (linux_find_memory_regions_full): Change signature and prepare
1013 for moving to linux-maps.
1014 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
1015 (linux_find_memory_regions_thunk): New.
1016 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
1017 (linux_find_memory_regions_gdb): New.
1018 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
1019 (linux_make_mappings_corefile_notes): Use
1020 linux_find_memory_regions_gdb.
1021 * target.c (read_alloc_pread_ftype): New typedef.
1022 (target_fileio_read_alloc_1_pread): New function.
1023 (read_alloc): Refactor from target_fileio_read_alloc_1.
1024 (read_stralloc_func_ftype): New typedef.
1025 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
1026 (read_stralloc): Refactored from target_fileio_read_stralloc.
1027 (target_fileio_read_stralloc): New implementation, use read_stralloc.
1029 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
1033 (COMMON_OBS): Add gdb_regex.o.
1035 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
1036 --without-included-regex and USE_INCLUDED_REGEX.
1037 * common/gdb_regex.c: New file from utils.c functions.
1038 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
1039 file wrapping define name.
1040 * configure: Rebuilt.
1041 * configure.ac (gdb_use_included_regex, --without-included-regex)
1042 (USE_INCLUDED_REGEX): Move them to common/common.m4.
1043 * gdb_regex.h: Move it to common/gdb_regex.h.
1044 * utils.c: Remove include gdb_regex.h.
1045 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
1046 (compile_rx_or_error): Move them to common/gdb_regex.c.
1048 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
1049 Jan Kratochvil <jan.kratochvil@redhat.com>
1051 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1052 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
1053 common/target-utils.h.
1054 (COMMON_OBS): Add target-utils.o.
1055 (linux-maps.o, target-utils.o): New.
1056 * target/target-utils.c: New file.
1057 * target/target-utils.h: New file.
1058 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
1059 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1060 * nat/linux-maps.c: New file.
1061 * nat/linux-maps.h: New file.
1063 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
1064 Pedro Alves <palves@redhat.com>
1066 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
1067 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
1068 (perf_event_read_bts): Change the type of SIZE and READ.
1069 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
1070 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
1071 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
1073 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
1074 buffer size to UINT_MAX.
1075 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
1077 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
1078 <last_head>: Change type.
1079 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
1080 * common/btrace-common.c (btrace_data_append): Change the type of
1082 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
1085 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
1087 * gdbtypes.h (CHECK_TYPEDEF): Remove.
1088 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
1090 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
1091 (ada_array_length): Likewise.
1092 (find_parallel_type_by_descriptive_type): Likewise.
1093 (ada_check_typedef): Likewise.
1094 * arm-tdep.c (arm_return_in_memory): Likewise.
1095 * ax-gdb.c (gen_trace_static_fields): Likewise.
1096 (gen_struct_ref_recursive): Likewise.
1097 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1098 (variable: block COLONCOLON name): Likewise.
1099 (qualified_name: TYPENAME COLONCOLON name): Likewise.
1100 * c-lang.c (classify_type): Likewise.
1101 * c-typeprint.c (c_print_type): Likewise.
1102 (c_print_typedef): Likewise.
1103 (c_type_print_base): Likewise.
1104 * c-valprint.c (c_val_print): Likewise.
1105 * compile/compile-c-types.c (convert_type): Likewise.
1106 * compile/compile-object-load.c (get_out_value_type): Likewise.
1107 * completer.c (add_struct_fields): Likewise.
1108 (expression_completer): Likewise.
1109 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
1110 (cp_lookup_nested_symbol_1): Likewise.
1111 (cp_lookup_nested_symbol): Likewise.
1112 * cp-valprint.c (cp_print_value_fields): Likewise.
1113 (cp_print_static_field): Likewise.
1114 * d-valprint.c (d_val_print): Likewise.
1115 * eval.c (evaluate_subexp_standard): Likewise.
1116 (evaluate_subexp_for_sizeof): Likewise.
1117 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1118 * f-typeprint.c (f_type_print_base): Likewise.
1119 * f-valprint.c (f_val_print): Likewise.
1120 * gdbtypes.c (get_discrete_bounds): Likewise.
1121 (create_array_type_with_stride): Likewise.
1122 (type_name_no_tag_or_error): Likewise.
1123 (lookup_struct_elt_type): Likewise.
1124 (get_unsigned_type_max): Likewise.
1125 (internal_type_vptr_fieldno): Likewise.
1126 (set_type_vptr_fieldno): Likewise.
1127 (internal_type_vptr_basetype): Likewise.
1128 (set_type_vptr_basetype): Likewise.
1129 (get_vptr_fieldno): Likewise.
1130 (is_integral_type): Likewise.
1131 (is_scalar_type): Likewise.
1132 (is_scalar_type_recursive): Likewise.
1133 (distance_to_ancestor): Likewise.
1134 (is_unique_ancestor_worker): Likewise.
1135 (check_types_equal): Likewise.
1136 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1138 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
1140 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
1141 also test for language_d.
1142 (dwarf2_compute_name): Likewise.
1143 (read_func_scope): Likewise.
1144 (read_structure_type): Likewise.
1145 (new_symbol_full): Likewise.
1146 (determine_prefix): Likewise.
1147 (read_import_statement): Use dot as the separator for language_d.
1148 (typename_concat): Likewise, but don't prefix the D main function.
1150 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
1152 * nat/linux-namespaces.c (setns): Rename from this ...
1153 (do_setns): ... to this. Support calling setns if it exists.
1154 (mnsh_handle_setns): Call do_setns.
1156 2015-07-13 Yao Qi <yao.qi@linaro.org>
1158 * exec.c (exec_file_attach): Add period at the end of error
1161 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1163 * tui/tui-win.c (window_name_completer): New function.
1164 (focus_completer): Call window_name_completer. All old content
1165 moved into window_name_completer.
1166 (winheight_completer): New function.
1167 (_initialize_tui_win): Rename variable. Add completer to
1168 winheight command. Update doc string on winheight.
1170 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
1172 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
1173 all nios2 mach variants.
1175 2015-07-10 Kevin Buettner <kevinb@redhat.com>
1177 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
1178 of target_read_memory.
1180 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1182 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
1184 (parse_scrolling_args): Likewise.
1186 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1188 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
1189 names in this function.
1191 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1193 * tui/tui-data.h (SRC_NAME): Convert to lower case.
1194 (CMD_NAME): Likewise.
1195 (DATA_NAME): Likewise.
1196 (DISASSEM_NAME): Likewise.
1197 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
1198 (tui_set_win_height): Likewise.
1199 (parse_scrolling_args): Likewise.
1201 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
1203 * record-btrace.c (record_btrace_goto_begin)
1204 (record_btrace_goto_end, record_btrace_goto): Move call to
1205 print_stack_frame ...
1206 (record_btrace_set_replay): ... here. Set stop_pc.
1207 * record-full.c (record_full_goto_entry): Set stop_pc.
1209 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1211 * NEWS: Mention support for tracepoints on aarch64-linux.
1213 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1215 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
1217 (the_low_target): Install it.
1219 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1221 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
1222 * gdb.trace/collection.exp: Likewise.
1223 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
1224 * gdb.trace/mi-trace-unavailable.exp: Likewise.
1225 * gdb.trace/report.exp: Likewise.
1226 * gdb.trace/trace-break.exp: Likewise.
1227 * gdb.trace/unavailable.exp: Likewise.
1228 * gdb.trace/while-dyn.exp: Likewise.
1230 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1232 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
1233 (aarch64_gen_return_address): New function.
1234 (aarch64_gdbarch_init): Hook it.
1236 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1238 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
1239 swallow NOT_AVAILABLE_ERROR.
1240 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
1241 available_p is not set.
1242 (aarch64_stub_frame_unwind_stop_reason): New function.
1243 (aarch64_stub_unwind): Install it.
1245 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1247 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
1249 (aarch64_make_prologue_cache_1): New function, factored out from
1250 aarch64_make_prologue_cache. Do not allocate cache. Set
1252 (aarch64_make_prologue_cache): Reimplement wrapping
1253 aarch64_make_prologue_cache_1, and swallowing
1254 NOT_AVAILABLE_ERROR.
1255 (aarch64_prologue_frame_unwind_stop_reason): New function.
1256 Return UNWIND_UNAVAILABLE if available_p is not set.
1257 (aarch64_prologue_unwind): Install it.
1258 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
1259 checks into aarch64_prologue_frame_unwind_stop_reason. Call
1260 frame_id_build_unavailable_stack if available_p is not set.
1262 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1264 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
1266 (aarch64_scan_prologue): Set prev_pc.
1267 (aarch64_make_prologue_cache): Set func.
1268 (aarch64_make_stub_cache): Set prev_pc.
1269 (aarch64_prologue_this_id): Remove local variables id, pc and
1270 func. Read prev_pc and func from cache.
1271 (aarch64_stub_this_id): Read prev_pc from cache.
1273 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1275 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
1276 argument this_cache. Remove unused local variables reg and
1277 unwound_fp. Return early if this_cache is already set. Set
1279 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
1281 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
1283 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
1284 New argument this_cache. Return early if this_cache is already
1285 set. Set this_cache.
1286 (aarch64_prologue_this_id): Update call to
1287 aarch64_make_prologue_cache.
1288 (aarch64_prologue_prev_register): Likewise.
1289 (aarch64_normal_frame_base): Likewise.
1291 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1293 * c-valprint.c (c_val_print): Factor out memberptr printing code
1294 from c_val_print to ...
1295 (c_val_print_memberptr): ... this new function.
1297 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1299 * c-valprint.c (c_val_print): Factor out int printing code to ...
1300 (c_val_print_int): ... this new function.
1302 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1304 * c-valprint.c (c_val_print): Factor out struct and union
1305 printing code to ...
1306 (c_val_print_struct): ... this new function ...
1307 (c_val_print_union): ... and this new function.
1309 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1311 * c-valprint.c (c_val_print): Factor out pointer printing code
1313 (c_val_print_ptr): ... this new function.
1315 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1317 * c-valprint.c (c_valprint): Factor our array printing code from
1319 (c_val_print_array): ... this new function.
1321 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1323 * c-valprint.c (c_val_print): Factor out pointer printing code
1325 (print_unpacked_pointer): ... this new function.
1327 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
1329 * c-valprint.c (c_val_print): Remove an assignment to i and move
1332 2015-07-09 Yao Qi <yao.qi@linaro.org>
1334 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
1335 argument ptid. Update comments. Caller update.
1337 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1339 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
1342 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
1344 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
1346 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1348 * progspace.c (delete_program_space): Add missing spaces.
1350 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
1352 * inferior.c (delete_inferior_1): Rename to ...
1353 (delete_inferior): ..., remove 'silent' parameter, delete
1354 program space when unused and remove call to prune_program_spaces.
1355 Remove the old, unused, delete_inferior.
1356 (delete_inferior_silent): Remove.
1357 (prune_inferiors): Change call from delete_inferior_1 to
1358 delete_inferior and remove 'silent' parameter. Remove call to
1359 prune_program_spaces.
1360 (remove_inferior_command): Idem.
1361 * inferior.h (delete_inferior_1): Rename to...
1362 (delete_inferior): ..., remove 'silent' parameter and remove the
1363 original delete_inferior.
1364 (delete_inferior_silent): Remove.
1365 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
1366 delete_inferior_1 to delete_inferior and remove 'silent'
1368 * progspace.c (prune_program_spaces): Remove.
1369 (pspace_empty_p): Rename to...
1370 (program_space_empty_p): ... and make non-static.
1371 (delete_program_space): New.
1372 * progspace.h (prune_program_spaces): Remove declaration.
1373 (program_space_empty_p): New declaration.
1374 (delete_program_space): New declaration.
1375 * monitor.c (monitor_close): Replace call to
1376 delete_thread_silent and delete_inferior_silent with
1377 discard_all_inferiors.
1379 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
1381 * defs.h (deprecated_register_changed_hook): Remove prototype.
1382 * interps.c (clear_iterpreter_hooks): Remove reference to
1383 deprecated_register_changed_hook.
1384 * top.c (deprecated_register_changed_hook): Remove prototype.
1385 * valops.c (value_assign): Remove reference to
1386 deprecated_register_changed_hook.
1387 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
1388 Add comment documenting the function.
1389 (tui_register_changed_observer): Define.
1390 (tui_install_hooks): Remove reference to
1391 deprecated_register_changed_hook. Set
1392 tui_register_changed_observer.
1393 (tui_remove_hooks): Remove reference to
1394 deprecated_register_changed_hook. Unset
1395 tui_register_changed_observer.
1397 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1400 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
1402 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
1405 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
1407 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1409 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
1411 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
1413 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
1414 Use safe_strerror() instead of strerror().
1416 2015-07-07 Yao Qi <yao.qi@linaro.org>
1418 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
1419 * features/arm-with-m-fpa-layout.c: Regenerated.
1420 * features/arm-with-m-vfp-d16.xml: Likewise.
1421 * features/arm-with-m-vfp-d16.c: Regenerated.
1422 * features/arm-with-m.xml: Likewise.
1423 * features/arm-with-m.c: Regenerated.
1424 * features/arm-with-neon.xml: Likewise.
1425 * features/arm-with-neon.c: Regenerated.
1426 * features/arm-with-vfpv2.xml: Likewise.
1427 * features/arm-with-vfpv2.c: Regenerated.
1428 * features/arm-with-vfpv3.xml: Likewise.
1429 * features/arm-with-vfpv3.c: Regenerated.
1431 2015-07-07 Yao Qi <yao.qi@linaro.org>
1433 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
1435 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
1437 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
1438 if target is 32-bit.
1439 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
1440 if target is 32-bit.
1441 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
1442 if target is 32-bit.
1443 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
1444 if target is 32-bit.
1445 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
1446 (aarch64_linux_read_description): Return the right target
1448 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
1449 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1450 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
1453 2015-07-07 Yao Qi <yao.qi@linaro.org>
1455 * aarch32-linux-nat.c: New file.
1456 * aarch32-linux-nat.h: New file.
1457 * arm-linux-nat.c: Include aarch32-linux-nat.h.
1458 (fetch_regs): Move code to aarch32-linux-nat.c. Call
1459 aarch32_gp_regcache_supply.
1460 (store_regs): Move code to aarch32-linux-nat.c. Call
1461 aarch32_gp_regcache_collect.
1462 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
1463 aarch32_vfp_regcache_supply.
1464 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
1465 aarch32_vfp_regcache_collect.
1466 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1468 2015-07-07 Yao Qi <yao.qi@linaro.org>
1470 * arm-linux-nat.c (store_fpregister): Remove.
1471 (store_register): Likewise.
1472 (fetch_fpregister): Likewise.
1473 (fetch_register): Likewise.
1474 (arm_linux_store_inferior_registers): Call store_regs and
1475 store_fpregs instead.
1476 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
1479 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1481 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
1484 2015-07-06 Joel Brobecker <brobecker@adacore.com>
1486 * NEWS: Create a new section for the next release branch.
1487 Rename the section of the current branch, now that it has
1490 2015-07-06 Joel Brobecker <brobecker@adacore.com>
1492 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
1493 * version.in: Bump version to 7.10.50.DATE-cvs.
1495 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
1497 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
1498 breakpoints in a special way.
1499 (remove_breakpoint): Likewise.
1500 (mark_breakpoints_out): Likewise.
1502 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1504 * doc/gdb.texinfo (TUI): Add comma after @xref.
1506 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1508 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
1509 instead of casting the structure type.
1511 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1513 * valops.c (search_struct_field): Remove OFFSET parameter.
1514 (value_cast_structs): Adjust calls to search_struct_field.
1515 (value_struct_elt): Same.
1516 (find_overload_match): Same.
1518 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
1520 * value.c (value_fetch_lazy): Update comment, change return
1522 * value.h (value_fetch_lazy): Change return value to void.
1524 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1526 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
1527 (tui_win_name): Make parameter and result const.
1528 * tui/tui-data.h (tui_win_name): Make parameter and result const.
1530 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
1532 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
1533 use printf_unfiltered.
1534 (set_mpx_cmd): Add missing trailing space to command string
1536 (_initialize_i386_tdep): Give the "mpx" prefix command its
1539 2015-07-02 Kevin Buettner <kevinb@redhat.com>
1541 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
1542 (enum rx_frame_type): New.
1543 (struct rx_prologue): Add new field `frame_type'.
1544 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
1545 parameter in the prologue struct. Add code for recording
1546 locations of PC and PSW for fast interrupt and exception frames.
1547 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
1548 (rx_analyze_frame_prologue): Add `frame_type' parameter.
1549 (rx_frame_type): New function.
1550 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
1551 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
1553 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
1554 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1555 RX_FRAME_TYPE_FAST_INTERRUPT.
1556 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
1557 (rx_frame_sniffer, rx_exception_sniffer): New functions.
1558 (rx_frame_unwind): Use rx_frame_sniffer instead of
1559 default_frame_sniffer.
1560 (rx_frame_unwind): New unwinder.
1561 (rx_gdbarch_init): Register new unwinder.
1563 2015-07-02 Kevin Buettner <kevinb@redhat.com>
1565 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
1566 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
1567 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
1569 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
1571 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1573 Fix GCC false warning.
1574 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
1576 2015-07-02 Yao Qi <yao.qi@linaro.org>
1578 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
1579 typo in the debugging message.
1581 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1583 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
1584 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
1585 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
1586 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
1587 (btrace_maint_clear): New.
1588 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
1589 (pt_print_packet, btrace_maint_decode_pt)
1590 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
1591 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
1592 (maint_btrace_packet_history_cmd)
1593 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1594 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
1595 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
1596 (maint_info_btrace_cmd, _initialize_btrace): New.
1597 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
1598 (btrace_maint_packet_history, btrace_maint_info): New.
1599 (btrace_thread_info) <maint>: New.
1600 * NEWS: Announce it.
1602 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1604 * btrace.c (btrace_fetch): Append the new trace data.
1605 (btrace_clear): Clear the stored trace data.
1606 * btrace.h (btrace_thread_info) <data>: New.
1607 * common/btrace-common.h (btrace_data_clear)
1608 (btrace_data_append): New.
1609 * common/btrace-common.c (btrace_data_clear)
1610 (btrace_data_append): New.
1612 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1614 * nat/linux-btrace.c (linux_enable_bts): Check for
1615 PERF_ATTR_SIZE_VER5.
1616 Check for data_offset and data_size fields. Use them.
1618 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1620 * NEWS: Announce new commands "record btrace pt" and "record pt".
1621 Announce new options "set|show record btrace pt buffer-size".
1622 * btrace.c: Include "rsp-low.h".
1623 Include "inttypes.h".
1624 (btrace_add_pc): Add forward declaration.
1625 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
1626 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
1627 (btrace_compute_ftrace_pt): New.
1628 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
1629 (check_xml_btrace_version): Update version check.
1630 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
1631 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
1632 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
1633 (btrace_pt_children): New.
1634 (btrace_children): Add support for "pt".
1635 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
1636 (btrace_conf_children): Add support for "pt".
1637 * btrace.h: Include "intel-pt.h".
1638 (btrace_pt_error): New.
1639 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
1640 (btrace_data_empty): Support BTRACE_FORMAT_PT.
1641 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
1642 (struct btrace_config_pt): New.
1643 (struct btrace_config)<pt>: New.
1644 (struct btrace_data_pt_config, struct btrace_data_pt): New.
1645 (struct btrace_data)<pt>: New.
1646 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
1648 * features/btrace.dtd (btrace)<pt>: New.
1649 (pt, pt-config, cpu): New.
1650 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
1651 (perf_event_pt_event_type, kernel_supports_pt)
1652 (linux_supports_pt): New.
1653 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
1654 (linux_enable_bts): Free tinfo on error.
1655 (linux_enable_pt): New.
1656 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
1657 (linux_disable_pt): New.
1658 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
1659 (linux_fill_btrace_pt_config, linux_read_pt): New.
1660 (linux_read_btrace): Support BTRACE_FORMAT_PT.
1661 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
1662 (struct btrace_target_info)<pt>: New.
1663 * record-btrace.c (set_record_btrace_pt_cmdlist)
1664 (show_record_btrace_pt_cmdlist): New.
1665 (record_btrace_print_pt_conf): New.
1666 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
1667 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
1668 (cmd_record_btrace_pt_start): New.
1669 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
1670 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
1671 (_initialize_record_btrace): Add new commands.
1672 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
1673 (remote_protocol_features): Add "Qbtrace:pt".
1674 Add "Qbtrace-conf:pt:size".
1675 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
1676 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
1677 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
1678 (_initialize_remote): Add new commands.
1680 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1682 * configure.ac: check for libipt
1683 * configure: Regenerate.
1684 * config.in: Regenerate.
1685 * Makefile.in (LIBIPT): New.
1686 (CLIBS): Add $LIBIPT.
1687 * NEWS: document new configure options
1689 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1691 * compile/compile-object-load.c (compile_object_load): Replace debug
1692 message "lookup undefined ELF symbol" by 3 more specific messages.
1694 2015-07-01 Kevin Buettner <kevinb@redhat.com>
1696 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
1697 (rl78_register_type): Add case for RL78_PSW_REGNUM.
1698 (rl78_gdbarch_init): Initialize rl78_psw_type.
1700 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
1702 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1703 Update commentary. Always refresh the registers when frame
1704 information has changed.
1705 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
1706 Change return type to int. Return 1 if frame information has
1707 changed, 0 otherwise.
1708 (tui_before_prompt): Update commentary.
1709 * tui/tui-stack.h (tui_show_frame_info): Change return type to
1712 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1715 * frame.c (select_frame): Remove reference to
1716 deprecated_selected_frame_level_changed_hook.
1717 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
1719 * stack.c (deprecated_selected_frame_level_changed_hook):
1721 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
1723 (tui_refresh_frame_and_register_information): ... this. Bail
1724 out if there is no stack. Don't update register information
1725 unless registers_too_p is true.
1726 (tui_print_frame_info_listing_hook): Rename to ...
1727 (tui_dummy_print_frame_info_listing_hook): ... this.
1728 (tui_before_prompt): New function.
1729 (tui_normal_stop): New function.
1730 (tui_before_prompt_observer): New observer.
1731 (tui_normal_stop_observer): New observer.
1732 (tui_install_hooks): Set
1733 deprecated_print_frame_info_listing_hook to
1734 tui_dummy_print_frame_info_listing_hook. Register
1735 tui_before_prompt_observer to call tui_before_prompt and
1736 tui_normal_stop_observer to call tui_normal_stop. Remove
1737 reference to deprecated_selected_frame_level_changed_hook.
1738 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
1739 and tui_normal_stop_observer. Remove reference to
1740 deprecated_selected_frame_level_changed_hook.
1742 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1745 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
1746 return an int instead of void. Return whether the locator
1748 (tui_show_frame_info): If the locator info has not changed, then
1749 bail out early to avoid refreshing the windows.
1751 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1753 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
1754 LOCATOR_WIN to tui_alloc_content.
1756 2015-06-30 Yao Qi <yao.qi@linaro.org>
1759 * arm-tdep.c (arm_get_next_pc_raw): Break for media
1762 2015-06-29 Kevin Buettner <kevinb@redhat.com>
1764 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
1765 (rx_dwarf_reg_to_regnum): New function.
1766 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
1769 2015-06-29 Pedro Alves <palves@redhat.com>
1772 * infcall.c (run_inferior_call): On infcall success, if the thread
1773 was marked stopped before, reset it back to stopped.
1774 * infrun.c (resume): Don't suppress the set_running calls when
1776 (normal_stop): Only discard the finish_thread_state cleanup if the
1779 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1781 * MAINTAINERS (Write After Approval): Update my email address.
1783 2015-06-26 Keith Seitz <keiths@redhat.com>
1784 Doug Evans <dje@google.com>
1787 * block.c (block_lookup_symbol): For non-function blocks,
1788 continue to search for a symbol with an exact domain match
1789 Otherwise, return any previously found "best domain" symbol.
1790 (block_lookup_symbol_primary): Likewise.
1792 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1794 * NEWS: Mention the new option "history remove-duplicates".
1795 * top.c (history_remove_duplicates): New static variable.
1796 (show_history_remove_duplicates): New static function.
1797 (gdb_add_history): Conditionally remove duplicate history
1799 (init_main): Add "history remove-duplicates" option.
1801 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1803 * tui/tui-win.c (focus_completer): New static function.
1804 (_initialize_tui_win): Set the completion function of the
1805 "focus" command to focus_completer.
1807 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1809 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
1811 * symtab.c (find_function_start_sal): Likewise.
1813 2015-06-25 Gary Benson <gbenson@redhat.com>
1815 * solib.c (solib_find_1): Set local variable sysroot to NULL if
1816 it is the empty string after trailing slashes have been stripped.
1818 2015-06-25 Gary Benson <gbenson@redhat.com>
1820 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
1821 * infrun.c (follow_exec): Likewise.
1822 * remote.c (remote_filesystem_is_local): Likewise.
1823 * solib.c (solib_find_1): Likewise.
1825 2015-06-24 Keith Seitz <keiths@redhat.com>
1827 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
1828 return value from lrealpath.
1830 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1832 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
1834 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1836 * remote-sim.c: Include gdb_bfd.h.
1837 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
1838 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
1840 2015-06-24 Yao Qi <yao.qi@linaro.org>
1842 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
1843 set_gdbarch_get_siginfo_type.
1844 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
1845 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1846 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1847 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1848 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1849 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1850 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
1851 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
1852 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
1853 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
1855 2015-06-24 Gary Benson <gbenson@redhat.com>
1857 * common/buffer.c (stdint.h): Do not include.
1858 * common/print-utils.c (stdint.h): Likewise.
1859 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
1860 * compile/compile-c-types.c (gdb_assert.h): Likewise.
1861 * ft32-tdep.c (gdb_assert.h): Likewise.
1862 * guile/scm-utils.c (stdint.h): Likewise.
1863 * i386-linux-tdep.c (stdint.h): Likewise.
1864 * i386-tdep.c (stdint.h): Likewise.
1865 * nat/linux-btrace.c (stdint.h): Likewise.
1866 * nat/linux-btrace.h (stdint.h): Likewise.
1867 * nat/linux-ptrace.c (stdint.h): Likewise.
1868 * nat/mips-linux-watch.h (stdint.h): Likewise.
1869 * ppc-linux-nat.c (stdint.h): Likewise.
1870 * python/python-internal.h (stdint.h): Likewise.
1871 * stub-termcap.c (stdlib.h): Likewise.
1872 * target/target.h (stdint.h): Likewise.
1873 * xtensa-linux-nat.c (stdint.h): Likewise.
1875 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
1877 * top.c (init_history): Look at errno after calling strtol to
1878 properly map large GDBHISTSIZE values to infinity.
1880 2015-06-23 Doug Evans <dje@google.com>
1882 * inferior.h (struct inferior_suspend_state): Delete, unused.
1883 All references deleted.
1885 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1887 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
1888 (microblaze_push_dummy_call): Likewise.
1889 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
1890 and set_gdbarch_push_dummy_call.
1892 2015-06-23 Yao Qi <yao.qi@linaro.org>
1894 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1895 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
1896 (amd64_linux_store_inferior_registers): Likewise.
1897 * arm-linux-nat.c (fetch_fpregister): Likewise.
1898 (fetch_fpregs, store_fpregister): Likewise.
1899 (store_fpregister, store_fpregs): Likewise.
1900 (fetch_register, fetch_regs): Likewise.
1901 (store_register, store_regs): Likewise.
1902 (fetch_vfp_regs, store_vfp_regs): Likewise.
1903 (arm_linux_read_description): Check have_ptrace_getregset is
1904 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
1906 * i386-linux-nat.c (fetch_xstateregs): Check
1907 have_ptrace_getregset is not TRIBOOL_TRUE.
1908 (store_xstateregs): Likewise.
1909 * linux-nat.c (have_ptrace_getregset): Change its type to
1911 * linux-nat.h (tribool): New enum.
1912 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
1913 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
1915 2015-06-19 Doug Evans <dje@google.com>
1917 * NEWS: Mention Sun's version of stabs is no longer supported.
1918 * elfread.c (free_elfinfo): Delete. All uses updated.
1919 (elfstab_offset_sections): Delete. All uses updated.
1920 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
1921 * psympriv.h (partial_symtab) <section_offsets>: Delete.
1923 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
1924 All callers updated.
1926 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
1928 * common/rsp-low.c (needs_escaping): New.
1929 (remote_escape_output): Add unit_size parameter. Refactor to
1930 support multi-byte addressable units. Rename parameters.
1931 * common/rsp-low.h (remote_escape_output): Add unit_size
1932 parameter and rename others. Update doc.
1933 * remote.c (align_for_efficient_write): New.
1934 (remote_write_bytes_aux): Add unit_size parameter and use it.
1935 Rename some variables. Update doc.
1936 (remote_xfer_partial): Get unit size and use it.
1937 (remote_read_bytes_1): Add unit_size parameter and use it.
1938 Rename some variables. Update doc.
1939 (remote_write_bytes): Same.
1940 (remote_xfer_live_readonly_partial): Same.
1941 (remote_read_bytes): Same.
1942 (remote_flash_write): Update call to remote_write_bytes_aux.
1943 (remote_write_qxfer): Update call to remote_escape_output.
1944 (remote_search_memory): Same.
1945 (remote_hostio_pwrite): Same.
1947 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
1949 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
1950 locations as inserted.
1951 Update and expand comment about permanent locations.
1952 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
1953 Move comment to add_location_to_breakpoint.
1954 (update_global_location_list): Don't error out if a permanent
1955 breakpoint is not marked inserted.
1956 Don't error out if a non-permanent breakpoint location is inserted on
1957 top of a permanent breakpoint.
1959 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
1961 * breakpoint.c (make_breakpoint_permanent): Remove unused
1963 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
1965 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1968 * NEWS: Mention new GDBHISTSIZE behavior.
1969 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
1970 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
1972 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1974 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
1975 * top.c (init_history): Read from GDBHISTSIZE instead of
1977 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
1979 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1981 * top.c (gdb_safe_append_history): Do not call
1982 history_truncate_file if the history is not stifled.
1984 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
1986 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
1987 * syscalls/s390x-linux.xml: Likewise.
1989 2015-06-16 Michael Eager <eager@eagercon.com>
1991 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
1993 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
1995 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
1996 target_terminal_ours_for_output() before calling
1997 tui_show_frame_info(), and restore the original terminal
1998 settings afterwards.
2000 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
2002 * arm-linux-nat.c: Include nat/linux-ptrace.h.
2004 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
2006 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
2008 (mi_cmd_data_write_memory_bytes): Same.
2010 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
2012 * corefile.c (write_memory): Update doc.
2013 * gdbcore.h (write_memory): Same.
2015 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
2018 (dump_mapping_p): Use it for parameter filterflags.
2019 (linux_find_memory_regions_full): Use it for variable filterflags.
2021 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
2022 Jan Kratochvil <jan.kratochvil@redhat.com>
2024 Merge multiple hex conversions.
2025 * monitor.c: Include rsp-low.h.
2026 (fromhex): Remove definition.
2028 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
2029 Jan Kratochvil <jan.kratochvil@redhat.com>
2031 Move utility functions to common/.
2032 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
2033 Move defs to common/common-utils.c.
2034 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
2035 (skip_to_space_const): Move decls to common/common-utils.h.
2036 * common/common-defs.h: Move include of common-types.h before
2038 * common/common-utils.c: Include host-defs.h and ctype.h.
2039 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
2041 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
2043 * common/common-utils.h (strtoulst): Move decl from utils.h.
2044 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
2045 Move from cli/cli-utils.h.
2046 * common/host-defs.h: Include limits.h.
2047 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
2048 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
2049 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
2050 common/common-utils.h.
2051 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
2052 (strtoulst): Move to common/common-utils.c.
2053 * utils.h (strtoulst): Moved decl to common/common-utils.h.
2055 2015-06-15 Yao Qi <yao.qi@linaro.org>
2057 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
2059 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
2061 * build-id.c: Don't include elf-bfd.h.
2062 (build_id_bfd_get): Use bfd_build_id.
2063 (build_id_verify): Ditto.
2064 * build-id.h: Ditto.
2065 (find_separate_debug_file_by_buildid): Ditto.
2066 * python/py-objfile.c: Don't include elf-bfd.h.
2067 (objfpy_get_build_id) Use bfd_build_id.
2068 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
2069 * coffread.c: Include build-id.h.
2070 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
2072 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2074 * windows-nat.c (do_windows_fetch_inferior_registers)
2075 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
2076 conditional with __CYGWIN__.
2078 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
2080 * completer.c: Add arch-utils.h include.
2081 (enum reg_completer_targets): New enum.
2082 (reg_or_group_completer_1): New function containing old
2083 reg_or_group_completer, add and use new parameter to control what
2084 is completed on. Use get_current_arch rather than architecture of
2085 currently selected frame.
2086 (reg_or_group_completer): Call new reg_or_group_completer_1.
2087 (reggroup_completer): Call new reg_or_group_completer_1.
2088 * completer.h (reggroup_completer): Add declaration.
2089 * tui/tui-regs.c: Add 'completer.h' include.
2090 (tui_reg_next_command): Renamed to...
2091 (tui_reg_next): ...this. Adjust parameters and return rather than
2093 (tui_reg_prev_command): Renamed to...
2094 (tui_reg_prev): ...this. Adjust parameters and return rather than
2096 (tui_reg_float_command): Delete.
2097 (tui_reg_general_command): Delete.
2098 (tui_reg_system_command): Delete.
2099 (tui_reg_command): Rewrite to perform switching of register group.
2101 (tuireglist): Remove.
2102 (tui_reggroup_completer): New function.
2103 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
2104 creation of 'tui reg' command.
2105 * NEWS: Add comment about 'tui reg' changes.
2107 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2109 * target.c (target_read): Consider addressable unit size when
2110 reading from a memory object.
2111 (read_memory_robust): Same.
2112 (read_whatever_is_readable): Same.
2113 (target_write_with_progress): Consider addressable unit size
2114 when writing to a memory object.
2115 * target.h (target_read): Update documentation.
2116 (target_write): Add documentation.
2118 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2120 * arch-utils.h (default_addressable_memory_unit_size): New.
2121 * arch-utils.c (default_addressable_memory_unit_size): New.
2122 * gdbarch.sh (addressable_memory_unit_size): New.
2123 * gdbarch.h: Re-generate.
2124 * gdbarch.c: Re-generate.
2126 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
2128 * target.c (target_read): Rename variables and use
2130 (target_read_with_progress): Same.
2131 (read_memory_robust): Constify parameters and rename
2133 (read_whatever_is_readable): Constify parameters,
2134 rename variables, adjust formatting.
2135 * target.h (read_memory_robust): Constify parameters.
2137 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2139 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
2140 synthetic (non-AltiVec) vector types.
2141 (ppc64_sysv_abi_return_value): Likewise.
2143 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
2145 PR breakpoints/16465
2146 * breakpoint.c (create_breakpoint): Save extra_string for
2147 pending breakpoints.
2149 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2151 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
2152 and bt_mask to CORE_ADDR.
2154 2015-06-11 Gary Benson <gbenson@redhat.com>
2156 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
2157 (mnsh_recv_message): Likewise.
2159 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
2161 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
2162 long long int and plongest instead of %ll.
2164 2015-06-11 Gary Benson <gbenson@redhat.com>
2166 * nat/linux-namespaces.c (gdb_wait.h): New include.
2167 (sys/wait.h): Do not include.
2169 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
2171 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
2172 end_sequence is true.
2174 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2177 * solib-target.c (library_list_start_list): Use explicit NULL
2180 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2182 * solib-target.c (library_list_start_list): Do not dereference
2183 variable version in its initialization. Make the VERSION check handle
2185 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
2187 2015-06-10 Gary Benson <gbenson@redhat.com>
2189 * NEWS: Announce support for direct access of executable and
2190 shared library files when attaching to inferiors in containers
2191 on GNU/Linux systems.
2193 2015-06-10 Gary Benson <gbenson@redhat.com>
2195 * remote.c (struct remote_state) <fs_pid>: New field.
2196 (new_remote_state): Initialize the above.
2197 (PACKET_vFile_setfs): New enum value.
2198 (remote_hostio_set_filesystem): New function.
2199 (remote_hostio_open): Call the above.
2200 (remote_hostio_unlink): Likewise.
2201 (remote_hostio_readlink): Likewise.
2202 (_initialize_remote): Register new "set/show remote
2203 hostio-setfs-packet" command.
2204 * NEWS: Announce new vFile:setfs packet.
2206 2015-06-10 Gary Benson <gbenson@redhat.com>
2208 * linux-nat.c (nat/linux-namespaces.h): New include.
2209 (fileio.h): Likewise.
2210 (linux_nat_filesystem_is_local): New function.
2211 (linux_nat_fileio_pid_of): Likewise.
2212 (linux_nat_fileio_open): Likewise.
2213 (linux_nat_fileio_readlink): Likewise.
2214 (linux_nat_fileio_unlink): Likewise.
2215 (linux_nat_add_target): Initialize to_filesystem_is_local,
2216 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
2217 (_initialize_linux_nat): New "set/show debug linux-namespaces"
2219 * NEWS: Mention new "set/show debug linux-namespaces" commands.
2221 2015-06-10 Gary Benson <gbenson@redhat.com>
2223 * target.h (struct inferior): New forward declaration.
2224 (struct target_ops) <to_filesystem_is_local>: Update comment.
2225 (struct target_ops) <to_fileio_open>: New argument inf.
2226 Update comment. All implementations updated.
2227 (struct target_ops) <to_fileio_unlink>: Likewise.
2228 (struct target_ops) <to_fileio_readlink>: Likewise.
2229 (target_filesystem_is_local): Update comment.
2230 (target_fileio_open): New argument inf. Update comment.
2231 (target_fileio_unlink): Likewise.
2232 (target_fileio_readlink): Likewise.
2233 (target_fileio_read_alloc): Likewise.
2234 (target_fileio_read_stralloc): Likewise.
2235 * target.c (target_fileio_open): New argument inf.
2236 Pass inf to implementation. Update debug printing.
2237 (target_fileio_unlink): Likewise.
2238 (target_fileio_readlink): Likewise.
2239 (target_fileio_read_alloc_1): New argument inf. Pass inf
2240 to target_fileio_open.
2241 (target_fileio_read_alloc): New argument inf. Pass inf to
2242 target_fileio_read_alloc_1.
2243 (target_fileio_read_stralloc): Likewise.
2244 * gdb_bfd.c (inferior.h): New include.
2245 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
2246 argument with new argument "inferior". Pass inferior to
2248 (gdb_bfd_open): Supply inferior argument to
2249 gdb_bfd_iovec_fileio_open.
2250 * linux-tdep.c (linux_info_proc): Supply inf argument to
2251 relevant target_fileio calls.
2252 (linux_find_memory_regions_full): Likewise.
2253 (linux_fill_prpsinfo): Likewise.
2254 * remote.c (remote_filesystem_is_local): Supply inf
2255 argument to remote_hostio_open.
2256 (remote_file_put): Likewise.
2257 (remote_file_get): Likewise.
2258 (remote_file_delete): Supply inf argument to
2259 remote_hostio_unlink.
2261 2015-06-10 Gary Benson <gbenson@redhat.com>
2263 * inf-child.c (inf_child_fileio_open): Replace comment.
2264 (inf_child_fileio_pwrite): Likewise.
2265 (inf_child_fileio_pread): Likewise.
2266 (inf_child_fileio_fstat): Insert blank line before comment.
2267 (inf_child_fileio_close): Replace comment.
2268 (inf_child_fileio_unlink): Likewise.
2269 (inf_child_fileio_readlink): Likewise.
2270 * remote.c (remote_hostio_open): Likewise.
2271 (remote_hostio_pread): Likewise.
2272 (remote_hostio_pwrite): Likewise.
2273 (remote_hostio_close): Likewise.
2274 (remote_hostio_unlink): Likewise.
2275 (remote_hostio_readlink): Likewise.
2276 (remote_hostio_fstat): Likewise.
2277 (remote_filesystem_is_local): Likewise.
2278 * target.c (target_fileio_open): Likewise.
2279 (target_fileio_pwrite): Likewise.
2280 (target_fileio_pread): Likewise.
2281 (target_fileio_fstat): Insert blank line before comment.
2282 (target_fileio_close): Replace comment.
2283 (target_fileio_unlink): Likewise.
2284 (target_fileio_readlink): Likewise.
2285 (target_fileio_read_alloc): Likewise.
2286 (target_fileio_read_stralloc): Likewise.
2288 2015-06-10 Gary Benson <gbenson@redhat.com>
2290 * linux-thread-db.c (nat/linux-namespaces.h): New include.
2291 (check_pid_namespace_match): Use linux_ns_same rather than
2292 linux_proc_pid_get_ns to spot PID namespace mismatches.
2293 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
2294 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
2296 2015-06-10 Gary Benson <gbenson@redhat.com>
2298 * configure.ac (AC_CHECK_FUNCS): Add setns.
2299 * config.in: Regenerate.
2300 * configure: Likewise.
2301 * nat/linux-namespaces.h: New file.
2302 * nat/linux-namespaces.c: Likewise.
2303 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
2304 (linux-namespaces.o): New rule.
2305 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
2306 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2307 * config/arm/linux.mh (NATDEPFILES): Likewise.
2308 * config/i386/linux.mh (NATDEPFILES): Likewise.
2309 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2310 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2311 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2312 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2313 * config/mips/linux.mh (NATDEPFILES): Likewise.
2314 * config/pa/linux.mh (NATDEPFILES): Likewise.
2315 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2316 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2317 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2318 * config/s390/linux.mh (NATDEPFILES): Likewise.
2319 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2320 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2321 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2322 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2324 2015-06-10 Gary Benson <gbenson@redhat.com>
2326 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
2327 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
2328 (make_cleanup_close): Likewise.
2329 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
2330 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
2331 (make_cleanup_close): Likewise.
2333 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2335 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
2336 from SuspendThread().
2338 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
2340 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
2341 from OutputDebugString.
2343 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
2344 Mircea Gherzan <mircea.gherzan@intel.com>
2346 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
2347 MPX_BT_MASK_32): New macros.
2348 (i386_mpx_set_bounds): New function that implements
2349 the command "set-mpx-bound".
2350 (i386_mpx_enabled): Helper function to test MPX availability.
2351 (i386_mpx_bd_base): Helper function to calculate the base directory
2353 (i386_mpx_get_bt_entry): Helper function to access a bound
2355 (i386_mpx_print_bounds): Effectively display bound information.
2356 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
2358 (_initialize_i386_tdep):
2359 Add "bound" to the commands "show mpx" and "set mpx" commands.
2360 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
2361 and "show mpx" commands.
2362 * NEWS: List new commands for MPX support.
2364 2015-06-09 Gary Benson <gbenson@redhat.com>
2366 * common/fileio.h (fileio_to_host_mode): New declaration.
2367 * common/fileio.c (fileio_to_host_mode): New Function.
2368 * inf-child.c (inf_child_fileio_open): Process mode argument
2369 with fileio_to_host_mode.
2371 2015-06-09 Gary Benson <gbenson@redhat.com>
2373 * common/fileio.c (fileio_mode_pack): Fix preprocessor
2376 2015-06-05 Gary Benson <gbenson@redhat.com>
2378 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
2379 * remote.c (remote_filesystem_is_local): ...here.
2381 2015-06-04 Yao Qi <yao.qi@linaro.org>
2383 * gdbarch.c: Regenerate it.
2385 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 * arch-utils.c (default_infcall_munmap): New.
2388 * arch-utils.h (default_infcall_munmap): New declaration.
2389 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
2390 (munmap_list_free, munmap_listp_free_cleanup): New.
2391 (struct setup_sections_data): Add field munmap_list_headp.
2392 (setup_sections): Call munmap_list_add.
2393 (compile_object_load): New variable munmap_list_head, initialize
2394 setup_sections_data.munmap_list_headp, return munmap_list_head.
2395 * compile/compile-object-load.h (struct munmap_list): New declaration.
2396 (struct compile_module): Add field munmap_list_head.
2397 (munmap_list_free): New declaration.
2398 * compile/compile-object-run.c (struct do_module_cleanup): Add field
2400 (do_module_cleanup): Call munmap_list_free.
2401 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
2402 * gdbarch.c: Regenerate.
2403 * gdbarch.h: Regenerate.
2404 * gdbarch.sh (infcall_munmap): New.
2405 * linux-tdep.c (linux_infcall_munmap): New.
2406 (linux_init_abi): Install it.
2408 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
2411 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
2413 2015-06-02 Yao Qi <yao.qi@linaro.org>
2415 * i386-linux-nat.c: Include linux-nat.h.
2417 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
2418 Jan Kratochvil <jan.kratochvil@redhat.com>
2421 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
2423 * dwarf2loc.c (chain_candidate): Likewise.
2425 2015-06-01 Yao Qi <yao.qi@linaro.org>
2427 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
2428 (store_vfp_regs): Use PTRACE_SETREGSET.
2430 2015-06-01 Yao Qi <yao.qi@linaro.org>
2432 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
2433 (fetch_fpregs): Likewise.
2434 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
2435 (store_fpregs): Likewise.
2437 2015-06-01 Yao Qi <yao.qi@linaro.org>
2439 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
2440 (fetch_regs): Likewise.
2441 (store_regs): Use PTRACE_SETREGSET.
2442 (store_register): Likewise.
2444 2015-06-01 Yao Qi <yao.qi@linaro.org>
2446 * arm-linux-nat.c (arm_linux_read_description): Check whether
2447 kernel supports PTRACE_GETREGSET.
2449 2015-06-01 Yao Qi <yao.qi@linaro.org>
2451 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
2452 * linux-nat.c: ... here.
2453 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
2455 * linux-nat.h: ... here.
2457 2015-06-01 Yao Qi <yao.qi@linaro.org>
2459 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
2460 * i386-linux-nat.c: Likewise.
2461 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
2462 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
2463 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2464 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
2465 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2467 2015-05-30 Eli Zaretskii <eliz@gnu.org>
2469 * go32-nat.c (go32_xfer_memory): Fix the return value to be
2470 compatible to what read_child and write_child return. This
2471 unbreaks that DJGPP build of GDB which was broken since v7.7.
2473 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
2475 * MAINTAINERS (Write After Approval): Add Martin Galvan.
2477 2015-05-29 Roland McGrath <mcgrathr@google.com>
2480 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
2481 rather than internal_error for an unrecognized value.
2483 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
2485 * xtensa-tdep.c (xtensa_pseudo_register_read)
2486 (xtensa_pseudo_register_write): Don't alias last pseudo register
2489 2015-05-28 Don Breazeal <donb@codesourcery.com>
2491 * infrun.c (follow_fork_inferior): Ensure the use of
2492 process-style ptids (pid,0,0) in verbose/debug "Detaching"
2495 2015-05-28 Doug Evans <dje@google.com>
2497 * dwarf2read.c (record_line_ftype): Remove, duplicate.
2499 2015-05-28 Yao Qi <yao.qi@linaro.org>
2501 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
2502 (arm_linux_fetch_inferior_registers): Use
2503 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
2504 (arm_linux_store_inferior_registers): Likewise.
2505 (arm_linux_read_description): Don't set
2506 arm_linux_has_wmmx_registers.
2507 * arm-tdep.c (arm_gdbarch_init): Set
2508 tdep->have_wmmx_registers according target descriptions.
2509 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
2512 2015-05-28 Yao Qi <yao.qi@linaro.org>
2514 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
2515 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
2516 instead of arm_linux_vfp_register_count.
2517 (store_vfp_regs): Likewise.
2518 (arm_linux_fetch_inferior_registers): Likewise.
2519 (arm_linux_store_inferior_registers): Likewise.
2520 (arm_linux_read_description): Don't set
2521 arm_linux_vfp_register_count.
2522 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
2524 * arm-tdep.c (arm_gdbarch_init): Add assert on
2526 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
2527 field to vfp_register_count. All users updated.
2529 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
2531 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
2532 ELFOSABI_GNU binaries.
2534 2015-05-27 Doug Evans <dje@google.com>
2536 * dwarf2read.c (lnp_state_machine): New typedef.
2537 (lnp_reader_state): New typedef.
2538 (dwarf_record_line_1): Renamed from dwarf_record_line.
2539 All callers updated.
2540 (dwarf_record_line): New function.
2541 (init_lnp_state_machine): New function.
2542 (check_line_address): Replace p_record_line parameter with state.
2543 All callers updated.
2544 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
2545 Update to record state in lnp_state_machine.
2547 2015-05-27 Doug Evans <dje@google.com>
2549 * dwarf2read.c (record_line_ftype): New typedef.
2550 (check_line_address): New function.
2551 (dwarf_decode_lines_1): Call it.
2553 2015-05-27 Doug Evans <dje@google.com>
2555 * NEWS: Mention "set debug dwarf-line".
2556 * dwarf2read.c (dwarf_line_debug): New static global.
2557 (add_include_dir): Add debug dwarf-line support.
2558 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
2559 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
2561 2015-05-27 Doug Evans <dje@google.com>
2563 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
2564 All callers updated.
2565 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
2566 * cp-support.h (cp_lookup_nested_symbol): Update.
2568 2015-05-27 Doug Evans <dje@google.com>
2571 * block.c (block_find_symbol): New function.
2572 (block_find_non_opaque_type): Ditto.
2573 (block_find_non_opaque_type_preferred): Ditto.
2574 * block.h (block_symbol_matcher_ftype): New typedef.
2575 (block_find_symbol): Declare.
2576 (block_find_non_opaque_type): Ditto.
2577 (block_find_non_opaque_type_preferred): Ditto.
2578 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
2579 * psymtab.c (psym_lookup_symbol): Ditto.
2580 * symtab.c (basic_lookup_transparent_type_1): New function.
2581 (basic_lookup_transparent_type): Call it.
2583 2015-05-27 Yao Qi <yao.qi@linaro.org>
2585 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
2586 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
2588 2015-05-27 Yao Qi <yao.qi@linaro.org>
2590 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
2592 (aarch64_record_load_store): Likewise.
2594 2015-05-26 Doug Evans <dje@google.com>
2596 PR c++/18141, c++/18417.
2597 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
2600 2015-05-26 Doug Evans <dje@google.com>
2602 * NEWS: Add entries for command renamings.
2603 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
2605 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
2606 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
2608 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
2609 All callers updated. Fix spelling of DWARF in help text.
2610 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
2612 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
2614 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
2615 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
2616 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
2618 (show_dwarf_always_disassemble): Renamed from
2619 show_dwarf2_always_disassemble. All callers updated.
2620 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
2621 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
2622 "set/show dwarf max-cache-age". Rename
2623 "set/show dwarf2 always-disassemble" to
2624 "set/show dwarf always-disassemble". Rename
2625 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
2626 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
2628 2015-05-26 Doug Evans <dje@google.com>
2631 * python/py-lazy-string.c (stpy_convert_to_value): Use
2632 gdbpy_gdb_memory_error not PyExc_MemoryError.
2633 (gdbpy_create_lazy_string_object): Ditto.
2635 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2637 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
2639 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2641 * tui/tui-regs.c (tui_reg_prev_command): New function.
2642 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
2643 * reggroups.c (reggroup_prev): New function.
2644 * reggroups.h (reggroup_prev): Add declaration. Update comment.
2646 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
2647 Yao Qi <yao.qi@linaro.org>
2649 * aarch64-linux-tdep.c: Include linux-record.h and
2651 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
2652 (aarch64_syscall): New enum.
2653 (aarch64_canonicalize_syscall): New function.
2654 (aarch64_all_but_pc_registers_record): New function.
2655 (aarch64_linux_syscall_record): New function.
2656 (aarch64_linux_init_abi): Install AArch64 process record
2657 handler. Update to handle syscall recording.
2658 * aarch64-tdep.c: Include record.h and record-full.h.
2659 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
2660 (struct aarch64_mem_r): Define.
2661 (aarch64_record_result): New enum.
2662 (struct insn_decode_record): Define.
2663 (insn_decode_record): New typedef.
2664 (aarch64_record_data_proc_reg): New function.
2665 (aarch64_record_data_proc_imm): New function.
2666 (aarch64_record_branch_except_sys): New function.
2667 (aarch64_record_load_store): New function.
2668 (aarch64_record_data_proc_simd_fp): New function.
2669 (aarch64_record_asimd_load_store): New function.
2670 (aarch64_record_decode_insn_handler): New function.
2671 (deallocate_reg_mem): New function.
2672 (aarch64_process_record): New function.
2673 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
2675 (aarch64_process_record): New extern declaration.
2676 * configure.tgt: Add linux-record.o to gdb_target_obs.
2677 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
2679 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
2681 * NEWS: Add a note on process record-replay support on aarch64*-linux*
2684 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
2686 * amd64-tdep.c: Replace in_function_epilogue_p with
2687 stack_frame_destroyed_p throughout.
2688 * arch-utils.c: Ditto.
2689 * arch-utils.h: Ditto.
2690 * arm-tdep.c: Ditto.
2691 * breakpoint.c: Ditto.
2692 * gdbarch.sh: Ditto.
2693 * hppa-tdep.c: Ditto.
2694 * i386-tdep.c: Ditto.
2695 * mips-tdep.c: Ditto.
2696 * nios2-tdep.c: Ditto.
2697 * rs6000-tdep.c: Ditto.
2698 * s390-linux-tdep.c: Ditto.
2699 * score-tdep.c: Ditto.
2701 * sparc-tdep.c: Ditto.
2702 * sparc-tdep.h: Ditto.
2703 * sparc64-tdep.c: Ditto.
2704 * spu-tdep.c: Ditto.
2705 * tic6x-tdep.c: Ditto.
2706 * tilegx-tdep.c: Ditto.
2707 * xstormy16-tdep.c: Ditto.
2708 * gdbarch.c, gdbarch.h: Re-generated.
2710 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2712 * NEWS: Mention 'tui enable' and 'tui disable'.
2713 * tui/tui.c (tui_enable_command): New function.
2714 (tui_disable_command): New function.
2715 (_initialize_tui): New function.
2717 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2719 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
2721 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2723 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
2726 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2728 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
2730 (tui_set_layout_for_display_command): ...here, before calling
2731 tui_set_layout. Only set the layout if gdb has not already
2732 entered the TUI_FAILURE state.
2734 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2736 * tui/tui-layout.c (layout_completer): New function.
2737 (_initialize_tui_layout): Set completer on layout command.
2739 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2741 * tui/tui-layout.c (tui_set_layout): Remove
2742 tui_register_display_type parameter. Remove all checking of this
2743 parameter, and reindent function. Update header comment.
2744 (tui_set_layout_for_display_command): Rename to...
2745 (tui_set_layout_by_name): ...this, and don't check for different
2746 register class types, don't pass a tui_register_display_type to
2747 tui_set_layout. Update header comment.
2748 (layout_names): Remove register set specific names.
2749 * tui/tui-layout.h (tui_set_layout): Remove
2750 tui_register_display_type parameter.
2751 * tui/tui.c (tui_rl_change_windows): Don't pass a
2752 tui_register_display_type to tui_set_layout.
2753 (tui_rl_delete_other_windows): Likewise.
2754 (tui_enable): Likewise.
2755 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
2756 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
2757 (TUI_GENERAL_REGS_NAME): Remove.
2758 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
2759 (TUI_SPECIAL_REGS_NAME): Remove.
2760 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
2761 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
2762 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
2763 (enum tui_register_display_type): Remove.
2764 (struct tui_layout_def): Remove regs_display_type and
2765 float_regs_display_type fields.
2766 (struct tui_data_info): Remove regs_display_type field.
2767 (tui_layout_command): Use new name for
2768 tui_set_layout_for_display_command.
2769 * tui/tui-data.c (layout_def): Don't initialise removed fields.
2770 (tui_clear_win_detail): Don't initialise removed fields of
2772 * tui/tui-regs.c (tui_show_registers): Use new name for
2773 tui_set_layout_for_display_command.
2774 * tui/tui.h (tui_set_layout_for_display_command): Rename
2776 (tui_set_layout_by_name): ...this.
2777 * printcmd.c (display_command): Remove tui related layout call,
2780 2015-05-20 Joel Brobecker <brobecker@adacore.com>
2782 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
2783 (handle_inferior_event): New function.
2785 2015-05-20 Joel Brobecker <brobecker@adacore.com>
2787 * ada-lang.c (to_fixed_array_type): Rename local variable
2788 typename into type_name.
2790 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2792 Fix ASAN crash for gdb.compile/compile.exp.
2793 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
2795 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2797 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
2798 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
2799 * compile/compile-object-load.c (setup_sections, compile_object_load):
2801 * compile/compile.c (compile_to_object): Likewise.
2803 2015-05-16 Doug Evans <xdje42@gmail.com>
2805 * NEWS: Mention support for unbuffered Guile memory ports.
2806 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
2807 (ioscm_lseek_address): Improve overflow calculation.
2808 (gdbscm_memory_port_fill_input): Add assert.
2809 (gdbscm_memory_port_write): Handle unbuffered ports.
2810 Handle large writes identical to Guile's fport_write.
2811 (gdbscm_memory_port_seek): Fix seeking past end check.
2812 (gdbscm_memory_port_close): Handle closing unbuffered port.
2813 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
2814 (ioscm_init_memory_port): Handle unbuffered ports.
2815 (ioscm_reinit_memory_port): Ditto.
2816 (ioscm_init_memory_port): Update size calculation.
2817 (gdbscm_open_memory): Support zero sized ports.
2819 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2821 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
2822 variable compiler warnings.
2824 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2826 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
2828 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2829 Phil Muldoon <pmuldoon@redhat.com>
2831 * NEWS (Changes since GDB 7.9): Add compile print.
2832 * compile/compile-c-support.c (add_code_header, add_code_footer)
2833 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
2834 COMPILE_I_PRINT_VALUE_SCOPE.
2835 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
2836 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
2838 * compile/compile-object-load.c: Include block.h.
2839 (get_out_value_type): New function.
2840 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2841 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
2843 * compile/compile-object-load.h (struct compile_module): Add fields
2844 out_value_addr and out_value_type.
2845 * compile/compile-object-run.c: Include valprint.h and compile.h.
2846 (struct do_module_cleanup): Add fields out_value_addr and
2848 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2849 COMPILE_I_PRINT_VALUE_SCOPE.
2850 (compile_object_run): Propagate out_value_addr and out_value_type.
2851 Pass OUT_VALUE_ADDR.
2852 * compile/compile.c: Include valprint.h.
2853 (compile_print_value, compile_print_command): New functions.
2854 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
2855 (_initialize_compile): Update compile code help text. Install
2856 compile_print_command.
2857 * compile/compile.h (compile_print_value): New prototype.
2858 * defs.h (enum compile_i_scope_types): Add
2859 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
2861 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2863 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
2864 Rely on its parameter count.
2865 (compile_object_load): Replace lookup_minimal_symbol_text by
2866 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
2868 * compile/compile-object-load.h (struct compile_module): Replace
2869 func_addr by func_sym.
2870 * compile/compile-object-run.c: Include block.h.
2871 (compile_object_run): Reset module variable after it is freed. Use
2872 FUNC_SYM instead of FUNC_ADDR. Rely on it.
2874 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2876 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
2877 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
2878 (c_compute_program): Call generate_register_struct after typedefs.
2879 * compile/compile-loc2c.c (push, pushf_register_address)
2880 (pushf_register): Cast to GCC_UINTPTR.
2881 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
2882 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
2883 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
2884 * compile/compile.c (_initialize_compile): Enable warnings for
2887 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * cli/cli-script.c (execute_control_command): Update
2890 eval_compile_command caller.
2891 * compile/compile-object-load.c (compile_object_load): Add parameters
2892 scope and scope_data. Set them.
2893 * compile/compile-object-load.h (struct compile_module): Add fields
2894 scope and scope_data.
2895 (compile_object_load): Add parameters scope and scope_data.
2896 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
2897 scope and scope_data.
2898 (compile_object_run): Propagate the fields scope and scope_data.
2899 * compile/compile.c (compile_file_command, compile_code_command):
2900 Update eval_compile_command callers.
2901 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
2902 * compile/compile.h (eval_compile_command): Add parameter scope_data.
2903 * defs.h (struct command_line): Add field scope_data.
2905 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2907 * printcmd.c (struct format_data): Move it to valprint.h.
2908 (print_command_parse_format, print_value): New functions from ...
2909 (print_command_1): ... here. Call them.
2910 * valprint.h (struct format_data): Move it here from printcmd.c.
2911 (print_command_parse_format, print_value): New declarations.
2913 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2915 * compile/compile-object-load.c (compile_object_load): Add
2916 COMPILE_DEBUG message.
2918 2015-05-15 Jerome Guitton <guitton@adacore.com>
2920 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
2921 index to get element instead of enum value.
2922 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
2923 of index to compute length, but enum values to compute bounds.
2924 (ada_array_length): Use enum position of index instead of enum value.
2925 (pos_atr): Move position computation to...
2926 (ada_evaluate_subexp): Use enum values to compute bounds.
2927 * gdbtypes.c (discrete_position): ...this new function.
2928 * gdbtypes.h (discrete_position): New function declaration.
2929 * valprint.c (val_print_array_elements): Call discrete_position
2930 to handle array indexed by non-contiguous enumeration types.
2932 2015-05-15 Jerome Guitton <guitton@adacore.com>
2934 * ada-lang.c (find_parallel_type_by_descriptive_type):
2935 Go through typedefs during lookup.
2936 (to_fixed_array_type): Add support for non-bit packed arrays
2937 as variable-length fields.
2939 2015-05-15 Pedro Alves <palves@redhat.com>
2940 Simon Marchi <simon.marchi@ericsson.com>
2942 * event-loop.c (gdb_notifier) <next_file_handler,
2943 next_poll_fds_index>: New fields.
2944 (get_next_file_handler_to_handle_and_advance): New function.
2945 (delete_file_handler): If deleting the next file handler to
2946 handle, advance to the next file handler.
2947 (gdb_wait_for_event): Bail early if no event fired. Poll file
2948 handlers in round-robin fashion.
2950 2015-05-15 Pedro Alves <palves@redhat.com>
2952 * linux-tdep.c (linux_find_memory_regions_full): Rename local
2953 'private' to 'priv'.
2955 2015-05-15 Pedro Alves <palves@redhat.com>
2957 * nat/linux-nat.h: Include "target/waitstatus.h".
2959 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
2961 * python/py-unwind.c (struct reg_info): Move out of ...
2962 (struct cached_frame_info): ... this scope.
2963 (pending_frame_object_type, unwind_info_object_type): Make extern.
2965 2015-05-15 Joel Brobecker <brobecker@adacore.com>
2967 * ada-lang.c (ada_value_primitive_packed_val): Make sure
2968 accumSize is never negative.
2970 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
2972 * tui/tui-command.c: Remove include of <ctype.h>.
2973 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
2975 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
2977 * dwarf2read.c (die_needs_namespace): Return 1 for
2978 DW_TAG_inlined_subroutine.
2980 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2982 * regcache.c (regcache_cpy_no_passthrough): New declaration.
2983 (regcache_cpy_no_passthrough): Make it static, add function comment.
2984 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
2985 (regcache_cpy_no_passthrough): Remove declaration.
2987 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2989 * gdbthread.h (struct thread_control_state): Update comment for
2991 * infcall.c (run_inferior_call): Update comment about
2993 * infcmd.c (get_return_value): Update comment about stop_registers.
2994 (finish_forward): Update comment about proceed_to_finish.
2995 * infrun.c (stop_registers): Remove.
2996 (clear_proceed_status, normal_stop): Remove stop_registers handling.
2997 * infrun.h (stop_registers): Remove.
2999 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3001 * infcall.c (struct dummy_frame_context_saver)
3002 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
3003 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3004 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3006 (call_function_by_hand_dummy): Move discard_cleanups of
3007 inf_status_cleanup before dummy_frame_push. Call
3008 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
3009 Use dummy_frame_context_saver_get_regs instead of stop_registers.
3010 * infcall.h (struct dummy_frame_context_saver)
3011 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3012 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3014 * infcmd.c: Include infcall.h.
3015 (get_return_value): Add parameter ctx_saver, use it instead of
3017 (print_return_value): Add parameter ctx_saver, pass it.
3018 (struct finish_command_continuation_args): Add field ctx_saver.
3019 (finish_command_continuation): Update print_return_value caller.
3020 (finish_command_continuation_free_arg): Free also ctx_saver.
3021 (finish_forward): Call dummy_frame_context_saver_setup.
3022 * inferior.h (struct dummy_frame_context_saver): New declaration.
3023 (get_return_value): Add parameter ctx_saver.
3024 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
3025 get_return_value caller.
3027 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3029 * dummy-frame.c (struct dummy_frame_dtor_list): New.
3030 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
3031 (remove_dummy_frame): Process dtor_list.
3032 (pop_dummy_frame): Process dtor_list.
3033 (register_dummy_frame_dtor): Maintain dtor_list.
3034 (find_dummy_frame_dtor): Handle dtor_list.
3035 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
3038 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 * compile/compile-object-run.c (do_module_cleanup): Add parameter
3042 (compile_object_run): Update do_module_cleanup caller.
3043 * dummy-frame.c: Include infcall.h.
3044 (struct dummy_frame): Update dtor comment.
3045 (remove_dummy_frame): Call dtor.
3046 (pop_dummy_frame): Update dtor caller.
3047 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
3050 2015-05-13 Joel Brobecker <brobecker@adacore.com>
3054 2015-05-13 Joel Brobecker <brobecker@adacore.com>
3056 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
3057 Xmethods now being able to specify a result type to that new
3060 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3062 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
3063 first before resizing the window.
3064 * tui/tui.c (tui_enable): Likewise.
3066 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3068 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
3069 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
3070 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
3071 dummy_dtor parameter.
3072 * infcall.h: Include dummy-frame.h.
3073 (call_function_by_hand_dummy_dtor_ftype): Remove.
3074 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
3077 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
3080 * top.c (history_size_setshow_var): Change type to signed.
3081 Initialize to -2. Update documentation.
3082 (set_readline_history_size): Define.
3083 (set_history_size_command): Use it. Remove logic for handling
3085 (init_history): Use set_readline_history_size(). Test for a
3086 value of -2 instead of 0 when determining whether to set a
3087 default history size.
3088 (init_main): Decode the argument of the "size" command as a
3089 zuinteger_unlimited.
3091 2015-05-12 Doug Evans <dje@google.com>
3093 * dwarf2read.c (struct file_entry): Tweak comments.
3094 (get_debug_line_section): Tweak comments.
3096 2015-05-12 Don Breazeal <donb@codesourcery.com>
3098 * NEWS: Announce fork support in the RSP and support
3099 for fork debugging in extended mode.
3101 2015-05-12 Don Breazeal <donb@codesourcery.com>
3103 * remote.c (remote_insert_fork_catchpoint): New function.
3104 (remote_remove_fork_catchpoint): New function.
3105 (remote_insert_vfork_catchpoint): New function.
3106 (remote_remove_vfork_catchpoint): New function.
3107 (pending_fork_parent_callback): New function.
3108 (remove_new_fork_child): New function.
3109 (remote_update_thread_list): Call remote_notif_get_pending_events
3110 and remove_new_fork_child.
3111 (extended_remote_kill): Kill fork child when killing the
3112 parent before follow_fork completes.
3113 (init_extended_remote_ops): Initialize target vector with
3114 new fork catchpoint functions.
3116 2015-05-12 Don Breazeal <donb@codesourcery.com>
3118 * remote.c (remove_vfork_event_p): New function.
3119 (remote_follow_fork): Add vfork event type to event checking.
3120 (remote_parse_stop_reply): New stop reasons "vfork" and
3121 "vforkdone" for RSP 'T' Stop Reply Packet.
3123 2015-05-12 Don Breazeal <donb@codesourcery.com>
3125 * linux-nat.c (linux_nat_ptrace_options): New function.
3126 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
3127 Call linux_nat_ptrace_options and use different argument to
3128 linux_enable_event_reporting.
3129 (_initialize_linux_nat): Delete call to
3130 linux_ptrace_set_additional_flags.
3131 * nat/linux-ptrace.c (current_ptrace_options): Rename to
3132 supported_ptrace_options.
3133 (additional_flags): Delete variable.
3134 (linux_check_ptrace_features): Use supported_ptrace_options.
3135 (linux_test_for_tracesysgood, linux_test_for_tracefork):
3136 Likewise, and remove additional_flags check.
3137 (linux_enable_event_reporting): Change 'attached' argument to
3138 'options'. Use supported_ptrace_options.
3139 (ptrace_supports_feature): Change comment. Use
3140 supported_ptrace_options.
3141 (linux_ptrace_set_additional_flags): Delete function.
3142 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3143 Delete function prototype.
3144 * remote.c (remote_fork_event_p): New function.
3145 (remote_detach_pid): New function.
3146 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
3147 if doing detach-on-fork.
3148 (remote_follow_fork): New function.
3149 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
3150 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
3151 (init_extended_remote_ops): Initialize to_follow_fork.
3153 2015-05-12 Don Breazeal <donb@codesourcery.com>
3155 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
3156 from static to extern.
3157 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
3158 * remote.c (anonymous enum): <PACKET_fork_event_feature,
3159 * PACKET_vfork_event_feature>: New enumeration constants.
3160 (remote_protocol_features): Add table entries for new packets.
3161 (remote_query_supported): Add new feature queries to qSupported
3164 2015-05-12 Gary Benson <gbenson@redhat.com>
3166 * remote.c (remote_add_inferior): Call exec_file_locate_attach
3167 for fake PIDs as well as real ones.
3168 (remote_pid_to_exec_file): Send empty annex if PID is fake.
3170 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
3172 * NEWS (Python Scripting): Mention the new gdb.Value methods.
3173 * python/py-value.c (valpy_reference_value): New function.
3174 (valpy_const_value): Likewise.
3175 (value_object_methods): Add new methods.
3176 * value.c (make_cv_value): New function.
3177 * value.h (make_cv_value): Declare.
3179 2015-05-08 Yao Qi <yao@codesourcery.com>
3180 Sandra Loosemore <sandra@codesourcery.com>
3182 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
3183 to 'lh->include_dirs' before accessing to it.
3184 (psymtab_include_file_name): Likewise.
3185 (dwarf_decode_lines_1): Likewise.
3186 (dwarf_decode_lines): Likewise.
3187 (file_file_name): Likewise.
3189 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3191 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
3192 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
3193 (nios2_linux_rt_sigreturn_init): Adjust base address of
3196 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
3198 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
3199 "trap 31" as the breakpoint instruction on all targets.
3201 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3203 * infcmd.c (print_return_value): Remove unused declaration.
3205 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3207 * dwarf2read.c (attr_to_dynamic_prop)
3208 <DW_AT_data_member_location>: Use read_type_die isntead of
3211 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3213 * ada-lang.c (ada_convert_actual): Add handling of formals
3214 passed inside an aligner type.
3216 2015-05-08 Joel Brobecker <brobecker@adacore.com>
3218 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
3220 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
3223 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
3224 Print xmethod matcher status.
3226 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
3228 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
3229 register in the regcache when treating the PSWM register, and vice
3232 2015-05-07 Gary Benson <gbenson@redhat.com>
3234 * linux-thread-db.c (struct thread_db_info)
3235 <td_ta_map_id2thr_p>: Remove field.
3236 (try_thread_db_load_1): Remove initialization for the above.
3238 2015-05-07 Gary Benson <gbenson@redhat.com>
3240 * linux-thread-db.c (struct thread_db_info)
3241 <td_thr_validate_p>: Remove field.
3242 (try_thread_db_load_1): Remove initialization for the above.
3244 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 * compile/compile-object-load.c (compile_object_load): Support
3249 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3251 * compile/compile.c (compile_to_object): Make the cmd_string parameter
3252 const. Use new variables for the const compatibility.
3253 (eval_compile_command): Make the cmd_string parameter const.
3254 * compile/compile.h (eval_compile_command): Make the cmd_string
3257 2015-05-06 Joel Brobecker <brobecker@adacore.com>
3259 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
3261 * top.c (deprecated_init_ui_hook): Delete.
3262 (gdb_init): Remove handling of deprecated_init_ui_hook.
3263 * interps.c (clear_interpreter_hooks): Remove handling of
3264 deprecated_init_ui_hook.
3265 * main.c (captured_main): Update comment.
3267 2015-05-06 Joel Brobecker <brobecker@adacore.com>
3269 * solib.c (_initialize_solib): Add "info dll" alias creation.
3270 * windows-nat.c (set_windows_aliases): Delete.
3271 (_initialize_windows_nat): Remove deprecated_init_ui_hook
3273 * NEWS: Add news entry about "info dll" now being available
3276 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3278 * ada-lang.c (value_assign_to_component): Reformat and improve
3279 documentation. Remove all trailing spaces.
3281 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3283 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3284 Stop counting inlined frames as soon as an out-of-line function
3287 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
3289 * dwarf2read.c (inherit_abstract_dies): Skip
3290 DW_TAG_GNU_call_site dies while inheriting children of an
3291 abstract DIE into a scope.
3292 (read_lexical_block_scope): Inherit abstract DIE's for
3295 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3297 * ada-valprint.c (val_print_packed_array_elements): Delete
3298 variable "len". Add a type-length check when comparing two
3299 consecutive elements of the array. Use the element's actual
3300 length in call to value_contents_eq.
3301 * ada-lang.c (ada_value_primitive_packed_val): Always return
3302 a value whose type has been resolved.
3304 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3306 * ada-lang.c (ada_value_primitive_packed_val): Recompute
3307 BIT_SIZE and LEN if the size of the resolved type is smaller
3308 than BIT_SIZE * HOST_CHAR_BIT.
3310 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3312 * ada-lang.c (ada_value_primitive_packed_val): Use a more
3313 correct address in call to value_at. Adjust call to
3314 value_address accordingly.
3316 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3318 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
3321 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3323 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
3324 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
3326 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
3327 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
3328 (resolve_dynamic_type_internal): Set pinfo.valaddr.
3329 Add handling of addr_stack->valaddr.
3330 (resolve_dynamic_type): Add "valaddr" parameter.
3331 Set pinfo.valaddr field.
3332 * ada-lang.c (ada_discrete_type_high_bound): Update call to
3333 resolve_dynamic_type.
3334 (ada_discrete_type_low_bound): Likewise.
3335 * findvar.c (default_read_var_value): Likewise.
3336 * value.c (value_from_contents_and_address): Likewise.
3338 2015-05-05 Joel Brobecker <brobecker@adacore.com>
3340 * gdbtypes.c (resolve_dynamic_array): Use
3341 create_array_type_with_stride instead of create_array_type.
3343 2015-04-30 DJ Delorie <dj@redhat.com>
3345 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
3348 2015-04-29 Doug Evans <dje@google.com>
3351 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
3352 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
3353 EVAL_AVOID_SIDE_EFFECTS for xmethods.
3354 * extension-priv.h (struct extension_language_ops)
3355 <get_xmethod_result_type>: New member.
3356 * extension.c (get_xmethod_result_type): New function.
3357 * extension.h (get_xmethod_result_type): Declare.
3358 * python/py-xmethods.c (get_result_type_method_name): New static
3360 (py_get_result_type_method_name): Ditto.
3361 (gdbpy_get_xmethod_result_type): New function.
3362 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
3363 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
3364 * python/python.c (python_extension_ops): Add
3365 gdbpy_get_xmethod_result_type.
3366 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
3367 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
3369 (value_x_unop): Ditto.
3370 * value.c (result_type_of_xmethod): New function.
3371 * value.h (result_type_of_xmethod): Declare.
3373 2015-04-29 Gary Benson <gbenson@redhat.com>
3375 * solib.c (solib_find_1): Allow fd argument to be NULL.
3376 (exec_file_find): Update comment.
3377 (solib_find): Likewise.
3378 * exec.c (exec_file_locate_attach): Use NULL as fd
3379 argument to exec_file_find to avoid having to close
3381 * infrun.c (follow_exec): Likewise.
3383 2015-04-28 Doug Evans <dje@google.com>
3386 * python/lib/gdb/printing.py (register_pretty_printer): Handle
3387 name or __name__ attributes. Handle gdb module as first argument.
3389 2015-04-28 Doug Evans <dje@google.com>
3392 * python/py-prettyprint.c (print_children): Verify result of children
3393 iterator. Provide better error message.
3394 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
3395 * python/python.c (gdbpy_print_python_errors_p): New function.
3397 2015-04-28 Doug Evans <dje@google.com>
3399 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
3401 2015-04-28 Sasha Smundak <asmundak@google.com>
3403 * NEWS: Mention gdb.Type.optimized_out method.
3404 * python/py-type.c (typy_optimized_out): New function.
3406 2015-04-28 John Baldwin <jhb@FreeBSD.org>
3408 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3410 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3412 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
3413 (initialize_utils): Move call of init_page_info() to ...
3414 * top.c (gdb_init): ... here.
3416 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3418 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
3419 (tui_sigwinch_handler): Still update our idea of
3420 the terminal's width and height even when TUI is not active.
3422 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3424 * utils.h (set_screen_width_and_height): Declare.
3425 * utils.c (set_screen_width_and_height): Define.
3426 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
3428 2015-04-28 Gary Benson <gbenson@redhat.com>
3430 * infrun.c (solist.h): New include.
3431 (follow_exec): Use exec_file_find to prefix execd_pathname
3434 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3436 * tui/tui-source.c (tui_set_source_content): Avoid calling
3437 strcpy() when offset is 0.
3439 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3442 * tui/tui-data.c (tui_free_window): Don't free the locator
3443 window when passed an SRC_WIN or a DISASSEM_WIN.
3445 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
3447 * tui/tui-data.h (struct tui_win_element): Forward-declare.
3448 (tui_win_content): Move declaration.
3449 (struct tui_gen_win_info): Give 'content' field the
3450 type tui_win_content.
3451 * tui/tui-data.c (init_content_element): Remove redundant and
3453 (tui_add_content_elements): Remove erroneous cast.
3454 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
3456 (tui_get_begin_asm_address): Likewise.
3457 * tui/tui-regs.c (tui_show_registers): Likewise.
3458 (tui_show_register_group): Likewise.
3459 (tui_display_registers_from): Likewise.
3460 (tui_check_register_values): Likewise.
3461 * tui/tui-source.c (tui_set_source_content): Likewise.
3462 (tui_set_source_content_nil): Likewise.
3463 (tui_source_is_displayed): Likewise.
3464 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3465 (tui_set_locator_fullname): Likewise.
3466 (tui_set_locator_info): Likewise.
3467 (tui_show_frame_info): Likewise.
3468 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
3469 (tui_show_source_line): Likewise.
3470 (tui_horizontal_source_scroll): Likewise.
3471 (tui_update_breakpoint_info): Likewise.
3472 (tui_set_exec_info_content): Likewise.
3473 (tui_show_exec_info_content): Likewise.
3474 (tui_alloc_source_buffer): Likewise.
3475 (tui_line_is_displayed): Likewise.
3476 (tui_addr_is_displayed): Likewise.
3478 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3480 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
3481 event if PL_FLAG_EXEC is set.
3482 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
3483 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
3484 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
3485 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
3486 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
3488 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3490 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
3491 [TDP_RFPPWAIT] New variable fbsd_pending_children.
3492 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
3493 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
3494 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
3495 [PT_LWPINFO] (fbsd_wait): New function.
3496 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
3497 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
3498 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
3499 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
3500 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
3501 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
3502 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
3503 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
3504 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
3506 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
3507 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
3508 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
3509 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
3510 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
3511 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
3512 Set "to_post_attach" to "fbsd_post_attach".
3514 2015-04-27 John Baldwin <jhb@FreeBSD.org>
3516 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
3517 (fbsd_find_memory_regions): Mark static.
3518 (fbsd_nat_add_target): New function.
3519 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
3520 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
3521 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
3522 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3523 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
3524 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
3526 2015-04-27 Gary Benson <gbenson@redhat.com>
3528 * objfiles.c (allocate_objfile): Do not attempt to expand name
3529 if name is a "target:" filename.
3530 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
3531 to load auto-load scripts for objfiles with "target:" filenames.
3533 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3535 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
3536 (enum s390_vector_abi_kind): New enum.
3537 (struct gdbarch_tdep)<vector_abi>: New field.
3538 (s390_effective_inner_type): Add parameter min_size. Stop
3539 unwrapping if the inner type is smaller than min_size.
3540 (s390_function_arg_float): Adjust call to
3541 s390_effective_inner_type.
3542 (s390_function_arg_vector): New function.
3543 (s390_function_arg_integer): Adjust comment.
3544 (struct s390_arg_state)<vr>: New field.
3545 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
3546 arguments according to vector ABI when appropriate.
3547 (s390_push_dummy_call): Initialize the argument state's field
3548 'vr'. Adjust calls to s390_handle_arg.
3549 (s390_register_return_value): Handle vector return values.
3550 (s390_return_value): Apply the "register" return value convention
3551 to a vector when appropriate.
3552 (s390_gdbarch_init): Initialize tdep->vector_abi.
3553 * NEWS: Announce S390 vector ABI support.
3555 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3557 * s390-linux-tdep.c (s390_return_value_convention): Remove
3558 function. Inline its logic...
3559 (s390_return_value): ...here. Instead, move the handling of the
3560 "register" return value convention...
3561 (s390_register_return_value): ...here. New function.
3563 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3566 (is_float_singleton): Remove function. Move the "singleton" part
3568 (s390_effective_inner_type): ...here. New function.
3569 (is_float_like): Remove function. Inline its logic...
3570 (s390_function_arg_float): ...here.
3571 (is_pointer_like, is_integer_like, is_struct_like): Remove
3572 functions. Inline their logic...
3573 (s390_function_arg_integer): ...here.
3574 (s390_function_arg_pass_by_reference): Remove function.
3575 (extend_simple_arg): Remove function.
3576 (alignment_of): Remove function.
3577 (struct s390_arg_state): New structure.
3578 (s390_handle_arg): New function.
3579 (s390_push_dummy_call): Move parameter placement logic to the new
3580 function s390_handle_arg. Call it for calculating the stack area
3581 sizes first, and again for actually writing the parameters.
3583 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3585 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
3586 false if the argument is zero.
3588 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
3590 * ada-lang.c (template_to_static_fixed_type): Return input type
3591 when it is already fixed. Cache the input type itself when not
3592 creating a static fixed copy. Make it explicit that we never
3593 molestate the input type.
3594 * gdbtypes.c (resolve_dynamic_struct): Reset the
3595 TYPE_TARGET_TYPE field for resolved copies.
3597 2015-04-27 Joel Brobecker <brobecker@adacore.com>
3599 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
3600 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
3601 (template_to_static_fixed_type): Call ada_check_typedef only
3604 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3606 * cli/cli-dump.c (srec_dump_command): Add internationalization
3608 (ihex_dump_command): Likewise.
3609 (tekhex_dump_command): Likewise.
3610 (binary_dump_command): Likewise.
3611 (binary_append_command): Likewise.
3613 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3615 * cli/cli-dump.c (verilog_cmdlist): New variable.
3616 (dump_verilog_memory): New function.
3617 (dump_verilog_value): New function.
3618 (verilog_dump_command): New function.
3619 (_initialize_cli_dump): Add new commands to support verilog dump
3621 * NEWS: Add entry for "dump verilog".
3623 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
3625 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
3626 descriptive type when there is none.
3628 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
3630 * tui/tui-win.c (tui_async_resize_screen): Call
3631 rl_resize_terminal().
3633 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3635 * windows-nat.c (handle_output_debug_string): Don't change
3636 current_event.dwThreadId.
3637 (get_windows_debug_event): Use thread_id, rather than relying on
3638 current_event.dwThreadId being changed.
3640 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3642 * windows-nat.c (windows_continue): Report an error if
3643 ContinueDebugEvent() fails.
3645 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3647 * windows-nat.c (windows_resume): Fix misspelling in debug output.
3649 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3651 * windows-nat.c (get_windows_debug_event): Replace retval with
3652 thread_id throughout. Update stale comment.
3654 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3656 * windows-nat.c (get_windows_debug_event): Don't use ternary
3657 conditional operator.
3659 2015-04-21 Pierre Muller <muller@sourceware.org>
3662 p-exp.y (yylex): Reorganize code to return the matched pattern
3663 for a field of this.
3665 2015-04-21 Gary Benson <gbenson@redhat.com>
3667 * common/fileio.h (fileio_to_host_openflags): New declaration.
3668 * common/fileio.c (fcntl.h): New include.
3669 (fileio_to_host_openflags): New function, factored out from...
3670 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
3673 2015-04-21 Kevin Buettner <kevinb@redhat.com>
3675 * rl78-tdep.c (RL78_SP_ADDR): Define.
3676 (opc_reg_to_gdb_regnum): New static function.
3677 (rl78_analyze_prologue): Recognize instructions forming slightly
3678 more interesting prologues.
3680 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3683 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3684 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
3685 TYPE_CODE_REF types so that they are not considered as dynamic
3686 depending on the referenced type.
3687 (resolve_dynamic_type_internal): Likewise.
3689 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3692 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3693 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
3694 "top_level" parameter.
3695 (resolve_dynamic_type_internal): Remove the unused "top_level"
3696 parameter. Update call to is_dynamic_type_internal.
3697 (is_dynamic_type): Update call to is_dynamic_type_internal.
3698 (resolve_dynamic_range): Update call to
3699 resolve_dynamic_type_internal.
3700 (resolve_dynamic_union): Likewise.
3701 (resolve_dynamic_struct): Likewise.
3702 (resolve_dynamic_type): Likewise.
3704 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
3706 * breakpoint.c (update_dprintf_command_list): Remove duplicated
3709 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
3711 * reply_mig_hack.awk: Robustify parsing.
3713 * reply_mig_hack.awk: Don't bother to declare an intermediate
3714 function pointer variable.
3716 2015-04-17 Doug Evans <dje@google.com>
3718 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
3719 to "exec_displacement" to avoid confusion with inner use of the name.
3721 2015-04-17 Pedro Alves <palves@redhat.com>
3723 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
3724 if HW point of TYPE isn't supported.
3726 2015-04-17 Yao Qi <yao.qi@linaro.org>
3727 Pedro Alves <palves@redhat.com>
3729 * target.h (target_can_use_hardware_watchpoint): Update comments.
3730 Remove trailing ";".
3732 2015-04-17 Gary Benson <gbenson@redhat.com>
3734 * remote.c (remote_add_inferior): New argument try_open_exec.
3735 If nonzero, attempt to open the inferior's executable file as
3736 the main executable if no main executable is open already.
3737 All callers updated.
3738 * NEWS: Mention that GDB now supports automatic location and
3739 retrieval of executable + files from remote targets.
3741 2015-04-17 Gary Benson <gbenson@redhat.com>
3743 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
3744 * remote.c (PACKET_qXfer_exec_file): Likewise.
3745 (remote_protocol_features): Register the
3746 "qXfer:exec-file:read" feature.
3747 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
3748 (remote_pid_to_exec_file): New function.
3749 (init_remote_ops): Initialize to_pid_to_exec_file.
3750 (_initialize_remote): Register new "set/show remote
3751 pid-to-exec-file-packet" command.
3752 * NEWS: Announce new qXfer:exec-file:read packet.
3754 2015-04-17 Gary Benson <gbenson@redhat.com>
3756 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
3758 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
3759 New function, factored out from...
3760 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
3762 2015-04-17 Gary Benson <gbenson@redhat.com>
3764 * exec.c (solist.h): New include.
3765 (exec_file_locate_attach): Prefix absolute executable
3766 paths with gdb_sysroot if set.
3767 * NEWS: Mention that executable paths may be prepended
3770 2015-04-17 Gary Benson <gbenson@redhat.com>
3772 * solist.h (exec_file_find): New declaration.
3773 * solib.c (solib_find_1): New function, factored out from...
3774 (solib_find): ...here.
3775 (exec_file_find): New function.
3777 2015-04-17 Gary Benson <gbenson@redhat.com>
3779 * gdbcore.h (exec_file_locate_attach): New declaration.
3780 * exec.c (exec_file_locate_attach): New function, factored
3782 * infcmd.c (attach_command_post_wait): ...here.
3784 2015-04-17 Mike Frysinger <vapier@gentoo.org>
3786 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
3788 2015-04-16 Yao Qi <yao.qi@linaro.org>
3790 * infrun.c (maybe_software_singlestep): Declare.
3791 (displaced_step_fixup): Call maybe_software_singlestep.
3793 2015-04-15 Doug Evans <dje@google.com>
3795 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
3797 2015-04-15 Doug Evans <dje@google.com>
3799 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
3801 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
3803 * python/lib/gdb/command/unwinders.py: Add parentheses.
3805 2015-04-15 Yao Qi <yao.qi@linaro.org>
3807 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
3809 2015-04-15 Yao Qi <yao.qi@linaro.org>
3811 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
3813 2015-04-15 Yao Qi <yao.qi@linaro.org>
3815 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3816 dsc->insn_size instead of 4.
3818 2015-04-14 Gary Benson <gbenson@redhat.com>
3820 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
3821 * minidebug.c (lzma_stat): Likewise.
3822 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
3823 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
3825 2015-04-13 Stan Shebs <stanshebs@google.com>
3827 * MAINTAINERS: Update my email address.
3829 2015-04-13 John Baldwin <jhb@FreeBSD.org>
3831 * amd64-tdep.c (amd64_target_description): New function.
3832 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
3833 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
3834 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3835 x86 extended save area.
3836 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3837 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
3838 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
3839 (_initialize_amd64fbsd_nat): Set "to_read_description" to
3840 "amd64fbsd_read_description".
3841 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
3842 (amd64fbsd_supply_xstateregset): New function.
3843 (amd64fbsd_collect_xstateregset): New function.
3844 Add "amd64fbsd_xstateregset".
3845 (amd64fbsd_iterate_over_regset_sections): New function.
3846 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
3847 "I386_FBSD_XSAVE_XCR0_OFFSET".
3848 Add "iterate_over_regset_sections" gdbarch method.
3849 Add "core_read_description" gdbarch method.
3850 * i386-tdep.c (i386_target_description): New function.
3851 * i386-tdep.h: Export i386_target_description and tdesc_i386.
3852 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
3853 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3854 x86 extended save area.
3855 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3856 * i386bsd-nat.h: Export i386bsd_xsave_len.
3857 * i386fbsd-nat.c (i386fbsd_read_description): New function.
3858 (_initialize_i386fbsd_nat): Set "to_read_description" to
3859 "i386fbsd_read_description".
3860 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
3861 (i386fbsd_core_read_description): New function.
3862 (i386fbsd_supply_xstateregset): New function.
3863 (i386fbsd_collect_xstateregset): New function.
3864 Add "i386fbsd_xstateregset".
3865 (i386fbsd_iterate_over_regset_sections): New function.
3866 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
3867 "I386_FBSD_XSAVE_XCR0_OFFSET".
3868 Add "iterate_over_regset_sections" gdbarch method.
3869 Add "core_read_description" gdbarch method.
3870 * i386fbsd-tdep.h: New file.
3872 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3874 * NEWS (Changes since GDB 7.9): Add removed -xdb.
3875 * breakpoint.c (command_line_is_silent): Remove xdb_commands
3877 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
3879 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
3881 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
3883 * defs.h (xdb_commands): Remove declaration.
3884 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
3885 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
3886 * infcmd.c (run_no_args_command, go_command): Remove.
3887 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
3888 * infrun.c (xdb_handle_command): Remove.
3889 (_initialize_infrun): Remove xdb_commands for lz and z.
3890 * main.c (xdb_commands): Remove variable.
3891 (captured_main): Remove "xdb" from long_options.
3892 (print_gdb_help): Remove --xdb from help.
3893 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
3894 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
3895 * stack.c (backtrace_full_command, args_plus_locals_info)
3896 (current_frame_command): Remove.
3897 (_initialize_stack): Remove xdb_commands for t, T and l.
3898 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
3899 * thread.c (_initialize_thread): Remove xdb_commands condition.
3900 * tui/tui-layout.c (tui_toggle_layout_command)
3901 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
3902 (_initialize_tui_layout): Remove xdb_commands for td and ts.
3903 * tui/tui-regs.c (tui_scroll_regs_forward_command)
3904 (tui_scroll_regs_backward_command): Remove.
3905 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
3906 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
3907 (_initialize_tui_win): Remove xdb_commands for U and w.
3908 * utils.c (pagination_on_command, pagination_off_command): Remove.
3909 (initialize_utils): Remove xdb_commands for am and sm.
3911 2015-04-10 Pedro Alves <palves@redhat.com>
3913 * infrun.c (displaced_step_fixup): Switch to the event ptid
3914 earlier. If the thread stopped for a watchpoint and the
3915 target/arch has non-continuable watchpoints, cancel the displaced
3917 (resume): Don't start a displaced step if in-line step-over info
3920 2015-04-10 Pedro Alves <palves@redhat.com>
3922 * infrun.c (displaced_step_in_progress): New function.
3923 (do_target_resume): Advise target to report all signals if
3926 2015-04-10 Pedro Alves <palves@redhat.com>
3929 * infrun.c (process_event_stop_test): Don't assume a step-resume
3930 is set if tp->stepped_breakpoint is true.
3932 2015-04-10 Yao Qi <yao.qi@linaro.org>
3934 * arm-tdep.c (install_alu_reg): Update comment.
3935 (thumb_copy_alu_reg): Remove local variable rn. Update
3936 debugging message. Use r2 instead of r1 in the modified
3939 2015-04-10 Pedro Alves <palves@redhat.com>
3942 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
3943 linux_displaced_step_location as gdbarch_displaced_step_location
3945 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3946 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3947 * linux-tdep.c (linux_displaced_step_location): New function,
3948 based on ppc_linux_displaced_step_location.
3949 * linux-tdep.h (linux_displaced_step_location): New declaration.
3950 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
3951 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
3953 (ppc_linux_init_abi): Install linux_displaced_step_location as
3954 gdbarch_displaced_step_location hook, even without Cell/B.E..
3955 (_initialize_ppc_linux_tdep): Don't install
3956 ppc_linux_inferior_created as inferior_created observer.
3957 * s390-linux-tdep.c (s390_gdbarch_init): Install
3958 linux_displaced_step_location as gdbarch_displaced_step_location
3961 2015-04-09 Gary Benson <gbenson@redhat.com>
3963 * common/common-remote-fileio.h: Rename to...
3964 * common/fileio.h: ...this. Update all references.
3965 (remote_fileio_to_fio_error): Rename to...
3966 (host_to_fileio_error): ...this.
3967 (remote_fileio_to_be): Rename to...
3968 (host_to_bigendian): ...this. Update all callers.
3969 (remote_fileio_to_fio_uint): Rename to...
3970 (host_to_fileio_uint): ...this. Update all callers.
3971 (remote_fileio_to_fio_time): Rename to...
3972 (host_to_fileio_time): ...this. Update all callers.
3973 (remote_fileio_to_fio_stat): Rename to...
3974 (host_to_fileio_stat): ...this.
3975 Update all references.
3976 * common/common-remote-fileio.c: Rename to...
3977 * common/fileio.c: ...this. Update all references.
3978 (remote_fileio_to_fio_error): Rename to...
3979 (host_to_fileio_error): ...this. Update all callers.
3980 (remote_fileio_mode_to_target): Rename to...
3981 (fileio_mode_pack): ...this. Update all callers.
3982 (remote_fileio_to_fio_mode): Rename to...
3983 (host_to_fileio_mode): ...this. Update all callers.
3984 (remote_fileio_to_fio_ulong): Rename to...
3985 (host_to_fileio_ulong): ...this. Update all callers.
3986 (remote_fileio_to_fio_stat): Rename to...
3987 (host_to_fileio_stat): ...this. Update all callers.
3989 2015-04-09 Andy Wingo <wingo@igalia.com>
3991 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
3992 (frame_functions): Bind gdbscm_frame_read_register to
3993 frame-read-register.
3994 * guile/lib/gdb.scm (frame-read-register): Export.
3996 2015-04-09 Gary Benson <gbenson@redhat.com>
3998 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
4000 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
4001 New function, factored out the named functions below.
4002 * inf-child.c (gdb/fileio.h): Remove include.
4003 (common-remote-fileio.h): New include.
4004 (inf_child_errno_to_fileio_error): Remove function. Update
4005 all callers to use remote_fileio_to_fio_error.
4006 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
4008 2015-04-09 Andy Wingo <wingo@igalia.com>
4010 * MAINTAINERS (Write After Approval): Add Andy Wingo.
4012 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
4014 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
4015 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
4016 * configure: Regenerated.
4018 2015-04-09 Pedro Alves <palves@redhat.com>
4020 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
4021 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
4022 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
4023 * gnulib/import/Makefile.am: Update.
4024 * gnulib/import/Makefile.in: Update.
4025 * gnulib/import/m4/gnulib-cache.m4: Update.
4026 * gnulib/import/m4/gnulib-comp.m4: Update.
4027 * gnulib/import/m4/strtok_r.m4: New file.
4028 * gnulib/import/strtok_r.c: New file.
4030 2015-04-09 Pedro Alves <palves@redhat.com>
4032 * gnulib/update-gnulib.sh (aclocal version check): Filter out
4033 "called too early to check prototype".
4035 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
4038 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
4039 use a caching mechanism. Adjust comments and code to reflect
4040 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
4041 (cmdpy_completer_handle_brkchars): Adjust call to
4042 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
4043 (cmdpy_completer): Likewise.
4045 2015-04-08 Yao Qi <yao.qi@linaro.org>
4047 * spu-tdep.c (spu_gdbarch_init): Don't call
4048 set_gdbarch_cannot_step_breakpoint.
4050 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
4052 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
4054 2015-04-07 Pedro Alves <palves@redhat.com>
4056 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
4057 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
4058 (delete_exited_threads): New declaration.
4059 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
4060 * linux-nat.c (linux_nat_update_thread_list): New function.
4061 (linux_nat_add_target): Install it.
4062 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
4063 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
4064 (delete_exited_threads): New function.
4066 2015-04-07 Pedro Alves <pedro@codesourcery.com>
4068 * infrun.c (resume) <displaced stepping debug output>: Get the
4069 leader thread's regcache, not resume_ptid's.
4071 2015-04-06 Doug Evans <xdje42@gmail.com>
4073 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
4075 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
4076 Include symbol domain in debugging output.
4078 2015-04-06 Pedro Alves <palves@redhat.com>
4079 Bernd Edlinger <bernd.edlinger@hotmail.de>
4081 * configure.ac: Remove the mingw32-specific stub-termcap.o
4082 fallback, and instead fallback to the stub termcap on all hosts.
4083 * configure: Regenerate.
4084 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
4087 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4089 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
4090 "top_level" parameter.
4091 (resolve_dynamic_type_internal): Remove the unused "top_level"
4092 parameter. Update call to is_dynamic_type_internal.
4093 (is_dynamic_type): Update call to is_dynamic_type_internal.
4094 (resolve_dynamic_range): Update call to
4095 resolve_dynamic_type_internal.
4096 (resolve_dynamic_union): Likewise.
4097 (resolve_dynamic_struct): Likewise.
4098 (resolve_dynamic_type): Likewise.
4100 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
4102 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
4103 TYPE_CODE_REF types so that they are not considered as dynamic
4104 depending on the referenced type.
4105 (resolve_dynamic_type_internal): Likewise.
4107 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
4109 * Makefile.in (top_srcdir): New.
4110 * configure: Regenerated.
4112 2015-04-02 Gary Benson <gbenson@redhat.com>
4114 * NEWS: Announce the new default sysroot of "target:".
4116 2015-04-02 Gary Benson <gbenson@redhat.com>
4118 * main.c (captured_main): Set gdb_sysroot to "target:"
4119 if not otherwise set.
4121 2015-04-02 Gary Benson <gbenson@redhat.com>
4123 * exec.c (exec_file_attach): Support "target:" filenames.
4125 2015-04-02 Gary Benson <gbenson@redhat.com>
4127 * solib.c (solib_find): Strip "target:" prefix from sysroot
4128 if accessing local files.
4130 2015-04-02 Gary Benson <gbenson@redhat.com>
4132 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
4133 checks and error messages.
4135 2015-04-02 Gary Benson <gbenson@redhat.com>
4137 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
4138 (remote_filename_p): Remove declaration.
4139 (remote_bfd_open): Likewise.
4140 * remote.c (remote_bfd_iovec_open): Remove function.
4141 (remote_bfd_iovec_close): Likewise.
4142 (remote_bfd_iovec_pread): Likewise.
4143 (remote_bfd_iovec_stat): Likewise.
4144 (remote_filename_p): Likewise.
4145 (remote_bfd_open): Likewise.
4146 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
4147 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
4148 (gdb_bfd_open_maybe_remote): Remove function.
4149 (symfile_bfd_open): Replace remote filename check with
4150 target filename check.
4151 (reread_symbols): Use gdb_bfd_open.
4152 * build-id.c (gdbcore.h): New include.
4153 (build_id_to_debug_bfd): Use gdb_bfd_open.
4154 * infcmd.c (attach_command_post_wait): Remove remote filename
4156 * solib.c (solib_find): Replace remote-specific handling with
4157 target-specific handling. Update comments where necessary.
4158 (solib_bfd_open): Replace remote-specific handling with
4159 target-specific handling.
4160 (gdb_sysroot_changed): New function.
4161 (_initialize_solib): Call the above when gdb_sysroot changes.
4162 * windows-tdep.c (gdbcore.h): New include.
4163 (windows_xfer_shared_library): Use gdb_bfd_open.
4165 2015-04-02 Gary Benson <gbenson@redhat.com>
4167 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
4168 (is_target_filename): New declaration.
4169 (gdb_bfd_has_target_filename): Likewise.
4170 (gdb_bfd_open): Update documentation comment.
4171 * gdb_bfd.c (target.h): New include.
4172 (gdb/fileio.h): Likewise.
4173 (is_target_filename): New function.
4174 (gdb_bfd_has_target_filename): Likewise.
4175 (fileio_errno_to_host): Likewise.
4176 (gdb_bfd_iovec_fileio_open): Likewise.
4177 (gdb_bfd_iovec_fileio_pread): Likewise.
4178 (gdb_bfd_iovec_fileio_close): Likewise.
4179 (gdb_bfd_iovec_fileio_fstat): Likewise.
4180 (gdb_bfd_open): Use target fileio to access paths prefixed
4181 with "target:" where necessary.
4183 2015-04-02 Gary Benson <gbenson@redhat.com>
4185 * target.h (struct target_ops) <to_filesystem_is_local>:
4187 (target_filesystem_is_local): New macro.
4188 * target-delegates.c: Regenerate.
4189 * remote.c (remote_filesystem_is_local): New function.
4190 (init_remote_ops): Initialize to_filesystem_is_local.
4192 2015-04-02 Gary Benson <gbenson@redhat.com>
4194 * target.h (struct target_ops) <to_fileio_fstat>: New field.
4195 (target_fileio_fstat): New declaration.
4196 * target.c (target_fileio_fstat): New function.
4197 * inf-child.c (inf_child_fileio_fstat): Likewise.
4198 (inf_child_target): Initialize to_fileio_fstat.
4199 * remote.c (init_remote_ops): Likewise.
4201 2015-04-01 Sasha Smundak <asmundak@google.com>
4203 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
4204 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
4205 (py-unwind.o): New recipe.
4206 * NEWS: mention Python frame unwinding.
4207 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
4208 gdb/unwinder.py and gdb/command/unwinder.py
4209 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
4211 (execute_unwinders): New function.
4212 * python/lib/gdb/command/unwinders.py: New file.
4213 * python/lib/gdb/unwinder.py: New file.
4214 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
4215 (objfpy_dealloc): Decrement frame_unwinders reference count.
4216 (objfpy_initialize): Create frame_unwinders list.
4217 (objfpy_get_frame_unwinders): New function.
4218 (objfpy_set_frame_unwinders): Ditto.
4219 (objfile_getset): Add frame_unwinders attribute to Objfile.
4220 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
4221 (pspy_dealloc): Decrement frame_unwinders reference count.
4222 (pspy_initialize): Create frame_unwinders list.
4223 (pspy_get_frame_unwinders): New function.
4224 (pspy_set_frame_unwinders): Ditto.
4225 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
4226 * python/py-unwind.c: New file.
4227 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
4228 (objpy_get_frame_unwinders): New prototype.
4229 (gdbpy_initialize_unwind): New prototype.
4230 * python/python.c (gdbpy_apply_type_printers): Call
4231 gdbpy_initialize_unwind.
4233 2015-04-01 Pedro Alves <palves@redhat.com>
4235 * infrun.c (resume): Check currently_stepping after clearing
4236 stepped_breakpoint, not before.
4238 2015-04-01 Pedro Alves <palves@redhat.com>
4240 * infrun.c (print_target_wait_results): Print all the ptid
4243 2015-04-01 Pedro Alves <palves@redhat.com>
4245 * infrun.c (keep_going): Also discard cleanups if inserting
4248 2015-04-01 Pedro Alves <palves@redhat.com>
4250 * infrun.c (wait_for_inferior): Install the
4251 finish_thread_state_cleanup cleanup across the whole function, not
4252 just around handle_inferior_event.
4254 2015-04-01 Pedro Alves <palves@redhat.com>
4256 * infrun.c (resume) <step past permanent breakpoint>: Use
4259 2015-04-01 Pedro Alves <palves@redhat.com>
4261 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
4263 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
4265 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
4267 2015-04-01 Pedro Alves <palves@redhat.com>
4269 * linux-thread-db.c (record_thread): Readd the thread to gdb's
4270 list if it was marked exited.
4272 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
4274 * configure: Regenerated.
4276 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4277 Jan Kratochvil <jan.kratochvil@redhat.com>
4278 Oleg Nesterov <oleg@redhat.com>
4281 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
4282 New enum identifying the various options of the coredump_filter
4284 (struct smaps_vmflags): New struct.
4285 (use_coredump_filter): New variable.
4286 (decode_vmflags): New function.
4287 (mapping_is_anonymous_p): Likewise.
4288 (dump_mapping_p): Likewise.
4289 (linux_find_memory_regions_full): New variables
4290 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
4291 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
4292 parsing of its information. Implement memory mapping filtering
4293 based on its contents.
4294 (show_use_coredump_filter): New function.
4295 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
4296 * NEWS: Mention the possibility of using the
4297 '/proc/PID/coredump_filter' file when generating a corefile.
4298 Mention new command 'set use-coredump-filter'.
4300 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
4302 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
4303 read_memory_unsigned_integer.
4305 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
4307 * Makefile.in (ZLIB): New.
4308 (ZLIBINC): Likewise.
4309 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
4310 (CLIBS): Add $(ZLIB).
4311 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
4313 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
4314 * top.c (print_gdb_configuration): Remove --with-zlib and
4316 * config.in: Regenerated.
4317 * configure: Likewise.
4319 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4321 * NEWS: Mention info os cpus support.
4322 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
4323 (struct osdata_type): Add cpus entry, reorder the entries in
4326 2015-03-31 Matthias Klose <doko@ubuntu.com>
4328 * compile/compile.c (compile_to_object): Allow triplets with or
4331 2015-03-30 Doug Evans <dje@google.com>
4334 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
4335 klass in VAR_DOMAIN.
4337 2015-03-30 Gary Benson <gbenson@redhat.com>
4339 * remote.c (remote_mourn_1): Remove function. Update all callers
4340 to use remote_mourn.
4341 (extended_remote_mourn_1): Remove function. Update all callers
4342 to use extended_remote_mourn.
4343 (extended_remote_attach_1): Remove function. Update all callers
4344 to use extended_remote_attach.
4346 2015-03-28 James Bowman <james.bowman@ftdichip.com>
4348 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
4349 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
4350 (ALLDEPFILES): Add ft32-tdep.c.
4351 * configure.tgt: Add FT32 entry.
4352 * ft32-tdep.c: New file, FT32 target-dependent code.
4353 * ft32-tdep.h: New file, FT32 target-dependent code.
4355 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4358 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 * printcmd.c (print_command_1): Move expr variable scope.
4362 2015-03-27 Joel Brobecker <brobecker@adacore.com>
4364 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
4366 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
4368 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
4371 2015-03-26 Joel Brobecker <brobecker@adacore.com>
4373 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
4374 exception raised while parsing the probe arguments.
4375 Force parsing to be done using the C language parser.
4376 * expression.h (parse_expression_with_language): Declare.
4377 * parse.c (parse_expression_with_language): New function.
4379 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
4381 * MAINTAINERS (Write After Approval): Add "Jon Turney".
4383 2015-03-26 Andy Wingo <wingo@igalia.com>
4386 * dwarf2read.c (struct partial_die_info): Add has_const_value
4388 (add_partial_symbol): Don't punt on symbols that have const_value
4390 (read_partial_die): Detect DW_AT_const_value.
4392 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4395 * printcmd.c (print_command_1): Move expr variable scope.
4397 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4400 * printcmd.c (validate_format): Make the parameter cmdname const.
4402 2015-03-26 Don Breazeal <donb@codesourcery.com>
4404 * remote.c (_initialize_remote): Update comment.
4406 2015-03-26 Pedro Alves <palves@redhat.com>
4407 Jon TURNEY <jon.turney@dronecode.org.uk>
4409 * coffread.c (coff_symfile_read): When constructing the name of an
4410 import stub symbol from import symbol for amd64, only skip the
4411 char after _imp_ if the target is underscored (like i386) and the
4412 char is indeed the target's leading char.
4414 2015-03-25 Pedro Alves <palves@redhat.com>
4416 * target.h <to_async>: Replace 'callback' and 'context' parameters
4417 with boolean 'enable' parameter.
4418 (target_async): Replace CALLBACK and CONTEXT parameters with
4419 boolean ENABLE parameter.
4420 * inf-loop.c (inferior_event_handler): Adjust.
4421 * linux-nat.c (linux_nat_attach, linux_nat_resume)
4422 (linux_nat_resume): Adjust.
4423 (async_client_callback, async_client_context): Delete.
4424 (handle_target_event): Call inferior_event_handler directly.
4425 (linux_nat_async): Replace 'callback' and 'context' parameters
4426 with boolean 'enable' parameter. Adjust. Remove references to
4427 async_client_callback and async_client_context.
4428 (linux_nat_close): Adjust.
4429 * record-btrace.c (record_btrace_async): Replace 'callback' and
4430 'context' parameters with boolean 'enable' parameter. Adjust.
4431 (record_btrace_resume): Adjust.
4432 * record-full.c (record_full_async): Replace 'callback' and
4433 'context' parameters with boolean 'enable' parameter. Adjust.
4434 (record_full_resume, record_full_core_resume): Adjust.
4435 * remote.c (struct remote_state) <async_client_callback,
4436 async_client_context>: Delete fields.
4437 (remote_start_remote, extended_remote_attach_1, remote_resume)
4438 (extended_remote_create_inferior): Adjust.
4439 (remote_async_serial_handler): Call inferior_event_handler
4441 (remote_async): Replace 'callback' and 'context' parameters with
4442 boolean 'enable' parameter. Adjust.
4443 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
4445 * target-delegates.c: Regenerate.
4447 2015-03-25 Gary Benson <gbenson@redhat.com>
4448 Pedro Alves <palves@redhat.com>
4450 * target.c (fileio_ft_t): New typedef, define object vector.
4451 (fileio_fhandles): New static variable.
4452 (is_closed_fileio_fh): New macro.
4453 (lowest_closed_fd): New static variable.
4454 (acquire_fileio_fd): New function.
4455 (release_fileio_fd): Likewise.
4456 (fileio_fd_to_fh): New macro.
4457 (target_fileio_open): Wrap the file descriptor on success.
4458 (target_fileio_pwrite): Updated to use wrapped file descriptor.
4459 (target_fileio_pread): Likewise.
4460 (target_fileio_close): Likewise.
4462 2015-03-24 Pedro Alves <palves@redhat.com>
4464 * thread.c (thread_apply_all_command): Take exited threads into
4467 2015-03-24 Pedro Alves <palves@redhat.com>
4469 * infrun.c (resume, proceed): Mention
4470 switch_back_to_stepped_thread, not switch_back_to_stepping.
4472 2015-03-24 Pedro Alves <palves@redhat.com>
4474 * infrun.c (user_visible_resume_ptid): Rewrite going from
4475 most-locked to unlocked instead of the opposite. Move comment ...
4476 * infrun.h (user_visible_resume_ptid): ... here.
4478 2015-03-24 Pedro Alves <palves@redhat.com>
4480 * linux-nat.c (linux_nat_resume): Output debug logs before trying
4481 to resume the event lwp. Use the lwp's ptid instead of the passed
4482 in (maybe wildcard) ptid.
4483 (stop_wait_callback): Tweak debug log output.
4484 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
4486 (linux_nat_filter_event): In debug output, distinguish a
4487 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
4488 before trying to resume the lwp.
4490 2015-03-24 Joel Brobecker <brobecker@adacore.com>
4492 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
4493 pointer indirection.
4494 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
4495 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
4497 2015-03-24 Joel Brobecker <brobecker@adacore.com>
4499 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
4500 Renames DYN_ATTR_DATA_LOCATION.
4501 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
4502 DYN_ATTR_DATA_LOCATION.
4503 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
4504 instead of DYN_ATTR_DATA_LOCATION.
4506 2015-03-24 Pedro Alves <palves@redhat.com>
4508 * breakpoint.c (until_break_command): Adjust call to proceed.
4509 * gdbthread.h (struct thread_control_state) <stepping_command>:
4511 * infcall.c (run_inferior_call): Adjust call to proceed.
4512 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
4513 Adjust calls to proceed.
4514 (set_step_frame): Set the current thread's step_start_function
4516 (step_once): Adjust calls to proceed.
4517 (jump_command, signal_command, until_next_command)
4518 (finish_backward, finish_forward, proceed_after_attach_callback)
4519 (attach_command_post_wait): Adjust calls to proceed.
4520 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
4521 (do_target_resume): New function, factored out from ...
4522 (resume): ... here. Remove 'step' parameter. Instead, check
4523 currently_stepping to determine whether the thread should be
4525 (proceed): Remove 'step' parameter and don't set the thread's
4526 step_start_function here. Adjust call to 'resume'.
4527 (handle_inferior_event): Adjust calls to 'resume'.
4528 (switch_back_to_stepped_thread): Use do_target_resume instead of
4530 (keep_going): Adjust calls to 'resume'.
4531 * infrun.h (proceed): Remove 'step' parameter.
4533 * windows-nat.c (do_initial_windows_stuff): Adjust call to
4535 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
4537 2015-03-24 Pedro Alves <palves@redhat.com>
4539 * gdbthread.h (struct thread_control_state) <stepping_command>:
4541 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
4542 the thread's stepping_command field.
4543 * infrun.c (resume): Check the thread's stepping_command flag to
4544 determine which threads should be resumed. Rename 'entry_step'
4546 (clear_proceed_status_thread): Clear 'stepping_command'.
4547 (schedlock_applies): Change parameter type to struct thread_info
4549 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
4550 (switch_back_to_stepped_thread): Adjust calls to
4551 'schedlock_applies'.
4552 (_initialize_infrun): Adjust "set scheduler-locking step" help.
4554 2015-03-24 Pedro Alves <palves@redhat.com>
4556 * infrun.c (step_start_function): Delete and ...
4557 * gdbthread.h (struct thread_control_state) <step_start_function>:
4558 ... now a field here.
4559 * infrun.c (clear_proceed_status_thread): Clear the thread's
4560 step_start_function.
4561 (proceed, process_event_stop_test, print_stop_event): Adjust.
4563 2015-03-24 Pedro Alves <palves@redhat.com>
4565 * infrun.c (proceed): No longer handle negative step.
4567 2015-03-24 Gary Benson <gbenson@redhat.com>
4569 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
4570 (x86_linux_prepare_to_resume): Likewise.
4571 * x86-linux-nat.c (x86_linux_new_thread):
4572 Moved to nat/x86-linux.c.
4573 (x86_linux_prepare_to_resume): Likewise.
4574 * nat/x86-linux.c (x86_linux_new_thread): New function.
4575 (x86_linux_prepare_to_resume): Likewise.
4577 2015-03-24 Gary Benson <gbenson@redhat.com>
4579 * nat/x86-linux-dregs.h: New file.
4580 * nat/x86-linux-dregs.c: Likewise.
4581 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
4582 (x86-linux-dregs.o): New rule.
4583 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
4584 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4585 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
4586 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
4587 (x86_linux_dr_get): Likewise.
4588 (x86_linux_dr_set): Likewise.
4589 (x86_linux_dr_get_addr): Likewise.
4590 (x86_linux_dr_get_control): Likewise.
4591 (x86_linux_dr_get_status): Likewise.
4592 (update_debug_registers_callback): Likewise.
4593 (x86_linux_dr_set_control): Likewise.
4594 (x86_linux_dr_set_addr): Likewise.
4595 (x86_linux_update_debug_registers): Likewise.
4597 2015-03-24 Gary Benson <gbenson@redhat.com>
4599 * x86-linux-nat.c (x86_linux_update_debug_registers):
4600 New function, factored out from...
4601 (x86_linux_prepare_to_resume): ...this.
4603 2015-03-24 Gary Benson <gbenson@redhat.com>
4605 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
4606 (x86_linux_dr_set): Likewise.
4607 (x86_linux_dr_get_addr): Likewise.
4608 (x86_linux_dr_get_control): Likewise.
4609 (x86_linux_dr_get_status): Likewise.
4610 (update_debug_registers_callback): Likewise.
4611 (x86_linux_dr_set_control): Likewise.
4612 (x86_linux_dr_set_addr): Likewise.
4613 (x86_linux_prepare_to_resume): Likewise.
4614 (x86_linux_new_thread): Likewise.
4616 2015-03-24 Gary Benson <gbenson@redhat.com>
4618 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
4619 (x86_linux_new_thread): Rename argument.
4621 2015-03-24 Gary Benson <gbenson@redhat.com>
4623 * nat/x86-linux.h: New file.
4624 * nat/x86-linux.c: Likewise.
4625 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
4626 (x86-linux.o): New rule.
4627 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
4628 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4629 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
4630 (lwp_set_arch_private_info): New declaration.
4631 (lwp_arch_private_info): Likewise.
4632 * linux-nat.c (lwp_set_arch_private_info): New function.
4633 (lwp_arch_private_info): Likewise.
4634 * x86-linux-nat.c: Include nat/x86-linux.h.
4635 (arch_lwp_info): Removed structure.
4636 (update_debug_registers_callback):
4637 Use lwp_set_debug_registers_changed.
4638 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
4639 and lwp_set_debug_registers_changed.
4640 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
4642 2015-03-24 Gary Benson <gbenson@redhat.com>
4644 * nat/linux-nat.h (ptid_of_lwp): New declaration.
4645 (lwp_is_stopped): Likewise.
4646 (lwp_stop_reason): Likewise.
4647 * linux-nat.c (ptid_of_lwp): New function.
4648 (lwp_is_stopped): Likewise.
4649 (lwp_is_stopped_by_watchpoint): Likewise.
4650 * x86-linux-nat.c (update_debug_registers_callback):
4652 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
4655 2015-03-24 Gary Benson <gbenson@redhat.com>
4657 * linux-nat.h (linux_stop_lwp): Move declaration to...
4658 * nat/linux-nat.h (linux_stop_lwp): New declaration.
4660 2015-03-24 Gary Benson <gbenson@redhat.com>
4662 * linux-nat.h: Include nat/linux-nat.h.
4663 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
4664 * nat/linux-nat.h (struct lwp_info): New forward declaration.
4665 (iterate_over_lwps_ftype): New typedef.
4666 (iterate_over_lwps): New declaration.
4667 * linux-nat.h (iterate_over_lwps): Update comment. Use
4668 iterate_over_lwps_ftype. Update callback return value check.
4670 2015-03-24 Gary Benson <gbenson@redhat.com>
4672 * x86-nat.h (x86_debug_reg_state): Move declaration to...
4673 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
4675 2015-03-24 Gary Benson <gbenson@redhat.com>
4677 * nat/linux-nat.h (current_lwp_ptid): New declaration.
4678 * linux-nat.c (current_lwp_ptid): New function.
4679 * x86-linux-nat.c: Include nat/linux-nat.h.
4680 (x86_linux_dr_get_addr): Use current_lwp_ptid.
4681 (x86_linux_dr_get_control): Likewise.
4682 (x86_linux_dr_get_status): Likewise.
4683 (x86_linux_dr_set_control): Likewise.
4684 (x86_linux_dr_set_addr): Likewise.
4686 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
4688 PR breakpoints/16466
4689 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
4691 2015-03-23 Joel Brobecker <brobecker@adacore.com>
4693 * ser-mingw.c (ser_windows_setparity): Fix indentation.
4694 * ser-unix.c (hardwire_setparity): Likewise.
4696 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4698 * NEWS: Mention set/show serial parity command.
4699 * monitor.c (monitor_open): Call serial_setparity.
4700 * remote.c (remote_open_1): Likewise.
4701 * ser-base.c (ser_base_serparity): New function.
4702 * ser-base.h (ser_base_setparity): Add declaration.
4703 * ser-go32.c (dos_ops): Set "setparity" field.
4704 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
4706 (ser_windows_setparity): New function.
4707 (hardwire_ops): Add ser_windows_setparity.
4708 (tty_ops): Add NULL for setparity field.
4709 (pipe_ops): Add ser_base_setparity.
4710 (tcp_ops): Likewise.
4711 * ser-pipe.c (pipe_ops): Likewise.
4712 * ser-tcp.c (tcp_ops): Likewise.
4713 * ser-unix.c (hardwire_setparity): Add declaration.
4714 (hardwire_raw): Don't reset PARENB flag.
4715 (hardwire_setparity): New function.
4716 (hardwire_ops): Add hardwire_setparity.
4717 * serial.c (serial_setparity): New function.
4718 (serial_parity): New global.
4719 (parity_none, parity_odd, parity_even, parity_enums, parity):
4721 (set_parity): New function.
4722 (_initialize_serial): Add set/show serial parity commands.
4723 * serial.h (GDBPARITY_NONE): Define.
4724 (GDBPARITY_ODD): Define.
4725 (GDBPARITY_EVEN): Define.
4726 (serial_setparity) Add declaration.
4727 (struct serial_ops): Add setparity field.
4728 * target.h (serial_parity): Add declaration.
4730 2015-03-23 Keith Seitz <keiths@redhat.com>
4732 * linespec.c (linespec_lexer_lex_keyword): Update comment.
4734 2015-03-23 Keith Seitz <keiths@redhat.com>
4736 * breakpoint.c (parse_breakpoint_sals): Use
4737 linespec_lexer_lex_keyword to ascertain if the user specified
4739 * linespec.c [IF_KEYWORD_INDEX]: Define.
4740 (linespec_lexer_lex_keyword): Export.
4741 (struct ls_parser) <keyword_ok>: Remove.
4742 A keyword is only a keyword if not followed by another keyword.
4743 (linespec_lexer_lex_one): Remove keyword_ok handling.
4744 Add comment explaining why the parsing stream is not advanced
4745 when a keyword is seen.
4746 (parse_linespec): Remove parser->keyword_ok.
4747 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
4749 2015-03-23 Keith Seitz <keiths@redhat.com>
4752 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
4753 if we find a static method with DW_AT_vtable_elem_location.
4755 2015-03-21 Eli Zaretskii <eliz@gnu.org>
4757 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
4758 before the second loop, to avoid undefined behavior. Reported by
4759 Anton Blanchard <anton@samba.org>.
4761 2015-03-20 Keven Boell <keven.boell@intel.com>
4763 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
4764 data_location usage to linked list.
4765 (resolve_dynamic_type_internal): Adapt data_location to
4767 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
4768 (copy_type_recursive, copy_type): Add copy of linked list.
4769 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
4770 (struct dynamic_prop_list): New struct.
4771 * dwarf2read.c (set_die_type): Set data_location data.
4773 2015-03-20 Pedro Alves <palves@redhat.com>
4775 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
4776 inner block and make it const.
4777 * machoread.c (get_archive_prefix_len): Make "lparen" const.
4779 2015-03-20 Pedro Alves <palves@redhat.com>
4781 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
4782 * breakpoint.h (set_breakpoint_condition): Update declaration.
4784 2015-03-20 Pedro Alves <palves@redhat.com>
4786 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
4788 2015-03-20 Pedro Alves <palves@redhat.com>
4790 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
4792 2015-03-20 Pedro Alves <palves@redhat.com>
4794 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
4796 2015-03-20 Pedro Alves <palves@redhat.com>
4798 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
4799 (nto_init_solib_absolute_prefix): Likewise.
4801 2015-03-20 Pedro Alves <palves@redhat.com>
4803 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
4804 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
4806 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4808 * config/djgpp/README: Remove gdb.hp.
4810 2015-03-20 Yao Qi <yao.qi@linaro.org>
4812 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
4813 set_gdbarch_cannot_step_breakpoint.
4815 2015-03-19 Pedro Alves <palves@redhat.com>
4817 * linux-nat.c (linux_resume_one_lwp): Rename to ...
4818 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
4819 instead call perror_with_name.
4820 (check_ptrace_stopped_lwp_gone): New function.
4821 (linux_resume_one_lwp): Reimplement as wrapper around
4822 linux_resume_one_lwp_throw that swallows errors if the LWP is
4824 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
4825 swallows errors if the LWP is gone. Use
4826 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
4828 2015-03-19 Pedro Alves <palves@redhat.com>
4830 * linux-nat.c (status_callback): Return early if the LWP has no
4833 2015-03-19 Pedro Alves <palves@redhat.com>
4835 * linux-nat.c (select_event_lwp_callback): Update comment to no
4836 longer mention SIGTRAP.
4838 2015-03-18 Tristan Gingold <gingold@adacore.com>
4840 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
4841 redirection code to ...
4842 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
4843 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
4845 2015-03-18 Gary Benson <gbenson@redhat.com>
4847 (remote_protocol_features): Remove the "vFile:fstat" feature.
4848 (remote_hostio_fstat): Probe for "vFile:fstat" support.
4850 2015-03-11 Yao Qi <yao.qi@linaro.org>
4853 * aarch64-linux-tdep.c: Include xml-syscall.h
4854 (aarch64_linux_get_syscall_number): New function.
4855 (aarch64_linux_init_abi): Call
4856 set_gdbarch_get_syscall_number.
4857 * syscalls/aarch64-linux.xml: New file.
4859 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4861 * ser-base.h (ser_base_setstopbits): Change second argument name
4862 from "rate" to "num".
4864 2015-03-17 Gary Benson <gbenson@redhat.com>
4865 Luke Allardyce <lukeallardyce@gmail.com>
4868 * common/common-remote-fileio.h (sys/stat.h): New include.
4869 (stuct stat): Remove forward declaration.
4871 2015-03-16 John Baldwin <jhb@FreeBSD.org>
4873 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
4874 before writing core register notes.
4876 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
4877 Pedro Alves <palves@redhat.com>
4879 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
4880 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
4881 (tgoto): Wrap with extern "C".
4883 2015-03-16 Pedro Alves <palves@redhat.com>
4884 Yuanhui Zhang <asmwarrior@gmail.com>
4886 * stub-termcap.c (tputs): Change prototype.
4888 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
4889 Pedro Alves <palves@redhat.com>
4891 * windows-nat.c (struct thread_info_struct): Rename to ...
4892 (struct windows_thread_info_struct): ... this.
4893 (thread_info): Rename to ...
4894 (windows_thread_info): ... this.
4897 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4898 Pedro Alves <palves@redhat.com>
4900 * NEWS: New Removed targets and native configurations.
4902 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4905 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
4906 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
4907 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
4908 ia64-hpux-tdep.h, solib-ia64-hpux.h.
4909 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
4910 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
4911 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
4913 * config/ia64/hpux.mh: Remove file.
4914 * config/pa/hpux.mh: Remove file.
4915 * configure: Rebuilt.
4916 * configure.ac (dlgetmodinfo, somread.o): Remove.
4917 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4918 (ia64-*-hpux*): Remove its float format exception.
4919 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4920 * hppa-hpux-nat.c: Remove file.
4921 * hppa-hpux-tdep.c: Remove file.
4922 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
4923 Move them here from hppa-tdep.h
4924 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
4925 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
4926 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
4927 Move them to hppa-tdep.c.
4928 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
4930 * ia64-hpux-nat.c: Remove file.
4931 * ia64-hpux-tdep.c: Remove file.
4932 * ia64-hpux-tdep.h: Remove file.
4933 * inf-ttrace.c: Remove file.
4934 * inf-ttrace.h: Remove file.
4935 * solib-ia64-hpux.c: Remove file.
4936 * solib-ia64-hpux.h: Remove file.
4937 * solib-pa64.c: Remove file.
4938 * solib-pa64.h: Remove file.
4939 * solib-som.c: Remove file.
4940 * solib-som.h: Remove file.
4941 * somread.c: Remove file.
4943 2015-03-13 John Baldwin <jhb@FreeBSD.org>
4945 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
4946 * config.in: Regenerate.
4947 * configure: Regenerate.
4948 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
4950 (fbsd_find_memory_regions): Use kinfo_getvmmap to
4951 enumerate memory regions if present.
4953 2015-03-13 John Baldwin <jhb@FreeBSD.org>
4955 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
4956 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
4958 (i386fbsd_sigtramp_p): Likewise.
4960 2015-03-12 John Baldwin <jhb@FreeBSD.org>
4962 * MAINTAINERS (Write After Approval): Add John Baldwin.
4964 2015-03-12 Gary Benson <gbenson@redhat.com>
4966 * solib.c (_initialize_solib): Make "set/show sysroot" use
4967 add_setshow_optional_filename_cmd so it can be restored to
4968 empty after being set.
4970 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
4972 * Makefile.in (SFILES): New source break-catch-syscall.c.
4973 (COMMON_OBS): New object break-catch-syscall.o.
4974 * break-catch-syscall.c: New file.
4975 * breakpoint.c: Remove inclusion of "xml-syscall.h".
4976 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
4977 (struct syscall_catchpoint): Likewise.
4978 (dtor_catch_syscall): Likewise.
4979 (catch_syscall_inferior_data): Likewise.
4980 (struct catch_syscall_inferior_data): Likewise.
4981 (get_catch_syscall_inferior_data): Likewise.
4982 (catch_syscall_inferior_data_cleanup): Likewise.
4983 (insert_catch_syscall): Likewise.
4984 (remove_catch_syscall): Likewise.
4985 (breakpoint_hit_catch_syscall): Likewise.
4986 (print_it_catch_syscall): Likewise.
4987 (print_one_catch_syscall): Likewise.
4988 (print_mention_catch_syscall): Likewise.
4989 (print_recreate_catch_syscall): Likewise.
4990 (catch_syscall_breakpoint_ops): Likewise.
4991 (syscall_catchpoint_p): Likewise.
4992 (create_syscall_event_catchpoint): Likewise.
4993 (catch_syscall_split_args): Likewise.
4994 (catch_syscall_command_1): Likewise.
4995 (is_syscall_catchpoint_enabled): Likewise.
4996 (catch_syscall_enabled): Likewise.
4997 (catching_syscall_number): Likewise.
4998 (catch_syscall_completer): Likewise.
4999 (clear_syscall_counts): Likewise.
5000 (initialize_breakpoint_ops): Move initialization of syscall
5001 catchpoints to break-catch-syscall.c.
5002 (_initialize_breakpoint): Move code related to syscall catchpoints
5003 to break-catch-syscall.c.
5005 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
5007 * breakpoint.c (breakpoint_find_if): New function.
5008 * breakpoint.h (breakpoint_find_if): New prototype.
5010 2015-03-11 Gary Benson <gbenson@redhat.com>
5012 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
5013 * remote-fileio.c (remote_fileio_to_host_uint): New function.
5014 (remote_fileio_to_host_ulong): Likewise.
5015 (remote_fileio_to_host_mode): Likewise.
5016 (remote_fileio_to_host_time): Likewise.
5017 (remote_fileio_to_host_stat): Likewise.
5018 * remote.c (PACKET_vFile_fstat): New enum value.
5019 (remote_protocol_features): Register the "vFile:fstat" feature.
5020 (remote_hostio_fstat): New function.
5021 (remote_bfd_iovec_stat): Use the above.
5022 (_initialize_remote): Register new "set/show remote
5023 hostio-fstat-packet" command.
5024 * symfile.c (separate_debug_file_exists): Update comment.
5025 * NEWS: Announce new vFile:fstat packet.
5027 2015-03-11 Gary Benson <gbenson@redhat.com>
5029 * common/common-remote-fileio.h: New file.
5030 * common/common-remote-fileio.c: Likewise.
5031 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
5032 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
5033 (COMMON_OBS): Add common-remote-fileio.o.
5034 (common-remote-fileio.o): New rule.
5035 * remote-fileio.h (common-remote-fileio.h): New include.
5036 * remote-fileio.c (gdb/fileio.h): Do not include.
5037 (remote_fileio_to_be): Moved to common-remote-fileio.h.
5038 (remote_fileio_to_fio_uint): Likewise.
5039 (remote_fileio_to_fio_time): Likewise.
5040 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
5041 (remote_fileio_to_fio_mode): Likewise.
5042 (remote_fileio_to_fio_ulong): Likewise.
5043 (remote_fileio_to_fio_stat): Likewise.
5045 2015-03-11 Andy Wingo <wingo@igalia.com>
5047 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
5048 we were checking the cached type, not the cached dynamic type.
5050 2015-03-11 Andy Wingo <wingo@igalia.com>
5052 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
5053 other strings, as these are on the GC'd heap, and will be
5054 collected along with the smob.
5056 2015-03-11 Andy Wingo <wingo@igalia.com>
5058 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
5059 (objfile_functions): Bind gdbscm_objfile_progspace to
5061 * guile/lib/gdb.scm: Add objfile-progspace to exports.
5063 2015-03-11 Andy Wingo <wingo@igalia.com>
5065 * guile/guile.c (_initialize_guile): Disable automatic
5066 finalization, if Guile offers us that possibility.
5067 * guile/guile.c (call_initialize_gdb_module):
5068 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
5069 finalizers in appropriate places.
5070 * configure.ac (AC_TRY_LIBGUILE): Add a check for
5071 scm_set_automatic_finalization_enabled.
5072 * configure: Regenerated.
5074 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5076 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
5079 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
5081 * s390-linux-nat.c (struct arch_lwp_info): New.
5082 (s390_fix_watch_points): Rename to...
5083 (s390_prepare_to_resume): ...this. Skip the PER info update
5084 unless the watch points have changed.
5085 (s390_refresh_per_info, s390_new_thread): New functions.
5086 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
5087 s390_fix_watch_points.
5088 (s390_remove_watchpoint): Likewise.
5089 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
5090 Register s390_prepare_to_resume.
5092 2015-03-09 Pedro Alves <palves@redhat.com>
5095 2015-03-07 Pedro Alves <palves@redhat.com>
5096 * common/gdb_socket.h: New file.
5097 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5099 (net_open): Use union gdb_sockaddr_u.
5101 2015-03-07 Pedro Alves <palves@redhat.com>
5103 * configure.ac (build_warnings): Move -Wmissing-prototypes
5104 -Wdeclaration-after-statement -Wmissing-parameter-type
5105 -Wold-style-declaration -Wold-style-definition to the C-specific
5107 * configure: Regenerate.
5109 2015-03-07 Pedro Alves <palves@redhat.com>
5111 * common/gdb_socket.h: New file.
5112 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
5114 (net_open): Use union gdb_sockaddr_u.
5116 2015-03-07 Pedro Alves <palves@redhat.com>
5118 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
5119 (exceptions_state_mc_action_iter)
5120 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5122 [__cplusplus] (try_scope_depth): New global.
5123 [__cplusplus] (exception_try_scope_entry)
5124 (exception_try_scope_exit, gdb_exception_sliced_copy)
5125 (exception_rethrow): New functions.
5126 (throw_exception): In C++ mode, throw
5127 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
5128 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
5129 (throw_it): In C++ mode, use try_scope_depth.
5130 * common/common-exceptions.h [!__cplusplus]
5131 (exceptions_state_mc_action_iter)
5132 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5134 [__cplusplus] (exception_try_scope_entry)
5135 (exception_try_scope_exit, exception_rethrow): Declare.
5136 [__cplusplus] (struct exception_try_scope): New struct.
5137 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
5139 (struct gdb_exception_RETURN_MASK_ALL)
5140 (struct gdb_exception_RETURN_MASK_ERROR)
5141 (struct gdb_exception_RETURN_MASK_QUIT): New types.
5143 2015-03-07 Pedro Alves <palves@redhat.com>
5145 * main.c (handle_command_errors): Remove volatile qualifier from
5148 2015-03-07 Pedro Alves <palves@redhat.com>
5150 * breakpoint.c (save_breakpoints): Adjust to avoid code between
5152 * gdbtypes.c (safe_parse_type): Remove empty line.
5153 (types_deeply_equal):
5154 * guile/scm-frame.c (gdbscm_frame_name):
5155 * linux-thread-db.c (find_new_threads_once):
5156 * python/py-breakpoint.c (bppy_get_commands):
5157 * record-btrace.c (record_btrace_insert_breakpoint)
5158 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
5159 (record_btrace_start_replaying): Adjust to avoid code between TRY
5162 2015-03-07 Pedro Alves <palves@redhat.com>
5164 * common/common-exceptions.c (struct catcher) <exception>: No
5165 longer a pointer to volatile exception. Now an exception value.
5166 <mask>: Delete field.
5167 (exceptions_state_mc_init): Remove all parameters. Adjust.
5168 (exceptions_state_mc): No longer pop the catcher here.
5169 (exceptions_state_mc_catch): New function.
5170 (throw_exception): Adjust.
5171 * common/common-exceptions.h (exceptions_state_mc_init): Remove
5173 (exceptions_state_mc_catch): Declare.
5174 (TRY_CATCH): Rename to ...
5175 (TRY): ... this. Remove EXCEPTION and MASK parameters.
5176 (CATCH, END_CATCH): New.
5177 All callers adjusted.
5179 2015-03-07 Tom Tromey <tromey@redhat.com>
5181 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
5183 2015-03-07 Pedro Alves <palves@redhat.com>
5185 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5186 (amd64_epilogue_frame_cache): Normal exception handling code.
5187 * break-catch-throw.c (check_status_exception_catchpoint)
5188 (re_set_exception_catchpoint): Ditto.
5189 * cli/cli-interp.c (safe_execute_command):
5190 * cli/cli-script.c (script_from_file): Ditto.
5191 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
5193 * compile/compile-object-run.c (compile_object_run): Ditto.
5194 * cp-abi.c (baseclass_offset): Ditto.
5195 * cp-valprint.c (cp_print_value): Ditto.
5196 * exceptions.c (catch_exceptions_with_msg):
5197 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
5198 * frame.c (get_frame_address_in_block_if_available): Ditto.
5199 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5200 (i386_sigtramp_frame_cache): Ditto.
5201 * infcmd.c (post_create_inferior): Ditto.
5202 * linespec.c (parse_linespec, find_linespec_symbols):
5203 * p-valprint.c (pascal_object_print_value): Ditto.
5204 * parse.c (parse_expression_for_completion): Ditto.
5205 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5206 * remote.c (remote_get_noisy_reply): Ditto.
5207 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
5208 * solib-svr4.c (solib_svr4_r_map): Ditto.
5210 2015-03-06 Gary Benson <gbenson@redhat.com>
5212 * common/common-utils.h (startswith): New inline function.
5213 All places where this logic was used updated to use the above.
5215 2015-03-05 Pedro Alves <palves@redhat.com>
5218 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
5219 after reading the breakpoint's shadow memory.
5221 2015-03-05 Mark Kettenis <kettenis@gnu.org>
5223 * hppabsd-nat.c: Remove file.
5224 * hppaobsd-nat.c: New file.
5225 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
5227 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
5230 2015-03-04 Pedro Alves <palves@redhat.com>
5232 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
5233 (target_decr_pc_after_break): Delete declaration.
5234 * target.c (default_target_decr_pc_after_break)
5235 (target_decr_pc_after_break): Delete.
5236 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
5237 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
5238 * linux-thread-db.c (check_event): Likewise.
5239 * infrun.c (adjust_pc_after_break): Likewise.
5240 * darwin-nat.c (cancel_breakpoint): Likewise.
5241 * aix-thread.c (aix_thread_wait): Likewise.
5242 * target-delegates.c: Regenerate.
5244 2015-03-04 Pedro Alves <palves@redhat.com>
5246 * linux-nat.c (save_sigtrap): Check for breakpoints before
5247 checking watchpoints.
5248 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
5249 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
5250 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
5251 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
5252 (linux_nat_stopped_by_sw_breakpoint)
5253 (linux_nat_supports_stopped_by_sw_breakpoint)
5254 (linux_nat_stopped_by_hw_breakpoint)
5255 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
5256 (linux_nat_wait_1): Don't re-increment the PC if relying on
5257 SIGTRAP's siginfo->si_code.
5258 (linux_nat_add_target): Install new target methods.
5259 * linux-thread-db.c (check_event): Don't account for breakpoint PC
5260 offset if the target already adjusted the PC.
5261 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
5262 (GDB_ARCH_TRAP_BRKPT): New.
5263 (TRAP_HWBKPT): Define if not already defined.
5265 2015-03-04 Pedro Alves <palves@redhat.com>
5267 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
5268 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
5270 <stop_reason>: New field.
5271 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
5272 (packet_set_cmd_state): New function.
5273 (remote_protocol_features): Register the "swbreak" and "hwbreak"
5275 (remote_query_supported): If not disabled with the corresponding
5276 "set remote foo-packet" command, report support for the swbreak
5277 and hwbreak features.
5278 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
5280 <stop_reason>: New field.
5281 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
5282 (remote_wait_as): Adjust.
5283 (remote_stopped_by_sw_breakpoint)
5284 (remote_supports_stopped_by_sw_breakpoint)
5285 (remote_stopped_by_hw_breakpoint)
5286 (remote_supports_stopped_by_hw_breakpoint): New functions.
5287 (remote_stopped_by_watchpoint): New function.
5288 (init_remote_ops): Install them.
5289 (_initialize_remote): Register new "set/show remote
5290 swbreak-feature-packet" and "set/show remote
5291 swbreak-feature-packet" commands.
5293 2015-03-04 Pedro Alves <palves@redhat.com>
5295 * btrace.h: Include target/waitstatus.h.
5296 (struct btrace_thread_info) <stop_reason>: New field.
5297 * record-btrace.c (record_btrace_step_thread): Use
5298 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5299 (record_btrace_decr_pc_after_break): Delete.
5300 (record_btrace_stopped_by_sw_breakpoint)
5301 (record_btrace_supports_stopped_by_sw_breakpoint)
5302 (record_btrace_stopped_by_hw_breakpoint)
5303 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
5304 (init_record_btrace_ops): Install them.
5305 * record-full.c (record_full_hw_watchpoint): Delete and replace
5307 (record_full_stop_reason): ... this throughout.
5308 (record_full_exec_insn): Adjust.
5309 (record_full_wait_1): Adjust. No longer re-increment the PC.
5310 (record_full_wait_1): Adjust. Use
5311 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5312 (record_full_stopped_by_watchpoint): Adjust.
5313 (record_full_stopped_by_sw_breakpoint)
5314 (record_full_supports_stopped_by_sw_breakpoint)
5315 (record_full_supports_stopped_by_sw_breakpoint)
5316 (record_full_stopped_by_hw_breakpoint)
5317 (record_full_supports_stopped_by_hw_breakpoint): New functions.
5318 (init_record_full_ops, init_record_full_core_ops): Install them.
5319 * record.c (record_check_stopped_by_breakpoint): New function.
5320 * record.h: Include target/waitstatus.h.
5321 (record_check_stopped_by_breakpoint): New declaration.
5323 2015-03-04 Pedro Alves <palves@redhat.com>
5325 enum lwp_stop_reason -> enum target_stop_reason
5326 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
5327 (linux_nat_stopped_by_watchpoint, status_callback)
5328 (linux_nat_wait_1): Adjust.
5329 * linux-nat.h (enum lwp_stop_reason): Delete.
5330 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
5331 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
5332 * target/waitstatus.h (enum target_stop_reason): New.
5334 2015-03-04 Pedro Alves <palves@redhat.com>
5336 * breakpoint.c (need_moribund_for_location_type): New function.
5337 (bpstat_stop_status): Don't skipping checking moribund locations
5338 of breakpoint types which the target tell caused a stop.
5339 (program_breakpoint_here_p): New function, factored out from ...
5340 (bp_loc_is_permanent): ... this.
5341 (update_global_location_list): Don't create a moribund location if
5342 the target supports reporting stops of the type of the removed
5344 * breakpoint.h (program_breakpoint_here_p): New declaration.
5345 * infrun.c (adjust_pc_after_break): Return early if the target has
5346 already adjusted the PC. Add comments.
5347 (handle_signal_stop): If nothing explains a signal, and the target
5348 tells us the stop was caused by a software breakpoint, check if
5349 there's a breakpoint instruction in the memory. If so, adjust the
5350 PC before presenting the stop to the user. Otherwise, ignore the
5351 trap. If nothing explains a signal, and the target tells us the
5352 stop was caused by a hardware breakpoint, ignore the trap.
5353 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
5354 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
5355 to_supports_stopped_by_hw_breakpoint>: New fields.
5356 (target_stopped_by_sw_breakpoint)
5357 (target_supports_stopped_by_sw_breakpoint)
5358 (target_stopped_by_hw_breakpoint)
5359 (target_supports_stopped_by_hw_breakpoint): Define.
5360 * target-delegates.c: Regenerate.
5362 2015-03-04 Pedro Alves <palves@redhat.com>
5364 * infrun.c (follow_fork_inferior): Use the whole of the
5365 inferior_ptid and pending_follow.related_pid ptids instead of
5366 building ptids from the process components. Adjust verbose output
5367 to use target_pid_to_str.
5368 * linux-nat.c (linux_child_follow_fork): Use the whole of the
5369 inferior_ptid and pending_follow.related_pid ptids instead of
5370 building ptids from the process components.
5372 2015-03-04 Mark Kettenis <kettenis@gnu.org>
5374 * inf-ptrace.c [PT_GET_PROCESS_STATE]
5375 (inf_ptrace_insert_fork_catchpoint): New function.
5376 (inf_ptrace_remove_fork_catchpoint): New function.
5377 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
5379 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5381 * s390-linux-tdep.c (s390_register_name): Return empty string
5382 instead of NULL for registers that shouldn't be visible.
5384 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5386 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
5387 XML file for 64-bit targets.
5389 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
5391 * target.h (find_default_create_inferior): Remove declaration.
5392 (find_default_attach): Likewise.
5394 2015-03-03 Pedro Alves <palves@redhat.com>
5396 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
5397 Use ptid_get_pid to get the overall process id when resuming all
5400 2015-03-03 Pedro Alves <palves@redhat.com>
5402 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
5403 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
5404 * inf-ptrace.c (get_ptrace_pid): New function.
5405 (inf_ptrace_resume): Use it.
5406 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
5409 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5411 * nat/linux-btrace.c: Include sys/utsname.h.
5412 (linux_determine_kernel_ptr_bits): New.
5413 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
5414 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
5417 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5419 * btrace.c (ftrace_update_function): Treat return as tailcall for
5420 "_dl_runtime_resolve".
5422 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
5424 * btrace.h (btrace_function) <lbegin, lend>: Remove.
5425 * btrace.c (ftrace_debug): Do not print the line range.
5426 (ftrace_skip_file, ftrace_update_lines): Remove.
5427 (ftrace_new_function): Remove lbegin and lend initialization.
5428 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
5429 * record-btrace.c (btrace_compute_src_line_range): New.
5430 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
5432 2015-03-02 Pedro Alves <palves@redhat.com>
5434 * infrun.c (follow_exec): Delete all threads of the process except
5435 the event thread. Extended comments.
5437 2015-03-02 Joel Brobecker <brobecker@adacore.com>
5439 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
5441 2015-03-02 Joel Brobecker <brobecker@adacore.com>
5443 * utils.h: Remove <stdbool.h> #include.
5444 (producer_is_gcc): Change return type to "int".
5445 * utils.c (producer_is_gcc): Change return type to int.
5446 Return 1 instead of true, and 0 instead of false.
5447 Adjust function documentation accordingly.
5449 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5451 * s390-linux-nat.c (have_regset_vxrs): New static variable.
5452 (s390_linux_fetch_inferior_registers): Handle vector registers, if
5454 (s390_linux_store_inferior_registers): Likewise.
5455 (s390_get_hwcap): Remove function. Embed its logic...
5456 (s390_read_description): ...here. Yield a target description with
5457 vector registers if applicable.
5458 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
5459 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
5460 "features/s390x-tevx-linux64.c".
5461 (struct gdbarch_tdep) <v0_full_regnum>: New field.
5462 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
5463 for "GNU/Linux-specific registers".
5464 (s390_dwarf_reg_r0l): New enum value.
5465 (s390_dwarf_reg_to_regnum): Support vector registers.
5466 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
5467 of GPR lower halves.
5468 (regnum_is_vxr_full): New function.
5469 (s390_register_name): New function.
5470 (s390_pseudo_register_name): Handle v0-v15, which are composed of
5471 f0-f15 and v0l-v15l.
5472 (s390_pseudo_register_type): Likewise.
5473 (s390_pseudo_register_read): Likewise.
5474 (s390_pseudo_register_write): Likewise.
5475 (s390_value_from_register): Account for the fact that values are
5476 placed left-justified in vector registers.
5477 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
5478 the vector reggroup and omit them from the general reggroup.
5479 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
5480 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
5481 (s390_iterate_over_regset_sections): Add iterations for the two
5483 (s390_core_read_description): Yield a target description with
5484 vector registers if applicable.
5485 (s390_gdbarch_init): Handle target descriptions with vector
5486 registers. Add "register_name" gdbarch method.
5487 (_initialize_s390_tdep): Call new tdesc initialization functions.
5488 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
5489 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
5490 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
5491 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
5492 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
5493 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
5494 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
5495 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
5496 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
5497 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
5498 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
5499 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
5500 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
5501 (S390_NUM_REGS): Adjust value.
5502 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
5503 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
5504 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
5505 * NEWS: Announce S/390 vector register support.
5507 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
5509 * features/s390-tevx-linux64.xml: New file.
5510 * features/s390-vx-linux64.xml: New file.
5511 * features/s390-vx.xml: New file.
5512 * features/s390x-tevx-linux64.xml: New file.
5513 * features/s390x-vx-linux64.xml: New file.
5514 * features/Makefile (WHICH): Add s390-vx-linux64,
5515 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
5516 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
5517 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
5519 * features/s390-tevx-linux64.c: New generated file.
5520 * features/s390-vx-linux64.c: Likewise.
5521 * features/s390x-tevx-linux64.c: Likewise.
5522 * features/s390x-vx-linux64.c: Likewise.
5523 * regformats/s390-tevx-linux64.dat: Likewise.
5524 * regformats/s390-vx-linux64.dat: Likewise.
5525 * regformats/s390x-tevx-linux64.dat: Likewise.
5526 * regformats/s390x-vx-linux64.dat: Likewise.
5528 2015-02-28 Doug Evans <xdje42@gmail.com>
5530 * symtab.h (struct symtab) <next>: Fix comment.
5532 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
5534 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
5537 2015-02-27 Pedro Alves <palves@redhat.com>
5539 * dtrace-probe.c (dtrace_probe_ops): Make extern.
5541 2015-02-27 Pedro Alves <palves@redhat.com>
5543 * common/common-exceptions.h (exception_none): Declare.
5544 * common/common-exceptions.c (exception_none): Moved from
5546 (exceptions_state_mc_init): Use exception_none.
5547 * exceptions.c (exception_none): Move to
5548 common/common-exceptions.c.
5549 * exceptions.h (exception_none): Move to
5550 common/common-exceptions.h.
5552 2015-02-27 Pedro Alves <palves@redhat.com>
5554 * main.c (catch_command_errors, catch_command_errors_const):
5555 Remove 'mask' argument. Adjust.
5556 (captured_main): Adjust callers.
5558 2015-02-27 Pedro Alves <palves@redhat.com>
5560 * python/python-internal.h: Include "extension-priv.h".
5562 2015-02-27 Pedro Alves <palves@redhat.com>
5564 * breakpoint.h (enum print_stop_action): Move further up in the
5567 2015-02-27 Pedro Alves <palves@redhat.com>
5569 * gdbarch.sh: Include regcache.h.
5570 * gdbarch.h: Regenerate.
5572 2015-02-27 Pedro Alves <palves@redhat.com>
5574 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
5575 Remove duplicate const.
5576 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
5579 2015-02-27 Pedro Alves <palves@redhat.com>
5581 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
5582 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
5583 * features/feature_to_c.sh: Tag the generated xml_builtin array
5584 with extern const in C++ mode.
5586 2015-02-27 Tom Tromey <tromey@redhat.com>
5588 * minidebug.c (struct lzma_stream): Rename to ...
5589 (struct gdb_lzma_stream): ... this.
5590 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
5592 2015-02-27 Pedro Alves <palves@redhat.com>
5594 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
5596 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5597 (mi_cmd_stack_list_variables): Use it.
5599 2015-02-27 Pedro Alves <palves@redhat.com>
5601 * x86-linux-nat.c (u_debugreg_offset): New function.
5602 (x86_linux_dr_get, x86_linux_dr_set): Use it.
5604 2015-02-27 Pedro Alves <palves@redhat.com>
5606 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
5608 Include break-common.h.
5610 2015-02-27 Tom Tromey <tromey@redhat.com>
5611 Pedro Alves <palves@redhat.com>
5613 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
5614 local used to iterate over enums.
5615 * completer.c (signal_completer): Likewise.
5616 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
5617 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5618 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
5619 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
5620 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
5621 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
5622 * tui-wingeneral.c (tui_refresh_all): Likewise.
5624 2015-02-27 Pedro Alves <palves@redhat.com>
5626 * target.h: Include "infrun.h".
5628 2015-02-27 Pedro Alves <palves@redhat.com>
5630 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
5632 2015-02-27 Pedro Alves <palves@redhat.com>
5634 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
5636 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
5638 2015-02-27 Pedro Alves <palves@redhat.com>
5640 * cli-out.c (_rl_erase_entire_line): Move declaration out of
5641 cli_mld_erase_entire_line, and make it extern "C".
5642 * common/common-defs.h (EXTERN_C): New.
5643 * completer.c (_rl_completion_prefix_display_length)
5644 (_rl_print_completions_horizontally, QSFUNC): Move declarations
5645 out of gdb_display_match_list_1.
5646 (_rl_qsort_string_compare): Move declaration out of
5647 gdb_display_match_list_1, and make it extern "C".
5648 * defs.h (re_comp): Use EXTERN_C.
5649 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
5650 and make it extern "C".
5651 (monstartup): Move declaration out of maintenance_set_profile_cmd,
5652 and make it extern "C".
5653 (main): Move declaration out of maintenance_set_profile_cmd.
5654 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
5657 2015-02-27 Pedro Alves <palves@redhat.com>
5659 * python/python.c (GdbMethods): Rename to ...
5660 (python_GdbMethods): ... this and make extern.
5661 (GdbModuleDef): Rename to ...
5662 (python_GdbModuleDef): ... this and make extern.
5664 2015-02-27 Pedro Alves <palves@redhat.com>
5666 * record-btrace.c (set_record_btrace_cmdlist)
5667 (show_record_btrace_cmdlist): Remove redefinitions.
5669 2015-02-27 Tom Tromey <tromey@redhat.com>
5670 Pedro Alves <palves@redhat.com>
5672 * dwarf2-frame.c (enum cfa_how_kind, struct
5673 dwarf2_frame_state_reg_info): Move out of struct
5675 * dwarf2read.c (struct tu_stats): Move out of struct
5677 (struct file_entry): Move out of struct line_header.
5678 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
5679 typedef_field_list): Move out of struct field_info.
5680 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
5681 Move out of struct dynamic_prop.
5682 (union type_owner, union field_location, struct field, struct
5683 range_bounds, union type_specific): Move out of struct main_type.
5684 (struct fn_fieldlist, struct fn_field, struct typedef_field)
5685 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
5686 (struct call_site_target, union call_site_parameter_u, struct
5687 call_site_parameter): Move out of struct call_site.
5688 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
5690 (enum srcdest_kind): Move out of struct srcdest.
5691 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
5692 * prologue-value.h (enum prologue_value_kind): Move out of struct
5694 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
5696 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
5697 out of struct field_info.
5698 * symfile.h (struct other_sections): Move out of struct
5700 * symtab.c (struct symbol_cache_slot): Move out struct
5702 * target-descriptions.c (enum tdesc_type_kind): Move out of
5703 typedef struct tdesc_type.
5704 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
5705 struct tui_line_or_address.
5706 * value.c (enum internalvar_kind, union internalvar_data): Move
5707 out of struct internalvar.
5708 * xtensa-tdep.h (struct ctype_cache): Move out of struct
5711 2015-02-27 Tom Tromey <tromey@redhat.com>
5712 Pedro Alves <palves@redhat.com>
5714 Rename symbols whose names are reserved C++ keywords throughout.
5716 2015-02-27 Pedro Alves <palves@redhat.com>
5718 * Makefile.in (COMPILER): New, get it from autoconf.
5719 (COMPILE.pre, CC_LD): Use COMPILER.
5720 (CXX): Get from autoconf instead.
5721 (CXX_FOR_TARGET): Default to g++ instead of gcc.
5722 * acinclude.m4: Include build-with-cxx.m4.
5723 * build-with-cxx.m4: New file.
5724 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
5725 Disable -Werror by default if building in C++ mode.
5726 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
5727 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
5728 Run supported-warning-flags tests with the C++ compiler.
5729 Save/restore CXXFLAGS too.
5730 * configure: Regenerate.
5732 2015-02-27 Pedro Alves <palves@redhat.com>
5734 * libiberty.m4: New file.
5735 * acinclude.m4: Include libiberty.m4.
5736 * configure.ac: Call libiberty_INIT.
5737 * config.in, configure: Regenerate.
5739 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5741 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
5742 31-bit targets, but 64-bit targets as well.
5743 (s390_gnu_triplet_regexp): New function.
5744 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
5745 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
5748 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
5750 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
5751 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
5752 from CONTEXT_DEBUGGER.
5754 2015-02-26 Doug Evans <dje@google.com>
5756 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
5758 (set_type_vptr_fieldno): Ditto.
5759 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
5760 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
5762 2015-02-26 Pedro Alves <palves@redhat.com>
5764 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
5765 * complaints.c (vcomplaint): Pass argument FMT directly to
5766 printf-like functions instead of complaint->fmt.
5767 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
5768 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
5769 * compile/compile-loc2c.c (pushf, unary, binary): Add
5771 (do_compile_dwarf_expr_to_c): Pass string literal as format string
5773 (BINARY): Pass string literal as format string to 'binary'.
5774 * compile/compile-object-load.c (link_callbacks_einfo): Add
5776 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
5778 2015-02-26 Pedro Alves <palves@redhat.com>
5780 * windows-termcap.c: Rename to ...
5781 * stub-termcap.c: ... this. Adjust header line.
5782 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
5784 * configure: Regenerate.
5785 * configure.ac: Refer to stub-termcap.o instead of
5787 * gdb_curses.h: Mention stub-termcap.c instead of
5790 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5792 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
5793 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
5795 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
5797 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
5799 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5801 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
5802 bfd_canonicalize_symtab.
5804 2015-02-25 John Baldwin <jhb@FreeBSD.org>
5806 * amd64fbsd-nat.c: Include sys/user.h.
5807 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5808 instead of KERN_PS_STRINGS to locate the signal trampoline.
5809 * i386fbsd-nat.c: Include sys/user.h.
5810 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5811 instead of KERN_PS_STRINGS to locate the signal trampoline.
5812 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
5813 (amd64fbsd_sigtramp_p): New.
5814 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
5815 longer set default values.
5816 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
5817 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
5818 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
5819 (i386fbsd_freebsd4_sigtramp_start)
5820 (i386fbsd_freebsd4_sigtramp_middle)
5821 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
5822 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
5823 (i386fbsd_sigtramp_p): New.
5824 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
5825 longer set default values.
5826 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
5828 2015-02-25 John Baldwin <jhb@freebsd.org>
5830 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
5831 get_frame_register instead of frame_unwind_register_unsigned.
5833 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5836 * compile/compile-c-support.c (c_compute_program): Change // comment.
5837 * compile/compile-object-load.c (setup_sections): Change // comment.
5839 2015-02-26 Joel Brobecker <brobecker@adacore.com>
5842 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
5844 2015-02-23 Pedro Alves <palves@redhat.com>
5846 * remote.c (skip_to_semicolon): New function.
5847 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
5848 special case the stop reasons that look like hex numbers
5849 upfront. Instead handle real register numbers after matching
5850 all the known stop reasons.
5852 2015-02-21 Doug Evans <dje@google.com>
5854 PR c++/17976, symtab/17821
5855 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
5856 is_in_anonymous. All callers updated.
5857 (find_symbol_in_baseclass): Ditto.
5858 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
5859 for symbols in an anonymous namespace.
5860 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
5861 DW_AT_name directly.
5862 (dwarf2_name): Convert missing namespace name to
5863 CP_ANONYMOUS_NAMESPACE_STR.
5865 2015-02-20 Pedro Alves <palves@redhat.com>
5867 * linux-nat.c (linux_handle_extended_wait): Call
5868 thread_db_notice_clone whenever a new clone LWP is detected.
5869 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
5871 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
5872 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
5873 (linux_unstop_all_lwps): Declare.
5874 * linux-thread-db.c (struct thread_get_info_inout): Delete.
5875 (thread_get_info_callback): Delete.
5876 (thread_from_lwp): Use td_thr_get_info and record_thread.
5877 (thread_db_attach_lwp): Delete.
5878 (thread_db_notice_clone): New function.
5879 (try_thread_db_load_1): If /proc is mounted and shows the
5880 process'es task list, walk over all LWPs and call thread_from_lwp
5881 instead of relying on td_ta_thr_iter.
5882 (attach_thread): Don't call check_thread_signals here. Split the
5883 tail part of the function (which adds the thread to the core GDB
5885 (record_thread): ... this function. Call check_thread_signals
5887 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
5888 call thread_from_lwp.
5889 (thread_db_update_thread_list): Rename to ...
5890 (thread_db_update_thread_list_org): ... this.
5891 (thread_db_update_thread_list): New function.
5892 (thread_db_find_thread_from_tid): Delete.
5893 (thread_db_get_ada_task_ptid): Simplify.
5894 * nat/linux-procfs.c: Include <sys/stat.h>.
5895 (linux_proc_task_list_dir_exists): New function.
5896 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
5898 2015-02-20 Pedro Alves <palves@redhat.com>
5900 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
5901 main LWP. Handle the case of waitpid returning 0 if we're already
5902 attached to the LWP. Don't set the LWP's last_resume_kind to
5903 resume_stop if we already knew about the LWP.
5904 (linux_nat_filter_event): Add debug logs.
5906 2015-02-20 Pedro Alves <palves@redhat.com>
5908 * target.h (forward_target_decr_pc_after_break): Delete
5911 2015-02-20 Pedro Alves <palves@redhat.com>
5914 * linux-thread-db.c (thread_get_info_callback): Return early if
5915 the thread's lwp id is -1.
5917 2015-02-20 Joel Brobecker <brobecker@adacore.com>
5921 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
5923 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
5924 (dtrace_get_probes) Change type of variable 'dof'.
5926 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
5928 PR breakpoints/16812
5929 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
5930 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
5931 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
5933 2015-02-19 David Taylor <dtaylor@emc.com>
5935 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
5937 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
5939 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
5941 (tui_putc): Don't call tui_handle_resize_during_io.
5942 (tui_getc): Likewise.
5943 (tui_mld_getc): Likewise.
5944 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
5945 (tui_sigwinch_token): New static variable.
5946 (tui_initialize_win): Adjust documentation. Set
5948 (tui_async_resize_screen): New asynchronous callback.
5949 (tui_sigwinch_handler): Adjust documentation. Asynchronously
5950 invoke tui_async_resize_screen.
5952 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
5954 * configure: Regenerated.
5955 * configure.ac: Use GDB_AC_TRANSFORM.
5956 * Makefile.in (aclocal_m4_deps): Added transform.m4.
5957 * acinclude.m4: sinclude transform.m4.
5958 * transform.m4: New file.
5959 (GDB_AC_TRANSFORM): New macro.
5961 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5963 * NEWS: Announce the support for DTrace SDT probes.
5965 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5967 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
5968 (amd64_dtrace_parse_probe_argument): New function.
5969 (amd64_dtrace_probe_is_enabled): Likewise.
5970 (amd64_dtrace_enable_probe): Likewise.
5971 (amd64_dtrace_disable_probe): Likewise.
5972 (amd64_linux_init_abi): Register the
5973 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
5974 `gdbarch_dtrace_disable_probe' and
5975 `gdbarch_dtrace_probe_is_enabled' hooks.
5976 (amd64_dtrace_disabled_probe_sequence_1): New constant.
5977 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
5978 (amd64_dtrace_enable_probe_sequence): Likewise.
5979 (amd64_dtrace_disable_probe_sequence): Likewise.
5981 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5983 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
5984 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
5985 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
5987 * Makefile.in (SFILES): dtrace-probe.c added.
5988 * configure: Regenerate.
5989 * dtrace-probe.c: New file.
5990 (SHT_SUNW_dof): New constant.
5991 (dtrace_probe_type): New enum.
5992 (dtrace_probe_arg): New struct.
5993 (dtrace_probe_arg_s): New typedef.
5994 (struct dtrace_probe_enabler): New struct.
5995 (dtrace_probe_enabler_s): New typedef.
5996 (dtrace_probe): New struct.
5997 (dtrace_probe_is_linespec): New function.
5998 (dtrace_dof_sect_type): New enum.
5999 (dtrace_dof_dofh_ident): Likewise.
6000 (dtrace_dof_encoding): Likewise.
6001 (DTRACE_DOF_ENCODE_LSB): Likewise.
6002 (DTRACE_DOF_ENCODE_MSB): Likewise.
6003 (dtrace_dof_hdr): New struct.
6004 (dtrace_dof_sect): Likewise.
6005 (dtrace_dof_provider): Likewise.
6006 (dtrace_dof_probe): Likewise.
6007 (DOF_UINT): New macro.
6008 (DTRACE_DOF_PTR): Likewise.
6009 (DTRACE_DOF_SECT): Likewise.
6010 (dtrace_process_dof_probe): New function.
6011 (dtrace_process_dof): Likewise.
6012 (dtrace_build_arg_exprs): Likewise.
6013 (dtrace_get_arg): Likewise.
6014 (dtrace_get_probes): Likewise.
6015 (dtrace_get_probe_argument_count): Likewise.
6016 (dtrace_can_evaluate_probe_arguments): Likewise.
6017 (dtrace_evaluate_probe_argument): Likewise.
6018 (dtrace_compile_to_ax): Likewise.
6019 (dtrace_probe_destroy): Likewise.
6020 (dtrace_gen_info_probes_table_header): Likewise.
6021 (dtrace_gen_info_probes_table_values): Likewise.
6022 (dtrace_probe_is_enabled): Likewise.
6023 (dtrace_probe_ops): New variable.
6024 (info_probes_dtrace_command): New function.
6025 (_initialize_dtrace_probe): Likewise.
6026 (dtrace_type_name): Likewise.
6028 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6030 * gdbarch.sh (dtrace_parse_probe_argument): New.
6031 (dtrace_probe_is_enabled): Likewise.
6032 (dtrace_enable_probe): Likewise.
6033 (dtrace_disable_probe): Likewise.
6034 * gdbarch.c: Regenerate.
6035 * gdbarch.h: Regenerate.
6037 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6039 * stap-probe.c (stap_probe_ops): Add NULLs in the static
6040 stap_probe_ops for `enable_probe' and `disable_probe'.
6041 * probe.c (enable_probes_command): New function.
6042 (disable_probes_command): Likewise.
6043 (_initialize_probe): Define the cli commands `enable probe' and
6045 (parse_probe_linespec): New function.
6046 (info_probes_for_ops): Use parse_probe_linespec.
6047 * probe.h (probe_ops): New hooks `enable_probe' and
6050 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6052 * probe.c (compute_probe_arg): Moved from stap-probe.c
6053 (compile_probe_arg): Likewise.
6054 (probe_funcs): Likewise.
6055 * stap-probe.c (compute_probe_arg): Moved to probe.c.
6056 (compile_probe_arg): Likewise.
6057 (probe_funcs): Likewise.
6059 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
6061 * probe.c (print_ui_out_not_applicables): New function.
6062 (exists_probe_with_pops): Likewise.
6063 (info_probes_for_ops): Do not include column headers for probe
6064 types for which no probe has been actually found on any object.
6065 Also invoke `print_ui_out_not_applicables' in order to match the
6066 column rows with the header when probes of several types are
6068 Print the "Type" column.
6069 * probe.h (probe_ops): Added a new probe operation `type_name'.
6070 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
6071 (stap_type_name): New function.
6073 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
6075 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
6076 (key_is_command_char): Delete.
6078 2015-02-17 Pedro Alves <palves@redhat.com>
6080 * tui/tui.c (tui_enable): Resize windows before anything
6081 might show a window.
6083 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
6086 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
6087 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
6089 * aarch64-tdep.h (tdesc_aarch64): Declare.
6091 2015-02-12 Mark Wielaard <mjw@redhat.com>
6093 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
6095 2015-02-13 Doug Evans <dje@google.com>
6097 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
6098 anonymous_namespace to is_in_anonymous for consistency with the rest
6100 (cp_lookup_bare_symbol): Fix typo in comment.
6101 (cp_search_static_and_baseclasses): Ditto.
6102 (search_symbol_list): Use vertical space in comment better.
6103 (reset_directive_searched): Ditto. Fix typo.
6104 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
6106 2015-02-13 Yao Qi <yao.qi@arm.com>
6108 * MAINTAINERS: Update my email address.
6110 2015-02-12 Doug Evans <dje@google.com>
6112 * symtab.c (completion_list_add_name): Fix memory leak.
6114 2015-02-12 Doug Evans <dje@google.com>
6116 * completer.c (complete_line): Remove incorrect comment.
6118 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6120 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
6121 (py_print_frame): Use RETURN_MASK_ERROR.
6123 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6125 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
6126 function comment. Wrap all function that can throw in cleanups.
6127 (gdbpy_apply_frame_filter): Wrap all function that can throw in
6130 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6132 * python/py-framefilter.c (py_print_frame): Substitute goto error.
6133 Remove the error label.
6135 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6137 * python/py-framefilter.c (py_print_frame): Put conditional code paths
6138 with goto first, indent the former else codepath left. Put variable
6139 'elided' to a new inner block.
6141 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6143 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
6145 2015-02-11 Pedro Alves <palves@redhat.com>
6147 * xcoffread.c (within_function): Delete.
6149 2015-02-11 Tom Tromey <tromey@redhat.com>
6150 Pedro Alves <palves@redhat.com>
6152 * breakpoint.c (base_breakpoint_ops): Delete.
6153 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
6154 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
6155 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
6156 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
6157 * python/py-arch.c (arch_object_type): Make extern.
6158 * python/py-block.c (block_syms_iterator_object_type): Make extern.
6159 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
6160 * python/py-cmd.c (cmdpy_object_type): Make extern.
6161 * python/py-continueevent.c (continue_event_object_type)
6162 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
6163 parameter. Update all callers.
6164 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
6165 * python/py-exitedevent.c (exited_event_object_type): Make extern.
6166 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
6167 * python/py-function.c (fnpy_object_type): Make extern.
6168 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
6169 * python/py-infevents.c (call_pre_event_object_type)
6170 (inferior_call_post_event_object_type).
6171 (memory_changed_event_object_type): Make extern.
6172 * python/py-infthread.c (thread_object_type): Make extern.
6173 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
6174 * python/py-linetable.c (linetable_entry_object_type)
6175 (linetable_object_type, ltpy_iterator_object_type): Make extern.
6176 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6177 (clear_objfiles_event_object_type): Make extern.
6178 * python/py-objfile.c (objfile_object_type): Make extern.
6179 * python/py-param.c (parmpy_object_type): Make extern.
6180 * python/py-progspace.c (pspace_object_type): Make extern.
6181 * python/py-signalevent.c (signal_event_object_type): Make extern.
6182 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
6183 * python/py-type.c (type_object_type, field_object_type)
6184 (type_iterator_object_type): Make extern.
6185 * python/python.c (python_extension_script_ops)
6186 (python_extension_ops): Make extern.
6187 * stap-probe.c (stap_probe_ops): Make extern.
6189 2015-02-11 Pedro Alves <pedro@codesourcery.com>
6191 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
6192 because the event thread is not the current thread.
6194 2015-02-11 Doug Evans <xdje42@gmail.com>
6196 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
6197 been initialized yet, return NULL.
6199 2015-02-11 Doug Evans <dje@google.com>
6201 * symfile.h (new_symfile_objfile): Delete.
6202 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
6203 All callers updated.
6205 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6207 * tui/tui-io.c (tui_handle_resize_during_io): Call
6208 tui_update_gdb_sizes() after resizing the screen.
6209 * tui/tui.c (tui_enable): Resize the terminal before
6210 calling tui_update_gdb_sizes().
6212 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
6214 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
6215 line before printing a newline.
6217 2015-02-11 Mark Wielaard <mjw@redhat.com>
6219 * utils.c (producer_is_gcc): Return true or false.
6221 2015-02-10 Mark Wielaard <mjw@redhat.com>
6223 * utils.h (producer_is_gcc): Change return type to bool. Add major
6225 * utils.c (producer_is_gcc): Likewise.
6226 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
6227 * dwarf2read.c (check_producer): Likewise.
6229 2015-02-10 Pedro Alves <palves@redhat.com>
6231 * infrun.c (displaced_step_fixup): Switch to the event thread
6232 before calling gdbarch_displaced_step_fixup.
6234 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
6236 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
6238 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
6240 * ada-varobj.c (ada_name_of_child): Constify parent.
6241 (ada_path_expr_of_child): Same.
6242 (ada_value_of_child): Same.
6243 (ada_type_of_child): Same.
6244 * c-varobj.c (c_is_path_expr_parent): Same.
6245 (c_describe_child): Same.
6246 (c_name_of_child): Same.
6247 (c_value_of_child): Same.
6248 (c_type_of_child): Same.
6249 (cplus_number_of_children): Same.
6250 (cplus_describe_child): Constify var.
6251 (cplus_name_of_child): Constify parent.
6252 (cplus_value_of_child): Same.
6253 (cplus_type_of_child): Same.
6254 * jv-varobj.c (java_name_of_child): Same.
6255 (java_value_of_child): Same.
6256 (java_type_of_child): Same.
6257 * varobj.c (value_of_child): Same.
6258 (varobj_default_is_path_expr_parent): Constify var, parent and return
6260 (varobj_get_path_expr): Constify var, modify path_expr through
6262 (install_new_value): Constify parent.
6263 (value_of_child): Constify parent.
6264 * varobj.h (struct varobj): Constify parent.
6265 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
6267 (varobj_get_path_expr): Constify var.
6268 (varobj_get_path_expr_parent): Constify var and return value.
6270 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
6272 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
6273 (arm_prologue_this_id): Move PC and SP limit checks to
6274 arm_prologue_unwind_stop_reason.
6275 (arm_prologue_unwind) <stop_reason> : Set to
6276 arm_prologue_unwind_stop_reason.
6278 2015-02-09 Mark Wielaard <mjw@redhat.com>
6280 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
6281 DW_LANG_Fortran08 as language_fortran.
6283 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
6286 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
6287 of pointer against char.
6289 2015-02-09 Mark Wielaard <mjw@redhat.com>
6291 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
6292 (c_type_print_modifier): Likewise.
6293 * dwarf2read.c (read_tag_atomic_type): New function.
6294 (read_type_die_1): Handle DW_TAG_atomic_type.
6295 * gdbtypes.c (make_atomic_type): New function.
6296 (recursive_dump_type): Handle TYPE_ATOMIC.
6297 * gdbtypes.h (enum type_flag_values): Renumber.
6298 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
6299 (TYPE_ATOMIC): New macro.
6300 (make_atomic_type): Declare.
6302 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6304 * btrace.c (ftrace_find_call): Skip gaps.
6305 (ftrace_new_function): Initialize level.
6306 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
6307 (ftrace_new_switch): Update
6309 (ftrace_new_gap): New.
6310 (ftrace_update_function): Create new function after gap.
6311 (btrace_compute_ftrace_bts): Create gap on error.
6312 (btrace_stitch_bts): Update parameters. Clear trace if it
6314 (btrace_stitch_trace): Update parameters. Update callers.
6315 (btrace_clear): Reset the number of gaps.
6316 (btrace_insn_get): Return NULL if the iterator points to a gap.
6317 (btrace_insn_number): Return zero if the iterator points to a gap.
6318 (btrace_insn_end): Allow gaps at the end.
6319 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
6320 (btrace_find_insn_by_number): Assert that the found iterator does
6322 (btrace_call_next, btrace_call_prev): Assert that the last function
6324 * btrace.h (btrace_bts_error): New.
6325 (btrace_function): Update comment.
6326 (btrace_function) <insn, insn_offset, number>: Update comment.
6327 (btrace_function) <errcode>: New.
6328 (btrace_thread_info) <ngaps>: New.
6329 (btrace_thread_info) <replay>: Update comment.
6330 (btrace_insn_get): Update comment.
6331 * record-btrace.c (btrace_ui_out_decode_error): New.
6332 (record_btrace_info): Print number of gaps.
6333 (btrace_insn_history, btrace_call_history): Call
6334 btrace_ui_out_decode_error for gaps.
6335 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
6337 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6339 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
6340 * nat/linux-btrace.c: (btrace_this_cpu): New.
6341 (cpu_supports_bts): Call btrace_this_cpu.
6342 (intel_supports_bts): Add cpu parameter.
6344 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6346 * btrace.h (btrace_insn_class): New.
6347 (btrace_insn) <size, iclass>: New.
6348 * btrace.c (ftrace_find_call): Update parameters. Update users.
6349 Use instruction classification.
6350 (ftrace_new_return): Update parameters. Update users.
6351 (ftrace_update_function): Update parameters. Update users. Use
6352 instruction classification.
6353 (ftrace_update_insns): Update parameters. Update users.
6354 (ftrace_classify_insn): New.
6355 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
6356 TRY_CATCH around call to gdb_insn_length.
6358 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6360 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
6361 Update parameters. Update users.
6363 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6365 * btrace.c (parse_xml_btrace_conf_bts): Add size.
6366 (btrace_conf_bts_attributes): New.
6367 (btrace_conf_children): Add attributes.
6368 * common/btrace-common.h (btrace_config_bts): New.
6369 (btrace_config)<bts>: New.
6370 (btrace_config): Update comment.
6371 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
6373 * features/btrace-conf.dtd: Increment version. Add size
6374 attribute to bts element.
6375 * record-btrace.c (set_record_btrace_bts_cmdlist,
6376 show_record_btrace_bts_cmdlist): New.
6377 (record_btrace_adjust_size, record_btrace_print_bts_conf,
6378 record_btrace_print_conf, cmd_set_record_btrace_bts,
6379 cmd_show_record_btrace_bts): New.
6380 (record_btrace_info): Call record_btrace_print_conf.
6381 (_initialize_record_btrace): Add commands.
6382 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
6383 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
6384 (btrace_sync_conf): Synchronize bts size.
6385 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
6386 * NEWS: Announce new commands and new packets.
6388 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6390 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
6391 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
6392 (x86_linux_btrace_conf): New.
6393 (x86_linux_create_target): Initialize to_btrace_conf.
6394 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
6395 Check format. Split into this and ...
6396 (linux_enable_bts): ... this.
6397 (linux_btrace_conf): New.
6398 (perf_event_skip_record): Renamed into ...
6399 (perf_event_skip_bts_record): ... this. Updated users.
6400 (linux_disable_btrace): Split into this and ...
6401 (linux_disable_bts): ... this.
6402 (linux_read_btrace): Check format.
6403 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
6404 (linux_btrace_conf): New.
6405 (btrace_target_info)<ptid>: Moved.
6406 (btrace_target_info)<conf>: New.
6407 (btrace_target_info): Split into this and ...
6408 (btrace_tinfo_bts): ... this. Updated users.
6409 * btrace.c (btrace_enable): Update parameters.
6410 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
6411 (btrace_conf_children, btrace_conf_attributes)
6412 (btrace_conf_elements): New.
6413 * btrace.h (btrace_enable): Update parameters.
6414 (btrace_conf, parse_xml_btrace_conf): New.
6415 * common/btrace-common.h (btrace_config): New.
6416 * feature/btrace-conf.dtd: New.
6417 * record-btrace.c (record_btrace_conf): New.
6418 (record_btrace_cmdlist): New.
6419 (record_btrace_enable_warn, record_btrace_open): Pass
6420 &record_btrace_conf.
6421 (record_btrace_info): Print recording format.
6422 (cmd_record_btrace_bts_start): New.
6423 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
6424 (_initialize_record_btrace): Add "record btrace bts" subcommand.
6425 Add "record bts" alias command.
6426 * remote.c (remote_state)<btrace_config>: New.
6427 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
6428 (remote_protocol_features): Add qXfer:btrace-conf:read.
6429 (remote_open_1): Call remote_btrace_reset.
6430 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
6431 (btrace_target_info)<conf>: New.
6432 (btrace_sync_conf, btrace_read_config): New.
6433 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
6435 (remote_btrace_conf): New.
6436 (init_remote_ops): Initialize to_btrace_conf.
6437 (_initialize_remote): Add qXfer:btrace-conf packet.
6438 * target.c (target_enable_btrace): Update parameters.
6439 (target_btrace_conf): New.
6440 * target.h (target_enable_btrace): Update parameters.
6441 (target_btrace_conf): New.
6442 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
6443 (target_ops)<to_enable_btrace>: Update parameters and comment.
6444 (target_ops)<to_btrace_conf>: New.
6445 * target-delegates: Regenerate.
6446 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
6447 (target_debug_print_const_struct_btrace_target_info_p): New.
6448 * NEWS: Announce new command and new packet.
6450 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6452 * nat/linux-btrace.h (perf_event_buffer): New.
6453 (btrace_target_info) <buffer, size, data_head>: Replace with ...
6455 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
6456 (perf_event_buffer_size, perf_event_buffer_begin)
6457 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
6459 (perf_event_new_data): New.
6461 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6463 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
6464 * record-btrace.c (record_btrace_open): Remove call to
6465 target_supports_btrace.
6466 * remote.c (remote_supports_btrace): Update parameters.
6467 * target.c (target_supports_btrace): Update parameters.
6468 * target.h (to_supports_btrace, target_supports_btrace): Update
6470 * target-delegates.c: Regenerate.
6471 * target-debug.h (target_debug_print_enum_btrace_format): New.
6472 * nat/linux-btrace.c
6473 (kernel_supports_btrace): Rename into ...
6474 (kernel_supports_bts): ... this. Update users. Update warning text.
6475 (intel_supports_btrace): Rename into ...
6476 (intel_supports_bts): ... this. Update users.
6477 (cpu_supports_btrace): Rename into ...
6478 (cpu_supports_bts): ... this. Update users.
6479 (linux_supports_btrace): Update parameters. Split into this and ...
6480 (linux_supports_bts): ... this.
6481 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
6483 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
6485 * Makefile.in (SFILES): Add common/btrace-common.c.
6486 (COMMON_OBS): Add common/btrace-common.o.
6487 (btrace-common.o): Add build rules.
6488 * btrace.c (parse_xml_btrace): Update parameters.
6489 (parse_xml_btrace_block): Set format field.
6490 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
6491 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
6492 (btrace_compute_ftrace): Split into this and...
6493 (btrace_compute_ftrace_bts): ...this.
6494 (btrace_stitch_trace): Split into this and...
6495 (btrace_stitch_bts): ...this.
6496 * btrace.h (parse_xml_btrace): Update parameters.
6497 (make_cleanup_btrace_data): New.
6498 * common/btrace-common.c: New.
6499 * common/btrace-common.h: Include common-defs.h.
6500 (btrace_block_s): Update comment.
6501 (btrace_format): New.
6502 (btrace_format_string): New.
6503 (btrace_data_bts): New.
6505 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
6506 * remote.c (remote_read_btrace): Update parameters.
6507 * target.c (target_read_btrace): Update parameters.
6508 * target.h (target_read_btrace): Update parameters.
6509 (target_ops)<to_read_btrace>: Update parameters.
6510 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
6511 * target-delegates.c: Regenerate.
6512 * target-debug (target_debug_print_struct_btrace_data_p): New.
6513 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
6514 (linux_read_bts): ...this.
6515 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
6517 2015-02-06 Doug Evans <dje@google.com>
6519 * remote-m32r-sdi.c: Include symfile.h.
6521 2015-02-06 Doug Evans <dje@google.com>
6523 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
6524 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
6527 2015-02-06 Pedro Alves <palves@redhat.com>
6529 * linux-thread-db.c (find_new_threads_callback): Add debug output.
6531 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
6534 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
6535 (enable_count_command): Check args for NULL value.
6537 2015-02-05 Doug Evans <xdje42@gmail.com>
6539 * guile/scm-frame.c: Fix spelling errors in a comment.
6541 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6543 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
6544 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
6547 2015-02-04 Pedro Alves <palves@redhat.com>
6549 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
6550 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
6552 (resume_stopped_resumed_lwps): Don't check whether the thread is
6553 marked as executing.
6554 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
6556 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6558 * regset.h (struct regset): Add flags field.
6559 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
6560 * corelow.c (get_core_register_section): Add warning if the size
6561 exceeds the requested size and the regset does not have the
6562 REGSET_VARIABLE_SIZE flag set.
6563 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
6565 * armbsd-tdep.c (armbsd_gregset): Likewise.
6566 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6567 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
6568 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
6569 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
6571 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6573 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
6574 For ".reg-xstate", explicitly specify the requested section size
6575 via X86_XSTATE_SIZE instead of just 0 on input and
6576 X86_XSTATE_MAX_SIZE on output.
6577 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
6580 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6583 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
6584 function type, particularly its SIZE parameter.
6585 * gdbarch.h: Regenerate.
6586 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
6587 actual against required size using ">=" instead of "==".
6588 (amd64_collect_fpregset): Likewise.
6589 * i386-tdep.c (i386_supply_gregset): Likewise.
6590 (i386_collect_gregset): Likewise.
6591 (i386_supply_fpregset): Likewise.
6592 (i386_collect_fpregset): Likewise.
6593 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
6594 (mips_fill_gregset_wrapper): Likewise.
6595 (mips_supply_fpregset_wrapper): Likewise.
6596 (mips_fill_fpregset_wrapper): Likewise.
6597 (mips64_supply_gregset_wrapper): Likewise.
6598 (mips64_fill_gregset_wrapper): Likewise.
6599 (mips64_supply_fpregset_wrapper): Likewise.
6600 (mips64_fill_fpregset_wrapper): Likewise.
6601 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
6602 (am33_supply_fpregset_method): Likewise.
6603 (am33_collect_gregset_method): Likewise.
6604 (am33_collect_fpregset_method): Likewise.
6606 2015-02-04 Doug Evans <dje@google.com>
6607 Pedro Alves <palves@redhat.com>
6608 Eli Zaretskii <eliz@gnu.org>
6611 * tui/tui-command.c (tui_refresh_cmd_win): New function.
6612 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
6613 * tui/tui-file.c: #include tui/tui-command.h.
6614 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
6615 (tui_file_flush): Refresh command window if stream is gdb_stdout.
6616 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
6618 2015-02-04 Pedro Alves <palves@redhat.com>
6621 * event-loop.c (gdb_do_one_event): Add default switch case.
6623 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6625 Filter out inferior gcc option -fpreprocessed.
6626 * compile/compile.c (filter_args): New function.
6629 2015-02-03 Pedro Alves <palves@redhat.com>
6631 * event-loop.c: Don't declare nor define a queue type for
6633 (event_queue): Delete.
6634 (create_event, create_file_event, gdb_event_xfree)
6635 (initialize_event_loop, process_event): Delete.
6636 (gdb_do_one_event): Return as soon as one event is handled.
6637 (handle_file_event): Change prototype. Used the passed in
6638 file_handler pointer and ready_mask instead of looping over all
6640 (gdb_wait_for_event): Update the poll/select timeouts before
6641 blocking. Run event handlers directly instead of queueing events.
6642 Return as soon as one event is handled.
6643 (struct async_event_handler_data): Delete.
6644 (invoke_async_event_handler): Delete.
6645 (check_async_event_handlers): Change return type to int. Run
6646 event handlers directly instead of queueing events. Return as
6647 soon as one event is handled.
6648 (handle_timer_event): Delete.
6649 (update_wait_timeout): New function, factored out from
6651 (poll_timers): Reimplement.
6652 * event-loop.h (initialize_event_loop): Delete declaration.
6653 * top.c (gdb_init): Don't call initialize_event_loop.
6655 2015-02-03 Pedro Alves <palves@redhat.com>
6657 * event-loop.c (clear_async_event_handler): New function.
6658 * event-loop.h (clear_async_event_handler): New declaration.
6659 * record-btrace.c (record_btrace_async): New function.
6660 (init_record_btrace_ops): Install record_btrace_async.
6661 * record-full.c (record_full_async): New function.
6662 (record_full_resume): Don't mark the async event source here.
6663 (init_record_full_ops): Install record_full_async.
6664 (record_full_core_resume): Don't mark the async event source here.
6665 (init_record_full_core_ops): Install record_full_async.
6666 * remote.c (remote_async): Mark and clear the async stop reply
6667 queue event-loop token as appropriate.
6669 2015-02-03 Pedro Alves <palves@redhat.com>
6671 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
6672 target_is_async_p instead of target_can_async.
6673 (linux_nat_wait): Use target_is_async_p instead of
6674 target_can_async. Don't enable async here.
6675 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
6676 target_is_async_p instead of target_can_async.
6678 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
6680 * varobj.h (lang_varobj_ops): Mention which return values need
6683 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6685 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
6687 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6690 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
6691 results found in the cache.
6693 2015-02-02 Joel Brobecker <brobecker@adacore.com>
6696 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
6697 when allocating a new one.
6699 2015-02-01 Tom Tromey <tom@tromey.com>
6701 * MAINTAINERS: Remove myself.
6703 2015-01-31 Doug Evans <xdje42@gmail.com>
6705 * dwarf2read.c (process_structure_scope): Update setting of
6706 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
6707 * gdbtypes.c (internal_type_vptr_fieldno): New function.
6708 (set_type_vptr_fieldno): New function.
6709 (internal_type_vptr_basetype): New function.
6710 (set_type_vptr_basetype): New function.
6711 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
6713 (allocate_cplus_struct_type): Initialize vptr_fieldno.
6714 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
6715 (print_cplus_stuff): ... moved here.
6716 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
6717 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
6719 (struct cplus_struct_type): ... here. All uses updated.
6720 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
6721 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
6722 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
6723 * stabsread.c (read_tilde_fields): Update setting of
6724 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
6726 2015-01-31 Doug Evans <xdje42@gmail.com>
6728 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
6730 (cp_print_class_member): Rename local domain to self_type.
6731 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
6732 domain_type to self_type.
6733 (set_die_type) <need_gnat_info>: Handle
6734 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
6735 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
6736 TYPE_SPECIFIC_SELF_TYPE.
6737 * gdbtypes.c (internal_type_self_type): New function.
6738 (set_type_self_type): New function.
6739 (smash_to_memberptr_type): Rename parameter domain to self_type.
6740 Update setting of TYPE_SELF_TYPE.
6741 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
6742 (smash_to_method_type): Rename parameter domain to self_type.
6743 Update setting of TYPE_SELF_TYPE.
6744 (check_stub_method): Call smash_to_method_type.
6745 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
6746 (copy_type_recursive): Ditto.
6747 * gdbtypes.h (enum type_specific_kind): New value
6748 TYPE_SPECIFIC_SELF_TYPE.
6749 (struct main_type) <type_specific>: New member self_type.
6750 (struct cplus_struct_type) <fn_field.type>: Update comment.
6751 (TYPE_SELF_TYPE): Rewrite.
6752 (internal_type_self_type, set_type_self_type): Declare.
6753 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
6755 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
6756 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
6758 * stabsread.c (read_member_functions): Mark methods with
6759 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
6762 2015-01-31 Doug Evans <xdje42@gmail.com>
6764 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
6767 2015-01-31 Doug Evans <xdje42@gmail.com>
6769 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
6770 or unions. Return zero if union.
6771 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
6772 (gnuv3_rtti_type): Pass already-check_typedef'd value to
6774 (compute_vtable_size): Assert only passed structs.
6775 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
6777 2015-01-31 Doug Evans <xdje42@gmail.com>
6779 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
6782 2015-01-31 Gary Benson <gbenson@redhat.com>
6783 Doug Evans <dje@google.com>
6788 * cli/cli-cmds.c (complete_command): Notify user if max-completions
6790 * common/common-exceptions.h (enum errors)
6791 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
6792 * completer.h (get_max_completions_reached_message): New declaration.
6793 (max_completions): Likewise.
6794 (completion_tracker_t): New typedef.
6795 (new_completion_tracker): New declaration.
6796 (make_cleanup_free_completion_tracker): Likewise.
6797 (maybe_add_completion_enum): New enum.
6798 (maybe_add_completion): New declaration.
6799 (throw_max_completions_reached_error): Likewise.
6800 * completer.c (max_completions): New global variable.
6801 (new_completion_tracker): New function.
6802 (free_completion_tracker): Likewise.
6803 (make_cleanup_free_completion_tracker): Likewise.
6804 (maybe_add_completions): Likewise.
6805 (throw_max_completions_reached_error): Likewise.
6806 (complete_line): Remove duplicates and limit result to max_completions
6808 (get_max_completions_reached_message): New function.
6809 (gdb_display_match_list): Handle max_completions.
6810 (_initialize_completer): New declaration and function.
6811 * symtab.c: Include completer.h.
6812 (completion_tracker): New static variable.
6813 (completion_list_add_name): Call maybe_add_completion.
6814 (default_make_symbol_completion_list_break_on_1): Renamed from
6815 default_make_symbol_completion_list_break_on. Maintain
6816 completion_tracker across calls to completion_list_add_name.
6817 (default_make_symbol_completion_list_break_on): New function.
6818 * top.c (init_main): Set rl_completion_display_matches_hook.
6819 * tui/tui-io.c: Include completer.h.
6820 (tui_old_rl_display_matches_hook): New static global.
6821 (tui_rl_display_match_list): Notify user if max-completions reached.
6822 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
6823 * NEWS (New Options): Mention set/show max-completions.
6825 2015-01-31 Gary Benson <gbenson@redhat.com>
6827 * symtab.c (struct add_name_data) <code>: New field.
6829 (add_symtab_completions): New function.
6830 (symtab_expansion_callback): Likewise.
6831 (default_make_symbol_completion_list_break_on): Set datum.code.
6832 Move minimal symbol scan before calling expand_symtabs_matching.
6833 Scan known primary symtabs for externs and statics before calling
6834 expand_symtabs_matching. Pass symtab_expansion_callback as
6835 expansion_notify argument to expand_symtabs_matching. Do not scan
6836 primary symtabs for externs and statics after calling
6837 expand_symtabs_matching.
6839 2015-01-31 Gary Benson <gbenson@redhat.com>
6841 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
6842 (struct quick_symbol_functions) <expand_symtabs_matching>:
6843 New argument expansion_notify. All uses updated.
6844 (expand_symtabs_matching): New argument expansion_notify.
6846 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6847 Also print expansion notify.
6848 * symtab.c (expand_symtabs_matching_via_partial): Call
6849 expansion_notify whenever a partial symbol table is expanded.
6850 * dwarf2read.c (dw2_expand_symtabs_matching): Call
6851 expansion_notify whenever a symbol table is instantiated.
6853 2015-01-31 Doug Evans <xdje42@gmail.com>
6855 * cli-out.c: #include completer.h, readline/readline.h.
6856 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
6857 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
6858 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
6859 * cli-out.h (cli_display_match_list): Declare.
6860 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
6861 (ELLIPSIS_LEN): Ditto.
6862 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
6863 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
6864 (gdb_fnprint, gdb_print_filename): Ditto.
6865 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
6866 (gdb_display_match_list): Ditto.
6867 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
6868 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
6869 (mld_beep_ftype, mld_read_key_ftype): Ditto.
6870 (match_list_displayer): New struct.
6871 (gdb_display_match_list): Declare.
6872 * top.c (init_main): Set rl_completion_display_matches_hook.
6873 * tui/tui-io.c: #include completer.h.
6874 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
6875 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
6876 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
6877 (tui_mld_getc, tui_mld_read_key): Ditto.
6878 (tui_rl_display_match_list): Rewrite.
6879 (tui_handle_resize_during_io): New arg for_completion. All callers
6882 2015-01-31 Doug Evans <xdje42@gmail.com>
6884 Add symbol lookup cache.
6885 * NEWS: Document new options and commands.
6886 * symtab.c (symbol_cache_key): New static global.
6887 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
6888 (SYMBOL_LOOKUP_FAILED): New macro.
6889 (symbol_cache_slot_state): New enum.
6890 (block_symbol_cache): New struct.
6891 (symbol_cache): New struct.
6892 (new_symbol_cache_size, symbol_cache_size): New static globals.
6893 (hash_symbol_entry, eq_symbol_entry): New functions.
6894 (symbol_cache_byte_size, resize_symbol_cache): New functions.
6895 (make_symbol_cache, free_symbol_cache): New functions.
6896 (get_symbol_cache, symbol_cache_cleanup): New function.
6897 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
6898 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
6899 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
6900 (symbol_cache_flush, symbol_cache_dump): New functions.
6901 (maintenance_print_symbol_cache): New function.
6902 (maintenance_flush_symbol_cache): New function.
6903 (symbol_cache_stats): New function.
6904 (maintenance_print_symbol_cache_statistics): New function.
6905 (symtab_new_objfile_observer): New function.
6906 (symtab_free_objfile_observer): New function.
6907 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
6908 (_initialize_symtab): Init symbol_cache_key. New parameter
6909 maint symbol-cache-size. New maint commands print symbol-cache,
6910 print symbol-cache-statistics, flush-symbol-cache.
6911 Install new_objfile, free_objfile observers.
6913 2015-01-31 Joel Brobecker <brobecker@adacore.com>
6916 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
6919 2015-01-31 Doug Evans <xdje42@gmail.com>
6921 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
6922 * auto-load.c: #include ctype.h.
6923 (struct auto_load_pspace_info): Replace member loaded_scripts with
6924 new members loaded_script_files, loaded_script_texts.
6925 (auto_load_pspace_data_cleanup): Update.
6926 (init_loaded_scripts_info): Update.
6927 (get_auto_load_pspace_data_for_loading): Update.
6928 (maybe_add_script_file): Renamed from maybe_add_script. All callers
6930 (maybe_add_script_text): New function.
6931 (clear_section_scripts): Update.
6932 (source_script_file, execute_script_contents): New functions.
6933 (source_section_scripts): Add support for
6934 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
6935 (print_scripts): New function.
6936 (auto_load_info_scripts): Also print inlined scripts.
6937 (maybe_print_unsupported_script_warning): Renamed from
6938 unsupported_script_warning_print. All callers updated.
6939 (maybe_print_script_not_found_warning): Renamed from
6940 script_not_found_warning_print. All callers updated.
6941 * extension-priv.h (struct extension_language_script_ops): New member
6942 objfile_script_executor.
6943 * extension.c (ext_lang_objfile_script_executor): New function.
6944 * extension.h (objfile_script_executor_func): New typedef.
6945 (ext_lang_objfile_script_executor): Declare.
6946 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
6947 * guile/guile.c (guile_extension_script_ops): Update.
6948 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
6949 * python/python.c (python_extension_script_ops): Update.
6950 (gdbpy_execute_objfile_script): New function.
6952 2015-01-31 Eli Zaretskii <eliz@gnu.org>
6954 * tui/tui-io.c (tui_expand_tabs): New function.
6955 (tui_puts, tui_redisplay_readline): Expand TABs into the
6956 appropriate number of spaces.
6957 * tui/tui-regs.c: Include tui-io.h.
6958 (tui_register_format): Call tui_expand_tabs to expand TABs into
6959 the appropriate number of spaces.
6960 * tui/tui-io.h: Add prototype for tui_expand_tabs.
6962 2015-01-30 Doug Evans <dje@google.com>
6964 * NEWS: "info source" command now display producer string if present.
6965 * source.c (source_info): Print producer string if present.
6967 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6969 * varobj.c (varobj_delete): Fix comment.
6971 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6973 * varobj.c (create_child): Modify comment.
6975 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6977 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
6979 (ada_name_of_variable): Same.
6980 (ada_path_expr_of_child): Same.
6981 (ada_value_of_variable): Same.
6982 (ada_value_is_changeable_p): Same.
6983 (ada_value_has_mutated): Same.
6984 * c-varobj.c (varobj_is_anonymous_child): Same.
6985 (c_is_path_expr_parent): Same.
6986 (c_number_of_children): Same.
6987 (c_name_of_variable): Same.
6988 (c_path_expr_of_child): Same.
6990 (c_value_of_variable): Same.
6991 (cplus_number_of_children): Same.
6992 (cplus_name_of_variable): Same.
6993 (cplus_path_expr_of_child): Same.
6994 (cplus_value_of_variable): Same.
6995 * jv-varobj.c (java_number_of_children): Same.
6996 (java_name_of_variable): Same.
6997 (java_path_expr_of_child): Same.
6998 (java_value_of_variable): Same.
6999 * varobj.c (number_of_children): Same.
7000 (name_of_variable): Same.
7002 (varobj_ensure_python_env): Same.
7003 (varobj_get_objname): Same.
7004 (varobj_get_expression): Same.
7005 (varobj_get_display_format): Same.
7006 (varobj_get_display_hint): Same.
7007 (varobj_has_more): Same.
7008 (varobj_get_thread_id): Same.
7009 (varobj_get_frozen): Same.
7010 (dynamic_varobj_has_child_method): Same.
7011 (varobj_get_gdb_type): Same.
7012 (is_path_expr_parent): Same.
7013 (varobj_default_is_path_expr_parent): Same.
7014 (varobj_get_language): Same.
7015 (varobj_get_attributes): Same.
7016 (varobj_is_dynamic_p): Same.
7017 (varobj_get_child_range): Same.
7018 (varobj_value_has_mutated): Same.
7019 (varobj_get_value_type): Same.
7020 (number_of_children): Same.
7021 (name_of_variable): Same.
7022 (check_scope): Same.
7023 (varobj_editable_p): Same.
7024 (varobj_value_is_changeable_p): Same.
7025 (varobj_floating_p): Same.
7026 (varobj_default_value_is_changeable_p): Same.
7028 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7030 * varobj.c (varobj_get_path_expr): Set var->path_expr.
7031 * c-varobj.c (c_path_expr_of_child): Set local var instead of
7033 (cplus_path_expr_of_child): Same.
7035 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7037 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
7039 (mi_cmd_var_info_expression): Same.
7040 * varobj.c (varobj_get_expression): Mention in the comment that
7041 the result must by freed by the caller.
7043 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
7045 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
7047 (varobj_update_one): Same.
7048 * varobj.c (update_type_if_necessary): Free curr_type_str and
7050 (varobj_get_type): Specify in comment that the result needs to be
7051 freed by the caller.
7053 2015-01-29 Doug Evans <dje@google.com>
7056 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
7058 2015-01-25 Mark Wielaard <mjw@redhat.com>
7060 * dwarf2read.c (checkproducer): Call producer_is_gcc.
7061 * utils.c (producer_is_gcc_ge_4): Likewise.
7062 (producer_is_gcc): New function.
7063 * utils.h (producer_is_gcc): New declaration.
7065 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7067 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
7069 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
7070 parameter by "addr_stack" parameter.
7071 (resolve_dynamic_range): Replace "addr" parameter by
7072 "stack_addr" parameter. Update function documentation.
7073 Update code accordingly.
7074 (resolve_dynamic_array, resolve_dynamic_union)
7075 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
7076 (resolve_dynamic_type): Update code, following the changes made
7077 to resolve_dynamic_type_internal's interface.
7078 * dwarf2loc.h (struct property_addr_info): New.
7079 (dwarf2_evaluate_property): Replace "address" parameter
7080 by "addr_stack" parameter. Adjust function documentation.
7081 (struct dwarf2_offset_baton): New.
7082 (struct dwarf2_property_baton): Update documentation of
7083 field "referenced_type" to be more general. New field
7084 "offset_info" in union data field.
7085 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
7086 parameter by "addr_stack" parameter. Adjust code accordingly.
7087 Add support for PROP_ADDR_OFFSET properties.
7088 * dwarf2read.c (attr_to_dynamic_prop): Add support for
7089 DW_AT_data_member_location attributes as well. Use case
7090 statements instead of if/else condition.
7092 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7094 * ada-varobj.c (ada_varobj_get_array_number_of_children):
7095 Return zero if PARENT_VALUE is NULL and parent_type's
7096 range type is dynamic.
7098 2015-01-29 Joel Brobecker <brobecker@adacore.com>
7100 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
7101 nonzero if the type's subtype is dynamic.
7102 (resolve_dynamic_range): Also resolve the range's subtype.
7104 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7106 Pushed by Joel Brobecker <brobecker@adacore.com>.
7107 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
7109 2015-01-27 Doug Evans <dje@google.com>
7111 * NEWS: Mention gdb.Objfile.username.
7112 * python/py-objfile.c (objfpy_get_username): New function.
7113 (objfile_getset): Add "username".
7115 2015-01-24 Mark Wielaard <mjw@redhat.com>
7117 * stack.c (return_command): Markup warning message with _.
7119 2015-01-24 Doug Evans <xdje42@gmail.com>
7121 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
7123 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7125 Fix 100x slowdown regression on DWZ files.
7126 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
7127 (struct line_header): Add offset and offset_in_dwz.
7128 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
7129 (free_line_header_voidp): New declaration.
7130 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
7132 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
7133 (handle_DW_AT_stmt_list): Use line_header_hash.
7134 (free_line_header_voidp): New function.
7135 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
7136 (dwarf_decode_lines): New parameter decode_mapping, use it.
7137 (dwarf2_free_objfile): Free line_header_hash.
7139 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
7142 * valops.c (value_rtti_indirect_type): Catch exception thrown by
7145 2015-01-15 Mark Wielaard <mjw@redhat.com>
7147 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
7149 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
7150 calling_convention an 8 bit bit field.
7151 (TYPE_NO_RETURN): New macro.
7152 * infcmd.c (finish_command): Query if function does not return
7154 * stack.c (return_command): Likewise.
7156 2015-01-23 Pedro Alves <palves@redhat.com>
7158 * linux-nat.c (linux_is_async_p): New macro.
7159 (linux_nat_is_async_p):
7160 (linux_nat_terminal_inferior): Check whether the target can async
7161 instead of whether it is already async.
7162 (linux_nat_terminal_ours): Don't check whether the target is
7164 (linux_async_pipe): Use linux_is_async_p.
7166 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7168 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
7170 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
7171 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
7172 Sort tp_array using tp_array_compar.
7173 (_initialize_thread): Extend thread_apply_all_command help.
7175 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7177 * corelow.c (core_open): Call also thread_command.
7178 * gdbthread.h (thread_command): New prototype moved from ...
7179 * thread.c (thread_command): ... here.
7180 (thread_command): Make it global.
7182 2015-01-22 Pedro Alves <palves@redhat.com>
7184 * configure.ac [*mingw32*]: Check $curses_found instead of
7186 * configure: Regenerate.
7187 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
7188 HAVE_NCURSES_NCURSES_H checks.
7190 2015-01-22 Eli Zaretskii <eliz@gnu.org>
7192 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
7193 fails with the 1st arg NULL, try again with "unknown". Don't test
7194 the "cup" capability: it isn't supported by the Windows port of
7195 ncurses, but the Windows console driver is still capable of
7198 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7200 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
7202 2015-01-22 Eli Zaretskii <eliz@gnu.org>
7204 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
7205 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
7206 reason that "make TAGS" is broken.
7208 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
7210 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
7211 and check additional store instructions.
7213 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
7215 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
7217 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
7219 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
7220 ppc_canonicalize_syscall, ppc_linux_syscall_record,
7221 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
7222 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7223 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
7224 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
7225 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
7226 ppc_process_record_op19, ppc_process_record_op31,
7227 ppc_process_record_op59, ppc_process_record_op60,
7228 ppc_process_record_op63): Likewise.
7230 2015-01-20 Joel Brobecker <brobecker@adacore.com>
7232 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
7233 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
7236 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
7238 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
7239 ppc_process_record_op31, ppc_process_record_op59,
7240 ppc_process_record_op60, ppc_process_record_op63,
7241 ppc_process_record): Fix -Wformat warning.
7242 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
7243 Remove unused variables.
7245 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
7247 * MAINTAINERS (Write After Approval): Add "Chen Gang".
7249 2015-01-19 Eli Zaretskii <eliz@gnu.org>
7251 * configure.ac [*mingw32*]: Only add windows-termcap.o to
7252 CONFIG_OBS if not building with a curses library.
7253 * configure: Regenerate.
7255 * windows-termcap.c: Include defs.h. Make the whole body empty if
7256 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
7257 HAVE_NCURSES_NCURSES_H is defined.
7259 2015-01-19 Joel Brobecker <brobecker@adacore.com>
7261 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
7262 from end of line to start of next line.
7264 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7266 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
7267 Scan PLT stub backward for reverse debugging.
7268 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7270 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7271 Ulrich Weigand <uweigand@de.ibm.com>
7273 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
7275 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
7277 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
7278 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
7279 (ppc_linux_init_abi): Set process_record, process_record_signal.
7280 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
7281 ppc_linux_record_tdep to gdbarch_tdep.
7282 (ppc_process_record): New declaration.
7283 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
7284 ppc_process_record_op19, ppc_process_record_op31,
7285 ppc_process_record_op59, ppc_process_record_op60,
7286 ppc_process_record_op63, ppc_process_record): New functions.
7288 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
7290 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
7291 rs6000_in_function_epilogue_frame_p and add an argument
7293 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
7294 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
7296 (rs6000_epilogue_frame_unwind): New.
7297 (rs6000_gdbarch_init): Append epilogue unwinder.
7299 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7301 * nat/linux-personality.c: Replace "#ifndef
7302 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
7303 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
7306 2015-01-16 Eli Zaretskii <eliz@gnu.org>
7308 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
7310 (_initialize_tui_win) <border-kind, border-mode>:
7311 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
7312 (tui_set_tab_width_command): Fix the commentary.
7314 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
7316 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
7318 (tui_set_tab_width_command): Delete and recreate the source and
7319 the disassembly windows, to show the effect of the changed tab
7322 * tui/tui-data.h (LINE_PREFIX): Make shorter
7323 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
7324 "Thread NNNNN.XXXX" thread ID notation on Windows.
7326 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7328 Fix gcc-5 compilation.
7329 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
7331 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7333 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
7334 (linux-personality.o): New rule.
7335 * common/common-defs.h: Include <stdint.h>.
7336 * config/aarch64/linux.mh (NATDEPFILES): Include
7337 linux-personality.o.
7338 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7339 * config/arm/linux.mh (NATDEPFILES): Likewise.
7340 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7341 * config/i386/linux.mh (NATDEPFILES): Likewise.
7342 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7343 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7344 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7345 * config/mips/linux.mh (NATDEPFILES): Likewise.
7346 * config/pa/linux.mh (NATDEPFILES): Likewise.
7347 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7348 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7349 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7350 * config/s390/linux.mh (NATDEPFILES): Likewise.
7351 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7352 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7353 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7354 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7355 * defs.h: Remove #include <stdint.h> (moved to
7356 common/common-defs.h).
7357 * linux-nat.c: Include nat/linux-personality.h. Remove #include
7358 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
7359 nat/linux-personality.c).
7360 (linux_nat_create_inferior): Remove code to disable address space
7361 randomization (moved to nat/linux-personality.c). Create cleanup
7362 to disable address space randomization.
7363 * nat/linux-personality.c: New file.
7364 * nat/linux-personality.h: Likewise.
7366 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7368 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
7369 common/posix-strerror.c.
7370 (posix-strerror.o): New rule.
7371 (mingw-strerror.o): Likewise.
7372 * common/common-utils.h (safe_strerror): Move prototype to here,
7374 * common/common.host: New file.
7375 * common/mingw-strerror.c: Likewise.
7376 * common/posix-strerror.c: Likewise.
7377 * configure: Regenerated.
7378 * configure.ac: Source common/common.host. Add variable
7379 common_host_obs to gdb_host_obs.
7380 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
7381 gdb/common/posix-strerror.c when warning about the use of
7383 * mingw-hdep.c (safe_strerror): Remove definition; move it to
7384 common/mingw-strerror.c.
7385 * posix-hdep.c (safe_strerror): Remove definition; move it to
7386 common/posix-hdep.c.
7387 * utils.h (safe_strerror): Remove prototype; move to
7388 common/common-utils.h.
7390 2015-01-15 Joel Brobecker <brobecker@adacore.com>
7394 2015-01-15 Joel Brobecker <brobecker@adacore.com>
7396 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
7397 ___XA type if the array has already been fixed.
7399 2015-01-14 Yao Qi <yao@codesourcery.com>
7401 * Makefile.in (ppc-linux.o): New rule.
7402 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
7403 * configure.ac: AC_CHECK_FUNCS(getauxval).
7404 * config.in: Re-generated.
7405 * configure: Re-generated.
7406 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
7408 * nat/ppc-linux.c: New file.
7409 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
7410 Call ppc64_64bit_inferior_p.
7412 2015-01-14 Yao Qi <yao@codesourcery.com>
7414 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
7416 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
7417 (PPC_FEATURE_HAS_DFP): Likewise.
7418 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7419 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7420 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7421 Include "nat/ppc-linux.h".
7422 * nat/ppc-linux.h: New file.
7423 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
7425 2015-01-14 Pedro Alves <palves@redhat.com>
7428 * breakpoint.c: Include "interps.h".
7429 (bpstat_do_actions_1): Also check whether the interpreter is
7432 2015-01-14 Pedro Alves <palves@redhat.com>
7435 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
7436 reinstall if the interpreter is sync.
7438 2015-01-13 Doug Evans <dje@google.com>
7440 * objfiles.c (objfile_filename): New function.
7441 * objfiles.h (objfile_filename): Declare it.
7442 (objfile_name): Add function comment.
7443 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
7444 bfd file name (which may be realpath'd), and the original name.
7446 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7448 * NEWS: Create a new section for the next release branch.
7449 Rename the section of the current branch, now that it has
7452 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7454 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
7455 * version.in: Bump version to 7.9.50.DATE-cvs.
7457 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7459 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
7460 Remove trailing new-line in argument of call to warning.
7462 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7464 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
7465 new-line in argument of call to "warning".
7467 2015-01-13 Joel Brobecker <brobecker@adacore.com>
7469 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
7470 in static block, then try searching for primitive types.
7472 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
7474 * top.h (gdb_add_history): Declare.
7475 * top.c (command_count): New variable.
7476 (gdb_add_history): New function.
7477 (gdb_safe_append_history): New static function.
7478 (quit_force): Call it.
7479 (command_line_input): Use gdb_add_history instead of
7481 * event-top.c (command_line_handler): Likewise.
7483 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
7486 * darwin-nat.c: Replace <machine/setjmp.h> #include by
7487 <setjmp.h> #include.
7489 2015-01-11 Doug Evans <xdje42@gmail.com>
7491 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
7493 2015-01-11 Doug Evans <xdje42@gmail.com>
7496 * NEWS: The "maint demangle" command is renamed as "demangle".
7497 * demangle.c: #include cli/cli-utils.h, language.h.
7498 (demangle_command): New function.
7499 (_initialize_demangle): Add new command "demangle".
7500 * maint.c (maintenance_demangle): Stub out.
7501 (_initialize_maint_cmds): Update help text for "maint demangle",
7502 and mark as deprecated.
7504 2015-01-11 Mark Kettenis <kettenis@gnu.org>
7506 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
7507 inferior_thread is a function.
7509 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7511 * Makefile.in (.y.c): Don't munge yacc's #line
7514 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
7516 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
7517 to prompt for input.
7518 * tui/tui-hooks.c (tui_query_hook): Remove.
7519 (tui_install_hooks): Don't set deprecated_query_hook.
7520 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
7521 height calculation. Always update the command window's cur_line.
7523 2015-01-09 Pedro Alves <palves@redhat.com>
7525 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
7527 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
7529 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
7530 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
7532 (check_stopped_by_watchpoint): New function.
7533 (save_sigtrap): Reimplement.
7534 (linux_nat_stopped_by_watchpoint): Adjust.
7535 (linux_nat_lp_status_is_event): Delete.
7536 (stop_wait_callback): Only call save_sigtrap after storing the
7538 (status_callback): If the thread had been stopped for a breakpoint
7539 that has since been removed, discard the event and resume the LWP.
7540 (count_events_callback, select_event_lwp_callback): Use
7541 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
7542 (cancel_breakpoint): Rename to ...
7543 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7544 stopped for a software breakpoint or hardware breakpoint.
7545 (select_event_lwp): Only give preference to the stepping LWP in
7546 all-stop mode. Adjust comments.
7547 (stop_and_resume_callback): Remove references to new_pending_p.
7548 (linux_nat_filter_event): Likewise. Leave exit events of the
7549 leader thread pending here. Handle signal short circuiting here.
7550 Only call save_sigtrap after storing the pending waitstatus.
7551 (linux_nat_wait_1): Remove 'retry' label. Remove references to
7552 new_pending. Don't handle leaving events the caller is not
7553 interested in pending here, nor handle signal short-circuiting
7554 here. Also give equal priority to all LWPs that have had events
7555 in non-stop mode. If reporting a software breakpoint event,
7556 unadjust the LWP's PC.
7557 * linux-nat.h (enum lwp_stop_reason): New.
7558 (struct lwp_info) <stop_pc>: New field.
7559 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
7560 (struct lwp_info) <stop_reason>: New field.
7561 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7563 2015-01-09 Pedro Alves <palves@redhat.com>
7565 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
7566 Set the LWP's 'resumed' flag.
7568 2015-01-09 Pedro Alves <palves@redhat.com>
7570 * linux-nat.c (linux_resume_one_lwp): New function.
7571 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
7572 (linux_nat_resume): Use lwp_status_pending_p and
7573 linux_resume_one_lwp.
7574 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
7575 (linux_handle_extended_wait): Use linux_resume_one_lwp.
7576 (status_callback, running_callback): Use lwp_status_pending_p.
7577 (lwp_status_pending_p): New function.
7578 (stop_and_resume_callback): Use lwp_status_pending_p.
7579 (linux_nat_filter_event): Use linux_resume_one_lwp.
7580 (linux_nat_wait_1): Always use status_callback to look for an LWP
7581 with a pending status. Use linux_resume_one_lwp.
7582 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
7583 linux_resume_one_lwp.
7585 2015-01-09 Pedro Alves <palves@redhat.com>
7587 * breakpoint.c (bp_location_inserted_here_p): New function,
7588 factored out from ...
7589 (breakpoint_inserted_here_p): ... here. Use
7590 ALL_BP_LOCATIONS_AT_ADDR.
7591 (software_breakpoint_inserted_here_p): Use
7592 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
7594 2014-01-09 Pedro Alves <palves@redhat.com>
7596 Skip enabling event reporting if the kernel supports
7598 * linux-thread-db.c: Include "nat/linux-ptrace.h".
7599 (thread_db_use_events): New function.
7600 (try_thread_db_load_1): Check thread_db_use_events before enabling
7602 (update_thread_state): New function.
7603 (attach_thread): Use it. Check thread_db_use_events before
7604 enabling event reporting.
7605 (thread_db_detach): Check thread_db_use_events before disabling
7607 (find_new_threads_callback): Check thread_db_use_events before
7608 enabling event reporting. Update the thread's state if not using
7609 libthread_db events.
7611 2015-01-09 Pedro Alves <palves@redhat.com>
7613 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
7614 about to wait for is > 0.
7615 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
7616 the kernel thread ID is -1.
7618 2015-01-09 Pedro Alves <palves@redhat.com>
7620 * linux-nat.c (attach_proc_task_lwp_callback): New function.
7621 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
7622 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
7623 ptrace option flags.
7624 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
7626 * nat/linux-procfs.c: Include <dirent.h>.
7627 (linux_proc_get_int): New parameter "warn". Handle it.
7628 (linux_proc_get_tgid): Adjust.
7629 (linux_proc_get_tracerpid): Rename to ...
7630 (linux_proc_get_tracerpid_nowarn): ... this.
7631 (linux_proc_pid_get_state): New function, factored out from
7632 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
7634 (linux_proc_pid_is_gone): New function.
7635 (linux_proc_pid_is_stopped): Adjust.
7636 (linux_proc_pid_is_zombie_maybe_warn)
7637 (linux_proc_pid_is_zombie_nowarn): New functions.
7638 (linux_proc_pid_is_zombie): Use
7639 linux_proc_pid_is_zombie_maybe_warn.
7640 (linux_proc_attach_tgid_threads): New function.
7641 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
7642 (linux_proc_get_tracerpid): Rename to ...
7643 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
7644 (linux_proc_pid_is_gone): New declaration.
7645 (linux_proc_pid_is_zombie): Update comment.
7646 (linux_proc_pid_is_zombie_nowarn): New declaration.
7647 (linux_proc_attach_lwp_func): New typedef.
7648 (linux_proc_attach_tgid_threads): New declaration.
7649 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
7650 use nowarn functions.
7651 (linux_ptrace_attach_fail_reason_string): Move here from
7652 gdbserver/linux-low.c and rename.
7653 (ptrace_supports_feature): If the current ptrace options are not
7654 known yet, check them now, instead of asserting.
7655 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
7658 2015-01-09 Pedro Alves <palves@redhat.com>
7660 * linux-thread-db.c (thread_db_find_new_threads_silently)
7661 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
7662 (find_new_threads_once): Print debug output on gdb_stdlog.
7664 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
7665 Pedro Alves <palves@redhat.com>
7667 * compile/compile.c: Include "gdb_wait.h".
7668 (do_rmdir): Check return value, and free 'zap'.
7670 2015-01-08 Pedro Alves <palves@redhat.com>
7671 Yao Qi <yao@codesourcery.com>
7673 * dwarf2loc.c (indirect_pieced_value): Don't call
7674 gdb_sign_extend. Call extract_signed_integer instead.
7675 * utils.c (gdb_sign_extend): Remove.
7676 * utils.h (gdb_sign_extend): Remove declaration.
7678 2015-01-07 Pierre Muller <muller@sourceware.org>
7681 * stabsread.c (define_symbol): Set language for C++ special symbols.
7683 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7685 * inflow.c (initial_gdb_ttystate): Tweak comment.
7687 2015-01-07 Joel Brobecker <brobecker@adacore.com>
7689 * inflow.c (set_initial_gdb_ttystate): Add empty line after
7690 comment documenting function.
7692 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7694 * terminal.h (set_initial_gdb_ttystate): Declare.
7695 * inflow.c (initial_gdb_ttystate): New static variable.
7696 (set_initial_gdb_ttystate): New setter.
7697 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
7698 instead of our current terminal state.
7699 * top.c (gdb_init): Call set_initial_gdb_ttystate.
7701 2015-01-07 Joel Brobecker <brobecker@adacore.com>
7703 * guile/scm-type.c (tyscm_array_1): Add comment.
7704 * python/py-type.c (typy_array_1): Add comment.
7706 2015-01-06 Joel Brobecker <brobecker@adacore.com>
7708 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
7709 error if N2 is equal to N1 - 1.
7711 2015-01-06 Joel Brobecker <brobecker@adacore.com>
7713 * python/py-type.c (typy_array_1): Do not raise negative-length
7714 exception if N2 is equal to N1 - 1.
7716 2015-01-03 Doug Evans <xdje42@gmail.com>
7718 * c-exp.y: Whitespace cleanup.
7719 (classify_inner_name): Remove extra ;.
7721 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
7723 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
7726 2015-01-02 Doug Evans <dje@google.com>
7728 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
7730 2015-01-02 Doug Evans <dje@google.com>
7732 * symtab.h (struct symbol): Fix typo in comment.
7734 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7736 Update year range in copyright notice of all files.
7738 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7740 * top.c (print_gdb_version): Update copyright year to 2015.
7742 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7744 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
7746 For older changes see ChangeLog-2014.
7752 version-control: never