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