Add cast to observer.sh
[binutils-gdb.git] / gdb / ChangeLog
1 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
2
3 * observer.h (observer_${event}_notification_stub): Add cast.
4
5 2015-10-23 Yao Qi <yao.qi@linaro.org>
6
7 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
8 dsd.insn_count to zero.
9
10 2015-10-22 Pedro Alves <palves@redhat.com>
11
12 * infrun.c (stop_after_trap): Delete.
13 (clear_proceed_status, handle_signal_stop, struct
14 infcall_control_state, save_infcall_control_state)
15 (restore_infcall_control_state): Remove references to
16 stop_after_trap.
17
18 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
19
20 * python/python.c (_initialize_python): Add cast.
21
22 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
23
24 * nto-tdep.c (nto_inferior_data): Add cast.
25
26 2015-10-22 Pedro Alves <palves@redhat.com>
27
28 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
29 windows_wait and windows_resume directly instead of
30 wait_for_inferior and resume.
31
32 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * xtensa-tdep.h (XTREG): Add casts.
35 (XTREG_END): Likewise.
36
37 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
38
39 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
40
41 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
44
45 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
48 buf to gdb_byte*.
49 (supply_32bit_reg): Add cast.
50 (mips64_fill_gregset): Likewise.
51
52 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
53
54 PR python/18073
55 * python/py-type.c (typy_get_composite): Allow returning a
56 function type.
57
58 2015-10-21 Keven Boell <keven.boell@intel.com>
59
60 * dwarf2read.c (set_die_type): Add read of
61 DW_AT_allocated and DW_AT_associated.
62 * f-typeprint.c: New include of typeprint.h
63 (f_print_type): Add check for allocated/associated
64 status of type.
65 (f_type_print_varspec_suffix): Add check for
66 * gdbtypes.c (create_array_type_with_stride):
67 Add check for valid data location of type in
68 case allocated or associated attributes are set.
69 Length of an array should be only calculated if
70 allocated or associated is resolved as true.
71 (is_dynamic_type_internal): Add check for allocated/
72 associated.
73 (resolve_dynamic_array): Evaluate allocated/associated
74 properties.
75 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
76 <DYN_PROP_ASSOCIATED>: New enums.
77 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
78 (type_not_allocated): New function.
79 (type_not_associated): New function.
80 * valarith.c (value_subscripted_rvalue): Add check for
81 allocated/associated.
82 * valprint.c: New include of typeprint.h.
83 (valprint_check_validity): Add check for allocated/associated.
84 (value_check_printable): Add check for allocated/
85 associated.
86 * typeprint.h (val_print_not_allocated): New function.
87 (val_print_not_associated): New function.
88 * typeprint.c (val_print_not_allocated): New function.
89 (val_print_not_associated): New function.
90
91 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
92
93 * Makefile.in: Add arm.c/o.
94 * arch/arm.c: New file.
95 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
96 (MAKE_THUMB_ADDR): Likewise.
97 (UNMAKE_THUMB_ADDR): Likewise.
98 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
99 (IS_THUMB_ADDR): Move to arm.h.
100 (MAKE_THUMB_ADDR): Likewise.
101 (UNMAKE_THUMB_ADDR): Likewise.
102 * configure.tgt: Add arm.o to all ARM configs.
103
104 2015-10-21 Yao Qi <yao.qi@linaro.org>
105
106 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
107 Remove argument exp_vCont_s.
108 * gdb.base/range-stepping.exp: Callers updated.
109 * gdb.trace/range-stepping.exp: Likewise.
110
111 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
112
113 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
114 (nto_sniff_abi_note_section): New function.
115 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
116 binary.
117
118 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
119
120 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
121 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
122 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
123 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
124 New functions.
125 (_initialize_nto_tdep): New forward declaration, new function.
126 * nto-tdep.h (struct nto_inferior_data): New struct.
127 (nto_inferior_data): New function declaration.
128
129 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
130
131 * findvar.c (address_from_register): Check REGNUM validity.
132
133 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
134
135 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
136 (init_procfs_targets): Wire new function.
137
138 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
139
140 * nto-procfs.c (sys/auxv.h): Include.
141 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
142 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
143 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
144
145 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
146
147 * nto-procfs.c (nto_procfs_path): Rename to...
148 (nodestr): ... this, and change type.
149 (nto_node): Use new variable and logic accordingly.
150 (procfs_open_1): Use new variable name. Use local buffer to construct
151 procfrs path.
152 (procfs_pidlist): Use NODESTR to construct procfs path.
153 (procfs_files_info): Use NODESTR to output meaningful text.
154 (do_attach): Construct procfs using NODESTR.
155 (procfs_create_inferior): Compare pointer to NULL.
156
157 2015-10-19 Josh Stone <jistone@redhat.com>
158
159 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
160 return state, even when not actively catching syscalls at all.
161 (linux_handle_extended_wait): Mark syscall_state like an entry.
162 (wait_lwp): Set syscall_state ignored for other traps.
163 (linux_nat_filter_event): Likewise.
164
165 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
166
167 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
168 when handling 'E', 'T', 'S', 'X' and 'W' packets.
169 Do not set rs->waiting_for_stop_reply back to 1.
170
171 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
172
173 * nto-procfs.c (common/filestuff.h): Include.
174 (procfs_can_use_hw_breakpoint): Fix enum name.
175 (procfs_open_1): Fix compiler warning.
176 (procfs_pidlist): Make static.
177 (procfs_meminfo): Make static, fix type name, add missing argument.
178 (procfs_store_registers): Make static.
179 (procfs_thread_info): Remove unused function.
180 (_initialize_procfs): Forward declare.
181
182 2015-10-16 Yao Qi <yao.qi@arm.com>
183
184 * MAINTAINERS: Update my email address.
185
186 2015-10-15 Yao Qi <yao.qi@linaro.org>
187
188 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
189 Call gdbarch_breakpoint_from_pc to instruction length.
190 (aarch64_linux_remove_hw_breakpoint): Likewise.
191 * common/common-regcache.h (regcache_register_size): Declare.
192 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
193 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
194 the process is 32bit, otherwise set alignment to 4.
195 (aarch64_handle_breakpoint): Update comments.
196 * regcache.c (regcache_register_size): New function.
197
198 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
199
200 * gdbarch.sh (core_regset_section): Remove.
201 * gdbarch.h: Regenerate.
202
203 2015-10-14 Yao Qi <yao.qi@linaro.org>
204
205 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
206 out of it.
207 (enum aarch64_memory_operand_type): New.
208
209 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
210
211 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
212
213 2015-10-13 Pedro Alves <palves@redhat.com>
214
215 * ada-lang.c (ada_enum_name): Constify local.
216 * ada-typeprint.c (print_range_bound): Constify locals.
217 * c-varobj.c (c_describe_child): Likewise.
218 * cli/cli-setshow.c (do_set_command): Likewise.
219 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
220 * dwarf2read.c (find_file_and_directory): Likewise.
221 (anonymous_struct_prefix, dwarf2_name): Likewise.
222 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
223 * go-lang.c (unpack_mangled_go_symbol): Likewise.
224 * jv-typeprint.c (java_type_print_base): Likewise.
225 * ser-tcp.c (net_open): Likewise.
226 * symfile.c (deduce_language_from_filename): Likewise.
227 * symtab.c (gdb_mangle_name): Likewise.
228 * tui/tui-io.c (tui_redisplay_readline): Likewise.
229
230 2015-10-13 Pedro Alves <palves@redhat.com>
231
232 * infrun.c (restore_execution_direction): New function.
233 (fetch_inferior_event): Use it instead of
234 make_cleanup_restore_integer.
235 (execution_direction): Change type to enum
236 exec_direction_kind.
237 * infrun.h (execution_direction): Likewise.
238
239 2015-10-13 Pedro Alves <palves@redhat.com>
240
241 * ada-lang.c (ada_value_primitive_packed_val): Constify
242 locals. Use value_contents_writeable. Remove casts.
243
244 2015-10-13 Pedro Alves <palves@redhat.com>
245
246 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
247 and alloca calls.
248
249 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
252 write_memory with write_memory_unsigned_integer.
253
254 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * solib-dsbt.c (cmp_name): Constify arguments.
257 * solib-frv.c (cmp_name): Likewise.
258 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
259 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
260 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
261 (gdb_bfd_lookup_symbol): Likewise.
262 * solib.h (gdb_bfd_lookup_symbol): Likewise.
263 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
264
265 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * stack.c (parse_frame_specification): Remove message parameter,
268 replace with fixed string in function body, update function
269 comment.
270 (frame_info): Remove message to parse_frame_specification.
271 (select_frame_command): Likewise.
272
273 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * stack.c (parse_frame_specification): Delete.
276 (parse_frame_specification_1): Rename to
277 parse_frame_specification.
278 (frame_info): Use parse_frame_specification.
279 (select_frame_command): Likewise.
280 (return_command): Use select_frame and print_stack_frame rather
281 than frame_command and select_frame_command.
282 (func_command): Use get_current_frame rather than
283 parse_frame_specification.
284
285 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
286
287 * stack.c (func_command): Return early when there is no ARG
288 string.
289
290 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
291
292 * stack.c: Include safe-ctype.h not ctype.h.
293 (parse_frame_specification): Use ISSPACE not isspace.
294 (backtrace_command): Use TOLOWER not tolower.
295
296 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
297
298 * mep-tdep.c (current_me_module): Add cast.
299 (mep_gdbarch_init): Likewise.
300
301 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * m32c-tdep.c (m32c_move_reg_t): Replace with...
304 (m32c_write_reg_t): ...this and...
305 (m32c_read_reg_t): ...this.
306 (struct m32c_reg): Update types of read and write.
307 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
308 adjust definition.
309 (m32c_banked_read): Likewise.
310 (m32c_sb_read): Likewise.
311 (m32c_part_read): Likewise.
312 (m32c_cat_read): Likewise.
313 (m32c_r3r2r1r0_read): Likewise.
314 (m32c_raw_write): Change declaration type to m32c_write_reg_t
315 and adjust definition.
316 (m32c_banked_write): Likewise.
317 (m32c_sb_write): Likewise.
318 (m32c_part_write): Likewise.
319 (m32c_cat_write): Likewise.
320 (m32c_r3r2r1r0_write): Likewise.
321
322 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
325
326 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
329 gdb_sys_no_syscall instead of -1.
330
331 2015-10-12 Yao Qi <yao.qi@linaro.org>
332
333 * NEWS: Mention the change.
334
335 2015-10-12 Yao Qi <yao.qi@linaro.org>
336
337 * arch/aarch64-insn.c (emit_load_store): Rename to ...
338 (aarch64_emit_load_store): ... it. All callers updated.
339
340 2015-10-12 Yao Qi <yao.qi@linaro.org>
341
342 * arch/aarch64-insn.c (emit_insn): Rename to ...
343 (aarch64_emit_insn): ... it. All callers updated.
344
345 2015-10-12 Yao Qi <yao.qi@linaro.org>
346
347 * aarch64-linux-tdep.c: Include arch-utils.h.
348 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
349 set_gdbarch_displaced_step_copy_insn,
350 set_gdbarch_displaced_step_fixup,
351 set_gdbarch_displaced_step_free_closure,
352 set_gdbarch_displaced_step_location,
353 and set_gdbarch_displaced_step_hw_singlestep.
354 * aarch64-tdep.c (struct displaced_step_closure): New.
355 (struct aarch64_displaced_step_data): New.
356 (aarch64_displaced_step_b): New function.
357 (aarch64_displaced_step_b_cond): Likewise.
358 (aarch64_register): Likewise.
359 (aarch64_displaced_step_cb): Likewise.
360 (aarch64_displaced_step_tb): Likewise.
361 (aarch64_displaced_step_adr): Likewise.
362 (aarch64_displaced_step_ldr_literal): Likewise.
363 (aarch64_displaced_step_others): Likewise.
364 (aarch64_displaced_step_copy_insn): Likewise.
365 (aarch64_displaced_step_fixup): Likewise.
366 (aarch64_displaced_step_hw_singlestep): Likewise.
367 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
368 (aarch64_displaced_step_copy_insn): Declare.
369 (aarch64_displaced_step_fixup): Declare.
370 (aarch64_displaced_step_hw_singlestep): Declare.
371 * arch/aarch64-insn.c (emit_insn): Moved from
372 gdbserver/linux-aarch64-low.c.
373 (emit_load_store): Likewise.
374 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
375 gdbserver/linux-aarch64-low.c.
376 (struct aarch64_register): Likewise.
377 (struct aarch64_memory_operand): Likewise.
378 (ENCODE): Likewise.
379 (can_encode_int32): New macro.
380 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
381 (emit_tb, emit_nop): Likewise.
382 (emit_insn): Declare.
383 (emit_load_store): Declare.
384
385 2015-10-12 Yao Qi <yao.qi@linaro.org>
386
387 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
388 gdbserver/linux-aarch64-low.c.
389 (aarch64_relocate_instruction): Likewise.
390 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
391 (struct aarch64_insn_data): Moved from
392 gdbserver/linux-aarch64-low.c.
393 (struct aarch64_insn_visitor): Likewise.
394 (aarch64_relocate_instruction): Declare.
395
396 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
397
398 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
399 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
400 to the returned value.
401
402 2015-10-09 Joel Brobecker <brobecker@adacore.com>
403
404 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
405 is large enough for BIT_SIZE. Update function comment.
406
407 2015-10-09 Joel Brobecker <brobecker@adacore.com>
408
409 * ada-lang.c (ada_value_primitive_packed_val): Move
410 src_len variable to local block where used. Override
411 BIT_SIZE if bigger than size of resolved type.
412
413 2015-10-09 Joel Brobecker <brobecker@adacore.com>
414
415 * gdbtypes.h (is_scalar_type): Add extern declaration.
416 * gdbtypes.c (is_scalar_type): Make non-static.
417 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
418 to compute IS_SCALAR instead of doing it ourselves.
419
420 2015-10-09 Joel Brobecker <brobecker@adacore.com>
421
422 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
423 of case where TYPE is dynamic.
424
425 2015-10-09 Joel Brobecker <brobecker@adacore.com>
426
427 * ada-lang.c (ada_unpack_from_contents): New function,
428 extracted from ada_value_primitive_packed_val.
429 (ada_value_primitive_packed_val): Replace extracted out code
430 by call to ada_unpack_from_contents.
431
432 2015-10-09 Joel Brobecker <brobecker@adacore.com>
433
434 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
435 variable declarations.
436
437 2015-10-09 Joel Brobecker <brobecker@adacore.com>
438
439 * ada-lang.c (ada_value_primitive_packed_val): Change the type
440 of local variables src and unpacked to "gdb_type *" instead of
441 "unsigned char *".
442
443 2015-10-09 Joel Brobecker <brobecker@adacore.com>
444
445 * ada-lang.c (ada_value_primitive_packed_val): Make the name
446 of various local variables more explicit and consistent.
447 No real code change otherwise.
448
449 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
450
451 * i386-tdep.h (struct gdbarch_tdep): Change type of
452 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
453
454 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
455
456 * cris-tdep.c (struct instruction_environment): Change type of
457 byte_order to enum bfd_endian.
458
459 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
460
461 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
462 enum gdb_syscall casts.
463
464 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
465
466 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
467 * arm-tdep.c (struct stack_item): Likewise.
468 (push_stack_item): Add gdb_byte* cast.
469 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
470 (push_stack_item): Add gdb_byte* cast.
471 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
472 and add cast.
473 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
474 (push_stack_item): Add gdb_byte* cast.
475 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
476 add cast.
477 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
478 gdb_byte*.
479 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
480 gdb_byte* and remove unnecessary cast.
481 (h8300h_extract_return_value): Likewise.
482 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
483 (h8300h_store_return_value): Likewise.
484 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
485 gdb_byte* and remove unnecessary cast.
486 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
487 and add cast.
488 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
489 gdb_byte* and remove unnecessary cast.
490 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
491 valbuf.
492 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
493 (mep_pseudo_cr64_read): Likewise.
494 (mep_pseudo_csr_write): Likewise.
495 (mep_pseudo_cr32_write): Likewise.
496 (mep_pseudo_cr64_write): Likewise.
497 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
498 gdb_byte* and add cast.
499 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
500 gdb_byte* and remove unnecessary cast.
501 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
502 valbuf.
503 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
504 gdb_byte*.
505 * printcmd.c (void): Likewise.
506 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
507 gdb_byte* and add cast.
508 (infpy_write_memory): Likewise.
509 (infpy_search_memory): Likewise.
510 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
511 and add cast.
512 (regcache_raw_write_unsigned): Likewise.
513 (regcache_cooked_write_signed): Likewise.
514 (regcache_cooked_write_unsigned): Likewise.
515 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
516 gdb_byte*.
517
518 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
519
520 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
521 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
522
523 2015-10-09 Eli Zaretskii <eliz@gnu.org>
524
525 * stack.c (print_stack_frame):
526 * utils.c (printchar): Fix typos in commentary.
527
528 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
529
530 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
531 (PostfixExpression): Support `expr.sizeof' expressions.
532 (PrimaryExpression): Support `typeof(expr)' expressions.
533
534 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
535
536 * MAINTAINERS: Update my email address.
537
538 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
539
540 * record-btrace.c (record_btrace_resume): Fix void return.
541
542 2015-10-07 Yao Qi <yao.qi@linaro.org>
543
544 * aarch64-tdep.c: Include opcode/aarch64.h.
545 (submask): Move it above.
546 (bit): Likewise.
547 (bits): Likewise.
548 (aarch64_software_single_step): Call aarch64_decode_insn.
549 Decode instruction by aarch64_inst instead of using
550 aarch64_decode_bcond and decode_masked_match.
551
552 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
553
554 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
555 only when the file is binary.
556
557 2015-10-02 James Bowman <james.bowman@ftdichip.com>
558
559 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
560 subroutine handling.
561
562 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
563
564 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
565
566 2015-09-30 Doug Evans <dje@google.com>
567
568 * dwarf2read.c (setup_type_unit_groups): Add comment.
569
570 2015-09-30 Pedro Alves <palves@redhat.com>
571
572 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
573 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
574 (x86_linux_create_target): Don't install
575 x86_linux_always_non_stop_p.
576
577 2015-09-30 Don Breazeal <donb@codesourcery.com>
578
579 * remote.c (remote_parse_stop_reply): Call strprefix instead
580 of strncmp.
581
582 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
583
584 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
585 * gdbarch.h: Regenerate.
586 * i386-tdep.c (i386_gdbarch_init): Remove cast to
587 struct gdbarch_tdep_info *.
588 * mips-tdep.c (mips_gdbarch_init): Likewise.
589 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
590 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
591 * spu-multiarch.c (spu_gdbarch): Likewise.
592
593 2015-09-30 Kevin Buettner <kevinb@redhat.com>
594
595 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
596 record a NULL value.
597
598 2015-09-29 Kevin Buettner <kevinb@redhat.com>
599
600 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
601 and union arguments the same as pointer arguments when determining
602 size of argument.
603
604 2015-09-29 James Bowman <james.bowman@ftdichip.com>
605
606 * ft32-tdep.c: #include "opcode/ft32.h".
607 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
608 (ft32_analyze_prologue): Use FT32_* macros.
609
610 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
611
612 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
613 comment.
614
615 2015-09-28 Doug Evans <dje@google.com>
616
617 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
618
619 2015-09-28 Doug Evans <dje@google.com>
620
621 * common/filestuff.c (make_cleanup_close): Update comment.
622
623 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
624
625 * btrace.c (parse_xml_btrace_block): Fix cast of
626 xml_find_attribute's return value.
627 * memory-map.c (memory_map_start_memory): Likewise.
628 * solib-svr4.c (library_list_start_library): Likewise.
629 * solib-target.c (library_list_start_segment): Likewise.
630 (library_list_start_section): Likewise.
631 * tracepoint.c (traceframe_info_start_memory): Likewise.
632
633 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
634
635 * d-namespace.c (d_lookup_symbol): New arg langdef.
636 All callers updated. Support looking up symbol as a primitive type.
637 (lookup_module_scope): New arg langdef. All callers updated.
638 Call d_lookup_symbol directly for simple bare symbols.
639
640 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
641
642 * macrocmd.c (print_macro_callback): Add cast(s).
643 * macrotab.c (macro_bcache_str): Likewise.
644 (new_macro_definition): Likewise.
645 * main.c (captured_main): Likewise.
646 * maint.c (print_bfd_section_info): Likewise.
647 * mdebugread.c (mdebug_build_psymtabs): Likewise.
648 (basic_type): Likewise.
649 * memattr.c (mem_region_cmp): Likewise.
650 * memory-map.c (memory_map_start_memory): Likewise.
651 (memory_map_end_memory): Likewise.
652 (memory_map_start_property): Likewise.
653 (memory_map_end_property): Likewise.
654 (clear_result): Likewise.
655 * memrange.c (compare_mem_ranges): Likewise.
656 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
657 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
658 * mi/mi-console.c (mi_console_file_delete): Likewise.
659 (mi_console_file_fputs): Likewise.
660 (mi_console_raw_packet): Likewise.
661 (mi_console_file_flush): Likewise.
662 (mi_console_set_raw): Likewise.
663 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
664 (mi_new_thread): Likewise.
665 (mi_thread_exit): Likewise.
666 (mi_record_changed): Likewise.
667 (mi_inferior_added): Likewise.
668 (mi_inferior_appeared): Likewise.
669 (mi_inferior_exit): Likewise.
670 (mi_inferior_removed): Likewise.
671 (mi_interp_data): Likewise.
672 (mi_on_normal_stop): Likewise.
673 (mi_traceframe_changed): Likewise.
674 (mi_tsv_created): Likewise.
675 (mi_tsv_deleted): Likewise.
676 (mi_tsv_modified): Likewise.
677 (mi_breakpoint_created): Likewise.
678 (mi_breakpoint_deleted): Likewise.
679 (mi_breakpoint_modified): Likewise.
680 (mi_output_running_pid): Likewise.
681 (mi_inferior_count): Likewise.
682 (mi_solib_loaded): Likewise.
683 (mi_solib_unloaded): Likewise.
684 (mi_command_param_changed): Likewise.
685 (mi_memory_changed): Likewise.
686 (report_initial_inferior): Likewise.
687 (mi_ui_out): Likewise.
688 (mi_set_logging): Likewise.
689 * mi/mi-main.c (collect_cores): Likewise.
690 (print_one_inferior): Likewise.
691 (free_vector_of_ints): Likewise.
692 (free_splay_tree): Likewise.
693 (mi_execute_command): Likewise.
694 * mi/mi-out.c (mi_table_body): Likewise.
695 (mi_table_end): Likewise.
696 (mi_table_header): Likewise.
697 (mi_begin): Likewise.
698 (mi_end): Likewise.
699 (mi_field_int): Likewise.
700 (mi_field_string): Likewise.
701 (mi_field_fmt): Likewise.
702 (mi_flush): Likewise.
703 (mi_redirect): Likewise.
704 (field_separator): Likewise.
705 (mi_open): Likewise.
706 (mi_close): Likewise.
707 (mi_out_buffered): Likewise.
708 (mi_out_rewind): Likewise.
709 (mi_out_put): Likewise.
710 (mi_version): Likewise.
711 (mi_out_data_dtor): Likewise.
712 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
713 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
714 * minidebug.c (lzma_open): Likewise.
715 (lzma_pread): Likewise.
716 (lzma_close): Likewise.
717 (lzma_stat): Likewise.
718 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
719 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
720 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
721 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
722 (mips_micro_frame_cache): Likewise.
723 (mips_insn32_frame_cache): Likewise.
724 (mips_stub_frame_cache): Likewise.
725 (gdb_print_insn_mips): Likewise.
726 (value_of_mips_user_reg): Likewise.
727 (mips_gdbarch_init): Likewise.
728 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
729 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
730 (mipsnbsd_supply_gregset): Likewise.
731 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
732 (am33_collect_gregset_method): Likewise.
733 (am33_collect_fpregset_method): Likewise.
734 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
735 * moxie-tdep.c (moxie_frame_cache): Likewise.
736 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
737 (msp430_analyze_frame_prologue): Likewise.
738 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
739 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
740 (nios2_collect_gregset): Likewise.
741 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
742 (nios2_stub_frame_cache): Likewise.
743 * objc-lang.c (find_methods): Likewise.
744 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
745 (get_objfile_pspace_data): Likewise.
746 (get_objfile_bfd_data): Likewise.
747 (objfile_bfd_data_free): Likewise.
748 (add_to_objfile_sections): Likewise.
749 (do_free_objfile_cleanup): Likewise.
750 (resume_section_map_updates_cleanup): Likewise.
751 * opencl-lang.c (builtin_opencl_type): Likewise.
752 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
753 * osdata.c (osdata_start_osdata): Likewise.
754 (osdata_start_item): Likewise.
755 (osdata_start_column): Likewise.
756 (osdata_end_column): Likewise.
757 (clear_parsing_data): Likewise.
758 (osdata_free_cleanup): Likewise.
759 * parse.c (type_stack_cleanup): Likewise.
760 (exp_uses_objfile_iter): Likewise.
761 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
762 (ppc_linux_collect_gregset): Likewise.
763 (ppu2spu_prev_arch): Likewise.
764 (ppu2spu_this_id): Likewise.
765 (ppu2spu_prev_register): Likewise.
766 (ppu2spu_unwind_register): Likewise.
767 (ppu2spu_sniffer): Likewise.
768 (ppu2spu_dealloc_cache): Likewise.
769 (ppc_linux_init_abi): Likewise.
770 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
771 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
772 * progspace.c (restore_program_space): Likewise.
773 * psymtab.c (find_pc_sect_psymtab): Likewise.
774 (compare_psymbols): Likewise.
775 (psymbol_bcache_full): Likewise.
776 (allocate_psymtab): Likewise.
777 (discard_psymtabs_upto): Likewise.
778 * python/py-block.c (set_block): Likewise.
779 (del_objfile_blocks): Likewise.
780 * python/py-breakpoint.c (build_bp_list): Likewise.
781 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
782 (build_inferior_list): Likewise.
783 (py_free_inferior): Likewise.
784 * python/py-objfile.c (py_free_objfile): Likewise.
785 (objfile_to_objfile_object): Likewise.
786 * python/py-prettyprint.c (py_restore_tstate): Likewise.
787 * python/py-progspace.c (py_free_pspace): Likewise.
788 (pspace_to_pspace_object): Likewise.
789 * python/py-symbol.c (set_symbol): Likewise.
790 (del_objfile_symbols): Likewise.
791 * python/py-symtab.c (set_sal): Likewise.
792 (set_symtab): Likewise.
793 (del_objfile_symtab): Likewise.
794 (del_objfile_sal): Likewise.
795 * python/py-type.c (save_objfile_types): Likewise.
796 (set_type): Likewise.
797 * python/py-unwind.c (pyuw_prev_register): Likewise.
798 (pyuw_on_new_gdbarch): Likewise.
799 * python/py-utils.c (py_decref): Likewise.
800 (py_xdecref): Likewise.
801 (gdb_py_generic_dict): Likewise.
802 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
803 (gdbpy_clone_xmethod_worker_data): Likewise.
804 (gdbpy_get_xmethod_arg_types): Likewise.
805 (gdbpy_get_xmethod_result_type): Likewise.
806 (gdbpy_invoke_xmethod): Likewise.
807 * python/python.c (gdbpy_apply_type_printers): Likewise.
808 (gdbpy_free_type_printers): Likewise.
809 * record-btrace.c (record_btrace_disable_callback): Likewise.
810 (bfcache_hash): Likewise.
811 (bfcache_eq): Likewise.
812 (btrace_get_frame_function): Likewise.
813 (record_btrace_frame_unwind_stop_reason): Likewise.
814 (record_btrace_frame_this_id): Likewise.
815 (record_btrace_frame_prev_register): Likewise.
816 (record_btrace_frame_dealloc_cache): Likewise.
817 * record-full.c (record_full_message_wrapper): Likewise.
818 (record_full_save_cleanups): Likewise.
819 * regcache.c (regcache_descr): Likewise.
820 (do_regcache_xfree): Likewise.
821 (do_regcache_invalidate): Likewise.
822 (do_cooked_read): Likewise.
823 (regcache_transfer_regset): Likewise.
824 * reggroups.c (reggroup_add): Likewise.
825 (reggroup_next): Likewise.
826 (reggroup_prev): Likewise.
827 * remote-fileio.c (do_remote_fileio_request): Likewise.
828 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
829 (do_notif_event_xfree): Likewise.
830 * remote.c (get_remote_arch_state): Likewise.
831 (remote_pspace_data_cleanup): Likewise.
832 (get_remote_exec_file): Likewise.
833 (set_pspace_remote_exec_file): Likewise.
834 (compare_pnums): Likewise.
835 (clear_threads_listing_context): Likewise.
836 (remote_newthread_step): Likewise.
837 (start_thread): Likewise.
838 (end_thread): Likewise.
839 (remove_child_of_pending_fork): Likewise.
840 (remove_stop_reply_for_inferior): Likewise.
841 (remove_stop_reply_of_remote_state): Likewise.
842 (remote_notif_remove_once_on_match): Likewise.
843 (stop_reply_match_ptid_and_ws): Likewise.
844 (kill_child_of_pending_fork): Likewise.
845 (register_remote_g_packet_guess): Likewise.
846 (remote_read_description_p): Likewise.
847 (remote_read_description): Likewise.
848 (free_actions_list_cleanup_wrapper): Likewise.
849 (remote_async_serial_handler): Likewise.
850 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
851 (rl78_analyze_frame_prologue): Likewise.
852 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
853 (ppc_supply_fpregset): Likewise.
854 (ppc_supply_vsxregset): Likewise.
855 (ppc_supply_vrregset): Likewise.
856 (ppc_collect_gregset): Likewise.
857 (ppc_collect_fpregset): Likewise.
858 (ppc_collect_vsxregset): Likewise.
859 (ppc_collect_vrregset): Likewise.
860 (e500_move_ev_register): Likewise.
861 (do_regcache_raw_write): Likewise.
862 (rs6000_frame_cache): Likewise.
863 (rs6000_epilogue_frame_cache): Likewise.
864 (rs6000_gdbarch_init): Likewise.
865 * rx-tdep.c (rx_get_opcode_byte): Likewise.
866 (rx_analyze_frame_prologue): Likewise.
867 (rx_frame_type): Likewise.
868 (rx_frame_sniffer_common): Likewise.
869 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
870 (s390_frame_unwind_cache): Likewise.
871 (s390_stub_frame_unwind_cache): Likewise.
872 (s390_sigtramp_frame_unwind_cache): Likewise.
873 * score-tdep.c (score_make_prologue_cache): Likewise.
874 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
875 (sentinel_frame_prev_arch): Likewise.
876 * ser-base.c (fd_event): Likewise.
877 (push_event): Likewise.
878 (ser_base_write): Likewise.
879 * ser-pipe.c (pipe_close): Likewise.
880 * serial.c (serial_write): Likewise.
881 * sh-tdep.c (sh_frame_cache): Likewise.
882 (sh_stub_this_id): Likewise.
883 * sh64-tdep.c (sh64_frame_cache): Likewise.
884 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
885 (library_list_start_library): Likewise.
886 (library_list_start_list): Likewise.
887 (solib_aix_free_library_list): Likewise.
888 * solib-darwin.c (get_darwin_info): Likewise.
889 * solib-dsbt.c (get_dsbt_info): Likewise.
890 * solib-spu.c (append_ocl_sos): Likewise.
891 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
892 (get_svr4_info): Likewise.
893 (library_list_start_library): Likewise.
894 (svr4_library_list_start_list): Likewise.
895 (hash_probe_and_action): Likewise.
896 (equal_probe_and_action): Likewise.
897 (svr4_update_solib_event_breakpoint): Likewise.
898 (set_solib_svr4_fetch_link_map_offsets): Likewise.
899 (svr4_fetch_link_map_offsets): Likewise.
900 (svr4_have_link_map_offsets): Likewise.
901 * solib-target.c (library_list_start_segment): Likewise.
902 (library_list_start_section): Likewise.
903 (library_list_start_library): Likewise.
904 (library_list_end_library): Likewise.
905 (library_list_start_list): Likewise.
906 (solib_target_free_library_list): Likewise.
907 * solib.c (solib_ops): Likewise.
908 (set_solib_ops): Likewise.
909 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
910 * sparc-tdep.c (sparc_frame_cache): Likewise.
911 (sparc32_frame_cache): Likewise.
912 (sparc32_supply_gregset): Likewise.
913 (sparc32_collect_gregset): Likewise.
914 (sparc32_supply_fpregset): Likewise.
915 (sparc32_collect_fpregset): Likewise.
916 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
917 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
918 (sparc64_collect_gregset): Likewise.
919 (sparc64_supply_fpregset): Likewise.
920 (sparc64_collect_fpregset): Likewise.
921 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
922 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
923 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
924 (sparc64obsd_trapframe_cache): Likewise.
925 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
926 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
927 * spu-multiarch.c (spu_gdbarch): Likewise.
928 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
929 (spu2ppu_prev_arch): Likewise.
930 (spu2ppu_this_id): Likewise.
931 (spu2ppu_prev_register): Likewise.
932 (spu2ppu_dealloc_cache): Likewise.
933 (spu_dis_asm_print_address): Likewise.
934 (gdb_print_insn_spu): Likewise.
935 (spu_get_overlay_table): Likewise.
936 * stabsread.c (rs6000_builtin_type): Likewise.
937 * stack.c (do_print_variable_and_value): Likewise.
938 * stap-probe.c (get_stap_base_address_1): Likewise.
939 * symfile-debug.c (debug_qf_has_symbols): Likewise.
940 (debug_qf_find_last_source_symtab): Likewise.
941 (debug_qf_forget_cached_source_info): Likewise.
942 (debug_qf_map_symtabs_matching_filename): Likewise.
943 (debug_qf_lookup_symbol): Likewise.
944 (debug_qf_print_stats): Likewise.
945 (debug_qf_dump): Likewise.
946 (debug_qf_relocate): Likewise.
947 (debug_qf_expand_symtabs_for_function): Likewise.
948 (debug_qf_expand_all_symtabs): Likewise.
949 (debug_qf_expand_symtabs_with_fullname): Likewise.
950 (debug_qf_map_matching_symbols): Likewise.
951 (debug_qf_expand_symtabs_matching): Likewise.
952 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
953 (debug_qf_map_symbol_filenames): Likewise.
954 (debug_sym_get_probes): Likewise.
955 (debug_sym_new_init): Likewise.
956 (debug_sym_init): Likewise.
957 (debug_sym_read): Likewise.
958 (debug_sym_read_psymbols): Likewise.
959 (debug_sym_finish): Likewise.
960 (debug_sym_offsets): Likewise.
961 (debug_sym_read_linetable): Likewise.
962 (debug_sym_relocate): Likewise.
963 (uninstall_symfile_debug_logging): Likewise.
964 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
965 * symfile.c (place_section): Likewise.
966 (add_section_size_callback): Likewise.
967 (load_progress): Likewise.
968 (load_section_callback): Likewise.
969 (clear_memory_write_data): Likewise.
970 (allocate_symtab): Likewise.
971 * symmisc.c (maintenance_expand_file_matcher): Likewise.
972 * symtab.c (lookup_symtab_callback): Likewise.
973 (hash_demangled_name_entry): Likewise.
974 (eq_demangled_name_entry): Likewise.
975 (get_symbol_cache): Likewise.
976 (symbol_cache_cleanup): Likewise.
977 (set_symbol_cache_size): Likewise.
978 (symbol_cache_flush): Likewise.
979 (maintenance_print_symbol_cache): Likewise.
980 (maintenance_print_symbol_cache_statistics): Likewise.
981 (delete_filename_seen_cache): Likewise.
982 (output_partial_symbol_filename): Likewise.
983 (search_symbols_file_matches): Likewise.
984 (search_symbols_name_matches): Likewise.
985 (do_free_completion_list): Likewise.
986 (maybe_add_partial_symtab_filename): Likewise.
987 (get_main_info): Likewise.
988 (main_info_cleanup): Likewise.
989 * target-dcache.c (target_dcache_cleanup): Likewise.
990 (target_dcache_init_p): Likewise.
991 (target_dcache_invalidate): Likewise.
992 (target_dcache_get): Likewise.
993 (target_dcache_get_or_init): Likewise.
994 * target-descriptions.c (target_find_description): Likewise.
995 (tdesc_find_type): Likewise.
996 (tdesc_data_cleanup): Likewise.
997 (tdesc_find_arch_register): Likewise.
998 (tdesc_register_name): Likewise.
999 (tdesc_register_type): Likewise.
1000 (tdesc_register_reggroup_p): Likewise.
1001 (set_tdesc_pseudo_register_name): Likewise.
1002 (set_tdesc_pseudo_register_type): Likewise.
1003 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1004 (tdesc_use_registers): Likewise.
1005 (free_target_description): Likewise.
1006 * target-memory.c (compare_block_starting_address): Likewise.
1007 (cleanup_request_data): Likewise.
1008 (cleanup_write_requests_vector): Likewise.
1009 * target.c (open_target): Likewise.
1010 (cleanup_restore_target_terminal): Likewise.
1011 (free_memory_read_result_vector): Likewise.
1012 * thread.c (disable_thread_stack_temporaries): Likewise.
1013 (finish_thread_state_cleanup): Likewise.
1014 (do_restore_current_thread_cleanup): Likewise.
1015 (restore_current_thread_cleanup_dtor): Likewise.
1016 (set_thread_refcount): Likewise.
1017 (tp_array_compar): Likewise.
1018 (do_captured_thread_select): Likewise.
1019 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1020 (tic6x_stub_this_id): Likewise.
1021 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1022 * top.c (do_restore_instream_cleanup): Likewise.
1023 (gdb_readline_wrapper_cleanup): Likewise.
1024 (kill_or_detach): Likewise.
1025 (print_inferior_quit_action): Likewise.
1026 * tracefile-tfile.c (match_blocktype): Likewise.
1027 (build_traceframe_info): Likewise.
1028 * tracefile.c (trace_file_writer_xfree): Likewise.
1029 * tracepoint.c (memrange_cmp): Likewise.
1030 (do_collect_symbol): Likewise.
1031 (do_clear_collection_list): Likewise.
1032 (do_restore_current_traceframe_cleanup): Likewise.
1033 (restore_current_traceframe_cleanup_dtor): Likewise.
1034 (free_current_marker): Likewise.
1035 (traceframe_info_start_memory): Likewise.
1036 (traceframe_info_start_tvar): Likewise.
1037 (free_result): Likewise.
1038 * tramp-frame.c (tramp_frame_cache): Likewise.
1039 * tui/tui-file.c (tui_file_delete): Likewise.
1040 (tui_fileopen): Likewise.
1041 (tui_sfileopen): Likewise.
1042 (tui_file_isatty): Likewise.
1043 (tui_file_rewind): Likewise.
1044 (tui_file_put): Likewise.
1045 (tui_file_fputs): Likewise.
1046 (tui_file_get_strbuf): Likewise.
1047 (tui_file_adjust_strbuf): Likewise.
1048 (tui_file_flush): Likewise.
1049 * tui/tui-layout.c (make_command_window): Likewise.
1050 (make_data_window): Likewise.
1051 (show_source_disasm_command): Likewise.
1052 (show_data): Likewise.
1053 (make_source_or_disasm_window): Likewise.
1054 (show_source_or_disasm_and_command): Likewise.
1055 * tui/tui-out.c (tui_field_int): Likewise.
1056 (tui_field_string): Likewise.
1057 (tui_field_fmt): Likewise.
1058 (tui_text): Likewise.
1059 * typeprint.c (hash_typedef_field): Likewise.
1060 (eq_typedef_field): Likewise.
1061 (do_free_typedef_hash): Likewise.
1062 (copy_typedef_hash_element): Likewise.
1063 (do_free_global_table): Likewise.
1064 (find_global_typedef): Likewise.
1065 (find_typedef_in_hash): Likewise.
1066 * ui-file.c (ui_file_write_for_put): Likewise.
1067 (do_ui_file_xstrdup): Likewise.
1068 (mem_file_delete): Likewise.
1069 (mem_file_rewind): Likewise.
1070 (mem_file_put): Likewise.
1071 (mem_file_write): Likewise.
1072 (stdio_file_delete): Likewise.
1073 (stdio_file_flush): Likewise.
1074 (stdio_file_read): Likewise.
1075 (stdio_file_write): Likewise.
1076 (stdio_file_write_async_safe): Likewise.
1077 (stdio_file_fputs): Likewise.
1078 (stdio_file_isatty): Likewise.
1079 (stdio_file_fseek): Likewise.
1080 (tee_file_delete): Likewise.
1081 (tee_file_flush): Likewise.
1082 (tee_file_write): Likewise.
1083 (tee_file_fputs): Likewise.
1084 (tee_file_isatty): Likewise.
1085 * ui-out.c (do_cleanup_table_end): Likewise.
1086 (do_cleanup_end): Likewise.
1087 * user-regs.c (user_reg_add): Likewise.
1088 (user_reg_map_name_to_regnum): Likewise.
1089 (usernum_to_user_reg): Likewise.
1090 (maintenance_print_user_registers): Likewise.
1091 * utils.c (do_bfd_close_cleanup): Likewise.
1092 (do_fclose_cleanup): Likewise.
1093 (do_obstack_free): Likewise.
1094 (do_ui_file_delete): Likewise.
1095 (do_ui_out_redirect_pop): Likewise.
1096 (do_free_section_addr_info): Likewise.
1097 (restore_integer): Likewise.
1098 (do_unpush_target): Likewise.
1099 (do_htab_delete_cleanup): Likewise.
1100 (do_restore_ui_file): Likewise.
1101 (do_value_free): Likewise.
1102 (do_free_so): Likewise.
1103 (free_current_contents): Likewise.
1104 (do_regfree_cleanup): Likewise.
1105 (core_addr_hash): Likewise.
1106 (core_addr_eq): Likewise.
1107 (do_free_char_ptr_vec): Likewise.
1108 * v850-tdep.c (v850_frame_cache): Likewise.
1109 * varobj.c (do_free_variable_cleanup): Likewise.
1110 * vax-tdep.c (vax_supply_gregset): Likewise.
1111 (vax_frame_cache): Likewise.
1112 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1113 * xml-support.c (gdb_xml_body_text): Likewise.
1114 (gdb_xml_values_cleanup): Likewise.
1115 (gdb_xml_start_element): Likewise.
1116 (gdb_xml_start_element_wrapper): Likewise.
1117 (gdb_xml_end_element): Likewise.
1118 (gdb_xml_end_element_wrapper): Likewise.
1119 (gdb_xml_cleanup): Likewise.
1120 (gdb_xml_fetch_external_entity): Likewise.
1121 (gdb_xml_parse_attr_enum): Likewise.
1122 (xinclude_start_include): Likewise.
1123 (xinclude_end_include): Likewise.
1124 (xml_xinclude_default): Likewise.
1125 (xml_xinclude_start_doctype): Likewise.
1126 (xml_xinclude_end_doctype): Likewise.
1127 (xml_xinclude_cleanup): Likewise.
1128 (xml_fetch_content_from_file): Likewise.
1129 * xml-syscall.c (free_syscalls_info): Likewise.
1130 (syscall_start_syscall): Likewise.
1131 * xml-tdesc.c (tdesc_end_arch): Likewise.
1132 (tdesc_end_osabi): Likewise.
1133 (tdesc_end_compatible): Likewise.
1134 (tdesc_start_target): Likewise.
1135 (tdesc_start_feature): Likewise.
1136 (tdesc_start_reg): Likewise.
1137 (tdesc_start_union): Likewise.
1138 (tdesc_start_struct): Likewise.
1139 (tdesc_start_flags): Likewise.
1140 (tdesc_start_field): Likewise.
1141 (tdesc_start_vector): Likewise.
1142 (fetch_available_features_from_target): Likewise.
1143 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1144 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1145 (xtensa_frame_cache): Likewise.
1146 (xtensa_frame_prev_register): Likewise.
1147 (xtensa_extract_return_value): Likewise.
1148
1149 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1150
1151 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1152 (aarch64_make_stub_cache): Likewise.
1153 (value_of_aarch64_user_reg): Likewise.
1154 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1155 (get_ada_inferior_data): Likewise.
1156 (get_ada_pspace_data): Likewise.
1157 (ada_pspace_data_cleanup): Likewise.
1158 (ada_complete_symbol_matcher): Likewise.
1159 (ada_exc_search_name_matches): Likewise.
1160 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1161 (get_ada_tasks_inferior_data): Likewise.
1162 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1163 (splay_obstack_alloc): Likewise.
1164 (splay_obstack_free): Likewise.
1165 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1166 (alpha_linux_collect_gregset): Likewise.
1167 (alpha_linux_supply_fpregset): Likewise.
1168 (alpha_linux_collect_fpregset): Likewise.
1169 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1170 * alpha-tdep.c (alpha_lds): Likewise.
1171 (alpha_sts): Likewise.
1172 (alpha_sigtramp_frame_unwind_cache): Likewise.
1173 (alpha_heuristic_frame_unwind_cache): Likewise.
1174 (alpha_supply_int_regs): Likewise.
1175 (alpha_fill_int_regs): Likewise.
1176 (alpha_supply_fp_regs): Likewise.
1177 (alpha_fill_fp_regs): Likewise.
1178 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1179 (alphanbsd_aout_supply_gregset): Likewise.
1180 (alphanbsd_supply_gregset): Likewise.
1181 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1182 (amd64_x32_linux_init_abi): Likewise.
1183 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1184 (amd64_collect_native_gregset): Likewise.
1185 * amd64-tdep.c (amd64_frame_cache): Likewise.
1186 (amd64_sigtramp_frame_cache): Likewise.
1187 (amd64_epilogue_frame_cache): Likewise.
1188 (amd64_supply_fxsave): Likewise.
1189 (amd64_supply_xsave): Likewise.
1190 (amd64_collect_fxsave): Likewise.
1191 (amd64_collect_xsave): Likewise.
1192 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1193 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1194 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1195 (arm_linux_collect_gregset): Likewise.
1196 (arm_linux_supply_nwfpe): Likewise.
1197 (arm_linux_collect_nwfpe): Likewise.
1198 (arm_linux_supply_vfp): Likewise.
1199 (arm_linux_collect_vfp): Likewise.
1200 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1201 (arm_prologue_unwind_stop_reason): Likewise.
1202 (arm_prologue_this_id): Likewise.
1203 (arm_prologue_prev_register): Likewise.
1204 (arm_exidx_data_free): Likewise.
1205 (arm_find_exidx_entry): Likewise.
1206 (arm_stub_this_id): Likewise.
1207 (arm_m_exception_this_id): Likewise.
1208 (arm_m_exception_prev_register): Likewise.
1209 (arm_normal_frame_base): Likewise.
1210 (gdb_print_insn_arm): Likewise.
1211 (arm_objfile_data_free): Likewise.
1212 (arm_record_special_symbol): Likewise.
1213 (value_of_arm_user_reg): Likewise.
1214 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1215 (armbsd_supply_gregset): Likewise.
1216 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1217 (get_auto_load_pspace_data): Likewise.
1218 (hash_loaded_script_entry): Likewise.
1219 (eq_loaded_script_entry): Likewise.
1220 (clear_section_scripts): Likewise.
1221 (collect_matching_scripts): Likewise.
1222 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1223 (get_auxv_inferior_data): Likewise.
1224 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1225 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1226 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1227 (target_bfd_xclose): Likewise.
1228 (target_bfd_get_section_table): Likewise.
1229 * bfin-tdep.c (bfin_frame_cache): Likewise.
1230 * block.c (find_block_in_blockvector): Likewise.
1231 (call_site_for_pc): Likewise.
1232 (block_find_non_opaque_type_preferred): Likewise.
1233 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1234 (signal_catchpoint_remove_location): Likewise.
1235 (signal_catchpoint_breakpoint_hit): Likewise.
1236 (signal_catchpoint_print_one): Likewise.
1237 (signal_catchpoint_print_mention): Likewise.
1238 (signal_catchpoint_print_recreate): Likewise.
1239 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1240 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1241 (bp_location_compare_addrs): Likewise.
1242 (get_first_locp_gte_addr): Likewise.
1243 (check_tracepoint_command): Likewise.
1244 (do_map_commands_command): Likewise.
1245 (get_breakpoint_objfile_data): Likewise.
1246 (free_breakpoint_probes): Likewise.
1247 (do_captured_breakpoint_query): Likewise.
1248 (compare_breakpoints): Likewise.
1249 (bp_location_compare): Likewise.
1250 (bpstat_remove_breakpoint_callback): Likewise.
1251 (do_delete_breakpoint_cleanup): Likewise.
1252 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1253 (bsd_uthread_set_collect_uthread): Likewise.
1254 (bsd_uthread_activate): Likewise.
1255 (bsd_uthread_fetch_registers): Likewise.
1256 (bsd_uthread_store_registers): Likewise.
1257 * btrace.c (check_xml_btrace_version): Likewise.
1258 (parse_xml_btrace_block): Likewise.
1259 (parse_xml_btrace_pt_config_cpu): Likewise.
1260 (parse_xml_btrace_pt_raw): Likewise.
1261 (parse_xml_btrace_pt): Likewise.
1262 (parse_xml_btrace_conf_bts): Likewise.
1263 (parse_xml_btrace_conf_pt): Likewise.
1264 (do_btrace_data_cleanup): Likewise.
1265 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1266 * charset.c (cleanup_iconv): Likewise.
1267 (do_cleanup_iterator): Likewise.
1268 * cli-out.c (cli_uiout_dtor): Likewise.
1269 (cli_table_begin): Likewise.
1270 (cli_table_body): Likewise.
1271 (cli_table_end): Likewise.
1272 (cli_table_header): Likewise.
1273 (cli_begin): Likewise.
1274 (cli_end): Likewise.
1275 (cli_field_int): Likewise.
1276 (cli_field_skip): Likewise.
1277 (cli_field_string): Likewise.
1278 (cli_field_fmt): Likewise.
1279 (cli_spaces): Likewise.
1280 (cli_text): Likewise.
1281 (cli_message): Likewise.
1282 (cli_wrap_hint): Likewise.
1283 (cli_flush): Likewise.
1284 (cli_redirect): Likewise.
1285 (out_field_fmt): Likewise.
1286 (field_separator): Likewise.
1287 (cli_out_set_stream): Likewise.
1288 * cli/cli-cmds.c (compare_symtabs): Likewise.
1289 * cli/cli-dump.c (call_dump_func): Likewise.
1290 (restore_section_callback): Likewise.
1291 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1292 (do_restore_user_call_depth): Likewise.
1293 (do_free_command_lines_cleanup): Likewise.
1294 * coff-pe-read.c (get_section_vmas): Likewise.
1295 (pe_as16): Likewise.
1296 (pe_as32): Likewise.
1297 * coffread.c (coff_symfile_read): Likewise.
1298 * common/agent.c (agent_look_up_symbols): Likewise.
1299 * common/filestuff.c (do_close_cleanup): Likewise.
1300 * common/format.c (free_format_pieces_cleanup): Likewise.
1301 * common/vec.c (vec_o_reserve): Likewise.
1302 * compile/compile-c-support.c (print_one_macro): Likewise.
1303 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1304 (eq_symbol_error): Likewise.
1305 (del_symbol_error): Likewise.
1306 (error_symbol_once): Likewise.
1307 (gcc_convert_symbol): Likewise.
1308 (gcc_symbol_address): Likewise.
1309 (hash_symname): Likewise.
1310 (eq_symname): Likewise.
1311 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1312 (eq_type_map_instance): Likewise.
1313 (insert_type): Likewise.
1314 (convert_type): Likewise.
1315 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1316 (setup_sections): Likewise.
1317 (link_hash_table_free): Likewise.
1318 (copy_sections): Likewise.
1319 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1320 * compile/compile.c (compile_print_value): Likewise.
1321 (do_rmdir): Likewise.
1322 (cleanup_compile_instance): Likewise.
1323 (cleanup_unlink_file): Likewise.
1324 * completer.c (free_completion_tracker): Likewise.
1325 * corelow.c (add_to_spuid_list): Likewise.
1326 * cp-namespace.c (reset_directive_searched): Likewise.
1327 * cp-support.c (reset_directive_searched): Likewise.
1328 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1329 (cris_frame_unwind_cache): Likewise.
1330 * d-lang.c (builtin_d_type): Likewise.
1331 * d-namespace.c (reset_directive_searched): Likewise.
1332 * dbxread.c (dbx_free_symfile_info): Likewise.
1333 (do_free_bincl_list_cleanup): Likewise.
1334 * disasm.c (hash_dis_line_entry): Likewise.
1335 (eq_dis_line_entry): Likewise.
1336 (dis_asm_print_address): Likewise.
1337 (fprintf_disasm): Likewise.
1338 (do_ui_file_delete): Likewise.
1339 * doublest.c (convert_floatformat_to_doublest): Likewise.
1340 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1341 (dummy_frame_prev_register): Likewise.
1342 (dummy_frame_this_id): Likewise.
1343 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1344 (cache_eq): Likewise.
1345 (cache_find): Likewise.
1346 (tailcall_frame_this_id): Likewise.
1347 (dwarf2_tailcall_prev_register_first): Likewise.
1348 (tailcall_frame_prev_register): Likewise.
1349 (tailcall_frame_dealloc_cache): Likewise.
1350 (tailcall_frame_prev_arch): Likewise.
1351 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1352 (dwarf2_frame_set_init_reg): Likewise.
1353 (dwarf2_frame_init_reg): Likewise.
1354 (dwarf2_frame_set_signal_frame_p): Likewise.
1355 (dwarf2_frame_signal_frame_p): Likewise.
1356 (dwarf2_frame_set_adjust_regnum): Likewise.
1357 (dwarf2_frame_adjust_regnum): Likewise.
1358 (clear_pointer_cleanup): Likewise.
1359 (dwarf2_frame_cache): Likewise.
1360 (find_cie): Likewise.
1361 (dwarf2_frame_find_fde): Likewise.
1362 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1363 (free_dwarf_expr_context_cleanup): Likewise.
1364 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1365 (locexpr_get_frame_base): Likewise.
1366 (loclist_find_frame_base_location): Likewise.
1367 (loclist_get_frame_base): Likewise.
1368 (dwarf_expr_dwarf_call): Likewise.
1369 (dwarf_expr_get_base_type): Likewise.
1370 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1371 (dwarf_expr_get_obj_addr): Likewise.
1372 (entry_data_value_coerce_ref): Likewise.
1373 (entry_data_value_copy_closure): Likewise.
1374 (entry_data_value_free_closure): Likewise.
1375 (get_frame_address_in_block_wrapper): Likewise.
1376 (dwarf2_evaluate_property): Likewise.
1377 (dwarf2_compile_property_to_c): Likewise.
1378 (needs_frame_read_addr_from_reg): Likewise.
1379 (needs_frame_get_reg_value): Likewise.
1380 (needs_frame_frame_base): Likewise.
1381 (needs_frame_frame_cfa): Likewise.
1382 (needs_frame_tls_address): Likewise.
1383 (needs_frame_dwarf_call): Likewise.
1384 (needs_dwarf_reg_entry_value): Likewise.
1385 (get_ax_pc): Likewise.
1386 (locexpr_read_variable): Likewise.
1387 (locexpr_read_variable_at_entry): Likewise.
1388 (locexpr_read_needs_frame): Likewise.
1389 (locexpr_describe_location): Likewise.
1390 (locexpr_tracepoint_var_ref): Likewise.
1391 (locexpr_generate_c_location): Likewise.
1392 (loclist_read_variable): Likewise.
1393 (loclist_read_variable_at_entry): Likewise.
1394 (loclist_describe_location): Likewise.
1395 (loclist_tracepoint_var_ref): Likewise.
1396 (loclist_generate_c_location): Likewise.
1397 * dwarf2read.c (line_header_hash_voidp): Likewise.
1398 (line_header_eq_voidp): Likewise.
1399 (dwarf2_has_info): Likewise.
1400 (dwarf2_get_section_info): Likewise.
1401 (locate_dwz_sections): Likewise.
1402 (hash_file_name_entry): Likewise.
1403 (eq_file_name_entry): Likewise.
1404 (delete_file_name_entry): Likewise.
1405 (dw2_setup): Likewise.
1406 (dw2_get_file_names_reader): Likewise.
1407 (dw2_find_pc_sect_compunit_symtab): Likewise.
1408 (hash_signatured_type): Likewise.
1409 (eq_signatured_type): Likewise.
1410 (add_signatured_type_cu_to_table): Likewise.
1411 (create_debug_types_hash_table): Likewise.
1412 (lookup_dwo_signatured_type): Likewise.
1413 (lookup_dwp_signatured_type): Likewise.
1414 (lookup_signatured_type): Likewise.
1415 (hash_type_unit_group): Likewise.
1416 (eq_type_unit_group): Likewise.
1417 (get_type_unit_group): Likewise.
1418 (process_psymtab_comp_unit_reader): Likewise.
1419 (sort_tu_by_abbrev_offset): Likewise.
1420 (process_skeletonless_type_unit): Likewise.
1421 (psymtabs_addrmap_cleanup): Likewise.
1422 (dwarf2_read_symtab): Likewise.
1423 (psymtab_to_symtab_1): Likewise.
1424 (die_hash): Likewise.
1425 (die_eq): Likewise.
1426 (load_full_comp_unit_reader): Likewise.
1427 (reset_die_in_process): Likewise.
1428 (free_cu_line_header): Likewise.
1429 (handle_DW_AT_stmt_list): Likewise.
1430 (hash_dwo_file): Likewise.
1431 (eq_dwo_file): Likewise.
1432 (hash_dwo_unit): Likewise.
1433 (eq_dwo_unit): Likewise.
1434 (create_dwo_cu_reader): Likewise.
1435 (create_dwo_unit_in_dwp_v1): Likewise.
1436 (create_dwo_unit_in_dwp_v2): Likewise.
1437 (lookup_dwo_unit_in_dwp): Likewise.
1438 (dwarf2_locate_dwo_sections): Likewise.
1439 (dwarf2_locate_common_dwp_sections): Likewise.
1440 (dwarf2_locate_v2_dwp_sections): Likewise.
1441 (hash_dwp_loaded_cutus): Likewise.
1442 (eq_dwp_loaded_cutus): Likewise.
1443 (lookup_dwo_cutu): Likewise.
1444 (abbrev_table_free_cleanup): Likewise.
1445 (dwarf2_free_abbrev_table): Likewise.
1446 (find_partial_die_in_comp_unit): Likewise.
1447 (free_line_header_voidp): Likewise.
1448 (follow_die_offset): Likewise.
1449 (follow_die_sig_1): Likewise.
1450 (free_heap_comp_unit): Likewise.
1451 (free_stack_comp_unit): Likewise.
1452 (dwarf2_free_objfile): Likewise.
1453 (per_cu_offset_and_type_hash): Likewise.
1454 (per_cu_offset_and_type_eq): Likewise.
1455 (get_die_type_at_offset): Likewise.
1456 (partial_die_hash): Likewise.
1457 (partial_die_eq): Likewise.
1458 (dwarf2_per_objfile_free): Likewise.
1459 (hash_strtab_entry): Likewise.
1460 (eq_strtab_entry): Likewise.
1461 (add_string): Likewise.
1462 (hash_symtab_entry): Likewise.
1463 (eq_symtab_entry): Likewise.
1464 (delete_symtab_entry): Likewise.
1465 (cleanup_mapped_symtab): Likewise.
1466 (add_indices_to_cpool): Likewise.
1467 (hash_psymtab_cu_index): Likewise.
1468 (eq_psymtab_cu_index): Likewise.
1469 (add_address_entry_worker): Likewise.
1470 (unlink_if_set): Likewise.
1471 (write_one_signatured_type): Likewise.
1472 (save_gdb_index_command): Likewise.
1473 * elfread.c (elf_symtab_read): Likewise.
1474 (elf_gnu_ifunc_cache_hash): Likewise.
1475 (elf_gnu_ifunc_cache_eq): Likewise.
1476 (elf_gnu_ifunc_record_cache): Likewise.
1477 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1478 (elf_get_probes): Likewise.
1479 (probe_key_free): Likewise.
1480 * f-lang.c (builtin_f_type): Likewise.
1481 * frame-base.c (frame_base_append_sniffer): Likewise.
1482 (frame_base_set_default): Likewise.
1483 (frame_base_find_by_frame): Likewise.
1484 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1485 (frame_unwind_append_unwinder): Likewise.
1486 (frame_unwind_find_by_frame): Likewise.
1487 * frame.c (frame_addr_hash): Likewise.
1488 (frame_addr_hash_eq): Likewise.
1489 (frame_stash_find): Likewise.
1490 (do_frame_register_read): Likewise.
1491 (unwind_to_current_frame): Likewise.
1492 (frame_cleanup_after_sniffer): Likewise.
1493 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1494 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1495 * ft32-tdep.c (ft32_frame_cache): Likewise.
1496 * gcore.c (do_bfd_delete_cleanup): Likewise.
1497 (gcore_create_callback): Likewise.
1498 * gdb_bfd.c (hash_bfd): Likewise.
1499 (eq_bfd): Likewise.
1500 (gdb_bfd_open): Likewise.
1501 (free_one_bfd_section): Likewise.
1502 (gdb_bfd_ref): Likewise.
1503 (gdb_bfd_unref): Likewise.
1504 (get_section_descriptor): Likewise.
1505 (gdb_bfd_map_section): Likewise.
1506 (gdb_bfd_crc): Likewise.
1507 (gdb_bfd_mark_parent): Likewise.
1508 (gdb_bfd_record_inclusion): Likewise.
1509 (gdb_bfd_requires_relocations): Likewise.
1510 (print_one_bfd): Likewise.
1511 * gdbtypes.c (type_pair_hash): Likewise.
1512 (type_pair_eq): Likewise.
1513 (builtin_type): Likewise.
1514 (objfile_type): Likewise.
1515 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1516 (vtable_address_point_offset): Likewise.
1517 (gnuv3_get_vtable): Likewise.
1518 (hash_value_and_voffset): Likewise.
1519 (eq_value_and_voffset): Likewise.
1520 (compare_value_and_voffset): Likewise.
1521 (compute_vtable_size): Likewise.
1522 (gnuv3_get_typeid_type): Likewise.
1523 * go-lang.c (builtin_go_type): Likewise.
1524 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1525 (bkscm_eq_block_smob): Likewise.
1526 (bkscm_objfile_block_map): Likewise.
1527 (bkscm_del_objfile_blocks): Likewise.
1528 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1529 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1530 (gdbscm_disasm_print_address): Likewise.
1531 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1532 (frscm_eq_frame_smob): Likewise.
1533 (frscm_inferior_frame_map): Likewise.
1534 (frscm_del_inferior_frames): Likewise.
1535 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1536 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1537 (ofscm_objfile_smob_from_objfile): Likewise.
1538 * guile/scm-ports.c (ioscm_write): Likewise.
1539 (ioscm_file_port_delete): Likewise.
1540 (ioscm_file_port_rewind): Likewise.
1541 (ioscm_file_port_put): Likewise.
1542 (ioscm_file_port_write): Likewise.
1543 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1544 (psscm_pspace_smob_from_pspace): Likewise.
1545 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1546 (scscm_recording_unwind_handler): Likewise.
1547 (gdbscm_with_catch): Likewise.
1548 (scscm_call_0_body): Likewise.
1549 (scscm_call_1_body): Likewise.
1550 (scscm_call_2_body): Likewise.
1551 (scscm_call_3_body): Likewise.
1552 (scscm_call_4_body): Likewise.
1553 (scscm_apply_1_body): Likewise.
1554 (scscm_eval_scheme_string): Likewise.
1555 (gdbscm_safe_eval_string): Likewise.
1556 (scscm_source_scheme_script): Likewise.
1557 (gdbscm_safe_source_script): Likewise.
1558 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1559 (gdbscm_call_scm_from_stringn): Likewise.
1560 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1561 (syscm_eq_symbol_smob): Likewise.
1562 (syscm_get_symbol_map): Likewise.
1563 (syscm_del_objfile_symbols): Likewise.
1564 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1565 (stscm_eq_symtab_smob): Likewise.
1566 (stscm_objfile_symtab_map): Likewise.
1567 (stscm_del_objfile_symtabs): Likewise.
1568 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1569 (tyscm_eq_type_smob): Likewise.
1570 (tyscm_type_map): Likewise.
1571 (tyscm_copy_type_recursive): Likewise.
1572 (save_objfile_types): Likewise.
1573 * guile/scm-utils.c (extract_arg): Likewise.
1574 * h8300-tdep.c (h8300_frame_cache): Likewise.
1575 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1576 * hppa-tdep.c (compare_unwind_entries): Likewise.
1577 (find_unwind_entry): Likewise.
1578 (hppa_frame_cache): Likewise.
1579 (hppa_stub_frame_unwind_cache): Likewise.
1580 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1581 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1582 (hppaobsd_supply_fpregset): Likewise.
1583 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1584 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1585 * i386-tdep.c (i386_frame_cache): Likewise.
1586 (i386_epilogue_frame_cache): Likewise.
1587 (i386_sigtramp_frame_cache): Likewise.
1588 (i386_supply_gregset): Likewise.
1589 (i386_collect_gregset): Likewise.
1590 (i386_gdbarch_init): Likewise.
1591 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1592 (i386obsd_trapframe_cache): Likewise.
1593 * i387-tdep.c (i387_supply_fsave): Likewise.
1594 (i387_collect_fsave): Likewise.
1595 (i387_supply_fxsave): Likewise.
1596 (i387_collect_fxsave): Likewise.
1597 (i387_supply_xsave): Likewise.
1598 (i387_collect_xsave): Likewise.
1599 * ia64-tdep.c (ia64_frame_cache): Likewise.
1600 (ia64_sigtramp_frame_cache): Likewise.
1601 * infcmd.c (attach_command_continuation): Likewise.
1602 (attach_command_continuation_free_args): Likewise.
1603 * inferior.c (restore_inferior): Likewise.
1604 (delete_thread_of_inferior): Likewise.
1605 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1606 (get_inflow_inferior_data): Likewise.
1607 (inflow_inferior_exit): Likewise.
1608 * infrun.c (displaced_step_clear_cleanup): Likewise.
1609 (restore_current_uiout_cleanup): Likewise.
1610 (release_stop_context_cleanup): Likewise.
1611 (do_restore_infcall_suspend_state_cleanup): Likewise.
1612 (do_restore_infcall_control_state_cleanup): Likewise.
1613 (restore_inferior_ptid): Likewise.
1614 * inline-frame.c (block_starting_point_at): Likewise.
1615 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1616 * jit.c (get_jit_objfile_data): Likewise.
1617 (get_jit_program_space_data): Likewise.
1618 (jit_object_close_impl): Likewise.
1619 (jit_find_objf_with_entry_addr): Likewise.
1620 (jit_breakpoint_deleted): Likewise.
1621 (jit_unwind_reg_set_impl): Likewise.
1622 (jit_unwind_reg_get_impl): Likewise.
1623 (jit_dealloc_cache): Likewise.
1624 (jit_frame_sniffer): Likewise.
1625 (jit_frame_prev_register): Likewise.
1626 (jit_prepend_unwinder): Likewise.
1627 (jit_inferior_exit_hook): Likewise.
1628 (free_objfile_data): Likewise.
1629 * jv-lang.c (jv_per_objfile_free): Likewise.
1630 (get_dynamics_objfile): Likewise.
1631 (get_java_class_symtab): Likewise.
1632 (builtin_java_type): Likewise.
1633 * language.c (language_string_char_type): Likewise.
1634 (language_bool_type): Likewise.
1635 (language_lookup_primitive_type): Likewise.
1636 (language_lookup_primitive_type_as_symbol): Likewise.
1637 * linespec.c (hash_address_entry): Likewise.
1638 (eq_address_entry): Likewise.
1639 (iterate_inline_only): Likewise.
1640 (iterate_name_matcher): Likewise.
1641 (decode_line_2_compare_items): Likewise.
1642 (collect_one_symbol): Likewise.
1643 (compare_symbols): Likewise.
1644 (compare_msymbols): Likewise.
1645 (add_symtabs_to_list): Likewise.
1646 (collect_symbols): Likewise.
1647 (compare_msyms): Likewise.
1648 (add_minsym): Likewise.
1649 (cleanup_linespec_result): Likewise.
1650 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1651 * linux-nat.c (delete_lwp_cleanup): Likewise.
1652 (count_events_callback): Likewise.
1653 (select_event_lwp_callback): Likewise.
1654 (resume_stopped_resumed_lwps): Likewise.
1655 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1656 (invalidate_linux_cache_inf): Likewise.
1657 (get_linux_inferior_data): Likewise.
1658 (linux_find_memory_regions_thunk): Likewise.
1659 (linux_make_mappings_callback): Likewise.
1660 (linux_corefile_thread_callback): Likewise.
1661 (find_mapping_size): Likewise.
1662 * linux-thread-db.c (find_new_threads_callback): Likewise.
1663 * lm32-tdep.c (lm32_frame_cache): Likewise.
1664 * m2-lang.c (builtin_m2_type): Likewise.
1665 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1666 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1667 (m32r_linux_supply_gregset): Likewise.
1668 (m32r_linux_collect_gregset): Likewise.
1669 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1670 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1671 * m68k-tdep.c (m68k_frame_cache): Likewise.
1672 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1673 (m68kbsd_supply_gregset): Likewise.
1674 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1675 * m88k-tdep.c (m88k_frame_cache): Likewise.
1676 (m88k_supply_gregset): Likewise.
1677
1678 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1679
1680 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1681 to allocation result assignment.
1682 * ada-exp.y (write_object_renaming): Likewise.
1683 (write_ambiguous_var): Likewise.
1684 (ada_nget_field_index): Likewise.
1685 (write_var_or_type): Likewise.
1686 * ada-lang.c (ada_decode_symbol): Likewise.
1687 (ada_value_assign): Likewise.
1688 (value_pointer): Likewise.
1689 (cache_symbol): Likewise.
1690 (add_nonlocal_symbols): Likewise.
1691 (ada_name_for_lookup): Likewise.
1692 (symbol_completion_add): Likewise.
1693 (ada_to_fixed_type_1): Likewise.
1694 (ada_get_next_arg): Likewise.
1695 (defns_collected): Likewise.
1696 * ada-lex.l (processId): Likewise.
1697 (processString): Likewise.
1698 * ada-tasks.c (read_known_tasks_array): Likewise.
1699 (read_known_tasks_list): Likewise.
1700 * ada-typeprint.c (decoded_type_name): Likewise.
1701 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1702 * amd64-tdep.c (amd64_push_arguments): Likewise.
1703 (amd64_displaced_step_copy_insn): Likewise.
1704 (amd64_classify_insn_at): Likewise.
1705 (amd64_relocate_instruction): Likewise.
1706 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1707 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1708 (initialize_current_architecture): Likewise.
1709 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1710 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1711 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1712 (arm_push_dummy_call): Likewise.
1713 (extend_buffer_earlier): Likewise.
1714 (arm_adjust_breakpoint_address): Likewise.
1715 (arm_skip_stub): Likewise.
1716 * auto-load.c (filename_is_in_pattern): Likewise.
1717 (maybe_add_script_file): Likewise.
1718 (maybe_add_script_text): Likewise.
1719 (auto_load_objfile_script_1): Likewise.
1720 * auxv.c (ld_so_xfer_auxv): Likewise.
1721 * ax-general.c (new_agent_expr): Likewise.
1722 (grow_expr): Likewise.
1723 (ax_reg_mask): Likewise.
1724 * bcache.c (bcache_full): Likewise.
1725 * breakpoint.c (program_breakpoint_here_p): Likewise.
1726 * btrace.c (parse_xml_raw): Likewise.
1727 * build-id.c (build_id_to_debug_bfd): Likewise.
1728 * buildsym.c (end_symtab_with_blockvector): Likewise.
1729 * c-exp.y (string_exp): Likewise.
1730 (qualified_name): Likewise.
1731 (write_destructor_name): Likewise.
1732 (operator_stoken): Likewise.
1733 (parse_number): Likewise.
1734 (scan_macro_expansion): Likewise.
1735 (yylex): Likewise.
1736 (c_print_token): Likewise.
1737 * c-lang.c (c_get_string): Likewise.
1738 (emit_numeric_character): Likewise.
1739 * charset.c (wchar_iterate): Likewise.
1740 * cli/cli-cmds.c (complete_command): Likewise.
1741 (make_command): Likewise.
1742 * cli/cli-dump.c (restore_section_callback): Likewise.
1743 (restore_binary_file): Likewise.
1744 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1745 * cli/cli-script.c (execute_control_command): Likewise.
1746 * cli/cli-setshow.c (do_set_command): Likewise.
1747 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1748 (read_pe_exported_syms): Likewise.
1749 * coffread.c (coff_read_struct_type): Likewise.
1750 (coff_read_enum_type): Likewise.
1751 * common/btrace-common.c (btrace_data_append): Likewise.
1752 * common/buffer.c (buffer_grow): Likewise.
1753 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1754 * common/format.c (parse_format_string): Likewise.
1755 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1756 * common/xml-utils.c (xml_escape_text): Likewise.
1757 * compile/compile-object-load.c (copy_sections): Likewise.
1758 (compile_object_load): Likewise.
1759 * compile/compile-object-run.c (compile_object_run): Likewise.
1760 * completer.c (filename_completer): Likewise.
1761 * corefile.c (read_memory_typed_address): Likewise.
1762 (write_memory_unsigned_integer): Likewise.
1763 (write_memory_signed_integer): Likewise.
1764 (complete_set_gnutarget): Likewise.
1765 * corelow.c (get_core_register_section): Likewise.
1766 * cp-name-parser.y (d_grab): Likewise.
1767 (allocate_info): Likewise.
1768 (cp_new_demangle_parse_info): Likewise.
1769 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1770 (cp_lookup_symbol_in_namespace): Likewise.
1771 (lookup_namespace_scope): Likewise.
1772 (find_symbol_in_baseclass): Likewise.
1773 (cp_lookup_nested_symbol): Likewise.
1774 (cp_lookup_transparent_type_loop): Likewise.
1775 * cp-support.c (copy_string_to_obstack): Likewise.
1776 (make_symbol_overload_list): Likewise.
1777 (make_symbol_overload_list_namespace): Likewise.
1778 (make_symbol_overload_list_adl_namespace): Likewise.
1779 (first_component_command): Likewise.
1780 * cp-valprint.c (cp_print_value): Likewise.
1781 * ctf.c (ctf_xfer_partial): Likewise.
1782 * d-exp.y (StringExp): Likewise.
1783 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1784 (lookup_module_scope): Likewise.
1785 (find_symbol_in_baseclass): Likewise.
1786 (d_lookup_nested_symbol): Likewise.
1787 * dbxread.c (find_stab_function_addr): Likewise.
1788 (read_dbx_symtab): Likewise.
1789 (dbx_end_psymtab): Likewise.
1790 (cp_set_block_scope): Likewise.
1791 * dcache.c (dcache_alloc): Likewise.
1792 * demangle.c (_initialize_demangler): Likewise.
1793 * dicos-tdep.c (dicos_load_module_p): Likewise.
1794 * dictionary.c (dict_create_hashed_expandable): Likewise.
1795 (dict_create_linear_expandable): Likewise.
1796 (expand_hashtable): Likewise.
1797 (add_symbol_linear_expandable): Likewise.
1798 * dwarf2-frame.c (add_cie): Likewise.
1799 (add_fde): Likewise.
1800 (dwarf2_build_frame_info): Likewise.
1801 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1802 (dwarf_expr_fetch_address): Likewise.
1803 (add_piece): Likewise.
1804 (execute_stack_op): Likewise.
1805 * dwarf2loc.c (chain_candidate): Likewise.
1806 (dwarf_entry_parameter_to_value): Likewise.
1807 (read_pieced_value): Likewise.
1808 (write_pieced_value): Likewise.
1809 * dwarf2read.c (dwarf2_read_section): Likewise.
1810 (add_type_unit): Likewise.
1811 (read_comp_units_from_section): Likewise.
1812 (fixup_go_packaging): Likewise.
1813 (dwarf2_compute_name): Likewise.
1814 (dwarf2_physname): Likewise.
1815 (create_dwo_unit_in_dwp_v1): Likewise.
1816 (create_dwo_unit_in_dwp_v2): Likewise.
1817 (read_func_scope): Likewise.
1818 (read_call_site_scope): Likewise.
1819 (dwarf2_attach_fields_to_type): Likewise.
1820 (process_structure_scope): Likewise.
1821 (mark_common_block_symbol_computed): Likewise.
1822 (read_common_block): Likewise.
1823 (abbrev_table_read_table): Likewise.
1824 (guess_partial_die_structure_name): Likewise.
1825 (fixup_partial_die): Likewise.
1826 (add_file_name): Likewise.
1827 (dwarf2_const_value_data): Likewise.
1828 (dwarf2_const_value_attr): Likewise.
1829 (build_error_marker_type): Likewise.
1830 (guess_full_die_structure_name): Likewise.
1831 (anonymous_struct_prefix): Likewise.
1832 (typename_concat): Likewise.
1833 (dwarf2_canonicalize_name): Likewise.
1834 (dwarf2_name): Likewise.
1835 (write_constant_as_bytes): Likewise.
1836 (dwarf2_fetch_constant_bytes): Likewise.
1837 (copy_string): Likewise.
1838 (parse_macro_definition): Likewise.
1839 * elfread.c (elf_symfile_segments): Likewise.
1840 (elf_rel_plt_read): Likewise.
1841 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1842 (elf_gnu_ifunc_resolve_by_got): Likewise.
1843 (elf_read_minimal_symbols): Likewise.
1844 (elf_gnu_ifunc_record_cache): Likewise.
1845 * event-top.c (top_level_prompt): Likewise.
1846 (command_line_handler): Likewise.
1847 * exec.c (resize_section_table): Likewise.
1848 * expprint.c (print_subexp_standard): Likewise.
1849 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1850 * findcmd.c (parse_find_args): Likewise.
1851 * findvar.c (address_from_register): Likewise.
1852 * frame.c (get_prev_frame_always): Likewise.
1853 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1854 (get_section_descriptor): Likewise.
1855 * gdb_obstack.c (obconcat): Likewise.
1856 (obstack_strdup): Likewise.
1857 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1858 (create_set_type): Likewise.
1859 (lookup_unsigned_typename): Likewise.
1860 (lookup_signed_typename): Likewise.
1861 (resolve_dynamic_union): Likewise.
1862 (resolve_dynamic_struct): Likewise.
1863 (add_dyn_prop): Likewise.
1864 (copy_dynamic_prop_list): Likewise.
1865 (arch_flags_type): Likewise.
1866 (append_composite_type_field_raw): Likewise.
1867 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1868 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1869 * go-exp.y (string_exp): Likewise.
1870 * go-lang.c (go_demangle): Likewise.
1871 * guile/guile.c (compute_scheme_string): Likewise.
1872 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1873 (gdbscm_canonicalize_command_name): Likewise.
1874 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1875 (ioscm_init_memory_port): Likewise.
1876 (ioscm_reinit_memory_port): Likewise.
1877 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1878 (gdbscm_gc_dup_argv): Likewise.
1879 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1880 * hppa-tdep.c (internalize_unwinds): Likewise.
1881 (read_unwind_info): Likewise.
1882 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1883 (windows_core_xfer_shared_libraries): Likewise.
1884 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1885 (i386_stap_parse_special_token_triplet): Likewise.
1886 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1887 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1888 * inf-child.c (inf_child_fileio_readlink): Likewise.
1889 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1890 (inf_ptrace_store_register): Likewise.
1891 * infrun.c (follow_exec): Likewise.
1892 (displaced_step_prepare_throw): Likewise.
1893 (save_stop_context): Likewise.
1894 (save_infcall_suspend_state): Likewise.
1895 * jit.c (jit_read_descriptor): Likewise.
1896 (jit_read_code_entry): Likewise.
1897 (jit_symtab_line_mapping_add_impl): Likewise.
1898 (finalize_symtab): Likewise.
1899 (jit_unwind_reg_get_impl): Likewise.
1900 * jv-exp.y (QualifiedName): Likewise.
1901 * jv-lang.c (get_java_utf8_name): Likewise.
1902 (type_from_class): Likewise.
1903 (java_demangle_type_signature): Likewise.
1904 (java_class_name_from_physname): Likewise.
1905 * jv-typeprint.c (java_type_print_base): Likewise.
1906 * jv-valprint.c (java_value_print): Likewise.
1907 * language.c (add_language): Likewise.
1908 * linespec.c (add_sal_to_sals_basic): Likewise.
1909 (add_sal_to_sals): Likewise.
1910 (decode_objc): Likewise.
1911 (find_linespec_symbols): Likewise.
1912 * linux-fork.c (fork_save_infrun_state): Likewise.
1913 * linux-nat.c (linux_nat_detach): Likewise.
1914 (linux_nat_fileio_readlink): Likewise.
1915 * linux-record.c (record_linux_sockaddr): Likewise.
1916 (record_linux_msghdr): Likewise.
1917 (Do): Likewise.
1918 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1919 (linux_collect_regset_section_cb): Likewise.
1920 (linux_get_siginfo_data): Likewise.
1921 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1922 (try_thread_db_load_from_dir): Likewise.
1923 (thread_db_load_search): Likewise.
1924 (info_auto_load_libthread_db): Likewise.
1925 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1926 (m32c_m16c_pointer_to_address): Likewise.
1927 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1928 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1929 * machoread.c (macho_check_dsym): Likewise.
1930 * macroexp.c (resize_buffer): Likewise.
1931 (gather_arguments): Likewise.
1932 (maybe_expand): Likewise.
1933 * macrotab.c (new_macro_key): Likewise.
1934 (new_source_file): Likewise.
1935 (new_macro_definition): Likewise.
1936 * mdebugread.c (parse_symbol): Likewise.
1937 (parse_type): Likewise.
1938 (parse_partial_symbols): Likewise.
1939 (psymtab_to_symtab_1): Likewise.
1940 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1941 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1942 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1943 (mi_cmd_data_read_memory_bytes): Likewise.
1944 (mi_cmd_data_write_memory_bytes): Likewise.
1945 (mi_cmd_trace_frame_collected): Likewise.
1946 * mi/mi-parse.c (mi_parse_argv): Likewise.
1947 (mi_parse): Likewise.
1948 * minidebug.c (lzma_open): Likewise.
1949 (lzma_pread): Likewise.
1950 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1951 (mips_print_fp_register): Likewise.
1952 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1953 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1954 * mt-tdep.c (mt_register_name): Likewise.
1955 (mt_registers_info): Likewise.
1956 (mt_push_dummy_call): Likewise.
1957 * namespace.c (add_using_directive): Likewise.
1958 * nat/linux-btrace.c (perf_event_read): Likewise.
1959 (linux_enable_bts): Likewise.
1960 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1961 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1962 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1963 (nto_parse_redirection): Likewise.
1964 * objc-lang.c (objc_demangle): Likewise.
1965 (find_methods): Likewise.
1966 * objfiles.c (get_objfile_bfd_data): Likewise.
1967 (set_objfile_main_name): Likewise.
1968 (allocate_objfile): Likewise.
1969 (objfile_relocate): Likewise.
1970 (update_section_map): Likewise.
1971 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1972 * p-exp.y (exp): Likewise.
1973 (yylex): Likewise.
1974 * p-valprint.c (pascal_object_print_value): Likewise.
1975 * parse.c (initialize_expout): Likewise.
1976 (mark_completion_tag): Likewise.
1977 (copy_name): Likewise.
1978 (parse_float): Likewise.
1979 (type_stack_reserve): Likewise.
1980 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1981 (ppu2spu_prev_register): Likewise.
1982 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1983 * printcmd.c (printf_wide_c_string): Likewise.
1984 (printf_pointer): Likewise.
1985 * probe.c (parse_probes): Likewise.
1986 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1987 (cmdpy_init): Likewise.
1988 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1989 * python/py-symtab.c (set_sal): Likewise.
1990 * python/py-unwind.c (pyuw_sniffer): Likewise.
1991 * python/python.c (python_interactive_command): Likewise.
1992 (compute_python_string): Likewise.
1993 * ravenscar-thread.c (get_running_thread_id): Likewise.
1994 * record-full.c (record_full_exec_insn): Likewise.
1995 (record_full_core_open_1): Likewise.
1996 * regcache.c (regcache_raw_read_signed): Likewise.
1997 (regcache_raw_read_unsigned): Likewise.
1998 (regcache_cooked_read_signed): Likewise.
1999 (regcache_cooked_read_unsigned): Likewise.
2000 * remote-fileio.c (remote_fileio_func_open): Likewise.
2001 (remote_fileio_func_rename): Likewise.
2002 (remote_fileio_func_unlink): Likewise.
2003 (remote_fileio_func_stat): Likewise.
2004 (remote_fileio_func_system): Likewise.
2005 * remote-mips.c (mips_xfer_memory): Likewise.
2006 (mips_load_srec): Likewise.
2007 (pmon_end_download): Likewise.
2008 * remote.c (new_remote_state): Likewise.
2009 (map_regcache_remote_table): Likewise.
2010 (remote_register_number_and_offset): Likewise.
2011 (init_remote_state): Likewise.
2012 (get_memory_packet_size): Likewise.
2013 (remote_pass_signals): Likewise.
2014 (remote_program_signals): Likewise.
2015 (remote_start_remote): Likewise.
2016 (remote_check_symbols): Likewise.
2017 (remote_query_supported): Likewise.
2018 (extended_remote_attach): Likewise.
2019 (process_g_packet): Likewise.
2020 (store_registers_using_G): Likewise.
2021 (putpkt_binary): Likewise.
2022 (read_frame): Likewise.
2023 (compare_sections_command): Likewise.
2024 (remote_hostio_pread): Likewise.
2025 (remote_hostio_readlink): Likewise.
2026 (remote_file_put): Likewise.
2027 (remote_file_get): Likewise.
2028 (remote_pid_to_exec_file): Likewise.
2029 (_initialize_remote): Likewise.
2030 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2031 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2032 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2033 (bfd_uses_spe_extensions): Likewise.
2034 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2035 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2036 * solib-dsbt.c (decode_loadmap): Likewise.
2037 (fetch_loadmap): Likewise.
2038 (scan_dyntag): Likewise.
2039 (enable_break): Likewise.
2040 (dsbt_relocate_main_executable): Likewise.
2041 * solib-frv.c (fetch_loadmap): Likewise.
2042 (enable_break2): Likewise.
2043 (frv_relocate_main_executable): Likewise.
2044 * solib-spu.c (spu_relocate_main_executable): Likewise.
2045 (spu_bfd_open): Likewise.
2046 * solib-svr4.c (lm_info_read): Likewise.
2047 (read_program_header): Likewise.
2048 (find_program_interpreter): Likewise.
2049 (scan_dyntag): Likewise.
2050 (elf_locate_base): Likewise.
2051 (open_symbol_file_object): Likewise.
2052 (read_program_headers_from_bfd): Likewise.
2053 (svr4_relocate_main_executable): Likewise.
2054 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2055 * solib.c (solib_find_1): Likewise.
2056 (exec_file_find): Likewise.
2057 (solib_find): Likewise.
2058 * source.c (openp): Likewise.
2059 (print_source_lines_base): Likewise.
2060 (forward_search_command): Likewise.
2061 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2062 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2063 (spu_get_overlay_table): Likewise.
2064 * stabsread.c (patch_block_stabs): Likewise.
2065 (define_symbol): Likewise.
2066 (again:): Likewise.
2067 (read_member_functions): Likewise.
2068 (read_one_struct_field): Likewise.
2069 (read_enum_type): Likewise.
2070 (common_block_start): Likewise.
2071 * stack.c (read_frame_arg): Likewise.
2072 (backtrace_command): Likewise.
2073 * stap-probe.c (stap_parse_register_operand): Likewise.
2074 * symfile.c (syms_from_objfile_1): Likewise.
2075 (find_separate_debug_file): Likewise.
2076 (load_command): Likewise.
2077 (load_progress): Likewise.
2078 (load_section_callback): Likewise.
2079 (reread_symbols): Likewise.
2080 (add_filename_language): Likewise.
2081 (allocate_compunit_symtab): Likewise.
2082 (read_target_long_array): Likewise.
2083 (simple_read_overlay_table): Likewise.
2084 * symtab.c (symbol_set_names): Likewise.
2085 (resize_symbol_cache): Likewise.
2086 (rbreak_command): Likewise.
2087 (completion_list_add_name): Likewise.
2088 (completion_list_objc_symbol): Likewise.
2089 (add_filename_to_list): Likewise.
2090 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2091 * target-memory.c (target_write_memory_blocks): Likewise.
2092 * target.c (target_read_string): Likewise.
2093 (read_whatever_is_readable): Likewise.
2094 (target_read_alloc_1): Likewise.
2095 (simple_search_memory): Likewise.
2096 (target_fileio_read_alloc_1): Likewise.
2097 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2098 * top.c (command_line_input): Likewise.
2099 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2100 * tracefile.c (tracefile_fetch_registers): Likewise.
2101 * tracepoint.c (add_memrange): Likewise.
2102 (init_collection_list): Likewise.
2103 (add_aexpr): Likewise.
2104 (trace_dump_actions): Likewise.
2105 (parse_trace_status): Likewise.
2106 (parse_tracepoint_definition): Likewise.
2107 (parse_tsv_definition): Likewise.
2108 (parse_static_tracepoint_marker_definition): Likewise.
2109 * tui/tui-file.c (tui_sfileopen): Likewise.
2110 (tui_file_adjust_strbuf): Likewise.
2111 * tui/tui-io.c (tui_expand_tabs): Likewise.
2112 * tui/tui-source.c (tui_set_source_content): Likewise.
2113 * typeprint.c (find_global_typedef): Likewise.
2114 * ui-file.c (do_ui_file_xstrdup): Likewise.
2115 (ui_file_obsavestring): Likewise.
2116 (mem_file_write): Likewise.
2117 * utils.c (make_hex_string): Likewise.
2118 (get_regcomp_error): Likewise.
2119 (puts_filtered_tabular): Likewise.
2120 (gdb_realpath_keepfile): Likewise.
2121 (ldirname): Likewise.
2122 (gdb_bfd_errmsg): Likewise.
2123 (substitute_path_component): Likewise.
2124 * valops.c (search_struct_method): Likewise.
2125 (find_oload_champ_namespace_loop): Likewise.
2126 * valprint.c (print_decimal_chars): Likewise.
2127 (read_string): Likewise.
2128 (generic_emit_char): Likewise.
2129 * varobj.c (varobj_delete): Likewise.
2130 (varobj_value_get_print_value): Likewise.
2131 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2132 * windows-tdep.c (display_one_tib): Likewise.
2133 * xcoffread.c (read_xcoff_symtab): Likewise.
2134 (process_xcoff_symbol): Likewise.
2135 (swap_sym): Likewise.
2136 (scan_xcoff_symtab): Likewise.
2137 (xcoff_initial_scan): Likewise.
2138 * xml-support.c (gdb_xml_end_element): Likewise.
2139 (xml_process_xincludes): Likewise.
2140 (xml_fetch_content_from_file): Likewise.
2141 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2142 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2143
2144 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2145
2146 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2147 instead of builtin_func_ptr.
2148 (ft32_pointer_to_address): New function.
2149 (ft32_address_class_type_flags): New function.
2150 (ft32_address_class_type_flags_to_name): New function.
2151 (ft32_address_class_name_to_type_flags): New function.
2152 (ft32_gdbarch_init): Set tdep->pc_type. Call
2153 set_gdbarch_pointer_to_address,
2154 set_gdbarch_address_class_type_flags
2155 set_gdbarch_address_class_name_to_type_flags,
2156 and set_gdbarch_address_class_type_flags_to_name.
2157 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2158
2159 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2160
2161 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2162 value is a reference, actually dereference it in order to get
2163 the underlying value.
2164
2165 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2166
2167 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2168
2169 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2170
2171 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2172 * linespec.c (linespec_lexer_lex_string): Same.
2173
2174 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2175
2176 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2177
2178 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2179
2180 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2181 variable. Call aarch64_decode_adr instead of
2182 aarch64_decode_adrp.
2183 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2184 (aarch64_decode_adr): New function declaration.
2185 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2186 (aarch64_decode_adr): New function, factored out from
2187 aarch64_decode_adrp to decode both adr and adrp instructions.
2188
2189 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2190
2191 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2192 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2193 (aarch64-insn.o): New rule.
2194 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2195 (aarch64*-*-linux*): Likewise.
2196 * arch/aarch64-insn.c: New file.
2197 * arch/aarch64-insn.h: New file.
2198 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2199 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2200 arch/aarch64-insn.h.
2201 (decode_add_sub_imm): Rename to ...
2202 (aarch64_decode_add_sub_imm): ... this.
2203 (decode_adrp): Rename to ...
2204 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2205 Declare in arch/aarch64-insn.h.
2206 (decode_b): Rename to ...
2207 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2208 Declare in arch/aarch64-insn.h.
2209 (decode_bcond): Rename to ...
2210 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2211 Declare in arch/aarch64-insn.h.
2212 (decode_br): Rename to ...
2213 (aarch64_decode_br): ... this.
2214 (decode_cb): Rename to ...
2215 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2216 Declare in arch/aarch64-insn.h.
2217 (decode_eret): Rename to ...
2218 (aarch64_decode_eret): ... this.
2219 (decode_movz): Rename to ...
2220 (aarch64_decode_movz): ... this.
2221 (decode_orr_shifted_register_x): Rename to ...
2222 (aarch64_decode_orr_shifted_register_x): ... this.
2223 (decode_ret): Rename to ...
2224 (aarch64_decode_ret): ... this.
2225 (decode_stp_offset): Rename to ...
2226 (aarch64_decode_stp_offset): ... this.
2227 (decode_stp_offset_wb): Rename to ...
2228 (aarch64_decode_stp_offset_wb): ... this.
2229 (decode_stur): Rename to ...
2230 (aarch64_decode_stur): ... this.
2231 (decode_tb): Rename to ...
2232 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2233 Declare in arch/aarch64-insn.h.
2234 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2235
2236 2015-09-20 Doug Evans <xdje42@gmail.com>
2237
2238 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2239
2240 2015-09-20 Doug Evans <xdje42@gmail.com>
2241
2242 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2243 variable name that collides with a parameter.
2244
2245 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2246
2247 * dwarf2loc.c (locexpr_get_frame_base): Renames
2248 block_op_get_frame_base.
2249 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2250 block_op_get_frame_base by reference to locexpr_get_frame_base.
2251 (loclist_get_frame_base): New function, near identical copy of
2252 locexpr_get_frame_base.
2253 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2254 block_op_get_frame_base by reference to loclist_get_frame_base.
2255
2256 2015-09-19 Doug Evans <xdje42@gmail.com>
2257
2258 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2259 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2260
2261 2015-09-18 Doug Evans <xdje42@gmail.com>
2262
2263 * linux-thread-db.c (record_thread): Return the created thread.
2264 (thread_from_lwp): Likewise.
2265 (thread_db_get_thread_local_address): Update.
2266
2267 2015-09-18 Doug Evans <xdje42@gmail.com>
2268
2269 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2270 move only member demangled_name up. All uses updated.
2271
2272 2015-09-18 Doug Evans <xdje42@gmail.com>
2273
2274 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2275 kind of minimal symbol in the error message.
2276 * objfiles.c (objfile_flavour_name): New function.
2277 * objfiles.h (objfile_flavour_name): Declare.
2278
2279 2015-09-18 Yao Qi <yao.qi@linaro.org>
2280
2281 * nat/aarch64-linux.c: Include elf/common.h,
2282 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2283 (aarch64_ps_get_thread_area): New function.
2284 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2285 (aarch64_ps_get_thread_area): Declare.
2286 * aarch64-linux-nat.c (ps_get_thread_area): Call
2287 aarch64_ps_get_thread_area.
2288
2289 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2290
2291 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2292
2293 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2294
2295 * NEWS: Announce new scheduler-locking mode.
2296 * infrun.c (schedlock_replay): New.
2297 (scheduler_enums): Add schedlock_replay.
2298 (scheduler_mode): Change default to schedlock_replay.
2299 (user_visible_resume_ptid): Handle schedlock_replay.
2300 (clear_proceed_status_thread): Stop replaying if resumed thread is
2301 not replaying.
2302 (schedlock_applies): Handle schedlock_replay.
2303 (_initialize_infrun): Document new scheduler-locking mode.
2304 * record-btrace.c (record_btrace_resume): Remove code to stop other
2305 threads when not replaying the resumed thread.
2306
2307 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2308
2309 * record-btrace.c ((record_btrace_will_replay): New.
2310 (init_record_btrace_ops): Initialize to_record_will_replay.
2311 * record-full.c ((record_full_will_replay): New.
2312 (init_record_full_ops): Initialize to_record_will_replay.
2313 * target-delegates.c: Regenerated.
2314 * target.c (target_record_will_replay): New.
2315 * target.h (struct target_ops) <to_record_will_replay>: New.
2316 (target_record_will_replay): New.
2317
2318 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2319
2320 * record-btrace.c (record_btrace_resume): Call
2321 target_record_stop_replaying.
2322 (record_btrace_stop_replaying_all): New.
2323 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2324 * record-full.c (record_full_stop_replaying): New.
2325 (init_record_full_ops ): Initialize to_record_stop_replaying.
2326 * target-delegates.c: Regenerated.
2327 * target.c (target_record_stop_replaying): New.
2328 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2329 (target_record_stop_replaying): New.
2330
2331 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2332
2333 * record-btrace.c (record_btrace_xfer_partial)
2334 (record_btrace_store_registers, record_btrace_prepare_to_store):
2335 Call record_btrace_is_replaying with inferior_ptid instead of
2336 minus_one_ptid.
2337 (record_btrace_store_registers): Change error message.
2338
2339 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2340
2341 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2342 Update users to pass minus_one_ptid.
2343 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2344 * record.c (cmd_record_delete): Pass inferior_ptid to
2345 target_record_is_replaying.
2346 * target-delegates.c: Regenerated.
2347 * target.c (target_record_is_replaying): Add ptid argument.
2348 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2349 argument.
2350 (target_record_is_replaying): Add ptid argument.
2351
2352 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2353
2354 * record-btrace.c (record_btrace_open): Remove non_stop check.
2355 * NEWS: Announce that record btrace supports non-stop mode.
2356
2357 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2358
2359 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2360 in the TARKET_WAITKIND_NO_HISTORY case.
2361
2362 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2363
2364 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2365 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2366
2367 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2368
2369 * record-btrace.c (get_thread_current_frame): New.
2370 (record_btrace_start_replaying): Call get_thread_current_frame.
2371
2372 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2373
2374 * record-btrace.c (record_btrace_resume_thread): A move request
2375 overwrites a previous move request.
2376 (record_btrace_find_resume_thread): Removed.
2377 (record_btrace_resume): Resume all requested threads.
2378
2379 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2380
2381 * record-btrace.c: Include vec.h.
2382 (record_btrace_find_thread_to_move): Removed.
2383 (btrace_step_no_resumed, btrace_step_again)
2384 (record_btrace_stop_replaying_at_end): New.
2385 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2386 (record_btrace_single_step_forward): Remove calls to
2387 record_btrace_stop_replaying.
2388 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2389 BTHR_RCONT. Keep threads at the end of their history moving.
2390 (record_btrace_wait): Call record_btrace_step_thread for all threads
2391 until one reports an event. Call record_btrace_stop_replaying_at_end
2392 for the eventing thread.
2393
2394 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2395
2396 * record-btrace.c (record_btrace_single_step_forward): Return
2397 NO_HISTORY if a step brings us to the end of the execution history.
2398
2399 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2400
2401 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2402 to ...
2403 (record_btrace_single_step_forward): ... here and
2404 (record_btrace_single_step_backward): ... here.
2405
2406 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2407
2408 * record-btrace.c (btrace_step_spurious)
2409 (record_btrace_single_step_forward)
2410 (record_btrace_single_step_backward): New.
2411 (record_btrace_step_thread): Call record_btrace_single_step_forward
2412 and record_btrace_single_step_backward.
2413
2414 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2415
2416 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2417 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2418
2419 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2420
2421 * record-btrace.c (btrace_thread_flag_to_str)
2422 (record_btrace_cancel_resume): New.
2423 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2424 (record_btrace_resume): Print execution direction.
2425 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2426 (record_btrace_wait): Call record_btrace_cancel_resume.
2427
2428 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2429
2430 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2431 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2432 (record_btrace_find_thread_to_move): Also accept threads that have
2433 BTHR_STOP set.
2434 (btrace_step_stopped_on_request, record_btrace_stop): New.
2435 (record_btrace_step_thread): Support BTHR_STOP.
2436 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2437 (init_record_btrace_ops): Initialize to_stop.
2438
2439 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2440
2441 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2442 target_is_non_stop_p ().
2443
2444 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2445
2446 * ada-typeprint.c (print_array_type): Do not describe arrays as
2447 packed when they embed dynamic elements.
2448
2449 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2450
2451 * symtab.h (address_class): Document that TLS variables
2452 are handled by LOC_UNRESOLVED.
2453 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2454 * printcmd.c (address_info): Don't relocate TLS variables.
2455
2456 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2457
2458 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2459 (decode_adrp): Likewise.
2460 (decode_b): Likewise.
2461 (decode_bcond): Likewise.
2462 (decode_br): Likewise.
2463 (decode_cb): Likewise.
2464 (decode_eret): Likewise.
2465 (decode_movz): Likewise.
2466 (decode_orr_shifted_register_x): Likewise.
2467 (decode_ret): Likewise.
2468 (decode_stp_offset): Likewise.
2469 (decode_stp_offset_wb): Likewise.
2470 (decode_stur): Likewise.
2471 (decode_tb): Likewise.
2472 (aarch64_analyze_prologue): Likewise.
2473 (pass_in_x): Likewise.
2474 (pass_in_v): Likewise.
2475 (pass_on_stack): Likewise.
2476 (aarch64_push_dummy_call): Likewise.
2477 (aarch64_extract_return_value): Likewise.
2478 (aarch64_store_return_value): Likewise.
2479 (aarch64_return_value): Likewise.
2480 (aarch64_record_asimd_load_store): Likewise.
2481 (aarch64_record_load_store): Likewise.
2482 (aarch64_record_data_proc_simd_fp): Likewise.
2483
2484 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2485
2486 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2487 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2488 (ppc64_skip_trampoline_code_1): ... here.
2489 (ppc64_skip_trampoline_code): New wrapper function.
2490 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2491
2492 2015-09-15 Yao Qi <yao.qi@linaro.org>
2493
2494 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2495 function.
2496 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2497 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2498 if target_can_do_single_step returns 1.
2499 * remote.c (struct vCont_action_support) <s, S>: New fields.
2500 (PACKET_vContSupported): New enum.
2501 (remote_protocol_features): New element for vContSupported.
2502 (remote_query_supported): Append "vContSupported+".
2503 (remote_vcont_probe): Remove support_s and support_S, use
2504 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2505 vCont packet if c and C actions are not supported.
2506 (remote_can_do_single_step): New function.
2507 (init_remote_ops): Install it to to_can_do_single_step.
2508 (_initialize_remote): Call add_packet_config_cmd.
2509 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2510 (target_can_do_single_step): New macro.
2511 * target-delegates.c: Re-generated.
2512
2513 2015-09-15 Yao Qi <yao.qi@linaro.org>
2514
2515 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2516 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2517 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2518 New function.
2519 (aarch64_siginfo_from_compat_siginfo): New function.
2520 * nat/aarch64-linux.h: Include signal.h.
2521 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2522 (compat_timer_t, compat_clock_t): Likewise.
2523 (struct compat_timeval): New.
2524 (union compat_sigval): New.
2525 (struct compat_siginfo): New.
2526 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2527 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2528 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2529 (cpt_si_band, cpt_si_fd): Likewise.
2530
2531 2015-09-14 Pedro Alves <palves@redhat.com>
2532
2533 * infrun.c (current_stop_id): New global.
2534 (get_stop_id, new_stop_id): New functions.
2535 (fetch_inferior_event): Handle normal_stop proceeding the target.
2536 (struct stop_context): New.
2537 (save_stop_context, release_stop_context_cleanup)
2538 (stop_context_changed): New functions.
2539 (normal_stop): Return true if the hook-stop changes the stop
2540 context.
2541 * infrun.h (get_stop_id): Declare.
2542 (normal_stop): Now returns int. Add documentation.
2543
2544 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2545
2546 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2547 comment. Handle packed arrays.
2548
2549 2015-09-14 Pedro Alves <palves@redhat.com>
2550
2551 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2552 mention of maint set/show target-non-stop.
2553
2554 2015-09-11 Don Breazeal <donb@codesourcery.com>
2555
2556 * NEWS: Announce new remote packets for the exec-events
2557 feature and the exec-events feature and associated commands.
2558
2559 2015-09-11 Don Breazeal <donb@codesourcery.com>
2560
2561 * remote.c (remote_exec_event_p): New function.
2562 (remote_insert_exec_catchpoint): New function.
2563 (remote_remove_exec_catchpoint): New function.
2564 (init_extended_remote_ops): Initialize extended_remote_ops
2565 members to_insert_exec_catchpoint and
2566 to_remove_exec_catchpoint.
2567
2568 2015-09-11 Don Breazeal <donb@codesourcery.com>
2569 Luis Machado <lgustavo@codesourcery.com>
2570
2571 * infrun.c (follow_exec): Use process-style ptid for
2572 exec message. Call add_inferior_with_spaces and
2573 target_follow_exec.
2574 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2575 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2576 * remote.c (remote_pspace_data): New static variable.
2577 (remote_pspace_data_cleanup): New function.
2578 (get_remote_exec_file): New function.
2579 (set_remote_exec_file_1): New function.
2580 (set_remote_exec_file): New function.
2581 (show_remote_exec_file): New function.
2582 (remote_exec_file): Delete static variable.
2583 (anonymous enum) <PACKET_exec_event_feature>: New
2584 enumeration constant.
2585 (remote_protocol_features): Add entry for exec-events feature.
2586 (remote_query_supported): Add client side of qSupported query
2587 for exec-events feature.
2588 (remote_follow_exec): New function.
2589 (remote_parse_stop_reply): Handle 'exec' stop reason.
2590 (extended_remote_run, extended_remote_create_inferior): Call
2591 get_remote_exec_file and set_remote_exec_file_1.
2592 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2593 member.
2594 (_initialize_remote): Call
2595 register_program_space_data_with_cleanup. Call
2596 add_packet_config_cmd for remote exec-events feature.
2597 Modify call to add_setshow_string_noescape_cmd for exec-file
2598 to use new functions set_remote_exec_file and
2599 show_remote_exec_file.
2600 * target-debug.h, target-delegates.c: Regenerated.
2601 * target.c (target_follow_exec): New function.
2602 * target.h (struct target_ops) <to_follow_exec>: New member.
2603 (target_follow_exec): Declare new function.
2604
2605 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2606
2607 * aarch64-tdep.c (decode_cb): Move up comment describing the
2608 encoding.
2609 (decode_tb): Fix a typo in comment above the function. Move up
2610 comment describing the encoding.
2611
2612 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2613
2614 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2615
2616 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2617
2618 PR gdb/18947
2619 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2620 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2621
2622 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2623
2624 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2625 operations.
2626
2627 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2628
2629 * ada-lang.c (ada_search_struct_field): Constify parameters
2630 and/or variables..
2631 (xget_renaming_scope): Likewise.
2632 (ada_is_redundant_range_encoding): Likewise.
2633 (scan_discrim_bound): Likewise.
2634 (to_fixed_range_type): Likewise.
2635
2636 2015-09-10 Yao Qi <yao.qi@linaro.org>
2637
2638 * breakpoint.c (download_tracepoint_locations): New local
2639 can_download_tracepoint. Check the result of
2640 target_can_download_tracepoint and save it in
2641 can_download_tracepoint if there are tracepoints to download.
2642 * linux-nat.h (enum tribool): Move it to ...
2643 * common/common-types.h: ... here.
2644
2645 2015-09-09 Pedro Alves <palves@redhat.com>
2646
2647 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2648 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2649
2650 2015-09-09 Pedro Alves <palves@redhat.com>
2651
2652 * continuations.c (add_continuation, restore_thread_cleanup)
2653 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2654 (do_all_continuations_thread, do_all_continuations)
2655 (discard_all_continuations_thread_callback)
2656 (discard_all_continuations_thread, discard_all_continuations)
2657 (add_intermediate_continuation)
2658 (do_all_intermediate_continuations_thread_callback)
2659 (do_all_intermediate_continuations_thread)
2660 (do_all_intermediate_continuations)
2661 (discard_all_intermediate_continuations_thread_callback)
2662 (discard_all_intermediate_continuations_thread)
2663 (discard_all_intermediate_continuations): Delete.
2664 * continuations.h (add_continuation, do_all_continuations)
2665 (do_all_continuations_thread, discard_all_continuations)
2666 (discard_all_continuations_thread, add_intermediate_continuation)
2667 (do_all_intermediate_continuations)
2668 (do_all_intermediate_continuations_thread)
2669 (discard_all_intermediate_continuations)
2670 (discard_all_intermediate_continuations_thread): Delete
2671 declarations.
2672 * event-top.c (stdin_event_handler): Delete references to
2673 continuations.
2674 * gdbthread.h (struct thread_info): Delete continuations and
2675 intermediate_continuations fields.
2676 * inf-loop.c (inferior_event_handler): Remove references to
2677 continuations.
2678 * infrun.c (infrun_thread_stop_requested_callback): Remove
2679 references to continuations.
2680 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2681 * thread.c: Don't include "continuations.h".
2682 (clear_thread_inferior_resources): Remove references to
2683 continuations.
2684
2685 2015-09-09 Pedro Alves <palves@redhat.com>
2686
2687 * infcall.c (struct dummy_frame_context_saver): Delete.
2688 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2689 (dummy_frame_context_saver_drop)
2690 (dummy_frame_context_saver_cleanup)
2691 (dummy_frame_context_saver_get_regs)
2692 (dummy_frame_context_saver_setup): Delete.
2693 * infcall.h (dummy_frame_context_saver_drop)
2694 (dummy_frame_context_saver_cleanup)
2695 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2696 Delete.
2697 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2698 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2699 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2700
2701 2015-09-09 Pedro Alves <palves@redhat.com>
2702
2703 * breakpoint.c: Include "thread-fsm.h".
2704 (struct until_break_command_continuation_args): Delete.
2705 (struct until_break_fsm): New.
2706 (until_break_fsm_ops): New global.
2707 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2708 (until_break_command_continuation): Delete.
2709 (until_break_fsm_clean_up): New function.
2710 (until_break_fsm_async_reply_reason): New function.
2711 (until_break_command): Adjust to create an until_break_fsm instead
2712 of a continuation.
2713 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2714 here.
2715 * infcmd.c (struct until_next_fsm): New.
2716 (until_next_fsm_ops): New global.
2717 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2718 (until_next_continuation): Delete.
2719 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2720 functions.
2721 (until_next_command): Adjust to create a new until_next_fsm
2722 instead of a continuation.
2723
2724 2015-09-09 Pedro Alves <palves@redhat.com>
2725
2726 * infcall.c: Include thread_fsm.h.
2727 (struct call_return_meta_info): New.
2728 (get_call_return_value): New function, factored out from
2729 call_function_by_hand_dummy.
2730 (struct call_thread_fsm): New.
2731 (call_thread_fsm_ops): New global.
2732 (new_call_thread_fsm, call_thread_fsm_should_stop)
2733 (call_thread_fsm_should_notify_stop): New functions.
2734 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2735 the thread.
2736 (call_function_by_hand_dummy): Create a new call_thread_fsm
2737 instance, associate it with the thread, and wait for the FSM to
2738 finish. If finished successfully, fetch the function's result
2739 value out of the FSM.
2740 * infrun.c (fetch_inferior_event): If the FSM says the stop
2741 shouldn't be notified, don't call normal_stop.
2742 (maybe_remove_breakpoints): New function, factored out from ...
2743 (normal_stop): ... here. Simplify.
2744 * infrun.h (maybe_remove_breakpoints): Declare.
2745 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2746 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2747 (thread_fsm_should_notify_stop): Declare.
2748
2749 2015-09-09 Pedro Alves <palves@redhat.com>
2750
2751 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2752 * breakpoint.c (handle_jit_event): Print debug output.
2753 (bpstat_what): Split event callback handling to ...
2754 (bpstat_run_callbacks): ... this new function.
2755 (momentary_bkpt_print_it): No longer handle bp_finish here.
2756 * breakpoint.h (bpstat_run_callbacks): Declare.
2757 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2758 <thread_fsm>: New field.
2759 (thread_cancel_execution_command): Declare.
2760 * infcmd.c: Include thread-fsm.h.
2761 (struct step_command_fsm): New.
2762 (step_command_fsm_ops): New global.
2763 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2764 (step_1): Adjust to use step_command_fsm_prepare and
2765 prepare_one_step.
2766 (struct step_1_continuation_args): Delete.
2767 (step_1_continuation): Delete.
2768 (step_command_fsm_should_stop): New function.
2769 (step_once): Delete.
2770 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2771 (prepare_one_step): New function, based on step_once.
2772 (until_next_command): Remove step_multi reference.
2773 (struct return_value_info): New.
2774 (print_return_value): Rename to ...
2775 (print_return_value_1): ... this. New struct return_value_info
2776 parameter. Adjust.
2777 (print_return_value): Reimplement as wrapper around
2778 print_return_value_1.
2779 (struct finish_command_fsm): New.
2780 (finish_command_continuation): Delete.
2781 (finish_command_fsm_ops): New global.
2782 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2783 functions.
2784 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2785 New.
2786 (finish_command_continuation_free_arg): Delete.
2787 (finish_command_fsm_async_reply_reason): New.
2788 (finish_backward, finish_forward): Change symbol parameter to a
2789 finish_command_fsm. Adjust.
2790 (finish_command): Create a finish_command_fsm. Adjust.
2791 * infrun.c: Include "thread-fsm.h".
2792 (clear_proceed_status_thread): Delete the thread's FSM.
2793 (infrun_thread_stop_requested_callback): Cancel the thread's
2794 execution command.
2795 (clean_up_just_stopped_threads_fsms): New function.
2796 (fetch_inferior_event): Handle the event_thread's should_stop
2797 method saying the command isn't done yet.
2798 (process_event_stop_test): Run breakpoint callbacks here.
2799 (print_stop_event): Rename to ...
2800 (print_stop_location): ... this.
2801 (restore_current_uiout_cleanup): New function.
2802 (print_stop_event): Reimplement.
2803 (normal_stop): No longer notify the end_stepping_range observers
2804 here handle "step N" nor "finish" here. No longer call
2805 print_stop_event here.
2806 * infrun.h (struct return_value_info): Forward declare.
2807 (print_return_value): Declare.
2808 (print_stop_event): Change prototype.
2809 * thread-fsm.c: New file.
2810 * thread-fsm.h: New file.
2811 * thread.c: Include "thread-fsm.h".
2812 (thread_cancel_execution_command): New function.
2813 (clear_thread_inferior_resources): Call it.
2814 * cli/cli-interp.c (cli_on_normal_stop): New function.
2815 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2816 observer.
2817 * mi/mi-interp.c: Include "thread-fsm.h".
2818 (restore_current_uiout_cleanup): Delete.
2819 (mi_on_normal_stop): If the thread has an FSM associated, and it
2820 finished, ask it for the async-reply-reason to print. Always call
2821 print_stop_event here, regardless of the top-level interpreter.
2822 Check bpstat_what to tell whether an asynchronous breakpoint hit
2823 triggered.
2824 * tui/tui-interp.c (tui_on_normal_stop): New function.
2825 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2826
2827 2015-09-09 Pedro Alves <palves@redhat.com>
2828
2829 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2830 check whether the target can async.
2831 * inf-loop.c (inferior_event_handler): Only call target_async if
2832 the target can async.
2833 * infcall.c: Include top.h and interps.h.
2834 (run_inferior_call): For the interpreter to sync mode while
2835 running the infcall. Call wait_sync_command_done instead of
2836 wait_for_inferior plus normal_stop.
2837 * infcmd.c (prepare_execution_command): Don't check whether the
2838 target can async when running in the foreground.
2839 (step_1): Delete synchronous case handling.
2840 (step_once): Always install a continuation, even in sync mode.
2841 (until_next_command, finish_forward): Don't check whether the
2842 target can async.
2843 (attach_command_post_wait, notice_new_inferior): Always install a
2844 continuation, even in sync mode.
2845 * infrun.c (mark_infrun_async_event_handler): New function.
2846 (proceed): In sync mode, mark infrun's event source instead of
2847 waiting for events here.
2848 (fetch_inferior_event): If the target can't async, do a blocking
2849 wait.
2850 (prepare_to_wait): In sync mode, mark infrun's event source.
2851 (infrun_async_inferior_event_handler): No longer bail out if the
2852 target can't async.
2853 * infrun.h (mark_infrun_async_event_handler): New declaration.
2854 * linux-nat.c (linux_nat_wait_1): Remove calls to
2855 set_sigint_trap/clear_sigint_trap.
2856 (linux_nat_terminal_inferior): No longer check whether the target
2857 can async.
2858 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2859 comment.
2860 (mi_execute_command_input_handler): No longer check whether the
2861 target is async. Update and simplify comment.
2862 * target.c (default_target_wait): New function.
2863 * target.h (struct target_ops) <to_wait>: Now defaults to
2864 default_target_wait.
2865 (default_target_wait): Declare.
2866 * top.c (wait_sync_command_done): New function, factored out from
2867 ...
2868 (maybe_wait_sync_command_done): ... this.
2869 * top.h (wait_sync_command_done): Declare.
2870 * target-delegates.c: Regenerate.
2871
2872 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2873
2874 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2875 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2876 Remove include of sys/utsname.h.
2877 (linux_determine_kernel_ptr_bits): Remove.
2878 (linux_determine_kernel_start): New.
2879 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2880 Update check.
2881 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2882 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2883 initialization.
2884 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2885 assignment.
2886
2887 2015-09-07 Pedro Alves <palves@redhat.com>
2888
2889 * guile/guile-internal.h (as_a_scm_t_subr): New.
2890 * guile/guile.c (misc_guile_functions): Use it.
2891 * guile/scm-arch.c (arch_functions): Use it.
2892 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2893 Use it.
2894 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2895 * guile/scm-cmd.c (command_functions): Use it.
2896 * guile/scm-disasm.c (disasm_functions): Use it.
2897 * guile/scm-exception.c (exception_functions)
2898 (private_exception_functions): Use it.
2899 * guile/scm-frame.c (frame_functions)
2900 * guile/scm-gsmob.c (gsmob_functions): Use it.
2901 * guile/scm-iterator.c (iterator_functions): Use it.
2902 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2903 * guile/scm-math.c (math_functions): Use it.
2904 * guile/scm-objfile.c (objfile_functions): Use it.
2905 * guile/scm-param.c (parameter_functions): Use it.
2906 * guile/scm-ports.c (port_functions, private_port_functions): Use
2907 it.
2908 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2909 * guile/scm-progspace.c (pspace_functions): Use it.
2910 * guile/scm-string.c (string_functions): Use it.
2911 * guile/scm-symbol.c (symbol_functions): Use it.
2912 * guile/scm-symtab.c (symtab_functions): Use it.
2913 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2914 it.
2915 * guile/scm-value.c (value_functions): Use it.
2916
2917 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2920 (tui_next_win): Likewise.
2921 (tui_prev_win): Likewise.
2922 (tui_partial_win_by_name): Likewise.
2923 (tui_init_generic_part): Likewise.
2924 (init_content_element): Likewise.
2925 (tui_del_window): Likewise.
2926 (tui_free_window): Likewise.
2927 (tui_del_data_windows): Likewise.
2928 (tui_free_data_content): Likewise.
2929 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2930 * tui/tui-regs.c (tui_show_register_group): Likewise.
2931 * tui/tui-win.c (tui_resize_all): Likewise.
2932 (tui_set_focus): Likewise.
2933 (tui_set_win_height): Likewise.
2934 (make_invisible_and_set_new_height): Likewise.
2935 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2936 * tui/tui-wingeneral.c (make_visible): Likewise.
2937
2938 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2941
2942 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2945 pointer.
2946 * dbxread.c (dbx_end_psymtab): Likewise.
2947 * gnu-nat.c (gnu_write_inferior): Likewise.
2948 * mdebugread.c (cross_ref): Likewise.
2949 * p-valprint.c (pascal_val_print): Likewise.
2950 * xcoffread.c (xcoff_end_psymtab): Likewise.
2951
2952 2015-09-04 Yao Qi <yao.qi@linaro.org>
2953
2954 * NEWS: Mention the aarch64 multi-arch debugging support.
2955
2956 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2957
2958 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2959 type instead of a TYPE_CODE_INT one for the string_char_type
2960 and the ada_primitive_type_char types.
2961
2962 2015-09-03 Yao Qi <yao.qi@linaro.org>
2963
2964 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2965 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2966 aarch64_linux_region_ok_for_watchpoint.
2967 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2968 New function.
2969 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2970 Declare it.
2971
2972 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2973
2974 * gdb_obstack.h (obstack_strdup): Declare.
2975 * gdb_obstack.c (obstack_strdup): Define.
2976 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2977 * gdbarch.c: Regenerate.
2978 * gdbarch.h: Regenerate.
2979 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2980
2981 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2982
2983 * gdbtypes.c (copy_type_recursive): Update documentation.
2984
2985 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2986
2987 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2988 as zero.
2989
2990 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2991
2992 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2993
2994 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2995
2996 * solib-svr4.c (solib_event_probe_action): Call
2997 get_probe_argument_count using TRY...CATCH.
2998 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2999
3000 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3001
3002 * probe.h (struct probe_ops) <get_probe_argument_count,
3003 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3004 the comment that the function can throw an exception.
3005 (get_probe_argument_count): Likewise.
3006 (evaluate_probe_argument): Likewise.
3007 * stap-probe.c (stap_get_opcode): Call error instead of
3008 internal_error.
3009 (stap_get_expected_argument_type): Likewise. Add argument
3010 'probe'. Improve error message by mentioning the probe's name.
3011 (stap_parse_probe_arguments): Adjust call to
3012 stap_get_expected_argument_type.
3013 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3014 not zero. Call internal_error if GDB requests an argument but the
3015 probe has no arguments.
3016
3017 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3018
3019 * ada-lang.c (ada_resolve_function): Do not ask the user what
3020 match to use when in completion mode.
3021
3022 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3025 cast of NULL.
3026
3027 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3028
3029 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3030 call_abi using XSHAL_ABI macro.
3031
3032 2015-08-29 Doug Evans <xdje42@gmail.com>
3033
3034 * symtab.h (struct symbol): Tweak comment.
3035
3036 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3037
3038 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3039 gdbarch obstack instead of on the heap. Update commentary
3040 accordingly.
3041
3042 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3043
3044 GDB 7.10 released.
3045
3046 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3047
3048 * NEWS: Update entry about non-8-bits addressable memory.
3049
3050 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3051
3052 Revert:
3053 2014-11-06 Doug Evans <xdje42@gmail.com>
3054 * solib.c (solib_global_lookup): Fetch arch from objfile,
3055 not target_gdbarch.
3056
3057 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3058
3059 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3060 attempt to relocate a TLS variable offset.
3061
3062 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3063
3064 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3065 registered yet. Set inferior_ptid while calling target_read_memory.
3066
3067 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3068
3069 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3070 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3071 * linux-nat.c (check_stopped_by_breakpoint): Use
3072 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3073
3074 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3075
3076 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3077 thread was not yet discovered, use thread_from_lwp instead of
3078 calling thread_db_find_new_threads_1.
3079
3080 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3081
3082 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3083 statements.
3084
3085 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3086
3087 * NEWS: Document support for non-8-bits addressable memory.
3088
3089 2015-08-27 Pedro Alves <palves@redhat.com>
3090
3091 * configure.ac: Remove AC_TYPE_SIGNAL call.
3092 * configure, config.in: Regenerate.
3093
3094 2015-08-27 Pedro Alves <palves@redhat.com>
3095
3096 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3097 * extension-priv.h: Include signal.h.
3098 (struct signal_handler) <handler>: Change type to sighandler_t.
3099 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3100 * inflow.c (sigint_ours, sigquit_ours): Change type to
3101 sighandler_t.
3102 (child_terminal_inferior): Remove casts.
3103 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3104 (osig): Change type to sighandler_t.
3105 * nto-procfs.c (ofunc): Change type to sighandler_t.
3106 (procfs_wait): Remove casts.
3107 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3108 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3109 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3110
3111 2015-08-27 Pedro Alves <palves@redhat.com>
3112
3113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3114 * gnulib/aclocal.m4: Renegerate.
3115 * gnulib/config.in: Renegerate.
3116 * gnulib/configure: Renegerate.
3117 * gnulib/import/Makefile.am: Update.
3118 * gnulib/import/Makefile.in: Regenerate.
3119 * gnulib/import/m4/gnulib-cache.m4: Update.
3120 * gnulib/import/m4/gnulib-comp.m4: Update.
3121 * gnulib/import/m4/signal_h.m4: New file.
3122 * gnulib/import/signal.in.h: New file.
3123
3124 2015-08-27 Pedro Alves <palves@redhat.com>
3125
3126 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3127 (MIN_MEMORY_PACKET_SIZE): New.
3128 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3129 (get_memory_packet_size): Adjust. No longer limit the max packet
3130 size.
3131 (set_memory_packet_size): Adjust, and remove dead code.
3132 (remote_check_symbols): Use xmalloc and a cleanup instead of
3133 alloca.
3134 (remote_packet_size): No longer cap the packet size.
3135 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3136
3137 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3138
3139 * compile/compile.c (compile_to_object): Mention language in
3140 error message.
3141
3142 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3143
3144 * target.c (target_pre_inferior): Unset attach_flag.
3145
3146 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3147
3148 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3149 * gdbarch.c: Re-generate.
3150
3151 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3152
3153 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3154 function with the XNEW-family equivalent.
3155 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3156 * ada-exp.y (write_ambiguous_var): Likewise.
3157 * ada-lang.c (resolve_subexp): Likewise.
3158 (user_select_syms): Likewise.
3159 (assign_aggregate): Likewise.
3160 (ada_evaluate_subexp): Likewise.
3161 (cache_symbol): Likewise.
3162 * addrmap.c (allocate_key): Likewise.
3163 (addrmap_create_mutable): Likewise.
3164 * aix-thread.c (sync_threadlists): Likewise.
3165 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3166 (alpha_gdbarch_init): Likewise.
3167 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3168 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3169 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3170 * arm-tdep.c (push_stack_item): Likewise.
3171 (arm_displaced_step_copy_insn): Likewise.
3172 (arm_gdbarch_init): Likewise.
3173 (_initialize_arm_tdep): Likewise.
3174 * avr-tdep.c (push_stack_item): Likewise.
3175 * ax-general.c (new_agent_expr): Likewise.
3176 * block.c (block_initialize_namespace): Likewise.
3177 * breakpoint.c (alloc_counted_command_line): Likewise.
3178 (update_dprintf_command_list): Likewise.
3179 (parse_breakpoint_sals): Likewise.
3180 (decode_static_tracepoint_spec): Likewise.
3181 (until_break_command): Likewise.
3182 (clear_command): Likewise.
3183 (update_global_location_list): Likewise.
3184 (get_breakpoint_objfile_data) Likewise.
3185 * btrace.c (ftrace_new_function): Likewise.
3186 (btrace_set_insn_history): Likewise.
3187 (btrace_set_call_history): Likewise.
3188 * buildsym.c (add_symbol_to_list): Likewise.
3189 (record_pending_block): Likewise.
3190 (start_subfile): Likewise.
3191 (start_buildsym_compunit): Likewise.
3192 (push_subfile): Likewise.
3193 (end_symtab_get_static_block): Likewise.
3194 (buildsym_init): Likewise.
3195 * cli/cli-cmds.c (source_command): Likewise.
3196 * cli/cli-decode.c (add_cmd): Likewise.
3197 * cli/cli-script.c (build_command_line): Likewise.
3198 (setup_user_args): Likewise.
3199 (realloc_body_list): Likewise.
3200 (process_next_line): Likewise.
3201 (copy_command_lines): Likewise.
3202 * cli/cli-setshow.c (do_set_command): Likewise.
3203 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3204 * coffread.c (coff_locate_sections): Likewise.
3205 (coff_symtab_read): Likewise.
3206 (coff_read_struct_type): Likewise.
3207 * common/cleanups.c (make_my_cleanup2): Likewise.
3208 * common/common-exceptions.c (throw_it): Likewise.
3209 * common/filestuff.c (make_cleanup_close): Likewise.
3210 * common/format.c (parse_format_string): Likewise.
3211 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3212 * compile/compile-object-load.c (munmap_list_add): Likewise.
3213 (compile_object_load): Likewise.
3214 * compile/compile-object-run.c (compile_object_run): Likewise.
3215 * compile/compile.c (append_args): Likewise.
3216 * corefile.c (specify_exec_file_hook): Likewise.
3217 * cp-support.c (make_symbol_overload_list): Likewise.
3218 * cris-tdep.c (push_stack_item): Likewise.
3219 (cris_gdbarch_init): Likewise.
3220 * ctf.c (ctf_trace_file_writer_new): Likewise.
3221 * dbxread.c (init_header_files): Likewise.
3222 (add_new_header_file): Likewise.
3223 (init_bincl_list): Likewise.
3224 (dbx_end_psymtab): Likewise.
3225 (start_psymtab): Likewise.
3226 (dbx_end_psymtab): Likewise.
3227 * dcache.c (dcache_init): Likewise.
3228 * dictionary.c (dict_create_hashed): Likewise.
3229 (dict_create_hashed_expandable): Likewise.
3230 (dict_create_linear): Likewise.
3231 (dict_create_linear_expandable): Likewise.
3232 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3233 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3234 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3235 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3236 (decode_frame_entry_1): Likewise.
3237 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3238 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3239 * dwarf2read.c (dwarf2_has_info): Likewise.
3240 (create_signatured_type_table_from_index): Likewise.
3241 (dwarf2_read_index): Likewise.
3242 (dw2_get_file_names_reader): Likewise.
3243 (create_all_type_units): Likewise.
3244 (read_cutu_die_from_dwo): Likewise.
3245 (init_tu_and_read_dwo_dies): Likewise.
3246 (init_cutu_and_read_dies): Likewise.
3247 (create_all_comp_units): Likewise.
3248 (queue_comp_unit): Likewise.
3249 (inherit_abstract_dies): Likewise.
3250 (read_call_site_scope): Likewise.
3251 (dwarf2_add_field): Likewise.
3252 (dwarf2_add_typedef): Likewise.
3253 (dwarf2_add_member_fn): Likewise.
3254 (attr_to_dynamic_prop): Likewise.
3255 (abbrev_table_alloc_abbrev): Likewise.
3256 (abbrev_table_read_table): Likewise.
3257 (add_include_dir): Likewise.
3258 (add_file_name): Likewise.
3259 (dwarf_decode_line_header): Likewise.
3260 (dwarf2_const_value_attr): Likewise.
3261 (dwarf_alloc_block): Likewise.
3262 (parse_macro_definition): Likewise.
3263 (set_die_type): Likewise.
3264 (write_psymtabs_to_index): Likewise.
3265 (create_cus_from_index): Likewise.
3266 (dwarf2_create_include_psymtab): Likewise.
3267 (process_psymtab_comp_unit_reader): Likewise.
3268 (build_type_psymtab_dependencies): Likewise.
3269 (read_comp_units_from_section): Likewise.
3270 (compute_compunit_symtab_includes): Likewise.
3271 (create_dwo_unit_in_dwp_v1): Likewise.
3272 (create_dwo_unit_in_dwp_v2): Likewise.
3273 (read_func_scope): Likewise.
3274 (process_structure_scope): Likewise.
3275 (mark_common_block_symbol_computed): Likewise.
3276 (load_partial_dies): Likewise.
3277 (dwarf2_symbol_mark_computed): Likewise.
3278 * elfread.c (elf_symfile_segments): Likewise.
3279 (elf_read_minimal_symbols): Likewise.
3280 * environ.c (make_environ): Likewise.
3281 * eval.c (evaluate_subexp_standard): Likewise.
3282 * event-loop.c (create_file_handler): Likewise.
3283 (create_async_signal_handler): Likewise.
3284 (create_async_event_handler): Likewise.
3285 (create_timer): Likewise.
3286 * exec.c (build_section_table): Likewise.
3287 * fbsd-nat.c (fbsd_remember_child): Likewise.
3288 * fork-child.c (fork_inferior): Likewise.
3289 * frv-tdep.c (new_variant): Likewise.
3290 * gdbarch.sh (gdbarch_alloc): Likewise.
3291 (append_name): Likewise.
3292 * gdbtypes.c (rank_function): Likewise.
3293 (copy_type_recursive): Likewise.
3294 (add_dyn_prop): Likewise.
3295 * gnu-nat.c (make_proc): Likewise.
3296 (make_inf): Likewise.
3297 (gnu_write_inferior): Likewise.
3298 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3299 (build_std_type_info_type): Likewise.
3300 * guile/scm-param.c (compute_enum_list): Likewise.
3301 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3302 * guile/scm-value.c (gdbscm_value_call): Likewise.
3303 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3304 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3305 (read_unwind_info): Likewise.
3306 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3307 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3308 (call_function_by_hand_dummy): Likewise.
3309 * infcmd.c (step_once): Likewise.
3310 (finish_forward): Likewise.
3311 (attach_command): Likewise.
3312 (notice_new_inferior): Likewise.
3313 * inferior.c (add_inferior_silent): Likewise.
3314 * infrun.c (add_displaced_stepping_state): Likewise.
3315 (save_infcall_control_state): Likewise.
3316 (save_inferior_ptid): Likewise.
3317 (_initialize_infrun): Likewise.
3318 * jit.c (bfd_open_from_target_memory): Likewise.
3319 (jit_gdbarch_data_init): Likewise.
3320 * language.c (add_language): Likewise.
3321 * linespec.c (decode_line_2): Likewise.
3322 * linux-nat.c (add_to_pid_list): Likewise.
3323 (add_initial_lwp): Likewise.
3324 * linux-thread-db.c (add_thread_db_info): Likewise.
3325 (record_thread): Likewise.
3326 (info_auto_load_libthread_db): Likewise.
3327 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3329 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3330 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3331 * macrocmd.c (macro_define_command): Likewise.
3332 * macroexp.c (gather_arguments): Likewise.
3333 * macroscope.c (sal_macro_scope): Likewise.
3334 * macrotab.c (new_macro_table): Likewise.
3335 * mdebugread.c (push_parse_stack): Likewise.
3336 (parse_partial_symbols): Likewise.
3337 (parse_symbol): Likewise.
3338 (psymtab_to_symtab_1): Likewise.
3339 (new_block): Likewise.
3340 (new_psymtab): Likewise.
3341 (mdebug_build_psymtabs): Likewise.
3342 (add_pending): Likewise.
3343 (elfmdebug_build_psymtabs): Likewise.
3344 * mep-tdep.c (mep_gdbarch_init): Likewise.
3345 * mi/mi-main.c (mi_execute_command): Likewise.
3346 * mi/mi-parse.c (mi_parse_argv): Likewise.
3347 * minidebug.c (lzma_open): Likewise.
3348 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3349 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3350 * mips-tdep.c (mips_gdbarch_init): Likewise.
3351 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3352 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3353 * mt-tdep.c (mt_registers_info): Likewise.
3354 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3355 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3356 (linux_enable_pt): Likewise.
3357 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3358 (linux_xfer_osdata_processgroups): Likewise.
3359 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3360 * nto-procfs.c (procfs_meminfo): Likewise.
3361 * objc-lang.c (start_msglist): Likewise.
3362 (selectors_info): Likewise.
3363 (classes_info): Likewise.
3364 (find_methods): Likewise.
3365 * objfiles.c (allocate_objfile): Likewise.
3366 (update_section_map): Likewise.
3367 * osabi.c (gdbarch_register_osabi): Likewise.
3368 (gdbarch_register_osabi_sniffer): Likewise.
3369 * parse.c (start_arglist): Likewise.
3370 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3371 (hwdebug_insert_point): Likewise.
3372 * printcmd.c (display_command): Likewise.
3373 (ui_printf): Likewise.
3374 * procfs.c (create_procinfo): Likewise.
3375 (load_syscalls): Likewise.
3376 (proc_get_LDT_entry): Likewise.
3377 (proc_update_threads): Likewise.
3378 * prologue-value.c (make_pv_area): Likewise.
3379 (pv_area_store): Likewise.
3380 * psymtab.c (extend_psymbol_list): Likewise.
3381 (init_psymbol_list): Likewise.
3382 (allocate_psymtab): Likewise.
3383 * python/py-inferior.c (add_thread_object): Likewise.
3384 * python/py-param.c (compute_enum_values): Likewise.
3385 * python/py-value.c (valpy_call): Likewise.
3386 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3387 * python/python.c (ensure_python_env): Likewise.
3388 * record-btrace.c (record_btrace_start_replaying): Likewise.
3389 * record-full.c (record_full_reg_alloc): Likewise.
3390 (record_full_mem_alloc): Likewise.
3391 (record_full_end_alloc): Likewise.
3392 (record_full_core_xfer_partial): Likewise.
3393 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3394 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3395 * remote-notif.c (remote_notif_state_allocate): Likewise.
3396 * remote.c (demand_private_info): Likewise.
3397 (remote_notif_stop_alloc_reply): Likewise.
3398 (remote_enable_btrace): Likewise.
3399 * reverse.c (save_bookmark_command): Likewise.
3400 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3401 * rx-tdep.c (rx_gdbarch_init): Likewise.
3402 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3403 * ser-go32.c (dos_get_tty_state): Likewise.
3404 (dos_copy_tty_state): Likewise.
3405 * ser-mingw.c (ser_windows_open): Likewise.
3406 (ser_console_wait_handle): Likewise.
3407 (ser_console_get_tty_state): Likewise.
3408 (make_pipe_state): Likewise.
3409 (net_windows_open): Likewise.
3410 * ser-unix.c (hardwire_get_tty_state): Likewise.
3411 (hardwire_copy_tty_state): Likewise.
3412 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3413 * solib-dsbt.c (dsbt_current_sos): Likewise.
3414 (dsbt_relocate_main_executable): Likewise.
3415 * solib-frv.c (frv_current_sos): Likewise.
3416 (frv_relocate_main_executable): Likewise.
3417 * solib-spu.c (spu_bfd_fopen): Likewise.
3418 * solib-svr4.c (lm_info_read): Likewise.
3419 (svr4_copy_library_list): Likewise.
3420 (svr4_default_sos): Likewise.
3421 * source.c (find_source_lines): Likewise.
3422 (line_info): Likewise.
3423 (add_substitute_path_rule): Likewise.
3424 * spu-linux-nat.c (spu_bfd_open): Likewise.
3425 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3426 * stabsread.c (dbx_lookup_type): Likewise.
3427 (read_type): Likewise.
3428 (read_member_functions): Likewise.
3429 (read_struct_fields): Likewise.
3430 (read_baseclasses): Likewise.
3431 (read_args): Likewise.
3432 (_initialize_stabsread): Likewise.
3433 * stack.c (func_command): Likewise.
3434 * stap-probe.c (handle_stap_probe): Likewise.
3435 * symfile.c (addrs_section_sort): Likewise.
3436 (addr_info_make_relative): Likewise.
3437 (load_section_callback): Likewise.
3438 (add_symbol_file_command): Likewise.
3439 (init_filename_language_table): Likewise.
3440 * symtab.c (create_filename_seen_cache): Likewise.
3441 (sort_search_symbols_remove_dups): Likewise.
3442 (search_symbols): Likewise.
3443 * target.c (make_cleanup_restore_target_terminal): Likewise.
3444 * thread.c (new_thread): Likewise.
3445 (enable_thread_stack_temporaries): Likewise.
3446 (make_cleanup_restore_current_thread): Likewise.
3447 (thread_apply_all_command): Likewise.
3448 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3449 * top.c (gdb_readline_wrapper): Likewise.
3450 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3451 * tracepoint.c (trace_find_line_command): Likewise.
3452 (all_tracepoint_actions_and_cleanup): Likewise.
3453 (make_cleanup_restore_current_traceframe): Likewise.
3454 (get_uploaded_tp): Likewise.
3455 (get_uploaded_tsv): Likewise.
3456 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3457 (tui_alloc_win_info): Likewise.
3458 (tui_alloc_content): Likewise.
3459 (tui_add_content_elements): Likewise.
3460 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3461 (tui_set_disassem_content): Likewise.
3462 * ui-file.c (ui_file_new): Likewise.
3463 (stdio_file_new): Likewise.
3464 (tee_file_new): Likewise.
3465 * utils.c (make_cleanup_restore_integer): Likewise.
3466 (add_internal_problem_command): Likewise.
3467 * v850-tdep.c (v850_gdbarch_init): Likewise.
3468 * valops.c (find_oload_champ): Likewise.
3469 * value.c (allocate_value_lazy): Likewise.
3470 (record_latest_value): Likewise.
3471 (create_internalvar): Likewise.
3472 * varobj.c (install_variable): Likewise.
3473 (new_variable): Likewise.
3474 (new_root_variable): Likewise.
3475 (cppush): Likewise.
3476 (_initialize_varobj): Likewise.
3477 * windows-nat.c (windows_make_so): Likewise.
3478 * x86-nat.c (x86_add_process): Likewise.
3479 * xcoffread.c (arrange_linetable): Likewise.
3480 (allocate_include_entry): Likewise.
3481 (process_linenos): Likewise.
3482 (SYMBOL_DUP): Likewise.
3483 (xcoff_start_psymtab): Likewise.
3484 (xcoff_end_psymtab): Likewise.
3485 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3486 * xtensa-tdep.c (xtensa_register_type): Likewise.
3487 * gdbarch.c: Regenerate.
3488 * gdbarch.h: Regenerate.
3489
3490 2015-08-25 Don Breazeal <donb@codesourcery.com>
3491
3492 * infrun.c (follow_exec): Re-order operations for
3493 handling follow-exec-mode "new".
3494 (handle_inferior_event_1): Assign ecs->event_thread
3495 to the current thread.
3496 * remote.c (get_remote_arch_state): Add an assertion.
3497
3498 2015-08-26 Pedro Alves <palves@redhat.com>
3499
3500 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3501
3502 2015-08-25 Pedro Alves <palves@redhat.com>
3503
3504 PR gdb/18804
3505 * defs.h (maybe_quit): Declare.
3506 (QUIT): Now calls maybe_quit.
3507 * event-loop.c (clear_async_signal_handler)
3508 (async_signal_handler_is_marked): New functions.
3509 * event-loop.h (async_signal_handler_is_marked)
3510 (clear_async_signal_handler): New declarations.
3511 * remote.c (remote_check_pending_interrupt): New function.
3512 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3513 longer check whether the target is async. If waiting for a stop
3514 reply, and a Ctrl-C as been sent to the target, offer to
3515 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3516 Otherwise do not disconnect and throw a quit.
3517 (_initialize_remote): Install remote_check_pending_interrupt as
3518 to_check_pending_interrupt.
3519 * target.c (target_check_pending_interrupt): New function.
3520 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3521 field.
3522 (target_check_pending_interrupt): New declaration.
3523 * utils.c (maybe_quit): New function.
3524 * target-delegates.c: Regenerate.
3525
3526 2015-08-25 Yao Qi <yao.qi@linaro.org>
3527
3528 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3529 Rename local variable pid to tid, and get lwpid of lwp. Update
3530 debug output.
3531
3532 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3533
3534 * ada-lang.c (ada_read_var_value): Add a var_block argument
3535 and pass it to default_read_var_value.
3536 * block.c (block_static_link): New accessor.
3537 * block.h (block_static_link): Declare it.
3538 * buildsym.c (finish_block_internal): Add a static_link
3539 argument. If there is a static link, associate it to the new
3540 block.
3541 (finish_block): Add a static link argument and pass it to
3542 finish_block_internal.
3543 (end_symtab_get_static_block): Update calls to finish_block and
3544 to finish_block_internal.
3545 (end_symtab_with_blockvector): Update call to
3546 finish_block_internal.
3547 * buildsym.h: Forward-declare struct dynamic_prop.
3548 (struct context_stack): Add a static_link field.
3549 (finish_block): Add a static link argument.
3550 * c-exp.y: Remove an obsolete comment (evaluation of variables
3551 already start from the selected frame, and now they climb *up*
3552 the call stack) and propagate the block information to the
3553 produced expression.
3554 * d-exp.y: Likewise.
3555 * f-exp.y: Likewise.
3556 * go-exp.y: Likewise.
3557 * jv-exp.y: Likewise.
3558 * m2-exp.y: Likewise.
3559 * p-exp.y: Likewise.
3560 * coffread.c (coff_symtab_read): Update calls to finish_block.
3561 * dbxread.c (process_one_symbol): Likewise.
3562 * xcoffread.c (read_xcoff_symtab): Likewise.
3563 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3564 "sym" parameter to struct block_symbol, update its uses and pass
3565 its block to calls to read_var_value.
3566 (convert_symbol_sym): Update the calls to convert_one_symbol.
3567 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3568 call to read_var_value.
3569 * dwarf2loc.c (block_op_get_frame_base): New.
3570 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3571 get_frame_base method.
3572 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3573 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3574 instead of the selected frame in order to evaluate the
3575 expression.
3576 (dwarf2_evaluate_property): Add a frame argument. Update call
3577 to dwarf2_locexpr_baton_eval to provide a frame in available and
3578 to handle the absence of address stack.
3579 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3580 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3581 declaration.
3582 (read_func_scope): Record any available static link description.
3583 Update call to finish_block.
3584 (read_lexical_block_scope): Update call to finish_block.
3585 * findvar.c (follow_static_link): New.
3586 (get_hosting_frame): New.
3587 (default_read_var_value): Add a var_block argument. Use
3588 get_hosting_frame to handle non-local references.
3589 (read_var_value): Add a var_block argument and pass it to the
3590 LA_READ_VAR_VALUE method.
3591 * gdbtypes.c (resolve_dynamic_range): Update calls to
3592 dwarf2_evaluate_property.
3593 (resolve_dynamic_type_internal): Likewise.
3594 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3595 read_var_value, passing it the block coming from symbol lookup.
3596 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3597 read_var_value (TODO).
3598 * infcmd.c (finish_command_continuation): Update call to
3599 read_var_value, passing it the block coming from symbol lookup.
3600 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3601 * language.h (struct language_defn): Add a var_block argument to
3602 the LA_READ_VAR_VALUE method.
3603 * objfiles.c (struct static_link_htab_entry): New.
3604 (static_link_htab_entry_hash): New.
3605 (static_link_htab_entry_eq): New.
3606 (objfile_register_static_link): New.
3607 (objfile_lookup_static_link): New.
3608 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3609 * objfiles.h: Include hashtab.h.
3610 (struct objfile): Add a static_links field.
3611 (objfile_register_static_link): New.
3612 (objfile_lookup_static_link): New.
3613 * printcmd.c (print_variable_and_value): Update call to
3614 read_var_value.
3615 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3616 * python/py-frame.c (frapy_read_var): Update call to
3617 read_var_value, passing it the block coming from symbol lookup.
3618 * python/py-framefilter.c (extract_sym): Add a sym_block
3619 parameter and set the pointed value to NULL (TODO).
3620 (enumerate_args): Update call to extract_sym.
3621 (enumerate_locals): Update calls to extract_sym and to
3622 read_var_value.
3623 * python/py-symbol.c (sympy_value): Update call to
3624 read_var_value (TODO).
3625 * stack.c (read_frame_local): Update call to read_var_value.
3626 (read_frame_arg): Likewise.
3627 (return_command): Likewise.
3628 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3629 method.
3630 (struct symbol): Add a block field.
3631 (SYMBOL_BLOCK): New accessor.
3632 * valops.c (value_of_variable): Remove frame/block handling and
3633 pass the block argument to read_var_value, which does this job
3634 now.
3635 (value_struct_elt_for_reference): Update calls to
3636 read_var_value.
3637 (value_of_this): Pass the block found to read_var_value.
3638 * value.h (read_var_value): Add a var_block argument.
3639 (default_read_var_value): Likewise.
3640
3641 2015-08-25 Yao Qi <yao.qi@linaro.org>
3642
3643 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3644 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3645 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3646
3647 2015-08-25 Yao Qi <yao.qi@linaro.org>
3648
3649 * Makefile.in (aarch64-liunx.o): New rule.
3650 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3651 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3652 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3653 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3654 extern.
3655 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3656 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3657 * nat/aarch64-linux.c: New file.
3658 * nat/aarch64-linux.h: New file.
3659
3660 2015-08-25 Yao Qi <yao.qi@linaro.org>
3661
3662 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3663 lwp_arch_private_info and ptid_of_lwp.
3664
3665 2015-08-25 Yao Qi <yao.qi@linaro.org>
3666
3667 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3668 Move it to nat/aarch64-linux-hw-point.c.
3669 (debug_reg_change_callback): Likewise.
3670 (aarch64_notify_debug_reg_change): :Likewise.
3671 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3672 (aarch64_dr_update_callback_param): New.
3673 (debug_reg_change_callback): New function.
3674 (aarch64_notify_debug_reg_change): Likewise.
3675 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3676 Remove the declaration.
3677
3678 2015-08-25 Yao Qi <yao.qi@linaro.org>
3679
3680 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3681 Call current_lwp_ptid.
3682
3683 2015-08-25 Yao Qi <yao.qi@linaro.org>
3684
3685 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3686 debug_printf.
3687
3688 2015-08-25 Yao Qi <yao.qi@linaro.org>
3689
3690 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3691 ptid_get_pid rather than ptid_get_lwp.
3692
3693 2015-08-24 Pedro Alves <palves@redhat.com>
3694
3695 * NEWS (New commands): Mention set/show remote
3696 multiprocess-extensions-packet.
3697 * remote.c (remote_query_supported): Only tell the server to use
3698 the multiprocess extensions if the user hasn't force-disabled them
3699 with "set remote multiprocess-extensions-packet off".
3700
3701 2015-08-24 Pedro Alves <palves@redhat.com>
3702
3703 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3704 1029a8112290f6eee9d7878a391c49db42c999bd.
3705 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3706 Regenerate.
3707 * gnulib/import/Makefile.am: Update.
3708 * gnulib/import/Makefile.in: Update.
3709 * gnulib/import/alloca.in.h: Update.
3710 * gnulib/import/basename-lgpl.c: Update.
3711 * gnulib/import/canonicalize-lgpl.c: Update.
3712 * gnulib/import/config.charset: Update.
3713 * gnulib/import/dirent.in.h: Update.
3714 * gnulib/import/dirfd.c: Update.
3715 * gnulib/import/dirname-lgpl.c: Update.
3716 * gnulib/import/dirname.h: Update.
3717 * gnulib/import/dosname.h: Update.
3718 * gnulib/import/errno.in.h: Update.
3719 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3720 * gnulib/import/extra/snippet/c++defs.h: Update.
3721 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3722 * gnulib/import/extra/update-copyright: Update.
3723 * gnulib/import/float+.h: Update.
3724 * gnulib/import/float.c: Update.
3725 * gnulib/import/float.in.h: Update.
3726 * gnulib/import/fnmatch.c: Update.
3727 * gnulib/import/fnmatch.in.h: Update.
3728 * gnulib/import/fnmatch_loop.c: Update.
3729 * gnulib/import/fpucw.h: Update.
3730 * gnulib/import/frexp.c: Update.
3731 * gnulib/import/frexpl.c: Update.
3732 * gnulib/import/gettimeofday.c: Update.
3733 * gnulib/import/inttypes.in.h: Update.
3734 * gnulib/import/isnan.c: Update.
3735 * gnulib/import/isnand-nolibm.h: Update.
3736 * gnulib/import/isnand.c: Update.
3737 * gnulib/import/isnanl-nolibm.h: Update.
3738 * gnulib/import/isnanl.c: Update.
3739 * gnulib/import/itold.c: Update.
3740 * gnulib/import/localcharset.c: Update.
3741 * gnulib/import/localcharset.h: Update.
3742 * gnulib/import/lstat.c: Update.
3743 * gnulib/import/m4/00gnulib.m4: Update.
3744 * gnulib/import/m4/absolute-header.m4: Update.
3745 * gnulib/import/m4/alloca.m4: Update.
3746 * gnulib/import/m4/canonicalize.m4: Update.
3747 * gnulib/import/m4/codeset.m4: Update.
3748 * gnulib/import/m4/configmake.m4: Update.
3749 * gnulib/import/m4/dirent_h.m4: Update.
3750 * gnulib/import/m4/dirfd.m4: Update.
3751 * gnulib/import/m4/dirname.m4: Update.
3752 * gnulib/import/m4/double-slash-root.m4: Update.
3753 * gnulib/import/m4/eealloc.m4: Update.
3754 * gnulib/import/m4/errno_h.m4: Update.
3755 * gnulib/import/m4/exponentd.m4: Update.
3756 * gnulib/import/m4/exponentl.m4: Update.
3757 * gnulib/import/m4/extensions.m4: Update.
3758 * gnulib/import/m4/extern-inline.m4: Update.
3759 * gnulib/import/m4/fcntl-o.m4: Update.
3760 * gnulib/import/m4/float_h.m4: Update.
3761 * gnulib/import/m4/fnmatch.m4: Update.
3762 * gnulib/import/m4/fpieee.m4: Update.
3763 * gnulib/import/m4/frexp.m4: Update.
3764 * gnulib/import/m4/frexpl.m4: Update.
3765 * gnulib/import/m4/gettimeofday.m4: Update.
3766 * gnulib/import/m4/glibc21.m4: Update.
3767 * gnulib/import/m4/gnulib-cache.m4: Update.
3768 * gnulib/import/m4/gnulib-common.m4: Update.
3769 * gnulib/import/m4/gnulib-comp.m4: Update.
3770 * gnulib/import/m4/gnulib-tool.m4: Update.
3771 * gnulib/import/m4/include_next.m4: Update.
3772 * gnulib/import/m4/inttypes-pri.m4: Update.
3773 * gnulib/import/m4/inttypes.m4: Update.
3774 * gnulib/import/m4/isnand.m4: Update.
3775 * gnulib/import/m4/isnanl.m4: Update.
3776 * gnulib/import/m4/largefile.m4: Update.
3777 * gnulib/import/m4/localcharset.m4: Update.
3778 * gnulib/import/m4/locale-fr.m4: Update.
3779 * gnulib/import/m4/locale-ja.m4: Update.
3780 * gnulib/import/m4/locale-zh.m4: Update.
3781 * gnulib/import/m4/longlong.m4: Update.
3782 * gnulib/import/m4/lstat.m4: Update.
3783 * gnulib/import/m4/malloc.m4: Update.
3784 * gnulib/import/m4/malloca.m4: Update.
3785 * gnulib/import/m4/math_h.m4: Update.
3786 * gnulib/import/m4/mbrtowc.m4: Update.
3787 * gnulib/import/m4/mbsinit.m4: Update.
3788 * gnulib/import/m4/mbsrtowcs.m4: Update.
3789 * gnulib/import/m4/mbstate_t.m4: Update.
3790 * gnulib/import/m4/memchr.m4: Update.
3791 * gnulib/import/m4/memmem.m4: Update.
3792 * gnulib/import/m4/mmap-anon.m4: Update.
3793 * gnulib/import/m4/multiarch.m4: Update.
3794 * gnulib/import/m4/nocrash.m4: Update.
3795 * gnulib/import/m4/off_t.m4: Update.
3796 * gnulib/import/m4/pathmax.m4: Update.
3797 * gnulib/import/m4/readlink.m4: Update.
3798 * gnulib/import/m4/rename.m4: Update.
3799 * gnulib/import/m4/rmdir.m4: Update.
3800 * gnulib/import/m4/ssize_t.m4: Update.
3801 * gnulib/import/m4/stat.m4: Update.
3802 * gnulib/import/m4/stdbool.m4: Update.
3803 * gnulib/import/m4/stddef_h.m4: Update.
3804 * gnulib/import/m4/stdint.m4: Update.
3805 * gnulib/import/m4/stdio_h.m4: Update.
3806 * gnulib/import/m4/stdlib_h.m4: Update.
3807 * gnulib/import/m4/string_h.m4: Update.
3808 * gnulib/import/m4/strstr.m4: Update.
3809 * gnulib/import/m4/strtok_r.m4: Update.
3810 * gnulib/import/m4/sys_socket_h.m4: Update.
3811 * gnulib/import/m4/sys_stat_h.m4: Update.
3812 * gnulib/import/m4/sys_time_h.m4: Update.
3813 * gnulib/import/m4/sys_types_h.m4: Update.
3814 * gnulib/import/m4/time_h.m4: Update.
3815 * gnulib/import/m4/unistd_h.m4: Update.
3816 * gnulib/import/m4/warn-on-use.m4: Update.
3817 * gnulib/import/m4/wchar_h.m4: Update.
3818 * gnulib/import/m4/wchar_t.m4: Update.
3819 * gnulib/import/m4/wctype_h.m4: Update.
3820 * gnulib/import/m4/wint_t.m4: Update.
3821 * gnulib/import/malloc.c: Update.
3822 * gnulib/import/malloca.c: Update.
3823 * gnulib/import/malloca.h: Update.
3824 * gnulib/import/math.in.h: Update.
3825 * gnulib/import/mbrtowc.c: Update.
3826 * gnulib/import/mbsinit.c: Update.
3827 * gnulib/import/mbsrtowcs-impl.h: Update.
3828 * gnulib/import/mbsrtowcs-state.c: Update.
3829 * gnulib/import/mbsrtowcs.c: Update.
3830 * gnulib/import/memchr.c: Update.
3831 * gnulib/import/memmem.c: Update.
3832 * gnulib/import/pathmax.h: Update.
3833 * gnulib/import/readlink.c: Update.
3834 * gnulib/import/ref-add.sin: Update.
3835 * gnulib/import/ref-del.sin: Update.
3836 * gnulib/import/rename.c: Update.
3837 * gnulib/import/rmdir.c: Update.
3838 * gnulib/import/same-inode.h: Update.
3839 * gnulib/import/stat.c: Update.
3840 * gnulib/import/stdbool.in.h: Update.
3841 * gnulib/import/stddef.in.h: Update.
3842 * gnulib/import/stdint.in.h: Update.
3843 * gnulib/import/stdio.c: Update.
3844 * gnulib/import/stdio.in.h: Update.
3845 * gnulib/import/stdlib.in.h: Update.
3846 * gnulib/import/str-two-way.h: Update.
3847 * gnulib/import/streq.h: Update.
3848 * gnulib/import/string.in.h: Update.
3849 * gnulib/import/stripslash.c: Update.
3850 * gnulib/import/strnlen1.c: Update.
3851 * gnulib/import/strnlen1.h: Update.
3852 * gnulib/import/strstr.c: Update.
3853 * gnulib/import/strtok_r.c: Update.
3854 * gnulib/import/sys_stat.in.h: Update.
3855 * gnulib/import/sys_time.in.h: Update.
3856 * gnulib/import/sys_types.in.h: Update.
3857 * gnulib/import/time.in.h: Update.
3858 * gnulib/import/unistd.in.h: Update.
3859 * gnulib/import/verify.h: Update.
3860 * gnulib/import/wchar.in.h: Update.
3861 * gnulib/import/wctype.in.h: Update.
3862 * gnulib/import/gettimeofday.c: New file.
3863 * gnulib/import/m4/absolute-header.m4: New file.
3864 * gnulib/import/m4/gettimeofday.m4: New file.
3865 * gnulib/import/m4/sys_socket_h.m4: New file.
3866 * gnulib/import/m4/sys_time_h.m4: New file.
3867 * gnulib/import/stdio.c: Delete file.
3868 * gnulib/import/sys_time.in.h: New file.
3869
3870 2015-08-24 Pedro Alves <palves@redhat.com>
3871
3872 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3873 * common/gdb_sys_time.h: New file.
3874 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3875 * gdb_select.h: Likewise.
3876 * gdb_usleep.c: Likewise.
3877 * maint.c: Likewise.
3878 * mi/mi-main.c: Likewise.
3879 * mi/mi-parse.h: Likewise.
3880 * remote-fileio.c: Likewise.
3881 * remote-m32r-sdi.c: Likewise.
3882 * remote.c: Likewise.
3883 * ser-base.c: Likewise.
3884 * ser-pipe.c: Likewise.
3885 * ser-tcp.c: Likewise.
3886 * ser-unix.c: Likewise.
3887 * symfile.c: Likewise.
3888 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3889 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3890 * utils.c: Likewise.
3891
3892 2015-08-24 Pedro Alves <palves@redhat.com>
3893
3894 * NEWS: Mention removed support for the various ROM monitors.
3895 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3896 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3897 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3898 gdb_target_obs.
3899 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3900 gdb_target_obs.
3901 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3902 dsrec.o from gdb_target_obs.
3903 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3904 from gdb_target_obs.
3905 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3906 gdb_target_obs.
3907 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3908 dink32-rom.o from gdb_target_obs.
3909 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3910 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3911 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3912 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3913
3914 2015-08-21 Pedro Alves <palves@redhat.com>
3915
3916 * frame.c (null_frame_id): Explicitly zero-initialize.
3917
3918 2015-08-21 Tom Tromey <tromey@redhat.com>
3919
3920 * dwarf2read.c (struct dwarf2_section_info): Rename field
3921 'asection' to 'section'.
3922 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3923 (dwarf2_locate_sections, dwarf2_locate_sections)
3924 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3925 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3926 (dwarf2_locate_v2_dwp_sections): Adjust.
3927
3928 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3929
3930 * top.h (gdb_in_secondary_prompt_p): Declare.
3931 * top.c (gdb_secondary_prompt_depth): Define.
3932 (gdb_in_secondary_prompt_p): Define.
3933 (gdb_readline_wrapper_cleanup): Decrement
3934 gdb_secondary_prompt_depth.
3935 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3936 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3937 are in a secondary prompt.
3938
3939 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3940
3941 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3942 emit the newline.
3943
3944 2015-08-21 Gary Benson <gbenson@redhat.com>
3945
3946 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3947
3948 2015-08-21 Gary Benson <gbenson@redhat.com>
3949
3950 * target.h (struct target_ops) <to_fileio_open>: New argument
3951 warn_if_slow. Update comment. All implementations updated.
3952 (target_fileio_open_warn_if_slow): New declaration.
3953 * target.c (target_fileio_open): Renamed as...
3954 (target_fileio_open_1): ...this. New argument warn_if_slow.
3955 Pass warn_if_slow to implementation. Update debug printing.
3956 (target_fileio_open): New function.
3957 (target_fileio_open_warn_if_slow): Likewise.
3958 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3959 target_fileio_open_warn_if_slow.
3960
3961 2015-08-21 Gary Benson <gbenson@redhat.com>
3962
3963 * nat/linux-namespaces.c (linux_mntns_access_fs):
3964 Do not overwrite old_chain.
3965
3966 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3967
3968 * arch/xtensa.h: New file.
3969 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3970 (ps_get_thread_area): New function.
3971 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3972 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3973 * xtensa-tdep.c (osabi.h): New #include.
3974 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3975 xtensa-specific hooks.
3976 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3977 member and move the structure to arch/xtensa.h.
3978
3979 2015-08-21 Pedro Alves <palves@redhat.com>
3980
3981 * remote.c (struct readahead_cache): New.
3982 (struct remote_state) <readahead_cache>: New field.
3983 (remote_open_1): Invalidate the cache.
3984 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3985 functions.
3986 (remote_hostio_pwrite): Invalidate the readahead cache.
3987 (remote_hostio_pread): Rename to ...
3988 (remote_hostio_pread_vFile): ... this.
3989 (remote_hostio_pread_from_cache): New function.
3990 (remote_hostio_pread): Reimplement.
3991 (remote_hostio_close): Invalidate the readahead cache.
3992
3993 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3994
3995 PR build/18843
3996 * procfs.c: Include "filestuff.h".
3997
3998 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3999
4000 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4001 curch.
4002 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4003 cur_line or curch, instead call wmove().
4004 (init_win_info) [CMD_WIN]: Likewise.
4005 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4006 instead call getcury().
4007 (tui_redisplay_readline): Don't set cur_line or curch.
4008 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4009 getcury().
4010 (tui_cont_sig): Remove call to wmove.
4011 (tui_getc): Don't read cur_line or curch, instead call getcury()
4012 or getyx(). Don't set curch.
4013 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4014 set cur_line or curch. Always move cursor to (0,0).
4015
4016 2015-08-20 Pedro Alves <palves@redhat.com>
4017
4018 * infrun.c (print_target_wait_results): Make extern.
4019 * infrun.h (print_target_wait_results): Declare.
4020 * remote.c (set_stop_requested_callback): Delete.
4021 (process_initial_stop_replies): New function.
4022 (remote_start_remote): Use it.
4023 (stop_reply_queue_length): New function.
4024
4025 2015-08-20 Pedro Alves <palves@redhat.com>
4026
4027 * dwarf2read.c (process_full_comp_unit): To tell whether
4028 start_subfile managed to deduce a language, test for
4029 language_unknown instead of language_c.
4030
4031 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4032
4033 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4034 matches attributes.
4035
4036 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4037
4038 * dwarf2read.c (dwarf2_string_attr): New function.
4039 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4040 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4041 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4042 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4043 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4044
4045 2015-08-18 Doug Evans <dje@google.com>
4046 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4047
4048 PR mi/18833
4049 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4050 if MI-like.
4051 * mi/mi-out.c: #include "vec.h".
4052 (ui_filep): New type.
4053 (DEV_VEC_P (ui_filep)): New type.
4054 (struct ui_out_data) <buffer, original_buffer>: Delete.
4055 (struct ui_out_data) <streams>: New member.
4056 (mi_ui_out_impl): Add data_destroy field.
4057 (mi_field_string, mi_field_fmt): Update.
4058 (mi_flush, mi_redirect, field_separator): Update.
4059 (mi_open, mi_close): Update.
4060 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4061 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4062 (mi_out_new): Call mi_out_data_ctor.
4063
4064 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4065
4066 * remote.c (strprefix): New.
4067 (remote_parse_stop_reply): Use strprefix instead of strncmp
4068 to ensure exact match of keyword.
4069
4070 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * gdb_bfd.c (debug_bfd_cache): New variable.
4073 (show_bfd_cache_debug): New function.
4074 (gdb_bfd_open): Add debug logging.
4075 (gdb_bfd_ref): Likewise.
4076 (gdb_bfd_unref): Likewise.
4077 (_initialize_gdb_bfd): Add new set/show command.
4078 * NEWS: Mention new command.
4079
4080 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4081
4082 * gdb_bfd.c (bfd_sharing): New variable.
4083 (show_bfd_sharing): New function.
4084 (gdb_bfd_open): Check bfd_sharing variable.
4085 (_initialize_gdb_bfd): Add new set/show command.
4086 * NEWS: Mention new command.
4087
4088 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4089
4090 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4091 field.
4092 (struct gdb_bfd_cache_search): Likewise.
4093 (eq_bfd): Compare the size, inode, and device id fields.
4094 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4095 (gdb_bfd_ref): Likewise.
4096 (gdb_bfd_unref): Likewise.
4097
4098 2015-08-18 Pedro Alves <palves@redhat.com>
4099
4100 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4101 target implements to_always_non_stop_p, call it.
4102 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4103 (x86_linux_create_target): Install it as to_always_non_stop_p
4104 method.
4105
4106 2015-08-17 Doug Evans <dje@google.com>
4107
4108 * ui-out.c (default_ui_out_impl): Add comment.
4109
4110 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4111
4112 * d-exp.y (type_aggregate_p): New function.
4113 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4114 (classify_inner_name): Likewise.
4115 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4116
4117 2015-08-15 Doug Evans <xdje42@gmail.com>
4118
4119 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4120 updated.
4121 (add_psymbol_to_list): Ditto.
4122
4123 2015-08-15 Doug Evans <xdje42@gmail.com>
4124
4125 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4126 updated. Call end_psymtab_common.
4127 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4128 end_psymtab_common.
4129 (build_type_psymtabs_reader): Ditto.
4130 * psympriv.h (sort_pst_symbols): Delete.
4131 (end_psymtab_common): Declare.
4132 * psymtab.c (sort_pst_symbols): Make static.
4133 (end_psymtab_common): New function.
4134 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4135
4136 2015-08-15 Doug Evans <xdje42@gmail.com>
4137
4138 * defs.h (LANGUAGE_BITS): Define.
4139 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4140 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4141 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4142 (minimal_symbol_type): Add nr_minsym_types.
4143 (MINSYM_TYPE_BITS): Define.
4144 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4145 (domain_enum_tag): Add NR_DOMAINS.
4146 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4147 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4148
4149 2015-08-15 Doug Evans <xdje42@gmail.com>
4150
4151 * objfiles.h: Whitespace cleanup.
4152 * psympriv.h: Whitespace cleanup.
4153 * psymtab.c: Whitespace/coding convention cleanup.
4154
4155 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4156
4157 * inferior.c (detach_inferior_command): Don't call
4158 any_thread_of_process when pid is 0.
4159 (kill_inferior_command): Likewise.
4160
4161 2015-08-14 Doug Evans <xdje42@gmail.com>
4162
4163 PR gdb/11833
4164 * NEWS: Document new /s modifier for the disassemble command.
4165 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4166 (_initialize_cli_cmds): Update online docs of disassemble command.
4167 * disasm.c: #include "source.h".
4168 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4169 All uses updated.
4170 (dis_line_entry): New struct.
4171 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4172 (allocate_dis_line_table): New functions.
4173 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4174 (dump_insns): New arg end_pc. All callers updated.
4175 (do_mixed_source_and_assembly_deprecated): Renamed from
4176 do_mixed_source_and_assembly. All callers updated.
4177 (do_mixed_source_and_assembly): New function.
4178 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4179 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4180 DISASSEMBLY_SOURCE. All uses updated.
4181 (DISASSEMBLY_SOURCE): New macro.
4182 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4183
4184 2015-08-14 Keith Seitz <keiths@redhat.com>
4185
4186 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4187 `typename' to `type_name' to avoid C++ reserved word.
4188
4189 2015-08-14 Keith Seitz <keiths@redhat.com>
4190
4191 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4192 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4193 silence ARI errors.
4194
4195 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4196
4197 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4198 xstrprintf instead of malloc and sprintf.
4199 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4200 (lex_one_token): Likewise.
4201
4202 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4203
4204 * solib-svr4.c (read_program_header): Add base_addr argument to
4205 report the runtime address of the segment.
4206 (find_program_interpreter): Update read_program_header call to pass
4207 a NULL pointer for the new argument.
4208 (scan_dyntag): Add ptr_addr argument to report the runtime address
4209 of the tag payload.
4210 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4211 read_program_header to get the base address of the dynamic segment.
4212 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4213 read_program_header.
4214 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4215
4216 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4217
4218 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4219
4220 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4221
4222 * d-exp.y (%union): Add voidval.
4223 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4224 name in the lexing stage.
4225 (PostfixExpression): Move symbol completion handling in grammar here
4226 from PrimaryExpression.
4227 (PrimaryExpression): Move routines to handle resolving identifier
4228 tokens in the grammar here from push_expression_name.
4229 (IdentifierExp): Remove the handling of alternating '.' and identifier
4230 tokens.
4231 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4232 (BasicType): Remove C-style typename rules.
4233 (d_type_from_name, d_module_from_name, push_variable)
4234 (push_fieldnames, push_type_name, push_module_name)
4235 (push_expression_name): Remove.
4236 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4237 (token_and_value): New type.
4238 (token_fifo, popping, name_obstack): New globals.
4239 (classify_name): New function.
4240 (classify_inner_name): Likewise.
4241 (yylex): Likewise.
4242 (d_parse): Initialize token_fifo, popping and name_obstack.
4243
4244 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4245
4246 * Makefile.in (SFILES): Add d-namespace.c.
4247 (COMMON_OBS): Add d-namespace.o.
4248 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4249 la_lookup_symbol_nonlocal callback function pointer.
4250 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4251 (d_lookup_nested_symbol): New declaration.
4252 * d-namespace.c: New file.
4253
4254 2015-08-13 Pedro Alves <palves@redhat.com>
4255
4256 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4257 cleanup after the decref cleanup, not before.
4258
4259 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4260
4261 * ada-lang.c: Include namespace.h
4262 (aux_add_nonlocal_symbols): Fix a function name in comment.
4263 (ada_add_block_renamings): New.
4264 (add_nonlocal_symbols): Add global renamings handling.
4265 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4266 to...
4267 (ada_add_all_symbols): ... this new function.
4268 (ada_add_block_symbols): Try to match the input name against the
4269 "using directives list", perform a recursive symbol lookup on
4270 the matched declarations.
4271 * block.h (struct block): Move the_namespace to top-level as
4272 namespace_info. Remove the language_specific field.
4273 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4274 * buildsym.h (using_directives): Rename into...
4275 (local_using_directives): ... this.
4276 (global_using_directives): New.
4277 (struct context_stack): Rename the using_directives field into
4278 local_using_directives.
4279 * buildsym.c (finish_block_internal): Deal with the proper
4280 using directives repository (local or global).
4281 (prepare_for_building): Reset local_using_directives. Assert
4282 that there is no pending global using directive.
4283 (reset_symtab_globals): Reset global_using_directives and
4284 local_using_directives.
4285 (end_symtab_get_static_block): Don't ignore symtabs that have
4286 only using directives.
4287 (push_context): Update references to local_using_directives.
4288 (buildsym_init): Do not reset using_directives.
4289 * cp-support.c: Include namespace.h.
4290 * cp-support.h (struct using_direct): Move to namespace.h.
4291 (cp_add_using_directives): Move to namespace.h.
4292 * cp-namespace.c: Include namespace.h
4293 (cp_add_using_directive): Move to namespace.c, rename it to
4294 add_using_directive, add a "using_directives" argument and use
4295 it as the pending using directives repository. All callers
4296 updated.
4297 * dwarf2read.c (using_directives): New.
4298 (read_import_statement): Call using_directives.
4299 (read_func_scope): Update references to local_using_directives.
4300 (read_lexical_block_scope): Likewise.
4301 (read_namespace): Update the heading comment, call
4302 using_directives.
4303 * namespace.h: New file.
4304 * namespace.c: New file.
4305 * Makefile.in (SFILES): Add namespace.c.
4306 (COMMON_OBS): Add namespace.o
4307
4308 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4309
4310 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4311 compute RETADDR.
4312
4313 2015-08-12 Keith Seitz <keiths@redhat.com>
4314
4315 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4316 reserved C++ keyword "explicit" to "explicit_loc".
4317 * breakpoint.c (create_overlay_event_breakpoint)
4318 (create_longjmp_master_breakpoint)
4319 (create_std_terminate_master_breakpoint)
4320 (create_exception_master_breakpoint, update_static_tracepoint):
4321 Rename reserved C++ keyword "explicit" to "explicit_loc".
4322 * completer.c (collect_explicit_location_matches)
4323 (explicit_location_completer): Rename reserved C++ keyword
4324 "explicit" to "explicit_loc".
4325 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4326 (canonicalize_linespec, create_sals_line_offset)
4327 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4328 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4329 "explicit" to "explicit_loc".
4330 * location.c (struct event_location) <explicit>: Rename to
4331 "explicit_loc".
4332 (initialize_explicit_location, new_explicit_location)
4333 (explicit_location_to_string_internal, explicit_location_to_linespec):
4334 Rename reserved C++ keyword "explicit" to "explicit_loc".
4335 * location.h (explicit_location_to_string)
4336 (explicit_location_to_linespec, initialize_explicit_location)
4337 (new_explicit_location): Rename reserved C++ keyword "explicit"
4338 to "explicit_loc".
4339 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4340 keyword "explicit" to "explicit_loc".
4341
4342 2015-08-12 Keith Seitz <keiths@redhat.com>
4343
4344 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4345 and only call decode_line_1 when it is non-NULL.
4346
4347 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4348
4349 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4350 location address is not meaningful.
4351 (breakpoint_address_is_meaningful): Update comment.
4352
4353 2015-08-11 Keith Seitz <keiths@redhat.com>
4354
4355 * NEWS: Mention explicit locations.
4356 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4357 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4358 (_initialize_breakpoint): Update documentation for
4359 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4360
4361 2015-08-11 Keith Seitz <keiths@redhat.com>
4362
4363 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4364 explicit locations, options "--source", "--function",
4365 "--label", and "--line".
4366
4367 2015-08-11 Keith Seitz <keiths@redhat.com>
4368
4369 * completer.c: Include location.h.
4370 (enum match_type): New enum.
4371 (location_completer): Rename to ...
4372 (linespec_completer): ... this.
4373 (collect_explicit_location_matches, backup_text_ptr)
4374 (explicit_location_completer): New functions.
4375 (location_completer): "New" function; handle linespec
4376 and explicit location completions.
4377 (complete_line_internal): Remove all location completer-specific
4378 handling.
4379 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4380 (find_toplevel_char): Export.
4381 (linespec_parse_line_offset): Export.
4382 Issue error if STRING is not numerical.
4383 (gdb_get_linespec_parser_quote_characters): New function.
4384 * linespec.h (linespec_parse_line_offset): Declare.
4385 (get_gdb_linespec_parser_quote_characters): Declare.
4386 (is_ada_operator): Declare.
4387 (find_toplevel_char): Declare.
4388 (linespec_lexer_lex_keyword): Declare.
4389 * location.c (explicit_to_event_location): New function.
4390 (explicit_location_lex_one): New function.
4391 (string_to_explicit_location): New function.
4392 (string_to_event_location): Handle explicit locations.
4393 * location.h (explicit_to_event_location): Declare.
4394 (string_to_explicit_location): Declare.
4395
4396 2015-08-11 Keith Seitz <keiths@redhat.com>
4397
4398 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4399 linespec into explicit location.
4400 * breakpoint.c (create_overlay_breakpoint)
4401 (create_longjmp_master_breakpoint)
4402 (create_std_terminate_master_breakpoint)
4403 (create_exception_master_breakpoint): Convert linespec into explicit
4404 location.
4405 (update_static_tracepoint): Convert linespec into explicit location.
4406 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4407 location.h.
4408 (struct linespec) <expression, expr_pc, source_filename>
4409 <function_name, label_name, line_offset>: Replace with ...
4410 <explicit>: ... this.
4411 <is_linespec>: New member.
4412 (PARSER_EXPLICIT): New accessor macro.
4413 (undefined_label_error): New function.
4414 (source_file_not_found_error): New function.
4415 (linespec_parse_basic): The parser result is now an explicit location.
4416 Use PARSER_EXPLICIT to access it.
4417 Use undefined_label_error.
4418 (canonicalize_linespec): Convert canonical linespec into explicit
4419 location.
4420 Move string representation of location to explicit_location_to_linespec
4421 and use it and explicit_location_to_string to save string
4422 representations of the canonical location.
4423 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4424 explicit location. Update all references.
4425 (convert_explicit_location_to_sals): New function.
4426 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4427 result's explicit location.
4428 (linespec_state_constructor): Initialize is_linespec.
4429 Use PARSER_EXPLICIT.
4430 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4431 result.
4432 (event_location_to_sals): For linespec locations, set is_linespec.
4433 Handle explicit locations.
4434 (decode_objc): 'ls' contains an explicit location now. Update all
4435 references.
4436 (symtabs_from_filename): Use source_file_not_found_error.
4437 * location.c (struct event_location.u) <explicit>: New member.
4438 (initialize_explicit_location): New function.
4439 (initialize_event_location): Initialize explicit locations.
4440 (new_explicit_location, get_explicit_location)
4441 (get_explicit_location_const): New functions.
4442 (explicit_to_string_internal): New function; most of contents moved
4443 from canonicalize_linespec.
4444 (explicit_location_to_string): New function.
4445 (explicit_location_to_linespec): New function.
4446 (copy_event_location, delete_event_location)
4447 (event_location_to_string_const, event_location_empty_p): Handle
4448 explicit locations.
4449 * location.h (enum offset_relative_sign, struct line_offset): Move
4450 here from linespec.h.
4451 (enum event_location_type): Add EXPLICIT_LOCATION.
4452 (struct explicit_location): New structure.
4453 (explicit_location_to_string): Declare.
4454 (explicit_location_to_linespec): Declare.
4455 (new_explicit_location, get_explicit_locationp
4456 (get_explicit_location_const, initialize_explicit_location): Declare.
4457
4458 2015-08-11 Keith Seitz <keiths@redhat.com>
4459
4460 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4461 linespec for stap probe to probe location.
4462 * breakpoint.c (create_longjmp_master_breakpoint)
4463 (create_exception_master_breakpoint): Likewise.
4464 (break_command_1): Remove local variable `arg_cp'.
4465 Check location type to set appropriate breakpoint ops methods.
4466 (trace_command): Likewise.
4467 * linespec.c (event_location_to_sals): Assert on probe locations.
4468 * location.c (EL_PROBE): Add macro definition.
4469 (new_probe_location, get_probe_location): New functions.
4470 (copy_event_location, delete_event_location, event_location_to_string)
4471 (string_to_event_location, event_location_empty_p): Handle probe
4472 locations.
4473 * location.h (enum event_location_type): Add PROBE_LOCATION.
4474 (new_probe_location, get_probe_location): Declare.
4475 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4476 Convert linespec into probe location.
4477
4478 2015-08-11 Keith Seitz <keiths@redhat.com>
4479
4480 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4481 Convert linespec to address location.
4482 * linespec.c (canonicalize_linespec): Do not handle address
4483 locations here.
4484 (convert_address_location_to_sals): New function; contents moved
4485 from ...
4486 (convert_linespc_to_sals): ... here.
4487 (parse_linespec): Remove address locations from linespec grammar.
4488 Remove handling of address locations.
4489 (linespec_lex_to_end): Remove handling of address linespecs.
4490 (event_location_to_sals): Handle ADDRESS_LOCATION.
4491 (linespec_expression_to_pc): Export.
4492 * linespec.h (linespec_expression_to_pc): Add declaration.
4493 * location.c (struct event_location.u) <address>: New member.
4494 (new_address_location, get_address_location): New functions.
4495 (copy_event_location, delete_event_location, event_location_to_string)
4496 (string_to_event_location, event_location_empty_p): Handle address
4497 locations.
4498 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4499 (new_address_location, get_address_location): Declare.
4500 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4501 to address location.
4502 * spu-tdep.c (spu_catch_start): Likewise.
4503
4504 2015-08-11 Keith Seitz <keiths@redhat.com>
4505
4506 * ax-gdb.c: Include location.h.
4507 (agent_command_1) Use linespec location instead of address
4508 string.
4509 * break-catch-throw.c: Include location.h.
4510 (re_set_exception_catchpoint): Use linespec locations instead
4511 of address strings.
4512 * breakpoint.c: Include location.h.
4513 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4514 (create_std_terminate_master_breakpoint)
4515 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4516 Use linespec location instead of address string.
4517 (print_breakpoint_location): Use locations and
4518 event_location_to_string.
4519 Print extra_string for pending locations for non-MI streams.
4520 (print_one_breakpoint_location): Use locations and
4521 event_location_to_string.
4522 (init_raw_breakpoint_without_location): Initialize b->location.
4523 (create_thread_event_breakpoint): Use linespec location instead of
4524 address string.
4525 (init_breakpoint_sal): Likewise.
4526 Only save extra_string if it is non-NULL and not the empty string.
4527 Use event_location_to_string instead of `addr_string'.
4528 Constify `p' and `endp'.
4529 Use skip_spaces_const/skip_space_const instead of non-const versions.
4530 Copy the location into the breakpoint.
4531 If LOCATION is NULL, save the breakpoint address as a linespec location
4532 instead of an address string.
4533 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4534 event_location. All uses updated.
4535 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4536 (parse_breakpoint_sals): Use locations instead of address strings.
4537 Remove check for empty linespec with conditional.
4538 Refactor.
4539 (decode_static_tracepoint_spec): Make argument const and update
4540 function.
4541 (create_breakpoint): Change `arg' to a struct event_location and
4542 rename.
4543 Remove `copy_arg' and `addr_start'.
4544 If EXTRA_STRING is empty, set it to NULL.
4545 Don't populate `canonical' for pending breakpoints.
4546 Pass `extra_string' to find_condition_and_thread.
4547 Clear `extra_string' if `rest' was NULL.
4548 Do not error with "garbage after location" if setting a dprintf
4549 breakpoint.
4550 Copy the location into the breakpoint instead of an address string.
4551 (break_command_1): Use string_to_event_location and pass this to
4552 create_breakpoint instead of an address string.
4553 Check against `arg_cp' for a probe linespec.
4554 (dprintf_command): Use string_to_event_location and pass this to
4555 create_breakpoint instead of an address string.
4556 Throw an exception if no format string was specified.
4557 (print_recreate_ranged_breakpoint): Use event_location_to_string
4558 instead of address strings.
4559 (break_range_command, until_break_command)
4560 (init_ada_exception_breakpoint): Use locations instead
4561 of address strings.
4562 (say_where): Print out extra_string for pending locations.
4563 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4564 the breakpoint.
4565 (base_breakpoint_create_sals_from_location): Use struct event_location
4566 instead of address string.
4567 Remove `addr_start' and `copy_arg' parameters.
4568 (base_breakpoint_decode_location): Use struct event_location instead of
4569 address string.
4570 (bkpt_re_set): Use locations instead of address strings.
4571 Use event_location_empty_p to check for unset location.
4572 (bkpt_print_recreate): Use event_location_to_string instead of
4573 an address string.
4574 Print out extra_string for pending locations.
4575 (bkpt_create_sals_from_location, bkpt_decode_location)
4576 (bkpt_probe_create_sals_from_location): Use struct event_location
4577 instead of address string.
4578 (bkpt_probe_decode_location): Use struct event_location instead of
4579 address string.
4580 (tracepoint_print_recreate): Use event_location_to_string to
4581 recreate the tracepoint.
4582 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4583 (tracepoint_probe_create_sals_from_location)
4584 (tracepoint_probe_decode_location): Use struct event_location
4585 instead of address string.
4586 (dprintf_print_recreate): Use event_location_to_string to recreate
4587 the dprintf.
4588 (dprintf_re_set): Remove check for valid/missing format string.
4589 (strace_marker_create_sals_from_location)
4590 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4591 (update_static_tracepoint): Use struct event_location instead of
4592 address string.
4593 (location_to_sals): Likewise.
4594 Pass `extra_string' to find_condition_and_thread.
4595 For newly resolved pending breakpoint locations, clear the location's
4596 string representation.
4597 Assert that the breakpoint's condition string is NULL when
4598 condition_not_parsed.
4599 (breakpoint_re_set_default, create_sals_from_location_default)
4600 (decode_location_default, trace_command, ftrace_command)
4601 (strace_command, create_tracepoint_from_upload): Use locations
4602 instead of address strings.
4603 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4604 Use struct event_location instead of address string.
4605 Update all uses.
4606 <decode_location>: Likewise.
4607 (struct breakpoint) <addr_string>: Change to struct event_location
4608 and rename `location'.
4609 <addr_string_range_end>: Change to struct event_location and rename
4610 `location_range_end'.
4611 (create_breakpoint): Use struct event_location instead of address
4612 string.
4613 * cli/cli-cmds.c: Include location.h.
4614 (edit_command, list_command): Use locations instead of address strings.
4615 * elfread.c: Include location.h.
4616 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4617 * guile/scm-breakpoint.c: Include location.h.
4618 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4619 (gdbscm_register_breakpoint): Use locations instead of address
4620 strings.
4621 * linespec.c: Include location.h.
4622 (struct ls_parser) <stream>: Change to const char *.
4623 (PARSER_STREAM): Update.
4624 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4625 keywords must be followed by whitespace.
4626 (canonicalize_linespec): Save a linespec location into `canonical'.
4627 Save a canonical linespec into `canonical'.
4628 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4629 All uses updated.
4630 Update function description.
4631 (linespec_parser_new): Initialize `parser'.
4632 Update initialization of parsing stream.
4633 (event_location_to_sals): New function.
4634 (decode_line_full): Change `argptr' to a struct event_location and
4635 rename it `location'.
4636 Use locations instead of address strings.
4637 Call event_location_to_sals instead of parse_linespec.
4638 (decode_line_1): Likewise.
4639 (decode_line_with_current_source, decode_line_with_last_displayed)
4640 Use locations instead of address strings.
4641 (decode_objc): Likewise.
4642 Change `argptr' to const char * and rename `arg'.
4643 (destroy_linespec_result): Delete the linespec result's location
4644 instead of freeing the address string.
4645 * linespec.h (struct linespec_result) <addr_string>: Change to
4646 struct event_location and rename to ...
4647 <location>: ... this.
4648 (decode_line_1, decode_line_full): Change `argptr' to struct
4649 event_location. All callers updated.
4650 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4651 (mi_cmd_break_insert_1): Use locations instead of address strings.
4652 Throw an error if there was "garbage" at the end of the specified
4653 linespec.
4654 * probe.c: Include location.h.
4655 (parse_probes): Change `argptr' to struct event_location.
4656 Use event locations instead of address strings.
4657 * probe.h (parse_probes): Change `argptr' to struct event_location.
4658 * python/py-breakpoint.c: Include location.h.
4659 (bppy_get_location): Constify local variable `str'.
4660 Use event_location_to_string.
4661 (bppy_init): Use locations instead of address strings.
4662 * python/py-finishbreakpoint.c: Include location.h.
4663 (bpfinishpy_init): Remove local variable `addr_str'.
4664 Use locations instead of address strings.
4665 * python/python.c: Include location.h.
4666 (gdbpy_decode_line): Use locations instead of address strings.
4667 * remote.c: Include location.h.
4668 (remote_download_tracepoint): Use locations instead of address
4669 strings.
4670 * spu-tdep.c: Include location.h.
4671 (spu_catch_start): Remove local variable `buf'.
4672 Use locations instead of address strings.
4673 * tracepoint.c: Include location.h.
4674 (scope_info): Use locations instead of address strings.
4675 (encode_source_string): Constify parameter `src'.
4676 * tracepoint.h (encode_source_string): Likewise.
4677
4678 2015-08-11 Keith Seitz <keiths@redhat.com>
4679
4680 * Makefile.in (SFILES): Add location.c.
4681 (HFILES_NO_SRCDIR): Add location.h.
4682 (COMMON_OBS): Add location.o.
4683 * linespec.c (linespec_lex_to_end): New function.
4684 * linespec.h (linespec_lex_to_end): Declare.
4685 * location.c: New file.
4686 * location.h: New file.
4687
4688 2015-08-11 Keith Seitz <keiths@redhat.com>
4689
4690 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4691 Renamed to create_sals_from_location.
4692 <decode_linespec>: Renamed to decode_location.
4693 Update all callers.
4694 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4695 (create_sals_from_location_default): ... this.
4696 (addr_string_to_sals): Renamed to ...
4697 (location_to_sals): ... this.
4698 (decode_linespec_default): Renamed to ...
4699 (decode_location_default): ... this.
4700 (base_breakpoint_create_sals_from_address): Renamed to ...
4701 (base_breakpoint_create_sals_from_location): ... this.
4702 (bkpt_create_sals_from_address): Renamed to ...
4703 (bkpt_create_sals_from_location): ... this.
4704 (bkpt_decode_linespec): Renamed to ...
4705 (bkpt_decode_location): ... this.
4706 (bkpt_probe_create_sals_from_address): Renamed to ...
4707 (bkpt_probe_create_sals_from_location): ... this.
4708 (tracepoint_create_sals_from_address): Renamed to ...
4709 (tracepoint_create_sals_from_location): ... this.
4710 (tracepoint_decode_linespec): Renamed to ...
4711 (tracepoint_decode_location): ... this.
4712 (tracepoint_probe_create_sals_from_address): Renamed to ...
4713 (tracepoint_probe_create_sals_from_location): ... this.
4714 (tracepoint_probe_decode_linespec): Renamed to ...
4715 (tracepoint_probe_decode_location): ... this.
4716 (strace_marker_create_sals_from_address): Renamed to ...
4717 (strace_marker_create_sals_from_location): ... this.
4718 (decode_linespec_default): Renamed to ...
4719 (decode_location_default): ... this.
4720
4721 2015-08-10 Doug Evans <dje@google.com>
4722 Keith Seitz <keiths@redhat.com>
4723
4724 PR gdb/17960
4725 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4726 make_file_symbol_completion_list and made static.
4727 (make_file_symbol_completion_list): New function.
4728
4729 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4730
4731 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4732 trailing new-line at end of warning message.
4733 (proceed): Add i18n marker to error messages.
4734
4735 2015-08-07 Pedro Alves <palves@redhat.com>
4736
4737 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4738
4739 2015-08-07 Pedro Alves <palves@redhat.com>
4740
4741 * s390-linux-tdep.c (is_non_branch_ril)
4742 (s390_displaced_step_copy_insn): New functions.
4743 (s390_displaced_step_fixup): Update comment.
4744 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4745 gdbarch_displaced_step_copy_insn hook.
4746
4747 2015-08-07 Pedro Alves <palves@redhat.com>
4748
4749 * infrun.c (displaced_step_prepare_throw): Return -1 if
4750 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4751 comment.
4752 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4753 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4754 in file.
4755 (ppc_displaced_step_copy_insn): New function.
4756 (ppc_displaced_step_fixup): Update comment.
4757 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4758 gdbarch_displaced_step_copy_insn hook.
4759 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4760 NULL return.
4761 * gdbarch.h: Regenerate.
4762
4763 2015-08-07 Pedro Alves <palves@redhat.com>
4764
4765 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4766 field.
4767 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4768 Return false if dispaced stepping failed before.
4769 (resume): Pass the current inferior to
4770 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4771 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4772 displaced_stepping_failed flag, and fall back to an in-line
4773 step-over.
4774
4775 2015-08-07 Pedro Alves <palves@redhat.com>
4776
4777 * darwin-nat.c (darwin_stop): Rename to ...
4778 (darwin_interrupt): ... this.
4779 (_initialize_darwin_inferior): Adjust.
4780 * gnu-nat.c (gnu_stop): Delete.
4781 (gnu_target): Don't install gnu_stop.
4782 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4783 (inf_ptrace_interrupt): ... this.
4784 (inf_ptrace_target): Adjust.
4785 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4786 target_stop.
4787 * linux-nat (linux_nat_stop): Rename to ...
4788 (linux_nat_interrupt): ... this.
4789 (linux_nat_stop): Reimplement.
4790 (linux_nat_add_target): Install linux_nat_interrupt.
4791 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4792 (nto_handle_sigint_twice): ... this.
4793 (nto_interrupt): Rename to ...
4794 (nto_handle_sigint): ... this. Call target_interrupt instead of
4795 target_stop.
4796 (procfs_wait): Adjust.
4797 (procfs_stop): Rename to ...
4798 (procfs_interrupt): ... this.
4799 (init_procfs_targets): Adjust.
4800 * procfs.c (procfs_stop): Rename to ...
4801 (procfs_interrupt): ... this.
4802 (procfs_target): Adjust.
4803 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4804 (m32r_interrupt): ... this.
4805 (init_m32r_ops): Adjust.
4806 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4807 (gdbsim_interrupt_inferior): ... this.
4808 (gdbsim_stop): Rename to ...
4809 (gdbsim_interrupt): ... this.
4810 (gdbsim_cntrl_c): Adjust.
4811 (init_gdbsim_ops): Adjust.
4812 * remote.c (sync_remote_interrupt): Adjust comments.
4813 (remote_stop_as): Rename to ...
4814 (remote_interrupt_as): ... this.
4815 (remote_stop): Adjust comment.
4816 (remote_interrupt): New function.
4817 (init_remote_ops): Install remote_interrupt.
4818 * target.c (target_interrupt): New function.
4819 * target.h (struct target_ops) <to_interrupt>: New field.
4820 (target_interrupt): New declaration.
4821 * windows-nat.c (windows_stop): Rename to ...
4822 (windows_interrupt): ... this.
4823 * target-delegates.c: Regenerate.
4824
4825 2015-08-07 Pedro Alves <palves@redhat.com>
4826
4827 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4828 threads" as alternative to "switching back to stepped thread".
4829
4830 2015-08-07 Pedro Alves <palves@redhat.com>
4831
4832 * NEWS: Mention "maint set/show target-non-stop".
4833 * breakpoint.c (update_global_location_list): Check
4834 target_is_non_stop_p instead of non_stop.
4835 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4836 * infrun.c (show_can_use_displaced_stepping)
4837 (can_use_displaced_stepping_p, start_step_over_inferior):
4838 Likewise.
4839 (internal_resume_ptid): New function.
4840 (resume): Use it.
4841 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4842 all-stop mode but the target is always in non-stop mode, start all
4843 the other threads that are implicitly resumed too.
4844 (for_each_just_stopped_thread, fetch_inferior_event)
4845 (adjust_pc_after_break, stop_all_threads): Check
4846 target_is_non_stop_p instead of non_stop.
4847 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4848 with the target always in non-stop mode.
4849 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4850 instead of non_stop.
4851 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4852 instead of non_stop.
4853 (keep_going_stepped_thread): Use internal_resume_ptid.
4854 (stop_waiting): If in all-stop mode, and the target is in non-stop
4855 mode, stop all threads.
4856 (keep_going_pass): Likewise, when starting a new in-line step-over
4857 sequence.
4858 * linux-nat.c (get_pending_status, select_event_lwp)
4859 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4860 target_is_non_stop_p instead of non_stop.
4861 (linux_nat_always_non_stop_p): New function.
4862 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4863 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4864 * target-delegates.c: Regenerate.
4865 * target.c (target_is_non_stop_p): New function.
4866 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4867 (maint_set_target_non_stop_command)
4868 (maint_show_target_non_stop_command): New functions.
4869 (_initilize_target): Install "maint set/show target-non-stop"
4870 commands.
4871 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4872 (target_non_stop_enabled): New declaration.
4873 (target_is_non_stop_p): New declaration.
4874
4875 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4876
4877 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4878 has a pending status, return true.
4879 * gdbthread.h: Include target/waitstatus.h.
4880 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4881 stop_pc>: New fields.
4882 (struct thread_info) <resumed>: New field.
4883 (set_resumed): Declare.
4884 * infrun.c: Include "event-loop.h".
4885 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4886 (infrun_async): New function.
4887 (clear_step_over_info): Add debug output.
4888 (displaced_step_in_progress_any_inferior): New function.
4889 (displaced_step_fixup): New returns int.
4890 (start_step_over): Handle in-line step-overs too. Assert the
4891 thread is marked resumed.
4892 (resume_cleanups): Clear the thread's resumed flag.
4893 (resume): Set the thread's resumed flag. Return early if the
4894 thread has a pending status. Allow stepping a breakpoint with no
4895 signal.
4896 (proceed): Adjust to check 'resumed' instead of 'executing'.
4897 (clear_proceed_status_thread): If the thread has a pending status,
4898 and that status is a finished step, discard the pending status.
4899 (clear_proceed_status): Don't clear step_over_info here.
4900 (random_pending_event_thread, do_target_wait): New functions.
4901 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4902 do_target_wait.
4903 (wait_one): New function.
4904 (THREAD_STOPPED_BY): New macro.
4905 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4906 (thread_stopped_by_hw_breakpoint): New functions.
4907 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4908 functions.
4909 (handle_inferior_event): Also call set_resumed(false) on all
4910 threads implicitly stopped by the event.
4911 (restart_threads, resumed_thread_with_pending_status): New
4912 functions.
4913 (finish_step_over): If we were doing an in-line step-over before,
4914 and no longer are after trying to start a new step-over, restart
4915 all threads. If we have multiple threads with pending events,
4916 save the current event and go through the event loop again.
4917 (handle_signal_stop): Return early if finish_step_over returns
4918 false.
4919 <random signal>: If we get a signal while stepping over a
4920 breakpoint in-line in non-stop mode, restart all threads. Clear
4921 step_over_info before delivering the signal.
4922 (keep_going_stepped_thread): Use internal_error instead of
4923 gdb_assert. Mark the thread as resumed.
4924 (keep_going_pass_signal): Assert the thread isn't already resumed.
4925 If some other thread is doing an in-line step-over, defer the
4926 resume. If we just started a new in-line step-over, stop all
4927 threads. Don't clear step_over_info.
4928 (infrun_async_inferior_event_handler): New function.
4929 (_initialize_infrun): Create async event handler with
4930 infrun_async_inferior_event_handler as callback.
4931 (infrun_async): New declaration.
4932 * target.c (target_async): New function.
4933 * target.h (target_async): Declare macro and readd as function
4934 declaration.
4935 * target/waitstatus.h (enum target_stop_reason)
4936 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4937 * thread.c (new_thread): Clear the new waitstatus field.
4938 (set_resumed): New function.
4939
4940 2015-08-07 Pedro Alves <palves@redhat.com>
4941
4942 * infrun.c (keep_going_stepped_thread): New function, factored out
4943 from ...
4944 (switch_back_to_stepped_thread): ... here.
4945
4946 2015-08-07 Pedro Alves <palves@redhat.com>
4947
4948 * infrun.c (currently_stepping): Extend intro comment.
4949 * target.h (target_resume): Extend intro comment.
4950
4951 2015-08-07 Pedro Alves <palves@redhat.com>
4952
4953 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4954 of inferior_ptid. If the stepped thread vanished, return 0
4955 instead of resuming here. Use reset_ecs. Print the prev_pc and
4956 the current stop_pc in log message. Clear trap_expected if the
4957 thread advanced. Don't pass currently_stepping to
4958 do_target_resume.
4959
4960 2015-08-07 Pedro Alves <palves@redhat.com>
4961
4962 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4963 * infrun.c (struct execution_control_state): Move higher up in the
4964 file.
4965 (reset_ecs): New function.
4966 (start_step_over): Now returns int. Rewrite to use
4967 keep_going_pass_signal instead of manually starting a displaced step.
4968 (resume): Don't call set_running here. If displaced stepping
4969 can't start now, clear trap_expected.
4970 (find_thread_needs_step_over): Delete function.
4971 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4972 If the current thread needs a step over, push it in the step-over
4973 chain. Don't set insert breakpoints nor call resume directly
4974 here. Instead rewrite to use start_step_over and
4975 keep_going_pass_signal.
4976 (finish_step_over): New function.
4977 (handle_signal_stop): Call finish_step_over instead of
4978 start_step_over.
4979 (switch_back_to_stepped_thread): If the event thread needs another
4980 step-over do that first. Use start_step_over.
4981 (keep_going_pass_signal): New function, factored out from ...
4982 (keep_going): ... here.
4983 (_initialize_infrun): Comment moved here.
4984 * thread.c (set_running_thread): New function.
4985 (set_running, finish_thread_state): Use set_running_thread.
4986
4987 2015-08-07 Pedro Alves <palves@redhat.com>
4988
4989 * gdbthread.h (struct thread_info) <step_over_prev,
4990 step_over_next>: New fields.
4991 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4992 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4993 declarations.
4994 * infrun.c (struct displaced_step_request): Delete.
4995 (struct displaced_step_inferior_state) <step_request_queue>:
4996 Delete field.
4997 (displaced_step_prepare): Assert that trap_expected is set. Use
4998 thread_step_over_chain_enqueue. Split starting a new displaced
4999 step to ...
5000 (start_step_over): ... this new function.
5001 (resume): Assert the thread isn't waiting for a step over already.
5002 (proceed): Assert the thread isn't waiting for a step over
5003 already.
5004 (infrun_thread_stop_requested): Adjust to remove threads from the
5005 embedded step-over chain.
5006 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5007 displaced_step_fixup.
5008 (handle_signal_stop): Call start_step_over after
5009 displaced_step_fixup.
5010 * infrun.h (step_over_queue_head): New declaration.
5011 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5012 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5013 (thread_step_over_chain_enqueue)
5014 (thread_step_over_chain_remove): New functions.
5015 (delete_thread_1): Remove thread from the step-over chain.
5016
5017 2015-08-07 Pedro Alves <palves@redhat.com>
5018
5019 * infrun.c (thread_still_needs_step_over): Rename to ...
5020 (thread_still_needs_step_over_bp): ... this.
5021 (enum step_over_what): New.
5022 (thread_still_needs_step_over): Reimplement.
5023
5024 2015-08-07 Pedro Alves <palves@redhat.com>
5025
5026 * remote.c (remote_wait_as): If not waiting for a stop reply,
5027 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5028 requested, don't block waiting forever.
5029
5030 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5031
5032 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5033 waitstatus pointers instead of an ecs. Adjust.
5034 (handle_inferior_event): Adjust caller.
5035
5036 2015-08-07 Pedro Alves <palves@redhat.com>
5037
5038 * infrun.c (handle_inferior_event): If we get
5039 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5040 mode, mark all threads of the exiting process as not-executing.
5041 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5042 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5043 exiting process, if inferior_ptid still points at a process.
5044 * thread.c (struct current_thread_cleanup) <next>: New field.
5045 (current_thread_cleanup_chain): New global.
5046 (restore_current_thread_ptid_changed): New function.
5047 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5048 current_thread_cleanup_chain list.
5049 (make_cleanup_restore_current_thread): Add the cleanup data to the
5050 current_thread_cleanup_chain list.
5051 (_initialize_thread): Install restore_current_thread_ptid_changed
5052 as thread_ptid_changed observer.
5053
5054 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5055
5056 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5057 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5058 smaller than expected.
5059
5060 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * stack.c (get_frame_language): Moved ...
5063 * frame.c (get_frame_language): ... to here.
5064 * language.h (get_frame_language): Declaration moved to frame.h.
5065 * frame.h: Add language.h include, for language enum.
5066 (get_frame_language): Declaration moved from language.h.
5067 * language.c: Add frame.h include.
5068 * top.c: Add frame.h include.
5069 * symtab.h (struct obj_section): Declare.
5070 (struct cmd_list_element): Declare.
5071
5072 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * language.c (show_language_command): Find selected frame before
5075 asking for the language of that frame.
5076 (set_language_command): Likewise.
5077 * language.h (get_frame_language): Add frame parameter.
5078 * stack.c (get_frame_language): Add frame parameter, assert
5079 parameter is not NULL, update comment and reindent.
5080 * top.c (check_frame_language_change): Pass the selected frame
5081 into get_frame_language.
5082
5083 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5084
5085 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5086 (pt_btrace_insn_flags): New.
5087 (ftrace_add_pt): Call pt_btrace_insn_flags.
5088 * btrace.h (btrace_insn_flag): New.
5089 (btrace_insn) <flags>: New.
5090 * record-btrace.c (btrace_insn_history): Print insn prefix.
5091 * NEWS: Announce it.
5092
5093 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5094
5095 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5096 * configure: Regenerate.
5097
5098 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5099
5100 * Makefile.in (LIBICONV): Define.
5101 (CLIBS): Add LIBICONV.
5102 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5103 * configure: Regenerate.
5104
5105 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5106 Pedro Alves <palves@redhat.com>
5107
5108 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5109 (arm_set_abi): Likewise.
5110 * ax-general.c (ax_print): Likewise.
5111 * c-exp.y (exp : string_exp): Likewise.
5112 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5113 (do_compile_dwarf_expr_to_c): Likewise.
5114 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5115 Likewise.
5116 * dwarf2expr.c (execute_stack_op): Likewise.
5117 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5118 (disassemble_dwarf_expression): Likewise.
5119 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5120 (read_array_order): Likewise.
5121 (abbrev_table_read_table): Likewise.
5122 (read_attribute_value): Likewise.
5123 (skip_unknown_opcode): Likewise.
5124 (dwarf_decode_macro_bytes): Likewise.
5125 (dwarf_decode_macros): Likewise.
5126 * eval.c (value_f90_subarray): Likewise.
5127 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5128 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5129 * infrun.c (handle_command): Likewise.
5130 * memory-map.c (memory_map_start_memory): Likewise.
5131 * osabi.c (set_osabi): Likewise.
5132 * parse.c (operator_length_standard): Likewise.
5133 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5134 single return point.
5135 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5136 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5137 (gdbpy_lookup_global_symbol): Likewise.
5138 * record-full.c (record_full_restore): Likewise.
5139 * regcache.c (regcache_register_status): Likewise.
5140 (regcache_raw_read): Likewise.
5141 (regcache_cooked_read): Likewise.
5142 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5143 * symtab.c (initialize_ordinary_address_classes): Likewise.
5144 * target-debug.h (target_debug_print_signals): Likewise.
5145 * utils.c (do_restore_current_language): Likewise.
5146
5147 2015-08-06 Clem Dickey <clemd@acm.org>
5148
5149 PR python/17136
5150 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5151
5152 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5153
5154 * complaints.c (enum complaint_series): Add newlines and remove
5155 out of date comment.
5156 (struct complaints) <series>: Change type to enum
5157 complaint_series and remove out of date comment.
5158 (symfile_complaint_hook): Use equivalent enum value
5159 ISOLATED_MESSAGE instead of 0.
5160
5161 2015-08-06 Pedro Alves <palves@redhat.com>
5162
5163 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5164 returned > 0.
5165
5166 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5167
5168 * common/agent.c (symbol_list) <required>: Remove.
5169
5170 2015-08-06 Pedro Alves <palves@redhat.com>
5171
5172 * target/waitstatus.h (enum target_stop_reason)
5173 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5174
5175 2015-08-05 Pedro Alves <palves@redhat.com>
5176 Joel Brobecker <brobecker@adacore.com>
5177
5178 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5179 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5180 case where BS->STOP is not set.
5181
5182 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5183
5184 * nat/gdb_thread_db.h: Add copyright header.
5185 Protect against multiple inclusion.
5186
5187 2015-08-05 Yao Qi <yao.qi@linaro.org>
5188
5189 * aarch64-linux-nat.c (get_thread_id): Remove.
5190 (debug_reg_change_callback): Call ptid_get_lwp instead of
5191 get_thread_id.
5192 (fetch_gregs_from_thread): Likewise.
5193 (store_gregs_to_thread): Likewise.
5194 (fetch_fpregs_from_thread): Likewise.
5195 (store_fpregs_to_thread): Likewise.
5196 (aarch64_linux_get_debug_reg_capacity): Likewise.
5197 * arm-linux-nat.c (get_thread_id): Remove.
5198 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5199 * xtensa-linux-nat.c (get_thread_id): Remove.
5200 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5201 * arm-linux-nat.c (get_thread_id): Remove.
5202 (GET_THREAD_ID): Remove.
5203 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5204 (store_fpregs, fetch_regs, store_regs): Likewise.
5205 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5206 (fetch_vfp_regs, store_vfp_regs): Likewise.
5207 (arm_linux_read_description): Likewise.
5208 (arm_linux_get_hwbp_cap): Likewise.
5209 * xtensa-linux-nat.c (get_thread_id): Remove.
5210 (GET_THREAD_ID): Remove.
5211 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5212 GET_THREAD_ID.
5213
5214 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5215
5216 * python/py-linetable.c: Fix case of Linetable to LineTable
5217 in docstrings and code comments.
5218 * python/py-symtab.c: Same.
5219
5220 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5221
5222 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5223
5224 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5225
5226 PR gdb/18767
5227 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5228 use.
5229
5230 2015-08-04 Pedro Alves <palves@redhat.com>
5231
5232 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5233 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5234 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5235 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5236 (td_thr_validate_ftype, td_thr_get_info_ftype)
5237 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5238 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5239 New typedefs.
5240 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5241 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5242 local macros and use them instead of verbose_dlsym and dlsym
5243 calls.
5244
5245 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5246
5247 * nios2-tdep.h: Include opcode/nios2.h here.
5248 (NIOS2_CDX_OPCODE_SIZE): New.
5249 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5250 * nios2-tdep.c: Don't include opcode/nios2.h here.
5251 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5252 4-byte read fails.
5253 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5254 (nios2_match_addi, nios2_match_orhi): Likewise.
5255 (nios2_match_stw, nios2_match_ldw): Likewise.
5256 (nios2_match_rdctl): Likewise.
5257 (nios2_match_stwm, nios2_match_ldwm): New.
5258 (nios2_match_branch): Add cases for R2 encodings.
5259 (nios2_match_jmpi, nios2_match_calli): Likewise.
5260 (nios2_match_jmpr, nios2_match_callr): Likewise.
5261 (nios2_match_break, nios2_match_trap): Likewise.
5262 (nios2_in_epilogue_p): Add R2 support.
5263 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5264 prologues.
5265 (nios2_breakpoint_from_pc): Handle R2 instructions.
5266 (nios2_get_next_pc): Likewise. Adjust call to
5267 tdep->syscall_next_pc.
5268 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5269 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5270 instruction field macros instead of literal hex values.
5271 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5272 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5273 Use size field from OP instead of assuming all instructions
5274 are the same size.
5275 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5276
5277 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5278
5279 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5280 variable warning with some compilers.
5281
5282 2015-08-03 Yao Qi <yao.qi@linaro.org>
5283
5284 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5285 in comment. Replace "rw" with "type".
5286 (arm_linux_remove_watchpoint): Change type of "rw" to
5287 "enum target_hw_bp_type".
5288
5289 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5290
5291 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5292 lookup_symbol.
5293 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5294 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5295 * mt-tdep.c (mt_skip_prologue): Likewise.
5296 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5297
5298 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5299
5300 * ada-exp.y (write_object_renaming): Replace struct
5301 ada_symbol_info with struct block_symbol. Update field
5302 references accordingly.
5303 (block_lookup, select_possible_type_sym): Likewise.
5304 (find_primitive_type): Likewise. Also update call to
5305 ada_lookup_symbol to extract the symbol itself.
5306 (write_var_or_type, write_name_assoc): Likewise.
5307 * ada-lang.h (struct ada_symbol_info): Remove.
5308 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5309 struct block_symbol.
5310 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5311 (ada_lookup_symbol): Return struct block_symbol instead of a
5312 mere symbol.
5313 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5314 with struct block_symbol.
5315 (resolve_subexp, ada_resolve_function, sort_choices,
5316 user_select_syms, is_nonfunction, add_defn_to_vec,
5317 num_defns_collected, defns_collected,
5318 symbols_are_identical_enums, remove_extra_symbols,
5319 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5320 ada_lookup_symbol_list, ada_iterate_over_symbols,
5321 ada_lookup_encoded_symbol, get_var_value): Likewise.
5322 (ada_lookup_symbol): Return a block_symbol instead of a mere
5323 symbol. Replace struct ada_symbol_info with struct
5324 block_symbol.
5325 (ada_lookup_symbol_nonlocal): Likewise.
5326 (standard_lookup): Make block passing explicit through
5327 lookup_symbol_in_language.
5328 * ada-tasks.c (get_tcb_types_info): Update the calls to
5329 lookup_symbol_in_language to extract the mere symbol out of the
5330 returned value.
5331 (ada_tasks_inferior_data_sniffer): Likewise.
5332 * ax-gdb.c (gen_static_field): Likewise for the call to
5333 lookup_symbol.
5334 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5335 lookup functions.
5336 (gen_expr): Likewise.
5337 * c-exp.y: Likewise. Remove uses of block_found.
5338 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5339 (classify_name): Likewise. Rename the "sym" local variable to
5340 "bsym".
5341 * c-valprint.c (print_unpacked_pointer): Likewise.
5342 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5343 "sym" parameter from struct symbol * to struct block_symbol.
5344 Use it to remove uses of block_found. Deal with struct
5345 block_symbol from lookup functions.
5346 (gcc_convert_symbol): Likewise. Update the call to
5347 convert_symbol_sym.
5348 * compile/compile-object-load.c (compile_object_load): Deal with
5349 struct block_symbol from lookup functions.
5350 * cp-namespace.c (cp_lookup_nested_symbol_1,
5351 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5352 cp_search_static_and_baseclasses,
5353 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5354 cp_lookup_symbol_imports_or_template,
5355 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5356 lookup_namespace_scope, cp_lookup_nonlocal,
5357 find_symbol_in_baseclass): Return struct block_symbol instead of
5358 mere symbols and deal with struct block_symbol from lookup
5359 functions.
5360 * cp-support.c (inspect_type, replace_typedefs,
5361 cp_lookup_rtti_type): Deal with struct block_symbol from
5362 lookup functions.
5363 * cp-support.h (cp_lookup_symbol_nonlocal,
5364 cp_lookup_symbol_from_namespace,
5365 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5366 Return struct block_symbol instead of mere symbols.
5367 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5368 push_module_name):
5369 Deal with struct block_symbol from lookup functions. Remove
5370 uses of block_found.
5371 * eval.c (evaluate_subexp_standard): Update call to
5372 cp_lookup_symbol_namespace.
5373 * f-exp.y: Deal with struct block_symbol from lookup functions.
5374 Remove uses of block_found.
5375 (yylex): Likewise.
5376 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5377 lookup_enum, lookup_template_type, check_typedef): Deal with
5378 struct block_symbol from lookup functions.
5379 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5380 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5381 (gdbscm_lookup_global_symbol): Likewise.
5382 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5383 * go-exp.y: Likewise. Remove uses of block_found.
5384 (package_name_p, classify_packaged_name, classify_name):
5385 Likewise.
5386 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5387 * jv-exp.y (push_variable): Likewise.
5388 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5389 * language.c (language_bool_type): Likewise.
5390 * language.h (struct language_defn): Update
5391 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5392 than a mere symbol.
5393 * linespec.c (find_label_symbols): Deal with struct block_symbol
5394 from lookup functions.
5395 * m2-exp.y: Likewise. Remove uses of block_found.
5396 (yylex): Likewise.
5397 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5398 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5399 * p-exp.y: Likewise. Remove uses of block_found.
5400 (yylex): Likewise.
5401 * p-valprint.c (pascal_val_print): Likewise.
5402 * parse.c (write_dollar_variable): Likewise. Remove uses of
5403 block_found.
5404 * parser-defs.h (struct symtoken): Turn the SYM field into a
5405 struct block_symbol.
5406 * printcmd.c (address_info): Deal with struct block_symbol from
5407 lookup functions.
5408 * python/py-frame.c (frapy_read_var): Likewise.
5409 * python/py-symbol.c (gdbpy_lookup_symbol,
5410 gdbpy_lookup_global_symbol): Likewise.
5411 * skip.c (skip_function_command): Likewise.
5412 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5413 block_symbol instead of a mere symbol.
5414 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5415 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5416 * solib.c (solib_global_lookup): Likewise.
5417 * solist.h (solib_global_lookup): Likewise.
5418 (struct target_so_ops): Update lookup_lib_global_symbol to
5419 return a struct block_symbol rather than a mere symbol.
5420 * source.c (select_source_symtab): Deal with struct block_symbol
5421 from lookup functions.
5422 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5423 Likewise.
5424 * symfile.c (set_initial_language): Likewise.
5425 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5426 block_symbol.
5427 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5428 (struct symbol_cache_slot): Turn the FOUND field into a struct
5429 block_symbol.
5430 (block_found): Remove.
5431 (eq_symbol_entry): Update to deal with struct block_symbol in
5432 cache slots.
5433 (symbol_cache_lookup): Return a struct block_symbol rather than
5434 a mere symbol.
5435 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5436 appropriately the cache slots. Update callers.
5437 (symbol_cache_dump): Update cache slots handling to the type
5438 change.
5439 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5440 lookup_symbol_aux, lookup_local_symbol,
5441 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5442 lookup_symbol_in_objfile_symtabs,
5443 lookup_symbol_in_objfile_from_linkage_name,
5444 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5445 lookup_symbol_in_static_block, lookup_static_symbol,
5446 lookup_global_symbol):
5447 Return a struct block_symbol rather than a mere symbol. Deal
5448 with struct block_symbol from other lookup functions. Remove
5449 uses of block_found.
5450 (lookup_symbol_in_block): Remove uses of block_found.
5451 (struct global_sym_lookup_data): Turn the RESULT field into a
5452 struct block_symbol.
5453 (lookup_symbol_global_iterator_cb): Update references to the
5454 RESULT field.
5455 (search_symbols): Deal with struct block_symbol from lookup
5456 functions.
5457 * symtab.h (struct block_symbol): New structure.
5458 (block_found): Remove.
5459 (lookup_symbol_in_language, lookup_symbol,
5460 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5461 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5462 lookup_global_symbol_from_objfile): Return a struct block_symbol
5463 rather than just a mere symbol. Update comments to remove
5464 mentions of block_found.
5465 * valops.c (find_function_in_inferior,
5466 value_struct_elt_for_reference, value_maybe_namespace_elt,
5467 value_of_this): Deal with struct block_symbol from lookup
5468 functions.
5469 * value.c (value_static_field, value_fn_field): Likewise.
5470
5471 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5472
5473 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5474 instead of integer.
5475
5476 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5477 Pedro Alves <palves@redhat.com>
5478
5479 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5480 type or value instead of integer.
5481 (aarch64_linux_insert_watchpoint): Likewise.
5482 (aarch64_linux_remove_watchpoint): Likewise.
5483 * ada-lang.c (ada_op_print_tab): Likewise.
5484 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5485 (amd64_linux_syscall_record_common): Likewise.
5486 * arch-utils.c (target_byte_order_user): Likewise.
5487 (default_byte_order): Likewise.
5488 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5489 (arm_linux_get_hwbp_type): Likewise.
5490 (arm_linux_hw_watchpoint_initialize): Likewise.
5491 (arm_linux_insert_watchpoint): Likewise.
5492 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5493 (arm_linux_syscall_record): Likewise.
5494 * breakpoint.c (update_watchpoint): Likewise.
5495 (breakpoint_here_p): Likewise.
5496 (bpstat_print): Likewise.
5497 (enable_breakpoint_disp): Likewise.
5498 * c-lang.c (c_op_print_tab): Likewise.
5499 * cli/cli-decode.c (add_info_alias): Likewise.
5500 * d-lang.c (d_op_print_tab): Likewise.
5501 * eval.c (evaluate_subexp_standard): Likewise.
5502 * f-exp.y (dot_ops): Likewise.
5503 (f77_keywords): Likewise.
5504 * f-lang.c (f_op_print_tab): Likewise.
5505 * go-lang.c (go_op_print_tab): Likewise.
5506 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5507 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5508 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5509 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5510 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5511 (struct scm_from_stringn_data): Likewise.
5512 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5513 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5514 (ia64_linux_remove_watchpoint): Likewise.
5515 (ia64_linux_can_use_hw_breakpoint): Likewise.
5516 * infrun.c (print_stop_event): Likewise.
5517 * jv-lang.c (java_op_print_tab): Likewise.
5518 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5519 * linux-nat.h (struct lwp_info): Likewise.
5520 * linux-thread-db.c (enable_thread_event): Likewise.
5521 * m2-lang.c (m2_op_print_tab): Likewise.
5522 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5523 (mi_cmd_stack_list_variables): Likewise.
5524 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5525 * mi/mi-out.c (mi_table_begin): Likewise.
5526 (mi_table_header): Likewise.
5527 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5528 (mips_linux_insert_watchpoint): Likewise.
5529 (mips_linux_remove_watchpoint): Likewise.
5530 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5531 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5532 (mips_linux_watch_type_to_irw): Likewise.
5533 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5534 (procfs_insert_hw_watchpoint): Likewise.
5535 (procfs_remove_hw_watchpoint): Likewise.
5536 (procfs_hw_watchpoint): Likewise.
5537 (procfs_can_use_hw_breakpoint): Likewise.
5538 (procfs_remove_hw_watchpoint): Likewise.
5539 (procfs_insert_hw_watchpoint): Likewise.
5540 * p-lang.c (pascal_op_print_tab): Likewise.
5541 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5542 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5543 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5544 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5545 (procfs_insert_watchpoint): Likewise.
5546 (procfs_remove_watchpoint): Likewise.
5547 * psymtab.c (recursively_search_psymtabs): Likewise.
5548 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5549 (m32r_insert_watchpoint): Likewise.
5550 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5551 (mips_insert_watchpoint): Likewise.
5552 (mips_remove_watchpoint): Likewise.
5553 * remote.c (watchpoint_to_Z_packet): Likewise.
5554 (remote_insert_watchpoint): Likewise.
5555 (remote_remove_watchpoint): Likewise.
5556 (remote_check_watch_resources): Likewise.
5557 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5558 (s390_remove_watchpoint): Likewise.
5559 (s390_can_use_hw_breakpoint): Likewise.
5560 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5561 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5562 * target.h (struct target_ops): Likewise.
5563 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5564 * ui-out.c (struct ui_out_hdr): Likewise.
5565 (append_header_to_list): Likewise.
5566 (get_next_header): Likewise.
5567 (verify_field): Likewise.
5568 (ui_out_begin): Likewise.
5569 (ui_out_field_int): Likewise.
5570 (ui_out_field_fmt_int): Likewise.
5571 (ui_out_field_skip): Likewise.
5572 (ui_out_field_string): Likewise.
5573 (ui_out_field_fmt): Likewise.
5574 * varobj.c (new_variable): Likewise.
5575 * x86-nat.c (x86_insert_watchpoint): Likewise.
5576 (x86_remove_watchpoint): Likewise.
5577 (x86_can_use_hw_breakpoint): Likewise.
5578 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5579 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5580 previously anonymous enumeration type..
5581 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5582 value.
5583 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5584 (target_debug_print_enum_bptype): New.
5585 * target-delegates.c: Regenerate.
5586
5587 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5588
5589 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5590 already says and disallow non-stack memory writes in the prologue.
5591
5592 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5593
5594 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5595 reflect how current GCC emits stack overflow checks. Match
5596 both trap and break instructions for backward compatbility.
5597 Disallow other trap and break instructions in the prologue.
5598
5599 2015-07-30 Pedro Alves <palves@redhat.com>
5600
5601 PR threads/18600
5602 * linux-nat.c (wait_lwp): Report to the core when thread group
5603 leader exits.
5604
5605 2015-07-30 Pedro Alves <palves@redhat.com>
5606 Simon Marchi <simon.marchi@ericsson.com>
5607
5608 PR threads/18600
5609 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5610 mark the new thread as resumed. Remove STOPPING parameter.
5611 (wait_lwp): Adjust call to linux_handle_extended_wait.
5612 (linux_nat_filter_event): Adjust call to
5613 linux_handle_extended_wait.
5614 (resume_stopped_resumed_lwps): Add debug output.
5615
5616 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5617
5618 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5619 isize argument.
5620 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5621 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5622 gdbarch_fast_tracepoint_valid_at.
5623 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5624 * gdbarch.h: Regenerate.
5625 * gdbarch.c: Regenerate.
5626 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5627 argument. Do not set it.
5628 * remote.c (remote_download_tracepoint): Adjust call to
5629 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5630 the instruction length.
5631
5632 2015-07-30 Yao Qi <yao.qi@linaro.org>
5633
5634 * arm-tdep.h (enum gdb_regnum): Move it to ...
5635 * arch/arm.h: ... here. New file.
5636 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5637
5638 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5639
5640 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5641 Change its type to int *.
5642 (decode_br): Rename link argument to is_blr. Change its type to
5643 int *.
5644 (decode_cb): Rename op argument to is_cbnz. Change its type to
5645 int *.
5646 (decode_tb): Rename op argument to is_tbnz. Change its type to
5647 int *. Set is_tbnz to either 1 or 0.
5648 (aarch64_analyze_prologue): Change type of is_link to int. Add
5649 new variables is_cbnz and is_tbnz. Adjust call to
5650 aarch64_decode_cb and aarch64_decode_tb.
5651
5652 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5653
5654 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5655 parameter.
5656 (mips_linux_new_thread): Likewise.
5657 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5658
5659 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5660
5661 * top.c: Include "tui/tui.h".
5662 (undo_terminal_modifications_before_exit): New static function.
5663 (quit_force): Use it.
5664
5665 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5666
5667 * target.c (terminal_state): Initialize to terminal_is_ours.
5668
5669 2015-07-29 Yao Qi <yao.qi@linaro.org>
5670
5671 PR record/18691
5672 * dcache.c (dcache_read_memory_partial): Call
5673 raw_memory_xfer_partial.
5674 * target.c (raw_memory_xfer_partial): Make it non-static.
5675 * target.h (raw_memory_xfer_partial): Declare.
5676
5677 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5678
5679 * c-valprint.c (c_val_print_array): Consider addressable memory
5680 unit size.
5681 (c_val_print_ptr): Likewise.
5682 (c_val_print_int): Likewise.
5683 * findvar.c (read_frame_register_value): Likewise.
5684 * valarith.c (find_size_for_pointer_math): Likewise.
5685 (value_ptrdiff): Likewise.
5686 (value_subscripted_rvalue): Likewise.
5687 * valops.c (read_value_memory): Likewise (and rename variables).
5688 (value_assign): Likewise.
5689 (value_repeat): Likewise.
5690 (value_array): Likewise.
5691 (value_slice): Likewise.
5692 * valprint.c (generic_val_print_ptr): Likewise.
5693 (generic_val_print_enum): Likewise.
5694 (generic_val_print_bool): Likewise.
5695 (generic_val_print_int): Likewise.
5696 (generic_val_print_char): Likewise.
5697 (generic_val_print_float): Likewise.
5698 (generic_val_print_decfloat): Likewise.
5699 (generic_val_print_complex): Likewise.
5700 (val_print_scalar_formatted): Likewise.
5701 (val_print_array_elements): Likewise.
5702 * value.c (set_value_parent): Likewise.
5703 (value_contents_copy_raw): Likewise.
5704 (set_internalvar_component): Likewise.
5705 (value_primitive_field): Likewise.
5706 (value_fetch_lazy): Likewise.
5707 * value.h (read_value_memory): Update comment.
5708
5709 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5710
5711 * value.c (get_value_arch): New function.
5712 * value.h (get_value_arch): New declaration.
5713
5714 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5715
5716 * value.c (struct value): Update comments.
5717
5718 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5719
5720 * gdbtypes.c (type_length_units): New function.
5721 * gdbtypes.h (type_length_units): New declaration.
5722 (struct type) <length>: Update comment.
5723
5724 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5725
5726 * valprint.c (generic_val_print): Factor out complex
5727 printing code to ...
5728 (generic_val_print_complex): ... this new function.
5729
5730 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5731
5732 * valprint.c (generic_val_print): Factor out decfloat
5733 printing code to ...
5734 (generic_val_print_decfloat): ... this new function.
5735
5736 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5737
5738 * valprint.c (generic_val_print): Factor out float
5739 printing code to ...
5740 (generic_val_print_float): ... this new function.
5741
5742 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5743
5744 * valprint.c (generic_val_print): Factor out char
5745 printing code to ...
5746 (generic_val_print_char): ... this new function.
5747
5748 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5749
5750 * valprint.c (generic_val_print): Factor out integer
5751 printing code to ...
5752 (generic_val_print_int): ... this new function.
5753
5754 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5755
5756 * valprint.c (generic_val_print): Factor out bool
5757 printing code to ...
5758 (generic_val_print_bool): ... this new function.
5759
5760 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5761
5762 * valprint.c (generic_val_print): Factor out function/method
5763 printing code to ...
5764 (generic_val_print_func): ... this new function.
5765
5766 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5767
5768 * valprint.c (generic_val_print): Factor out flags
5769 printing code to ...
5770 (generic_val_print_flags): ... this new function.
5771
5772 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5773
5774 * valprint.c (generic_val_print): Factor out enum
5775 printing code to ...
5776 (generic_val_print_enum): ... this new function.
5777
5778 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5779
5780 * valprint.c (generic_val_print): Factor out reference
5781 printing code to ...
5782 (generic_val_print_ref): ... this new function.
5783
5784 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * valprint.c (generic_val_print): Factor out memberptr
5787 printing code to ...
5788 (generic_val_print_memberptr): ... this new function.
5789
5790 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * valprint.c (generic_val_print): Factor out pointer
5793 printing code to ...
5794 (generic_val_print_ptr): ... this new function.
5795
5796 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5797
5798 * valprint.c (generic_val_print): Factor out array
5799 printing code to ...
5800 (generic_val_print_array): ... this new function.
5801
5802 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5803
5804 * valprint.c (generic_val_print): Factor out
5805 print_unpacked_pointer code to ...
5806 (print_unpacked_pointer): ... this new function.
5807
5808 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5809
5810 * event-top.c (handle_sigterm): Don't inspect
5811 target_can_async_p. Always set the quit flag and always mark
5812 the async signal handler.
5813
5814 2015-07-27 Yao Qi <yao.qi@linaro.org>
5815
5816 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5817
5818 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5819
5820 * remote.c (read_ptid): Return null_ptid when no thread id
5821 is found.
5822 (remote_current_thread): Add log warning for malformed
5823 qC reply.
5824 (remote_start_remote): Add log warning when current thread
5825 not found.
5826
5827 2015-07-24 Pedro Alves <palves@redhat.com>
5828
5829 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5830 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5831 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5832
5833 2015-07-24 Pedro Alves <palves@redhat.com>
5834
5835 PR gdb/18717
5836 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5837 is resumed, and extend the debug log.
5838
5839 2015-07-24 Pedro Alves <palves@redhat.com>
5840
5841 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5842
5843 2015-07-24 Pedro Alves <palves@redhat.com>
5844
5845 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5846 sys/ptrace.h.
5847 * alpha-linux-nat.c: Likewise.
5848 * amd64-linux-nat.c: Likewise.
5849 * arm-linux-nat.c: Likewise.
5850 * hppa-linux-nat.c: Likewise.
5851 * i386-linux-nat.c: Likewise.
5852 * ia64-linux-nat.c: Likewise.
5853 * linux-fork.c: Likewise.
5854 * linux-nat.c: Likewise.
5855 * m32r-linux-nat.c: Likewise.
5856 * m68klinux-nat.c: Likewise.
5857 * mips-linux-nat.c: Likewise.
5858 * nat/linux-btrace.c: Likewise.
5859 * nat/linux-ptrace.c: Likewise.
5860 * nat/linux-ptrace.h
5861 * nat/mips-linux-watch.c: Likewise.
5862 * nat/x86-linux-dregs.c: Likewise.
5863 * ppc-linux-nat.c: Likewise.
5864 * s390-linux-nat.c: Likewise.
5865 * spu-linux-nat.c: Likewise.
5866 * tilegx-linux-nat.c: Likewise.
5867 * x86-linux-nat.c: Likewise.
5868 * xtensa-linux-nat.c: Likewise.
5869
5870 2015-07-24 Pedro Alves <palves@redhat.com>
5871
5872 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5873 __ptrace_request as first parameter type instead of int.
5874 (PTRACE_TYPE_ARG1): Define.
5875 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5876 that casts first argument to PTRACE_TYPE_ARG1.
5877 * config.in: Regenerate.
5878 * configure: Regenerate.
5879
5880 2015-07-24 Pedro Alves <palves@redhat.com>
5881
5882 * gdb_ptrace.h: Move ...
5883 * nat/gdb_ptrace.h: ... here.
5884 * inf-ptrace.c: Adjust.
5885
5886 2015-07-24 Pedro Alves <palves@redhat.com>
5887
5888 * acinclude.m4: Include ptrace.m4.
5889 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5890 * ptrace.m4: ... to this new file.
5891
5892 2015-07-23 Doug Evans <dje@google.com>
5893
5894 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5895 (load_cu): Handle dummy CUs.
5896 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5897 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5898
5899 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5900
5901 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5902 documentation to say that it returns a list rather than
5903 a FrozenSet.
5904 (linetable_object_methods): Update the docstring of the
5905 "source_line" entry.
5906
5907 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5908
5909 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5910 type to the recursive call instead of the original (maybe
5911 TYPE_CODE_TYPEDEF) type.
5912
5913 2015-07-23 Yao Qi <yao.qi@linaro.org>
5914
5915 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5916 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5917 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5918
5919 2015-07-21 Yao Qi <yao.qi@linaro.org>
5920
5921 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5922 Move it to nat/aarch64-linux-hw-point.c.
5923 (aarch64_linux_child_post_startup_inferior): Update.
5924 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5925 New function.
5926 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5927 Declare it.
5928
5929 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5930
5931 * common/btrace-common.c (btrace_data_append): Change case label.
5932
5933 2015-07-20 Yao Qi <yao.qi@linaro.org>
5934
5935 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5936 Re-indent the code.
5937 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5938 "unsigned long long".
5939
5940 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5941
5942 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5943 to be set for SEC_ALLOC sections too.
5944
5945 2015-07-17 Yao Qi <yao.qi@linaro.org>
5946
5947 * Makefile.in (HFILES_NO_SRCDIR): Add
5948 nat/aarch64-linux-hw-point.h.
5949 (aarch64-linux-hw-point.o): New rule.
5950 * nat/aarch64-linux-hw-point.h: New file.
5951 * nat/aarch64-linux-hw-point.c: New file.
5952 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5953 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5954 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5955 (AARCH64_HWP_ALIGNMENT): Likewise.
5956 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5957 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5958 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5959 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5960 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5961 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5962 (struct aarch64_debug_reg_state): Likewise.
5963 (struct arch_lwp_info): Likewise.
5964 (aarch64_linux_set_debug_regs): Likewise.
5965 (aarch64_notify_debug_reg_change): Remove static.
5966 (aarch64_align_watchpoint): Likewise.
5967 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5968 (aarch64_watchpoint_length): Likewise.
5969 (aarch64_point_encode_ctrl_reg): Likewise
5970 (aarch64_point_is_aligned): Likewise.
5971 (aarch64_dr_state_insert_one_point): Likewise.
5972 (aarch64_dr_state_remove_one_point): Likewise.
5973 (aarch64_handle_breakpoint): Likewise.
5974 (aarch64_handle_aligned_watchpoint): Likewise.
5975 (aarch64_handle_unaligned_watchpoint): Likewise.
5976 (aarch64_handle_watchpoint): Likewise.
5977 * config/aarch64/linux.mh (NAT_FILE): Add
5978 aarch64-linux-hw-point.o.
5979
5980 2015-07-17 Yao Qi <yao.qi@linaro.org>
5981
5982 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5983 state and don't call aarch64_get_debug_reg_state. All callers
5984 update.
5985 (aarch64_linux_insert_hw_breakpoint): Call
5986 aarch64_get_debug_reg_state earlier.
5987 (aarch64_linux_remove_hw_breakpoint): Likewise.
5988 (aarch64_handle_aligned_watchpoint): Add argument state and
5989 don't call aarch64_get_debug_reg_state. All callers update.
5990 (aarch64_handle_unaligned_watchpoint): Likewise.
5991 (aarch64_handle_watchpoint): Add argument state.
5992 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5993 earlier.
5994 (aarch64_linux_remove_watchpoint): Likewise.
5995
5996 2015-07-17 Yao Qi <yao.qi@linaro.org>
5997
5998 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5999 debug_printf.
6000 (aarch64_handle_unaligned_watchpoint): Likewise.
6001
6002 2015-07-17 Yao Qi <yao.qi@linaro.org>
6003
6004 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6005 argument type's type to 'enum target_hw_bp_type'.
6006 (aarch64_dr_state_remove_one_point): Likewise.
6007 (aarch64_handle_breakpoint): Likewise.
6008 (aarch64_linux_insert_hw_breakpoint): Likewise.
6009 (aarch64_linux_remove_hw_breakpoint): Likewise.
6010 (aarch64_handle_aligned_watchpoint): Likewise.
6011
6012 2015-07-17 Yao Qi <yao.qi@linaro.org>
6013
6014 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6015 ptid_get_pid instead of get_thread_id.
6016
6017 2015-07-17 Yao Qi <yao.qi@linaro.org>
6018
6019 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6020 (add_current_inferior_and_thread): Don't initialise ptid.
6021
6022 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6023
6024 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6025 unavailable if invalid.
6026
6027 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6028
6029 Revert the previous 6 commits:
6030 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6031 Move gdb_regex* to common/
6032 Prepare linux_find_memory_regions_full & co. for move
6033 Move linux_find_memory_regions_full & co.
6034 gdbserver build-id attribute generator
6035 Validate symbol file using build-id
6036
6037 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6038 Jan Kratochvil <jan.kratochvil@redhat.com>
6039
6040 Validate symbol file using build-id.
6041 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6042 and 'show validate-build-id'. Add build-id attribute.
6043 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6044 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6045 * solib-frv.c (_initialize_frv_solib): Ditto.
6046 * solib-spu.c (set_spu_solib_ops): Ditto.
6047 * solib-svr4.c: Include rsp-low.h.
6048 (NOTE_GNU_BUILD_ID_NAME): New define.
6049 (svr4_validate): New function.
6050 (svr4_copy_library_list): Duplicate field build_id.
6051 (library_list_start_library): Parse 'build-id' attribute.
6052 (svr4_library_attributes): Add 'build-id' attribute.
6053 (_initialize_svr4_solib): Assign validate value.
6054 * solib-target.c (solib.h): Include.
6055 (_initialize_solib_target): Assign validate value.
6056 * solib.c (validate_build_id, show_validate_build_id): New.
6057 (solib_map_sections): Use ops->validate.
6058 (clear_so): Free build_id.
6059 (default_solib_validate): New function.
6060 (_initialize_solib): Add "validate-build-id".
6061 * solib.h (default_solib_validate): New declaration.
6062 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6063 (target_so_ops): New field 'validate'.
6064
6065 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6066 Jan Kratochvil <jan.kratochvil@redhat.com>
6067
6068 gdbserver build-id attribute generator.
6069 * features/library-list-svr4.dtd (library-list-svr4): New
6070 'build-id' attribute.
6071
6072 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6073 Jan Kratochvil <jan.kratochvil@redhat.com>
6074
6075 Move linux_find_memory_regions_full & co.
6076 * linux-tdep.c (nat/linux-maps.h): Include.
6077 (gdb_regex.h): Remove the include.
6078 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6079 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6080 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6081 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6082 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6083 and target/target.h.
6084 (struct smaps_vmflags, read_mapping, decode_vmflags)
6085 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6086 (linux_find_memory_regions_full): Move from linux-tdep.c.
6087 * nat/linux-maps.h (read_mapping): New declaration.
6088 (linux_find_memory_region_ftype, enum filterflags): Moved from
6089 linux-tdep.c.
6090 (linux_find_memory_regions_full): New declaration.
6091 * target.c (target/target-utils.h): Include.
6092 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6093 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6094 definitions to target/target-utils.c.
6095 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6096 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6097 from target.c.
6098 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6099 (read_alloc): New declaration.
6100 (read_stralloc_func_ftype): New typedef.
6101 (read_stralloc): New declaration.
6102 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6103
6104 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6105 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 Prepare linux_find_memory_regions_full & co. for move.
6108 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6109 (linux_find_memory_regions_full): Change signature and prepare
6110 for moving to linux-maps.
6111 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6112 (linux_find_memory_regions_thunk): New.
6113 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6114 (linux_find_memory_regions_gdb): New.
6115 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6116 (linux_make_mappings_corefile_notes): Use
6117 linux_find_memory_regions_gdb.
6118 * target.c (read_alloc_pread_ftype): New typedef.
6119 (target_fileio_read_alloc_1_pread): New function.
6120 (read_alloc): Refactor from target_fileio_read_alloc_1.
6121 (read_stralloc_func_ftype): New typedef.
6122 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6123 (read_stralloc): Refactored from target_fileio_read_stralloc.
6124 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6125
6126 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6127
6128 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6129 common/gdb_regex.h.
6130 (COMMON_OBS): Add gdb_regex.o.
6131 (gdb_regex.o): New.
6132 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6133 --without-included-regex and USE_INCLUDED_REGEX.
6134 * common/gdb_regex.c: New file from utils.c functions.
6135 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6136 file wrapping define name.
6137 * configure: Rebuilt.
6138 * configure.ac (gdb_use_included_regex, --without-included-regex)
6139 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6140 * gdb_regex.h: Move it to common/gdb_regex.h.
6141 * utils.c: Remove include gdb_regex.h.
6142 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6143 (compile_rx_or_error): Move them to common/gdb_regex.c.
6144
6145 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6146 Jan Kratochvil <jan.kratochvil@redhat.com>
6147
6148 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6149 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6150 common/target-utils.h.
6151 (COMMON_OBS): Add target-utils.o.
6152 (linux-maps.o, target-utils.o): New.
6153 * target/target-utils.c: New file.
6154 * target/target-utils.h: New file.
6155 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6156 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6157 * nat/linux-maps.c: New file.
6158 * nat/linux-maps.h: New file.
6159
6160 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6161 Pedro Alves <palves@redhat.com>
6162
6163 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6164 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6165 (perf_event_read_bts): Change the type of SIZE and READ.
6166 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6167 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6168 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6169 mmap page.
6170 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6171 buffer size to UINT_MAX.
6172 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6173 DATA_TAIL.
6174 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6175 <last_head>: Change type.
6176 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6177 * common/btrace-common.c (btrace_data_append): Change the type of
6178 SIZE.
6179 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6180 check.
6181
6182 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6183
6184 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6185 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6186 with check_typedef.
6187 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6188 (ada_array_length): Likewise.
6189 (find_parallel_type_by_descriptive_type): Likewise.
6190 (ada_check_typedef): Likewise.
6191 * arm-tdep.c (arm_return_in_memory): Likewise.
6192 * ax-gdb.c (gen_trace_static_fields): Likewise.
6193 (gen_struct_ref_recursive): Likewise.
6194 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6195 (variable: block COLONCOLON name): Likewise.
6196 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6197 * c-lang.c (classify_type): Likewise.
6198 * c-typeprint.c (c_print_type): Likewise.
6199 (c_print_typedef): Likewise.
6200 (c_type_print_base): Likewise.
6201 * c-valprint.c (c_val_print): Likewise.
6202 * compile/compile-c-types.c (convert_type): Likewise.
6203 * compile/compile-object-load.c (get_out_value_type): Likewise.
6204 * completer.c (add_struct_fields): Likewise.
6205 (expression_completer): Likewise.
6206 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6207 (cp_lookup_nested_symbol_1): Likewise.
6208 (cp_lookup_nested_symbol): Likewise.
6209 * cp-valprint.c (cp_print_value_fields): Likewise.
6210 (cp_print_static_field): Likewise.
6211 * d-valprint.c (d_val_print): Likewise.
6212 * eval.c (evaluate_subexp_standard): Likewise.
6213 (evaluate_subexp_for_sizeof): Likewise.
6214 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6215 * f-typeprint.c (f_type_print_base): Likewise.
6216 * f-valprint.c (f_val_print): Likewise.
6217 * gdbtypes.c (get_discrete_bounds): Likewise.
6218 (create_array_type_with_stride): Likewise.
6219 (type_name_no_tag_or_error): Likewise.
6220 (lookup_struct_elt_type): Likewise.
6221 (get_unsigned_type_max): Likewise.
6222 (internal_type_vptr_fieldno): Likewise.
6223 (set_type_vptr_fieldno): Likewise.
6224 (internal_type_vptr_basetype): Likewise.
6225 (set_type_vptr_basetype): Likewise.
6226 (get_vptr_fieldno): Likewise.
6227 (is_integral_type): Likewise.
6228 (is_scalar_type): Likewise.
6229 (is_scalar_type_recursive): Likewise.
6230 (distance_to_ancestor): Likewise.
6231 (is_unique_ancestor_worker): Likewise.
6232 (check_types_equal): Likewise.
6233 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6234
6235 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6236
6237 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6238 also test for language_d.
6239 (dwarf2_compute_name): Likewise.
6240 (read_func_scope): Likewise.
6241 (read_structure_type): Likewise.
6242 (new_symbol_full): Likewise.
6243 (determine_prefix): Likewise.
6244 (read_import_statement): Use dot as the separator for language_d.
6245 (typename_concat): Likewise, but don't prefix the D main function.
6246
6247 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6248
6249 * nat/linux-namespaces.c (setns): Rename from this ...
6250 (do_setns): ... to this. Support calling setns if it exists.
6251 (mnsh_handle_setns): Call do_setns.
6252
6253 2015-07-13 Yao Qi <yao.qi@linaro.org>
6254
6255 * exec.c (exec_file_attach): Add period at the end of error
6256 message.
6257
6258 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6259
6260 * tui/tui-win.c (window_name_completer): New function.
6261 (focus_completer): Call window_name_completer. All old content
6262 moved into window_name_completer.
6263 (winheight_completer): New function.
6264 (_initialize_tui_win): Rename variable. Add completer to
6265 winheight command. Update doc string on winheight.
6266
6267 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6268
6269 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6270 all nios2 mach variants.
6271
6272 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6273
6274 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6275 of target_read_memory.
6276
6277 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6278
6279 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6280 string copy.
6281 (parse_scrolling_args): Likewise.
6282
6283 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6284
6285 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6286 names in this function.
6287
6288 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6289
6290 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6291 (CMD_NAME): Likewise.
6292 (DATA_NAME): Likewise.
6293 (DISASSEM_NAME): Likewise.
6294 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6295 (tui_set_win_height): Likewise.
6296 (parse_scrolling_args): Likewise.
6297
6298 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6299
6300 * record-btrace.c (record_btrace_goto_begin)
6301 (record_btrace_goto_end, record_btrace_goto): Move call to
6302 print_stack_frame ...
6303 (record_btrace_set_replay): ... here. Set stop_pc.
6304 * record-full.c (record_full_goto_entry): Set stop_pc.
6305
6306 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6307
6308 * NEWS: Mention support for tracepoints on aarch64-linux.
6309
6310 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6311
6312 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6313 function. Return 1.
6314 (the_low_target): Install it.
6315
6316 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6317
6318 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6319 * gdb.trace/collection.exp: Likewise.
6320 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6321 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6322 * gdb.trace/report.exp: Likewise.
6323 * gdb.trace/trace-break.exp: Likewise.
6324 * gdb.trace/unavailable.exp: Likewise.
6325 * gdb.trace/while-dyn.exp: Likewise.
6326
6327 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6328
6329 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6330 (aarch64_gen_return_address): New function.
6331 (aarch64_gdbarch_init): Hook it.
6332
6333 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6334
6335 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6336 swallow NOT_AVAILABLE_ERROR.
6337 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6338 available_p is not set.
6339 (aarch64_stub_frame_unwind_stop_reason): New function.
6340 (aarch64_stub_unwind): Install it.
6341
6342 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6343
6344 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6345 field.
6346 (aarch64_make_prologue_cache_1): New function, factored out from
6347 aarch64_make_prologue_cache. Do not allocate cache. Set
6348 available_p.
6349 (aarch64_make_prologue_cache): Reimplement wrapping
6350 aarch64_make_prologue_cache_1, and swallowing
6351 NOT_AVAILABLE_ERROR.
6352 (aarch64_prologue_frame_unwind_stop_reason): New function.
6353 Return UNWIND_UNAVAILABLE if available_p is not set.
6354 (aarch64_prologue_unwind): Install it.
6355 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6356 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6357 frame_id_build_unavailable_stack if available_p is not set.
6358
6359 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6360
6361 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6362 fields.
6363 (aarch64_scan_prologue): Set prev_pc.
6364 (aarch64_make_prologue_cache): Set func.
6365 (aarch64_make_stub_cache): Set prev_pc.
6366 (aarch64_prologue_this_id): Remove local variables id, pc and
6367 func. Read prev_pc and func from cache.
6368 (aarch64_stub_this_id): Read prev_pc from cache.
6369
6370 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6371
6372 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6373 argument this_cache. Remove unused local variables reg and
6374 unwound_fp. Return early if this_cache is already set. Set
6375 this_cache.
6376 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6377
6378 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6379
6380 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6381 New argument this_cache. Return early if this_cache is already
6382 set. Set this_cache.
6383 (aarch64_prologue_this_id): Update call to
6384 aarch64_make_prologue_cache.
6385 (aarch64_prologue_prev_register): Likewise.
6386 (aarch64_normal_frame_base): Likewise.
6387
6388 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6389
6390 * c-valprint.c (c_val_print): Factor out memberptr printing code
6391 from c_val_print to ...
6392 (c_val_print_memberptr): ... this new function.
6393
6394 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6395
6396 * c-valprint.c (c_val_print): Factor out int printing code to ...
6397 (c_val_print_int): ... this new function.
6398
6399 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6400
6401 * c-valprint.c (c_val_print): Factor out struct and union
6402 printing code to ...
6403 (c_val_print_struct): ... this new function ...
6404 (c_val_print_union): ... and this new function.
6405
6406 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * c-valprint.c (c_val_print): Factor out pointer printing code
6409 to ...
6410 (c_val_print_ptr): ... this new function.
6411
6412 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * c-valprint.c (c_valprint): Factor our array printing code from
6415 c_val_print to ...
6416 (c_val_print_array): ... this new function.
6417
6418 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6419
6420 * c-valprint.c (c_val_print): Factor out pointer printing code
6421 to ...
6422 (print_unpacked_pointer): ... this new function.
6423
6424 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6425
6426 * c-valprint.c (c_val_print): Remove an assignment to i and move
6427 its declaration.
6428
6429 2015-07-09 Yao Qi <yao.qi@linaro.org>
6430
6431 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6432 argument ptid. Update comments. Caller update.
6433
6434 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6435
6436 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6437 mnt packets.
6438
6439 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6440
6441 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6442
6443 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6444
6445 * progspace.c (delete_program_space): Add missing spaces.
6446
6447 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6448
6449 * inferior.c (delete_inferior_1): Rename to ...
6450 (delete_inferior): ..., remove 'silent' parameter, delete
6451 program space when unused and remove call to prune_program_spaces.
6452 Remove the old, unused, delete_inferior.
6453 (delete_inferior_silent): Remove.
6454 (prune_inferiors): Change call from delete_inferior_1 to
6455 delete_inferior and remove 'silent' parameter. Remove call to
6456 prune_program_spaces.
6457 (remove_inferior_command): Idem.
6458 * inferior.h (delete_inferior_1): Rename to...
6459 (delete_inferior): ..., remove 'silent' parameter and remove the
6460 original delete_inferior.
6461 (delete_inferior_silent): Remove.
6462 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6463 delete_inferior_1 to delete_inferior and remove 'silent'
6464 parameter.
6465 * progspace.c (prune_program_spaces): Remove.
6466 (pspace_empty_p): Rename to...
6467 (program_space_empty_p): ... and make non-static.
6468 (delete_program_space): New.
6469 * progspace.h (prune_program_spaces): Remove declaration.
6470 (program_space_empty_p): New declaration.
6471 (delete_program_space): New declaration.
6472 * monitor.c (monitor_close): Replace call to
6473 delete_thread_silent and delete_inferior_silent with
6474 discard_all_inferiors.
6475
6476 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6477
6478 * defs.h (deprecated_register_changed_hook): Remove prototype.
6479 * interps.c (clear_iterpreter_hooks): Remove reference to
6480 deprecated_register_changed_hook.
6481 * top.c (deprecated_register_changed_hook): Remove prototype.
6482 * valops.c (value_assign): Remove reference to
6483 deprecated_register_changed_hook.
6484 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6485 Add comment documenting the function.
6486 (tui_register_changed_observer): Define.
6487 (tui_install_hooks): Remove reference to
6488 deprecated_register_changed_hook. Set
6489 tui_register_changed_observer.
6490 (tui_remove_hooks): Remove reference to
6491 deprecated_register_changed_hook. Unset
6492 tui_register_changed_observer.
6493
6494 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6495
6496 PR compile/18484
6497 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6498
6499 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6500
6501 PR exp/18617
6502 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6503
6504 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6505
6506 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6507
6508 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6509
6510 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6511 Use safe_strerror() instead of strerror().
6512
6513 2015-07-07 Yao Qi <yao.qi@linaro.org>
6514
6515 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6516 * features/arm-with-m-fpa-layout.c: Regenerated.
6517 * features/arm-with-m-vfp-d16.xml: Likewise.
6518 * features/arm-with-m-vfp-d16.c: Regenerated.
6519 * features/arm-with-m.xml: Likewise.
6520 * features/arm-with-m.c: Regenerated.
6521 * features/arm-with-neon.xml: Likewise.
6522 * features/arm-with-neon.c: Regenerated.
6523 * features/arm-with-vfpv2.xml: Likewise.
6524 * features/arm-with-vfpv2.c: Regenerated.
6525 * features/arm-with-vfpv3.xml: Likewise.
6526 * features/arm-with-vfpv3.c: Regenerated.
6527
6528 2015-07-07 Yao Qi <yao.qi@linaro.org>
6529
6530 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6531 arm-linux-nat.c.
6532 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6533 elf/external.h.
6534 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6535 if target is 32-bit.
6536 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6537 if target is 32-bit.
6538 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6539 if target is 32-bit.
6540 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6541 if target is 32-bit.
6542 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6543 (aarch64_linux_read_description): Return the right target
6544 description.
6545 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6546 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6547 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6548 arm-linux-tdep.o.
6549
6550 2015-07-07 Yao Qi <yao.qi@linaro.org>
6551
6552 * aarch32-linux-nat.c: New file.
6553 * aarch32-linux-nat.h: New file.
6554 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6555 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6556 aarch32_gp_regcache_supply.
6557 (store_regs): Move code to aarch32-linux-nat.c. Call
6558 aarch32_gp_regcache_collect.
6559 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6560 aarch32_vfp_regcache_supply.
6561 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6562 aarch32_vfp_regcache_collect.
6563 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6564
6565 2015-07-07 Yao Qi <yao.qi@linaro.org>
6566
6567 * arm-linux-nat.c (store_fpregister): Remove.
6568 (store_register): Likewise.
6569 (fetch_fpregister): Likewise.
6570 (fetch_register): Likewise.
6571 (arm_linux_store_inferior_registers): Call store_regs and
6572 store_fpregs instead.
6573 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6574 fetch_regs instead.
6575
6576 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6577
6578 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6579 and focus commands.
6580
6581 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6582
6583 * NEWS: Create a new section for the next release branch.
6584 Rename the section of the current branch, now that it has
6585 been cut.
6586
6587 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6588
6589 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6590 * version.in: Bump version to 7.10.50.DATE-cvs.
6591
6592 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6593
6594 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6595 breakpoints in a special way.
6596 (remove_breakpoint): Likewise.
6597 (mark_breakpoints_out): Likewise.
6598
6599 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6600
6601 * doc/gdb.texinfo (TUI): Add comma after @xref.
6602
6603 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6604
6605 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6606 instead of casting the structure type.
6607
6608 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6609
6610 * valops.c (search_struct_field): Remove OFFSET parameter.
6611 (value_cast_structs): Adjust calls to search_struct_field.
6612 (value_struct_elt): Same.
6613 (find_overload_match): Same.
6614
6615 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6616
6617 * value.c (value_fetch_lazy): Update comment, change return
6618 value to void.
6619 * value.h (value_fetch_lazy): Change return value to void.
6620
6621 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6624 (tui_win_name): Make parameter and result const.
6625 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6626
6627 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6628
6629 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6630 use printf_unfiltered.
6631 (set_mpx_cmd): Add missing trailing space to command string
6632 literal.
6633 (_initialize_i386_tdep): Give the "mpx" prefix command its
6634 correct name.
6635
6636 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6637
6638 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6639 (enum rx_frame_type): New.
6640 (struct rx_prologue): Add new field `frame_type'.
6641 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6642 parameter in the prologue struct. Add code for recording
6643 locations of PC and PSW for fast interrupt and exception frames.
6644 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6645 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6646 (rx_frame_type): New function.
6647 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6648 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6649 `this_cache'.
6650 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6651 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6652 RX_FRAME_TYPE_FAST_INTERRUPT.
6653 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6654 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6655 (rx_frame_unwind): Use rx_frame_sniffer instead of
6656 default_frame_sniffer.
6657 (rx_frame_unwind): New unwinder.
6658 (rx_gdbarch_init): Register new unwinder.
6659
6660 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6661
6662 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6663 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6664 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6665 and RX_FPSW_REGNUM.
6666 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6667
6668 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6669
6670 Fix GCC false warning.
6671 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6672
6673 2015-07-02 Yao Qi <yao.qi@linaro.org>
6674
6675 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6676 typo in the debugging message.
6677
6678 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6679
6680 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6681 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6682 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6683 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6684 (btrace_maint_clear): New.
6685 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6686 (pt_print_packet, btrace_maint_decode_pt)
6687 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6688 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6689 (maint_btrace_packet_history_cmd)
6690 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6691 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6692 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6693 (maint_info_btrace_cmd, _initialize_btrace): New.
6694 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6695 (btrace_maint_packet_history, btrace_maint_info): New.
6696 (btrace_thread_info) <maint>: New.
6697 * NEWS: Announce it.
6698
6699 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6700
6701 * btrace.c (btrace_fetch): Append the new trace data.
6702 (btrace_clear): Clear the stored trace data.
6703 * btrace.h (btrace_thread_info) <data>: New.
6704 * common/btrace-common.h (btrace_data_clear)
6705 (btrace_data_append): New.
6706 * common/btrace-common.c (btrace_data_clear)
6707 (btrace_data_append): New.
6708
6709 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6710
6711 * nat/linux-btrace.c (linux_enable_bts): Check for
6712 PERF_ATTR_SIZE_VER5.
6713 Check for data_offset and data_size fields. Use them.
6714
6715 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6716
6717 * NEWS: Announce new commands "record btrace pt" and "record pt".
6718 Announce new options "set|show record btrace pt buffer-size".
6719 * btrace.c: Include "rsp-low.h".
6720 Include "inttypes.h".
6721 (btrace_add_pc): Add forward declaration.
6722 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6723 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6724 (btrace_compute_ftrace_pt): New.
6725 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6726 (check_xml_btrace_version): Update version check.
6727 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6728 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6729 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6730 (btrace_pt_children): New.
6731 (btrace_children): Add support for "pt".
6732 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6733 (btrace_conf_children): Add support for "pt".
6734 * btrace.h: Include "intel-pt.h".
6735 (btrace_pt_error): New.
6736 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6737 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6738 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6739 (struct btrace_config_pt): New.
6740 (struct btrace_config)<pt>: New.
6741 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6742 (struct btrace_data)<pt>: New.
6743 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6744 (pt): New.
6745 * features/btrace.dtd (btrace)<pt>: New.
6746 (pt, pt-config, cpu): New.
6747 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6748 (perf_event_pt_event_type, kernel_supports_pt)
6749 (linux_supports_pt): New.
6750 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6751 (linux_enable_bts): Free tinfo on error.
6752 (linux_enable_pt): New.
6753 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6754 (linux_disable_pt): New.
6755 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6756 (linux_fill_btrace_pt_config, linux_read_pt): New.
6757 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6758 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6759 (struct btrace_target_info)<pt>: New.
6760 * record-btrace.c (set_record_btrace_pt_cmdlist)
6761 (show_record_btrace_pt_cmdlist): New.
6762 (record_btrace_print_pt_conf): New.
6763 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6764 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6765 (cmd_record_btrace_pt_start): New.
6766 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6767 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6768 (_initialize_record_btrace): Add new commands.
6769 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6770 (remote_protocol_features): Add "Qbtrace:pt".
6771 Add "Qbtrace-conf:pt:size".
6772 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6773 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6774 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6775 (_initialize_remote): Add new commands.
6776
6777 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6778
6779 * configure.ac: check for libipt
6780 * configure: Regenerate.
6781 * config.in: Regenerate.
6782 * Makefile.in (LIBIPT): New.
6783 (CLIBS): Add $LIBIPT.
6784 * NEWS: document new configure options
6785
6786 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6787
6788 * compile/compile-object-load.c (compile_object_load): Replace debug
6789 message "lookup undefined ELF symbol" by 3 more specific messages.
6790
6791 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6792
6793 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6794 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6795 (rl78_gdbarch_init): Initialize rl78_psw_type.
6796
6797 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6798
6799 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6800 Update commentary. Always refresh the registers when frame
6801 information has changed.
6802 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6803 Change return type to int. Return 1 if frame information has
6804 changed, 0 otherwise.
6805 (tui_before_prompt): Update commentary.
6806 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6807 int.
6808
6809 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6810
6811 PR tui/13378
6812 * frame.c (select_frame): Remove reference to
6813 deprecated_selected_frame_level_changed_hook.
6814 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6815 declaration.
6816 * stack.c (deprecated_selected_frame_level_changed_hook):
6817 Likewise.
6818 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6819 Rename to ...
6820 (tui_refresh_frame_and_register_information): ... this. Bail
6821 out if there is no stack. Don't update register information
6822 unless registers_too_p is true.
6823 (tui_print_frame_info_listing_hook): Rename to ...
6824 (tui_dummy_print_frame_info_listing_hook): ... this.
6825 (tui_before_prompt): New function.
6826 (tui_normal_stop): New function.
6827 (tui_before_prompt_observer): New observer.
6828 (tui_normal_stop_observer): New observer.
6829 (tui_install_hooks): Set
6830 deprecated_print_frame_info_listing_hook to
6831 tui_dummy_print_frame_info_listing_hook. Register
6832 tui_before_prompt_observer to call tui_before_prompt and
6833 tui_normal_stop_observer to call tui_normal_stop. Remove
6834 reference to deprecated_selected_frame_level_changed_hook.
6835 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6836 and tui_normal_stop_observer. Remove reference to
6837 deprecated_selected_frame_level_changed_hook.
6838
6839 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6840
6841 PR tui/13378
6842 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6843 return an int instead of void. Return whether the locator
6844 window has changed.
6845 (tui_show_frame_info): If the locator info has not changed, then
6846 bail out early to avoid refreshing the windows.
6847
6848 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6849
6850 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6851 LOCATOR_WIN to tui_alloc_content.
6852
6853 2015-06-30 Yao Qi <yao.qi@linaro.org>
6854
6855 PR tdep/18605
6856 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6857 instructions.
6858
6859 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6860
6861 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6862 (rx_dwarf_reg_to_regnum): New function.
6863 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6864 unwinding.
6865
6866 2015-06-29 Pedro Alves <palves@redhat.com>
6867
6868 PR threads/18127
6869 * infcall.c (run_inferior_call): On infcall success, if the thread
6870 was marked stopped before, reset it back to stopped.
6871 * infrun.c (resume): Don't suppress the set_running calls when
6872 doing an infcall.
6873 (normal_stop): Only discard the finish_thread_state cleanup if the
6874 infcall succeeded.
6875
6876 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6877
6878 * MAINTAINERS (Write After Approval): Update my email address.
6879
6880 2015-06-26 Keith Seitz <keiths@redhat.com>
6881 Doug Evans <dje@google.com>
6882
6883 PR 16253
6884 * block.c (block_lookup_symbol): For non-function blocks,
6885 continue to search for a symbol with an exact domain match
6886 Otherwise, return any previously found "best domain" symbol.
6887 (block_lookup_symbol_primary): Likewise.
6888
6889 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6890
6891 * NEWS: Mention the new option "history remove-duplicates".
6892 * top.c (history_remove_duplicates): New static variable.
6893 (show_history_remove_duplicates): New static function.
6894 (gdb_add_history): Conditionally remove duplicate history
6895 entries.
6896 (init_main): Add "history remove-duplicates" option.
6897
6898 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6899
6900 * tui/tui-win.c (focus_completer): New static function.
6901 (_initialize_tui_win): Set the completion function of the
6902 "focus" command to focus_completer.
6903
6904 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6905
6906 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6907 and language_asm..
6908 * symtab.c (find_function_start_sal): Likewise.
6909
6910 2015-06-25 Gary Benson <gbenson@redhat.com>
6911
6912 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6913 it is the empty string after trailing slashes have been stripped.
6914
6915 2015-06-25 Gary Benson <gbenson@redhat.com>
6916
6917 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6918 * infrun.c (follow_exec): Likewise.
6919 * remote.c (remote_filesystem_is_local): Likewise.
6920 * solib.c (solib_find_1): Likewise.
6921
6922 2015-06-24 Keith Seitz <keiths@redhat.com>
6923
6924 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6925 return value from lrealpath.
6926
6927 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6928
6929 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6930
6931 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6932
6933 * remote-sim.c: Include gdb_bfd.h.
6934 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6935 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6936
6937 2015-06-24 Yao Qi <yao.qi@linaro.org>
6938
6939 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6940 set_gdbarch_get_siginfo_type.
6941 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6942 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6943 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6944 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6945 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6946 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6947 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6948 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6949 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6950 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6951
6952 2015-06-24 Gary Benson <gbenson@redhat.com>
6953
6954 * common/buffer.c (stdint.h): Do not include.
6955 * common/print-utils.c (stdint.h): Likewise.
6956 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6957 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6958 * ft32-tdep.c (gdb_assert.h): Likewise.
6959 * guile/scm-utils.c (stdint.h): Likewise.
6960 * i386-linux-tdep.c (stdint.h): Likewise.
6961 * i386-tdep.c (stdint.h): Likewise.
6962 * nat/linux-btrace.c (stdint.h): Likewise.
6963 * nat/linux-btrace.h (stdint.h): Likewise.
6964 * nat/linux-ptrace.c (stdint.h): Likewise.
6965 * nat/mips-linux-watch.h (stdint.h): Likewise.
6966 * ppc-linux-nat.c (stdint.h): Likewise.
6967 * python/python-internal.h (stdint.h): Likewise.
6968 * stub-termcap.c (stdlib.h): Likewise.
6969 * target/target.h (stdint.h): Likewise.
6970 * xtensa-linux-nat.c (stdint.h): Likewise.
6971
6972 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6973
6974 * top.c (init_history): Look at errno after calling strtol to
6975 properly map large GDBHISTSIZE values to infinity.
6976
6977 2015-06-23 Doug Evans <dje@google.com>
6978
6979 * inferior.h (struct inferior_suspend_state): Delete, unused.
6980 All references deleted.
6981
6982 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6983
6984 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6985 (microblaze_push_dummy_call): Likewise.
6986 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6987 and set_gdbarch_push_dummy_call.
6988
6989 2015-06-23 Yao Qi <yao.qi@linaro.org>
6990
6991 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6992 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6993 (amd64_linux_store_inferior_registers): Likewise.
6994 * arm-linux-nat.c (fetch_fpregister): Likewise.
6995 (fetch_fpregs, store_fpregister): Likewise.
6996 (store_fpregister, store_fpregs): Likewise.
6997 (fetch_register, fetch_regs): Likewise.
6998 (store_register, store_regs): Likewise.
6999 (fetch_vfp_regs, store_vfp_regs): Likewise.
7000 (arm_linux_read_description): Check have_ptrace_getregset is
7001 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7002 or TRIBOOL_FALSE.
7003 * i386-linux-nat.c (fetch_xstateregs): Check
7004 have_ptrace_getregset is not TRIBOOL_TRUE.
7005 (store_xstateregs): Likewise.
7006 * linux-nat.c (have_ptrace_getregset): Change its type to
7007 enum tribool.
7008 * linux-nat.h (tribool): New enum.
7009 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7010 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7011
7012 2015-06-19 Doug Evans <dje@google.com>
7013
7014 * NEWS: Mention Sun's version of stabs is no longer supported.
7015 * elfread.c (free_elfinfo): Delete. All uses updated.
7016 (elfstab_offset_sections): Delete. All uses updated.
7017 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7018 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7019 All uses updated.
7020 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7021 All callers updated.
7022
7023 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7024
7025 * common/rsp-low.c (needs_escaping): New.
7026 (remote_escape_output): Add unit_size parameter. Refactor to
7027 support multi-byte addressable units. Rename parameters.
7028 * common/rsp-low.h (remote_escape_output): Add unit_size
7029 parameter and rename others. Update doc.
7030 * remote.c (align_for_efficient_write): New.
7031 (remote_write_bytes_aux): Add unit_size parameter and use it.
7032 Rename some variables. Update doc.
7033 (remote_xfer_partial): Get unit size and use it.
7034 (remote_read_bytes_1): Add unit_size parameter and use it.
7035 Rename some variables. Update doc.
7036 (remote_write_bytes): Same.
7037 (remote_xfer_live_readonly_partial): Same.
7038 (remote_read_bytes): Same.
7039 (remote_flash_write): Update call to remote_write_bytes_aux.
7040 (remote_write_qxfer): Update call to remote_escape_output.
7041 (remote_search_memory): Same.
7042 (remote_hostio_pwrite): Same.
7043
7044 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7045
7046 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7047 locations as inserted.
7048 Update and expand comment about permanent locations.
7049 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7050 Move comment to add_location_to_breakpoint.
7051 (update_global_location_list): Don't error out if a permanent
7052 breakpoint is not marked inserted.
7053 Don't error out if a non-permanent breakpoint location is inserted on
7054 top of a permanent breakpoint.
7055
7056 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7057
7058 * breakpoint.c (make_breakpoint_permanent): Remove unused
7059 function.
7060 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7061
7062 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7063
7064 PR gdb/16999
7065 * NEWS: Mention new GDBHISTSIZE behavior.
7066 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7067 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7068
7069 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7070
7071 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7072 * top.c (init_history): Read from GDBHISTSIZE instead of
7073 HISTSIZE.
7074 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7075
7076 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7077
7078 * top.c (gdb_safe_append_history): Do not call
7079 history_truncate_file if the history is not stifled.
7080
7081 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7082
7083 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7084 * syscalls/s390x-linux.xml: Likewise.
7085
7086 2015-06-16 Michael Eager <eager@eagercon.com>
7087
7088 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7089
7090 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7091
7092 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7093 target_terminal_ours_for_output() before calling
7094 tui_show_frame_info(), and restore the original terminal
7095 settings afterwards.
7096
7097 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7098
7099 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7100
7101 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7102
7103 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7104 memory unit size.
7105 (mi_cmd_data_write_memory_bytes): Same.
7106
7107 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7108
7109 * corefile.c (write_memory): Update doc.
7110 * gdbcore.h (write_memory): Same.
7111
7112 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7113
7114 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7115 (dump_mapping_p): Use it for parameter filterflags.
7116 (linux_find_memory_regions_full): Use it for variable filterflags.
7117
7118 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7119 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 Merge multiple hex conversions.
7122 * monitor.c: Include rsp-low.h.
7123 (fromhex): Remove definition.
7124
7125 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7126 Jan Kratochvil <jan.kratochvil@redhat.com>
7127
7128 Move utility functions to common/.
7129 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7130 Move defs to common/common-utils.c.
7131 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7132 (skip_to_space_const): Move decls to common/common-utils.h.
7133 * common/common-defs.h: Move include of common-types.h before
7134 common-utils.h.
7135 * common/common-utils.c: Include host-defs.h and ctype.h.
7136 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7137 from utils.c.
7138 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7139 cli/cli-utils.c.
7140 * common/common-utils.h (strtoulst): Move decl from utils.h.
7141 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7142 Move from cli/cli-utils.h.
7143 * common/host-defs.h: Include limits.h.
7144 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7145 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7146 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7147 common/common-utils.h.
7148 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7149 (strtoulst): Move to common/common-utils.c.
7150 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7151
7152 2015-06-15 Yao Qi <yao.qi@linaro.org>
7153
7154 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7155
7156 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7157
7158 * build-id.c: Don't include elf-bfd.h.
7159 (build_id_bfd_get): Use bfd_build_id.
7160 (build_id_verify): Ditto.
7161 * build-id.h: Ditto.
7162 (find_separate_debug_file_by_buildid): Ditto.
7163 * python/py-objfile.c: Don't include elf-bfd.h.
7164 (objfpy_get_build_id) Use bfd_build_id.
7165 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7166 * coffread.c: Include build-id.h.
7167 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7168
7169 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7170
7171 * windows-nat.c (do_windows_fetch_inferior_registers)
7172 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7173 conditional with __CYGWIN__.
7174
7175 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * completer.c: Add arch-utils.h include.
7178 (enum reg_completer_targets): New enum.
7179 (reg_or_group_completer_1): New function containing old
7180 reg_or_group_completer, add and use new parameter to control what
7181 is completed on. Use get_current_arch rather than architecture of
7182 currently selected frame.
7183 (reg_or_group_completer): Call new reg_or_group_completer_1.
7184 (reggroup_completer): Call new reg_or_group_completer_1.
7185 * completer.h (reggroup_completer): Add declaration.
7186 * tui/tui-regs.c: Add 'completer.h' include.
7187 (tui_reg_next_command): Renamed to...
7188 (tui_reg_next): ...this. Adjust parameters and return rather than
7189 display new group.
7190 (tui_reg_prev_command): Renamed to...
7191 (tui_reg_prev): ...this. Adjust parameters and return rather than
7192 display new group.
7193 (tui_reg_float_command): Delete.
7194 (tui_reg_general_command): Delete.
7195 (tui_reg_system_command): Delete.
7196 (tui_reg_command): Rewrite to perform switching of register group.
7197 Add header comment.
7198 (tuireglist): Remove.
7199 (tui_reggroup_completer): New function.
7200 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7201 creation of 'tui reg' command.
7202 * NEWS: Add comment about 'tui reg' changes.
7203
7204 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7205
7206 * target.c (target_read): Consider addressable unit size when
7207 reading from a memory object.
7208 (read_memory_robust): Same.
7209 (read_whatever_is_readable): Same.
7210 (target_write_with_progress): Consider addressable unit size
7211 when writing to a memory object.
7212 * target.h (target_read): Update documentation.
7213 (target_write): Add documentation.
7214
7215 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7216
7217 * arch-utils.h (default_addressable_memory_unit_size): New.
7218 * arch-utils.c (default_addressable_memory_unit_size): New.
7219 * gdbarch.sh (addressable_memory_unit_size): New.
7220 * gdbarch.h: Re-generate.
7221 * gdbarch.c: Re-generate.
7222
7223 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7224
7225 * target.c (target_read): Rename variables and use
7226 TARGET_XFER_E_IO.
7227 (target_read_with_progress): Same.
7228 (read_memory_robust): Constify parameters and rename
7229 variables.
7230 (read_whatever_is_readable): Constify parameters,
7231 rename variables, adjust formatting.
7232 * target.h (read_memory_robust): Constify parameters.
7233
7234 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7235
7236 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7237 synthetic (non-AltiVec) vector types.
7238 (ppc64_sysv_abi_return_value): Likewise.
7239
7240 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7241
7242 PR breakpoints/16465
7243 * breakpoint.c (create_breakpoint): Save extra_string for
7244 pending breakpoints.
7245
7246 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7247
7248 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7249 and bt_mask to CORE_ADDR.
7250
7251 2015-06-11 Gary Benson <gbenson@redhat.com>
7252
7253 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7254 (mnsh_recv_message): Likewise.
7255
7256 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7257
7258 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7259 long long int and plongest instead of %ll.
7260
7261 2015-06-11 Gary Benson <gbenson@redhat.com>
7262
7263 * nat/linux-namespaces.c (gdb_wait.h): New include.
7264 (sys/wait.h): Do not include.
7265
7266 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7267
7268 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7269 end_sequence is true.
7270
7271 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7272
7273 Code cleanup.
7274 * solib-target.c (library_list_start_list): Use explicit NULL
7275 comparison.
7276
7277 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7278
7279 * solib-target.c (library_list_start_list): Do not dereference
7280 variable version in its initialization. Make the VERSION check handle
7281 NULL.
7282 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7283
7284 2015-06-10 Gary Benson <gbenson@redhat.com>
7285
7286 * NEWS: Announce support for direct access of executable and
7287 shared library files when attaching to inferiors in containers
7288 on GNU/Linux systems.
7289
7290 2015-06-10 Gary Benson <gbenson@redhat.com>
7291
7292 * remote.c (struct remote_state) <fs_pid>: New field.
7293 (new_remote_state): Initialize the above.
7294 (PACKET_vFile_setfs): New enum value.
7295 (remote_hostio_set_filesystem): New function.
7296 (remote_hostio_open): Call the above.
7297 (remote_hostio_unlink): Likewise.
7298 (remote_hostio_readlink): Likewise.
7299 (_initialize_remote): Register new "set/show remote
7300 hostio-setfs-packet" command.
7301 * NEWS: Announce new vFile:setfs packet.
7302
7303 2015-06-10 Gary Benson <gbenson@redhat.com>
7304
7305 * linux-nat.c (nat/linux-namespaces.h): New include.
7306 (fileio.h): Likewise.
7307 (linux_nat_filesystem_is_local): New function.
7308 (linux_nat_fileio_pid_of): Likewise.
7309 (linux_nat_fileio_open): Likewise.
7310 (linux_nat_fileio_readlink): Likewise.
7311 (linux_nat_fileio_unlink): Likewise.
7312 (linux_nat_add_target): Initialize to_filesystem_is_local,
7313 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7314 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7315 commands.
7316 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7317
7318 2015-06-10 Gary Benson <gbenson@redhat.com>
7319
7320 * target.h (struct inferior): New forward declaration.
7321 (struct target_ops) <to_filesystem_is_local>: Update comment.
7322 (struct target_ops) <to_fileio_open>: New argument inf.
7323 Update comment. All implementations updated.
7324 (struct target_ops) <to_fileio_unlink>: Likewise.
7325 (struct target_ops) <to_fileio_readlink>: Likewise.
7326 (target_filesystem_is_local): Update comment.
7327 (target_fileio_open): New argument inf. Update comment.
7328 (target_fileio_unlink): Likewise.
7329 (target_fileio_readlink): Likewise.
7330 (target_fileio_read_alloc): Likewise.
7331 (target_fileio_read_stralloc): Likewise.
7332 * target.c (target_fileio_open): New argument inf.
7333 Pass inf to implementation. Update debug printing.
7334 (target_fileio_unlink): Likewise.
7335 (target_fileio_readlink): Likewise.
7336 (target_fileio_read_alloc_1): New argument inf. Pass inf
7337 to target_fileio_open.
7338 (target_fileio_read_alloc): New argument inf. Pass inf to
7339 target_fileio_read_alloc_1.
7340 (target_fileio_read_stralloc): Likewise.
7341 * gdb_bfd.c (inferior.h): New include.
7342 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7343 argument with new argument "inferior". Pass inferior to
7344 target_fileio_open.
7345 (gdb_bfd_open): Supply inferior argument to
7346 gdb_bfd_iovec_fileio_open.
7347 * linux-tdep.c (linux_info_proc): Supply inf argument to
7348 relevant target_fileio calls.
7349 (linux_find_memory_regions_full): Likewise.
7350 (linux_fill_prpsinfo): Likewise.
7351 * remote.c (remote_filesystem_is_local): Supply inf
7352 argument to remote_hostio_open.
7353 (remote_file_put): Likewise.
7354 (remote_file_get): Likewise.
7355 (remote_file_delete): Supply inf argument to
7356 remote_hostio_unlink.
7357
7358 2015-06-10 Gary Benson <gbenson@redhat.com>
7359
7360 * inf-child.c (inf_child_fileio_open): Replace comment.
7361 (inf_child_fileio_pwrite): Likewise.
7362 (inf_child_fileio_pread): Likewise.
7363 (inf_child_fileio_fstat): Insert blank line before comment.
7364 (inf_child_fileio_close): Replace comment.
7365 (inf_child_fileio_unlink): Likewise.
7366 (inf_child_fileio_readlink): Likewise.
7367 * remote.c (remote_hostio_open): Likewise.
7368 (remote_hostio_pread): Likewise.
7369 (remote_hostio_pwrite): Likewise.
7370 (remote_hostio_close): Likewise.
7371 (remote_hostio_unlink): Likewise.
7372 (remote_hostio_readlink): Likewise.
7373 (remote_hostio_fstat): Likewise.
7374 (remote_filesystem_is_local): Likewise.
7375 * target.c (target_fileio_open): Likewise.
7376 (target_fileio_pwrite): Likewise.
7377 (target_fileio_pread): Likewise.
7378 (target_fileio_fstat): Insert blank line before comment.
7379 (target_fileio_close): Replace comment.
7380 (target_fileio_unlink): Likewise.
7381 (target_fileio_readlink): Likewise.
7382 (target_fileio_read_alloc): Likewise.
7383 (target_fileio_read_stralloc): Likewise.
7384
7385 2015-06-10 Gary Benson <gbenson@redhat.com>
7386
7387 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7388 (check_pid_namespace_match): Use linux_ns_same rather than
7389 linux_proc_pid_get_ns to spot PID namespace mismatches.
7390 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7391 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7392
7393 2015-06-10 Gary Benson <gbenson@redhat.com>
7394
7395 * configure.ac (AC_CHECK_FUNCS): Add setns.
7396 * config.in: Regenerate.
7397 * configure: Likewise.
7398 * nat/linux-namespaces.h: New file.
7399 * nat/linux-namespaces.c: Likewise.
7400 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7401 (linux-namespaces.o): New rule.
7402 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7403 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7404 * config/arm/linux.mh (NATDEPFILES): Likewise.
7405 * config/i386/linux.mh (NATDEPFILES): Likewise.
7406 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7407 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7408 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7409 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7410 * config/mips/linux.mh (NATDEPFILES): Likewise.
7411 * config/pa/linux.mh (NATDEPFILES): Likewise.
7412 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7413 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7414 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7415 * config/s390/linux.mh (NATDEPFILES): Likewise.
7416 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7417 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7418 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7419 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7420
7421 2015-06-10 Gary Benson <gbenson@redhat.com>
7422
7423 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7424 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7425 (make_cleanup_close): Likewise.
7426 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7427 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7428 (make_cleanup_close): Likewise.
7429
7430 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7431
7432 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7433 from SuspendThread().
7434
7435 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7436
7437 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7438 from OutputDebugString.
7439
7440 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7441 Mircea Gherzan <mircea.gherzan@intel.com>
7442
7443 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7444 MPX_BT_MASK_32): New macros.
7445 (i386_mpx_set_bounds): New function that implements
7446 the command "set-mpx-bound".
7447 (i386_mpx_enabled): Helper function to test MPX availability.
7448 (i386_mpx_bd_base): Helper function to calculate the base directory
7449 address.
7450 (i386_mpx_get_bt_entry): Helper function to access a bound
7451 table entry.
7452 (i386_mpx_print_bounds): Effectively display bound information.
7453 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7454 "show mpx".
7455 (_initialize_i386_tdep):
7456 Add "bound" to the commands "show mpx" and "set mpx" commands.
7457 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7458 and "show mpx" commands.
7459 * NEWS: List new commands for MPX support.
7460
7461 2015-06-09 Gary Benson <gbenson@redhat.com>
7462
7463 * common/fileio.h (fileio_to_host_mode): New declaration.
7464 * common/fileio.c (fileio_to_host_mode): New Function.
7465 * inf-child.c (inf_child_fileio_open): Process mode argument
7466 with fileio_to_host_mode.
7467
7468 2015-06-09 Gary Benson <gbenson@redhat.com>
7469
7470 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7471 conditional.
7472
7473 2015-06-05 Gary Benson <gbenson@redhat.com>
7474
7475 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7476 * remote.c (remote_filesystem_is_local): ...here.
7477
7478 2015-06-04 Yao Qi <yao.qi@linaro.org>
7479
7480 * gdbarch.c: Regenerate it.
7481
7482 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7483
7484 * arch-utils.c (default_infcall_munmap): New.
7485 * arch-utils.h (default_infcall_munmap): New declaration.
7486 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7487 (munmap_list_free, munmap_listp_free_cleanup): New.
7488 (struct setup_sections_data): Add field munmap_list_headp.
7489 (setup_sections): Call munmap_list_add.
7490 (compile_object_load): New variable munmap_list_head, initialize
7491 setup_sections_data.munmap_list_headp, return munmap_list_head.
7492 * compile/compile-object-load.h (struct munmap_list): New declaration.
7493 (struct compile_module): Add field munmap_list_head.
7494 (munmap_list_free): New declaration.
7495 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7496 munmap_list_head.
7497 (do_module_cleanup): Call munmap_list_free.
7498 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7499 * gdbarch.c: Regenerate.
7500 * gdbarch.h: Regenerate.
7501 * gdbarch.sh (infcall_munmap): New.
7502 * linux-tdep.c (linux_infcall_munmap): New.
7503 (linux_init_abi): Install it.
7504
7505 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7506
7507 PR gdb/15564
7508 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7509
7510 2015-06-02 Yao Qi <yao.qi@linaro.org>
7511
7512 * i386-linux-nat.c: Include linux-nat.h.
7513
7514 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7515 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 PR symtab/18392
7518 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7519 assertion.
7520 * dwarf2loc.c (chain_candidate): Likewise.
7521
7522 2015-06-01 Yao Qi <yao.qi@linaro.org>
7523
7524 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7525 (store_vfp_regs): Use PTRACE_SETREGSET.
7526
7527 2015-06-01 Yao Qi <yao.qi@linaro.org>
7528
7529 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7530 (fetch_fpregs): Likewise.
7531 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7532 (store_fpregs): Likewise.
7533
7534 2015-06-01 Yao Qi <yao.qi@linaro.org>
7535
7536 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7537 (fetch_regs): Likewise.
7538 (store_regs): Use PTRACE_SETREGSET.
7539 (store_register): Likewise.
7540
7541 2015-06-01 Yao Qi <yao.qi@linaro.org>
7542
7543 * arm-linux-nat.c (arm_linux_read_description): Check whether
7544 kernel supports PTRACE_GETREGSET.
7545
7546 2015-06-01 Yao Qi <yao.qi@linaro.org>
7547
7548 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7549 * linux-nat.c: ... here.
7550 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7551 to ...
7552 * linux-nat.h: ... here.
7553
7554 2015-06-01 Yao Qi <yao.qi@linaro.org>
7555
7556 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7557 * i386-linux-nat.c: Likewise.
7558 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7559 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7560 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7561 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7562 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7563
7564 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7565
7566 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7567 compatible to what read_child and write_child return. This
7568 unbreaks that DJGPP build of GDB which was broken since v7.7.
7569
7570 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7571
7572 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7573
7574 2015-05-29 Roland McGrath <mcgrathr@google.com>
7575
7576 PR gdb/18464
7577 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7578 rather than internal_error for an unrecognized value.
7579
7580 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7581
7582 * xtensa-tdep.c (xtensa_pseudo_register_read)
7583 (xtensa_pseudo_register_write): Don't alias last pseudo register
7584 to a1.
7585
7586 2015-05-28 Don Breazeal <donb@codesourcery.com>
7587
7588 * infrun.c (follow_fork_inferior): Ensure the use of
7589 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7590 messages.
7591
7592 2015-05-28 Doug Evans <dje@google.com>
7593
7594 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7595
7596 2015-05-28 Yao Qi <yao.qi@linaro.org>
7597
7598 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7599 (arm_linux_fetch_inferior_registers): Use
7600 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7601 (arm_linux_store_inferior_registers): Likewise.
7602 (arm_linux_read_description): Don't set
7603 arm_linux_has_wmmx_registers.
7604 * arm-tdep.c (arm_gdbarch_init): Set
7605 tdep->have_wmmx_registers according target descriptions.
7606 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7607 field.
7608
7609 2015-05-28 Yao Qi <yao.qi@linaro.org>
7610
7611 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7612 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7613 instead of arm_linux_vfp_register_count.
7614 (store_vfp_regs): Likewise.
7615 (arm_linux_fetch_inferior_registers): Likewise.
7616 (arm_linux_store_inferior_registers): Likewise.
7617 (arm_linux_read_description): Don't set
7618 arm_linux_vfp_register_count.
7619 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7620 Adjust.
7621 * arm-tdep.c (arm_gdbarch_init): Add assert on
7622 vfp_register_count.
7623 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7624 field to vfp_register_count. All users updated.
7625
7626 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7627
7628 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7629 ELFOSABI_GNU binaries.
7630
7631 2015-05-27 Doug Evans <dje@google.com>
7632
7633 * dwarf2read.c (lnp_state_machine): New typedef.
7634 (lnp_reader_state): New typedef.
7635 (dwarf_record_line_1): Renamed from dwarf_record_line.
7636 All callers updated.
7637 (dwarf_record_line): New function.
7638 (init_lnp_state_machine): New function.
7639 (check_line_address): Replace p_record_line parameter with state.
7640 All callers updated.
7641 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7642 Update to record state in lnp_state_machine.
7643
7644 2015-05-27 Doug Evans <dje@google.com>
7645
7646 * dwarf2read.c (record_line_ftype): New typedef.
7647 (check_line_address): New function.
7648 (dwarf_decode_lines_1): Call it.
7649
7650 2015-05-27 Doug Evans <dje@google.com>
7651
7652 * NEWS: Mention "set debug dwarf-line".
7653 * dwarf2read.c (dwarf_line_debug): New static global.
7654 (add_include_dir): Add debug dwarf-line support.
7655 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7656 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7657
7658 2015-05-27 Doug Evans <dje@google.com>
7659
7660 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7661 All callers updated.
7662 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7663 * cp-support.h (cp_lookup_nested_symbol): Update.
7664
7665 2015-05-27 Doug Evans <dje@google.com>
7666
7667 PR symtab/18258
7668 * block.c (block_find_symbol): New function.
7669 (block_find_non_opaque_type): Ditto.
7670 (block_find_non_opaque_type_preferred): Ditto.
7671 * block.h (block_symbol_matcher_ftype): New typedef.
7672 (block_find_symbol): Declare.
7673 (block_find_non_opaque_type): Ditto.
7674 (block_find_non_opaque_type_preferred): Ditto.
7675 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7676 * psymtab.c (psym_lookup_symbol): Ditto.
7677 * symtab.c (basic_lookup_transparent_type_1): New function.
7678 (basic_lookup_transparent_type): Call it.
7679
7680 2015-05-27 Yao Qi <yao.qi@linaro.org>
7681
7682 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7683 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7684
7685 2015-05-27 Yao Qi <yao.qi@linaro.org>
7686
7687 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7688 before operator &&.
7689 (aarch64_record_load_store): Likewise.
7690
7691 2015-05-26 Doug Evans <dje@google.com>
7692
7693 PR c++/18141, c++/18417.
7694 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7695 a typedef.
7696
7697 2015-05-26 Doug Evans <dje@google.com>
7698
7699 * NEWS: Add entries for command renamings.
7700 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7701 All uses updated.
7702 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7703 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7704 All uses updated.
7705 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7706 All callers updated. Fix spelling of DWARF in help text.
7707 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7708 All uses updated.
7709 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7710 All uses updated.
7711 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7712 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7713 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7714 All uses updated.
7715 (show_dwarf_always_disassemble): Renamed from
7716 show_dwarf2_always_disassemble. All callers updated.
7717 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7718 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7719 "set/show dwarf max-cache-age". Rename
7720 "set/show dwarf2 always-disassemble" to
7721 "set/show dwarf always-disassemble". Rename
7722 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7723 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7724
7725 2015-05-26 Doug Evans <dje@google.com>
7726
7727 PR python/18438
7728 * python/py-lazy-string.c (stpy_convert_to_value): Use
7729 gdbpy_gdb_memory_error not PyExc_MemoryError.
7730 (gdbpy_create_lazy_string_object): Ditto.
7731
7732 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7733
7734 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7735
7736 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7737
7738 * tui/tui-regs.c (tui_reg_prev_command): New function.
7739 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7740 * reggroups.c (reggroup_prev): New function.
7741 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7742
7743 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7744 Yao Qi <yao.qi@linaro.org>
7745
7746 * aarch64-linux-tdep.c: Include linux-record.h and
7747 record-full.h.
7748 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7749 (aarch64_syscall): New enum.
7750 (aarch64_canonicalize_syscall): New function.
7751 (aarch64_all_but_pc_registers_record): New function.
7752 (aarch64_linux_syscall_record): New function.
7753 (aarch64_linux_init_abi): Install AArch64 process record
7754 handler. Update to handle syscall recording.
7755 * aarch64-tdep.c: Include record.h and record-full.h.
7756 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7757 (struct aarch64_mem_r): Define.
7758 (aarch64_record_result): New enum.
7759 (struct insn_decode_record): Define.
7760 (insn_decode_record): New typedef.
7761 (aarch64_record_data_proc_reg): New function.
7762 (aarch64_record_data_proc_imm): New function.
7763 (aarch64_record_branch_except_sys): New function.
7764 (aarch64_record_load_store): New function.
7765 (aarch64_record_data_proc_simd_fp): New function.
7766 (aarch64_record_asimd_load_store): New function.
7767 (aarch64_record_decode_insn_handler): New function.
7768 (deallocate_reg_mem): New function.
7769 (aarch64_process_record): New function.
7770 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7771 New field.
7772 (aarch64_process_record): New extern declaration.
7773 * configure.tgt: Add linux-record.o to gdb_target_obs.
7774 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7775
7776 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7777
7778 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7779 targets.
7780
7781 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7782
7783 * amd64-tdep.c: Replace in_function_epilogue_p with
7784 stack_frame_destroyed_p throughout.
7785 * arch-utils.c: Ditto.
7786 * arch-utils.h: Ditto.
7787 * arm-tdep.c: Ditto.
7788 * breakpoint.c: Ditto.
7789 * gdbarch.sh: Ditto.
7790 * hppa-tdep.c: Ditto.
7791 * i386-tdep.c: Ditto.
7792 * mips-tdep.c: Ditto.
7793 * nios2-tdep.c: Ditto.
7794 * rs6000-tdep.c: Ditto.
7795 * s390-linux-tdep.c: Ditto.
7796 * score-tdep.c: Ditto.
7797 * sh-tdep.c: Ditto.
7798 * sparc-tdep.c: Ditto.
7799 * sparc-tdep.h: Ditto.
7800 * sparc64-tdep.c: Ditto.
7801 * spu-tdep.c: Ditto.
7802 * tic6x-tdep.c: Ditto.
7803 * tilegx-tdep.c: Ditto.
7804 * xstormy16-tdep.c: Ditto.
7805 * gdbarch.c, gdbarch.h: Re-generated.
7806
7807 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7808
7809 * NEWS: Mention 'tui enable' and 'tui disable'.
7810 * tui/tui.c (tui_enable_command): New function.
7811 (tui_disable_command): New function.
7812 (_initialize_tui): New function.
7813
7814 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7815
7816 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7817
7818 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7819
7820 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7821 buf_ptr is freed.
7822
7823 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7824
7825 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7826 into ...
7827 (tui_set_layout_for_display_command): ...here, before calling
7828 tui_set_layout. Only set the layout if gdb has not already
7829 entered the TUI_FAILURE state.
7830
7831 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7832
7833 * tui/tui-layout.c (layout_completer): New function.
7834 (_initialize_tui_layout): Set completer on layout command.
7835
7836 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7837
7838 * tui/tui-layout.c (tui_set_layout): Remove
7839 tui_register_display_type parameter. Remove all checking of this
7840 parameter, and reindent function. Update header comment.
7841 (tui_set_layout_for_display_command): Rename to...
7842 (tui_set_layout_by_name): ...this, and don't check for different
7843 register class types, don't pass a tui_register_display_type to
7844 tui_set_layout. Update header comment.
7845 (layout_names): Remove register set specific names.
7846 * tui/tui-layout.h (tui_set_layout): Remove
7847 tui_register_display_type parameter.
7848 * tui/tui.c (tui_rl_change_windows): Don't pass a
7849 tui_register_display_type to tui_set_layout.
7850 (tui_rl_delete_other_windows): Likewise.
7851 (tui_enable): Likewise.
7852 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7853 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7854 (TUI_GENERAL_REGS_NAME): Remove.
7855 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7856 (TUI_SPECIAL_REGS_NAME): Remove.
7857 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7858 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7859 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7860 (enum tui_register_display_type): Remove.
7861 (struct tui_layout_def): Remove regs_display_type and
7862 float_regs_display_type fields.
7863 (struct tui_data_info): Remove regs_display_type field.
7864 (tui_layout_command): Use new name for
7865 tui_set_layout_for_display_command.
7866 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7867 (tui_clear_win_detail): Don't initialise removed fields of
7868 win_info.
7869 * tui/tui-regs.c (tui_show_registers): Use new name for
7870 tui_set_layout_for_display_command.
7871 * tui/tui.h (tui_set_layout_for_display_command): Rename
7872 declaration to...
7873 (tui_set_layout_by_name): ...this.
7874 * printcmd.c (display_command): Remove tui related layout call,
7875 and reindent.
7876
7877 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7878
7879 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7880 (handle_inferior_event): New function.
7881
7882 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7883
7884 * ada-lang.c (to_fixed_array_type): Rename local variable
7885 typename into type_name.
7886
7887 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7888
7889 Fix ASAN crash for gdb.compile/compile.exp.
7890 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7891
7892 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7893
7894 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7895 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7896 * compile/compile-object-load.c (setup_sections, compile_object_load):
7897 Likewise.
7898 * compile/compile.c (compile_to_object): Likewise.
7899
7900 2015-05-16 Doug Evans <xdje42@gmail.com>
7901
7902 * NEWS: Mention support for unbuffered Guile memory ports.
7903 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7904 (ioscm_lseek_address): Improve overflow calculation.
7905 (gdbscm_memory_port_fill_input): Add assert.
7906 (gdbscm_memory_port_write): Handle unbuffered ports.
7907 Handle large writes identical to Guile's fport_write.
7908 (gdbscm_memory_port_seek): Fix seeking past end check.
7909 (gdbscm_memory_port_close): Handle closing unbuffered port.
7910 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7911 (ioscm_init_memory_port): Handle unbuffered ports.
7912 (ioscm_reinit_memory_port): Ditto.
7913 (ioscm_init_memory_port): Update size calculation.
7914 (gdbscm_open_memory): Support zero sized ports.
7915
7916 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7919 variable compiler warnings.
7920
7921 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7922
7923 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7924
7925 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7926 Phil Muldoon <pmuldoon@redhat.com>
7927
7928 * NEWS (Changes since GDB 7.9): Add compile print.
7929 * compile/compile-c-support.c (add_code_header, add_code_footer)
7930 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7931 COMPILE_I_PRINT_VALUE_SCOPE.
7932 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7933 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7934 New.
7935 * compile/compile-object-load.c: Include block.h.
7936 (get_out_value_type): New function.
7937 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7938 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7939 OUT_VALUE_TYPE.
7940 * compile/compile-object-load.h (struct compile_module): Add fields
7941 out_value_addr and out_value_type.
7942 * compile/compile-object-run.c: Include valprint.h and compile.h.
7943 (struct do_module_cleanup): Add fields out_value_addr and
7944 out_value_type.
7945 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7946 COMPILE_I_PRINT_VALUE_SCOPE.
7947 (compile_object_run): Propagate out_value_addr and out_value_type.
7948 Pass OUT_VALUE_ADDR.
7949 * compile/compile.c: Include valprint.h.
7950 (compile_print_value, compile_print_command): New functions.
7951 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7952 (_initialize_compile): Update compile code help text. Install
7953 compile_print_command.
7954 * compile/compile.h (compile_print_value): New prototype.
7955 * defs.h (enum compile_i_scope_types): Add
7956 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7957
7958 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7959
7960 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7961 Rely on its parameter count.
7962 (compile_object_load): Replace lookup_minimal_symbol_text by
7963 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7964 return value.
7965 * compile/compile-object-load.h (struct compile_module): Replace
7966 func_addr by func_sym.
7967 * compile/compile-object-run.c: Include block.h.
7968 (compile_object_run): Reset module variable after it is freed. Use
7969 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7970
7971 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7972
7973 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7974 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7975 (c_compute_program): Call generate_register_struct after typedefs.
7976 * compile/compile-loc2c.c (push, pushf_register_address)
7977 (pushf_register): Cast to GCC_UINTPTR.
7978 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7979 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7980 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7981 * compile/compile.c (_initialize_compile): Enable warnings for
7982 COMPILE_ARGS.
7983
7984 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7985
7986 * cli/cli-script.c (execute_control_command): Update
7987 eval_compile_command caller.
7988 * compile/compile-object-load.c (compile_object_load): Add parameters
7989 scope and scope_data. Set them.
7990 * compile/compile-object-load.h (struct compile_module): Add fields
7991 scope and scope_data.
7992 (compile_object_load): Add parameters scope and scope_data.
7993 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7994 scope and scope_data.
7995 (compile_object_run): Propagate the fields scope and scope_data.
7996 * compile/compile.c (compile_file_command, compile_code_command):
7997 Update eval_compile_command callers.
7998 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7999 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8000 * defs.h (struct command_line): Add field scope_data.
8001
8002 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8003
8004 * printcmd.c (struct format_data): Move it to valprint.h.
8005 (print_command_parse_format, print_value): New functions from ...
8006 (print_command_1): ... here. Call them.
8007 * valprint.h (struct format_data): Move it here from printcmd.c.
8008 (print_command_parse_format, print_value): New declarations.
8009
8010 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8011
8012 * compile/compile-object-load.c (compile_object_load): Add
8013 COMPILE_DEBUG message.
8014
8015 2015-05-15 Jerome Guitton <guitton@adacore.com>
8016
8017 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8018 index to get element instead of enum value.
8019 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8020 of index to compute length, but enum values to compute bounds.
8021 (ada_array_length): Use enum position of index instead of enum value.
8022 (pos_atr): Move position computation to...
8023 (ada_evaluate_subexp): Use enum values to compute bounds.
8024 * gdbtypes.c (discrete_position): ...this new function.
8025 * gdbtypes.h (discrete_position): New function declaration.
8026 * valprint.c (val_print_array_elements): Call discrete_position
8027 to handle array indexed by non-contiguous enumeration types.
8028
8029 2015-05-15 Jerome Guitton <guitton@adacore.com>
8030
8031 * ada-lang.c (find_parallel_type_by_descriptive_type):
8032 Go through typedefs during lookup.
8033 (to_fixed_array_type): Add support for non-bit packed arrays
8034 as variable-length fields.
8035
8036 2015-05-15 Pedro Alves <palves@redhat.com>
8037 Simon Marchi <simon.marchi@ericsson.com>
8038
8039 * event-loop.c (gdb_notifier) <next_file_handler,
8040 next_poll_fds_index>: New fields.
8041 (get_next_file_handler_to_handle_and_advance): New function.
8042 (delete_file_handler): If deleting the next file handler to
8043 handle, advance to the next file handler.
8044 (gdb_wait_for_event): Bail early if no event fired. Poll file
8045 handlers in round-robin fashion.
8046
8047 2015-05-15 Pedro Alves <palves@redhat.com>
8048
8049 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8050 'private' to 'priv'.
8051
8052 2015-05-15 Pedro Alves <palves@redhat.com>
8053
8054 * nat/linux-nat.h: Include "target/waitstatus.h".
8055
8056 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8057
8058 * python/py-unwind.c (struct reg_info): Move out of ...
8059 (struct cached_frame_info): ... this scope.
8060 (pending_frame_object_type, unwind_info_object_type): Make extern.
8061
8062 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8063
8064 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8065 accumSize is never negative.
8066
8067 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8068
8069 * tui/tui-command.c: Remove include of <ctype.h>.
8070 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8071
8072 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8073
8074 * dwarf2read.c (die_needs_namespace): Return 1 for
8075 DW_TAG_inlined_subroutine.
8076
8077 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8078
8079 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8080 (regcache_cpy_no_passthrough): Make it static, add function comment.
8081 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8082 (regcache_cpy_no_passthrough): Remove declaration.
8083
8084 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8085
8086 * gdbthread.h (struct thread_control_state): Update comment for
8087 proceed_to_finish.
8088 * infcall.c (run_inferior_call): Update comment about
8089 proceed_to_finish.
8090 * infcmd.c (get_return_value): Update comment about stop_registers.
8091 (finish_forward): Update comment about proceed_to_finish.
8092 * infrun.c (stop_registers): Remove.
8093 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8094 * infrun.h (stop_registers): Remove.
8095
8096 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8097
8098 * infcall.c (struct dummy_frame_context_saver)
8099 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8100 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8101 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8102 New.
8103 (call_function_by_hand_dummy): Move discard_cleanups of
8104 inf_status_cleanup before dummy_frame_push. Call
8105 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8106 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8107 * infcall.h (struct dummy_frame_context_saver)
8108 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8109 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8110 New declarations.
8111 * infcmd.c: Include infcall.h.
8112 (get_return_value): Add parameter ctx_saver, use it instead of
8113 stop_registers.
8114 (print_return_value): Add parameter ctx_saver, pass it.
8115 (struct finish_command_continuation_args): Add field ctx_saver.
8116 (finish_command_continuation): Update print_return_value caller.
8117 (finish_command_continuation_free_arg): Free also ctx_saver.
8118 (finish_forward): Call dummy_frame_context_saver_setup.
8119 * inferior.h (struct dummy_frame_context_saver): New declaration.
8120 (get_return_value): Add parameter ctx_saver.
8121 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8122 get_return_value caller.
8123
8124 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8125
8126 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8127 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8128 (remove_dummy_frame): Process dtor_list.
8129 (pop_dummy_frame): Process dtor_list.
8130 (register_dummy_frame_dtor): Maintain dtor_list.
8131 (find_dummy_frame_dtor): Handle dtor_list.
8132 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8133 Update comments.
8134
8135 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8138 registers_valid.
8139 (compile_object_run): Update do_module_cleanup caller.
8140 * dummy-frame.c: Include infcall.h.
8141 (struct dummy_frame): Update dtor comment.
8142 (remove_dummy_frame): Call dtor.
8143 (pop_dummy_frame): Update dtor caller.
8144 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8145 registers_valid.
8146
8147 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8148
8149 GDB 7.9.1 released.
8150
8151 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8152
8153 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8154 Xmethods now being able to specify a result type to that new
8155 sectioin.
8156
8157 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8158
8159 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8160 first before resizing the window.
8161 * tui/tui.c (tui_enable): Likewise.
8162
8163 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8164
8165 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8166 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8167 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8168 dummy_dtor parameter.
8169 * infcall.h: Include dummy-frame.h.
8170 (call_function_by_hand_dummy_dtor_ftype): Remove.
8171 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8172 parameter.
8173
8174 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8175
8176 PR gdb/17820
8177 * top.c (history_size_setshow_var): Change type to signed.
8178 Initialize to -2. Update documentation.
8179 (set_readline_history_size): Define.
8180 (set_history_size_command): Use it. Remove logic for handling
8181 out-of-range sizes.
8182 (init_history): Use set_readline_history_size(). Test for a
8183 value of -2 instead of 0 when determining whether to set a
8184 default history size.
8185 (init_main): Decode the argument of the "size" command as a
8186 zuinteger_unlimited.
8187
8188 2015-05-12 Doug Evans <dje@google.com>
8189
8190 * dwarf2read.c (struct file_entry): Tweak comments.
8191 (get_debug_line_section): Tweak comments.
8192
8193 2015-05-12 Don Breazeal <donb@codesourcery.com>
8194
8195 * NEWS: Announce fork support in the RSP and support
8196 for fork debugging in extended mode.
8197
8198 2015-05-12 Don Breazeal <donb@codesourcery.com>
8199
8200 * remote.c (remote_insert_fork_catchpoint): New function.
8201 (remote_remove_fork_catchpoint): New function.
8202 (remote_insert_vfork_catchpoint): New function.
8203 (remote_remove_vfork_catchpoint): New function.
8204 (pending_fork_parent_callback): New function.
8205 (remove_new_fork_child): New function.
8206 (remote_update_thread_list): Call remote_notif_get_pending_events
8207 and remove_new_fork_child.
8208 (extended_remote_kill): Kill fork child when killing the
8209 parent before follow_fork completes.
8210 (init_extended_remote_ops): Initialize target vector with
8211 new fork catchpoint functions.
8212
8213 2015-05-12 Don Breazeal <donb@codesourcery.com>
8214
8215 * remote.c (remove_vfork_event_p): New function.
8216 (remote_follow_fork): Add vfork event type to event checking.
8217 (remote_parse_stop_reply): New stop reasons "vfork" and
8218 "vforkdone" for RSP 'T' Stop Reply Packet.
8219
8220 2015-05-12 Don Breazeal <donb@codesourcery.com>
8221
8222 * linux-nat.c (linux_nat_ptrace_options): New function.
8223 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8224 Call linux_nat_ptrace_options and use different argument to
8225 linux_enable_event_reporting.
8226 (_initialize_linux_nat): Delete call to
8227 linux_ptrace_set_additional_flags.
8228 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8229 supported_ptrace_options.
8230 (additional_flags): Delete variable.
8231 (linux_check_ptrace_features): Use supported_ptrace_options.
8232 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8233 Likewise, and remove additional_flags check.
8234 (linux_enable_event_reporting): Change 'attached' argument to
8235 'options'. Use supported_ptrace_options.
8236 (ptrace_supports_feature): Change comment. Use
8237 supported_ptrace_options.
8238 (linux_ptrace_set_additional_flags): Delete function.
8239 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8240 Delete function prototype.
8241 * remote.c (remote_fork_event_p): New function.
8242 (remote_detach_pid): New function.
8243 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8244 if doing detach-on-fork.
8245 (remote_follow_fork): New function.
8246 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8247 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8248 (init_extended_remote_ops): Initialize to_follow_fork.
8249
8250 2015-05-12 Don Breazeal <donb@codesourcery.com>
8251
8252 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8253 from static to extern.
8254 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8255 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8256 * PACKET_vfork_event_feature>: New enumeration constants.
8257 (remote_protocol_features): Add table entries for new packets.
8258 (remote_query_supported): Add new feature queries to qSupported
8259 packet.
8260
8261 2015-05-12 Gary Benson <gbenson@redhat.com>
8262
8263 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8264 for fake PIDs as well as real ones.
8265 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8266
8267 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8268
8269 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8270 * python/py-value.c (valpy_reference_value): New function.
8271 (valpy_const_value): Likewise.
8272 (value_object_methods): Add new methods.
8273 * value.c (make_cv_value): New function.
8274 * value.h (make_cv_value): Declare.
8275
8276 2015-05-08 Yao Qi <yao@codesourcery.com>
8277 Sandra Loosemore <sandra@codesourcery.com>
8278
8279 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8280 to 'lh->include_dirs' before accessing to it.
8281 (psymtab_include_file_name): Likewise.
8282 (dwarf_decode_lines_1): Likewise.
8283 (dwarf_decode_lines): Likewise.
8284 (file_file_name): Likewise.
8285
8286 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8287
8288 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8289 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8290 (nios2_linux_rt_sigreturn_init): Adjust base address of
8291 register save area.
8292
8293 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8294
8295 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8296 "trap 31" as the breakpoint instruction on all targets.
8297
8298 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8299
8300 * infcmd.c (print_return_value): Remove unused declaration.
8301
8302 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8303
8304 * dwarf2read.c (attr_to_dynamic_prop)
8305 <DW_AT_data_member_location>: Use read_type_die isntead of
8306 get_die_type.
8307
8308 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8309
8310 * ada-lang.c (ada_convert_actual): Add handling of formals
8311 passed inside an aligner type.
8312
8313 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8314
8315 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8316
8317 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8318
8319 PR python/18291
8320 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8321 Print xmethod matcher status.
8322
8323 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8324
8325 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8326 register in the regcache when treating the PSWM register, and vice
8327 versa.
8328
8329 2015-05-07 Gary Benson <gbenson@redhat.com>
8330
8331 * linux-thread-db.c (struct thread_db_info)
8332 <td_ta_map_id2thr_p>: Remove field.
8333 (try_thread_db_load_1): Remove initialization for the above.
8334
8335 2015-05-07 Gary Benson <gbenson@redhat.com>
8336
8337 * linux-thread-db.c (struct thread_db_info)
8338 <td_thr_validate_p>: Remove field.
8339 (try_thread_db_load_1): Remove initialization for the above.
8340
8341 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8342
8343 * compile/compile-object-load.c (compile_object_load): Support
8344 mst_text_gnu_ifunc.
8345
8346 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8347
8348 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8349 const. Use new variables for the const compatibility.
8350 (eval_compile_command): Make the cmd_string parameter const.
8351 * compile/compile.h (eval_compile_command): Make the cmd_string
8352 parameter const.
8353
8354 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8355
8356 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8357 comment.
8358 * top.c (deprecated_init_ui_hook): Delete.
8359 (gdb_init): Remove handling of deprecated_init_ui_hook.
8360 * interps.c (clear_interpreter_hooks): Remove handling of
8361 deprecated_init_ui_hook.
8362 * main.c (captured_main): Update comment.
8363
8364 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8365
8366 * solib.c (_initialize_solib): Add "info dll" alias creation.
8367 * windows-nat.c (set_windows_aliases): Delete.
8368 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8369 assignment.
8370 * NEWS: Add news entry about "info dll" now being available
8371 on all platforms.
8372
8373 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8374
8375 * ada-lang.c (value_assign_to_component): Reformat and improve
8376 documentation. Remove all trailing spaces.
8377
8378 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8379
8380 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8381 Stop counting inlined frames as soon as an out-of-line function
8382 is found.
8383
8384 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8385
8386 * dwarf2read.c (inherit_abstract_dies): Skip
8387 DW_TAG_GNU_call_site dies while inheriting children of an
8388 abstract DIE into a scope.
8389 (read_lexical_block_scope): Inherit abstract DIE's for
8390 lexical scopes.
8391
8392 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8393
8394 * ada-valprint.c (val_print_packed_array_elements): Delete
8395 variable "len". Add a type-length check when comparing two
8396 consecutive elements of the array. Use the element's actual
8397 length in call to value_contents_eq.
8398 * ada-lang.c (ada_value_primitive_packed_val): Always return
8399 a value whose type has been resolved.
8400
8401 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8402
8403 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8404 BIT_SIZE and LEN if the size of the resolved type is smaller
8405 than BIT_SIZE * HOST_CHAR_BIT.
8406
8407 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8408
8409 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8410 correct address in call to value_at. Adjust call to
8411 value_address accordingly.
8412
8413 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8414
8415 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8416 to print it.
8417
8418 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8419
8420 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8421 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8422 pinfo->valaddr.
8423 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8424 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8425 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8426 Add handling of addr_stack->valaddr.
8427 (resolve_dynamic_type): Add "valaddr" parameter.
8428 Set pinfo.valaddr field.
8429 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8430 resolve_dynamic_type.
8431 (ada_discrete_type_low_bound): Likewise.
8432 * findvar.c (default_read_var_value): Likewise.
8433 * value.c (value_from_contents_and_address): Likewise.
8434
8435 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8436
8437 * gdbtypes.c (resolve_dynamic_array): Use
8438 create_array_type_with_stride instead of create_array_type.
8439
8440 2015-04-30 DJ Delorie <dj@redhat.com>
8441
8442 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8443 rl78_decode_opcode
8444
8445 2015-04-29 Doug Evans <dje@google.com>
8446
8447 PR python/18285
8448 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8449 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8450 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8451 * extension-priv.h (struct extension_language_ops)
8452 <get_xmethod_result_type>: New member.
8453 * extension.c (get_xmethod_result_type): New function.
8454 * extension.h (get_xmethod_result_type): Declare.
8455 * python/py-xmethods.c (get_result_type_method_name): New static
8456 global.
8457 (py_get_result_type_method_name): Ditto.
8458 (gdbpy_get_xmethod_result_type): New function.
8459 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8460 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8461 * python/python.c (python_extension_ops): Add
8462 gdbpy_get_xmethod_result_type.
8463 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8464 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8465 xmethods.
8466 (value_x_unop): Ditto.
8467 * value.c (result_type_of_xmethod): New function.
8468 * value.h (result_type_of_xmethod): Declare.
8469
8470 2015-04-29 Gary Benson <gbenson@redhat.com>
8471
8472 * solib.c (solib_find_1): Allow fd argument to be NULL.
8473 (exec_file_find): Update comment.
8474 (solib_find): Likewise.
8475 * exec.c (exec_file_locate_attach): Use NULL as fd
8476 argument to exec_file_find to avoid having to close
8477 the opened file.
8478 * infrun.c (follow_exec): Likewise.
8479
8480 2015-04-28 Doug Evans <dje@google.com>
8481
8482 PR python/18299
8483 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8484 name or __name__ attributes. Handle gdb module as first argument.
8485
8486 2015-04-28 Doug Evans <dje@google.com>
8487
8488 PR python/18089
8489 * python/py-prettyprint.c (print_children): Verify result of children
8490 iterator. Provide better error message.
8491 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8492 * python/python.c (gdbpy_print_python_errors_p): New function.
8493
8494 2015-04-28 Doug Evans <dje@google.com>
8495
8496 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8497
8498 2015-04-28 Sasha Smundak <asmundak@google.com>
8499
8500 * NEWS: Mention gdb.Type.optimized_out method.
8501 * python/py-type.c (typy_optimized_out): New function.
8502
8503 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8504
8505 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8506
8507 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8508
8509 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8510 (initialize_utils): Move call of init_page_info() to ...
8511 * top.c (gdb_init): ... here.
8512
8513 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8514
8515 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8516 (tui_sigwinch_handler): Still update our idea of
8517 the terminal's width and height even when TUI is not active.
8518
8519 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8520
8521 * utils.h (set_screen_width_and_height): Declare.
8522 * utils.c (set_screen_width_and_height): Define.
8523 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8524
8525 2015-04-28 Gary Benson <gbenson@redhat.com>
8526
8527 * infrun.c (solist.h): New include.
8528 (follow_exec): Use exec_file_find to prefix execd_pathname
8529 with gdb_sysroot.
8530
8531 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8532
8533 * tui/tui-source.c (tui_set_source_content): Avoid calling
8534 strcpy() when offset is 0.
8535
8536 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8537
8538 PR gdb/18155
8539 * tui/tui-data.c (tui_free_window): Don't free the locator
8540 window when passed an SRC_WIN or a DISASSEM_WIN.
8541
8542 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8543
8544 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8545 (tui_win_content): Move declaration.
8546 (struct tui_gen_win_info): Give 'content' field the
8547 type tui_win_content.
8548 * tui/tui-data.c (init_content_element): Remove redundant and
8549 erroneous casts.
8550 (tui_add_content_elements): Remove erroneous cast.
8551 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8552 casts.
8553 (tui_get_begin_asm_address): Likewise.
8554 * tui/tui-regs.c (tui_show_registers): Likewise.
8555 (tui_show_register_group): Likewise.
8556 (tui_display_registers_from): Likewise.
8557 (tui_check_register_values): Likewise.
8558 * tui/tui-source.c (tui_set_source_content): Likewise.
8559 (tui_set_source_content_nil): Likewise.
8560 (tui_source_is_displayed): Likewise.
8561 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8562 (tui_set_locator_fullname): Likewise.
8563 (tui_set_locator_info): Likewise.
8564 (tui_show_frame_info): Likewise.
8565 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8566 (tui_show_source_line): Likewise.
8567 (tui_horizontal_source_scroll): Likewise.
8568 (tui_update_breakpoint_info): Likewise.
8569 (tui_set_exec_info_content): Likewise.
8570 (tui_show_exec_info_content): Likewise.
8571 (tui_alloc_source_buffer): Likewise.
8572 (tui_line_is_displayed): Likewise.
8573 (tui_addr_is_displayed): Likewise.
8574
8575 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8576
8577 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8578 event if PL_FLAG_EXEC is set.
8579 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8580 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8581 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8582 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8583 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8584
8585 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8586
8587 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8588 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8589 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8590 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8591 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8592 [PT_LWPINFO] (fbsd_wait): New function.
8593 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8594 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8595 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8596 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8597 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8598 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8599 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8600 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8601 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8602 "fbsd_wait".
8603 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8604 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8605 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8606 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8607 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8608 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8609 Set "to_post_attach" to "fbsd_post_attach".
8610
8611 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8612
8613 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8614 (fbsd_find_memory_regions): Mark static.
8615 (fbsd_nat_add_target): New function.
8616 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8617 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8618 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8619 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8620 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8621 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8622
8623 2015-04-27 Gary Benson <gbenson@redhat.com>
8624
8625 * objfiles.c (allocate_objfile): Do not attempt to expand name
8626 if name is a "target:" filename.
8627 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8628 to load auto-load scripts for objfiles with "target:" filenames.
8629
8630 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8631
8632 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8633 (enum s390_vector_abi_kind): New enum.
8634 (struct gdbarch_tdep)<vector_abi>: New field.
8635 (s390_effective_inner_type): Add parameter min_size. Stop
8636 unwrapping if the inner type is smaller than min_size.
8637 (s390_function_arg_float): Adjust call to
8638 s390_effective_inner_type.
8639 (s390_function_arg_vector): New function.
8640 (s390_function_arg_integer): Adjust comment.
8641 (struct s390_arg_state)<vr>: New field.
8642 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8643 arguments according to vector ABI when appropriate.
8644 (s390_push_dummy_call): Initialize the argument state's field
8645 'vr'. Adjust calls to s390_handle_arg.
8646 (s390_register_return_value): Handle vector return values.
8647 (s390_return_value): Apply the "register" return value convention
8648 to a vector when appropriate.
8649 (s390_gdbarch_init): Initialize tdep->vector_abi.
8650 * NEWS: Announce S390 vector ABI support.
8651
8652 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8653
8654 * s390-linux-tdep.c (s390_return_value_convention): Remove
8655 function. Inline its logic...
8656 (s390_return_value): ...here. Instead, move the handling of the
8657 "register" return value convention...
8658 (s390_register_return_value): ...here. New function.
8659
8660 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8661
8662 * s390-linux-tdep.c
8663 (is_float_singleton): Remove function. Move the "singleton" part
8664 of the logic...
8665 (s390_effective_inner_type): ...here. New function.
8666 (is_float_like): Remove function. Inline its logic...
8667 (s390_function_arg_float): ...here.
8668 (is_pointer_like, is_integer_like, is_struct_like): Remove
8669 functions. Inline their logic...
8670 (s390_function_arg_integer): ...here.
8671 (s390_function_arg_pass_by_reference): Remove function.
8672 (extend_simple_arg): Remove function.
8673 (alignment_of): Remove function.
8674 (struct s390_arg_state): New structure.
8675 (s390_handle_arg): New function.
8676 (s390_push_dummy_call): Move parameter placement logic to the new
8677 function s390_handle_arg. Call it for calculating the stack area
8678 sizes first, and again for actually writing the parameters.
8679
8680 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8681
8682 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8683 false if the argument is zero.
8684
8685 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8686
8687 * ada-lang.c (template_to_static_fixed_type): Return input type
8688 when it is already fixed. Cache the input type itself when not
8689 creating a static fixed copy. Make it explicit that we never
8690 molestate the input type.
8691 * gdbtypes.c (resolve_dynamic_struct): Reset the
8692 TYPE_TARGET_TYPE field for resolved copies.
8693
8694 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8695
8696 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8697 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8698 (template_to_static_fixed_type): Call ada_check_typedef only
8699 when necessary.
8700
8701 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8702
8703 * cli/cli-dump.c (srec_dump_command): Add internationalization
8704 mark ups.
8705 (ihex_dump_command): Likewise.
8706 (tekhex_dump_command): Likewise.
8707 (binary_dump_command): Likewise.
8708 (binary_append_command): Likewise.
8709
8710 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 * cli/cli-dump.c (verilog_cmdlist): New variable.
8713 (dump_verilog_memory): New function.
8714 (dump_verilog_value): New function.
8715 (verilog_dump_command): New function.
8716 (_initialize_cli_dump): Add new commands to support verilog dump
8717 format.
8718 * NEWS: Add entry for "dump verilog".
8719
8720 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8721
8722 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8723 descriptive type when there is none.
8724
8725 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8726
8727 * tui/tui-win.c (tui_async_resize_screen): Call
8728 rl_resize_terminal().
8729
8730 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8731
8732 * windows-nat.c (handle_output_debug_string): Don't change
8733 current_event.dwThreadId.
8734 (get_windows_debug_event): Use thread_id, rather than relying on
8735 current_event.dwThreadId being changed.
8736
8737 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8738
8739 * windows-nat.c (windows_continue): Report an error if
8740 ContinueDebugEvent() fails.
8741
8742 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8743
8744 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8745
8746 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8747
8748 * windows-nat.c (get_windows_debug_event): Replace retval with
8749 thread_id throughout. Update stale comment.
8750
8751 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8752
8753 * windows-nat.c (get_windows_debug_event): Don't use ternary
8754 conditional operator.
8755
8756 2015-04-21 Pierre Muller <muller@sourceware.org>
8757
8758 PR pascal/17815
8759 p-exp.y (yylex): Reorganize code to return the matched pattern
8760 for a field of this.
8761
8762 2015-04-21 Gary Benson <gbenson@redhat.com>
8763
8764 * common/fileio.h (fileio_to_host_openflags): New declaration.
8765 * common/fileio.c (fcntl.h): New include.
8766 (fileio_to_host_openflags): New function, factored out from...
8767 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8768 Single use updated.
8769
8770 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8771
8772 * rl78-tdep.c (RL78_SP_ADDR): Define.
8773 (opc_reg_to_gdb_regnum): New static function.
8774 (rl78_analyze_prologue): Recognize instructions forming slightly
8775 more interesting prologues.
8776
8777 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8778
8779 Revert:
8780 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8781 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8782 TYPE_CODE_REF types so that they are not considered as dynamic
8783 depending on the referenced type.
8784 (resolve_dynamic_type_internal): Likewise.
8785
8786 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8787
8788 Revert:
8789 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8790 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8791 "top_level" parameter.
8792 (resolve_dynamic_type_internal): Remove the unused "top_level"
8793 parameter. Update call to is_dynamic_type_internal.
8794 (is_dynamic_type): Update call to is_dynamic_type_internal.
8795 (resolve_dynamic_range): Update call to
8796 resolve_dynamic_type_internal.
8797 (resolve_dynamic_union): Likewise.
8798 (resolve_dynamic_struct): Likewise.
8799 (resolve_dynamic_type): Likewise.
8800
8801 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8802
8803 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8804 xmalloc.
8805
8806 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8807
8808 * reply_mig_hack.awk: Robustify parsing.
8809
8810 * reply_mig_hack.awk: Don't bother to declare an intermediate
8811 function pointer variable.
8812
8813 2015-04-17 Doug Evans <dje@google.com>
8814
8815 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8816 to "exec_displacement" to avoid confusion with inner use of the name.
8817
8818 2015-04-17 Pedro Alves <palves@redhat.com>
8819
8820 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8821 if HW point of TYPE isn't supported.
8822
8823 2015-04-17 Yao Qi <yao.qi@linaro.org>
8824 Pedro Alves <palves@redhat.com>
8825
8826 * target.h (target_can_use_hardware_watchpoint): Update comments.
8827 Remove trailing ";".
8828
8829 2015-04-17 Gary Benson <gbenson@redhat.com>
8830
8831 * remote.c (remote_add_inferior): New argument try_open_exec.
8832 If nonzero, attempt to open the inferior's executable file as
8833 the main executable if no main executable is open already.
8834 All callers updated.
8835 * NEWS: Mention that GDB now supports automatic location and
8836 retrieval of executable + files from remote targets.
8837
8838 2015-04-17 Gary Benson <gbenson@redhat.com>
8839
8840 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8841 * remote.c (PACKET_qXfer_exec_file): Likewise.
8842 (remote_protocol_features): Register the
8843 "qXfer:exec-file:read" feature.
8844 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8845 (remote_pid_to_exec_file): New function.
8846 (init_remote_ops): Initialize to_pid_to_exec_file.
8847 (_initialize_remote): Register new "set/show remote
8848 pid-to-exec-file-packet" command.
8849 * NEWS: Announce new qXfer:exec-file:read packet.
8850
8851 2015-04-17 Gary Benson <gbenson@redhat.com>
8852
8853 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8854 New declaration.
8855 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8856 New function, factored out from...
8857 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8858
8859 2015-04-17 Gary Benson <gbenson@redhat.com>
8860
8861 * exec.c (solist.h): New include.
8862 (exec_file_locate_attach): Prefix absolute executable
8863 paths with gdb_sysroot if set.
8864 * NEWS: Mention that executable paths may be prepended
8865 with sysroot.
8866
8867 2015-04-17 Gary Benson <gbenson@redhat.com>
8868
8869 * solist.h (exec_file_find): New declaration.
8870 * solib.c (solib_find_1): New function, factored out from...
8871 (solib_find): ...here.
8872 (exec_file_find): New function.
8873
8874 2015-04-17 Gary Benson <gbenson@redhat.com>
8875
8876 * gdbcore.h (exec_file_locate_attach): New declaration.
8877 * exec.c (exec_file_locate_attach): New function, factored
8878 out from...
8879 * infcmd.c (attach_command_post_wait): ...here.
8880
8881 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8882
8883 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8884
8885 2015-04-16 Yao Qi <yao.qi@linaro.org>
8886
8887 * infrun.c (maybe_software_singlestep): Declare.
8888 (displaced_step_fixup): Call maybe_software_singlestep.
8889
8890 2015-04-15 Doug Evans <dje@google.com>
8891
8892 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8893
8894 2015-04-15 Doug Evans <dje@google.com>
8895
8896 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8897
8898 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8899
8900 * python/lib/gdb/command/unwinders.py: Add parentheses.
8901
8902 2015-04-15 Yao Qi <yao.qi@linaro.org>
8903
8904 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8905
8906 2015-04-15 Yao Qi <yao.qi@linaro.org>
8907
8908 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8909
8910 2015-04-15 Yao Qi <yao.qi@linaro.org>
8911
8912 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8913 dsc->insn_size instead of 4.
8914
8915 2015-04-14 Gary Benson <gbenson@redhat.com>
8916
8917 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8918 * minidebug.c (lzma_stat): Likewise.
8919 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8920 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8921
8922 2015-04-13 Stan Shebs <stanshebs@google.com>
8923
8924 * MAINTAINERS: Update my email address.
8925
8926 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8927
8928 * amd64-tdep.c (amd64_target_description): New function.
8929 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8930 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8931 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8932 x86 extended save area.
8933 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8934 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8935 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8936 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8937 "amd64fbsd_read_description".
8938 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8939 (amd64fbsd_supply_xstateregset): New function.
8940 (amd64fbsd_collect_xstateregset): New function.
8941 Add "amd64fbsd_xstateregset".
8942 (amd64fbsd_iterate_over_regset_sections): New function.
8943 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8944 "I386_FBSD_XSAVE_XCR0_OFFSET".
8945 Add "iterate_over_regset_sections" gdbarch method.
8946 Add "core_read_description" gdbarch method.
8947 * i386-tdep.c (i386_target_description): New function.
8948 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8949 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8950 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8951 x86 extended save area.
8952 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8953 * i386bsd-nat.h: Export i386bsd_xsave_len.
8954 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8955 (_initialize_i386fbsd_nat): Set "to_read_description" to
8956 "i386fbsd_read_description".
8957 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8958 (i386fbsd_core_read_description): New function.
8959 (i386fbsd_supply_xstateregset): New function.
8960 (i386fbsd_collect_xstateregset): New function.
8961 Add "i386fbsd_xstateregset".
8962 (i386fbsd_iterate_over_regset_sections): New function.
8963 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8964 "I386_FBSD_XSAVE_XCR0_OFFSET".
8965 Add "iterate_over_regset_sections" gdbarch method.
8966 Add "core_read_description" gdbarch method.
8967 * i386fbsd-tdep.h: New file.
8968
8969 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8970
8971 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8972 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8973 conditional.
8974 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8975 and lb.
8976 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8977 va.
8978 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8979 conditional.
8980 * defs.h (xdb_commands): Remove declaration.
8981 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8982 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8983 * infcmd.c (run_no_args_command, go_command): Remove.
8984 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8985 * infrun.c (xdb_handle_command): Remove.
8986 (_initialize_infrun): Remove xdb_commands for lz and z.
8987 * main.c (xdb_commands): Remove variable.
8988 (captured_main): Remove "xdb" from long_options.
8989 (print_gdb_help): Remove --xdb from help.
8990 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8991 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8992 * stack.c (backtrace_full_command, args_plus_locals_info)
8993 (current_frame_command): Remove.
8994 (_initialize_stack): Remove xdb_commands for t, T and l.
8995 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8996 * thread.c (_initialize_thread): Remove xdb_commands condition.
8997 * tui/tui-layout.c (tui_toggle_layout_command)
8998 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8999 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9000 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9001 (tui_scroll_regs_backward_command): Remove.
9002 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9003 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9004 (_initialize_tui_win): Remove xdb_commands for U and w.
9005 * utils.c (pagination_on_command, pagination_off_command): Remove.
9006 (initialize_utils): Remove xdb_commands for am and sm.
9007
9008 2015-04-10 Pedro Alves <palves@redhat.com>
9009
9010 * infrun.c (displaced_step_fixup): Switch to the event ptid
9011 earlier. If the thread stopped for a watchpoint and the
9012 target/arch has non-continuable watchpoints, cancel the displaced
9013 step.
9014 (resume): Don't start a displaced step if in-line step-over info
9015 is valid.
9016
9017 2015-04-10 Pedro Alves <palves@redhat.com>
9018
9019 * infrun.c (displaced_step_in_progress): New function.
9020 (do_target_resume): Advise target to report all signals if
9021 displaced stepping.
9022
9023 2015-04-10 Pedro Alves <palves@redhat.com>
9024
9025 PR gdb/18216
9026 * infrun.c (process_event_stop_test): Don't assume a step-resume
9027 is set if tp->stepped_breakpoint is true.
9028
9029 2015-04-10 Yao Qi <yao.qi@linaro.org>
9030
9031 * arm-tdep.c (install_alu_reg): Update comment.
9032 (thumb_copy_alu_reg): Remove local variable rn. Update
9033 debugging message. Use r2 instead of r1 in the modified
9034 instruction.
9035
9036 2015-04-10 Pedro Alves <palves@redhat.com>
9037
9038 PR gdb/13858
9039 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9040 linux_displaced_step_location as gdbarch_displaced_step_location
9041 hook.
9042 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9043 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9044 * linux-tdep.c (linux_displaced_step_location): New function,
9045 based on ppc_linux_displaced_step_location.
9046 * linux-tdep.h (linux_displaced_step_location): New declaration.
9047 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9048 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9049 Delete.
9050 (ppc_linux_init_abi): Install linux_displaced_step_location as
9051 gdbarch_displaced_step_location hook, even without Cell/B.E..
9052 (_initialize_ppc_linux_tdep): Don't install
9053 ppc_linux_inferior_created as inferior_created observer.
9054 * s390-linux-tdep.c (s390_gdbarch_init): Install
9055 linux_displaced_step_location as gdbarch_displaced_step_location
9056 hook.
9057
9058 2015-04-09 Gary Benson <gbenson@redhat.com>
9059
9060 * common/common-remote-fileio.h: Rename to...
9061 * common/fileio.h: ...this. Update all references.
9062 (remote_fileio_to_fio_error): Rename to...
9063 (host_to_fileio_error): ...this.
9064 (remote_fileio_to_be): Rename to...
9065 (host_to_bigendian): ...this. Update all callers.
9066 (remote_fileio_to_fio_uint): Rename to...
9067 (host_to_fileio_uint): ...this. Update all callers.
9068 (remote_fileio_to_fio_time): Rename to...
9069 (host_to_fileio_time): ...this. Update all callers.
9070 (remote_fileio_to_fio_stat): Rename to...
9071 (host_to_fileio_stat): ...this.
9072 Update all references.
9073 * common/common-remote-fileio.c: Rename to...
9074 * common/fileio.c: ...this. Update all references.
9075 (remote_fileio_to_fio_error): Rename to...
9076 (host_to_fileio_error): ...this. Update all callers.
9077 (remote_fileio_mode_to_target): Rename to...
9078 (fileio_mode_pack): ...this. Update all callers.
9079 (remote_fileio_to_fio_mode): Rename to...
9080 (host_to_fileio_mode): ...this. Update all callers.
9081 (remote_fileio_to_fio_ulong): Rename to...
9082 (host_to_fileio_ulong): ...this. Update all callers.
9083 (remote_fileio_to_fio_stat): Rename to...
9084 (host_to_fileio_stat): ...this. Update all callers.
9085
9086 2015-04-09 Andy Wingo <wingo@igalia.com>
9087
9088 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9089 (frame_functions): Bind gdbscm_frame_read_register to
9090 frame-read-register.
9091 * guile/lib/gdb.scm (frame-read-register): Export.
9092
9093 2015-04-09 Gary Benson <gbenson@redhat.com>
9094
9095 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9096 New declaration.
9097 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9098 New function, factored out the named functions below.
9099 * inf-child.c (gdb/fileio.h): Remove include.
9100 (common-remote-fileio.h): New include.
9101 (inf_child_errno_to_fileio_error): Remove function. Update
9102 all callers to use remote_fileio_to_fio_error.
9103 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9104
9105 2015-04-09 Andy Wingo <wingo@igalia.com>
9106
9107 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9108
9109 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9110
9111 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9112 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9113 * configure: Regenerated.
9114
9115 2015-04-09 Pedro Alves <palves@redhat.com>
9116
9117 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9118 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9119 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9120 * gnulib/import/Makefile.am: Update.
9121 * gnulib/import/Makefile.in: Update.
9122 * gnulib/import/m4/gnulib-cache.m4: Update.
9123 * gnulib/import/m4/gnulib-comp.m4: Update.
9124 * gnulib/import/m4/strtok_r.m4: New file.
9125 * gnulib/import/strtok_r.c: New file.
9126
9127 2015-04-09 Pedro Alves <palves@redhat.com>
9128
9129 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9130 "called too early to check prototype".
9131
9132 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9133
9134 PR python/16699
9135 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9136 use a caching mechanism. Adjust comments and code to reflect
9137 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9138 (cmdpy_completer_handle_brkchars): Adjust call to
9139 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9140 (cmdpy_completer): Likewise.
9141
9142 2015-04-08 Yao Qi <yao.qi@linaro.org>
9143
9144 * spu-tdep.c (spu_gdbarch_init): Don't call
9145 set_gdbarch_cannot_step_breakpoint.
9146
9147 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9148
9149 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9150
9151 2015-04-07 Pedro Alves <palves@redhat.com>
9152
9153 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9154 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9155 (delete_exited_threads): New declaration.
9156 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9157 * linux-nat.c (linux_nat_update_thread_list): New function.
9158 (linux_nat_add_target): Install it.
9159 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9160 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9161 (delete_exited_threads): New function.
9162
9163 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9164
9165 * infrun.c (resume) <displaced stepping debug output>: Get the
9166 leader thread's regcache, not resume_ptid's.
9167
9168 2015-04-06 Doug Evans <xdje42@gmail.com>
9169
9170 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9171 VAR_DOMAIN.
9172 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9173 Include symbol domain in debugging output.
9174
9175 2015-04-06 Pedro Alves <palves@redhat.com>
9176 Bernd Edlinger <bernd.edlinger@hotmail.de>
9177
9178 * configure.ac: Remove the mingw32-specific stub-termcap.o
9179 fallback, and instead fallback to the stub termcap on all hosts.
9180 * configure: Regenerate.
9181 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9182 symbols.
9183
9184 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9185
9186 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9187 "top_level" parameter.
9188 (resolve_dynamic_type_internal): Remove the unused "top_level"
9189 parameter. Update call to is_dynamic_type_internal.
9190 (is_dynamic_type): Update call to is_dynamic_type_internal.
9191 (resolve_dynamic_range): Update call to
9192 resolve_dynamic_type_internal.
9193 (resolve_dynamic_union): Likewise.
9194 (resolve_dynamic_struct): Likewise.
9195 (resolve_dynamic_type): Likewise.
9196
9197 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9198
9199 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9200 TYPE_CODE_REF types so that they are not considered as dynamic
9201 depending on the referenced type.
9202 (resolve_dynamic_type_internal): Likewise.
9203
9204 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9205
9206 * Makefile.in (top_srcdir): New.
9207 * configure: Regenerated.
9208
9209 2015-04-02 Gary Benson <gbenson@redhat.com>
9210
9211 * NEWS: Announce the new default sysroot of "target:".
9212
9213 2015-04-02 Gary Benson <gbenson@redhat.com>
9214
9215 * main.c (captured_main): Set gdb_sysroot to "target:"
9216 if not otherwise set.
9217
9218 2015-04-02 Gary Benson <gbenson@redhat.com>
9219
9220 * exec.c (exec_file_attach): Support "target:" filenames.
9221
9222 2015-04-02 Gary Benson <gbenson@redhat.com>
9223
9224 * solib.c (solib_find): Strip "target:" prefix from sysroot
9225 if accessing local files.
9226
9227 2015-04-02 Gary Benson <gbenson@redhat.com>
9228
9229 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9230 checks and error messages.
9231
9232 2015-04-02 Gary Benson <gbenson@redhat.com>
9233
9234 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9235 (remote_filename_p): Remove declaration.
9236 (remote_bfd_open): Likewise.
9237 * remote.c (remote_bfd_iovec_open): Remove function.
9238 (remote_bfd_iovec_close): Likewise.
9239 (remote_bfd_iovec_pread): Likewise.
9240 (remote_bfd_iovec_stat): Likewise.
9241 (remote_filename_p): Likewise.
9242 (remote_bfd_open): Likewise.
9243 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9244 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9245 (gdb_bfd_open_maybe_remote): Remove function.
9246 (symfile_bfd_open): Replace remote filename check with
9247 target filename check.
9248 (reread_symbols): Use gdb_bfd_open.
9249 * build-id.c (gdbcore.h): New include.
9250 (build_id_to_debug_bfd): Use gdb_bfd_open.
9251 * infcmd.c (attach_command_post_wait): Remove remote filename
9252 check.
9253 * solib.c (solib_find): Replace remote-specific handling with
9254 target-specific handling. Update comments where necessary.
9255 (solib_bfd_open): Replace remote-specific handling with
9256 target-specific handling.
9257 (gdb_sysroot_changed): New function.
9258 (_initialize_solib): Call the above when gdb_sysroot changes.
9259 * windows-tdep.c (gdbcore.h): New include.
9260 (windows_xfer_shared_library): Use gdb_bfd_open.
9261
9262 2015-04-02 Gary Benson <gbenson@redhat.com>
9263
9264 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9265 (is_target_filename): New declaration.
9266 (gdb_bfd_has_target_filename): Likewise.
9267 (gdb_bfd_open): Update documentation comment.
9268 * gdb_bfd.c (target.h): New include.
9269 (gdb/fileio.h): Likewise.
9270 (is_target_filename): New function.
9271 (gdb_bfd_has_target_filename): Likewise.
9272 (fileio_errno_to_host): Likewise.
9273 (gdb_bfd_iovec_fileio_open): Likewise.
9274 (gdb_bfd_iovec_fileio_pread): Likewise.
9275 (gdb_bfd_iovec_fileio_close): Likewise.
9276 (gdb_bfd_iovec_fileio_fstat): Likewise.
9277 (gdb_bfd_open): Use target fileio to access paths prefixed
9278 with "target:" where necessary.
9279
9280 2015-04-02 Gary Benson <gbenson@redhat.com>
9281
9282 * target.h (struct target_ops) <to_filesystem_is_local>:
9283 New field.
9284 (target_filesystem_is_local): New macro.
9285 * target-delegates.c: Regenerate.
9286 * remote.c (remote_filesystem_is_local): New function.
9287 (init_remote_ops): Initialize to_filesystem_is_local.
9288
9289 2015-04-02 Gary Benson <gbenson@redhat.com>
9290
9291 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9292 (target_fileio_fstat): New declaration.
9293 * target.c (target_fileio_fstat): New function.
9294 * inf-child.c (inf_child_fileio_fstat): Likewise.
9295 (inf_child_target): Initialize to_fileio_fstat.
9296 * remote.c (init_remote_ops): Likewise.
9297
9298 2015-04-01 Sasha Smundak <asmundak@google.com>
9299
9300 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9301 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9302 (py-unwind.o): New recipe.
9303 * NEWS: mention Python frame unwinding.
9304 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9305 gdb/unwinder.py and gdb/command/unwinder.py
9306 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9307 list.
9308 (execute_unwinders): New function.
9309 * python/lib/gdb/command/unwinders.py: New file.
9310 * python/lib/gdb/unwinder.py: New file.
9311 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9312 (objfpy_dealloc): Decrement frame_unwinders reference count.
9313 (objfpy_initialize): Create frame_unwinders list.
9314 (objfpy_get_frame_unwinders): New function.
9315 (objfpy_set_frame_unwinders): Ditto.
9316 (objfile_getset): Add frame_unwinders attribute to Objfile.
9317 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9318 (pspy_dealloc): Decrement frame_unwinders reference count.
9319 (pspy_initialize): Create frame_unwinders list.
9320 (pspy_get_frame_unwinders): New function.
9321 (pspy_set_frame_unwinders): Ditto.
9322 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9323 * python/py-unwind.c: New file.
9324 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9325 (objpy_get_frame_unwinders): New prototype.
9326 (gdbpy_initialize_unwind): New prototype.
9327 * python/python.c (gdbpy_apply_type_printers): Call
9328 gdbpy_initialize_unwind.
9329
9330 2015-04-01 Pedro Alves <palves@redhat.com>
9331
9332 * infrun.c (resume): Check currently_stepping after clearing
9333 stepped_breakpoint, not before.
9334
9335 2015-04-01 Pedro Alves <palves@redhat.com>
9336
9337 * infrun.c (print_target_wait_results): Print all the ptid
9338 elements.
9339
9340 2015-04-01 Pedro Alves <palves@redhat.com>
9341
9342 * infrun.c (keep_going): Also discard cleanups if inserting
9343 breakpoints fails.
9344
9345 2015-04-01 Pedro Alves <palves@redhat.com>
9346
9347 * infrun.c (wait_for_inferior): Install the
9348 finish_thread_state_cleanup cleanup across the whole function, not
9349 just around handle_inferior_event.
9350
9351 2015-04-01 Pedro Alves <palves@redhat.com>
9352
9353 * infrun.c (resume) <step past permanent breakpoint>: Use
9354 do_target_resume.
9355
9356 2015-04-01 Pedro Alves <palves@redhat.com>
9357
9358 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9359
9360 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9361
9362 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9363
9364 2015-04-01 Pedro Alves <palves@redhat.com>
9365
9366 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9367 list if it was marked exited.
9368
9369 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9370
9371 * configure: Regenerated.
9372
9373 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9374 Jan Kratochvil <jan.kratochvil@redhat.com>
9375 Oleg Nesterov <oleg@redhat.com>
9376
9377 PR corefiles/16092
9378 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9379 New enum identifying the various options of the coredump_filter
9380 file.
9381 (struct smaps_vmflags): New struct.
9382 (use_coredump_filter): New variable.
9383 (decode_vmflags): New function.
9384 (mapping_is_anonymous_p): Likewise.
9385 (dump_mapping_p): Likewise.
9386 (linux_find_memory_regions_full): New variables
9387 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9388 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9389 parsing of its information. Implement memory mapping filtering
9390 based on its contents.
9391 (show_use_coredump_filter): New function.
9392 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9393 * NEWS: Mention the possibility of using the
9394 '/proc/PID/coredump_filter' file when generating a corefile.
9395 Mention new command 'set use-coredump-filter'.
9396
9397 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9398
9399 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9400 read_memory_unsigned_integer.
9401
9402 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9403
9404 * Makefile.in (ZLIB): New.
9405 (ZLIBINC): Likewise.
9406 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9407 (CLIBS): Add $(ZLIB).
9408 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9409 Add -lz to LIBS.
9410 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9411 * top.c (print_gdb_configuration): Remove --with-zlib and
9412 --without-zlib.
9413 * config.in: Regenerated.
9414 * configure: Likewise.
9415
9416 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9417
9418 * NEWS: Mention info os cpus support.
9419 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9420 (struct osdata_type): Add cpus entry, reorder the entries in
9421 alphabetical order.
9422
9423 2015-03-31 Matthias Klose <doko@ubuntu.com>
9424
9425 * compile/compile.c (compile_to_object): Allow triplets with or
9426 without vendor set.
9427
9428 2015-03-30 Doug Evans <dje@google.com>
9429
9430 PR c++/18141
9431 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9432 klass in VAR_DOMAIN.
9433
9434 2015-03-30 Gary Benson <gbenson@redhat.com>
9435
9436 * remote.c (remote_mourn_1): Remove function. Update all callers
9437 to use remote_mourn.
9438 (extended_remote_mourn_1): Remove function. Update all callers
9439 to use extended_remote_mourn.
9440 (extended_remote_attach_1): Remove function. Update all callers
9441 to use extended_remote_attach.
9442
9443 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9444
9445 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9446 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9447 (ALLDEPFILES): Add ft32-tdep.c.
9448 * configure.tgt: Add FT32 entry.
9449 * ft32-tdep.c: New file, FT32 target-dependent code.
9450 * ft32-tdep.h: New file, FT32 target-dependent code.
9451
9452 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9453
9454 Revert:
9455 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9456 Code cleanup.
9457 * printcmd.c (print_command_1): Move expr variable scope.
9458
9459 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9460
9461 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9462
9463 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9464
9465 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9466 sections.
9467
9468 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9469
9470 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9471 exception raised while parsing the probe arguments.
9472 Force parsing to be done using the C language parser.
9473 * expression.h (parse_expression_with_language): Declare.
9474 * parse.c (parse_expression_with_language): New function.
9475
9476 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9477
9478 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9479
9480 2015-03-26 Andy Wingo <wingo@igalia.com>
9481
9482 PR symtab/18148
9483 * dwarf2read.c (struct partial_die_info): Add has_const_value
9484 member.
9485 (add_partial_symbol): Don't punt on symbols that have const_value
9486 attributes.
9487 (read_partial_die): Detect DW_AT_const_value.
9488
9489 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9490
9491 Code cleanup.
9492 * printcmd.c (print_command_1): Move expr variable scope.
9493
9494 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9495
9496 Code cleanup.
9497 * printcmd.c (validate_format): Make the parameter cmdname const.
9498
9499 2015-03-26 Don Breazeal <donb@codesourcery.com>
9500
9501 * remote.c (_initialize_remote): Update comment.
9502
9503 2015-03-26 Pedro Alves <palves@redhat.com>
9504 Jon TURNEY <jon.turney@dronecode.org.uk>
9505
9506 * coffread.c (coff_symfile_read): When constructing the name of an
9507 import stub symbol from import symbol for amd64, only skip the
9508 char after _imp_ if the target is underscored (like i386) and the
9509 char is indeed the target's leading char.
9510
9511 2015-03-25 Pedro Alves <palves@redhat.com>
9512
9513 * target.h <to_async>: Replace 'callback' and 'context' parameters
9514 with boolean 'enable' parameter.
9515 (target_async): Replace CALLBACK and CONTEXT parameters with
9516 boolean ENABLE parameter.
9517 * inf-loop.c (inferior_event_handler): Adjust.
9518 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9519 (linux_nat_resume): Adjust.
9520 (async_client_callback, async_client_context): Delete.
9521 (handle_target_event): Call inferior_event_handler directly.
9522 (linux_nat_async): Replace 'callback' and 'context' parameters
9523 with boolean 'enable' parameter. Adjust. Remove references to
9524 async_client_callback and async_client_context.
9525 (linux_nat_close): Adjust.
9526 * record-btrace.c (record_btrace_async): Replace 'callback' and
9527 'context' parameters with boolean 'enable' parameter. Adjust.
9528 (record_btrace_resume): Adjust.
9529 * record-full.c (record_full_async): Replace 'callback' and
9530 'context' parameters with boolean 'enable' parameter. Adjust.
9531 (record_full_resume, record_full_core_resume): Adjust.
9532 * remote.c (struct remote_state) <async_client_callback,
9533 async_client_context>: Delete fields.
9534 (remote_start_remote, extended_remote_attach_1, remote_resume)
9535 (extended_remote_create_inferior): Adjust.
9536 (remote_async_serial_handler): Call inferior_event_handler
9537 directly.
9538 (remote_async): Replace 'callback' and 'context' parameters with
9539 boolean 'enable' parameter. Adjust.
9540 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9541 Adjust.
9542 * target-delegates.c: Regenerate.
9543
9544 2015-03-25 Gary Benson <gbenson@redhat.com>
9545 Pedro Alves <palves@redhat.com>
9546
9547 * target.c (fileio_ft_t): New typedef, define object vector.
9548 (fileio_fhandles): New static variable.
9549 (is_closed_fileio_fh): New macro.
9550 (lowest_closed_fd): New static variable.
9551 (acquire_fileio_fd): New function.
9552 (release_fileio_fd): Likewise.
9553 (fileio_fd_to_fh): New macro.
9554 (target_fileio_open): Wrap the file descriptor on success.
9555 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9556 (target_fileio_pread): Likewise.
9557 (target_fileio_close): Likewise.
9558
9559 2015-03-24 Pedro Alves <palves@redhat.com>
9560
9561 * thread.c (thread_apply_all_command): Take exited threads into
9562 account.
9563
9564 2015-03-24 Pedro Alves <palves@redhat.com>
9565
9566 * infrun.c (resume, proceed): Mention
9567 switch_back_to_stepped_thread, not switch_back_to_stepping.
9568
9569 2015-03-24 Pedro Alves <palves@redhat.com>
9570
9571 * infrun.c (user_visible_resume_ptid): Rewrite going from
9572 most-locked to unlocked instead of the opposite. Move comment ...
9573 * infrun.h (user_visible_resume_ptid): ... here.
9574
9575 2015-03-24 Pedro Alves <palves@redhat.com>
9576
9577 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9578 to resume the event lwp. Use the lwp's ptid instead of the passed
9579 in (maybe wildcard) ptid.
9580 (stop_wait_callback): Tweak debug log output.
9581 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9582 TRAP_TRACE.
9583 (linux_nat_filter_event): In debug output, distinguish a
9584 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9585 before trying to resume the lwp.
9586
9587 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9588
9589 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9590 pointer indirection.
9591 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9592 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9593
9594 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9595
9596 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9597 Renames DYN_ATTR_DATA_LOCATION.
9598 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9599 DYN_ATTR_DATA_LOCATION.
9600 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9601 instead of DYN_ATTR_DATA_LOCATION.
9602
9603 2015-03-24 Pedro Alves <palves@redhat.com>
9604
9605 * breakpoint.c (until_break_command): Adjust call to proceed.
9606 * gdbthread.h (struct thread_control_state) <stepping_command>:
9607 New field.
9608 * infcall.c (run_inferior_call): Adjust call to proceed.
9609 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9610 Adjust calls to proceed.
9611 (set_step_frame): Set the current thread's step_start_function
9612 here.
9613 (step_once): Adjust calls to proceed.
9614 (jump_command, signal_command, until_next_command)
9615 (finish_backward, finish_forward, proceed_after_attach_callback)
9616 (attach_command_post_wait): Adjust calls to proceed.
9617 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9618 (do_target_resume): New function, factored out from ...
9619 (resume): ... here. Remove 'step' parameter. Instead, check
9620 currently_stepping to determine whether the thread should be
9621 single-stepped.
9622 (proceed): Remove 'step' parameter and don't set the thread's
9623 step_start_function here. Adjust call to 'resume'.
9624 (handle_inferior_event): Adjust calls to 'resume'.
9625 (switch_back_to_stepped_thread): Use do_target_resume instead of
9626 'resume'.
9627 (keep_going): Adjust calls to 'resume'.
9628 * infrun.h (proceed): Remove 'step' parameter.
9629 (resume): Likewise.
9630 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9631 'resume'.
9632 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9633
9634 2015-03-24 Pedro Alves <palves@redhat.com>
9635
9636 * gdbthread.h (struct thread_control_state) <stepping_command>:
9637 New field.
9638 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9639 the thread's stepping_command field.
9640 * infrun.c (resume): Check the thread's stepping_command flag to
9641 determine which threads should be resumed. Rename 'entry_step'
9642 local to user_step.
9643 (clear_proceed_status_thread): Clear 'stepping_command'.
9644 (schedlock_applies): Change parameter type to struct thread_info
9645 pointer. Adjust.
9646 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9647 (switch_back_to_stepped_thread): Adjust calls to
9648 'schedlock_applies'.
9649 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9650
9651 2015-03-24 Pedro Alves <palves@redhat.com>
9652
9653 * infrun.c (step_start_function): Delete and ...
9654 * gdbthread.h (struct thread_control_state) <step_start_function>:
9655 ... now a field here.
9656 * infrun.c (clear_proceed_status_thread): Clear the thread's
9657 step_start_function.
9658 (proceed, process_event_stop_test, print_stop_event): Adjust.
9659
9660 2015-03-24 Pedro Alves <palves@redhat.com>
9661
9662 * infrun.c (proceed): No longer handle negative step.
9663
9664 2015-03-24 Gary Benson <gbenson@redhat.com>
9665
9666 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9667 (x86_linux_prepare_to_resume): Likewise.
9668 * x86-linux-nat.c (x86_linux_new_thread):
9669 Moved to nat/x86-linux.c.
9670 (x86_linux_prepare_to_resume): Likewise.
9671 * nat/x86-linux.c (x86_linux_new_thread): New function.
9672 (x86_linux_prepare_to_resume): Likewise.
9673
9674 2015-03-24 Gary Benson <gbenson@redhat.com>
9675
9676 * nat/x86-linux-dregs.h: New file.
9677 * nat/x86-linux-dregs.c: Likewise.
9678 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9679 (x86-linux-dregs.o): New rule.
9680 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9681 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9682 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9683 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9684 (x86_linux_dr_get): Likewise.
9685 (x86_linux_dr_set): Likewise.
9686 (x86_linux_dr_get_addr): Likewise.
9687 (x86_linux_dr_get_control): Likewise.
9688 (x86_linux_dr_get_status): Likewise.
9689 (update_debug_registers_callback): Likewise.
9690 (x86_linux_dr_set_control): Likewise.
9691 (x86_linux_dr_set_addr): Likewise.
9692 (x86_linux_update_debug_registers): Likewise.
9693
9694 2015-03-24 Gary Benson <gbenson@redhat.com>
9695
9696 * x86-linux-nat.c (x86_linux_update_debug_registers):
9697 New function, factored out from...
9698 (x86_linux_prepare_to_resume): ...this.
9699
9700 2015-03-24 Gary Benson <gbenson@redhat.com>
9701
9702 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9703 (x86_linux_dr_set): Likewise.
9704 (x86_linux_dr_get_addr): Likewise.
9705 (x86_linux_dr_get_control): Likewise.
9706 (x86_linux_dr_get_status): Likewise.
9707 (update_debug_registers_callback): Likewise.
9708 (x86_linux_dr_set_control): Likewise.
9709 (x86_linux_dr_set_addr): Likewise.
9710 (x86_linux_prepare_to_resume): Likewise.
9711 (x86_linux_new_thread): Likewise.
9712
9713 2015-03-24 Gary Benson <gbenson@redhat.com>
9714
9715 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9716 (x86_linux_new_thread): Rename argument.
9717
9718 2015-03-24 Gary Benson <gbenson@redhat.com>
9719
9720 * nat/x86-linux.h: New file.
9721 * nat/x86-linux.c: Likewise.
9722 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9723 (x86-linux.o): New rule.
9724 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9725 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9726 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9727 (lwp_set_arch_private_info): New declaration.
9728 (lwp_arch_private_info): Likewise.
9729 * linux-nat.c (lwp_set_arch_private_info): New function.
9730 (lwp_arch_private_info): Likewise.
9731 * x86-linux-nat.c: Include nat/x86-linux.h.
9732 (arch_lwp_info): Removed structure.
9733 (update_debug_registers_callback):
9734 Use lwp_set_debug_registers_changed.
9735 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9736 and lwp_set_debug_registers_changed.
9737 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9738
9739 2015-03-24 Gary Benson <gbenson@redhat.com>
9740
9741 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9742 (lwp_is_stopped): Likewise.
9743 (lwp_stop_reason): Likewise.
9744 * linux-nat.c (ptid_of_lwp): New function.
9745 (lwp_is_stopped): Likewise.
9746 (lwp_is_stopped_by_watchpoint): Likewise.
9747 * x86-linux-nat.c (update_debug_registers_callback):
9748 Use lwp_is_stopped.
9749 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9750 lwp_stop_reason.
9751
9752 2015-03-24 Gary Benson <gbenson@redhat.com>
9753
9754 * linux-nat.h (linux_stop_lwp): Move declaration to...
9755 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9756
9757 2015-03-24 Gary Benson <gbenson@redhat.com>
9758
9759 * linux-nat.h: Include nat/linux-nat.h.
9760 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9761 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9762 (iterate_over_lwps_ftype): New typedef.
9763 (iterate_over_lwps): New declaration.
9764 * linux-nat.h (iterate_over_lwps): Update comment. Use
9765 iterate_over_lwps_ftype. Update callback return value check.
9766
9767 2015-03-24 Gary Benson <gbenson@redhat.com>
9768
9769 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9770 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9771
9772 2015-03-24 Gary Benson <gbenson@redhat.com>
9773
9774 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9775 * linux-nat.c (current_lwp_ptid): New function.
9776 * x86-linux-nat.c: Include nat/linux-nat.h.
9777 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9778 (x86_linux_dr_get_control): Likewise.
9779 (x86_linux_dr_get_status): Likewise.
9780 (x86_linux_dr_set_control): Likewise.
9781 (x86_linux_dr_set_addr): Likewise.
9782
9783 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9784
9785 PR breakpoints/16466
9786 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9787
9788 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9789
9790 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9791 * ser-unix.c (hardwire_setparity): Likewise.
9792
9793 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9794
9795 * NEWS: Mention set/show serial parity command.
9796 * monitor.c (monitor_open): Call serial_setparity.
9797 * remote.c (remote_open_1): Likewise.
9798 * ser-base.c (ser_base_serparity): New function.
9799 * ser-base.h (ser_base_setparity): Add declaration.
9800 * ser-go32.c (dos_ops): Set "setparity" field.
9801 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9802 state.Parity.
9803 (ser_windows_setparity): New function.
9804 (hardwire_ops): Add ser_windows_setparity.
9805 (tty_ops): Add NULL for setparity field.
9806 (pipe_ops): Add ser_base_setparity.
9807 (tcp_ops): Likewise.
9808 * ser-pipe.c (pipe_ops): Likewise.
9809 * ser-tcp.c (tcp_ops): Likewise.
9810 * ser-unix.c (hardwire_setparity): Add declaration.
9811 (hardwire_raw): Don't reset PARENB flag.
9812 (hardwire_setparity): New function.
9813 (hardwire_ops): Add hardwire_setparity.
9814 * serial.c (serial_setparity): New function.
9815 (serial_parity): New global.
9816 (parity_none, parity_odd, parity_even, parity_enums, parity):
9817 New static globals.
9818 (set_parity): New function.
9819 (_initialize_serial): Add set/show serial parity commands.
9820 * serial.h (GDBPARITY_NONE): Define.
9821 (GDBPARITY_ODD): Define.
9822 (GDBPARITY_EVEN): Define.
9823 (serial_setparity) Add declaration.
9824 (struct serial_ops): Add setparity field.
9825 * target.h (serial_parity): Add declaration.
9826
9827 2015-03-23 Keith Seitz <keiths@redhat.com>
9828
9829 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9830
9831 2015-03-23 Keith Seitz <keiths@redhat.com>
9832
9833 * breakpoint.c (parse_breakpoint_sals): Use
9834 linespec_lexer_lex_keyword to ascertain if the user specified
9835 a NULL location.
9836 * linespec.c [IF_KEYWORD_INDEX]: Define.
9837 (linespec_lexer_lex_keyword): Export.
9838 (struct ls_parser) <keyword_ok>: Remove.
9839 A keyword is only a keyword if not followed by another keyword.
9840 (linespec_lexer_lex_one): Remove keyword_ok handling.
9841 Add comment explaining why the parsing stream is not advanced
9842 when a keyword is seen.
9843 (parse_linespec): Remove parser->keyword_ok.
9844 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9845
9846 2015-03-23 Keith Seitz <keiths@redhat.com>
9847
9848 PR gdb/18021
9849 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9850 if we find a static method with DW_AT_vtable_elem_location.
9851
9852 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9853
9854 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9855 before the second loop, to avoid undefined behavior. Reported by
9856 Anton Blanchard <anton@samba.org>.
9857
9858 2015-03-20 Keven Boell <keven.boell@intel.com>
9859
9860 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9861 data_location usage to linked list.
9862 (resolve_dynamic_type_internal): Adapt data_location to
9863 linked list.
9864 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9865 (copy_type_recursive, copy_type): Add copy of linked list.
9866 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9867 (struct dynamic_prop_list): New struct.
9868 * dwarf2read.c (set_die_type): Set data_location data.
9869
9870 2015-03-20 Pedro Alves <palves@redhat.com>
9871
9872 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9873 inner block and make it const.
9874 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9875
9876 2015-03-20 Pedro Alves <palves@redhat.com>
9877
9878 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9879 * breakpoint.h (set_breakpoint_condition): Update declaration.
9880
9881 2015-03-20 Pedro Alves <palves@redhat.com>
9882
9883 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9884
9885 2015-03-20 Pedro Alves <palves@redhat.com>
9886
9887 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9888
9889 2015-03-20 Pedro Alves <palves@redhat.com>
9890
9891 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9892
9893 2015-03-20 Pedro Alves <palves@redhat.com>
9894
9895 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9896 (nto_init_solib_absolute_prefix): Likewise.
9897
9898 2015-03-20 Pedro Alves <palves@redhat.com>
9899
9900 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9901 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9902
9903 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9904
9905 * config/djgpp/README: Remove gdb.hp.
9906
9907 2015-03-20 Yao Qi <yao.qi@linaro.org>
9908
9909 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9910 set_gdbarch_cannot_step_breakpoint.
9911
9912 2015-03-19 Pedro Alves <palves@redhat.com>
9913
9914 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9915 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9916 instead call perror_with_name.
9917 (check_ptrace_stopped_lwp_gone): New function.
9918 (linux_resume_one_lwp): Reimplement as wrapper around
9919 linux_resume_one_lwp_throw that swallows errors if the LWP is
9920 gone.
9921 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9922 swallows errors if the LWP is gone. Use
9923 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9924
9925 2015-03-19 Pedro Alves <palves@redhat.com>
9926
9927 * linux-nat.c (status_callback): Return early if the LWP has no
9928 status pending.
9929
9930 2015-03-19 Pedro Alves <palves@redhat.com>
9931
9932 * linux-nat.c (select_event_lwp_callback): Update comment to no
9933 longer mention SIGTRAP.
9934
9935 2015-03-18 Tristan Gingold <gingold@adacore.com>
9936
9937 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9938 redirection code to ...
9939 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9940 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9941
9942 2015-03-18 Gary Benson <gbenson@redhat.com>
9943
9944 (remote_protocol_features): Remove the "vFile:fstat" feature.
9945 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9946
9947 2015-03-11 Yao Qi <yao.qi@linaro.org>
9948
9949 PR tdep/18107
9950 * aarch64-linux-tdep.c: Include xml-syscall.h
9951 (aarch64_linux_get_syscall_number): New function.
9952 (aarch64_linux_init_abi): Call
9953 set_gdbarch_get_syscall_number.
9954 * syscalls/aarch64-linux.xml: New file.
9955
9956 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9957
9958 * ser-base.h (ser_base_setstopbits): Change second argument name
9959 from "rate" to "num".
9960
9961 2015-03-17 Gary Benson <gbenson@redhat.com>
9962 Luke Allardyce <lukeallardyce@gmail.com>
9963
9964 PR gdb/18131
9965 * common/common-remote-fileio.h (sys/stat.h): New include.
9966 (stuct stat): Remove forward declaration.
9967
9968 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9969
9970 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9971 before writing core register notes.
9972
9973 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9974 Pedro Alves <palves@redhat.com>
9975
9976 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9977 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9978 (tgoto): Wrap with extern "C".
9979
9980 2015-03-16 Pedro Alves <palves@redhat.com>
9981 Yuanhui Zhang <asmwarrior@gmail.com>
9982
9983 * stub-termcap.c (tputs): Change prototype.
9984
9985 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9986 Pedro Alves <palves@redhat.com>
9987
9988 * windows-nat.c (struct thread_info_struct): Rename to ...
9989 (struct windows_thread_info_struct): ... this.
9990 (thread_info): Rename to ...
9991 (windows_thread_info): ... this.
9992 All users updated.
9993
9994 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9995 Pedro Alves <palves@redhat.com>
9996
9997 * NEWS: New Removed targets and native configurations.
9998
9999 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10000
10001 Remove HPUX.
10002 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10003 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10004 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10005 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10006 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10007 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10008 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10009 hppa-hpux-tdep.c.
10010 * config/ia64/hpux.mh: Remove file.
10011 * config/pa/hpux.mh: Remove file.
10012 * configure: Rebuilt.
10013 * configure.ac (dlgetmodinfo, somread.o): Remove.
10014 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10015 (ia64-*-hpux*): Remove its float format exception.
10016 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10017 * hppa-hpux-nat.c: Remove file.
10018 * hppa-hpux-tdep.c: Remove file.
10019 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10020 Move them here from hppa-tdep.h
10021 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10022 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10023 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10024 Move them to hppa-tdep.c.
10025 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10026 declarations.
10027 * ia64-hpux-nat.c: Remove file.
10028 * ia64-hpux-tdep.c: Remove file.
10029 * ia64-hpux-tdep.h: Remove file.
10030 * inf-ttrace.c: Remove file.
10031 * inf-ttrace.h: Remove file.
10032 * solib-ia64-hpux.c: Remove file.
10033 * solib-ia64-hpux.h: Remove file.
10034 * solib-pa64.c: Remove file.
10035 * solib-pa64.h: Remove file.
10036 * solib-som.c: Remove file.
10037 * solib-som.h: Remove file.
10038 * somread.c: Remove file.
10039
10040 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10041
10042 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10043 * config.in: Regenerate.
10044 * configure: Regenerate.
10045 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10046 define.
10047 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10048 enumerate memory regions if present.
10049
10050 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10051
10052 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10053 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10054 expressions.
10055 (i386fbsd_sigtramp_p): Likewise.
10056
10057 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10058
10059 * MAINTAINERS (Write After Approval): Add John Baldwin.
10060
10061 2015-03-12 Gary Benson <gbenson@redhat.com>
10062
10063 * solib.c (_initialize_solib): Make "set/show sysroot" use
10064 add_setshow_optional_filename_cmd so it can be restored to
10065 empty after being set.
10066
10067 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10068
10069 * Makefile.in (SFILES): New source break-catch-syscall.c.
10070 (COMMON_OBS): New object break-catch-syscall.o.
10071 * break-catch-syscall.c: New file.
10072 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10073 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10074 (struct syscall_catchpoint): Likewise.
10075 (dtor_catch_syscall): Likewise.
10076 (catch_syscall_inferior_data): Likewise.
10077 (struct catch_syscall_inferior_data): Likewise.
10078 (get_catch_syscall_inferior_data): Likewise.
10079 (catch_syscall_inferior_data_cleanup): Likewise.
10080 (insert_catch_syscall): Likewise.
10081 (remove_catch_syscall): Likewise.
10082 (breakpoint_hit_catch_syscall): Likewise.
10083 (print_it_catch_syscall): Likewise.
10084 (print_one_catch_syscall): Likewise.
10085 (print_mention_catch_syscall): Likewise.
10086 (print_recreate_catch_syscall): Likewise.
10087 (catch_syscall_breakpoint_ops): Likewise.
10088 (syscall_catchpoint_p): Likewise.
10089 (create_syscall_event_catchpoint): Likewise.
10090 (catch_syscall_split_args): Likewise.
10091 (catch_syscall_command_1): Likewise.
10092 (is_syscall_catchpoint_enabled): Likewise.
10093 (catch_syscall_enabled): Likewise.
10094 (catching_syscall_number): Likewise.
10095 (catch_syscall_completer): Likewise.
10096 (clear_syscall_counts): Likewise.
10097 (initialize_breakpoint_ops): Move initialization of syscall
10098 catchpoints to break-catch-syscall.c.
10099 (_initialize_breakpoint): Move code related to syscall catchpoints
10100 to break-catch-syscall.c.
10101
10102 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10103
10104 * breakpoint.c (breakpoint_find_if): New function.
10105 * breakpoint.h (breakpoint_find_if): New prototype.
10106
10107 2015-03-11 Gary Benson <gbenson@redhat.com>
10108
10109 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10110 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10111 (remote_fileio_to_host_ulong): Likewise.
10112 (remote_fileio_to_host_mode): Likewise.
10113 (remote_fileio_to_host_time): Likewise.
10114 (remote_fileio_to_host_stat): Likewise.
10115 * remote.c (PACKET_vFile_fstat): New enum value.
10116 (remote_protocol_features): Register the "vFile:fstat" feature.
10117 (remote_hostio_fstat): New function.
10118 (remote_bfd_iovec_stat): Use the above.
10119 (_initialize_remote): Register new "set/show remote
10120 hostio-fstat-packet" command.
10121 * symfile.c (separate_debug_file_exists): Update comment.
10122 * NEWS: Announce new vFile:fstat packet.
10123
10124 2015-03-11 Gary Benson <gbenson@redhat.com>
10125
10126 * common/common-remote-fileio.h: New file.
10127 * common/common-remote-fileio.c: Likewise.
10128 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10129 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10130 (COMMON_OBS): Add common-remote-fileio.o.
10131 (common-remote-fileio.o): New rule.
10132 * remote-fileio.h (common-remote-fileio.h): New include.
10133 * remote-fileio.c (gdb/fileio.h): Do not include.
10134 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10135 (remote_fileio_to_fio_uint): Likewise.
10136 (remote_fileio_to_fio_time): Likewise.
10137 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10138 (remote_fileio_to_fio_mode): Likewise.
10139 (remote_fileio_to_fio_ulong): Likewise.
10140 (remote_fileio_to_fio_stat): Likewise.
10141
10142 2015-03-11 Andy Wingo <wingo@igalia.com>
10143
10144 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10145 we were checking the cached type, not the cached dynamic type.
10146
10147 2015-03-11 Andy Wingo <wingo@igalia.com>
10148
10149 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10150 other strings, as these are on the GC'd heap, and will be
10151 collected along with the smob.
10152
10153 2015-03-11 Andy Wingo <wingo@igalia.com>
10154
10155 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10156 (objfile_functions): Bind gdbscm_objfile_progspace to
10157 objfile-progspace.
10158 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10159
10160 2015-03-11 Andy Wingo <wingo@igalia.com>
10161
10162 * guile/guile.c (_initialize_guile): Disable automatic
10163 finalization, if Guile offers us that possibility.
10164 * guile/guile.c (call_initialize_gdb_module):
10165 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10166 finalizers in appropriate places.
10167 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10168 scm_set_automatic_finalization_enabled.
10169 * configure: Regenerated.
10170
10171 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10172
10173 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10174 SAL, if possible.
10175
10176 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10177
10178 * s390-linux-nat.c (struct arch_lwp_info): New.
10179 (s390_fix_watch_points): Rename to...
10180 (s390_prepare_to_resume): ...this. Skip the PER info update
10181 unless the watch points have changed.
10182 (s390_refresh_per_info, s390_new_thread): New functions.
10183 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10184 s390_fix_watch_points.
10185 (s390_remove_watchpoint): Likewise.
10186 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10187 Register s390_prepare_to_resume.
10188
10189 2015-03-09 Pedro Alves <palves@redhat.com>
10190
10191 Revert:
10192 2015-03-07 Pedro Alves <palves@redhat.com>
10193 * common/gdb_socket.h: New file.
10194 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10195 sys/socket.h.
10196 (net_open): Use union gdb_sockaddr_u.
10197
10198 2015-03-07 Pedro Alves <palves@redhat.com>
10199
10200 * configure.ac (build_warnings): Move -Wmissing-prototypes
10201 -Wdeclaration-after-statement -Wmissing-parameter-type
10202 -Wold-style-declaration -Wold-style-definition to the C-specific
10203 set.
10204 * configure: Regenerate.
10205
10206 2015-03-07 Pedro Alves <palves@redhat.com>
10207
10208 * common/gdb_socket.h: New file.
10209 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10210 sys/socket.h.
10211 (net_open): Use union gdb_sockaddr_u.
10212
10213 2015-03-07 Pedro Alves <palves@redhat.com>
10214
10215 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10216 (exceptions_state_mc_action_iter)
10217 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10218 Don't define.
10219 [__cplusplus] (try_scope_depth): New global.
10220 [__cplusplus] (exception_try_scope_entry)
10221 (exception_try_scope_exit, gdb_exception_sliced_copy)
10222 (exception_rethrow): New functions.
10223 (throw_exception): In C++ mode, throw
10224 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10225 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10226 (throw_it): In C++ mode, use try_scope_depth.
10227 * common/common-exceptions.h [!__cplusplus]
10228 (exceptions_state_mc_action_iter)
10229 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10230 Don't declare.
10231 [__cplusplus] (exception_try_scope_entry)
10232 (exception_try_scope_exit, exception_rethrow): Declare.
10233 [__cplusplus] (struct exception_try_scope): New struct.
10234 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10235 C++ exceptions.
10236 (struct gdb_exception_RETURN_MASK_ALL)
10237 (struct gdb_exception_RETURN_MASK_ERROR)
10238 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10239
10240 2015-03-07 Pedro Alves <palves@redhat.com>
10241
10242 * main.c (handle_command_errors): Remove volatile qualifier from
10243 parameter.
10244
10245 2015-03-07 Pedro Alves <palves@redhat.com>
10246
10247 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10248 TRY and CATCH.
10249 * gdbtypes.c (safe_parse_type): Remove empty line.
10250 (types_deeply_equal):
10251 * guile/scm-frame.c (gdbscm_frame_name):
10252 * linux-thread-db.c (find_new_threads_once):
10253 * python/py-breakpoint.c (bppy_get_commands):
10254 * record-btrace.c (record_btrace_insert_breakpoint)
10255 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10256 (record_btrace_start_replaying): Adjust to avoid code between TRY
10257 and CATCH.
10258
10259 2015-03-07 Pedro Alves <palves@redhat.com>
10260
10261 * common/common-exceptions.c (struct catcher) <exception>: No
10262 longer a pointer to volatile exception. Now an exception value.
10263 <mask>: Delete field.
10264 (exceptions_state_mc_init): Remove all parameters. Adjust.
10265 (exceptions_state_mc): No longer pop the catcher here.
10266 (exceptions_state_mc_catch): New function.
10267 (throw_exception): Adjust.
10268 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10269 all parameters.
10270 (exceptions_state_mc_catch): Declare.
10271 (TRY_CATCH): Rename to ...
10272 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10273 (CATCH, END_CATCH): New.
10274 All callers adjusted.
10275
10276 2015-03-07 Tom Tromey <tromey@redhat.com>
10277
10278 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10279
10280 2015-03-07 Pedro Alves <palves@redhat.com>
10281
10282 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10283 (amd64_epilogue_frame_cache): Normal exception handling code.
10284 * break-catch-throw.c (check_status_exception_catchpoint)
10285 (re_set_exception_catchpoint): Ditto.
10286 * cli/cli-interp.c (safe_execute_command):
10287 * cli/cli-script.c (script_from_file): Ditto.
10288 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10289 Ditto.
10290 * compile/compile-object-run.c (compile_object_run): Ditto.
10291 * cp-abi.c (baseclass_offset): Ditto.
10292 * cp-valprint.c (cp_print_value): Ditto.
10293 * exceptions.c (catch_exceptions_with_msg):
10294 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10295 * frame.c (get_frame_address_in_block_if_available): Ditto.
10296 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10297 (i386_sigtramp_frame_cache): Ditto.
10298 * infcmd.c (post_create_inferior): Ditto.
10299 * linespec.c (parse_linespec, find_linespec_symbols):
10300 * p-valprint.c (pascal_object_print_value): Ditto.
10301 * parse.c (parse_expression_for_completion): Ditto.
10302 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10303 * remote.c (remote_get_noisy_reply): Ditto.
10304 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10305 * solib-svr4.c (solib_svr4_r_map): Ditto.
10306
10307 2015-03-06 Gary Benson <gbenson@redhat.com>
10308
10309 * common/common-utils.h (startswith): New inline function.
10310 All places where this logic was used updated to use the above.
10311
10312 2015-03-05 Pedro Alves <palves@redhat.com>
10313
10314 PR gdb/18002
10315 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10316 after reading the breakpoint's shadow memory.
10317
10318 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10319
10320 * hppabsd-nat.c: Remove file.
10321 * hppaobsd-nat.c: New file.
10322 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10323 hppaobsd-nat.c.
10324 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10325 hppaobsd-nat.o.
10326
10327 2015-03-04 Pedro Alves <palves@redhat.com>
10328
10329 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10330 (target_decr_pc_after_break): Delete declaration.
10331 * target.c (default_target_decr_pc_after_break)
10332 (target_decr_pc_after_break): Delete.
10333 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10334 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10335 * linux-thread-db.c (check_event): Likewise.
10336 * infrun.c (adjust_pc_after_break): Likewise.
10337 * darwin-nat.c (cancel_breakpoint): Likewise.
10338 * aix-thread.c (aix_thread_wait): Likewise.
10339 * target-delegates.c: Regenerate.
10340
10341 2015-03-04 Pedro Alves <palves@redhat.com>
10342
10343 * linux-nat.c (save_sigtrap): Check for breakpoints before
10344 checking watchpoints.
10345 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10346 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10347 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10348 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10349 (linux_nat_stopped_by_sw_breakpoint)
10350 (linux_nat_supports_stopped_by_sw_breakpoint)
10351 (linux_nat_stopped_by_hw_breakpoint)
10352 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10353 (linux_nat_wait_1): Don't re-increment the PC if relying on
10354 SIGTRAP's siginfo->si_code.
10355 (linux_nat_add_target): Install new target methods.
10356 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10357 offset if the target already adjusted the PC.
10358 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10359 (GDB_ARCH_TRAP_BRKPT): New.
10360 (TRAP_HWBKPT): Define if not already defined.
10361
10362 2015-03-04 Pedro Alves <palves@redhat.com>
10363
10364 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10365 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10366 Delete field.
10367 <stop_reason>: New field.
10368 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10369 (packet_set_cmd_state): New function.
10370 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10371 features.
10372 (remote_query_supported): If not disabled with the corresponding
10373 "set remote foo-packet" command, report support for the swbreak
10374 and hwbreak features.
10375 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10376 field.
10377 <stop_reason>: New field.
10378 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10379 (remote_wait_as): Adjust.
10380 (remote_stopped_by_sw_breakpoint)
10381 (remote_supports_stopped_by_sw_breakpoint)
10382 (remote_stopped_by_hw_breakpoint)
10383 (remote_supports_stopped_by_hw_breakpoint): New functions.
10384 (remote_stopped_by_watchpoint): New function.
10385 (init_remote_ops): Install them.
10386 (_initialize_remote): Register new "set/show remote
10387 swbreak-feature-packet" and "set/show remote
10388 swbreak-feature-packet" commands.
10389
10390 2015-03-04 Pedro Alves <palves@redhat.com>
10391
10392 * btrace.h: Include target/waitstatus.h.
10393 (struct btrace_thread_info) <stop_reason>: New field.
10394 * record-btrace.c (record_btrace_step_thread): Use
10395 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10396 (record_btrace_decr_pc_after_break): Delete.
10397 (record_btrace_stopped_by_sw_breakpoint)
10398 (record_btrace_supports_stopped_by_sw_breakpoint)
10399 (record_btrace_stopped_by_hw_breakpoint)
10400 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10401 (init_record_btrace_ops): Install them.
10402 * record-full.c (record_full_hw_watchpoint): Delete and replace
10403 with ...
10404 (record_full_stop_reason): ... this throughout.
10405 (record_full_exec_insn): Adjust.
10406 (record_full_wait_1): Adjust. No longer re-increment the PC.
10407 (record_full_wait_1): Adjust. Use
10408 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10409 (record_full_stopped_by_watchpoint): Adjust.
10410 (record_full_stopped_by_sw_breakpoint)
10411 (record_full_supports_stopped_by_sw_breakpoint)
10412 (record_full_supports_stopped_by_sw_breakpoint)
10413 (record_full_stopped_by_hw_breakpoint)
10414 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10415 (init_record_full_ops, init_record_full_core_ops): Install them.
10416 * record.c (record_check_stopped_by_breakpoint): New function.
10417 * record.h: Include target/waitstatus.h.
10418 (record_check_stopped_by_breakpoint): New declaration.
10419
10420 2015-03-04 Pedro Alves <palves@redhat.com>
10421
10422 enum lwp_stop_reason -> enum target_stop_reason
10423 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10424 (linux_nat_stopped_by_watchpoint, status_callback)
10425 (linux_nat_wait_1): Adjust.
10426 * linux-nat.h (enum lwp_stop_reason): Delete.
10427 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10428 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10429 * target/waitstatus.h (enum target_stop_reason): New.
10430
10431 2015-03-04 Pedro Alves <palves@redhat.com>
10432
10433 * breakpoint.c (need_moribund_for_location_type): New function.
10434 (bpstat_stop_status): Don't skipping checking moribund locations
10435 of breakpoint types which the target tell caused a stop.
10436 (program_breakpoint_here_p): New function, factored out from ...
10437 (bp_loc_is_permanent): ... this.
10438 (update_global_location_list): Don't create a moribund location if
10439 the target supports reporting stops of the type of the removed
10440 breakpoint.
10441 * breakpoint.h (program_breakpoint_here_p): New declaration.
10442 * infrun.c (adjust_pc_after_break): Return early if the target has
10443 already adjusted the PC. Add comments.
10444 (handle_signal_stop): If nothing explains a signal, and the target
10445 tells us the stop was caused by a software breakpoint, check if
10446 there's a breakpoint instruction in the memory. If so, adjust the
10447 PC before presenting the stop to the user. Otherwise, ignore the
10448 trap. If nothing explains a signal, and the target tells us the
10449 stop was caused by a hardware breakpoint, ignore the trap.
10450 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10451 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10452 to_supports_stopped_by_hw_breakpoint>: New fields.
10453 (target_stopped_by_sw_breakpoint)
10454 (target_supports_stopped_by_sw_breakpoint)
10455 (target_stopped_by_hw_breakpoint)
10456 (target_supports_stopped_by_hw_breakpoint): Define.
10457 * target-delegates.c: Regenerate.
10458
10459 2015-03-04 Pedro Alves <palves@redhat.com>
10460
10461 * infrun.c (follow_fork_inferior): Use the whole of the
10462 inferior_ptid and pending_follow.related_pid ptids instead of
10463 building ptids from the process components. Adjust verbose output
10464 to use target_pid_to_str.
10465 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10466 inferior_ptid and pending_follow.related_pid ptids instead of
10467 building ptids from the process components.
10468
10469 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10470
10471 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10472 (inf_ptrace_insert_fork_catchpoint): New function.
10473 (inf_ptrace_remove_fork_catchpoint): New function.
10474 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10475
10476 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10477
10478 * s390-linux-tdep.c (s390_register_name): Return empty string
10479 instead of NULL for registers that shouldn't be visible.
10480
10481 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10482
10483 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10484 XML file for 64-bit targets.
10485
10486 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10487
10488 * target.h (find_default_create_inferior): Remove declaration.
10489 (find_default_attach): Likewise.
10490
10491 2015-03-03 Pedro Alves <palves@redhat.com>
10492
10493 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10494 Use ptid_get_pid to get the overall process id when resuming all
10495 threads.
10496
10497 2015-03-03 Pedro Alves <palves@redhat.com>
10498
10499 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10500 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10501 * inf-ptrace.c (get_ptrace_pid): New function.
10502 (inf_ptrace_resume): Use it.
10503 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10504 to the lower layer.
10505
10506 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10507
10508 * nat/linux-btrace.c: Include sys/utsname.h.
10509 (linux_determine_kernel_ptr_bits): New.
10510 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10511 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10512 ptr_bits.
10513
10514 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10515
10516 * btrace.c (ftrace_update_function): Treat return as tailcall for
10517 "_dl_runtime_resolve".
10518
10519 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10520
10521 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10522 * btrace.c (ftrace_debug): Do not print the line range.
10523 (ftrace_skip_file, ftrace_update_lines): Remove.
10524 (ftrace_new_function): Remove lbegin and lend initialization.
10525 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10526 * record-btrace.c (btrace_compute_src_line_range): New.
10527 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10528
10529 2015-03-02 Pedro Alves <palves@redhat.com>
10530
10531 * infrun.c (follow_exec): Delete all threads of the process except
10532 the event thread. Extended comments.
10533
10534 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10535
10536 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10537
10538 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10539
10540 * utils.h: Remove <stdbool.h> #include.
10541 (producer_is_gcc): Change return type to "int".
10542 * utils.c (producer_is_gcc): Change return type to int.
10543 Return 1 instead of true, and 0 instead of false.
10544 Adjust function documentation accordingly.
10545
10546 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10547
10548 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10549 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10550 present.
10551 (s390_linux_store_inferior_registers): Likewise.
10552 (s390_get_hwcap): Remove function. Embed its logic...
10553 (s390_read_description): ...here. Yield a target description with
10554 vector registers if applicable.
10555 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10556 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10557 "features/s390x-tevx-linux64.c".
10558 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10559 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10560 for "GNU/Linux-specific registers".
10561 (s390_dwarf_reg_r0l): New enum value.
10562 (s390_dwarf_reg_to_regnum): Support vector registers.
10563 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10564 of GPR lower halves.
10565 (regnum_is_vxr_full): New function.
10566 (s390_register_name): New function.
10567 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10568 f0-f15 and v0l-v15l.
10569 (s390_pseudo_register_type): Likewise.
10570 (s390_pseudo_register_read): Likewise.
10571 (s390_pseudo_register_write): Likewise.
10572 (s390_value_from_register): Account for the fact that values are
10573 placed left-justified in vector registers.
10574 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10575 the vector reggroup and omit them from the general reggroup.
10576 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10577 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10578 (s390_iterate_over_regset_sections): Add iterations for the two
10579 new vector regsets.
10580 (s390_core_read_description): Yield a target description with
10581 vector registers if applicable.
10582 (s390_gdbarch_init): Handle target descriptions with vector
10583 registers. Add "register_name" gdbarch method.
10584 (_initialize_s390_tdep): Call new tdesc initialization functions.
10585 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10586 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10587 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10588 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10589 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10590 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10591 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10592 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10593 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10594 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10595 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10596 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10597 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10598 (S390_NUM_REGS): Adjust value.
10599 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10600 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10601 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10602 * NEWS: Announce S/390 vector register support.
10603
10604 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10605
10606 * features/s390-tevx-linux64.xml: New file.
10607 * features/s390-vx-linux64.xml: New file.
10608 * features/s390-vx.xml: New file.
10609 * features/s390x-tevx-linux64.xml: New file.
10610 * features/s390x-vx-linux64.xml: New file.
10611 * features/Makefile (WHICH): Add s390-vx-linux64,
10612 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10613 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10614 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10615 macros.
10616 * features/s390-tevx-linux64.c: New generated file.
10617 * features/s390-vx-linux64.c: Likewise.
10618 * features/s390x-tevx-linux64.c: Likewise.
10619 * features/s390x-vx-linux64.c: Likewise.
10620 * regformats/s390-tevx-linux64.dat: Likewise.
10621 * regformats/s390-vx-linux64.dat: Likewise.
10622 * regformats/s390x-tevx-linux64.dat: Likewise.
10623 * regformats/s390x-vx-linux64.dat: Likewise.
10624
10625 2015-02-28 Doug Evans <xdje42@gmail.com>
10626
10627 * symtab.h (struct symtab) <next>: Fix comment.
10628
10629 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10630
10631 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10632 python_GdbMethods.
10633
10634 2015-02-27 Pedro Alves <palves@redhat.com>
10635
10636 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10637
10638 2015-02-27 Pedro Alves <palves@redhat.com>
10639
10640 * common/common-exceptions.h (exception_none): Declare.
10641 * common/common-exceptions.c (exception_none): Moved from
10642 exceptions.c.
10643 (exceptions_state_mc_init): Use exception_none.
10644 * exceptions.c (exception_none): Move to
10645 common/common-exceptions.c.
10646 * exceptions.h (exception_none): Move to
10647 common/common-exceptions.h.
10648
10649 2015-02-27 Pedro Alves <palves@redhat.com>
10650
10651 * main.c (catch_command_errors, catch_command_errors_const):
10652 Remove 'mask' argument. Adjust.
10653 (captured_main): Adjust callers.
10654
10655 2015-02-27 Pedro Alves <palves@redhat.com>
10656
10657 * python/python-internal.h: Include "extension-priv.h".
10658
10659 2015-02-27 Pedro Alves <palves@redhat.com>
10660
10661 * breakpoint.h (enum print_stop_action): Move further up in the
10662 file.
10663
10664 2015-02-27 Pedro Alves <palves@redhat.com>
10665
10666 * gdbarch.sh: Include regcache.h.
10667 * gdbarch.h: Regenerate.
10668
10669 2015-02-27 Pedro Alves <palves@redhat.com>
10670
10671 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10672 Remove duplicate const.
10673 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10674 duplicate const.
10675
10676 2015-02-27 Pedro Alves <palves@redhat.com>
10677
10678 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10679 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10680 * features/feature_to_c.sh: Tag the generated xml_builtin array
10681 with extern const in C++ mode.
10682
10683 2015-02-27 Tom Tromey <tromey@redhat.com>
10684
10685 * minidebug.c (struct lzma_stream): Rename to ...
10686 (struct gdb_lzma_stream): ... this.
10687 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10688
10689 2015-02-27 Pedro Alves <palves@redhat.com>
10690
10691 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10692 function.
10693 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10694 (mi_cmd_stack_list_variables): Use it.
10695
10696 2015-02-27 Pedro Alves <palves@redhat.com>
10697
10698 * x86-linux-nat.c (u_debugreg_offset): New function.
10699 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10700
10701 2015-02-27 Pedro Alves <palves@redhat.com>
10702
10703 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10704 declaration.
10705 Include break-common.h.
10706
10707 2015-02-27 Tom Tromey <tromey@redhat.com>
10708 Pedro Alves <palves@redhat.com>
10709
10710 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10711 local used to iterate over enums.
10712 * completer.c (signal_completer): Likewise.
10713 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10714 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10715 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10716 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10717 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10718 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10719 * tui-wingeneral.c (tui_refresh_all): Likewise.
10720
10721 2015-02-27 Pedro Alves <palves@redhat.com>
10722
10723 * target.h: Include "infrun.h".
10724
10725 2015-02-27 Pedro Alves <palves@redhat.com>
10726
10727 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10728
10729 2015-02-27 Pedro Alves <palves@redhat.com>
10730
10731 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10732 (IPA_SYM): Use it.
10733 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10734
10735 2015-02-27 Pedro Alves <palves@redhat.com>
10736
10737 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10738 cli_mld_erase_entire_line, and make it extern "C".
10739 * common/common-defs.h (EXTERN_C): New.
10740 * completer.c (_rl_completion_prefix_display_length)
10741 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10742 out of gdb_display_match_list_1.
10743 (_rl_qsort_string_compare): Move declaration out of
10744 gdb_display_match_list_1, and make it extern "C".
10745 * defs.h (re_comp): Use EXTERN_C.
10746 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10747 and make it extern "C".
10748 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10749 and make it extern "C".
10750 (main): Move declaration out of maintenance_set_profile_cmd.
10751 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10752 EXTERN_C.
10753
10754 2015-02-27 Pedro Alves <palves@redhat.com>
10755
10756 * python/python.c (GdbMethods): Rename to ...
10757 (python_GdbMethods): ... this and make extern.
10758 (GdbModuleDef): Rename to ...
10759 (python_GdbModuleDef): ... this and make extern.
10760
10761 2015-02-27 Pedro Alves <palves@redhat.com>
10762
10763 * record-btrace.c (set_record_btrace_cmdlist)
10764 (show_record_btrace_cmdlist): Remove redefinitions.
10765
10766 2015-02-27 Tom Tromey <tromey@redhat.com>
10767 Pedro Alves <palves@redhat.com>
10768
10769 * dwarf2-frame.c (enum cfa_how_kind, struct
10770 dwarf2_frame_state_reg_info): Move out of struct
10771 dwarf2_frame_state.
10772 * dwarf2read.c (struct tu_stats): Move out of struct
10773 dwarf2_per_objfile.
10774 (struct file_entry): Move out of struct line_header.
10775 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10776 typedef_field_list): Move out of struct field_info.
10777 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10778 Move out of struct dynamic_prop.
10779 (union type_owner, union field_location, struct field, struct
10780 range_bounds, union type_specific): Move out of struct main_type.
10781 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10782 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10783 (struct call_site_target, union call_site_parameter_u, struct
10784 call_site_parameter): Move out of struct call_site.
10785 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10786 m32c_prologue.
10787 (enum srcdest_kind): Move out of struct srcdest.
10788 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10789 * prologue-value.h (enum prologue_value_kind): Move out of struct
10790 prologue_value.
10791 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10792 gdbarch_tdep.
10793 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10794 out of struct field_info.
10795 * symfile.h (struct other_sections): Move out of struct
10796 section_addr_info.
10797 * symtab.c (struct symbol_cache_slot): Move out struct
10798 block_symbol_cache.
10799 * target-descriptions.c (enum tdesc_type_kind): Move out of
10800 typedef struct tdesc_type.
10801 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10802 struct tui_line_or_address.
10803 * value.c (enum internalvar_kind, union internalvar_data): Move
10804 out of struct internalvar.
10805 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10806 gdbarch_tdep.
10807
10808 2015-02-27 Tom Tromey <tromey@redhat.com>
10809 Pedro Alves <palves@redhat.com>
10810
10811 Rename symbols whose names are reserved C++ keywords throughout.
10812
10813 2015-02-27 Pedro Alves <palves@redhat.com>
10814
10815 * Makefile.in (COMPILER): New, get it from autoconf.
10816 (COMPILE.pre, CC_LD): Use COMPILER.
10817 (CXX): Get from autoconf instead.
10818 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10819 * acinclude.m4: Include build-with-cxx.m4.
10820 * build-with-cxx.m4: New file.
10821 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10822 Disable -Werror by default if building in C++ mode.
10823 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10824 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10825 Run supported-warning-flags tests with the C++ compiler.
10826 Save/restore CXXFLAGS too.
10827 * configure: Regenerate.
10828
10829 2015-02-27 Pedro Alves <palves@redhat.com>
10830
10831 * libiberty.m4: New file.
10832 * acinclude.m4: Include libiberty.m4.
10833 * configure.ac: Call libiberty_INIT.
10834 * config.in, configure: Regenerate.
10835
10836 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10837
10838 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10839 31-bit targets, but 64-bit targets as well.
10840 (s390_gnu_triplet_regexp): New function.
10841 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10842 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10843 method.
10844
10845 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10846
10847 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10848 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10849 from CONTEXT_DEBUGGER.
10850
10851 2015-02-26 Doug Evans <dje@google.com>
10852
10853 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10854 CHECK_TYPEDEF.
10855 (set_type_vptr_fieldno): Ditto.
10856 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10857 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10858
10859 2015-02-26 Pedro Alves <palves@redhat.com>
10860
10861 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10862 * complaints.c (vcomplaint): Pass argument FMT directly to
10863 printf-like functions instead of complaint->fmt.
10864 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10865 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10866 * compile/compile-loc2c.c (pushf, unary, binary): Add
10867 ATTRIBUTE_PRINTF.
10868 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10869 to pushf.
10870 (BINARY): Pass string literal as format string to 'binary'.
10871 * compile/compile-object-load.c (link_callbacks_einfo): Add
10872 ATTRIBUTE_PRINTF.
10873 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10874
10875 2015-02-26 Pedro Alves <palves@redhat.com>
10876
10877 * windows-termcap.c: Rename to ...
10878 * stub-termcap.c: ... this. Adjust header line.
10879 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10880 windows-termcap.c.
10881 * configure: Regenerate.
10882 * configure.ac: Refer to stub-termcap.o instead of
10883 windows-termcap.o.
10884 * gdb_curses.h: Mention stub-termcap.c instead of
10885 windows-termcap.c.
10886
10887 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10888
10889 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10890 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10891
10892 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10893
10894 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10895
10896 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10897
10898 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10899 bfd_canonicalize_symtab.
10900
10901 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10902
10903 * amd64fbsd-nat.c: Include sys/user.h.
10904 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10905 instead of KERN_PS_STRINGS to locate the signal trampoline.
10906 * i386fbsd-nat.c: Include sys/user.h.
10907 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10908 instead of KERN_PS_STRINGS to locate the signal trampoline.
10909 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10910 (amd64fbsd_sigtramp_p): New.
10911 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10912 longer set default values.
10913 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10914 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10915 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10916 (i386fbsd_freebsd4_sigtramp_start)
10917 (i386fbsd_freebsd4_sigtramp_middle)
10918 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10919 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10920 (i386fbsd_sigtramp_p): New.
10921 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10922 longer set default values.
10923 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10924
10925 2015-02-25 John Baldwin <jhb@freebsd.org>
10926
10927 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10928 get_frame_register instead of frame_unwind_register_unsigned.
10929
10930 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10931
10932 PR build/18033
10933 * compile/compile-c-support.c (c_compute_program): Change // comment.
10934 * compile/compile-object-load.c (setup_sections): Change // comment.
10935
10936 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10937
10938 PR build/18033:
10939 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10940
10941 2015-02-23 Pedro Alves <palves@redhat.com>
10942
10943 * remote.c (skip_to_semicolon): New function.
10944 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10945 special case the stop reasons that look like hex numbers
10946 upfront. Instead handle real register numbers after matching
10947 all the known stop reasons.
10948
10949 2015-02-21 Doug Evans <dje@google.com>
10950
10951 PR c++/17976, symtab/17821
10952 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10953 is_in_anonymous. All callers updated.
10954 (find_symbol_in_baseclass): Ditto.
10955 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10956 for symbols in an anonymous namespace.
10957 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10958 DW_AT_name directly.
10959 (dwarf2_name): Convert missing namespace name to
10960 CP_ANONYMOUS_NAMESPACE_STR.
10961
10962 2015-02-20 Pedro Alves <palves@redhat.com>
10963
10964 * linux-nat.c (linux_handle_extended_wait): Call
10965 thread_db_notice_clone whenever a new clone LWP is detected.
10966 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10967 functions.
10968 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10969 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10970 (linux_unstop_all_lwps): Declare.
10971 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10972 (thread_get_info_callback): Delete.
10973 (thread_from_lwp): Use td_thr_get_info and record_thread.
10974 (thread_db_attach_lwp): Delete.
10975 (thread_db_notice_clone): New function.
10976 (try_thread_db_load_1): If /proc is mounted and shows the
10977 process'es task list, walk over all LWPs and call thread_from_lwp
10978 instead of relying on td_ta_thr_iter.
10979 (attach_thread): Don't call check_thread_signals here. Split the
10980 tail part of the function (which adds the thread to the core GDB
10981 thread list) to ...
10982 (record_thread): ... this function. Call check_thread_signals
10983 here.
10984 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10985 call thread_from_lwp.
10986 (thread_db_update_thread_list): Rename to ...
10987 (thread_db_update_thread_list_org): ... this.
10988 (thread_db_update_thread_list): New function.
10989 (thread_db_find_thread_from_tid): Delete.
10990 (thread_db_get_ada_task_ptid): Simplify.
10991 * nat/linux-procfs.c: Include <sys/stat.h>.
10992 (linux_proc_task_list_dir_exists): New function.
10993 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10994
10995 2015-02-20 Pedro Alves <palves@redhat.com>
10996
10997 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10998 main LWP. Handle the case of waitpid returning 0 if we're already
10999 attached to the LWP. Don't set the LWP's last_resume_kind to
11000 resume_stop if we already knew about the LWP.
11001 (linux_nat_filter_event): Add debug logs.
11002
11003 2015-02-20 Pedro Alves <palves@redhat.com>
11004
11005 * target.h (forward_target_decr_pc_after_break): Delete
11006 declaration.
11007
11008 2015-02-20 Pedro Alves <palves@redhat.com>
11009
11010 PR threads/18006
11011 * linux-thread-db.c (thread_get_info_callback): Return early if
11012 the thread's lwp id is -1.
11013
11014 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11015
11016 GDB 7.9 released.
11017
11018 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11019
11020 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11021 (dtrace_get_probes) Change type of variable 'dof'.
11022
11023 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11024
11025 PR breakpoints/16812
11026 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11027 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11028 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11029
11030 2015-02-19 David Taylor <dtaylor@emc.com>
11031
11032 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11033
11034 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11035
11036 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11037 function.
11038 (tui_putc): Don't call tui_handle_resize_during_io.
11039 (tui_getc): Likewise.
11040 (tui_mld_getc): Likewise.
11041 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11042 (tui_sigwinch_token): New static variable.
11043 (tui_initialize_win): Adjust documentation. Set
11044 tui_sigwinch_token.
11045 (tui_async_resize_screen): New asynchronous callback.
11046 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11047 invoke tui_async_resize_screen.
11048
11049 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11050
11051 * configure: Regenerated.
11052 * configure.ac: Use GDB_AC_TRANSFORM.
11053 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11054 * acinclude.m4: sinclude transform.m4.
11055 * transform.m4: New file.
11056 (GDB_AC_TRANSFORM): New macro.
11057
11058 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11059
11060 * NEWS: Announce the support for DTrace SDT probes.
11061
11062 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11063
11064 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11065 (amd64_dtrace_parse_probe_argument): New function.
11066 (amd64_dtrace_probe_is_enabled): Likewise.
11067 (amd64_dtrace_enable_probe): Likewise.
11068 (amd64_dtrace_disable_probe): Likewise.
11069 (amd64_linux_init_abi): Register the
11070 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11071 `gdbarch_dtrace_disable_probe' and
11072 `gdbarch_dtrace_probe_is_enabled' hooks.
11073 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11074 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11075 (amd64_dtrace_enable_probe_sequence): Likewise.
11076 (amd64_dtrace_disable_probe_sequence): Likewise.
11077
11078 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11079
11080 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11081 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11082 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11083 handle ELF files.
11084 * Makefile.in (SFILES): dtrace-probe.c added.
11085 * configure: Regenerate.
11086 * dtrace-probe.c: New file.
11087 (SHT_SUNW_dof): New constant.
11088 (dtrace_probe_type): New enum.
11089 (dtrace_probe_arg): New struct.
11090 (dtrace_probe_arg_s): New typedef.
11091 (struct dtrace_probe_enabler): New struct.
11092 (dtrace_probe_enabler_s): New typedef.
11093 (dtrace_probe): New struct.
11094 (dtrace_probe_is_linespec): New function.
11095 (dtrace_dof_sect_type): New enum.
11096 (dtrace_dof_dofh_ident): Likewise.
11097 (dtrace_dof_encoding): Likewise.
11098 (DTRACE_DOF_ENCODE_LSB): Likewise.
11099 (DTRACE_DOF_ENCODE_MSB): Likewise.
11100 (dtrace_dof_hdr): New struct.
11101 (dtrace_dof_sect): Likewise.
11102 (dtrace_dof_provider): Likewise.
11103 (dtrace_dof_probe): Likewise.
11104 (DOF_UINT): New macro.
11105 (DTRACE_DOF_PTR): Likewise.
11106 (DTRACE_DOF_SECT): Likewise.
11107 (dtrace_process_dof_probe): New function.
11108 (dtrace_process_dof): Likewise.
11109 (dtrace_build_arg_exprs): Likewise.
11110 (dtrace_get_arg): Likewise.
11111 (dtrace_get_probes): Likewise.
11112 (dtrace_get_probe_argument_count): Likewise.
11113 (dtrace_can_evaluate_probe_arguments): Likewise.
11114 (dtrace_evaluate_probe_argument): Likewise.
11115 (dtrace_compile_to_ax): Likewise.
11116 (dtrace_probe_destroy): Likewise.
11117 (dtrace_gen_info_probes_table_header): Likewise.
11118 (dtrace_gen_info_probes_table_values): Likewise.
11119 (dtrace_probe_is_enabled): Likewise.
11120 (dtrace_probe_ops): New variable.
11121 (info_probes_dtrace_command): New function.
11122 (_initialize_dtrace_probe): Likewise.
11123 (dtrace_type_name): Likewise.
11124
11125 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11126
11127 * gdbarch.sh (dtrace_parse_probe_argument): New.
11128 (dtrace_probe_is_enabled): Likewise.
11129 (dtrace_enable_probe): Likewise.
11130 (dtrace_disable_probe): Likewise.
11131 * gdbarch.c: Regenerate.
11132 * gdbarch.h: Regenerate.
11133
11134 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11135
11136 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11137 stap_probe_ops for `enable_probe' and `disable_probe'.
11138 * probe.c (enable_probes_command): New function.
11139 (disable_probes_command): Likewise.
11140 (_initialize_probe): Define the cli commands `enable probe' and
11141 `disable probe'.
11142 (parse_probe_linespec): New function.
11143 (info_probes_for_ops): Use parse_probe_linespec.
11144 * probe.h (probe_ops): New hooks `enable_probe' and
11145 `disable_probe'.
11146
11147 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11148
11149 * probe.c (compute_probe_arg): Moved from stap-probe.c
11150 (compile_probe_arg): Likewise.
11151 (probe_funcs): Likewise.
11152 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11153 (compile_probe_arg): Likewise.
11154 (probe_funcs): Likewise.
11155
11156 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11157
11158 * probe.c (print_ui_out_not_applicables): New function.
11159 (exists_probe_with_pops): Likewise.
11160 (info_probes_for_ops): Do not include column headers for probe
11161 types for which no probe has been actually found on any object.
11162 Also invoke `print_ui_out_not_applicables' in order to match the
11163 column rows with the header when probes of several types are
11164 listed.
11165 Print the "Type" column.
11166 * probe.h (probe_ops): Added a new probe operation `type_name'.
11167 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11168 (stap_type_name): New function.
11169
11170 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11171
11172 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11173 (key_is_command_char): Delete.
11174
11175 2015-02-17 Pedro Alves <palves@redhat.com>
11176
11177 * tui/tui.c (tui_enable): Resize windows before anything
11178 might show a window.
11179
11180 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11181
11182 PR gdb/17984
11183 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11184 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11185 call.
11186 * aarch64-tdep.h (tdesc_aarch64): Declare.
11187
11188 2015-02-12 Mark Wielaard <mjw@redhat.com>
11189
11190 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11191
11192 2015-02-13 Doug Evans <dje@google.com>
11193
11194 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11195 anonymous_namespace to is_in_anonymous for consistency with the rest
11196 of the file.
11197 (cp_lookup_bare_symbol): Fix typo in comment.
11198 (cp_search_static_and_baseclasses): Ditto.
11199 (search_symbol_list): Use vertical space in comment better.
11200 (reset_directive_searched): Ditto. Fix typo.
11201 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11202
11203 2015-02-13 Yao Qi <yao.qi@arm.com>
11204
11205 * MAINTAINERS: Update my email address.
11206
11207 2015-02-12 Doug Evans <dje@google.com>
11208
11209 * symtab.c (completion_list_add_name): Fix memory leak.
11210
11211 2015-02-12 Doug Evans <dje@google.com>
11212
11213 * completer.c (complete_line): Remove incorrect comment.
11214
11215 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11216
11217 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11218 (py_print_frame): Use RETURN_MASK_ERROR.
11219
11220 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11221
11222 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11223 function comment. Wrap all function that can throw in cleanups.
11224 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11225 cleanups.
11226
11227 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11228
11229 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11230 Remove the error label.
11231
11232 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11233
11234 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11235 with goto first, indent the former else codepath left. Put variable
11236 'elided' to a new inner block.
11237
11238 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11239
11240 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11241
11242 2015-02-11 Pedro Alves <palves@redhat.com>
11243
11244 * xcoffread.c (within_function): Delete.
11245
11246 2015-02-11 Tom Tromey <tromey@redhat.com>
11247 Pedro Alves <palves@redhat.com>
11248
11249 * breakpoint.c (base_breakpoint_ops): Delete.
11250 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11251 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11252 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11253 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11254 * python/py-arch.c (arch_object_type): Make extern.
11255 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11256 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11257 * python/py-cmd.c (cmdpy_object_type): Make extern.
11258 * python/py-continueevent.c (continue_event_object_type)
11259 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11260 parameter. Update all callers.
11261 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11262 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11263 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11264 * python/py-function.c (fnpy_object_type): Make extern.
11265 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11266 * python/py-infevents.c (call_pre_event_object_type)
11267 (inferior_call_post_event_object_type).
11268 (memory_changed_event_object_type): Make extern.
11269 * python/py-infthread.c (thread_object_type): Make extern.
11270 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11271 * python/py-linetable.c (linetable_entry_object_type)
11272 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11273 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11274 (clear_objfiles_event_object_type): Make extern.
11275 * python/py-objfile.c (objfile_object_type): Make extern.
11276 * python/py-param.c (parmpy_object_type): Make extern.
11277 * python/py-progspace.c (pspace_object_type): Make extern.
11278 * python/py-signalevent.c (signal_event_object_type): Make extern.
11279 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11280 * python/py-type.c (type_object_type, field_object_type)
11281 (type_iterator_object_type): Make extern.
11282 * python/python.c (python_extension_script_ops)
11283 (python_extension_ops): Make extern.
11284 * stap-probe.c (stap_probe_ops): Make extern.
11285
11286 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11287
11288 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11289 because the event thread is not the current thread.
11290
11291 2015-02-11 Doug Evans <xdje42@gmail.com>
11292
11293 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11294 been initialized yet, return NULL.
11295
11296 2015-02-11 Doug Evans <dje@google.com>
11297
11298 * symfile.h (new_symfile_objfile): Delete.
11299 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11300 All callers updated.
11301
11302 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11303
11304 * tui/tui-io.c (tui_handle_resize_during_io): Call
11305 tui_update_gdb_sizes() after resizing the screen.
11306 * tui/tui.c (tui_enable): Resize the terminal before
11307 calling tui_update_gdb_sizes().
11308
11309 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11310
11311 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11312 line before printing a newline.
11313
11314 2015-02-11 Mark Wielaard <mjw@redhat.com>
11315
11316 * utils.c (producer_is_gcc): Return true or false.
11317
11318 2015-02-10 Mark Wielaard <mjw@redhat.com>
11319
11320 * utils.h (producer_is_gcc): Change return type to bool. Add major
11321 argument.
11322 * utils.c (producer_is_gcc): Likewise.
11323 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11324 * dwarf2read.c (check_producer): Likewise.
11325
11326 2015-02-10 Pedro Alves <palves@redhat.com>
11327
11328 * infrun.c (displaced_step_fixup): Switch to the event thread
11329 before calling gdbarch_displaced_step_fixup.
11330
11331 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11332
11333 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11334
11335 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11336
11337 * ada-varobj.c (ada_name_of_child): Constify parent.
11338 (ada_path_expr_of_child): Same.
11339 (ada_value_of_child): Same.
11340 (ada_type_of_child): Same.
11341 * c-varobj.c (c_is_path_expr_parent): Same.
11342 (c_describe_child): Same.
11343 (c_name_of_child): Same.
11344 (c_value_of_child): Same.
11345 (c_type_of_child): Same.
11346 (cplus_number_of_children): Same.
11347 (cplus_describe_child): Constify var.
11348 (cplus_name_of_child): Constify parent.
11349 (cplus_value_of_child): Same.
11350 (cplus_type_of_child): Same.
11351 * jv-varobj.c (java_name_of_child): Same.
11352 (java_value_of_child): Same.
11353 (java_type_of_child): Same.
11354 * varobj.c (value_of_child): Same.
11355 (varobj_default_is_path_expr_parent): Constify var, parent and return
11356 value.
11357 (varobj_get_path_expr): Constify var, modify path_expr through
11358 mutable_var.
11359 (install_new_value): Constify parent.
11360 (value_of_child): Constify parent.
11361 * varobj.h (struct varobj): Constify parent.
11362 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11363 type_of_child.
11364 (varobj_get_path_expr): Constify var.
11365 (varobj_get_path_expr_parent): Constify var and return value.
11366
11367 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11368
11369 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11370 (arm_prologue_this_id): Move PC and SP limit checks to
11371 arm_prologue_unwind_stop_reason.
11372 (arm_prologue_unwind) <stop_reason> : Set to
11373 arm_prologue_unwind_stop_reason.
11374
11375 2015-02-09 Mark Wielaard <mjw@redhat.com>
11376
11377 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11378 DW_LANG_Fortran08 as language_fortran.
11379
11380 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11381
11382 PR remote/17946
11383 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11384 of pointer against char.
11385
11386 2015-02-09 Mark Wielaard <mjw@redhat.com>
11387
11388 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11389 (c_type_print_modifier): Likewise.
11390 * dwarf2read.c (read_tag_atomic_type): New function.
11391 (read_type_die_1): Handle DW_TAG_atomic_type.
11392 * gdbtypes.c (make_atomic_type): New function.
11393 (recursive_dump_type): Handle TYPE_ATOMIC.
11394 * gdbtypes.h (enum type_flag_values): Renumber.
11395 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11396 (TYPE_ATOMIC): New macro.
11397 (make_atomic_type): Declare.
11398
11399 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11400
11401 * btrace.c (ftrace_find_call): Skip gaps.
11402 (ftrace_new_function): Initialize level.
11403 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11404 (ftrace_new_switch): Update
11405 level computation.
11406 (ftrace_new_gap): New.
11407 (ftrace_update_function): Create new function after gap.
11408 (btrace_compute_ftrace_bts): Create gap on error.
11409 (btrace_stitch_bts): Update parameters. Clear trace if it
11410 becomes empty.
11411 (btrace_stitch_trace): Update parameters. Update callers.
11412 (btrace_clear): Reset the number of gaps.
11413 (btrace_insn_get): Return NULL if the iterator points to a gap.
11414 (btrace_insn_number): Return zero if the iterator points to a gap.
11415 (btrace_insn_end): Allow gaps at the end.
11416 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11417 (btrace_find_insn_by_number): Assert that the found iterator does
11418 not point to a gap.
11419 (btrace_call_next, btrace_call_prev): Assert that the last function
11420 is not a gap.
11421 * btrace.h (btrace_bts_error): New.
11422 (btrace_function): Update comment.
11423 (btrace_function) <insn, insn_offset, number>: Update comment.
11424 (btrace_function) <errcode>: New.
11425 (btrace_thread_info) <ngaps>: New.
11426 (btrace_thread_info) <replay>: Update comment.
11427 (btrace_insn_get): Update comment.
11428 * record-btrace.c (btrace_ui_out_decode_error): New.
11429 (record_btrace_info): Print number of gaps.
11430 (btrace_insn_history, btrace_call_history): Call
11431 btrace_ui_out_decode_error for gaps.
11432 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11433
11434 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11435
11436 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11437 * nat/linux-btrace.c: (btrace_this_cpu): New.
11438 (cpu_supports_bts): Call btrace_this_cpu.
11439 (intel_supports_bts): Add cpu parameter.
11440
11441 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11442
11443 * btrace.h (btrace_insn_class): New.
11444 (btrace_insn) <size, iclass>: New.
11445 * btrace.c (ftrace_find_call): Update parameters. Update users.
11446 Use instruction classification.
11447 (ftrace_new_return): Update parameters. Update users.
11448 (ftrace_update_function): Update parameters. Update users. Use
11449 instruction classification.
11450 (ftrace_update_insns): Update parameters. Update users.
11451 (ftrace_classify_insn): New.
11452 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11453 TRY_CATCH around call to gdb_insn_length.
11454
11455 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11456
11457 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11458 Update parameters. Update users.
11459
11460 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11461
11462 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11463 (btrace_conf_bts_attributes): New.
11464 (btrace_conf_children): Add attributes.
11465 * common/btrace-common.h (btrace_config_bts): New.
11466 (btrace_config)<bts>: New.
11467 (btrace_config): Update comment.
11468 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11469 Use config.
11470 * features/btrace-conf.dtd: Increment version. Add size
11471 attribute to bts element.
11472 * record-btrace.c (set_record_btrace_bts_cmdlist,
11473 show_record_btrace_bts_cmdlist): New.
11474 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11475 record_btrace_print_conf, cmd_set_record_btrace_bts,
11476 cmd_show_record_btrace_bts): New.
11477 (record_btrace_info): Call record_btrace_print_conf.
11478 (_initialize_record_btrace): Add commands.
11479 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11480 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11481 (btrace_sync_conf): Synchronize bts size.
11482 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11483 * NEWS: Announce new commands and new packets.
11484
11485 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11486
11487 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11488 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11489 (x86_linux_btrace_conf): New.
11490 (x86_linux_create_target): Initialize to_btrace_conf.
11491 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11492 Check format. Split into this and ...
11493 (linux_enable_bts): ... this.
11494 (linux_btrace_conf): New.
11495 (perf_event_skip_record): Renamed into ...
11496 (perf_event_skip_bts_record): ... this. Updated users.
11497 (linux_disable_btrace): Split into this and ...
11498 (linux_disable_bts): ... this.
11499 (linux_read_btrace): Check format.
11500 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11501 (linux_btrace_conf): New.
11502 (btrace_target_info)<ptid>: Moved.
11503 (btrace_target_info)<conf>: New.
11504 (btrace_target_info): Split into this and ...
11505 (btrace_tinfo_bts): ... this. Updated users.
11506 * btrace.c (btrace_enable): Update parameters.
11507 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11508 (btrace_conf_children, btrace_conf_attributes)
11509 (btrace_conf_elements): New.
11510 * btrace.h (btrace_enable): Update parameters.
11511 (btrace_conf, parse_xml_btrace_conf): New.
11512 * common/btrace-common.h (btrace_config): New.
11513 * feature/btrace-conf.dtd: New.
11514 * record-btrace.c (record_btrace_conf): New.
11515 (record_btrace_cmdlist): New.
11516 (record_btrace_enable_warn, record_btrace_open): Pass
11517 &record_btrace_conf.
11518 (record_btrace_info): Print recording format.
11519 (cmd_record_btrace_bts_start): New.
11520 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11521 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11522 Add "record bts" alias command.
11523 * remote.c (remote_state)<btrace_config>: New.
11524 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11525 (remote_protocol_features): Add qXfer:btrace-conf:read.
11526 (remote_open_1): Call remote_btrace_reset.
11527 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11528 (btrace_target_info)<conf>: New.
11529 (btrace_sync_conf, btrace_read_config): New.
11530 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11531 btrace_read_conf.
11532 (remote_btrace_conf): New.
11533 (init_remote_ops): Initialize to_btrace_conf.
11534 (_initialize_remote): Add qXfer:btrace-conf packet.
11535 * target.c (target_enable_btrace): Update parameters.
11536 (target_btrace_conf): New.
11537 * target.h (target_enable_btrace): Update parameters.
11538 (target_btrace_conf): New.
11539 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11540 (target_ops)<to_enable_btrace>: Update parameters and comment.
11541 (target_ops)<to_btrace_conf>: New.
11542 * target-delegates: Regenerate.
11543 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11544 (target_debug_print_const_struct_btrace_target_info_p): New.
11545 * NEWS: Announce new command and new packet.
11546
11547 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11548
11549 * nat/linux-btrace.h (perf_event_buffer): New.
11550 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11551 <bts>: ... this.
11552 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11553 (perf_event_buffer_size, perf_event_buffer_begin)
11554 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11555 Updated users.
11556 (perf_event_new_data): New.
11557
11558 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11559
11560 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11561 * record-btrace.c (record_btrace_open): Remove call to
11562 target_supports_btrace.
11563 * remote.c (remote_supports_btrace): Update parameters.
11564 * target.c (target_supports_btrace): Update parameters.
11565 * target.h (to_supports_btrace, target_supports_btrace): Update
11566 parameters.
11567 * target-delegates.c: Regenerate.
11568 * target-debug.h (target_debug_print_enum_btrace_format): New.
11569 * nat/linux-btrace.c
11570 (kernel_supports_btrace): Rename into ...
11571 (kernel_supports_bts): ... this. Update users. Update warning text.
11572 (intel_supports_btrace): Rename into ...
11573 (intel_supports_bts): ... this. Update users.
11574 (cpu_supports_btrace): Rename into ...
11575 (cpu_supports_bts): ... this. Update users.
11576 (linux_supports_btrace): Update parameters. Split into this and ...
11577 (linux_supports_bts): ... this.
11578 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11579
11580 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11581
11582 * Makefile.in (SFILES): Add common/btrace-common.c.
11583 (COMMON_OBS): Add common/btrace-common.o.
11584 (btrace-common.o): Add build rules.
11585 * btrace.c (parse_xml_btrace): Update parameters.
11586 (parse_xml_btrace_block): Set format field.
11587 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11588 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11589 (btrace_compute_ftrace): Split into this and...
11590 (btrace_compute_ftrace_bts): ...this.
11591 (btrace_stitch_trace): Split into this and...
11592 (btrace_stitch_bts): ...this.
11593 * btrace.h (parse_xml_btrace): Update parameters.
11594 (make_cleanup_btrace_data): New.
11595 * common/btrace-common.c: New.
11596 * common/btrace-common.h: Include common-defs.h.
11597 (btrace_block_s): Update comment.
11598 (btrace_format): New.
11599 (btrace_format_string): New.
11600 (btrace_data_bts): New.
11601 (btrace_data): New.
11602 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11603 * remote.c (remote_read_btrace): Update parameters.
11604 * target.c (target_read_btrace): Update parameters.
11605 * target.h (target_read_btrace): Update parameters.
11606 (target_ops)<to_read_btrace>: Update parameters.
11607 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11608 * target-delegates.c: Regenerate.
11609 * target-debug (target_debug_print_struct_btrace_data_p): New.
11610 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11611 (linux_read_bts): ...this.
11612 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11613
11614 2015-02-06 Doug Evans <dje@google.com>
11615
11616 * remote-m32r-sdi.c: Include symfile.h.
11617
11618 2015-02-06 Doug Evans <dje@google.com>
11619
11620 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11621 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11622 to here.
11623
11624 2015-02-06 Pedro Alves <palves@redhat.com>
11625
11626 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11627
11628 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11629
11630 PR gdb/15678
11631 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11632 (enable_count_command): Check args for NULL value.
11633
11634 2015-02-05 Doug Evans <xdje42@gmail.com>
11635
11636 * guile/scm-frame.c: Fix spelling errors in a comment.
11637
11638 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11639
11640 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11641 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11642 return type.
11643
11644 2015-02-04 Pedro Alves <palves@redhat.com>
11645
11646 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11647 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11648 returns true.
11649 (resume_stopped_resumed_lwps): Don't check whether the thread is
11650 marked as executing.
11651 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11652
11653 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11654
11655 * regset.h (struct regset): Add flags field.
11656 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11657 * corelow.c (get_core_register_section): Add warning if the size
11658 exceeds the requested size and the regset does not have the
11659 REGSET_VARIABLE_SIZE flag set.
11660 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11661 flag.
11662 * armbsd-tdep.c (armbsd_gregset): Likewise.
11663 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11664 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11665 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11666 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11667
11668 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11669
11670 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11671 For ".reg-xstate", explicitly specify the requested section size
11672 via X86_XSTATE_SIZE instead of just 0 on input and
11673 X86_XSTATE_MAX_SIZE on output.
11674 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11675 Likewise.
11676
11677 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11678
11679 PR corefiles/17808:
11680 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11681 function type, particularly its SIZE parameter.
11682 * gdbarch.h: Regenerate.
11683 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11684 actual against required size using ">=" instead of "==".
11685 (amd64_collect_fpregset): Likewise.
11686 * i386-tdep.c (i386_supply_gregset): Likewise.
11687 (i386_collect_gregset): Likewise.
11688 (i386_supply_fpregset): Likewise.
11689 (i386_collect_fpregset): Likewise.
11690 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11691 (mips_fill_gregset_wrapper): Likewise.
11692 (mips_supply_fpregset_wrapper): Likewise.
11693 (mips_fill_fpregset_wrapper): Likewise.
11694 (mips64_supply_gregset_wrapper): Likewise.
11695 (mips64_fill_gregset_wrapper): Likewise.
11696 (mips64_supply_fpregset_wrapper): Likewise.
11697 (mips64_fill_fpregset_wrapper): Likewise.
11698 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11699 (am33_supply_fpregset_method): Likewise.
11700 (am33_collect_gregset_method): Likewise.
11701 (am33_collect_fpregset_method): Likewise.
11702
11703 2015-02-04 Doug Evans <dje@google.com>
11704 Pedro Alves <palves@redhat.com>
11705 Eli Zaretskii <eliz@gnu.org>
11706
11707 PR tui/17810
11708 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11709 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11710 * tui/tui-file.c: #include tui/tui-command.h.
11711 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11712 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11713 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11714
11715 2015-02-04 Pedro Alves <palves@redhat.com>
11716
11717 Fix build breakage.
11718 * event-loop.c (gdb_do_one_event): Add default switch case.
11719
11720 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11721
11722 Filter out inferior gcc option -fpreprocessed.
11723 * compile/compile.c (filter_args): New function.
11724 (get_args): Use it.
11725
11726 2015-02-03 Pedro Alves <palves@redhat.com>
11727
11728 * event-loop.c: Don't declare nor define a queue type for
11729 gdb_event_p.
11730 (event_queue): Delete.
11731 (create_event, create_file_event, gdb_event_xfree)
11732 (initialize_event_loop, process_event): Delete.
11733 (gdb_do_one_event): Return as soon as one event is handled.
11734 (handle_file_event): Change prototype. Used the passed in
11735 file_handler pointer and ready_mask instead of looping over all
11736 file handlers.
11737 (gdb_wait_for_event): Update the poll/select timeouts before
11738 blocking. Run event handlers directly instead of queueing events.
11739 Return as soon as one event is handled.
11740 (struct async_event_handler_data): Delete.
11741 (invoke_async_event_handler): Delete.
11742 (check_async_event_handlers): Change return type to int. Run
11743 event handlers directly instead of queueing events. Return as
11744 soon as one event is handled.
11745 (handle_timer_event): Delete.
11746 (update_wait_timeout): New function, factored out from
11747 poll_timers.
11748 (poll_timers): Reimplement.
11749 * event-loop.h (initialize_event_loop): Delete declaration.
11750 * top.c (gdb_init): Don't call initialize_event_loop.
11751
11752 2015-02-03 Pedro Alves <palves@redhat.com>
11753
11754 * event-loop.c (clear_async_event_handler): New function.
11755 * event-loop.h (clear_async_event_handler): New declaration.
11756 * record-btrace.c (record_btrace_async): New function.
11757 (init_record_btrace_ops): Install record_btrace_async.
11758 * record-full.c (record_full_async): New function.
11759 (record_full_resume): Don't mark the async event source here.
11760 (init_record_full_ops): Install record_full_async.
11761 (record_full_core_resume): Don't mark the async event source here.
11762 (init_record_full_core_ops): Install record_full_async.
11763 * remote.c (remote_async): Mark and clear the async stop reply
11764 queue event-loop token as appropriate.
11765
11766 2015-02-03 Pedro Alves <palves@redhat.com>
11767
11768 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11769 target_is_async_p instead of target_can_async.
11770 (linux_nat_wait): Use target_is_async_p instead of
11771 target_can_async. Don't enable async here.
11772 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11773 target_is_async_p instead of target_can_async.
11774
11775 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11776
11777 * varobj.h (lang_varobj_ops): Mention which return values need
11778 to be freed.
11779
11780 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11781
11782 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11783
11784 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11785
11786 PR gdb/17856:
11787 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11788 results found in the cache.
11789
11790 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11791
11792 PR gdb/17854:
11793 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11794 when allocating a new one.
11795
11796 2015-02-01 Tom Tromey <tom@tromey.com>
11797
11798 * MAINTAINERS: Remove myself.
11799
11800 2015-01-31 Doug Evans <xdje42@gmail.com>
11801
11802 * dwarf2read.c (process_structure_scope): Update setting of
11803 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11804 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11805 (set_type_vptr_fieldno): New function.
11806 (internal_type_vptr_basetype): New function.
11807 (set_type_vptr_basetype): New function.
11808 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11809 TYPE_VPTR_BASETYPE.
11810 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11811 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11812 (print_cplus_stuff): ... moved here.
11813 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11814 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11815 moved to ...
11816 (struct cplus_struct_type): ... here. All uses updated.
11817 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11818 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11819 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11820 * stabsread.c (read_tilde_fields): Update setting of
11821 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11822
11823 2015-01-31 Doug Evans <xdje42@gmail.com>
11824
11825 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11826 to self_p.
11827 (cp_print_class_member): Rename local domain to self_type.
11828 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11829 domain_type to self_type.
11830 (set_die_type) <need_gnat_info>: Handle
11831 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11832 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11833 TYPE_SPECIFIC_SELF_TYPE.
11834 * gdbtypes.c (internal_type_self_type): New function.
11835 (set_type_self_type): New function.
11836 (smash_to_memberptr_type): Rename parameter domain to self_type.
11837 Update setting of TYPE_SELF_TYPE.
11838 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11839 (smash_to_method_type): Rename parameter domain to self_type.
11840 Update setting of TYPE_SELF_TYPE.
11841 (check_stub_method): Call smash_to_method_type.
11842 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11843 (copy_type_recursive): Ditto.
11844 * gdbtypes.h (enum type_specific_kind): New value
11845 TYPE_SPECIFIC_SELF_TYPE.
11846 (struct main_type) <type_specific>: New member self_type.
11847 (struct cplus_struct_type) <fn_field.type>: Update comment.
11848 (TYPE_SELF_TYPE): Rewrite.
11849 (internal_type_self_type, set_type_self_type): Declare.
11850 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11851 self_type.
11852 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11853 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11854 TYPE_TARGET_TYPE.
11855 * stabsread.c (read_member_functions): Mark methods with
11856 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11857 TYPE_SELF_TYPE.
11858
11859 2015-01-31 Doug Evans <xdje42@gmail.com>
11860
11861 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11862 All uses updated.
11863
11864 2015-01-31 Doug Evans <xdje42@gmail.com>
11865
11866 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11867 or unions. Return zero if union.
11868 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11869 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11870 gnuv3_get_vtable.
11871 (compute_vtable_size): Assert only passed structs.
11872 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11873
11874 2015-01-31 Doug Evans <xdje42@gmail.com>
11875
11876 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11877 kinds.
11878
11879 2015-01-31 Gary Benson <gbenson@redhat.com>
11880 Doug Evans <dje@google.com>
11881
11882 PR cli/9007
11883 PR cli/11920
11884 PR cli/15548
11885 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11886 reached.
11887 * common/common-exceptions.h (enum errors)
11888 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11889 * completer.h (get_max_completions_reached_message): New declaration.
11890 (max_completions): Likewise.
11891 (completion_tracker_t): New typedef.
11892 (new_completion_tracker): New declaration.
11893 (make_cleanup_free_completion_tracker): Likewise.
11894 (maybe_add_completion_enum): New enum.
11895 (maybe_add_completion): New declaration.
11896 (throw_max_completions_reached_error): Likewise.
11897 * completer.c (max_completions): New global variable.
11898 (new_completion_tracker): New function.
11899 (free_completion_tracker): Likewise.
11900 (make_cleanup_free_completion_tracker): Likewise.
11901 (maybe_add_completions): Likewise.
11902 (throw_max_completions_reached_error): Likewise.
11903 (complete_line): Remove duplicates and limit result to max_completions
11904 entries.
11905 (get_max_completions_reached_message): New function.
11906 (gdb_display_match_list): Handle max_completions.
11907 (_initialize_completer): New declaration and function.
11908 * symtab.c: Include completer.h.
11909 (completion_tracker): New static variable.
11910 (completion_list_add_name): Call maybe_add_completion.
11911 (default_make_symbol_completion_list_break_on_1): Renamed from
11912 default_make_symbol_completion_list_break_on. Maintain
11913 completion_tracker across calls to completion_list_add_name.
11914 (default_make_symbol_completion_list_break_on): New function.
11915 * top.c (init_main): Set rl_completion_display_matches_hook.
11916 * tui/tui-io.c: Include completer.h.
11917 (tui_old_rl_display_matches_hook): New static global.
11918 (tui_rl_display_match_list): Notify user if max-completions reached.
11919 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11920 * NEWS (New Options): Mention set/show max-completions.
11921
11922 2015-01-31 Gary Benson <gbenson@redhat.com>
11923
11924 * symtab.c (struct add_name_data) <code>: New field.
11925 Updated comments.
11926 (add_symtab_completions): New function.
11927 (symtab_expansion_callback): Likewise.
11928 (default_make_symbol_completion_list_break_on): Set datum.code.
11929 Move minimal symbol scan before calling expand_symtabs_matching.
11930 Scan known primary symtabs for externs and statics before calling
11931 expand_symtabs_matching. Pass symtab_expansion_callback as
11932 expansion_notify argument to expand_symtabs_matching. Do not scan
11933 primary symtabs for externs and statics after calling
11934 expand_symtabs_matching.
11935
11936 2015-01-31 Gary Benson <gbenson@redhat.com>
11937
11938 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11939 (struct quick_symbol_functions) <expand_symtabs_matching>:
11940 New argument expansion_notify. All uses updated.
11941 (expand_symtabs_matching): New argument expansion_notify.
11942 All uses updated.
11943 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11944 Also print expansion notify.
11945 * symtab.c (expand_symtabs_matching_via_partial): Call
11946 expansion_notify whenever a partial symbol table is expanded.
11947 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11948 expansion_notify whenever a symbol table is instantiated.
11949
11950 2015-01-31 Doug Evans <xdje42@gmail.com>
11951
11952 * cli-out.c: #include completer.h, readline/readline.h.
11953 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11954 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11955 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11956 * cli-out.h (cli_display_match_list): Declare.
11957 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11958 (ELLIPSIS_LEN): Ditto.
11959 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11960 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11961 (gdb_fnprint, gdb_print_filename): Ditto.
11962 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11963 (gdb_display_match_list): Ditto.
11964 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11965 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11966 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11967 (match_list_displayer): New struct.
11968 (gdb_display_match_list): Declare.
11969 * top.c (init_main): Set rl_completion_display_matches_hook.
11970 * tui/tui-io.c: #include completer.h.
11971 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11972 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11973 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11974 (tui_mld_getc, tui_mld_read_key): Ditto.
11975 (tui_rl_display_match_list): Rewrite.
11976 (tui_handle_resize_during_io): New arg for_completion. All callers
11977 updated.
11978
11979 2015-01-31 Doug Evans <xdje42@gmail.com>
11980
11981 Add symbol lookup cache.
11982 * NEWS: Document new options and commands.
11983 * symtab.c (symbol_cache_key): New static global.
11984 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11985 (SYMBOL_LOOKUP_FAILED): New macro.
11986 (symbol_cache_slot_state): New enum.
11987 (block_symbol_cache): New struct.
11988 (symbol_cache): New struct.
11989 (new_symbol_cache_size, symbol_cache_size): New static globals.
11990 (hash_symbol_entry, eq_symbol_entry): New functions.
11991 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11992 (make_symbol_cache, free_symbol_cache): New functions.
11993 (get_symbol_cache, symbol_cache_cleanup): New function.
11994 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11995 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11996 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11997 (symbol_cache_flush, symbol_cache_dump): New functions.
11998 (maintenance_print_symbol_cache): New function.
11999 (maintenance_flush_symbol_cache): New function.
12000 (symbol_cache_stats): New function.
12001 (maintenance_print_symbol_cache_statistics): New function.
12002 (symtab_new_objfile_observer): New function.
12003 (symtab_free_objfile_observer): New function.
12004 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12005 (_initialize_symtab): Init symbol_cache_key. New parameter
12006 maint symbol-cache-size. New maint commands print symbol-cache,
12007 print symbol-cache-statistics, flush-symbol-cache.
12008 Install new_objfile, free_objfile observers.
12009
12010 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12011
12012 PR symtab/17855
12013 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12014 to end.
12015
12016 2015-01-31 Doug Evans <xdje42@gmail.com>
12017
12018 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12019 * auto-load.c: #include ctype.h.
12020 (struct auto_load_pspace_info): Replace member loaded_scripts with
12021 new members loaded_script_files, loaded_script_texts.
12022 (auto_load_pspace_data_cleanup): Update.
12023 (init_loaded_scripts_info): Update.
12024 (get_auto_load_pspace_data_for_loading): Update.
12025 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12026 updated.
12027 (maybe_add_script_text): New function.
12028 (clear_section_scripts): Update.
12029 (source_script_file, execute_script_contents): New functions.
12030 (source_section_scripts): Add support for
12031 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12032 (print_scripts): New function.
12033 (auto_load_info_scripts): Also print inlined scripts.
12034 (maybe_print_unsupported_script_warning): Renamed from
12035 unsupported_script_warning_print. All callers updated.
12036 (maybe_print_script_not_found_warning): Renamed from
12037 script_not_found_warning_print. All callers updated.
12038 * extension-priv.h (struct extension_language_script_ops): New member
12039 objfile_script_executor.
12040 * extension.c (ext_lang_objfile_script_executor): New function.
12041 * extension.h (objfile_script_executor_func): New typedef.
12042 (ext_lang_objfile_script_executor): Declare.
12043 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12044 * guile/guile.c (guile_extension_script_ops): Update.
12045 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12046 * python/python.c (python_extension_script_ops): Update.
12047 (gdbpy_execute_objfile_script): New function.
12048
12049 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12050
12051 * tui/tui-io.c (tui_expand_tabs): New function.
12052 (tui_puts, tui_redisplay_readline): Expand TABs into the
12053 appropriate number of spaces.
12054 * tui/tui-regs.c: Include tui-io.h.
12055 (tui_register_format): Call tui_expand_tabs to expand TABs into
12056 the appropriate number of spaces.
12057 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12058
12059 2015-01-30 Doug Evans <dje@google.com>
12060
12061 * NEWS: "info source" command now display producer string if present.
12062 * source.c (source_info): Print producer string if present.
12063
12064 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12065
12066 * varobj.c (varobj_delete): Fix comment.
12067
12068 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12069
12070 * varobj.c (create_child): Modify comment.
12071
12072 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12073
12074 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12075 parameter.
12076 (ada_name_of_variable): Same.
12077 (ada_path_expr_of_child): Same.
12078 (ada_value_of_variable): Same.
12079 (ada_value_is_changeable_p): Same.
12080 (ada_value_has_mutated): Same.
12081 * c-varobj.c (varobj_is_anonymous_child): Same.
12082 (c_is_path_expr_parent): Same.
12083 (c_number_of_children): Same.
12084 (c_name_of_variable): Same.
12085 (c_path_expr_of_child): Same.
12086 (get_type): Same.
12087 (c_value_of_variable): Same.
12088 (cplus_number_of_children): Same.
12089 (cplus_name_of_variable): Same.
12090 (cplus_path_expr_of_child): Same.
12091 (cplus_value_of_variable): Same.
12092 * jv-varobj.c (java_number_of_children): Same.
12093 (java_name_of_variable): Same.
12094 (java_path_expr_of_child): Same.
12095 (java_value_of_variable): Same.
12096 * varobj.c (number_of_children): Same.
12097 (name_of_variable): Same.
12098 (is_root_p): Same.
12099 (varobj_ensure_python_env): Same.
12100 (varobj_get_objname): Same.
12101 (varobj_get_expression): Same.
12102 (varobj_get_display_format): Same.
12103 (varobj_get_display_hint): Same.
12104 (varobj_has_more): Same.
12105 (varobj_get_thread_id): Same.
12106 (varobj_get_frozen): Same.
12107 (dynamic_varobj_has_child_method): Same.
12108 (varobj_get_gdb_type): Same.
12109 (is_path_expr_parent): Same.
12110 (varobj_default_is_path_expr_parent): Same.
12111 (varobj_get_language): Same.
12112 (varobj_get_attributes): Same.
12113 (varobj_is_dynamic_p): Same.
12114 (varobj_get_child_range): Same.
12115 (varobj_value_has_mutated): Same.
12116 (varobj_get_value_type): Same.
12117 (number_of_children): Same.
12118 (name_of_variable): Same.
12119 (check_scope): Same.
12120 (varobj_editable_p): Same.
12121 (varobj_value_is_changeable_p): Same.
12122 (varobj_floating_p): Same.
12123 (varobj_default_value_is_changeable_p): Same.
12124
12125 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12126
12127 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12128 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12129 child->path_expr.
12130 (cplus_path_expr_of_child): Same.
12131
12132 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12133
12134 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12135 result.
12136 (mi_cmd_var_info_expression): Same.
12137 * varobj.c (varobj_get_expression): Mention in the comment that
12138 the result must by freed by the caller.
12139
12140 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12141
12142 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12143 varobj_get_type.
12144 (varobj_update_one): Same.
12145 * varobj.c (update_type_if_necessary): Free curr_type_str and
12146 new_type_str.
12147 (varobj_get_type): Specify in comment that the result needs to be
12148 freed by the caller.
12149
12150 2015-01-29 Doug Evans <dje@google.com>
12151
12152 PR symtab/17890
12153 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12154
12155 2015-01-25 Mark Wielaard <mjw@redhat.com>
12156
12157 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12158 * utils.c (producer_is_gcc_ge_4): Likewise.
12159 (producer_is_gcc): New function.
12160 * utils.h (producer_is_gcc): New declaration.
12161
12162 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12163
12164 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12165 kind.
12166 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12167 parameter by "addr_stack" parameter.
12168 (resolve_dynamic_range): Replace "addr" parameter by
12169 "stack_addr" parameter. Update function documentation.
12170 Update code accordingly.
12171 (resolve_dynamic_array, resolve_dynamic_union)
12172 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12173 (resolve_dynamic_type): Update code, following the changes made
12174 to resolve_dynamic_type_internal's interface.
12175 * dwarf2loc.h (struct property_addr_info): New.
12176 (dwarf2_evaluate_property): Replace "address" parameter
12177 by "addr_stack" parameter. Adjust function documentation.
12178 (struct dwarf2_offset_baton): New.
12179 (struct dwarf2_property_baton): Update documentation of
12180 field "referenced_type" to be more general. New field
12181 "offset_info" in union data field.
12182 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12183 parameter by "addr_stack" parameter. Adjust code accordingly.
12184 Add support for PROP_ADDR_OFFSET properties.
12185 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12186 DW_AT_data_member_location attributes as well. Use case
12187 statements instead of if/else condition.
12188
12189 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12190
12191 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12192 Return zero if PARENT_VALUE is NULL and parent_type's
12193 range type is dynamic.
12194
12195 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12196
12197 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12198 nonzero if the type's subtype is dynamic.
12199 (resolve_dynamic_range): Also resolve the range's subtype.
12200
12201 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12202
12203 Pushed by Joel Brobecker <brobecker@adacore.com>.
12204 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12205
12206 2015-01-27 Doug Evans <dje@google.com>
12207
12208 * NEWS: Mention gdb.Objfile.username.
12209 * python/py-objfile.c (objfpy_get_username): New function.
12210 (objfile_getset): Add "username".
12211
12212 2015-01-24 Mark Wielaard <mjw@redhat.com>
12213
12214 * stack.c (return_command): Markup warning message with _.
12215
12216 2015-01-24 Doug Evans <xdje42@gmail.com>
12217
12218 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12219
12220 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12221
12222 Fix 100x slowdown regression on DWZ files.
12223 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12224 (struct line_header): Add offset and offset_in_dwz.
12225 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12226 (free_line_header_voidp): New declaration.
12227 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12228 functions.
12229 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12230 (handle_DW_AT_stmt_list): Use line_header_hash.
12231 (free_line_header_voidp): New function.
12232 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12233 (dwarf_decode_lines): New parameter decode_mapping, use it.
12234 (dwarf2_free_objfile): Free line_header_hash.
12235
12236 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12237
12238 PR gdb/17416
12239 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12240 value_ind.
12241
12242 2015-01-15 Mark Wielaard <mjw@redhat.com>
12243
12244 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12245 DW_AT_noreturn.
12246 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12247 calling_convention an 8 bit bit field.
12248 (TYPE_NO_RETURN): New macro.
12249 * infcmd.c (finish_command): Query if function does not return
12250 normally.
12251 * stack.c (return_command): Likewise.
12252
12253 2015-01-23 Pedro Alves <palves@redhat.com>
12254
12255 * linux-nat.c (linux_is_async_p): New macro.
12256 (linux_nat_is_async_p):
12257 (linux_nat_terminal_inferior): Check whether the target can async
12258 instead of whether it is already async.
12259 (linux_nat_terminal_ours): Don't check whether the target is
12260 async.
12261 (linux_async_pipe): Use linux_is_async_p.
12262
12263 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12264
12265 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12266 '-ascending'.
12267 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12268 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12269 Sort tp_array using tp_array_compar.
12270 (_initialize_thread): Extend thread_apply_all_command help.
12271
12272 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12273
12274 * corelow.c (core_open): Call also thread_command.
12275 * gdbthread.h (thread_command): New prototype moved from ...
12276 * thread.c (thread_command): ... here.
12277 (thread_command): Make it global.
12278
12279 2015-01-22 Pedro Alves <palves@redhat.com>
12280
12281 * configure.ac [*mingw32*]: Check $curses_found instead of
12282 $prefer_curses.
12283 * configure: Regenerate.
12284 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12285 HAVE_NCURSES_NCURSES_H checks.
12286
12287 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12288
12289 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12290 fails with the 1st arg NULL, try again with "unknown". Don't test
12291 the "cup" capability: it isn't supported by the Windows port of
12292 ncurses, but the Windows console driver is still capable of
12293 supporting TUI.
12294
12295 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12296
12297 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12298
12299 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12300
12301 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12302 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12303 reason that "make TAGS" is broken.
12304
12305 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12306
12307 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12308 and check additional store instructions.
12309
12310 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12311
12312 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12313
12314 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12315
12316 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12317 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12318 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12319 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12320 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12321 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12322 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12323 ppc_process_record_op19, ppc_process_record_op31,
12324 ppc_process_record_op59, ppc_process_record_op60,
12325 ppc_process_record_op63): Likewise.
12326
12327 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12328
12329 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12330 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12331 strerror.
12332
12333 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12334
12335 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12336 ppc_process_record_op31, ppc_process_record_op59,
12337 ppc_process_record_op60, ppc_process_record_op63,
12338 ppc_process_record): Fix -Wformat warning.
12339 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12340 Remove unused variables.
12341
12342 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12343
12344 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12345
12346 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12347
12348 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12349 CONFIG_OBS if not building with a curses library.
12350 * configure: Regenerate.
12351
12352 * windows-termcap.c: Include defs.h. Make the whole body empty if
12353 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12354 HAVE_NCURSES_NCURSES_H is defined.
12355
12356 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12357
12358 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12359 from end of line to start of next line.
12360
12361 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12362
12363 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12364 Scan PLT stub backward for reverse debugging.
12365 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12366
12367 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12368 Ulrich Weigand <uweigand@de.ibm.com>
12369
12370 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12371 gdb_target_obs.
12372 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12373 record.
12374 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12375 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12376 (ppc_linux_init_abi): Set process_record, process_record_signal.
12377 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12378 ppc_linux_record_tdep to gdbarch_tdep.
12379 (ppc_process_record): New declaration.
12380 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12381 ppc_process_record_op19, ppc_process_record_op31,
12382 ppc_process_record_op59, ppc_process_record_op60,
12383 ppc_process_record_op63, ppc_process_record): New functions.
12384
12385 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12386
12387 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12388 rs6000_in_function_epilogue_frame_p and add an argument
12389 for frame_info.
12390 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12391 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12392 New functions.
12393 (rs6000_epilogue_frame_unwind): New.
12394 (rs6000_gdbarch_init): Append epilogue unwinder.
12395
12396 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12397
12398 * nat/linux-personality.c: Replace "#ifndef
12399 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12400 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12401 systems.
12402
12403 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12404
12405 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12406 functions.
12407 (_initialize_tui_win) <border-kind, border-mode>:
12408 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12409 (tui_set_tab_width_command): Fix the commentary.
12410
12411 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12412
12413 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12414 Doc fix.
12415 (tui_set_tab_width_command): Delete and recreate the source and
12416 the disassembly windows, to show the effect of the changed tab
12417 size immediately.
12418
12419 * tui/tui-data.h (LINE_PREFIX): Make shorter
12420 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12421 "Thread NNNNN.XXXX" thread ID notation on Windows.
12422
12423 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12424
12425 Fix gcc-5 compilation.
12426 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12427
12428 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12429
12430 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12431 (linux-personality.o): New rule.
12432 * common/common-defs.h: Include <stdint.h>.
12433 * config/aarch64/linux.mh (NATDEPFILES): Include
12434 linux-personality.o.
12435 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12436 * config/arm/linux.mh (NATDEPFILES): Likewise.
12437 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12438 * config/i386/linux.mh (NATDEPFILES): Likewise.
12439 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12440 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12441 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12442 * config/mips/linux.mh (NATDEPFILES): Likewise.
12443 * config/pa/linux.mh (NATDEPFILES): Likewise.
12444 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12445 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12446 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12447 * config/s390/linux.mh (NATDEPFILES): Likewise.
12448 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12449 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12450 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12451 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12452 * defs.h: Remove #include <stdint.h> (moved to
12453 common/common-defs.h).
12454 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12455 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12456 nat/linux-personality.c).
12457 (linux_nat_create_inferior): Remove code to disable address space
12458 randomization (moved to nat/linux-personality.c). Create cleanup
12459 to disable address space randomization.
12460 * nat/linux-personality.c: New file.
12461 * nat/linux-personality.h: Likewise.
12462
12463 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12464
12465 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12466 common/posix-strerror.c.
12467 (posix-strerror.o): New rule.
12468 (mingw-strerror.o): Likewise.
12469 * common/common-utils.h (safe_strerror): Move prototype to here,
12470 from utils.h.
12471 * common/common.host: New file.
12472 * common/mingw-strerror.c: Likewise.
12473 * common/posix-strerror.c: Likewise.
12474 * configure: Regenerated.
12475 * configure.ac: Source common/common.host. Add variable
12476 common_host_obs to gdb_host_obs.
12477 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12478 gdb/common/posix-strerror.c when warning about the use of
12479 strerror.
12480 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12481 common/mingw-strerror.c.
12482 * posix-hdep.c (safe_strerror): Remove definition; move it to
12483 common/posix-hdep.c.
12484 * utils.h (safe_strerror): Remove prototype; move to
12485 common/common-utils.h.
12486
12487 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12488
12489 GDB 7.8.2 released.
12490
12491 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12492
12493 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12494 ___XA type if the array has already been fixed.
12495
12496 2015-01-14 Yao Qi <yao@codesourcery.com>
12497
12498 * Makefile.in (ppc-linux.o): New rule.
12499 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12500 * configure.ac: AC_CHECK_FUNCS(getauxval).
12501 * config.in: Re-generated.
12502 * configure: Re-generated.
12503 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12504 Declare.
12505 * nat/ppc-linux.c: New file.
12506 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12507 Call ppc64_64bit_inferior_p.
12508
12509 2015-01-14 Yao Qi <yao@codesourcery.com>
12510
12511 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12512 nat/ppc-linux.h.
12513 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12514 (PPC_FEATURE_HAS_DFP): Likewise.
12515 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12516 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12517 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12518 Include "nat/ppc-linux.h".
12519 * nat/ppc-linux.h: New file.
12520 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12521
12522 2015-01-14 Pedro Alves <palves@redhat.com>
12523
12524 PR gdb/17525
12525 * breakpoint.c: Include "interps.h".
12526 (bpstat_do_actions_1): Also check whether the interpreter is
12527 async.
12528
12529 2015-01-14 Pedro Alves <palves@redhat.com>
12530
12531 PR cli/17828
12532 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12533 reinstall if the interpreter is sync.
12534
12535 2015-01-13 Doug Evans <dje@google.com>
12536
12537 * objfiles.c (objfile_filename): New function.
12538 * objfiles.h (objfile_filename): Declare it.
12539 (objfile_name): Add function comment.
12540 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12541 bfd file name (which may be realpath'd), and the original name.
12542
12543 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12544
12545 * NEWS: Create a new section for the next release branch.
12546 Rename the section of the current branch, now that it has
12547 been cut.
12548
12549 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12550
12551 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12552 * version.in: Bump version to 7.9.50.DATE-cvs.
12553
12554 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12555
12556 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12557 Remove trailing new-line in argument of call to warning.
12558
12559 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12560
12561 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12562 new-line in argument of call to "warning".
12563
12564 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12565
12566 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12567 in static block, then try searching for primitive types.
12568
12569 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12570
12571 * top.h (gdb_add_history): Declare.
12572 * top.c (command_count): New variable.
12573 (gdb_add_history): New function.
12574 (gdb_safe_append_history): New static function.
12575 (quit_force): Call it.
12576 (command_line_input): Use gdb_add_history instead of
12577 add_history.
12578 * event-top.c (command_line_handler): Likewise.
12579
12580 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12581
12582 PR gdb/17046
12583 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12584 <setjmp.h> #include.
12585
12586 2015-01-11 Doug Evans <xdje42@gmail.com>
12587
12588 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12589
12590 2015-01-11 Doug Evans <xdje42@gmail.com>
12591
12592 PR gdb/15830
12593 * NEWS: The "maint demangle" command is renamed as "demangle".
12594 * demangle.c: #include cli/cli-utils.h, language.h.
12595 (demangle_command): New function.
12596 (_initialize_demangle): Add new command "demangle".
12597 * maint.c (maintenance_demangle): Stub out.
12598 (_initialize_maint_cmds): Update help text for "maint demangle",
12599 and mark as deprecated.
12600
12601 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12602
12603 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12604 inferior_thread is a function.
12605
12606 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12607
12608 * Makefile.in (.y.c): Don't munge yacc's #line
12609 directives.
12610
12611 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12612
12613 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12614 to prompt for input.
12615 * tui/tui-hooks.c (tui_query_hook): Remove.
12616 (tui_install_hooks): Don't set deprecated_query_hook.
12617 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12618 height calculation. Always update the command window's cur_line.
12619
12620 2015-01-09 Pedro Alves <palves@redhat.com>
12621
12622 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12623 function.
12624 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12625 declaration.
12626 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12627 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12628 stop_reason.
12629 (check_stopped_by_watchpoint): New function.
12630 (save_sigtrap): Reimplement.
12631 (linux_nat_stopped_by_watchpoint): Adjust.
12632 (linux_nat_lp_status_is_event): Delete.
12633 (stop_wait_callback): Only call save_sigtrap after storing the
12634 pending status.
12635 (status_callback): If the thread had been stopped for a breakpoint
12636 that has since been removed, discard the event and resume the LWP.
12637 (count_events_callback, select_event_lwp_callback): Use
12638 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12639 (cancel_breakpoint): Rename to ...
12640 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12641 stopped for a software breakpoint or hardware breakpoint.
12642 (select_event_lwp): Only give preference to the stepping LWP in
12643 all-stop mode. Adjust comments.
12644 (stop_and_resume_callback): Remove references to new_pending_p.
12645 (linux_nat_filter_event): Likewise. Leave exit events of the
12646 leader thread pending here. Handle signal short circuiting here.
12647 Only call save_sigtrap after storing the pending waitstatus.
12648 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12649 new_pending. Don't handle leaving events the caller is not
12650 interested in pending here, nor handle signal short-circuiting
12651 here. Also give equal priority to all LWPs that have had events
12652 in non-stop mode. If reporting a software breakpoint event,
12653 unadjust the LWP's PC.
12654 * linux-nat.h (enum lwp_stop_reason): New.
12655 (struct lwp_info) <stop_pc>: New field.
12656 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12657 (struct lwp_info) <stop_reason>: New field.
12658 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12659
12660 2015-01-09 Pedro Alves <palves@redhat.com>
12661
12662 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12663 Set the LWP's 'resumed' flag.
12664
12665 2015-01-09 Pedro Alves <palves@redhat.com>
12666
12667 * linux-nat.c (linux_resume_one_lwp): New function.
12668 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12669 (linux_nat_resume): Use lwp_status_pending_p and
12670 linux_resume_one_lwp.
12671 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12672 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12673 (status_callback, running_callback): Use lwp_status_pending_p.
12674 (lwp_status_pending_p): New function.
12675 (stop_and_resume_callback): Use lwp_status_pending_p.
12676 (linux_nat_filter_event): Use linux_resume_one_lwp.
12677 (linux_nat_wait_1): Always use status_callback to look for an LWP
12678 with a pending status. Use linux_resume_one_lwp.
12679 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12680 linux_resume_one_lwp.
12681
12682 2015-01-09 Pedro Alves <palves@redhat.com>
12683
12684 * breakpoint.c (bp_location_inserted_here_p): New function,
12685 factored out from ...
12686 (breakpoint_inserted_here_p): ... here. Use
12687 ALL_BP_LOCATIONS_AT_ADDR.
12688 (software_breakpoint_inserted_here_p): Use
12689 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12690
12691 2014-01-09 Pedro Alves <palves@redhat.com>
12692
12693 Skip enabling event reporting if the kernel supports
12694 PTRACE_EVENT_CLONE.
12695 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12696 (thread_db_use_events): New function.
12697 (try_thread_db_load_1): Check thread_db_use_events before enabling
12698 event reporting.
12699 (update_thread_state): New function.
12700 (attach_thread): Use it. Check thread_db_use_events before
12701 enabling event reporting.
12702 (thread_db_detach): Check thread_db_use_events before disabling
12703 event reporting.
12704 (find_new_threads_callback): Check thread_db_use_events before
12705 enabling event reporting. Update the thread's state if not using
12706 libthread_db events.
12707
12708 2015-01-09 Pedro Alves <palves@redhat.com>
12709
12710 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12711 about to wait for is > 0.
12712 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12713 the kernel thread ID is -1.
12714
12715 2015-01-09 Pedro Alves <palves@redhat.com>
12716
12717 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12718 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12719 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12720 ptrace option flags.
12721 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12722 field.
12723 * nat/linux-procfs.c: Include <dirent.h>.
12724 (linux_proc_get_int): New parameter "warn". Handle it.
12725 (linux_proc_get_tgid): Adjust.
12726 (linux_proc_get_tracerpid): Rename to ...
12727 (linux_proc_get_tracerpid_nowarn): ... this.
12728 (linux_proc_pid_get_state): New function, factored out from
12729 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12730 and handle it.
12731 (linux_proc_pid_is_gone): New function.
12732 (linux_proc_pid_is_stopped): Adjust.
12733 (linux_proc_pid_is_zombie_maybe_warn)
12734 (linux_proc_pid_is_zombie_nowarn): New functions.
12735 (linux_proc_pid_is_zombie): Use
12736 linux_proc_pid_is_zombie_maybe_warn.
12737 (linux_proc_attach_tgid_threads): New function.
12738 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12739 (linux_proc_get_tracerpid): Rename to ...
12740 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12741 (linux_proc_pid_is_gone): New declaration.
12742 (linux_proc_pid_is_zombie): Update comment.
12743 (linux_proc_pid_is_zombie_nowarn): New declaration.
12744 (linux_proc_attach_lwp_func): New typedef.
12745 (linux_proc_attach_tgid_threads): New declaration.
12746 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12747 use nowarn functions.
12748 (linux_ptrace_attach_fail_reason_string): Move here from
12749 gdbserver/linux-low.c and rename.
12750 (ptrace_supports_feature): If the current ptrace options are not
12751 known yet, check them now, instead of asserting.
12752 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12753 Declare.
12754
12755 2015-01-09 Pedro Alves <palves@redhat.com>
12756
12757 * linux-thread-db.c (thread_db_find_new_threads_silently)
12758 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12759 (find_new_threads_once): Print debug output on gdb_stdlog.
12760
12761 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12762 Pedro Alves <palves@redhat.com>
12763
12764 * compile/compile.c: Include "gdb_wait.h".
12765 (do_rmdir): Check return value, and free 'zap'.
12766
12767 2015-01-08 Pedro Alves <palves@redhat.com>
12768 Yao Qi <yao@codesourcery.com>
12769
12770 * dwarf2loc.c (indirect_pieced_value): Don't call
12771 gdb_sign_extend. Call extract_signed_integer instead.
12772 * utils.c (gdb_sign_extend): Remove.
12773 * utils.h (gdb_sign_extend): Remove declaration.
12774
12775 2015-01-07 Pierre Muller <muller@sourceware.org>
12776
12777 PR symtab/17811
12778 * stabsread.c (define_symbol): Set language for C++ special symbols.
12779
12780 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12781
12782 * inflow.c (initial_gdb_ttystate): Tweak comment.
12783
12784 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12785
12786 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12787 comment documenting function.
12788
12789 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12790
12791 * terminal.h (set_initial_gdb_ttystate): Declare.
12792 * inflow.c (initial_gdb_ttystate): New static variable.
12793 (set_initial_gdb_ttystate): New setter.
12794 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12795 instead of our current terminal state.
12796 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12797
12798 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12799
12800 * guile/scm-type.c (tyscm_array_1): Add comment.
12801 * python/py-type.c (typy_array_1): Add comment.
12802
12803 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12804
12805 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12806 error if N2 is equal to N1 - 1.
12807
12808 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12809
12810 * python/py-type.c (typy_array_1): Do not raise negative-length
12811 exception if N2 is equal to N1 - 1.
12812
12813 2015-01-03 Doug Evans <xdje42@gmail.com>
12814
12815 * c-exp.y: Whitespace cleanup.
12816 (classify_inner_name): Remove extra ;.
12817
12818 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12819
12820 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12821 offset signed.
12822
12823 2015-01-02 Doug Evans <dje@google.com>
12824
12825 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12826
12827 2015-01-02 Doug Evans <dje@google.com>
12828
12829 * symtab.h (struct symbol): Fix typo in comment.
12830
12831 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12832
12833 Update year range in copyright notice of all files.
12834
12835 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12836
12837 * top.c (print_gdb_version): Update copyright year to 2015.
12838
12839 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12840
12841 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12842
12843 For older changes see ChangeLog-2014.
12844 \f
12845 Local Variables:
12846 mode: change-log
12847 left-margin: 8
12848 fill-column: 74
12849 version-control: never
12850 coding: utf-8
12851 End: