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