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