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