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