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