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