sparc64-tdep.c: Don't assign using memcpy return
[binutils-gdb.git] / gdb / ChangeLog
1 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
4 valbuf.
5
6 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
9 (ia64_push_dummy_call): Remove cast and change type of "to" to
10 array of gdb_byte.
11
12 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
15
16 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
17
18 * observer.h (observer_${event}_notification_stub): Add cast.
19
20 2015-10-23 Yao Qi <yao.qi@linaro.org>
21
22 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
23 dsd.insn_count to zero.
24
25 2015-10-22 Pedro Alves <palves@redhat.com>
26
27 * infrun.c (stop_after_trap): Delete.
28 (clear_proceed_status, handle_signal_stop, struct
29 infcall_control_state, save_infcall_control_state)
30 (restore_infcall_control_state): Remove references to
31 stop_after_trap.
32
33 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
34
35 * python/python.c (_initialize_python): Add cast.
36
37 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
38
39 * nto-tdep.c (nto_inferior_data): Add cast.
40
41 2015-10-22 Pedro Alves <palves@redhat.com>
42
43 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
44 windows_wait and windows_resume directly instead of
45 wait_for_inferior and resume.
46
47 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * xtensa-tdep.h (XTREG): Add casts.
50 (XTREG_END): Likewise.
51
52 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
55
56 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
59
60 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
63 buf to gdb_byte*.
64 (supply_32bit_reg): Add cast.
65 (mips64_fill_gregset): Likewise.
66
67 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
68
69 PR python/18073
70 * python/py-type.c (typy_get_composite): Allow returning a
71 function type.
72
73 2015-10-21 Keven Boell <keven.boell@intel.com>
74
75 * dwarf2read.c (set_die_type): Add read of
76 DW_AT_allocated and DW_AT_associated.
77 * f-typeprint.c: New include of typeprint.h
78 (f_print_type): Add check for allocated/associated
79 status of type.
80 (f_type_print_varspec_suffix): Add check for
81 * gdbtypes.c (create_array_type_with_stride):
82 Add check for valid data location of type in
83 case allocated or associated attributes are set.
84 Length of an array should be only calculated if
85 allocated or associated is resolved as true.
86 (is_dynamic_type_internal): Add check for allocated/
87 associated.
88 (resolve_dynamic_array): Evaluate allocated/associated
89 properties.
90 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
91 <DYN_PROP_ASSOCIATED>: New enums.
92 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
93 (type_not_allocated): New function.
94 (type_not_associated): New function.
95 * valarith.c (value_subscripted_rvalue): Add check for
96 allocated/associated.
97 * valprint.c: New include of typeprint.h.
98 (valprint_check_validity): Add check for allocated/associated.
99 (value_check_printable): Add check for allocated/
100 associated.
101 * typeprint.h (val_print_not_allocated): New function.
102 (val_print_not_associated): New function.
103 * typeprint.c (val_print_not_allocated): New function.
104 (val_print_not_associated): New function.
105
106 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
107
108 * Makefile.in: Add arm.c/o.
109 * arch/arm.c: New file.
110 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
111 (MAKE_THUMB_ADDR): Likewise.
112 (UNMAKE_THUMB_ADDR): Likewise.
113 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
114 (IS_THUMB_ADDR): Move to arm.h.
115 (MAKE_THUMB_ADDR): Likewise.
116 (UNMAKE_THUMB_ADDR): Likewise.
117 * configure.tgt: Add arm.o to all ARM configs.
118
119 2015-10-21 Yao Qi <yao.qi@linaro.org>
120
121 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
122 Remove argument exp_vCont_s.
123 * gdb.base/range-stepping.exp: Callers updated.
124 * gdb.trace/range-stepping.exp: Likewise.
125
126 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
127
128 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
129 (nto_sniff_abi_note_section): New function.
130 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
131 binary.
132
133 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
134
135 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
136 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
137 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
138 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
139 New functions.
140 (_initialize_nto_tdep): New forward declaration, new function.
141 * nto-tdep.h (struct nto_inferior_data): New struct.
142 (nto_inferior_data): New function declaration.
143
144 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
145
146 * findvar.c (address_from_register): Check REGNUM validity.
147
148 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
149
150 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
151 (init_procfs_targets): Wire new function.
152
153 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
154
155 * nto-procfs.c (sys/auxv.h): Include.
156 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
157 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
158 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
159
160 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
161
162 * nto-procfs.c (nto_procfs_path): Rename to...
163 (nodestr): ... this, and change type.
164 (nto_node): Use new variable and logic accordingly.
165 (procfs_open_1): Use new variable name. Use local buffer to construct
166 procfrs path.
167 (procfs_pidlist): Use NODESTR to construct procfs path.
168 (procfs_files_info): Use NODESTR to output meaningful text.
169 (do_attach): Construct procfs using NODESTR.
170 (procfs_create_inferior): Compare pointer to NULL.
171
172 2015-10-19 Josh Stone <jistone@redhat.com>
173
174 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
175 return state, even when not actively catching syscalls at all.
176 (linux_handle_extended_wait): Mark syscall_state like an entry.
177 (wait_lwp): Set syscall_state ignored for other traps.
178 (linux_nat_filter_event): Likewise.
179
180 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
181
182 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
183 when handling 'E', 'T', 'S', 'X' and 'W' packets.
184 Do not set rs->waiting_for_stop_reply back to 1.
185
186 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
187
188 * nto-procfs.c (common/filestuff.h): Include.
189 (procfs_can_use_hw_breakpoint): Fix enum name.
190 (procfs_open_1): Fix compiler warning.
191 (procfs_pidlist): Make static.
192 (procfs_meminfo): Make static, fix type name, add missing argument.
193 (procfs_store_registers): Make static.
194 (procfs_thread_info): Remove unused function.
195 (_initialize_procfs): Forward declare.
196
197 2015-10-16 Yao Qi <yao.qi@arm.com>
198
199 * MAINTAINERS: Update my email address.
200
201 2015-10-15 Yao Qi <yao.qi@linaro.org>
202
203 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
204 Call gdbarch_breakpoint_from_pc to instruction length.
205 (aarch64_linux_remove_hw_breakpoint): Likewise.
206 * common/common-regcache.h (regcache_register_size): Declare.
207 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
208 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
209 the process is 32bit, otherwise set alignment to 4.
210 (aarch64_handle_breakpoint): Update comments.
211 * regcache.c (regcache_register_size): New function.
212
213 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
214
215 * gdbarch.sh (core_regset_section): Remove.
216 * gdbarch.h: Regenerate.
217
218 2015-10-14 Yao Qi <yao.qi@linaro.org>
219
220 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
221 out of it.
222 (enum aarch64_memory_operand_type): New.
223
224 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
225
226 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
227
228 2015-10-13 Pedro Alves <palves@redhat.com>
229
230 * ada-lang.c (ada_enum_name): Constify local.
231 * ada-typeprint.c (print_range_bound): Constify locals.
232 * c-varobj.c (c_describe_child): Likewise.
233 * cli/cli-setshow.c (do_set_command): Likewise.
234 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
235 * dwarf2read.c (find_file_and_directory): Likewise.
236 (anonymous_struct_prefix, dwarf2_name): Likewise.
237 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
238 * go-lang.c (unpack_mangled_go_symbol): Likewise.
239 * jv-typeprint.c (java_type_print_base): Likewise.
240 * ser-tcp.c (net_open): Likewise.
241 * symfile.c (deduce_language_from_filename): Likewise.
242 * symtab.c (gdb_mangle_name): Likewise.
243 * tui/tui-io.c (tui_redisplay_readline): Likewise.
244
245 2015-10-13 Pedro Alves <palves@redhat.com>
246
247 * infrun.c (restore_execution_direction): New function.
248 (fetch_inferior_event): Use it instead of
249 make_cleanup_restore_integer.
250 (execution_direction): Change type to enum
251 exec_direction_kind.
252 * infrun.h (execution_direction): Likewise.
253
254 2015-10-13 Pedro Alves <palves@redhat.com>
255
256 * ada-lang.c (ada_value_primitive_packed_val): Constify
257 locals. Use value_contents_writeable. Remove casts.
258
259 2015-10-13 Pedro Alves <palves@redhat.com>
260
261 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
262 and alloca calls.
263
264 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
267 write_memory with write_memory_unsigned_integer.
268
269 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * solib-dsbt.c (cmp_name): Constify arguments.
272 * solib-frv.c (cmp_name): Likewise.
273 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
274 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
275 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
276 (gdb_bfd_lookup_symbol): Likewise.
277 * solib.h (gdb_bfd_lookup_symbol): Likewise.
278 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
279
280 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
281
282 * stack.c (parse_frame_specification): Remove message parameter,
283 replace with fixed string in function body, update function
284 comment.
285 (frame_info): Remove message to parse_frame_specification.
286 (select_frame_command): Likewise.
287
288 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * stack.c (parse_frame_specification): Delete.
291 (parse_frame_specification_1): Rename to
292 parse_frame_specification.
293 (frame_info): Use parse_frame_specification.
294 (select_frame_command): Likewise.
295 (return_command): Use select_frame and print_stack_frame rather
296 than frame_command and select_frame_command.
297 (func_command): Use get_current_frame rather than
298 parse_frame_specification.
299
300 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * stack.c (func_command): Return early when there is no ARG
303 string.
304
305 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * stack.c: Include safe-ctype.h not ctype.h.
308 (parse_frame_specification): Use ISSPACE not isspace.
309 (backtrace_command): Use TOLOWER not tolower.
310
311 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * mep-tdep.c (current_me_module): Add cast.
314 (mep_gdbarch_init): Likewise.
315
316 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * m32c-tdep.c (m32c_move_reg_t): Replace with...
319 (m32c_write_reg_t): ...this and...
320 (m32c_read_reg_t): ...this.
321 (struct m32c_reg): Update types of read and write.
322 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
323 adjust definition.
324 (m32c_banked_read): Likewise.
325 (m32c_sb_read): Likewise.
326 (m32c_part_read): Likewise.
327 (m32c_cat_read): Likewise.
328 (m32c_r3r2r1r0_read): Likewise.
329 (m32c_raw_write): Change declaration type to m32c_write_reg_t
330 and adjust definition.
331 (m32c_banked_write): Likewise.
332 (m32c_sb_write): Likewise.
333 (m32c_part_write): Likewise.
334 (m32c_cat_write): Likewise.
335 (m32c_r3r2r1r0_write): Likewise.
336
337 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
340
341 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
344 gdb_sys_no_syscall instead of -1.
345
346 2015-10-12 Yao Qi <yao.qi@linaro.org>
347
348 * NEWS: Mention the change.
349
350 2015-10-12 Yao Qi <yao.qi@linaro.org>
351
352 * arch/aarch64-insn.c (emit_load_store): Rename to ...
353 (aarch64_emit_load_store): ... it. All callers updated.
354
355 2015-10-12 Yao Qi <yao.qi@linaro.org>
356
357 * arch/aarch64-insn.c (emit_insn): Rename to ...
358 (aarch64_emit_insn): ... it. All callers updated.
359
360 2015-10-12 Yao Qi <yao.qi@linaro.org>
361
362 * aarch64-linux-tdep.c: Include arch-utils.h.
363 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
364 set_gdbarch_displaced_step_copy_insn,
365 set_gdbarch_displaced_step_fixup,
366 set_gdbarch_displaced_step_free_closure,
367 set_gdbarch_displaced_step_location,
368 and set_gdbarch_displaced_step_hw_singlestep.
369 * aarch64-tdep.c (struct displaced_step_closure): New.
370 (struct aarch64_displaced_step_data): New.
371 (aarch64_displaced_step_b): New function.
372 (aarch64_displaced_step_b_cond): Likewise.
373 (aarch64_register): Likewise.
374 (aarch64_displaced_step_cb): Likewise.
375 (aarch64_displaced_step_tb): Likewise.
376 (aarch64_displaced_step_adr): Likewise.
377 (aarch64_displaced_step_ldr_literal): Likewise.
378 (aarch64_displaced_step_others): Likewise.
379 (aarch64_displaced_step_copy_insn): Likewise.
380 (aarch64_displaced_step_fixup): Likewise.
381 (aarch64_displaced_step_hw_singlestep): Likewise.
382 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
383 (aarch64_displaced_step_copy_insn): Declare.
384 (aarch64_displaced_step_fixup): Declare.
385 (aarch64_displaced_step_hw_singlestep): Declare.
386 * arch/aarch64-insn.c (emit_insn): Moved from
387 gdbserver/linux-aarch64-low.c.
388 (emit_load_store): Likewise.
389 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
390 gdbserver/linux-aarch64-low.c.
391 (struct aarch64_register): Likewise.
392 (struct aarch64_memory_operand): Likewise.
393 (ENCODE): Likewise.
394 (can_encode_int32): New macro.
395 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
396 (emit_tb, emit_nop): Likewise.
397 (emit_insn): Declare.
398 (emit_load_store): Declare.
399
400 2015-10-12 Yao Qi <yao.qi@linaro.org>
401
402 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
403 gdbserver/linux-aarch64-low.c.
404 (aarch64_relocate_instruction): Likewise.
405 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
406 (struct aarch64_insn_data): Moved from
407 gdbserver/linux-aarch64-low.c.
408 (struct aarch64_insn_visitor): Likewise.
409 (aarch64_relocate_instruction): Declare.
410
411 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
412
413 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
414 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
415 to the returned value.
416
417 2015-10-09 Joel Brobecker <brobecker@adacore.com>
418
419 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
420 is large enough for BIT_SIZE. Update function comment.
421
422 2015-10-09 Joel Brobecker <brobecker@adacore.com>
423
424 * ada-lang.c (ada_value_primitive_packed_val): Move
425 src_len variable to local block where used. Override
426 BIT_SIZE if bigger than size of resolved type.
427
428 2015-10-09 Joel Brobecker <brobecker@adacore.com>
429
430 * gdbtypes.h (is_scalar_type): Add extern declaration.
431 * gdbtypes.c (is_scalar_type): Make non-static.
432 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
433 to compute IS_SCALAR instead of doing it ourselves.
434
435 2015-10-09 Joel Brobecker <brobecker@adacore.com>
436
437 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
438 of case where TYPE is dynamic.
439
440 2015-10-09 Joel Brobecker <brobecker@adacore.com>
441
442 * ada-lang.c (ada_unpack_from_contents): New function,
443 extracted from ada_value_primitive_packed_val.
444 (ada_value_primitive_packed_val): Replace extracted out code
445 by call to ada_unpack_from_contents.
446
447 2015-10-09 Joel Brobecker <brobecker@adacore.com>
448
449 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
450 variable declarations.
451
452 2015-10-09 Joel Brobecker <brobecker@adacore.com>
453
454 * ada-lang.c (ada_value_primitive_packed_val): Change the type
455 of local variables src and unpacked to "gdb_type *" instead of
456 "unsigned char *".
457
458 2015-10-09 Joel Brobecker <brobecker@adacore.com>
459
460 * ada-lang.c (ada_value_primitive_packed_val): Make the name
461 of various local variables more explicit and consistent.
462 No real code change otherwise.
463
464 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
465
466 * i386-tdep.h (struct gdbarch_tdep): Change type of
467 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
468
469 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
470
471 * cris-tdep.c (struct instruction_environment): Change type of
472 byte_order to enum bfd_endian.
473
474 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
475
476 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
477 enum gdb_syscall casts.
478
479 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
480
481 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
482 * arm-tdep.c (struct stack_item): Likewise.
483 (push_stack_item): Add gdb_byte* cast.
484 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
485 (push_stack_item): Add gdb_byte* cast.
486 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
487 and add cast.
488 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
489 (push_stack_item): Add gdb_byte* cast.
490 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
491 add cast.
492 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
493 gdb_byte*.
494 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
495 gdb_byte* and remove unnecessary cast.
496 (h8300h_extract_return_value): Likewise.
497 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
498 (h8300h_store_return_value): Likewise.
499 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
500 gdb_byte* and remove unnecessary cast.
501 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
502 and add cast.
503 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
504 gdb_byte* and remove unnecessary cast.
505 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
506 valbuf.
507 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
508 (mep_pseudo_cr64_read): Likewise.
509 (mep_pseudo_csr_write): Likewise.
510 (mep_pseudo_cr32_write): Likewise.
511 (mep_pseudo_cr64_write): Likewise.
512 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
513 gdb_byte* and add cast.
514 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
515 gdb_byte* and remove unnecessary cast.
516 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
517 valbuf.
518 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
519 gdb_byte*.
520 * printcmd.c (void): Likewise.
521 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
522 gdb_byte* and add cast.
523 (infpy_write_memory): Likewise.
524 (infpy_search_memory): Likewise.
525 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
526 and add cast.
527 (regcache_raw_write_unsigned): Likewise.
528 (regcache_cooked_write_signed): Likewise.
529 (regcache_cooked_write_unsigned): Likewise.
530 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
531 gdb_byte*.
532
533 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
534
535 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
536 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
537
538 2015-10-09 Eli Zaretskii <eliz@gnu.org>
539
540 * stack.c (print_stack_frame):
541 * utils.c (printchar): Fix typos in commentary.
542
543 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
544
545 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
546 (PostfixExpression): Support `expr.sizeof' expressions.
547 (PrimaryExpression): Support `typeof(expr)' expressions.
548
549 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
550
551 * MAINTAINERS: Update my email address.
552
553 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
554
555 * record-btrace.c (record_btrace_resume): Fix void return.
556
557 2015-10-07 Yao Qi <yao.qi@linaro.org>
558
559 * aarch64-tdep.c: Include opcode/aarch64.h.
560 (submask): Move it above.
561 (bit): Likewise.
562 (bits): Likewise.
563 (aarch64_software_single_step): Call aarch64_decode_insn.
564 Decode instruction by aarch64_inst instead of using
565 aarch64_decode_bcond and decode_masked_match.
566
567 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
568
569 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
570 only when the file is binary.
571
572 2015-10-02 James Bowman <james.bowman@ftdichip.com>
573
574 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
575 subroutine handling.
576
577 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
578
579 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
580
581 2015-09-30 Doug Evans <dje@google.com>
582
583 * dwarf2read.c (setup_type_unit_groups): Add comment.
584
585 2015-09-30 Pedro Alves <palves@redhat.com>
586
587 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
588 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
589 (x86_linux_create_target): Don't install
590 x86_linux_always_non_stop_p.
591
592 2015-09-30 Don Breazeal <donb@codesourcery.com>
593
594 * remote.c (remote_parse_stop_reply): Call strprefix instead
595 of strncmp.
596
597 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
598
599 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
600 * gdbarch.h: Regenerate.
601 * i386-tdep.c (i386_gdbarch_init): Remove cast to
602 struct gdbarch_tdep_info *.
603 * mips-tdep.c (mips_gdbarch_init): Likewise.
604 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
605 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
606 * spu-multiarch.c (spu_gdbarch): Likewise.
607
608 2015-09-30 Kevin Buettner <kevinb@redhat.com>
609
610 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
611 record a NULL value.
612
613 2015-09-29 Kevin Buettner <kevinb@redhat.com>
614
615 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
616 and union arguments the same as pointer arguments when determining
617 size of argument.
618
619 2015-09-29 James Bowman <james.bowman@ftdichip.com>
620
621 * ft32-tdep.c: #include "opcode/ft32.h".
622 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
623 (ft32_analyze_prologue): Use FT32_* macros.
624
625 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
626
627 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
628 comment.
629
630 2015-09-28 Doug Evans <dje@google.com>
631
632 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
633
634 2015-09-28 Doug Evans <dje@google.com>
635
636 * common/filestuff.c (make_cleanup_close): Update comment.
637
638 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * btrace.c (parse_xml_btrace_block): Fix cast of
641 xml_find_attribute's return value.
642 * memory-map.c (memory_map_start_memory): Likewise.
643 * solib-svr4.c (library_list_start_library): Likewise.
644 * solib-target.c (library_list_start_segment): Likewise.
645 (library_list_start_section): Likewise.
646 * tracepoint.c (traceframe_info_start_memory): Likewise.
647
648 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
649
650 * d-namespace.c (d_lookup_symbol): New arg langdef.
651 All callers updated. Support looking up symbol as a primitive type.
652 (lookup_module_scope): New arg langdef. All callers updated.
653 Call d_lookup_symbol directly for simple bare symbols.
654
655 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
656
657 * macrocmd.c (print_macro_callback): Add cast(s).
658 * macrotab.c (macro_bcache_str): Likewise.
659 (new_macro_definition): Likewise.
660 * main.c (captured_main): Likewise.
661 * maint.c (print_bfd_section_info): Likewise.
662 * mdebugread.c (mdebug_build_psymtabs): Likewise.
663 (basic_type): Likewise.
664 * memattr.c (mem_region_cmp): Likewise.
665 * memory-map.c (memory_map_start_memory): Likewise.
666 (memory_map_end_memory): Likewise.
667 (memory_map_start_property): Likewise.
668 (memory_map_end_property): Likewise.
669 (clear_result): Likewise.
670 * memrange.c (compare_mem_ranges): Likewise.
671 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
672 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
673 * mi/mi-console.c (mi_console_file_delete): Likewise.
674 (mi_console_file_fputs): Likewise.
675 (mi_console_raw_packet): Likewise.
676 (mi_console_file_flush): Likewise.
677 (mi_console_set_raw): Likewise.
678 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
679 (mi_new_thread): Likewise.
680 (mi_thread_exit): Likewise.
681 (mi_record_changed): Likewise.
682 (mi_inferior_added): Likewise.
683 (mi_inferior_appeared): Likewise.
684 (mi_inferior_exit): Likewise.
685 (mi_inferior_removed): Likewise.
686 (mi_interp_data): Likewise.
687 (mi_on_normal_stop): Likewise.
688 (mi_traceframe_changed): Likewise.
689 (mi_tsv_created): Likewise.
690 (mi_tsv_deleted): Likewise.
691 (mi_tsv_modified): Likewise.
692 (mi_breakpoint_created): Likewise.
693 (mi_breakpoint_deleted): Likewise.
694 (mi_breakpoint_modified): Likewise.
695 (mi_output_running_pid): Likewise.
696 (mi_inferior_count): Likewise.
697 (mi_solib_loaded): Likewise.
698 (mi_solib_unloaded): Likewise.
699 (mi_command_param_changed): Likewise.
700 (mi_memory_changed): Likewise.
701 (report_initial_inferior): Likewise.
702 (mi_ui_out): Likewise.
703 (mi_set_logging): Likewise.
704 * mi/mi-main.c (collect_cores): Likewise.
705 (print_one_inferior): Likewise.
706 (free_vector_of_ints): Likewise.
707 (free_splay_tree): Likewise.
708 (mi_execute_command): Likewise.
709 * mi/mi-out.c (mi_table_body): Likewise.
710 (mi_table_end): Likewise.
711 (mi_table_header): Likewise.
712 (mi_begin): Likewise.
713 (mi_end): Likewise.
714 (mi_field_int): Likewise.
715 (mi_field_string): Likewise.
716 (mi_field_fmt): Likewise.
717 (mi_flush): Likewise.
718 (mi_redirect): Likewise.
719 (field_separator): Likewise.
720 (mi_open): Likewise.
721 (mi_close): Likewise.
722 (mi_out_buffered): Likewise.
723 (mi_out_rewind): Likewise.
724 (mi_out_put): Likewise.
725 (mi_version): Likewise.
726 (mi_out_data_dtor): Likewise.
727 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
728 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
729 * minidebug.c (lzma_open): Likewise.
730 (lzma_pread): Likewise.
731 (lzma_close): Likewise.
732 (lzma_stat): Likewise.
733 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
734 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
735 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
736 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
737 (mips_micro_frame_cache): Likewise.
738 (mips_insn32_frame_cache): Likewise.
739 (mips_stub_frame_cache): Likewise.
740 (gdb_print_insn_mips): Likewise.
741 (value_of_mips_user_reg): Likewise.
742 (mips_gdbarch_init): Likewise.
743 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
744 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
745 (mipsnbsd_supply_gregset): Likewise.
746 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
747 (am33_collect_gregset_method): Likewise.
748 (am33_collect_fpregset_method): Likewise.
749 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
750 * moxie-tdep.c (moxie_frame_cache): Likewise.
751 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
752 (msp430_analyze_frame_prologue): Likewise.
753 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
754 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
755 (nios2_collect_gregset): Likewise.
756 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
757 (nios2_stub_frame_cache): Likewise.
758 * objc-lang.c (find_methods): Likewise.
759 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
760 (get_objfile_pspace_data): Likewise.
761 (get_objfile_bfd_data): Likewise.
762 (objfile_bfd_data_free): Likewise.
763 (add_to_objfile_sections): Likewise.
764 (do_free_objfile_cleanup): Likewise.
765 (resume_section_map_updates_cleanup): Likewise.
766 * opencl-lang.c (builtin_opencl_type): Likewise.
767 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
768 * osdata.c (osdata_start_osdata): Likewise.
769 (osdata_start_item): Likewise.
770 (osdata_start_column): Likewise.
771 (osdata_end_column): Likewise.
772 (clear_parsing_data): Likewise.
773 (osdata_free_cleanup): Likewise.
774 * parse.c (type_stack_cleanup): Likewise.
775 (exp_uses_objfile_iter): Likewise.
776 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
777 (ppc_linux_collect_gregset): Likewise.
778 (ppu2spu_prev_arch): Likewise.
779 (ppu2spu_this_id): Likewise.
780 (ppu2spu_prev_register): Likewise.
781 (ppu2spu_unwind_register): Likewise.
782 (ppu2spu_sniffer): Likewise.
783 (ppu2spu_dealloc_cache): Likewise.
784 (ppc_linux_init_abi): Likewise.
785 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
786 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
787 * progspace.c (restore_program_space): Likewise.
788 * psymtab.c (find_pc_sect_psymtab): Likewise.
789 (compare_psymbols): Likewise.
790 (psymbol_bcache_full): Likewise.
791 (allocate_psymtab): Likewise.
792 (discard_psymtabs_upto): Likewise.
793 * python/py-block.c (set_block): Likewise.
794 (del_objfile_blocks): Likewise.
795 * python/py-breakpoint.c (build_bp_list): Likewise.
796 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
797 (build_inferior_list): Likewise.
798 (py_free_inferior): Likewise.
799 * python/py-objfile.c (py_free_objfile): Likewise.
800 (objfile_to_objfile_object): Likewise.
801 * python/py-prettyprint.c (py_restore_tstate): Likewise.
802 * python/py-progspace.c (py_free_pspace): Likewise.
803 (pspace_to_pspace_object): Likewise.
804 * python/py-symbol.c (set_symbol): Likewise.
805 (del_objfile_symbols): Likewise.
806 * python/py-symtab.c (set_sal): Likewise.
807 (set_symtab): Likewise.
808 (del_objfile_symtab): Likewise.
809 (del_objfile_sal): Likewise.
810 * python/py-type.c (save_objfile_types): Likewise.
811 (set_type): Likewise.
812 * python/py-unwind.c (pyuw_prev_register): Likewise.
813 (pyuw_on_new_gdbarch): Likewise.
814 * python/py-utils.c (py_decref): Likewise.
815 (py_xdecref): Likewise.
816 (gdb_py_generic_dict): Likewise.
817 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
818 (gdbpy_clone_xmethod_worker_data): Likewise.
819 (gdbpy_get_xmethod_arg_types): Likewise.
820 (gdbpy_get_xmethod_result_type): Likewise.
821 (gdbpy_invoke_xmethod): Likewise.
822 * python/python.c (gdbpy_apply_type_printers): Likewise.
823 (gdbpy_free_type_printers): Likewise.
824 * record-btrace.c (record_btrace_disable_callback): Likewise.
825 (bfcache_hash): Likewise.
826 (bfcache_eq): Likewise.
827 (btrace_get_frame_function): Likewise.
828 (record_btrace_frame_unwind_stop_reason): Likewise.
829 (record_btrace_frame_this_id): Likewise.
830 (record_btrace_frame_prev_register): Likewise.
831 (record_btrace_frame_dealloc_cache): Likewise.
832 * record-full.c (record_full_message_wrapper): Likewise.
833 (record_full_save_cleanups): Likewise.
834 * regcache.c (regcache_descr): Likewise.
835 (do_regcache_xfree): Likewise.
836 (do_regcache_invalidate): Likewise.
837 (do_cooked_read): Likewise.
838 (regcache_transfer_regset): Likewise.
839 * reggroups.c (reggroup_add): Likewise.
840 (reggroup_next): Likewise.
841 (reggroup_prev): Likewise.
842 * remote-fileio.c (do_remote_fileio_request): Likewise.
843 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
844 (do_notif_event_xfree): Likewise.
845 * remote.c (get_remote_arch_state): Likewise.
846 (remote_pspace_data_cleanup): Likewise.
847 (get_remote_exec_file): Likewise.
848 (set_pspace_remote_exec_file): Likewise.
849 (compare_pnums): Likewise.
850 (clear_threads_listing_context): Likewise.
851 (remote_newthread_step): Likewise.
852 (start_thread): Likewise.
853 (end_thread): Likewise.
854 (remove_child_of_pending_fork): Likewise.
855 (remove_stop_reply_for_inferior): Likewise.
856 (remove_stop_reply_of_remote_state): Likewise.
857 (remote_notif_remove_once_on_match): Likewise.
858 (stop_reply_match_ptid_and_ws): Likewise.
859 (kill_child_of_pending_fork): Likewise.
860 (register_remote_g_packet_guess): Likewise.
861 (remote_read_description_p): Likewise.
862 (remote_read_description): Likewise.
863 (free_actions_list_cleanup_wrapper): Likewise.
864 (remote_async_serial_handler): Likewise.
865 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
866 (rl78_analyze_frame_prologue): Likewise.
867 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
868 (ppc_supply_fpregset): Likewise.
869 (ppc_supply_vsxregset): Likewise.
870 (ppc_supply_vrregset): Likewise.
871 (ppc_collect_gregset): Likewise.
872 (ppc_collect_fpregset): Likewise.
873 (ppc_collect_vsxregset): Likewise.
874 (ppc_collect_vrregset): Likewise.
875 (e500_move_ev_register): Likewise.
876 (do_regcache_raw_write): Likewise.
877 (rs6000_frame_cache): Likewise.
878 (rs6000_epilogue_frame_cache): Likewise.
879 (rs6000_gdbarch_init): Likewise.
880 * rx-tdep.c (rx_get_opcode_byte): Likewise.
881 (rx_analyze_frame_prologue): Likewise.
882 (rx_frame_type): Likewise.
883 (rx_frame_sniffer_common): Likewise.
884 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
885 (s390_frame_unwind_cache): Likewise.
886 (s390_stub_frame_unwind_cache): Likewise.
887 (s390_sigtramp_frame_unwind_cache): Likewise.
888 * score-tdep.c (score_make_prologue_cache): Likewise.
889 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
890 (sentinel_frame_prev_arch): Likewise.
891 * ser-base.c (fd_event): Likewise.
892 (push_event): Likewise.
893 (ser_base_write): Likewise.
894 * ser-pipe.c (pipe_close): Likewise.
895 * serial.c (serial_write): Likewise.
896 * sh-tdep.c (sh_frame_cache): Likewise.
897 (sh_stub_this_id): Likewise.
898 * sh64-tdep.c (sh64_frame_cache): Likewise.
899 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
900 (library_list_start_library): Likewise.
901 (library_list_start_list): Likewise.
902 (solib_aix_free_library_list): Likewise.
903 * solib-darwin.c (get_darwin_info): Likewise.
904 * solib-dsbt.c (get_dsbt_info): Likewise.
905 * solib-spu.c (append_ocl_sos): Likewise.
906 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
907 (get_svr4_info): Likewise.
908 (library_list_start_library): Likewise.
909 (svr4_library_list_start_list): Likewise.
910 (hash_probe_and_action): Likewise.
911 (equal_probe_and_action): Likewise.
912 (svr4_update_solib_event_breakpoint): Likewise.
913 (set_solib_svr4_fetch_link_map_offsets): Likewise.
914 (svr4_fetch_link_map_offsets): Likewise.
915 (svr4_have_link_map_offsets): Likewise.
916 * solib-target.c (library_list_start_segment): Likewise.
917 (library_list_start_section): Likewise.
918 (library_list_start_library): Likewise.
919 (library_list_end_library): Likewise.
920 (library_list_start_list): Likewise.
921 (solib_target_free_library_list): Likewise.
922 * solib.c (solib_ops): Likewise.
923 (set_solib_ops): Likewise.
924 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
925 * sparc-tdep.c (sparc_frame_cache): Likewise.
926 (sparc32_frame_cache): Likewise.
927 (sparc32_supply_gregset): Likewise.
928 (sparc32_collect_gregset): Likewise.
929 (sparc32_supply_fpregset): Likewise.
930 (sparc32_collect_fpregset): Likewise.
931 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
932 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
933 (sparc64_collect_gregset): Likewise.
934 (sparc64_supply_fpregset): Likewise.
935 (sparc64_collect_fpregset): Likewise.
936 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
937 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
938 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
939 (sparc64obsd_trapframe_cache): Likewise.
940 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
941 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
942 * spu-multiarch.c (spu_gdbarch): Likewise.
943 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
944 (spu2ppu_prev_arch): Likewise.
945 (spu2ppu_this_id): Likewise.
946 (spu2ppu_prev_register): Likewise.
947 (spu2ppu_dealloc_cache): Likewise.
948 (spu_dis_asm_print_address): Likewise.
949 (gdb_print_insn_spu): Likewise.
950 (spu_get_overlay_table): Likewise.
951 * stabsread.c (rs6000_builtin_type): Likewise.
952 * stack.c (do_print_variable_and_value): Likewise.
953 * stap-probe.c (get_stap_base_address_1): Likewise.
954 * symfile-debug.c (debug_qf_has_symbols): Likewise.
955 (debug_qf_find_last_source_symtab): Likewise.
956 (debug_qf_forget_cached_source_info): Likewise.
957 (debug_qf_map_symtabs_matching_filename): Likewise.
958 (debug_qf_lookup_symbol): Likewise.
959 (debug_qf_print_stats): Likewise.
960 (debug_qf_dump): Likewise.
961 (debug_qf_relocate): Likewise.
962 (debug_qf_expand_symtabs_for_function): Likewise.
963 (debug_qf_expand_all_symtabs): Likewise.
964 (debug_qf_expand_symtabs_with_fullname): Likewise.
965 (debug_qf_map_matching_symbols): Likewise.
966 (debug_qf_expand_symtabs_matching): Likewise.
967 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
968 (debug_qf_map_symbol_filenames): Likewise.
969 (debug_sym_get_probes): Likewise.
970 (debug_sym_new_init): Likewise.
971 (debug_sym_init): Likewise.
972 (debug_sym_read): Likewise.
973 (debug_sym_read_psymbols): Likewise.
974 (debug_sym_finish): Likewise.
975 (debug_sym_offsets): Likewise.
976 (debug_sym_read_linetable): Likewise.
977 (debug_sym_relocate): Likewise.
978 (uninstall_symfile_debug_logging): Likewise.
979 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
980 * symfile.c (place_section): Likewise.
981 (add_section_size_callback): Likewise.
982 (load_progress): Likewise.
983 (load_section_callback): Likewise.
984 (clear_memory_write_data): Likewise.
985 (allocate_symtab): Likewise.
986 * symmisc.c (maintenance_expand_file_matcher): Likewise.
987 * symtab.c (lookup_symtab_callback): Likewise.
988 (hash_demangled_name_entry): Likewise.
989 (eq_demangled_name_entry): Likewise.
990 (get_symbol_cache): Likewise.
991 (symbol_cache_cleanup): Likewise.
992 (set_symbol_cache_size): Likewise.
993 (symbol_cache_flush): Likewise.
994 (maintenance_print_symbol_cache): Likewise.
995 (maintenance_print_symbol_cache_statistics): Likewise.
996 (delete_filename_seen_cache): Likewise.
997 (output_partial_symbol_filename): Likewise.
998 (search_symbols_file_matches): Likewise.
999 (search_symbols_name_matches): Likewise.
1000 (do_free_completion_list): Likewise.
1001 (maybe_add_partial_symtab_filename): Likewise.
1002 (get_main_info): Likewise.
1003 (main_info_cleanup): Likewise.
1004 * target-dcache.c (target_dcache_cleanup): Likewise.
1005 (target_dcache_init_p): Likewise.
1006 (target_dcache_invalidate): Likewise.
1007 (target_dcache_get): Likewise.
1008 (target_dcache_get_or_init): Likewise.
1009 * target-descriptions.c (target_find_description): Likewise.
1010 (tdesc_find_type): Likewise.
1011 (tdesc_data_cleanup): Likewise.
1012 (tdesc_find_arch_register): Likewise.
1013 (tdesc_register_name): Likewise.
1014 (tdesc_register_type): Likewise.
1015 (tdesc_register_reggroup_p): Likewise.
1016 (set_tdesc_pseudo_register_name): Likewise.
1017 (set_tdesc_pseudo_register_type): Likewise.
1018 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1019 (tdesc_use_registers): Likewise.
1020 (free_target_description): Likewise.
1021 * target-memory.c (compare_block_starting_address): Likewise.
1022 (cleanup_request_data): Likewise.
1023 (cleanup_write_requests_vector): Likewise.
1024 * target.c (open_target): Likewise.
1025 (cleanup_restore_target_terminal): Likewise.
1026 (free_memory_read_result_vector): Likewise.
1027 * thread.c (disable_thread_stack_temporaries): Likewise.
1028 (finish_thread_state_cleanup): Likewise.
1029 (do_restore_current_thread_cleanup): Likewise.
1030 (restore_current_thread_cleanup_dtor): Likewise.
1031 (set_thread_refcount): Likewise.
1032 (tp_array_compar): Likewise.
1033 (do_captured_thread_select): Likewise.
1034 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1035 (tic6x_stub_this_id): Likewise.
1036 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1037 * top.c (do_restore_instream_cleanup): Likewise.
1038 (gdb_readline_wrapper_cleanup): Likewise.
1039 (kill_or_detach): Likewise.
1040 (print_inferior_quit_action): Likewise.
1041 * tracefile-tfile.c (match_blocktype): Likewise.
1042 (build_traceframe_info): Likewise.
1043 * tracefile.c (trace_file_writer_xfree): Likewise.
1044 * tracepoint.c (memrange_cmp): Likewise.
1045 (do_collect_symbol): Likewise.
1046 (do_clear_collection_list): Likewise.
1047 (do_restore_current_traceframe_cleanup): Likewise.
1048 (restore_current_traceframe_cleanup_dtor): Likewise.
1049 (free_current_marker): Likewise.
1050 (traceframe_info_start_memory): Likewise.
1051 (traceframe_info_start_tvar): Likewise.
1052 (free_result): Likewise.
1053 * tramp-frame.c (tramp_frame_cache): Likewise.
1054 * tui/tui-file.c (tui_file_delete): Likewise.
1055 (tui_fileopen): Likewise.
1056 (tui_sfileopen): Likewise.
1057 (tui_file_isatty): Likewise.
1058 (tui_file_rewind): Likewise.
1059 (tui_file_put): Likewise.
1060 (tui_file_fputs): Likewise.
1061 (tui_file_get_strbuf): Likewise.
1062 (tui_file_adjust_strbuf): Likewise.
1063 (tui_file_flush): Likewise.
1064 * tui/tui-layout.c (make_command_window): Likewise.
1065 (make_data_window): Likewise.
1066 (show_source_disasm_command): Likewise.
1067 (show_data): Likewise.
1068 (make_source_or_disasm_window): Likewise.
1069 (show_source_or_disasm_and_command): Likewise.
1070 * tui/tui-out.c (tui_field_int): Likewise.
1071 (tui_field_string): Likewise.
1072 (tui_field_fmt): Likewise.
1073 (tui_text): Likewise.
1074 * typeprint.c (hash_typedef_field): Likewise.
1075 (eq_typedef_field): Likewise.
1076 (do_free_typedef_hash): Likewise.
1077 (copy_typedef_hash_element): Likewise.
1078 (do_free_global_table): Likewise.
1079 (find_global_typedef): Likewise.
1080 (find_typedef_in_hash): Likewise.
1081 * ui-file.c (ui_file_write_for_put): Likewise.
1082 (do_ui_file_xstrdup): Likewise.
1083 (mem_file_delete): Likewise.
1084 (mem_file_rewind): Likewise.
1085 (mem_file_put): Likewise.
1086 (mem_file_write): Likewise.
1087 (stdio_file_delete): Likewise.
1088 (stdio_file_flush): Likewise.
1089 (stdio_file_read): Likewise.
1090 (stdio_file_write): Likewise.
1091 (stdio_file_write_async_safe): Likewise.
1092 (stdio_file_fputs): Likewise.
1093 (stdio_file_isatty): Likewise.
1094 (stdio_file_fseek): Likewise.
1095 (tee_file_delete): Likewise.
1096 (tee_file_flush): Likewise.
1097 (tee_file_write): Likewise.
1098 (tee_file_fputs): Likewise.
1099 (tee_file_isatty): Likewise.
1100 * ui-out.c (do_cleanup_table_end): Likewise.
1101 (do_cleanup_end): Likewise.
1102 * user-regs.c (user_reg_add): Likewise.
1103 (user_reg_map_name_to_regnum): Likewise.
1104 (usernum_to_user_reg): Likewise.
1105 (maintenance_print_user_registers): Likewise.
1106 * utils.c (do_bfd_close_cleanup): Likewise.
1107 (do_fclose_cleanup): Likewise.
1108 (do_obstack_free): Likewise.
1109 (do_ui_file_delete): Likewise.
1110 (do_ui_out_redirect_pop): Likewise.
1111 (do_free_section_addr_info): Likewise.
1112 (restore_integer): Likewise.
1113 (do_unpush_target): Likewise.
1114 (do_htab_delete_cleanup): Likewise.
1115 (do_restore_ui_file): Likewise.
1116 (do_value_free): Likewise.
1117 (do_free_so): Likewise.
1118 (free_current_contents): Likewise.
1119 (do_regfree_cleanup): Likewise.
1120 (core_addr_hash): Likewise.
1121 (core_addr_eq): Likewise.
1122 (do_free_char_ptr_vec): Likewise.
1123 * v850-tdep.c (v850_frame_cache): Likewise.
1124 * varobj.c (do_free_variable_cleanup): Likewise.
1125 * vax-tdep.c (vax_supply_gregset): Likewise.
1126 (vax_frame_cache): Likewise.
1127 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1128 * xml-support.c (gdb_xml_body_text): Likewise.
1129 (gdb_xml_values_cleanup): Likewise.
1130 (gdb_xml_start_element): Likewise.
1131 (gdb_xml_start_element_wrapper): Likewise.
1132 (gdb_xml_end_element): Likewise.
1133 (gdb_xml_end_element_wrapper): Likewise.
1134 (gdb_xml_cleanup): Likewise.
1135 (gdb_xml_fetch_external_entity): Likewise.
1136 (gdb_xml_parse_attr_enum): Likewise.
1137 (xinclude_start_include): Likewise.
1138 (xinclude_end_include): Likewise.
1139 (xml_xinclude_default): Likewise.
1140 (xml_xinclude_start_doctype): Likewise.
1141 (xml_xinclude_end_doctype): Likewise.
1142 (xml_xinclude_cleanup): Likewise.
1143 (xml_fetch_content_from_file): Likewise.
1144 * xml-syscall.c (free_syscalls_info): Likewise.
1145 (syscall_start_syscall): Likewise.
1146 * xml-tdesc.c (tdesc_end_arch): Likewise.
1147 (tdesc_end_osabi): Likewise.
1148 (tdesc_end_compatible): Likewise.
1149 (tdesc_start_target): Likewise.
1150 (tdesc_start_feature): Likewise.
1151 (tdesc_start_reg): Likewise.
1152 (tdesc_start_union): Likewise.
1153 (tdesc_start_struct): Likewise.
1154 (tdesc_start_flags): Likewise.
1155 (tdesc_start_field): Likewise.
1156 (tdesc_start_vector): Likewise.
1157 (fetch_available_features_from_target): Likewise.
1158 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1159 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1160 (xtensa_frame_cache): Likewise.
1161 (xtensa_frame_prev_register): Likewise.
1162 (xtensa_extract_return_value): Likewise.
1163
1164 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1165
1166 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1167 (aarch64_make_stub_cache): Likewise.
1168 (value_of_aarch64_user_reg): Likewise.
1169 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1170 (get_ada_inferior_data): Likewise.
1171 (get_ada_pspace_data): Likewise.
1172 (ada_pspace_data_cleanup): Likewise.
1173 (ada_complete_symbol_matcher): Likewise.
1174 (ada_exc_search_name_matches): Likewise.
1175 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1176 (get_ada_tasks_inferior_data): Likewise.
1177 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1178 (splay_obstack_alloc): Likewise.
1179 (splay_obstack_free): Likewise.
1180 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1181 (alpha_linux_collect_gregset): Likewise.
1182 (alpha_linux_supply_fpregset): Likewise.
1183 (alpha_linux_collect_fpregset): Likewise.
1184 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1185 * alpha-tdep.c (alpha_lds): Likewise.
1186 (alpha_sts): Likewise.
1187 (alpha_sigtramp_frame_unwind_cache): Likewise.
1188 (alpha_heuristic_frame_unwind_cache): Likewise.
1189 (alpha_supply_int_regs): Likewise.
1190 (alpha_fill_int_regs): Likewise.
1191 (alpha_supply_fp_regs): Likewise.
1192 (alpha_fill_fp_regs): Likewise.
1193 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1194 (alphanbsd_aout_supply_gregset): Likewise.
1195 (alphanbsd_supply_gregset): Likewise.
1196 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1197 (amd64_x32_linux_init_abi): Likewise.
1198 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1199 (amd64_collect_native_gregset): Likewise.
1200 * amd64-tdep.c (amd64_frame_cache): Likewise.
1201 (amd64_sigtramp_frame_cache): Likewise.
1202 (amd64_epilogue_frame_cache): Likewise.
1203 (amd64_supply_fxsave): Likewise.
1204 (amd64_supply_xsave): Likewise.
1205 (amd64_collect_fxsave): Likewise.
1206 (amd64_collect_xsave): Likewise.
1207 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1208 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1209 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1210 (arm_linux_collect_gregset): Likewise.
1211 (arm_linux_supply_nwfpe): Likewise.
1212 (arm_linux_collect_nwfpe): Likewise.
1213 (arm_linux_supply_vfp): Likewise.
1214 (arm_linux_collect_vfp): Likewise.
1215 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1216 (arm_prologue_unwind_stop_reason): Likewise.
1217 (arm_prologue_this_id): Likewise.
1218 (arm_prologue_prev_register): Likewise.
1219 (arm_exidx_data_free): Likewise.
1220 (arm_find_exidx_entry): Likewise.
1221 (arm_stub_this_id): Likewise.
1222 (arm_m_exception_this_id): Likewise.
1223 (arm_m_exception_prev_register): Likewise.
1224 (arm_normal_frame_base): Likewise.
1225 (gdb_print_insn_arm): Likewise.
1226 (arm_objfile_data_free): Likewise.
1227 (arm_record_special_symbol): Likewise.
1228 (value_of_arm_user_reg): Likewise.
1229 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1230 (armbsd_supply_gregset): Likewise.
1231 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1232 (get_auto_load_pspace_data): Likewise.
1233 (hash_loaded_script_entry): Likewise.
1234 (eq_loaded_script_entry): Likewise.
1235 (clear_section_scripts): Likewise.
1236 (collect_matching_scripts): Likewise.
1237 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1238 (get_auxv_inferior_data): Likewise.
1239 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1240 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1241 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1242 (target_bfd_xclose): Likewise.
1243 (target_bfd_get_section_table): Likewise.
1244 * bfin-tdep.c (bfin_frame_cache): Likewise.
1245 * block.c (find_block_in_blockvector): Likewise.
1246 (call_site_for_pc): Likewise.
1247 (block_find_non_opaque_type_preferred): Likewise.
1248 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1249 (signal_catchpoint_remove_location): Likewise.
1250 (signal_catchpoint_breakpoint_hit): Likewise.
1251 (signal_catchpoint_print_one): Likewise.
1252 (signal_catchpoint_print_mention): Likewise.
1253 (signal_catchpoint_print_recreate): Likewise.
1254 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1255 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1256 (bp_location_compare_addrs): Likewise.
1257 (get_first_locp_gte_addr): Likewise.
1258 (check_tracepoint_command): Likewise.
1259 (do_map_commands_command): Likewise.
1260 (get_breakpoint_objfile_data): Likewise.
1261 (free_breakpoint_probes): Likewise.
1262 (do_captured_breakpoint_query): Likewise.
1263 (compare_breakpoints): Likewise.
1264 (bp_location_compare): Likewise.
1265 (bpstat_remove_breakpoint_callback): Likewise.
1266 (do_delete_breakpoint_cleanup): Likewise.
1267 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1268 (bsd_uthread_set_collect_uthread): Likewise.
1269 (bsd_uthread_activate): Likewise.
1270 (bsd_uthread_fetch_registers): Likewise.
1271 (bsd_uthread_store_registers): Likewise.
1272 * btrace.c (check_xml_btrace_version): Likewise.
1273 (parse_xml_btrace_block): Likewise.
1274 (parse_xml_btrace_pt_config_cpu): Likewise.
1275 (parse_xml_btrace_pt_raw): Likewise.
1276 (parse_xml_btrace_pt): Likewise.
1277 (parse_xml_btrace_conf_bts): Likewise.
1278 (parse_xml_btrace_conf_pt): Likewise.
1279 (do_btrace_data_cleanup): Likewise.
1280 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1281 * charset.c (cleanup_iconv): Likewise.
1282 (do_cleanup_iterator): Likewise.
1283 * cli-out.c (cli_uiout_dtor): Likewise.
1284 (cli_table_begin): Likewise.
1285 (cli_table_body): Likewise.
1286 (cli_table_end): Likewise.
1287 (cli_table_header): Likewise.
1288 (cli_begin): Likewise.
1289 (cli_end): Likewise.
1290 (cli_field_int): Likewise.
1291 (cli_field_skip): Likewise.
1292 (cli_field_string): Likewise.
1293 (cli_field_fmt): Likewise.
1294 (cli_spaces): Likewise.
1295 (cli_text): Likewise.
1296 (cli_message): Likewise.
1297 (cli_wrap_hint): Likewise.
1298 (cli_flush): Likewise.
1299 (cli_redirect): Likewise.
1300 (out_field_fmt): Likewise.
1301 (field_separator): Likewise.
1302 (cli_out_set_stream): Likewise.
1303 * cli/cli-cmds.c (compare_symtabs): Likewise.
1304 * cli/cli-dump.c (call_dump_func): Likewise.
1305 (restore_section_callback): Likewise.
1306 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1307 (do_restore_user_call_depth): Likewise.
1308 (do_free_command_lines_cleanup): Likewise.
1309 * coff-pe-read.c (get_section_vmas): Likewise.
1310 (pe_as16): Likewise.
1311 (pe_as32): Likewise.
1312 * coffread.c (coff_symfile_read): Likewise.
1313 * common/agent.c (agent_look_up_symbols): Likewise.
1314 * common/filestuff.c (do_close_cleanup): Likewise.
1315 * common/format.c (free_format_pieces_cleanup): Likewise.
1316 * common/vec.c (vec_o_reserve): Likewise.
1317 * compile/compile-c-support.c (print_one_macro): Likewise.
1318 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1319 (eq_symbol_error): Likewise.
1320 (del_symbol_error): Likewise.
1321 (error_symbol_once): Likewise.
1322 (gcc_convert_symbol): Likewise.
1323 (gcc_symbol_address): Likewise.
1324 (hash_symname): Likewise.
1325 (eq_symname): Likewise.
1326 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1327 (eq_type_map_instance): Likewise.
1328 (insert_type): Likewise.
1329 (convert_type): Likewise.
1330 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1331 (setup_sections): Likewise.
1332 (link_hash_table_free): Likewise.
1333 (copy_sections): Likewise.
1334 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1335 * compile/compile.c (compile_print_value): Likewise.
1336 (do_rmdir): Likewise.
1337 (cleanup_compile_instance): Likewise.
1338 (cleanup_unlink_file): Likewise.
1339 * completer.c (free_completion_tracker): Likewise.
1340 * corelow.c (add_to_spuid_list): Likewise.
1341 * cp-namespace.c (reset_directive_searched): Likewise.
1342 * cp-support.c (reset_directive_searched): Likewise.
1343 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1344 (cris_frame_unwind_cache): Likewise.
1345 * d-lang.c (builtin_d_type): Likewise.
1346 * d-namespace.c (reset_directive_searched): Likewise.
1347 * dbxread.c (dbx_free_symfile_info): Likewise.
1348 (do_free_bincl_list_cleanup): Likewise.
1349 * disasm.c (hash_dis_line_entry): Likewise.
1350 (eq_dis_line_entry): Likewise.
1351 (dis_asm_print_address): Likewise.
1352 (fprintf_disasm): Likewise.
1353 (do_ui_file_delete): Likewise.
1354 * doublest.c (convert_floatformat_to_doublest): Likewise.
1355 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1356 (dummy_frame_prev_register): Likewise.
1357 (dummy_frame_this_id): Likewise.
1358 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1359 (cache_eq): Likewise.
1360 (cache_find): Likewise.
1361 (tailcall_frame_this_id): Likewise.
1362 (dwarf2_tailcall_prev_register_first): Likewise.
1363 (tailcall_frame_prev_register): Likewise.
1364 (tailcall_frame_dealloc_cache): Likewise.
1365 (tailcall_frame_prev_arch): Likewise.
1366 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1367 (dwarf2_frame_set_init_reg): Likewise.
1368 (dwarf2_frame_init_reg): Likewise.
1369 (dwarf2_frame_set_signal_frame_p): Likewise.
1370 (dwarf2_frame_signal_frame_p): Likewise.
1371 (dwarf2_frame_set_adjust_regnum): Likewise.
1372 (dwarf2_frame_adjust_regnum): Likewise.
1373 (clear_pointer_cleanup): Likewise.
1374 (dwarf2_frame_cache): Likewise.
1375 (find_cie): Likewise.
1376 (dwarf2_frame_find_fde): Likewise.
1377 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1378 (free_dwarf_expr_context_cleanup): Likewise.
1379 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1380 (locexpr_get_frame_base): Likewise.
1381 (loclist_find_frame_base_location): Likewise.
1382 (loclist_get_frame_base): Likewise.
1383 (dwarf_expr_dwarf_call): Likewise.
1384 (dwarf_expr_get_base_type): Likewise.
1385 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1386 (dwarf_expr_get_obj_addr): Likewise.
1387 (entry_data_value_coerce_ref): Likewise.
1388 (entry_data_value_copy_closure): Likewise.
1389 (entry_data_value_free_closure): Likewise.
1390 (get_frame_address_in_block_wrapper): Likewise.
1391 (dwarf2_evaluate_property): Likewise.
1392 (dwarf2_compile_property_to_c): Likewise.
1393 (needs_frame_read_addr_from_reg): Likewise.
1394 (needs_frame_get_reg_value): Likewise.
1395 (needs_frame_frame_base): Likewise.
1396 (needs_frame_frame_cfa): Likewise.
1397 (needs_frame_tls_address): Likewise.
1398 (needs_frame_dwarf_call): Likewise.
1399 (needs_dwarf_reg_entry_value): Likewise.
1400 (get_ax_pc): Likewise.
1401 (locexpr_read_variable): Likewise.
1402 (locexpr_read_variable_at_entry): Likewise.
1403 (locexpr_read_needs_frame): Likewise.
1404 (locexpr_describe_location): Likewise.
1405 (locexpr_tracepoint_var_ref): Likewise.
1406 (locexpr_generate_c_location): Likewise.
1407 (loclist_read_variable): Likewise.
1408 (loclist_read_variable_at_entry): Likewise.
1409 (loclist_describe_location): Likewise.
1410 (loclist_tracepoint_var_ref): Likewise.
1411 (loclist_generate_c_location): Likewise.
1412 * dwarf2read.c (line_header_hash_voidp): Likewise.
1413 (line_header_eq_voidp): Likewise.
1414 (dwarf2_has_info): Likewise.
1415 (dwarf2_get_section_info): Likewise.
1416 (locate_dwz_sections): Likewise.
1417 (hash_file_name_entry): Likewise.
1418 (eq_file_name_entry): Likewise.
1419 (delete_file_name_entry): Likewise.
1420 (dw2_setup): Likewise.
1421 (dw2_get_file_names_reader): Likewise.
1422 (dw2_find_pc_sect_compunit_symtab): Likewise.
1423 (hash_signatured_type): Likewise.
1424 (eq_signatured_type): Likewise.
1425 (add_signatured_type_cu_to_table): Likewise.
1426 (create_debug_types_hash_table): Likewise.
1427 (lookup_dwo_signatured_type): Likewise.
1428 (lookup_dwp_signatured_type): Likewise.
1429 (lookup_signatured_type): Likewise.
1430 (hash_type_unit_group): Likewise.
1431 (eq_type_unit_group): Likewise.
1432 (get_type_unit_group): Likewise.
1433 (process_psymtab_comp_unit_reader): Likewise.
1434 (sort_tu_by_abbrev_offset): Likewise.
1435 (process_skeletonless_type_unit): Likewise.
1436 (psymtabs_addrmap_cleanup): Likewise.
1437 (dwarf2_read_symtab): Likewise.
1438 (psymtab_to_symtab_1): Likewise.
1439 (die_hash): Likewise.
1440 (die_eq): Likewise.
1441 (load_full_comp_unit_reader): Likewise.
1442 (reset_die_in_process): Likewise.
1443 (free_cu_line_header): Likewise.
1444 (handle_DW_AT_stmt_list): Likewise.
1445 (hash_dwo_file): Likewise.
1446 (eq_dwo_file): Likewise.
1447 (hash_dwo_unit): Likewise.
1448 (eq_dwo_unit): Likewise.
1449 (create_dwo_cu_reader): Likewise.
1450 (create_dwo_unit_in_dwp_v1): Likewise.
1451 (create_dwo_unit_in_dwp_v2): Likewise.
1452 (lookup_dwo_unit_in_dwp): Likewise.
1453 (dwarf2_locate_dwo_sections): Likewise.
1454 (dwarf2_locate_common_dwp_sections): Likewise.
1455 (dwarf2_locate_v2_dwp_sections): Likewise.
1456 (hash_dwp_loaded_cutus): Likewise.
1457 (eq_dwp_loaded_cutus): Likewise.
1458 (lookup_dwo_cutu): Likewise.
1459 (abbrev_table_free_cleanup): Likewise.
1460 (dwarf2_free_abbrev_table): Likewise.
1461 (find_partial_die_in_comp_unit): Likewise.
1462 (free_line_header_voidp): Likewise.
1463 (follow_die_offset): Likewise.
1464 (follow_die_sig_1): Likewise.
1465 (free_heap_comp_unit): Likewise.
1466 (free_stack_comp_unit): Likewise.
1467 (dwarf2_free_objfile): Likewise.
1468 (per_cu_offset_and_type_hash): Likewise.
1469 (per_cu_offset_and_type_eq): Likewise.
1470 (get_die_type_at_offset): Likewise.
1471 (partial_die_hash): Likewise.
1472 (partial_die_eq): Likewise.
1473 (dwarf2_per_objfile_free): Likewise.
1474 (hash_strtab_entry): Likewise.
1475 (eq_strtab_entry): Likewise.
1476 (add_string): Likewise.
1477 (hash_symtab_entry): Likewise.
1478 (eq_symtab_entry): Likewise.
1479 (delete_symtab_entry): Likewise.
1480 (cleanup_mapped_symtab): Likewise.
1481 (add_indices_to_cpool): Likewise.
1482 (hash_psymtab_cu_index): Likewise.
1483 (eq_psymtab_cu_index): Likewise.
1484 (add_address_entry_worker): Likewise.
1485 (unlink_if_set): Likewise.
1486 (write_one_signatured_type): Likewise.
1487 (save_gdb_index_command): Likewise.
1488 * elfread.c (elf_symtab_read): Likewise.
1489 (elf_gnu_ifunc_cache_hash): Likewise.
1490 (elf_gnu_ifunc_cache_eq): Likewise.
1491 (elf_gnu_ifunc_record_cache): Likewise.
1492 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1493 (elf_get_probes): Likewise.
1494 (probe_key_free): Likewise.
1495 * f-lang.c (builtin_f_type): Likewise.
1496 * frame-base.c (frame_base_append_sniffer): Likewise.
1497 (frame_base_set_default): Likewise.
1498 (frame_base_find_by_frame): Likewise.
1499 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1500 (frame_unwind_append_unwinder): Likewise.
1501 (frame_unwind_find_by_frame): Likewise.
1502 * frame.c (frame_addr_hash): Likewise.
1503 (frame_addr_hash_eq): Likewise.
1504 (frame_stash_find): Likewise.
1505 (do_frame_register_read): Likewise.
1506 (unwind_to_current_frame): Likewise.
1507 (frame_cleanup_after_sniffer): Likewise.
1508 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1509 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1510 * ft32-tdep.c (ft32_frame_cache): Likewise.
1511 * gcore.c (do_bfd_delete_cleanup): Likewise.
1512 (gcore_create_callback): Likewise.
1513 * gdb_bfd.c (hash_bfd): Likewise.
1514 (eq_bfd): Likewise.
1515 (gdb_bfd_open): Likewise.
1516 (free_one_bfd_section): Likewise.
1517 (gdb_bfd_ref): Likewise.
1518 (gdb_bfd_unref): Likewise.
1519 (get_section_descriptor): Likewise.
1520 (gdb_bfd_map_section): Likewise.
1521 (gdb_bfd_crc): Likewise.
1522 (gdb_bfd_mark_parent): Likewise.
1523 (gdb_bfd_record_inclusion): Likewise.
1524 (gdb_bfd_requires_relocations): Likewise.
1525 (print_one_bfd): Likewise.
1526 * gdbtypes.c (type_pair_hash): Likewise.
1527 (type_pair_eq): Likewise.
1528 (builtin_type): Likewise.
1529 (objfile_type): Likewise.
1530 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1531 (vtable_address_point_offset): Likewise.
1532 (gnuv3_get_vtable): Likewise.
1533 (hash_value_and_voffset): Likewise.
1534 (eq_value_and_voffset): Likewise.
1535 (compare_value_and_voffset): Likewise.
1536 (compute_vtable_size): Likewise.
1537 (gnuv3_get_typeid_type): Likewise.
1538 * go-lang.c (builtin_go_type): Likewise.
1539 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1540 (bkscm_eq_block_smob): Likewise.
1541 (bkscm_objfile_block_map): Likewise.
1542 (bkscm_del_objfile_blocks): Likewise.
1543 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1544 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1545 (gdbscm_disasm_print_address): Likewise.
1546 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1547 (frscm_eq_frame_smob): Likewise.
1548 (frscm_inferior_frame_map): Likewise.
1549 (frscm_del_inferior_frames): Likewise.
1550 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1551 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1552 (ofscm_objfile_smob_from_objfile): Likewise.
1553 * guile/scm-ports.c (ioscm_write): Likewise.
1554 (ioscm_file_port_delete): Likewise.
1555 (ioscm_file_port_rewind): Likewise.
1556 (ioscm_file_port_put): Likewise.
1557 (ioscm_file_port_write): Likewise.
1558 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1559 (psscm_pspace_smob_from_pspace): Likewise.
1560 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1561 (scscm_recording_unwind_handler): Likewise.
1562 (gdbscm_with_catch): Likewise.
1563 (scscm_call_0_body): Likewise.
1564 (scscm_call_1_body): Likewise.
1565 (scscm_call_2_body): Likewise.
1566 (scscm_call_3_body): Likewise.
1567 (scscm_call_4_body): Likewise.
1568 (scscm_apply_1_body): Likewise.
1569 (scscm_eval_scheme_string): Likewise.
1570 (gdbscm_safe_eval_string): Likewise.
1571 (scscm_source_scheme_script): Likewise.
1572 (gdbscm_safe_source_script): Likewise.
1573 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1574 (gdbscm_call_scm_from_stringn): Likewise.
1575 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1576 (syscm_eq_symbol_smob): Likewise.
1577 (syscm_get_symbol_map): Likewise.
1578 (syscm_del_objfile_symbols): Likewise.
1579 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1580 (stscm_eq_symtab_smob): Likewise.
1581 (stscm_objfile_symtab_map): Likewise.
1582 (stscm_del_objfile_symtabs): Likewise.
1583 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1584 (tyscm_eq_type_smob): Likewise.
1585 (tyscm_type_map): Likewise.
1586 (tyscm_copy_type_recursive): Likewise.
1587 (save_objfile_types): Likewise.
1588 * guile/scm-utils.c (extract_arg): Likewise.
1589 * h8300-tdep.c (h8300_frame_cache): Likewise.
1590 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1591 * hppa-tdep.c (compare_unwind_entries): Likewise.
1592 (find_unwind_entry): Likewise.
1593 (hppa_frame_cache): Likewise.
1594 (hppa_stub_frame_unwind_cache): Likewise.
1595 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1596 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1597 (hppaobsd_supply_fpregset): Likewise.
1598 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1599 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1600 * i386-tdep.c (i386_frame_cache): Likewise.
1601 (i386_epilogue_frame_cache): Likewise.
1602 (i386_sigtramp_frame_cache): Likewise.
1603 (i386_supply_gregset): Likewise.
1604 (i386_collect_gregset): Likewise.
1605 (i386_gdbarch_init): Likewise.
1606 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1607 (i386obsd_trapframe_cache): Likewise.
1608 * i387-tdep.c (i387_supply_fsave): Likewise.
1609 (i387_collect_fsave): Likewise.
1610 (i387_supply_fxsave): Likewise.
1611 (i387_collect_fxsave): Likewise.
1612 (i387_supply_xsave): Likewise.
1613 (i387_collect_xsave): Likewise.
1614 * ia64-tdep.c (ia64_frame_cache): Likewise.
1615 (ia64_sigtramp_frame_cache): Likewise.
1616 * infcmd.c (attach_command_continuation): Likewise.
1617 (attach_command_continuation_free_args): Likewise.
1618 * inferior.c (restore_inferior): Likewise.
1619 (delete_thread_of_inferior): Likewise.
1620 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1621 (get_inflow_inferior_data): Likewise.
1622 (inflow_inferior_exit): Likewise.
1623 * infrun.c (displaced_step_clear_cleanup): Likewise.
1624 (restore_current_uiout_cleanup): Likewise.
1625 (release_stop_context_cleanup): Likewise.
1626 (do_restore_infcall_suspend_state_cleanup): Likewise.
1627 (do_restore_infcall_control_state_cleanup): Likewise.
1628 (restore_inferior_ptid): Likewise.
1629 * inline-frame.c (block_starting_point_at): Likewise.
1630 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1631 * jit.c (get_jit_objfile_data): Likewise.
1632 (get_jit_program_space_data): Likewise.
1633 (jit_object_close_impl): Likewise.
1634 (jit_find_objf_with_entry_addr): Likewise.
1635 (jit_breakpoint_deleted): Likewise.
1636 (jit_unwind_reg_set_impl): Likewise.
1637 (jit_unwind_reg_get_impl): Likewise.
1638 (jit_dealloc_cache): Likewise.
1639 (jit_frame_sniffer): Likewise.
1640 (jit_frame_prev_register): Likewise.
1641 (jit_prepend_unwinder): Likewise.
1642 (jit_inferior_exit_hook): Likewise.
1643 (free_objfile_data): Likewise.
1644 * jv-lang.c (jv_per_objfile_free): Likewise.
1645 (get_dynamics_objfile): Likewise.
1646 (get_java_class_symtab): Likewise.
1647 (builtin_java_type): Likewise.
1648 * language.c (language_string_char_type): Likewise.
1649 (language_bool_type): Likewise.
1650 (language_lookup_primitive_type): Likewise.
1651 (language_lookup_primitive_type_as_symbol): Likewise.
1652 * linespec.c (hash_address_entry): Likewise.
1653 (eq_address_entry): Likewise.
1654 (iterate_inline_only): Likewise.
1655 (iterate_name_matcher): Likewise.
1656 (decode_line_2_compare_items): Likewise.
1657 (collect_one_symbol): Likewise.
1658 (compare_symbols): Likewise.
1659 (compare_msymbols): Likewise.
1660 (add_symtabs_to_list): Likewise.
1661 (collect_symbols): Likewise.
1662 (compare_msyms): Likewise.
1663 (add_minsym): Likewise.
1664 (cleanup_linespec_result): Likewise.
1665 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1666 * linux-nat.c (delete_lwp_cleanup): Likewise.
1667 (count_events_callback): Likewise.
1668 (select_event_lwp_callback): Likewise.
1669 (resume_stopped_resumed_lwps): Likewise.
1670 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1671 (invalidate_linux_cache_inf): Likewise.
1672 (get_linux_inferior_data): Likewise.
1673 (linux_find_memory_regions_thunk): Likewise.
1674 (linux_make_mappings_callback): Likewise.
1675 (linux_corefile_thread_callback): Likewise.
1676 (find_mapping_size): Likewise.
1677 * linux-thread-db.c (find_new_threads_callback): Likewise.
1678 * lm32-tdep.c (lm32_frame_cache): Likewise.
1679 * m2-lang.c (builtin_m2_type): Likewise.
1680 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1681 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1682 (m32r_linux_supply_gregset): Likewise.
1683 (m32r_linux_collect_gregset): Likewise.
1684 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1685 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1686 * m68k-tdep.c (m68k_frame_cache): Likewise.
1687 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1688 (m68kbsd_supply_gregset): Likewise.
1689 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1690 * m88k-tdep.c (m88k_frame_cache): Likewise.
1691 (m88k_supply_gregset): Likewise.
1692
1693 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1694
1695 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1696 to allocation result assignment.
1697 * ada-exp.y (write_object_renaming): Likewise.
1698 (write_ambiguous_var): Likewise.
1699 (ada_nget_field_index): Likewise.
1700 (write_var_or_type): Likewise.
1701 * ada-lang.c (ada_decode_symbol): Likewise.
1702 (ada_value_assign): Likewise.
1703 (value_pointer): Likewise.
1704 (cache_symbol): Likewise.
1705 (add_nonlocal_symbols): Likewise.
1706 (ada_name_for_lookup): Likewise.
1707 (symbol_completion_add): Likewise.
1708 (ada_to_fixed_type_1): Likewise.
1709 (ada_get_next_arg): Likewise.
1710 (defns_collected): Likewise.
1711 * ada-lex.l (processId): Likewise.
1712 (processString): Likewise.
1713 * ada-tasks.c (read_known_tasks_array): Likewise.
1714 (read_known_tasks_list): Likewise.
1715 * ada-typeprint.c (decoded_type_name): Likewise.
1716 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1717 * amd64-tdep.c (amd64_push_arguments): Likewise.
1718 (amd64_displaced_step_copy_insn): Likewise.
1719 (amd64_classify_insn_at): Likewise.
1720 (amd64_relocate_instruction): Likewise.
1721 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1722 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1723 (initialize_current_architecture): Likewise.
1724 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1725 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1726 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1727 (arm_push_dummy_call): Likewise.
1728 (extend_buffer_earlier): Likewise.
1729 (arm_adjust_breakpoint_address): Likewise.
1730 (arm_skip_stub): Likewise.
1731 * auto-load.c (filename_is_in_pattern): Likewise.
1732 (maybe_add_script_file): Likewise.
1733 (maybe_add_script_text): Likewise.
1734 (auto_load_objfile_script_1): Likewise.
1735 * auxv.c (ld_so_xfer_auxv): Likewise.
1736 * ax-general.c (new_agent_expr): Likewise.
1737 (grow_expr): Likewise.
1738 (ax_reg_mask): Likewise.
1739 * bcache.c (bcache_full): Likewise.
1740 * breakpoint.c (program_breakpoint_here_p): Likewise.
1741 * btrace.c (parse_xml_raw): Likewise.
1742 * build-id.c (build_id_to_debug_bfd): Likewise.
1743 * buildsym.c (end_symtab_with_blockvector): Likewise.
1744 * c-exp.y (string_exp): Likewise.
1745 (qualified_name): Likewise.
1746 (write_destructor_name): Likewise.
1747 (operator_stoken): Likewise.
1748 (parse_number): Likewise.
1749 (scan_macro_expansion): Likewise.
1750 (yylex): Likewise.
1751 (c_print_token): Likewise.
1752 * c-lang.c (c_get_string): Likewise.
1753 (emit_numeric_character): Likewise.
1754 * charset.c (wchar_iterate): Likewise.
1755 * cli/cli-cmds.c (complete_command): Likewise.
1756 (make_command): Likewise.
1757 * cli/cli-dump.c (restore_section_callback): Likewise.
1758 (restore_binary_file): Likewise.
1759 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1760 * cli/cli-script.c (execute_control_command): Likewise.
1761 * cli/cli-setshow.c (do_set_command): Likewise.
1762 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1763 (read_pe_exported_syms): Likewise.
1764 * coffread.c (coff_read_struct_type): Likewise.
1765 (coff_read_enum_type): Likewise.
1766 * common/btrace-common.c (btrace_data_append): Likewise.
1767 * common/buffer.c (buffer_grow): Likewise.
1768 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1769 * common/format.c (parse_format_string): Likewise.
1770 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1771 * common/xml-utils.c (xml_escape_text): Likewise.
1772 * compile/compile-object-load.c (copy_sections): Likewise.
1773 (compile_object_load): Likewise.
1774 * compile/compile-object-run.c (compile_object_run): Likewise.
1775 * completer.c (filename_completer): Likewise.
1776 * corefile.c (read_memory_typed_address): Likewise.
1777 (write_memory_unsigned_integer): Likewise.
1778 (write_memory_signed_integer): Likewise.
1779 (complete_set_gnutarget): Likewise.
1780 * corelow.c (get_core_register_section): Likewise.
1781 * cp-name-parser.y (d_grab): Likewise.
1782 (allocate_info): Likewise.
1783 (cp_new_demangle_parse_info): Likewise.
1784 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1785 (cp_lookup_symbol_in_namespace): Likewise.
1786 (lookup_namespace_scope): Likewise.
1787 (find_symbol_in_baseclass): Likewise.
1788 (cp_lookup_nested_symbol): Likewise.
1789 (cp_lookup_transparent_type_loop): Likewise.
1790 * cp-support.c (copy_string_to_obstack): Likewise.
1791 (make_symbol_overload_list): Likewise.
1792 (make_symbol_overload_list_namespace): Likewise.
1793 (make_symbol_overload_list_adl_namespace): Likewise.
1794 (first_component_command): Likewise.
1795 * cp-valprint.c (cp_print_value): Likewise.
1796 * ctf.c (ctf_xfer_partial): Likewise.
1797 * d-exp.y (StringExp): Likewise.
1798 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1799 (lookup_module_scope): Likewise.
1800 (find_symbol_in_baseclass): Likewise.
1801 (d_lookup_nested_symbol): Likewise.
1802 * dbxread.c (find_stab_function_addr): Likewise.
1803 (read_dbx_symtab): Likewise.
1804 (dbx_end_psymtab): Likewise.
1805 (cp_set_block_scope): Likewise.
1806 * dcache.c (dcache_alloc): Likewise.
1807 * demangle.c (_initialize_demangler): Likewise.
1808 * dicos-tdep.c (dicos_load_module_p): Likewise.
1809 * dictionary.c (dict_create_hashed_expandable): Likewise.
1810 (dict_create_linear_expandable): Likewise.
1811 (expand_hashtable): Likewise.
1812 (add_symbol_linear_expandable): Likewise.
1813 * dwarf2-frame.c (add_cie): Likewise.
1814 (add_fde): Likewise.
1815 (dwarf2_build_frame_info): Likewise.
1816 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1817 (dwarf_expr_fetch_address): Likewise.
1818 (add_piece): Likewise.
1819 (execute_stack_op): Likewise.
1820 * dwarf2loc.c (chain_candidate): Likewise.
1821 (dwarf_entry_parameter_to_value): Likewise.
1822 (read_pieced_value): Likewise.
1823 (write_pieced_value): Likewise.
1824 * dwarf2read.c (dwarf2_read_section): Likewise.
1825 (add_type_unit): Likewise.
1826 (read_comp_units_from_section): Likewise.
1827 (fixup_go_packaging): Likewise.
1828 (dwarf2_compute_name): Likewise.
1829 (dwarf2_physname): Likewise.
1830 (create_dwo_unit_in_dwp_v1): Likewise.
1831 (create_dwo_unit_in_dwp_v2): Likewise.
1832 (read_func_scope): Likewise.
1833 (read_call_site_scope): Likewise.
1834 (dwarf2_attach_fields_to_type): Likewise.
1835 (process_structure_scope): Likewise.
1836 (mark_common_block_symbol_computed): Likewise.
1837 (read_common_block): Likewise.
1838 (abbrev_table_read_table): Likewise.
1839 (guess_partial_die_structure_name): Likewise.
1840 (fixup_partial_die): Likewise.
1841 (add_file_name): Likewise.
1842 (dwarf2_const_value_data): Likewise.
1843 (dwarf2_const_value_attr): Likewise.
1844 (build_error_marker_type): Likewise.
1845 (guess_full_die_structure_name): Likewise.
1846 (anonymous_struct_prefix): Likewise.
1847 (typename_concat): Likewise.
1848 (dwarf2_canonicalize_name): Likewise.
1849 (dwarf2_name): Likewise.
1850 (write_constant_as_bytes): Likewise.
1851 (dwarf2_fetch_constant_bytes): Likewise.
1852 (copy_string): Likewise.
1853 (parse_macro_definition): Likewise.
1854 * elfread.c (elf_symfile_segments): Likewise.
1855 (elf_rel_plt_read): Likewise.
1856 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1857 (elf_gnu_ifunc_resolve_by_got): Likewise.
1858 (elf_read_minimal_symbols): Likewise.
1859 (elf_gnu_ifunc_record_cache): Likewise.
1860 * event-top.c (top_level_prompt): Likewise.
1861 (command_line_handler): Likewise.
1862 * exec.c (resize_section_table): Likewise.
1863 * expprint.c (print_subexp_standard): Likewise.
1864 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1865 * findcmd.c (parse_find_args): Likewise.
1866 * findvar.c (address_from_register): Likewise.
1867 * frame.c (get_prev_frame_always): Likewise.
1868 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1869 (get_section_descriptor): Likewise.
1870 * gdb_obstack.c (obconcat): Likewise.
1871 (obstack_strdup): Likewise.
1872 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1873 (create_set_type): Likewise.
1874 (lookup_unsigned_typename): Likewise.
1875 (lookup_signed_typename): Likewise.
1876 (resolve_dynamic_union): Likewise.
1877 (resolve_dynamic_struct): Likewise.
1878 (add_dyn_prop): Likewise.
1879 (copy_dynamic_prop_list): Likewise.
1880 (arch_flags_type): Likewise.
1881 (append_composite_type_field_raw): Likewise.
1882 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1883 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1884 * go-exp.y (string_exp): Likewise.
1885 * go-lang.c (go_demangle): Likewise.
1886 * guile/guile.c (compute_scheme_string): Likewise.
1887 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1888 (gdbscm_canonicalize_command_name): Likewise.
1889 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1890 (ioscm_init_memory_port): Likewise.
1891 (ioscm_reinit_memory_port): Likewise.
1892 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1893 (gdbscm_gc_dup_argv): Likewise.
1894 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1895 * hppa-tdep.c (internalize_unwinds): Likewise.
1896 (read_unwind_info): Likewise.
1897 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1898 (windows_core_xfer_shared_libraries): Likewise.
1899 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1900 (i386_stap_parse_special_token_triplet): Likewise.
1901 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1902 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1903 * inf-child.c (inf_child_fileio_readlink): Likewise.
1904 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1905 (inf_ptrace_store_register): Likewise.
1906 * infrun.c (follow_exec): Likewise.
1907 (displaced_step_prepare_throw): Likewise.
1908 (save_stop_context): Likewise.
1909 (save_infcall_suspend_state): Likewise.
1910 * jit.c (jit_read_descriptor): Likewise.
1911 (jit_read_code_entry): Likewise.
1912 (jit_symtab_line_mapping_add_impl): Likewise.
1913 (finalize_symtab): Likewise.
1914 (jit_unwind_reg_get_impl): Likewise.
1915 * jv-exp.y (QualifiedName): Likewise.
1916 * jv-lang.c (get_java_utf8_name): Likewise.
1917 (type_from_class): Likewise.
1918 (java_demangle_type_signature): Likewise.
1919 (java_class_name_from_physname): Likewise.
1920 * jv-typeprint.c (java_type_print_base): Likewise.
1921 * jv-valprint.c (java_value_print): Likewise.
1922 * language.c (add_language): Likewise.
1923 * linespec.c (add_sal_to_sals_basic): Likewise.
1924 (add_sal_to_sals): Likewise.
1925 (decode_objc): Likewise.
1926 (find_linespec_symbols): Likewise.
1927 * linux-fork.c (fork_save_infrun_state): Likewise.
1928 * linux-nat.c (linux_nat_detach): Likewise.
1929 (linux_nat_fileio_readlink): Likewise.
1930 * linux-record.c (record_linux_sockaddr): Likewise.
1931 (record_linux_msghdr): Likewise.
1932 (Do): Likewise.
1933 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1934 (linux_collect_regset_section_cb): Likewise.
1935 (linux_get_siginfo_data): Likewise.
1936 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1937 (try_thread_db_load_from_dir): Likewise.
1938 (thread_db_load_search): Likewise.
1939 (info_auto_load_libthread_db): Likewise.
1940 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1941 (m32c_m16c_pointer_to_address): Likewise.
1942 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1943 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1944 * machoread.c (macho_check_dsym): Likewise.
1945 * macroexp.c (resize_buffer): Likewise.
1946 (gather_arguments): Likewise.
1947 (maybe_expand): Likewise.
1948 * macrotab.c (new_macro_key): Likewise.
1949 (new_source_file): Likewise.
1950 (new_macro_definition): Likewise.
1951 * mdebugread.c (parse_symbol): Likewise.
1952 (parse_type): Likewise.
1953 (parse_partial_symbols): Likewise.
1954 (psymtab_to_symtab_1): Likewise.
1955 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1956 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1957 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1958 (mi_cmd_data_read_memory_bytes): Likewise.
1959 (mi_cmd_data_write_memory_bytes): Likewise.
1960 (mi_cmd_trace_frame_collected): Likewise.
1961 * mi/mi-parse.c (mi_parse_argv): Likewise.
1962 (mi_parse): Likewise.
1963 * minidebug.c (lzma_open): Likewise.
1964 (lzma_pread): Likewise.
1965 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1966 (mips_print_fp_register): Likewise.
1967 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1968 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1969 * mt-tdep.c (mt_register_name): Likewise.
1970 (mt_registers_info): Likewise.
1971 (mt_push_dummy_call): Likewise.
1972 * namespace.c (add_using_directive): Likewise.
1973 * nat/linux-btrace.c (perf_event_read): Likewise.
1974 (linux_enable_bts): Likewise.
1975 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1976 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1977 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1978 (nto_parse_redirection): Likewise.
1979 * objc-lang.c (objc_demangle): Likewise.
1980 (find_methods): Likewise.
1981 * objfiles.c (get_objfile_bfd_data): Likewise.
1982 (set_objfile_main_name): Likewise.
1983 (allocate_objfile): Likewise.
1984 (objfile_relocate): Likewise.
1985 (update_section_map): Likewise.
1986 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1987 * p-exp.y (exp): Likewise.
1988 (yylex): Likewise.
1989 * p-valprint.c (pascal_object_print_value): Likewise.
1990 * parse.c (initialize_expout): Likewise.
1991 (mark_completion_tag): Likewise.
1992 (copy_name): Likewise.
1993 (parse_float): Likewise.
1994 (type_stack_reserve): Likewise.
1995 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1996 (ppu2spu_prev_register): Likewise.
1997 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1998 * printcmd.c (printf_wide_c_string): Likewise.
1999 (printf_pointer): Likewise.
2000 * probe.c (parse_probes): Likewise.
2001 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2002 (cmdpy_init): Likewise.
2003 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2004 * python/py-symtab.c (set_sal): Likewise.
2005 * python/py-unwind.c (pyuw_sniffer): Likewise.
2006 * python/python.c (python_interactive_command): Likewise.
2007 (compute_python_string): Likewise.
2008 * ravenscar-thread.c (get_running_thread_id): Likewise.
2009 * record-full.c (record_full_exec_insn): Likewise.
2010 (record_full_core_open_1): Likewise.
2011 * regcache.c (regcache_raw_read_signed): Likewise.
2012 (regcache_raw_read_unsigned): Likewise.
2013 (regcache_cooked_read_signed): Likewise.
2014 (regcache_cooked_read_unsigned): Likewise.
2015 * remote-fileio.c (remote_fileio_func_open): Likewise.
2016 (remote_fileio_func_rename): Likewise.
2017 (remote_fileio_func_unlink): Likewise.
2018 (remote_fileio_func_stat): Likewise.
2019 (remote_fileio_func_system): Likewise.
2020 * remote-mips.c (mips_xfer_memory): Likewise.
2021 (mips_load_srec): Likewise.
2022 (pmon_end_download): Likewise.
2023 * remote.c (new_remote_state): Likewise.
2024 (map_regcache_remote_table): Likewise.
2025 (remote_register_number_and_offset): Likewise.
2026 (init_remote_state): Likewise.
2027 (get_memory_packet_size): Likewise.
2028 (remote_pass_signals): Likewise.
2029 (remote_program_signals): Likewise.
2030 (remote_start_remote): Likewise.
2031 (remote_check_symbols): Likewise.
2032 (remote_query_supported): Likewise.
2033 (extended_remote_attach): Likewise.
2034 (process_g_packet): Likewise.
2035 (store_registers_using_G): Likewise.
2036 (putpkt_binary): Likewise.
2037 (read_frame): Likewise.
2038 (compare_sections_command): Likewise.
2039 (remote_hostio_pread): Likewise.
2040 (remote_hostio_readlink): Likewise.
2041 (remote_file_put): Likewise.
2042 (remote_file_get): Likewise.
2043 (remote_pid_to_exec_file): Likewise.
2044 (_initialize_remote): Likewise.
2045 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2046 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2047 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2048 (bfd_uses_spe_extensions): Likewise.
2049 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2050 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2051 * solib-dsbt.c (decode_loadmap): Likewise.
2052 (fetch_loadmap): Likewise.
2053 (scan_dyntag): Likewise.
2054 (enable_break): Likewise.
2055 (dsbt_relocate_main_executable): Likewise.
2056 * solib-frv.c (fetch_loadmap): Likewise.
2057 (enable_break2): Likewise.
2058 (frv_relocate_main_executable): Likewise.
2059 * solib-spu.c (spu_relocate_main_executable): Likewise.
2060 (spu_bfd_open): Likewise.
2061 * solib-svr4.c (lm_info_read): Likewise.
2062 (read_program_header): Likewise.
2063 (find_program_interpreter): Likewise.
2064 (scan_dyntag): Likewise.
2065 (elf_locate_base): Likewise.
2066 (open_symbol_file_object): Likewise.
2067 (read_program_headers_from_bfd): Likewise.
2068 (svr4_relocate_main_executable): Likewise.
2069 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2070 * solib.c (solib_find_1): Likewise.
2071 (exec_file_find): Likewise.
2072 (solib_find): Likewise.
2073 * source.c (openp): Likewise.
2074 (print_source_lines_base): Likewise.
2075 (forward_search_command): Likewise.
2076 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2077 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2078 (spu_get_overlay_table): Likewise.
2079 * stabsread.c (patch_block_stabs): Likewise.
2080 (define_symbol): Likewise.
2081 (again:): Likewise.
2082 (read_member_functions): Likewise.
2083 (read_one_struct_field): Likewise.
2084 (read_enum_type): Likewise.
2085 (common_block_start): Likewise.
2086 * stack.c (read_frame_arg): Likewise.
2087 (backtrace_command): Likewise.
2088 * stap-probe.c (stap_parse_register_operand): Likewise.
2089 * symfile.c (syms_from_objfile_1): Likewise.
2090 (find_separate_debug_file): Likewise.
2091 (load_command): Likewise.
2092 (load_progress): Likewise.
2093 (load_section_callback): Likewise.
2094 (reread_symbols): Likewise.
2095 (add_filename_language): Likewise.
2096 (allocate_compunit_symtab): Likewise.
2097 (read_target_long_array): Likewise.
2098 (simple_read_overlay_table): Likewise.
2099 * symtab.c (symbol_set_names): Likewise.
2100 (resize_symbol_cache): Likewise.
2101 (rbreak_command): Likewise.
2102 (completion_list_add_name): Likewise.
2103 (completion_list_objc_symbol): Likewise.
2104 (add_filename_to_list): Likewise.
2105 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2106 * target-memory.c (target_write_memory_blocks): Likewise.
2107 * target.c (target_read_string): Likewise.
2108 (read_whatever_is_readable): Likewise.
2109 (target_read_alloc_1): Likewise.
2110 (simple_search_memory): Likewise.
2111 (target_fileio_read_alloc_1): Likewise.
2112 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2113 * top.c (command_line_input): Likewise.
2114 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2115 * tracefile.c (tracefile_fetch_registers): Likewise.
2116 * tracepoint.c (add_memrange): Likewise.
2117 (init_collection_list): Likewise.
2118 (add_aexpr): Likewise.
2119 (trace_dump_actions): Likewise.
2120 (parse_trace_status): Likewise.
2121 (parse_tracepoint_definition): Likewise.
2122 (parse_tsv_definition): Likewise.
2123 (parse_static_tracepoint_marker_definition): Likewise.
2124 * tui/tui-file.c (tui_sfileopen): Likewise.
2125 (tui_file_adjust_strbuf): Likewise.
2126 * tui/tui-io.c (tui_expand_tabs): Likewise.
2127 * tui/tui-source.c (tui_set_source_content): Likewise.
2128 * typeprint.c (find_global_typedef): Likewise.
2129 * ui-file.c (do_ui_file_xstrdup): Likewise.
2130 (ui_file_obsavestring): Likewise.
2131 (mem_file_write): Likewise.
2132 * utils.c (make_hex_string): Likewise.
2133 (get_regcomp_error): Likewise.
2134 (puts_filtered_tabular): Likewise.
2135 (gdb_realpath_keepfile): Likewise.
2136 (ldirname): Likewise.
2137 (gdb_bfd_errmsg): Likewise.
2138 (substitute_path_component): Likewise.
2139 * valops.c (search_struct_method): Likewise.
2140 (find_oload_champ_namespace_loop): Likewise.
2141 * valprint.c (print_decimal_chars): Likewise.
2142 (read_string): Likewise.
2143 (generic_emit_char): Likewise.
2144 * varobj.c (varobj_delete): Likewise.
2145 (varobj_value_get_print_value): Likewise.
2146 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2147 * windows-tdep.c (display_one_tib): Likewise.
2148 * xcoffread.c (read_xcoff_symtab): Likewise.
2149 (process_xcoff_symbol): Likewise.
2150 (swap_sym): Likewise.
2151 (scan_xcoff_symtab): Likewise.
2152 (xcoff_initial_scan): Likewise.
2153 * xml-support.c (gdb_xml_end_element): Likewise.
2154 (xml_process_xincludes): Likewise.
2155 (xml_fetch_content_from_file): Likewise.
2156 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2157 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2158
2159 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2160
2161 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2162 instead of builtin_func_ptr.
2163 (ft32_pointer_to_address): New function.
2164 (ft32_address_class_type_flags): New function.
2165 (ft32_address_class_type_flags_to_name): New function.
2166 (ft32_address_class_name_to_type_flags): New function.
2167 (ft32_gdbarch_init): Set tdep->pc_type. Call
2168 set_gdbarch_pointer_to_address,
2169 set_gdbarch_address_class_type_flags
2170 set_gdbarch_address_class_name_to_type_flags,
2171 and set_gdbarch_address_class_type_flags_to_name.
2172 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2173
2174 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2175
2176 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2177 value is a reference, actually dereference it in order to get
2178 the underlying value.
2179
2180 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2181
2182 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2183
2184 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2185
2186 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2187 * linespec.c (linespec_lexer_lex_string): Same.
2188
2189 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2190
2191 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2192
2193 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2194
2195 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2196 variable. Call aarch64_decode_adr instead of
2197 aarch64_decode_adrp.
2198 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2199 (aarch64_decode_adr): New function declaration.
2200 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2201 (aarch64_decode_adr): New function, factored out from
2202 aarch64_decode_adrp to decode both adr and adrp instructions.
2203
2204 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2205
2206 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2207 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2208 (aarch64-insn.o): New rule.
2209 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2210 (aarch64*-*-linux*): Likewise.
2211 * arch/aarch64-insn.c: New file.
2212 * arch/aarch64-insn.h: New file.
2213 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2214 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2215 arch/aarch64-insn.h.
2216 (decode_add_sub_imm): Rename to ...
2217 (aarch64_decode_add_sub_imm): ... this.
2218 (decode_adrp): Rename to ...
2219 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2220 Declare in arch/aarch64-insn.h.
2221 (decode_b): Rename to ...
2222 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2223 Declare in arch/aarch64-insn.h.
2224 (decode_bcond): Rename to ...
2225 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2226 Declare in arch/aarch64-insn.h.
2227 (decode_br): Rename to ...
2228 (aarch64_decode_br): ... this.
2229 (decode_cb): Rename to ...
2230 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2231 Declare in arch/aarch64-insn.h.
2232 (decode_eret): Rename to ...
2233 (aarch64_decode_eret): ... this.
2234 (decode_movz): Rename to ...
2235 (aarch64_decode_movz): ... this.
2236 (decode_orr_shifted_register_x): Rename to ...
2237 (aarch64_decode_orr_shifted_register_x): ... this.
2238 (decode_ret): Rename to ...
2239 (aarch64_decode_ret): ... this.
2240 (decode_stp_offset): Rename to ...
2241 (aarch64_decode_stp_offset): ... this.
2242 (decode_stp_offset_wb): Rename to ...
2243 (aarch64_decode_stp_offset_wb): ... this.
2244 (decode_stur): Rename to ...
2245 (aarch64_decode_stur): ... this.
2246 (decode_tb): Rename to ...
2247 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2248 Declare in arch/aarch64-insn.h.
2249 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2250
2251 2015-09-20 Doug Evans <xdje42@gmail.com>
2252
2253 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2254
2255 2015-09-20 Doug Evans <xdje42@gmail.com>
2256
2257 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2258 variable name that collides with a parameter.
2259
2260 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2261
2262 * dwarf2loc.c (locexpr_get_frame_base): Renames
2263 block_op_get_frame_base.
2264 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2265 block_op_get_frame_base by reference to locexpr_get_frame_base.
2266 (loclist_get_frame_base): New function, near identical copy of
2267 locexpr_get_frame_base.
2268 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2269 block_op_get_frame_base by reference to loclist_get_frame_base.
2270
2271 2015-09-19 Doug Evans <xdje42@gmail.com>
2272
2273 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2274 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2275
2276 2015-09-18 Doug Evans <xdje42@gmail.com>
2277
2278 * linux-thread-db.c (record_thread): Return the created thread.
2279 (thread_from_lwp): Likewise.
2280 (thread_db_get_thread_local_address): Update.
2281
2282 2015-09-18 Doug Evans <xdje42@gmail.com>
2283
2284 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2285 move only member demangled_name up. All uses updated.
2286
2287 2015-09-18 Doug Evans <xdje42@gmail.com>
2288
2289 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2290 kind of minimal symbol in the error message.
2291 * objfiles.c (objfile_flavour_name): New function.
2292 * objfiles.h (objfile_flavour_name): Declare.
2293
2294 2015-09-18 Yao Qi <yao.qi@linaro.org>
2295
2296 * nat/aarch64-linux.c: Include elf/common.h,
2297 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2298 (aarch64_ps_get_thread_area): New function.
2299 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2300 (aarch64_ps_get_thread_area): Declare.
2301 * aarch64-linux-nat.c (ps_get_thread_area): Call
2302 aarch64_ps_get_thread_area.
2303
2304 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2305
2306 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2307
2308 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2309
2310 * NEWS: Announce new scheduler-locking mode.
2311 * infrun.c (schedlock_replay): New.
2312 (scheduler_enums): Add schedlock_replay.
2313 (scheduler_mode): Change default to schedlock_replay.
2314 (user_visible_resume_ptid): Handle schedlock_replay.
2315 (clear_proceed_status_thread): Stop replaying if resumed thread is
2316 not replaying.
2317 (schedlock_applies): Handle schedlock_replay.
2318 (_initialize_infrun): Document new scheduler-locking mode.
2319 * record-btrace.c (record_btrace_resume): Remove code to stop other
2320 threads when not replaying the resumed thread.
2321
2322 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2323
2324 * record-btrace.c ((record_btrace_will_replay): New.
2325 (init_record_btrace_ops): Initialize to_record_will_replay.
2326 * record-full.c ((record_full_will_replay): New.
2327 (init_record_full_ops): Initialize to_record_will_replay.
2328 * target-delegates.c: Regenerated.
2329 * target.c (target_record_will_replay): New.
2330 * target.h (struct target_ops) <to_record_will_replay>: New.
2331 (target_record_will_replay): New.
2332
2333 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2334
2335 * record-btrace.c (record_btrace_resume): Call
2336 target_record_stop_replaying.
2337 (record_btrace_stop_replaying_all): New.
2338 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2339 * record-full.c (record_full_stop_replaying): New.
2340 (init_record_full_ops ): Initialize to_record_stop_replaying.
2341 * target-delegates.c: Regenerated.
2342 * target.c (target_record_stop_replaying): New.
2343 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2344 (target_record_stop_replaying): New.
2345
2346 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2347
2348 * record-btrace.c (record_btrace_xfer_partial)
2349 (record_btrace_store_registers, record_btrace_prepare_to_store):
2350 Call record_btrace_is_replaying with inferior_ptid instead of
2351 minus_one_ptid.
2352 (record_btrace_store_registers): Change error message.
2353
2354 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2355
2356 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2357 Update users to pass minus_one_ptid.
2358 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2359 * record.c (cmd_record_delete): Pass inferior_ptid to
2360 target_record_is_replaying.
2361 * target-delegates.c: Regenerated.
2362 * target.c (target_record_is_replaying): Add ptid argument.
2363 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2364 argument.
2365 (target_record_is_replaying): Add ptid argument.
2366
2367 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2368
2369 * record-btrace.c (record_btrace_open): Remove non_stop check.
2370 * NEWS: Announce that record btrace supports non-stop mode.
2371
2372 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2373
2374 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2375 in the TARKET_WAITKIND_NO_HISTORY case.
2376
2377 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2378
2379 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2380 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2381
2382 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2383
2384 * record-btrace.c (get_thread_current_frame): New.
2385 (record_btrace_start_replaying): Call get_thread_current_frame.
2386
2387 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2388
2389 * record-btrace.c (record_btrace_resume_thread): A move request
2390 overwrites a previous move request.
2391 (record_btrace_find_resume_thread): Removed.
2392 (record_btrace_resume): Resume all requested threads.
2393
2394 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2395
2396 * record-btrace.c: Include vec.h.
2397 (record_btrace_find_thread_to_move): Removed.
2398 (btrace_step_no_resumed, btrace_step_again)
2399 (record_btrace_stop_replaying_at_end): New.
2400 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2401 (record_btrace_single_step_forward): Remove calls to
2402 record_btrace_stop_replaying.
2403 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2404 BTHR_RCONT. Keep threads at the end of their history moving.
2405 (record_btrace_wait): Call record_btrace_step_thread for all threads
2406 until one reports an event. Call record_btrace_stop_replaying_at_end
2407 for the eventing thread.
2408
2409 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2410
2411 * record-btrace.c (record_btrace_single_step_forward): Return
2412 NO_HISTORY if a step brings us to the end of the execution history.
2413
2414 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2415
2416 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2417 to ...
2418 (record_btrace_single_step_forward): ... here and
2419 (record_btrace_single_step_backward): ... here.
2420
2421 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2422
2423 * record-btrace.c (btrace_step_spurious)
2424 (record_btrace_single_step_forward)
2425 (record_btrace_single_step_backward): New.
2426 (record_btrace_step_thread): Call record_btrace_single_step_forward
2427 and record_btrace_single_step_backward.
2428
2429 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2430
2431 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2432 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2433
2434 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2435
2436 * record-btrace.c (btrace_thread_flag_to_str)
2437 (record_btrace_cancel_resume): New.
2438 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2439 (record_btrace_resume): Print execution direction.
2440 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2441 (record_btrace_wait): Call record_btrace_cancel_resume.
2442
2443 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2444
2445 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2446 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2447 (record_btrace_find_thread_to_move): Also accept threads that have
2448 BTHR_STOP set.
2449 (btrace_step_stopped_on_request, record_btrace_stop): New.
2450 (record_btrace_step_thread): Support BTHR_STOP.
2451 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2452 (init_record_btrace_ops): Initialize to_stop.
2453
2454 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2455
2456 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2457 target_is_non_stop_p ().
2458
2459 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2460
2461 * ada-typeprint.c (print_array_type): Do not describe arrays as
2462 packed when they embed dynamic elements.
2463
2464 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2465
2466 * symtab.h (address_class): Document that TLS variables
2467 are handled by LOC_UNRESOLVED.
2468 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2469 * printcmd.c (address_info): Don't relocate TLS variables.
2470
2471 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2472
2473 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2474 (decode_adrp): Likewise.
2475 (decode_b): Likewise.
2476 (decode_bcond): Likewise.
2477 (decode_br): Likewise.
2478 (decode_cb): Likewise.
2479 (decode_eret): Likewise.
2480 (decode_movz): Likewise.
2481 (decode_orr_shifted_register_x): Likewise.
2482 (decode_ret): Likewise.
2483 (decode_stp_offset): Likewise.
2484 (decode_stp_offset_wb): Likewise.
2485 (decode_stur): Likewise.
2486 (decode_tb): Likewise.
2487 (aarch64_analyze_prologue): Likewise.
2488 (pass_in_x): Likewise.
2489 (pass_in_v): Likewise.
2490 (pass_on_stack): Likewise.
2491 (aarch64_push_dummy_call): Likewise.
2492 (aarch64_extract_return_value): Likewise.
2493 (aarch64_store_return_value): Likewise.
2494 (aarch64_return_value): Likewise.
2495 (aarch64_record_asimd_load_store): Likewise.
2496 (aarch64_record_load_store): Likewise.
2497 (aarch64_record_data_proc_simd_fp): Likewise.
2498
2499 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2500
2501 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2502 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2503 (ppc64_skip_trampoline_code_1): ... here.
2504 (ppc64_skip_trampoline_code): New wrapper function.
2505 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2506
2507 2015-09-15 Yao Qi <yao.qi@linaro.org>
2508
2509 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2510 function.
2511 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2512 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2513 if target_can_do_single_step returns 1.
2514 * remote.c (struct vCont_action_support) <s, S>: New fields.
2515 (PACKET_vContSupported): New enum.
2516 (remote_protocol_features): New element for vContSupported.
2517 (remote_query_supported): Append "vContSupported+".
2518 (remote_vcont_probe): Remove support_s and support_S, use
2519 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2520 vCont packet if c and C actions are not supported.
2521 (remote_can_do_single_step): New function.
2522 (init_remote_ops): Install it to to_can_do_single_step.
2523 (_initialize_remote): Call add_packet_config_cmd.
2524 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2525 (target_can_do_single_step): New macro.
2526 * target-delegates.c: Re-generated.
2527
2528 2015-09-15 Yao Qi <yao.qi@linaro.org>
2529
2530 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2531 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2532 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2533 New function.
2534 (aarch64_siginfo_from_compat_siginfo): New function.
2535 * nat/aarch64-linux.h: Include signal.h.
2536 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2537 (compat_timer_t, compat_clock_t): Likewise.
2538 (struct compat_timeval): New.
2539 (union compat_sigval): New.
2540 (struct compat_siginfo): New.
2541 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2542 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2543 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2544 (cpt_si_band, cpt_si_fd): Likewise.
2545
2546 2015-09-14 Pedro Alves <palves@redhat.com>
2547
2548 * infrun.c (current_stop_id): New global.
2549 (get_stop_id, new_stop_id): New functions.
2550 (fetch_inferior_event): Handle normal_stop proceeding the target.
2551 (struct stop_context): New.
2552 (save_stop_context, release_stop_context_cleanup)
2553 (stop_context_changed): New functions.
2554 (normal_stop): Return true if the hook-stop changes the stop
2555 context.
2556 * infrun.h (get_stop_id): Declare.
2557 (normal_stop): Now returns int. Add documentation.
2558
2559 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2560
2561 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2562 comment. Handle packed arrays.
2563
2564 2015-09-14 Pedro Alves <palves@redhat.com>
2565
2566 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2567 mention of maint set/show target-non-stop.
2568
2569 2015-09-11 Don Breazeal <donb@codesourcery.com>
2570
2571 * NEWS: Announce new remote packets for the exec-events
2572 feature and the exec-events feature and associated commands.
2573
2574 2015-09-11 Don Breazeal <donb@codesourcery.com>
2575
2576 * remote.c (remote_exec_event_p): New function.
2577 (remote_insert_exec_catchpoint): New function.
2578 (remote_remove_exec_catchpoint): New function.
2579 (init_extended_remote_ops): Initialize extended_remote_ops
2580 members to_insert_exec_catchpoint and
2581 to_remove_exec_catchpoint.
2582
2583 2015-09-11 Don Breazeal <donb@codesourcery.com>
2584 Luis Machado <lgustavo@codesourcery.com>
2585
2586 * infrun.c (follow_exec): Use process-style ptid for
2587 exec message. Call add_inferior_with_spaces and
2588 target_follow_exec.
2589 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2590 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2591 * remote.c (remote_pspace_data): New static variable.
2592 (remote_pspace_data_cleanup): New function.
2593 (get_remote_exec_file): New function.
2594 (set_remote_exec_file_1): New function.
2595 (set_remote_exec_file): New function.
2596 (show_remote_exec_file): New function.
2597 (remote_exec_file): Delete static variable.
2598 (anonymous enum) <PACKET_exec_event_feature>: New
2599 enumeration constant.
2600 (remote_protocol_features): Add entry for exec-events feature.
2601 (remote_query_supported): Add client side of qSupported query
2602 for exec-events feature.
2603 (remote_follow_exec): New function.
2604 (remote_parse_stop_reply): Handle 'exec' stop reason.
2605 (extended_remote_run, extended_remote_create_inferior): Call
2606 get_remote_exec_file and set_remote_exec_file_1.
2607 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2608 member.
2609 (_initialize_remote): Call
2610 register_program_space_data_with_cleanup. Call
2611 add_packet_config_cmd for remote exec-events feature.
2612 Modify call to add_setshow_string_noescape_cmd for exec-file
2613 to use new functions set_remote_exec_file and
2614 show_remote_exec_file.
2615 * target-debug.h, target-delegates.c: Regenerated.
2616 * target.c (target_follow_exec): New function.
2617 * target.h (struct target_ops) <to_follow_exec>: New member.
2618 (target_follow_exec): Declare new function.
2619
2620 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2621
2622 * aarch64-tdep.c (decode_cb): Move up comment describing the
2623 encoding.
2624 (decode_tb): Fix a typo in comment above the function. Move up
2625 comment describing the encoding.
2626
2627 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2628
2629 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2630
2631 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2632
2633 PR gdb/18947
2634 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2635 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2636
2637 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2638
2639 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2640 operations.
2641
2642 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2643
2644 * ada-lang.c (ada_search_struct_field): Constify parameters
2645 and/or variables..
2646 (xget_renaming_scope): Likewise.
2647 (ada_is_redundant_range_encoding): Likewise.
2648 (scan_discrim_bound): Likewise.
2649 (to_fixed_range_type): Likewise.
2650
2651 2015-09-10 Yao Qi <yao.qi@linaro.org>
2652
2653 * breakpoint.c (download_tracepoint_locations): New local
2654 can_download_tracepoint. Check the result of
2655 target_can_download_tracepoint and save it in
2656 can_download_tracepoint if there are tracepoints to download.
2657 * linux-nat.h (enum tribool): Move it to ...
2658 * common/common-types.h: ... here.
2659
2660 2015-09-09 Pedro Alves <palves@redhat.com>
2661
2662 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2663 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2664
2665 2015-09-09 Pedro Alves <palves@redhat.com>
2666
2667 * continuations.c (add_continuation, restore_thread_cleanup)
2668 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2669 (do_all_continuations_thread, do_all_continuations)
2670 (discard_all_continuations_thread_callback)
2671 (discard_all_continuations_thread, discard_all_continuations)
2672 (add_intermediate_continuation)
2673 (do_all_intermediate_continuations_thread_callback)
2674 (do_all_intermediate_continuations_thread)
2675 (do_all_intermediate_continuations)
2676 (discard_all_intermediate_continuations_thread_callback)
2677 (discard_all_intermediate_continuations_thread)
2678 (discard_all_intermediate_continuations): Delete.
2679 * continuations.h (add_continuation, do_all_continuations)
2680 (do_all_continuations_thread, discard_all_continuations)
2681 (discard_all_continuations_thread, add_intermediate_continuation)
2682 (do_all_intermediate_continuations)
2683 (do_all_intermediate_continuations_thread)
2684 (discard_all_intermediate_continuations)
2685 (discard_all_intermediate_continuations_thread): Delete
2686 declarations.
2687 * event-top.c (stdin_event_handler): Delete references to
2688 continuations.
2689 * gdbthread.h (struct thread_info): Delete continuations and
2690 intermediate_continuations fields.
2691 * inf-loop.c (inferior_event_handler): Remove references to
2692 continuations.
2693 * infrun.c (infrun_thread_stop_requested_callback): Remove
2694 references to continuations.
2695 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2696 * thread.c: Don't include "continuations.h".
2697 (clear_thread_inferior_resources): Remove references to
2698 continuations.
2699
2700 2015-09-09 Pedro Alves <palves@redhat.com>
2701
2702 * infcall.c (struct dummy_frame_context_saver): Delete.
2703 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2704 (dummy_frame_context_saver_drop)
2705 (dummy_frame_context_saver_cleanup)
2706 (dummy_frame_context_saver_get_regs)
2707 (dummy_frame_context_saver_setup): Delete.
2708 * infcall.h (dummy_frame_context_saver_drop)
2709 (dummy_frame_context_saver_cleanup)
2710 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2711 Delete.
2712 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2713 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2714 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2715
2716 2015-09-09 Pedro Alves <palves@redhat.com>
2717
2718 * breakpoint.c: Include "thread-fsm.h".
2719 (struct until_break_command_continuation_args): Delete.
2720 (struct until_break_fsm): New.
2721 (until_break_fsm_ops): New global.
2722 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2723 (until_break_command_continuation): Delete.
2724 (until_break_fsm_clean_up): New function.
2725 (until_break_fsm_async_reply_reason): New function.
2726 (until_break_command): Adjust to create an until_break_fsm instead
2727 of a continuation.
2728 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2729 here.
2730 * infcmd.c (struct until_next_fsm): New.
2731 (until_next_fsm_ops): New global.
2732 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2733 (until_next_continuation): Delete.
2734 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2735 functions.
2736 (until_next_command): Adjust to create a new until_next_fsm
2737 instead of a continuation.
2738
2739 2015-09-09 Pedro Alves <palves@redhat.com>
2740
2741 * infcall.c: Include thread_fsm.h.
2742 (struct call_return_meta_info): New.
2743 (get_call_return_value): New function, factored out from
2744 call_function_by_hand_dummy.
2745 (struct call_thread_fsm): New.
2746 (call_thread_fsm_ops): New global.
2747 (new_call_thread_fsm, call_thread_fsm_should_stop)
2748 (call_thread_fsm_should_notify_stop): New functions.
2749 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2750 the thread.
2751 (call_function_by_hand_dummy): Create a new call_thread_fsm
2752 instance, associate it with the thread, and wait for the FSM to
2753 finish. If finished successfully, fetch the function's result
2754 value out of the FSM.
2755 * infrun.c (fetch_inferior_event): If the FSM says the stop
2756 shouldn't be notified, don't call normal_stop.
2757 (maybe_remove_breakpoints): New function, factored out from ...
2758 (normal_stop): ... here. Simplify.
2759 * infrun.h (maybe_remove_breakpoints): Declare.
2760 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2761 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2762 (thread_fsm_should_notify_stop): Declare.
2763
2764 2015-09-09 Pedro Alves <palves@redhat.com>
2765
2766 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2767 * breakpoint.c (handle_jit_event): Print debug output.
2768 (bpstat_what): Split event callback handling to ...
2769 (bpstat_run_callbacks): ... this new function.
2770 (momentary_bkpt_print_it): No longer handle bp_finish here.
2771 * breakpoint.h (bpstat_run_callbacks): Declare.
2772 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2773 <thread_fsm>: New field.
2774 (thread_cancel_execution_command): Declare.
2775 * infcmd.c: Include thread-fsm.h.
2776 (struct step_command_fsm): New.
2777 (step_command_fsm_ops): New global.
2778 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2779 (step_1): Adjust to use step_command_fsm_prepare and
2780 prepare_one_step.
2781 (struct step_1_continuation_args): Delete.
2782 (step_1_continuation): Delete.
2783 (step_command_fsm_should_stop): New function.
2784 (step_once): Delete.
2785 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2786 (prepare_one_step): New function, based on step_once.
2787 (until_next_command): Remove step_multi reference.
2788 (struct return_value_info): New.
2789 (print_return_value): Rename to ...
2790 (print_return_value_1): ... this. New struct return_value_info
2791 parameter. Adjust.
2792 (print_return_value): Reimplement as wrapper around
2793 print_return_value_1.
2794 (struct finish_command_fsm): New.
2795 (finish_command_continuation): Delete.
2796 (finish_command_fsm_ops): New global.
2797 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2798 functions.
2799 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2800 New.
2801 (finish_command_continuation_free_arg): Delete.
2802 (finish_command_fsm_async_reply_reason): New.
2803 (finish_backward, finish_forward): Change symbol parameter to a
2804 finish_command_fsm. Adjust.
2805 (finish_command): Create a finish_command_fsm. Adjust.
2806 * infrun.c: Include "thread-fsm.h".
2807 (clear_proceed_status_thread): Delete the thread's FSM.
2808 (infrun_thread_stop_requested_callback): Cancel the thread's
2809 execution command.
2810 (clean_up_just_stopped_threads_fsms): New function.
2811 (fetch_inferior_event): Handle the event_thread's should_stop
2812 method saying the command isn't done yet.
2813 (process_event_stop_test): Run breakpoint callbacks here.
2814 (print_stop_event): Rename to ...
2815 (print_stop_location): ... this.
2816 (restore_current_uiout_cleanup): New function.
2817 (print_stop_event): Reimplement.
2818 (normal_stop): No longer notify the end_stepping_range observers
2819 here handle "step N" nor "finish" here. No longer call
2820 print_stop_event here.
2821 * infrun.h (struct return_value_info): Forward declare.
2822 (print_return_value): Declare.
2823 (print_stop_event): Change prototype.
2824 * thread-fsm.c: New file.
2825 * thread-fsm.h: New file.
2826 * thread.c: Include "thread-fsm.h".
2827 (thread_cancel_execution_command): New function.
2828 (clear_thread_inferior_resources): Call it.
2829 * cli/cli-interp.c (cli_on_normal_stop): New function.
2830 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2831 observer.
2832 * mi/mi-interp.c: Include "thread-fsm.h".
2833 (restore_current_uiout_cleanup): Delete.
2834 (mi_on_normal_stop): If the thread has an FSM associated, and it
2835 finished, ask it for the async-reply-reason to print. Always call
2836 print_stop_event here, regardless of the top-level interpreter.
2837 Check bpstat_what to tell whether an asynchronous breakpoint hit
2838 triggered.
2839 * tui/tui-interp.c (tui_on_normal_stop): New function.
2840 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2841
2842 2015-09-09 Pedro Alves <palves@redhat.com>
2843
2844 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2845 check whether the target can async.
2846 * inf-loop.c (inferior_event_handler): Only call target_async if
2847 the target can async.
2848 * infcall.c: Include top.h and interps.h.
2849 (run_inferior_call): For the interpreter to sync mode while
2850 running the infcall. Call wait_sync_command_done instead of
2851 wait_for_inferior plus normal_stop.
2852 * infcmd.c (prepare_execution_command): Don't check whether the
2853 target can async when running in the foreground.
2854 (step_1): Delete synchronous case handling.
2855 (step_once): Always install a continuation, even in sync mode.
2856 (until_next_command, finish_forward): Don't check whether the
2857 target can async.
2858 (attach_command_post_wait, notice_new_inferior): Always install a
2859 continuation, even in sync mode.
2860 * infrun.c (mark_infrun_async_event_handler): New function.
2861 (proceed): In sync mode, mark infrun's event source instead of
2862 waiting for events here.
2863 (fetch_inferior_event): If the target can't async, do a blocking
2864 wait.
2865 (prepare_to_wait): In sync mode, mark infrun's event source.
2866 (infrun_async_inferior_event_handler): No longer bail out if the
2867 target can't async.
2868 * infrun.h (mark_infrun_async_event_handler): New declaration.
2869 * linux-nat.c (linux_nat_wait_1): Remove calls to
2870 set_sigint_trap/clear_sigint_trap.
2871 (linux_nat_terminal_inferior): No longer check whether the target
2872 can async.
2873 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2874 comment.
2875 (mi_execute_command_input_handler): No longer check whether the
2876 target is async. Update and simplify comment.
2877 * target.c (default_target_wait): New function.
2878 * target.h (struct target_ops) <to_wait>: Now defaults to
2879 default_target_wait.
2880 (default_target_wait): Declare.
2881 * top.c (wait_sync_command_done): New function, factored out from
2882 ...
2883 (maybe_wait_sync_command_done): ... this.
2884 * top.h (wait_sync_command_done): Declare.
2885 * target-delegates.c: Regenerate.
2886
2887 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2888
2889 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2890 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2891 Remove include of sys/utsname.h.
2892 (linux_determine_kernel_ptr_bits): Remove.
2893 (linux_determine_kernel_start): New.
2894 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2895 Update check.
2896 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2897 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2898 initialization.
2899 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2900 assignment.
2901
2902 2015-09-07 Pedro Alves <palves@redhat.com>
2903
2904 * guile/guile-internal.h (as_a_scm_t_subr): New.
2905 * guile/guile.c (misc_guile_functions): Use it.
2906 * guile/scm-arch.c (arch_functions): Use it.
2907 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2908 Use it.
2909 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2910 * guile/scm-cmd.c (command_functions): Use it.
2911 * guile/scm-disasm.c (disasm_functions): Use it.
2912 * guile/scm-exception.c (exception_functions)
2913 (private_exception_functions): Use it.
2914 * guile/scm-frame.c (frame_functions)
2915 * guile/scm-gsmob.c (gsmob_functions): Use it.
2916 * guile/scm-iterator.c (iterator_functions): Use it.
2917 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2918 * guile/scm-math.c (math_functions): Use it.
2919 * guile/scm-objfile.c (objfile_functions): Use it.
2920 * guile/scm-param.c (parameter_functions): Use it.
2921 * guile/scm-ports.c (port_functions, private_port_functions): Use
2922 it.
2923 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2924 * guile/scm-progspace.c (pspace_functions): Use it.
2925 * guile/scm-string.c (string_functions): Use it.
2926 * guile/scm-symbol.c (symbol_functions): Use it.
2927 * guile/scm-symtab.c (symtab_functions): Use it.
2928 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2929 it.
2930 * guile/scm-value.c (value_functions): Use it.
2931
2932 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2935 (tui_next_win): Likewise.
2936 (tui_prev_win): Likewise.
2937 (tui_partial_win_by_name): Likewise.
2938 (tui_init_generic_part): Likewise.
2939 (init_content_element): Likewise.
2940 (tui_del_window): Likewise.
2941 (tui_free_window): Likewise.
2942 (tui_del_data_windows): Likewise.
2943 (tui_free_data_content): Likewise.
2944 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2945 * tui/tui-regs.c (tui_show_register_group): Likewise.
2946 * tui/tui-win.c (tui_resize_all): Likewise.
2947 (tui_set_focus): Likewise.
2948 (tui_set_win_height): Likewise.
2949 (make_invisible_and_set_new_height): Likewise.
2950 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2951 * tui/tui-wingeneral.c (make_visible): Likewise.
2952
2953 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2956
2957 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2960 pointer.
2961 * dbxread.c (dbx_end_psymtab): Likewise.
2962 * gnu-nat.c (gnu_write_inferior): Likewise.
2963 * mdebugread.c (cross_ref): Likewise.
2964 * p-valprint.c (pascal_val_print): Likewise.
2965 * xcoffread.c (xcoff_end_psymtab): Likewise.
2966
2967 2015-09-04 Yao Qi <yao.qi@linaro.org>
2968
2969 * NEWS: Mention the aarch64 multi-arch debugging support.
2970
2971 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2972
2973 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2974 type instead of a TYPE_CODE_INT one for the string_char_type
2975 and the ada_primitive_type_char types.
2976
2977 2015-09-03 Yao Qi <yao.qi@linaro.org>
2978
2979 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2980 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2981 aarch64_linux_region_ok_for_watchpoint.
2982 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2983 New function.
2984 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2985 Declare it.
2986
2987 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2988
2989 * gdb_obstack.h (obstack_strdup): Declare.
2990 * gdb_obstack.c (obstack_strdup): Define.
2991 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2992 * gdbarch.c: Regenerate.
2993 * gdbarch.h: Regenerate.
2994 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2995
2996 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2997
2998 * gdbtypes.c (copy_type_recursive): Update documentation.
2999
3000 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3001
3002 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3003 as zero.
3004
3005 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3006
3007 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3008
3009 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3010
3011 * solib-svr4.c (solib_event_probe_action): Call
3012 get_probe_argument_count using TRY...CATCH.
3013 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3014
3015 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3016
3017 * probe.h (struct probe_ops) <get_probe_argument_count,
3018 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3019 the comment that the function can throw an exception.
3020 (get_probe_argument_count): Likewise.
3021 (evaluate_probe_argument): Likewise.
3022 * stap-probe.c (stap_get_opcode): Call error instead of
3023 internal_error.
3024 (stap_get_expected_argument_type): Likewise. Add argument
3025 'probe'. Improve error message by mentioning the probe's name.
3026 (stap_parse_probe_arguments): Adjust call to
3027 stap_get_expected_argument_type.
3028 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3029 not zero. Call internal_error if GDB requests an argument but the
3030 probe has no arguments.
3031
3032 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3033
3034 * ada-lang.c (ada_resolve_function): Do not ask the user what
3035 match to use when in completion mode.
3036
3037 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3040 cast of NULL.
3041
3042 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3043
3044 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3045 call_abi using XSHAL_ABI macro.
3046
3047 2015-08-29 Doug Evans <xdje42@gmail.com>
3048
3049 * symtab.h (struct symbol): Tweak comment.
3050
3051 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3052
3053 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3054 gdbarch obstack instead of on the heap. Update commentary
3055 accordingly.
3056
3057 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3058
3059 GDB 7.10 released.
3060
3061 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3062
3063 * NEWS: Update entry about non-8-bits addressable memory.
3064
3065 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3066
3067 Revert:
3068 2014-11-06 Doug Evans <xdje42@gmail.com>
3069 * solib.c (solib_global_lookup): Fetch arch from objfile,
3070 not target_gdbarch.
3071
3072 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3073
3074 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3075 attempt to relocate a TLS variable offset.
3076
3077 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3078
3079 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3080 registered yet. Set inferior_ptid while calling target_read_memory.
3081
3082 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3083
3084 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3085 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3086 * linux-nat.c (check_stopped_by_breakpoint): Use
3087 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3088
3089 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3090
3091 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3092 thread was not yet discovered, use thread_from_lwp instead of
3093 calling thread_db_find_new_threads_1.
3094
3095 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3096
3097 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3098 statements.
3099
3100 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3101
3102 * NEWS: Document support for non-8-bits addressable memory.
3103
3104 2015-08-27 Pedro Alves <palves@redhat.com>
3105
3106 * configure.ac: Remove AC_TYPE_SIGNAL call.
3107 * configure, config.in: Regenerate.
3108
3109 2015-08-27 Pedro Alves <palves@redhat.com>
3110
3111 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3112 * extension-priv.h: Include signal.h.
3113 (struct signal_handler) <handler>: Change type to sighandler_t.
3114 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3115 * inflow.c (sigint_ours, sigquit_ours): Change type to
3116 sighandler_t.
3117 (child_terminal_inferior): Remove casts.
3118 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3119 (osig): Change type to sighandler_t.
3120 * nto-procfs.c (ofunc): Change type to sighandler_t.
3121 (procfs_wait): Remove casts.
3122 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3123 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3124 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3125
3126 2015-08-27 Pedro Alves <palves@redhat.com>
3127
3128 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3129 * gnulib/aclocal.m4: Renegerate.
3130 * gnulib/config.in: Renegerate.
3131 * gnulib/configure: Renegerate.
3132 * gnulib/import/Makefile.am: Update.
3133 * gnulib/import/Makefile.in: Regenerate.
3134 * gnulib/import/m4/gnulib-cache.m4: Update.
3135 * gnulib/import/m4/gnulib-comp.m4: Update.
3136 * gnulib/import/m4/signal_h.m4: New file.
3137 * gnulib/import/signal.in.h: New file.
3138
3139 2015-08-27 Pedro Alves <palves@redhat.com>
3140
3141 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3142 (MIN_MEMORY_PACKET_SIZE): New.
3143 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3144 (get_memory_packet_size): Adjust. No longer limit the max packet
3145 size.
3146 (set_memory_packet_size): Adjust, and remove dead code.
3147 (remote_check_symbols): Use xmalloc and a cleanup instead of
3148 alloca.
3149 (remote_packet_size): No longer cap the packet size.
3150 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3151
3152 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3153
3154 * compile/compile.c (compile_to_object): Mention language in
3155 error message.
3156
3157 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3158
3159 * target.c (target_pre_inferior): Unset attach_flag.
3160
3161 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3162
3163 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3164 * gdbarch.c: Re-generate.
3165
3166 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3167
3168 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3169 function with the XNEW-family equivalent.
3170 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3171 * ada-exp.y (write_ambiguous_var): Likewise.
3172 * ada-lang.c (resolve_subexp): Likewise.
3173 (user_select_syms): Likewise.
3174 (assign_aggregate): Likewise.
3175 (ada_evaluate_subexp): Likewise.
3176 (cache_symbol): Likewise.
3177 * addrmap.c (allocate_key): Likewise.
3178 (addrmap_create_mutable): Likewise.
3179 * aix-thread.c (sync_threadlists): Likewise.
3180 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3181 (alpha_gdbarch_init): Likewise.
3182 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3183 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3184 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3185 * arm-tdep.c (push_stack_item): Likewise.
3186 (arm_displaced_step_copy_insn): Likewise.
3187 (arm_gdbarch_init): Likewise.
3188 (_initialize_arm_tdep): Likewise.
3189 * avr-tdep.c (push_stack_item): Likewise.
3190 * ax-general.c (new_agent_expr): Likewise.
3191 * block.c (block_initialize_namespace): Likewise.
3192 * breakpoint.c (alloc_counted_command_line): Likewise.
3193 (update_dprintf_command_list): Likewise.
3194 (parse_breakpoint_sals): Likewise.
3195 (decode_static_tracepoint_spec): Likewise.
3196 (until_break_command): Likewise.
3197 (clear_command): Likewise.
3198 (update_global_location_list): Likewise.
3199 (get_breakpoint_objfile_data) Likewise.
3200 * btrace.c (ftrace_new_function): Likewise.
3201 (btrace_set_insn_history): Likewise.
3202 (btrace_set_call_history): Likewise.
3203 * buildsym.c (add_symbol_to_list): Likewise.
3204 (record_pending_block): Likewise.
3205 (start_subfile): Likewise.
3206 (start_buildsym_compunit): Likewise.
3207 (push_subfile): Likewise.
3208 (end_symtab_get_static_block): Likewise.
3209 (buildsym_init): Likewise.
3210 * cli/cli-cmds.c (source_command): Likewise.
3211 * cli/cli-decode.c (add_cmd): Likewise.
3212 * cli/cli-script.c (build_command_line): Likewise.
3213 (setup_user_args): Likewise.
3214 (realloc_body_list): Likewise.
3215 (process_next_line): Likewise.
3216 (copy_command_lines): Likewise.
3217 * cli/cli-setshow.c (do_set_command): Likewise.
3218 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3219 * coffread.c (coff_locate_sections): Likewise.
3220 (coff_symtab_read): Likewise.
3221 (coff_read_struct_type): Likewise.
3222 * common/cleanups.c (make_my_cleanup2): Likewise.
3223 * common/common-exceptions.c (throw_it): Likewise.
3224 * common/filestuff.c (make_cleanup_close): Likewise.
3225 * common/format.c (parse_format_string): Likewise.
3226 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3227 * compile/compile-object-load.c (munmap_list_add): Likewise.
3228 (compile_object_load): Likewise.
3229 * compile/compile-object-run.c (compile_object_run): Likewise.
3230 * compile/compile.c (append_args): Likewise.
3231 * corefile.c (specify_exec_file_hook): Likewise.
3232 * cp-support.c (make_symbol_overload_list): Likewise.
3233 * cris-tdep.c (push_stack_item): Likewise.
3234 (cris_gdbarch_init): Likewise.
3235 * ctf.c (ctf_trace_file_writer_new): Likewise.
3236 * dbxread.c (init_header_files): Likewise.
3237 (add_new_header_file): Likewise.
3238 (init_bincl_list): Likewise.
3239 (dbx_end_psymtab): Likewise.
3240 (start_psymtab): Likewise.
3241 (dbx_end_psymtab): Likewise.
3242 * dcache.c (dcache_init): Likewise.
3243 * dictionary.c (dict_create_hashed): Likewise.
3244 (dict_create_hashed_expandable): Likewise.
3245 (dict_create_linear): Likewise.
3246 (dict_create_linear_expandable): Likewise.
3247 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3248 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3249 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3250 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3251 (decode_frame_entry_1): Likewise.
3252 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3253 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3254 * dwarf2read.c (dwarf2_has_info): Likewise.
3255 (create_signatured_type_table_from_index): Likewise.
3256 (dwarf2_read_index): Likewise.
3257 (dw2_get_file_names_reader): Likewise.
3258 (create_all_type_units): Likewise.
3259 (read_cutu_die_from_dwo): Likewise.
3260 (init_tu_and_read_dwo_dies): Likewise.
3261 (init_cutu_and_read_dies): Likewise.
3262 (create_all_comp_units): Likewise.
3263 (queue_comp_unit): Likewise.
3264 (inherit_abstract_dies): Likewise.
3265 (read_call_site_scope): Likewise.
3266 (dwarf2_add_field): Likewise.
3267 (dwarf2_add_typedef): Likewise.
3268 (dwarf2_add_member_fn): Likewise.
3269 (attr_to_dynamic_prop): Likewise.
3270 (abbrev_table_alloc_abbrev): Likewise.
3271 (abbrev_table_read_table): Likewise.
3272 (add_include_dir): Likewise.
3273 (add_file_name): Likewise.
3274 (dwarf_decode_line_header): Likewise.
3275 (dwarf2_const_value_attr): Likewise.
3276 (dwarf_alloc_block): Likewise.
3277 (parse_macro_definition): Likewise.
3278 (set_die_type): Likewise.
3279 (write_psymtabs_to_index): Likewise.
3280 (create_cus_from_index): Likewise.
3281 (dwarf2_create_include_psymtab): Likewise.
3282 (process_psymtab_comp_unit_reader): Likewise.
3283 (build_type_psymtab_dependencies): Likewise.
3284 (read_comp_units_from_section): Likewise.
3285 (compute_compunit_symtab_includes): Likewise.
3286 (create_dwo_unit_in_dwp_v1): Likewise.
3287 (create_dwo_unit_in_dwp_v2): Likewise.
3288 (read_func_scope): Likewise.
3289 (process_structure_scope): Likewise.
3290 (mark_common_block_symbol_computed): Likewise.
3291 (load_partial_dies): Likewise.
3292 (dwarf2_symbol_mark_computed): Likewise.
3293 * elfread.c (elf_symfile_segments): Likewise.
3294 (elf_read_minimal_symbols): Likewise.
3295 * environ.c (make_environ): Likewise.
3296 * eval.c (evaluate_subexp_standard): Likewise.
3297 * event-loop.c (create_file_handler): Likewise.
3298 (create_async_signal_handler): Likewise.
3299 (create_async_event_handler): Likewise.
3300 (create_timer): Likewise.
3301 * exec.c (build_section_table): Likewise.
3302 * fbsd-nat.c (fbsd_remember_child): Likewise.
3303 * fork-child.c (fork_inferior): Likewise.
3304 * frv-tdep.c (new_variant): Likewise.
3305 * gdbarch.sh (gdbarch_alloc): Likewise.
3306 (append_name): Likewise.
3307 * gdbtypes.c (rank_function): Likewise.
3308 (copy_type_recursive): Likewise.
3309 (add_dyn_prop): Likewise.
3310 * gnu-nat.c (make_proc): Likewise.
3311 (make_inf): Likewise.
3312 (gnu_write_inferior): Likewise.
3313 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3314 (build_std_type_info_type): Likewise.
3315 * guile/scm-param.c (compute_enum_list): Likewise.
3316 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3317 * guile/scm-value.c (gdbscm_value_call): Likewise.
3318 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3319 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3320 (read_unwind_info): Likewise.
3321 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3322 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3323 (call_function_by_hand_dummy): Likewise.
3324 * infcmd.c (step_once): Likewise.
3325 (finish_forward): Likewise.
3326 (attach_command): Likewise.
3327 (notice_new_inferior): Likewise.
3328 * inferior.c (add_inferior_silent): Likewise.
3329 * infrun.c (add_displaced_stepping_state): Likewise.
3330 (save_infcall_control_state): Likewise.
3331 (save_inferior_ptid): Likewise.
3332 (_initialize_infrun): Likewise.
3333 * jit.c (bfd_open_from_target_memory): Likewise.
3334 (jit_gdbarch_data_init): Likewise.
3335 * language.c (add_language): Likewise.
3336 * linespec.c (decode_line_2): Likewise.
3337 * linux-nat.c (add_to_pid_list): Likewise.
3338 (add_initial_lwp): Likewise.
3339 * linux-thread-db.c (add_thread_db_info): Likewise.
3340 (record_thread): Likewise.
3341 (info_auto_load_libthread_db): Likewise.
3342 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3344 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3345 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3346 * macrocmd.c (macro_define_command): Likewise.
3347 * macroexp.c (gather_arguments): Likewise.
3348 * macroscope.c (sal_macro_scope): Likewise.
3349 * macrotab.c (new_macro_table): Likewise.
3350 * mdebugread.c (push_parse_stack): Likewise.
3351 (parse_partial_symbols): Likewise.
3352 (parse_symbol): Likewise.
3353 (psymtab_to_symtab_1): Likewise.
3354 (new_block): Likewise.
3355 (new_psymtab): Likewise.
3356 (mdebug_build_psymtabs): Likewise.
3357 (add_pending): Likewise.
3358 (elfmdebug_build_psymtabs): Likewise.
3359 * mep-tdep.c (mep_gdbarch_init): Likewise.
3360 * mi/mi-main.c (mi_execute_command): Likewise.
3361 * mi/mi-parse.c (mi_parse_argv): Likewise.
3362 * minidebug.c (lzma_open): Likewise.
3363 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3364 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3365 * mips-tdep.c (mips_gdbarch_init): Likewise.
3366 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3367 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3368 * mt-tdep.c (mt_registers_info): Likewise.
3369 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3370 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3371 (linux_enable_pt): Likewise.
3372 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3373 (linux_xfer_osdata_processgroups): Likewise.
3374 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3375 * nto-procfs.c (procfs_meminfo): Likewise.
3376 * objc-lang.c (start_msglist): Likewise.
3377 (selectors_info): Likewise.
3378 (classes_info): Likewise.
3379 (find_methods): Likewise.
3380 * objfiles.c (allocate_objfile): Likewise.
3381 (update_section_map): Likewise.
3382 * osabi.c (gdbarch_register_osabi): Likewise.
3383 (gdbarch_register_osabi_sniffer): Likewise.
3384 * parse.c (start_arglist): Likewise.
3385 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3386 (hwdebug_insert_point): Likewise.
3387 * printcmd.c (display_command): Likewise.
3388 (ui_printf): Likewise.
3389 * procfs.c (create_procinfo): Likewise.
3390 (load_syscalls): Likewise.
3391 (proc_get_LDT_entry): Likewise.
3392 (proc_update_threads): Likewise.
3393 * prologue-value.c (make_pv_area): Likewise.
3394 (pv_area_store): Likewise.
3395 * psymtab.c (extend_psymbol_list): Likewise.
3396 (init_psymbol_list): Likewise.
3397 (allocate_psymtab): Likewise.
3398 * python/py-inferior.c (add_thread_object): Likewise.
3399 * python/py-param.c (compute_enum_values): Likewise.
3400 * python/py-value.c (valpy_call): Likewise.
3401 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3402 * python/python.c (ensure_python_env): Likewise.
3403 * record-btrace.c (record_btrace_start_replaying): Likewise.
3404 * record-full.c (record_full_reg_alloc): Likewise.
3405 (record_full_mem_alloc): Likewise.
3406 (record_full_end_alloc): Likewise.
3407 (record_full_core_xfer_partial): Likewise.
3408 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3409 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3410 * remote-notif.c (remote_notif_state_allocate): Likewise.
3411 * remote.c (demand_private_info): Likewise.
3412 (remote_notif_stop_alloc_reply): Likewise.
3413 (remote_enable_btrace): Likewise.
3414 * reverse.c (save_bookmark_command): Likewise.
3415 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3416 * rx-tdep.c (rx_gdbarch_init): Likewise.
3417 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3418 * ser-go32.c (dos_get_tty_state): Likewise.
3419 (dos_copy_tty_state): Likewise.
3420 * ser-mingw.c (ser_windows_open): Likewise.
3421 (ser_console_wait_handle): Likewise.
3422 (ser_console_get_tty_state): Likewise.
3423 (make_pipe_state): Likewise.
3424 (net_windows_open): Likewise.
3425 * ser-unix.c (hardwire_get_tty_state): Likewise.
3426 (hardwire_copy_tty_state): Likewise.
3427 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3428 * solib-dsbt.c (dsbt_current_sos): Likewise.
3429 (dsbt_relocate_main_executable): Likewise.
3430 * solib-frv.c (frv_current_sos): Likewise.
3431 (frv_relocate_main_executable): Likewise.
3432 * solib-spu.c (spu_bfd_fopen): Likewise.
3433 * solib-svr4.c (lm_info_read): Likewise.
3434 (svr4_copy_library_list): Likewise.
3435 (svr4_default_sos): Likewise.
3436 * source.c (find_source_lines): Likewise.
3437 (line_info): Likewise.
3438 (add_substitute_path_rule): Likewise.
3439 * spu-linux-nat.c (spu_bfd_open): Likewise.
3440 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3441 * stabsread.c (dbx_lookup_type): Likewise.
3442 (read_type): Likewise.
3443 (read_member_functions): Likewise.
3444 (read_struct_fields): Likewise.
3445 (read_baseclasses): Likewise.
3446 (read_args): Likewise.
3447 (_initialize_stabsread): Likewise.
3448 * stack.c (func_command): Likewise.
3449 * stap-probe.c (handle_stap_probe): Likewise.
3450 * symfile.c (addrs_section_sort): Likewise.
3451 (addr_info_make_relative): Likewise.
3452 (load_section_callback): Likewise.
3453 (add_symbol_file_command): Likewise.
3454 (init_filename_language_table): Likewise.
3455 * symtab.c (create_filename_seen_cache): Likewise.
3456 (sort_search_symbols_remove_dups): Likewise.
3457 (search_symbols): Likewise.
3458 * target.c (make_cleanup_restore_target_terminal): Likewise.
3459 * thread.c (new_thread): Likewise.
3460 (enable_thread_stack_temporaries): Likewise.
3461 (make_cleanup_restore_current_thread): Likewise.
3462 (thread_apply_all_command): Likewise.
3463 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3464 * top.c (gdb_readline_wrapper): Likewise.
3465 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3466 * tracepoint.c (trace_find_line_command): Likewise.
3467 (all_tracepoint_actions_and_cleanup): Likewise.
3468 (make_cleanup_restore_current_traceframe): Likewise.
3469 (get_uploaded_tp): Likewise.
3470 (get_uploaded_tsv): Likewise.
3471 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3472 (tui_alloc_win_info): Likewise.
3473 (tui_alloc_content): Likewise.
3474 (tui_add_content_elements): Likewise.
3475 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3476 (tui_set_disassem_content): Likewise.
3477 * ui-file.c (ui_file_new): Likewise.
3478 (stdio_file_new): Likewise.
3479 (tee_file_new): Likewise.
3480 * utils.c (make_cleanup_restore_integer): Likewise.
3481 (add_internal_problem_command): Likewise.
3482 * v850-tdep.c (v850_gdbarch_init): Likewise.
3483 * valops.c (find_oload_champ): Likewise.
3484 * value.c (allocate_value_lazy): Likewise.
3485 (record_latest_value): Likewise.
3486 (create_internalvar): Likewise.
3487 * varobj.c (install_variable): Likewise.
3488 (new_variable): Likewise.
3489 (new_root_variable): Likewise.
3490 (cppush): Likewise.
3491 (_initialize_varobj): Likewise.
3492 * windows-nat.c (windows_make_so): Likewise.
3493 * x86-nat.c (x86_add_process): Likewise.
3494 * xcoffread.c (arrange_linetable): Likewise.
3495 (allocate_include_entry): Likewise.
3496 (process_linenos): Likewise.
3497 (SYMBOL_DUP): Likewise.
3498 (xcoff_start_psymtab): Likewise.
3499 (xcoff_end_psymtab): Likewise.
3500 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3501 * xtensa-tdep.c (xtensa_register_type): Likewise.
3502 * gdbarch.c: Regenerate.
3503 * gdbarch.h: Regenerate.
3504
3505 2015-08-25 Don Breazeal <donb@codesourcery.com>
3506
3507 * infrun.c (follow_exec): Re-order operations for
3508 handling follow-exec-mode "new".
3509 (handle_inferior_event_1): Assign ecs->event_thread
3510 to the current thread.
3511 * remote.c (get_remote_arch_state): Add an assertion.
3512
3513 2015-08-26 Pedro Alves <palves@redhat.com>
3514
3515 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3516
3517 2015-08-25 Pedro Alves <palves@redhat.com>
3518
3519 PR gdb/18804
3520 * defs.h (maybe_quit): Declare.
3521 (QUIT): Now calls maybe_quit.
3522 * event-loop.c (clear_async_signal_handler)
3523 (async_signal_handler_is_marked): New functions.
3524 * event-loop.h (async_signal_handler_is_marked)
3525 (clear_async_signal_handler): New declarations.
3526 * remote.c (remote_check_pending_interrupt): New function.
3527 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3528 longer check whether the target is async. If waiting for a stop
3529 reply, and a Ctrl-C as been sent to the target, offer to
3530 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3531 Otherwise do not disconnect and throw a quit.
3532 (_initialize_remote): Install remote_check_pending_interrupt as
3533 to_check_pending_interrupt.
3534 * target.c (target_check_pending_interrupt): New function.
3535 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3536 field.
3537 (target_check_pending_interrupt): New declaration.
3538 * utils.c (maybe_quit): New function.
3539 * target-delegates.c: Regenerate.
3540
3541 2015-08-25 Yao Qi <yao.qi@linaro.org>
3542
3543 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3544 Rename local variable pid to tid, and get lwpid of lwp. Update
3545 debug output.
3546
3547 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3548
3549 * ada-lang.c (ada_read_var_value): Add a var_block argument
3550 and pass it to default_read_var_value.
3551 * block.c (block_static_link): New accessor.
3552 * block.h (block_static_link): Declare it.
3553 * buildsym.c (finish_block_internal): Add a static_link
3554 argument. If there is a static link, associate it to the new
3555 block.
3556 (finish_block): Add a static link argument and pass it to
3557 finish_block_internal.
3558 (end_symtab_get_static_block): Update calls to finish_block and
3559 to finish_block_internal.
3560 (end_symtab_with_blockvector): Update call to
3561 finish_block_internal.
3562 * buildsym.h: Forward-declare struct dynamic_prop.
3563 (struct context_stack): Add a static_link field.
3564 (finish_block): Add a static link argument.
3565 * c-exp.y: Remove an obsolete comment (evaluation of variables
3566 already start from the selected frame, and now they climb *up*
3567 the call stack) and propagate the block information to the
3568 produced expression.
3569 * d-exp.y: Likewise.
3570 * f-exp.y: Likewise.
3571 * go-exp.y: Likewise.
3572 * jv-exp.y: Likewise.
3573 * m2-exp.y: Likewise.
3574 * p-exp.y: Likewise.
3575 * coffread.c (coff_symtab_read): Update calls to finish_block.
3576 * dbxread.c (process_one_symbol): Likewise.
3577 * xcoffread.c (read_xcoff_symtab): Likewise.
3578 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3579 "sym" parameter to struct block_symbol, update its uses and pass
3580 its block to calls to read_var_value.
3581 (convert_symbol_sym): Update the calls to convert_one_symbol.
3582 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3583 call to read_var_value.
3584 * dwarf2loc.c (block_op_get_frame_base): New.
3585 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3586 get_frame_base method.
3587 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3588 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3589 instead of the selected frame in order to evaluate the
3590 expression.
3591 (dwarf2_evaluate_property): Add a frame argument. Update call
3592 to dwarf2_locexpr_baton_eval to provide a frame in available and
3593 to handle the absence of address stack.
3594 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3595 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3596 declaration.
3597 (read_func_scope): Record any available static link description.
3598 Update call to finish_block.
3599 (read_lexical_block_scope): Update call to finish_block.
3600 * findvar.c (follow_static_link): New.
3601 (get_hosting_frame): New.
3602 (default_read_var_value): Add a var_block argument. Use
3603 get_hosting_frame to handle non-local references.
3604 (read_var_value): Add a var_block argument and pass it to the
3605 LA_READ_VAR_VALUE method.
3606 * gdbtypes.c (resolve_dynamic_range): Update calls to
3607 dwarf2_evaluate_property.
3608 (resolve_dynamic_type_internal): Likewise.
3609 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3610 read_var_value, passing it the block coming from symbol lookup.
3611 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3612 read_var_value (TODO).
3613 * infcmd.c (finish_command_continuation): Update call to
3614 read_var_value, passing it the block coming from symbol lookup.
3615 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3616 * language.h (struct language_defn): Add a var_block argument to
3617 the LA_READ_VAR_VALUE method.
3618 * objfiles.c (struct static_link_htab_entry): New.
3619 (static_link_htab_entry_hash): New.
3620 (static_link_htab_entry_eq): New.
3621 (objfile_register_static_link): New.
3622 (objfile_lookup_static_link): New.
3623 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3624 * objfiles.h: Include hashtab.h.
3625 (struct objfile): Add a static_links field.
3626 (objfile_register_static_link): New.
3627 (objfile_lookup_static_link): New.
3628 * printcmd.c (print_variable_and_value): Update call to
3629 read_var_value.
3630 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3631 * python/py-frame.c (frapy_read_var): Update call to
3632 read_var_value, passing it the block coming from symbol lookup.
3633 * python/py-framefilter.c (extract_sym): Add a sym_block
3634 parameter and set the pointed value to NULL (TODO).
3635 (enumerate_args): Update call to extract_sym.
3636 (enumerate_locals): Update calls to extract_sym and to
3637 read_var_value.
3638 * python/py-symbol.c (sympy_value): Update call to
3639 read_var_value (TODO).
3640 * stack.c (read_frame_local): Update call to read_var_value.
3641 (read_frame_arg): Likewise.
3642 (return_command): Likewise.
3643 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3644 method.
3645 (struct symbol): Add a block field.
3646 (SYMBOL_BLOCK): New accessor.
3647 * valops.c (value_of_variable): Remove frame/block handling and
3648 pass the block argument to read_var_value, which does this job
3649 now.
3650 (value_struct_elt_for_reference): Update calls to
3651 read_var_value.
3652 (value_of_this): Pass the block found to read_var_value.
3653 * value.h (read_var_value): Add a var_block argument.
3654 (default_read_var_value): Likewise.
3655
3656 2015-08-25 Yao Qi <yao.qi@linaro.org>
3657
3658 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3659 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3660 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3661
3662 2015-08-25 Yao Qi <yao.qi@linaro.org>
3663
3664 * Makefile.in (aarch64-liunx.o): New rule.
3665 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3666 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3667 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3668 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3669 extern.
3670 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3671 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3672 * nat/aarch64-linux.c: New file.
3673 * nat/aarch64-linux.h: New file.
3674
3675 2015-08-25 Yao Qi <yao.qi@linaro.org>
3676
3677 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3678 lwp_arch_private_info and ptid_of_lwp.
3679
3680 2015-08-25 Yao Qi <yao.qi@linaro.org>
3681
3682 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3683 Move it to nat/aarch64-linux-hw-point.c.
3684 (debug_reg_change_callback): Likewise.
3685 (aarch64_notify_debug_reg_change): :Likewise.
3686 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3687 (aarch64_dr_update_callback_param): New.
3688 (debug_reg_change_callback): New function.
3689 (aarch64_notify_debug_reg_change): Likewise.
3690 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3691 Remove the declaration.
3692
3693 2015-08-25 Yao Qi <yao.qi@linaro.org>
3694
3695 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3696 Call current_lwp_ptid.
3697
3698 2015-08-25 Yao Qi <yao.qi@linaro.org>
3699
3700 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3701 debug_printf.
3702
3703 2015-08-25 Yao Qi <yao.qi@linaro.org>
3704
3705 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3706 ptid_get_pid rather than ptid_get_lwp.
3707
3708 2015-08-24 Pedro Alves <palves@redhat.com>
3709
3710 * NEWS (New commands): Mention set/show remote
3711 multiprocess-extensions-packet.
3712 * remote.c (remote_query_supported): Only tell the server to use
3713 the multiprocess extensions if the user hasn't force-disabled them
3714 with "set remote multiprocess-extensions-packet off".
3715
3716 2015-08-24 Pedro Alves <palves@redhat.com>
3717
3718 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3719 1029a8112290f6eee9d7878a391c49db42c999bd.
3720 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3721 Regenerate.
3722 * gnulib/import/Makefile.am: Update.
3723 * gnulib/import/Makefile.in: Update.
3724 * gnulib/import/alloca.in.h: Update.
3725 * gnulib/import/basename-lgpl.c: Update.
3726 * gnulib/import/canonicalize-lgpl.c: Update.
3727 * gnulib/import/config.charset: Update.
3728 * gnulib/import/dirent.in.h: Update.
3729 * gnulib/import/dirfd.c: Update.
3730 * gnulib/import/dirname-lgpl.c: Update.
3731 * gnulib/import/dirname.h: Update.
3732 * gnulib/import/dosname.h: Update.
3733 * gnulib/import/errno.in.h: Update.
3734 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3735 * gnulib/import/extra/snippet/c++defs.h: Update.
3736 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3737 * gnulib/import/extra/update-copyright: Update.
3738 * gnulib/import/float+.h: Update.
3739 * gnulib/import/float.c: Update.
3740 * gnulib/import/float.in.h: Update.
3741 * gnulib/import/fnmatch.c: Update.
3742 * gnulib/import/fnmatch.in.h: Update.
3743 * gnulib/import/fnmatch_loop.c: Update.
3744 * gnulib/import/fpucw.h: Update.
3745 * gnulib/import/frexp.c: Update.
3746 * gnulib/import/frexpl.c: Update.
3747 * gnulib/import/gettimeofday.c: Update.
3748 * gnulib/import/inttypes.in.h: Update.
3749 * gnulib/import/isnan.c: Update.
3750 * gnulib/import/isnand-nolibm.h: Update.
3751 * gnulib/import/isnand.c: Update.
3752 * gnulib/import/isnanl-nolibm.h: Update.
3753 * gnulib/import/isnanl.c: Update.
3754 * gnulib/import/itold.c: Update.
3755 * gnulib/import/localcharset.c: Update.
3756 * gnulib/import/localcharset.h: Update.
3757 * gnulib/import/lstat.c: Update.
3758 * gnulib/import/m4/00gnulib.m4: Update.
3759 * gnulib/import/m4/absolute-header.m4: Update.
3760 * gnulib/import/m4/alloca.m4: Update.
3761 * gnulib/import/m4/canonicalize.m4: Update.
3762 * gnulib/import/m4/codeset.m4: Update.
3763 * gnulib/import/m4/configmake.m4: Update.
3764 * gnulib/import/m4/dirent_h.m4: Update.
3765 * gnulib/import/m4/dirfd.m4: Update.
3766 * gnulib/import/m4/dirname.m4: Update.
3767 * gnulib/import/m4/double-slash-root.m4: Update.
3768 * gnulib/import/m4/eealloc.m4: Update.
3769 * gnulib/import/m4/errno_h.m4: Update.
3770 * gnulib/import/m4/exponentd.m4: Update.
3771 * gnulib/import/m4/exponentl.m4: Update.
3772 * gnulib/import/m4/extensions.m4: Update.
3773 * gnulib/import/m4/extern-inline.m4: Update.
3774 * gnulib/import/m4/fcntl-o.m4: Update.
3775 * gnulib/import/m4/float_h.m4: Update.
3776 * gnulib/import/m4/fnmatch.m4: Update.
3777 * gnulib/import/m4/fpieee.m4: Update.
3778 * gnulib/import/m4/frexp.m4: Update.
3779 * gnulib/import/m4/frexpl.m4: Update.
3780 * gnulib/import/m4/gettimeofday.m4: Update.
3781 * gnulib/import/m4/glibc21.m4: Update.
3782 * gnulib/import/m4/gnulib-cache.m4: Update.
3783 * gnulib/import/m4/gnulib-common.m4: Update.
3784 * gnulib/import/m4/gnulib-comp.m4: Update.
3785 * gnulib/import/m4/gnulib-tool.m4: Update.
3786 * gnulib/import/m4/include_next.m4: Update.
3787 * gnulib/import/m4/inttypes-pri.m4: Update.
3788 * gnulib/import/m4/inttypes.m4: Update.
3789 * gnulib/import/m4/isnand.m4: Update.
3790 * gnulib/import/m4/isnanl.m4: Update.
3791 * gnulib/import/m4/largefile.m4: Update.
3792 * gnulib/import/m4/localcharset.m4: Update.
3793 * gnulib/import/m4/locale-fr.m4: Update.
3794 * gnulib/import/m4/locale-ja.m4: Update.
3795 * gnulib/import/m4/locale-zh.m4: Update.
3796 * gnulib/import/m4/longlong.m4: Update.
3797 * gnulib/import/m4/lstat.m4: Update.
3798 * gnulib/import/m4/malloc.m4: Update.
3799 * gnulib/import/m4/malloca.m4: Update.
3800 * gnulib/import/m4/math_h.m4: Update.
3801 * gnulib/import/m4/mbrtowc.m4: Update.
3802 * gnulib/import/m4/mbsinit.m4: Update.
3803 * gnulib/import/m4/mbsrtowcs.m4: Update.
3804 * gnulib/import/m4/mbstate_t.m4: Update.
3805 * gnulib/import/m4/memchr.m4: Update.
3806 * gnulib/import/m4/memmem.m4: Update.
3807 * gnulib/import/m4/mmap-anon.m4: Update.
3808 * gnulib/import/m4/multiarch.m4: Update.
3809 * gnulib/import/m4/nocrash.m4: Update.
3810 * gnulib/import/m4/off_t.m4: Update.
3811 * gnulib/import/m4/pathmax.m4: Update.
3812 * gnulib/import/m4/readlink.m4: Update.
3813 * gnulib/import/m4/rename.m4: Update.
3814 * gnulib/import/m4/rmdir.m4: Update.
3815 * gnulib/import/m4/ssize_t.m4: Update.
3816 * gnulib/import/m4/stat.m4: Update.
3817 * gnulib/import/m4/stdbool.m4: Update.
3818 * gnulib/import/m4/stddef_h.m4: Update.
3819 * gnulib/import/m4/stdint.m4: Update.
3820 * gnulib/import/m4/stdio_h.m4: Update.
3821 * gnulib/import/m4/stdlib_h.m4: Update.
3822 * gnulib/import/m4/string_h.m4: Update.
3823 * gnulib/import/m4/strstr.m4: Update.
3824 * gnulib/import/m4/strtok_r.m4: Update.
3825 * gnulib/import/m4/sys_socket_h.m4: Update.
3826 * gnulib/import/m4/sys_stat_h.m4: Update.
3827 * gnulib/import/m4/sys_time_h.m4: Update.
3828 * gnulib/import/m4/sys_types_h.m4: Update.
3829 * gnulib/import/m4/time_h.m4: Update.
3830 * gnulib/import/m4/unistd_h.m4: Update.
3831 * gnulib/import/m4/warn-on-use.m4: Update.
3832 * gnulib/import/m4/wchar_h.m4: Update.
3833 * gnulib/import/m4/wchar_t.m4: Update.
3834 * gnulib/import/m4/wctype_h.m4: Update.
3835 * gnulib/import/m4/wint_t.m4: Update.
3836 * gnulib/import/malloc.c: Update.
3837 * gnulib/import/malloca.c: Update.
3838 * gnulib/import/malloca.h: Update.
3839 * gnulib/import/math.in.h: Update.
3840 * gnulib/import/mbrtowc.c: Update.
3841 * gnulib/import/mbsinit.c: Update.
3842 * gnulib/import/mbsrtowcs-impl.h: Update.
3843 * gnulib/import/mbsrtowcs-state.c: Update.
3844 * gnulib/import/mbsrtowcs.c: Update.
3845 * gnulib/import/memchr.c: Update.
3846 * gnulib/import/memmem.c: Update.
3847 * gnulib/import/pathmax.h: Update.
3848 * gnulib/import/readlink.c: Update.
3849 * gnulib/import/ref-add.sin: Update.
3850 * gnulib/import/ref-del.sin: Update.
3851 * gnulib/import/rename.c: Update.
3852 * gnulib/import/rmdir.c: Update.
3853 * gnulib/import/same-inode.h: Update.
3854 * gnulib/import/stat.c: Update.
3855 * gnulib/import/stdbool.in.h: Update.
3856 * gnulib/import/stddef.in.h: Update.
3857 * gnulib/import/stdint.in.h: Update.
3858 * gnulib/import/stdio.c: Update.
3859 * gnulib/import/stdio.in.h: Update.
3860 * gnulib/import/stdlib.in.h: Update.
3861 * gnulib/import/str-two-way.h: Update.
3862 * gnulib/import/streq.h: Update.
3863 * gnulib/import/string.in.h: Update.
3864 * gnulib/import/stripslash.c: Update.
3865 * gnulib/import/strnlen1.c: Update.
3866 * gnulib/import/strnlen1.h: Update.
3867 * gnulib/import/strstr.c: Update.
3868 * gnulib/import/strtok_r.c: Update.
3869 * gnulib/import/sys_stat.in.h: Update.
3870 * gnulib/import/sys_time.in.h: Update.
3871 * gnulib/import/sys_types.in.h: Update.
3872 * gnulib/import/time.in.h: Update.
3873 * gnulib/import/unistd.in.h: Update.
3874 * gnulib/import/verify.h: Update.
3875 * gnulib/import/wchar.in.h: Update.
3876 * gnulib/import/wctype.in.h: Update.
3877 * gnulib/import/gettimeofday.c: New file.
3878 * gnulib/import/m4/absolute-header.m4: New file.
3879 * gnulib/import/m4/gettimeofday.m4: New file.
3880 * gnulib/import/m4/sys_socket_h.m4: New file.
3881 * gnulib/import/m4/sys_time_h.m4: New file.
3882 * gnulib/import/stdio.c: Delete file.
3883 * gnulib/import/sys_time.in.h: New file.
3884
3885 2015-08-24 Pedro Alves <palves@redhat.com>
3886
3887 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3888 * common/gdb_sys_time.h: New file.
3889 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3890 * gdb_select.h: Likewise.
3891 * gdb_usleep.c: Likewise.
3892 * maint.c: Likewise.
3893 * mi/mi-main.c: Likewise.
3894 * mi/mi-parse.h: Likewise.
3895 * remote-fileio.c: Likewise.
3896 * remote-m32r-sdi.c: Likewise.
3897 * remote.c: Likewise.
3898 * ser-base.c: Likewise.
3899 * ser-pipe.c: Likewise.
3900 * ser-tcp.c: Likewise.
3901 * ser-unix.c: Likewise.
3902 * symfile.c: Likewise.
3903 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3904 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3905 * utils.c: Likewise.
3906
3907 2015-08-24 Pedro Alves <palves@redhat.com>
3908
3909 * NEWS: Mention removed support for the various ROM monitors.
3910 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3911 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3912 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3913 gdb_target_obs.
3914 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3915 gdb_target_obs.
3916 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3917 dsrec.o from gdb_target_obs.
3918 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3919 from gdb_target_obs.
3920 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3921 gdb_target_obs.
3922 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3923 dink32-rom.o from gdb_target_obs.
3924 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3925 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3926 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3927 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3928
3929 2015-08-21 Pedro Alves <palves@redhat.com>
3930
3931 * frame.c (null_frame_id): Explicitly zero-initialize.
3932
3933 2015-08-21 Tom Tromey <tromey@redhat.com>
3934
3935 * dwarf2read.c (struct dwarf2_section_info): Rename field
3936 'asection' to 'section'.
3937 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3938 (dwarf2_locate_sections, dwarf2_locate_sections)
3939 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3940 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3941 (dwarf2_locate_v2_dwp_sections): Adjust.
3942
3943 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3944
3945 * top.h (gdb_in_secondary_prompt_p): Declare.
3946 * top.c (gdb_secondary_prompt_depth): Define.
3947 (gdb_in_secondary_prompt_p): Define.
3948 (gdb_readline_wrapper_cleanup): Decrement
3949 gdb_secondary_prompt_depth.
3950 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3951 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3952 are in a secondary prompt.
3953
3954 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3955
3956 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3957 emit the newline.
3958
3959 2015-08-21 Gary Benson <gbenson@redhat.com>
3960
3961 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3962
3963 2015-08-21 Gary Benson <gbenson@redhat.com>
3964
3965 * target.h (struct target_ops) <to_fileio_open>: New argument
3966 warn_if_slow. Update comment. All implementations updated.
3967 (target_fileio_open_warn_if_slow): New declaration.
3968 * target.c (target_fileio_open): Renamed as...
3969 (target_fileio_open_1): ...this. New argument warn_if_slow.
3970 Pass warn_if_slow to implementation. Update debug printing.
3971 (target_fileio_open): New function.
3972 (target_fileio_open_warn_if_slow): Likewise.
3973 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3974 target_fileio_open_warn_if_slow.
3975
3976 2015-08-21 Gary Benson <gbenson@redhat.com>
3977
3978 * nat/linux-namespaces.c (linux_mntns_access_fs):
3979 Do not overwrite old_chain.
3980
3981 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3982
3983 * arch/xtensa.h: New file.
3984 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3985 (ps_get_thread_area): New function.
3986 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3987 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3988 * xtensa-tdep.c (osabi.h): New #include.
3989 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3990 xtensa-specific hooks.
3991 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3992 member and move the structure to arch/xtensa.h.
3993
3994 2015-08-21 Pedro Alves <palves@redhat.com>
3995
3996 * remote.c (struct readahead_cache): New.
3997 (struct remote_state) <readahead_cache>: New field.
3998 (remote_open_1): Invalidate the cache.
3999 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4000 functions.
4001 (remote_hostio_pwrite): Invalidate the readahead cache.
4002 (remote_hostio_pread): Rename to ...
4003 (remote_hostio_pread_vFile): ... this.
4004 (remote_hostio_pread_from_cache): New function.
4005 (remote_hostio_pread): Reimplement.
4006 (remote_hostio_close): Invalidate the readahead cache.
4007
4008 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4009
4010 PR build/18843
4011 * procfs.c: Include "filestuff.h".
4012
4013 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4014
4015 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4016 curch.
4017 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4018 cur_line or curch, instead call wmove().
4019 (init_win_info) [CMD_WIN]: Likewise.
4020 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4021 instead call getcury().
4022 (tui_redisplay_readline): Don't set cur_line or curch.
4023 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4024 getcury().
4025 (tui_cont_sig): Remove call to wmove.
4026 (tui_getc): Don't read cur_line or curch, instead call getcury()
4027 or getyx(). Don't set curch.
4028 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4029 set cur_line or curch. Always move cursor to (0,0).
4030
4031 2015-08-20 Pedro Alves <palves@redhat.com>
4032
4033 * infrun.c (print_target_wait_results): Make extern.
4034 * infrun.h (print_target_wait_results): Declare.
4035 * remote.c (set_stop_requested_callback): Delete.
4036 (process_initial_stop_replies): New function.
4037 (remote_start_remote): Use it.
4038 (stop_reply_queue_length): New function.
4039
4040 2015-08-20 Pedro Alves <palves@redhat.com>
4041
4042 * dwarf2read.c (process_full_comp_unit): To tell whether
4043 start_subfile managed to deduce a language, test for
4044 language_unknown instead of language_c.
4045
4046 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4047
4048 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4049 matches attributes.
4050
4051 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4052
4053 * dwarf2read.c (dwarf2_string_attr): New function.
4054 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4055 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4056 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4057 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4058 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4059
4060 2015-08-18 Doug Evans <dje@google.com>
4061 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4062
4063 PR mi/18833
4064 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4065 if MI-like.
4066 * mi/mi-out.c: #include "vec.h".
4067 (ui_filep): New type.
4068 (DEV_VEC_P (ui_filep)): New type.
4069 (struct ui_out_data) <buffer, original_buffer>: Delete.
4070 (struct ui_out_data) <streams>: New member.
4071 (mi_ui_out_impl): Add data_destroy field.
4072 (mi_field_string, mi_field_fmt): Update.
4073 (mi_flush, mi_redirect, field_separator): Update.
4074 (mi_open, mi_close): Update.
4075 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4076 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4077 (mi_out_new): Call mi_out_data_ctor.
4078
4079 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4080
4081 * remote.c (strprefix): New.
4082 (remote_parse_stop_reply): Use strprefix instead of strncmp
4083 to ensure exact match of keyword.
4084
4085 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4086
4087 * gdb_bfd.c (debug_bfd_cache): New variable.
4088 (show_bfd_cache_debug): New function.
4089 (gdb_bfd_open): Add debug logging.
4090 (gdb_bfd_ref): Likewise.
4091 (gdb_bfd_unref): Likewise.
4092 (_initialize_gdb_bfd): Add new set/show command.
4093 * NEWS: Mention new command.
4094
4095 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4096
4097 * gdb_bfd.c (bfd_sharing): New variable.
4098 (show_bfd_sharing): New function.
4099 (gdb_bfd_open): Check bfd_sharing variable.
4100 (_initialize_gdb_bfd): Add new set/show command.
4101 * NEWS: Mention new command.
4102
4103 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4106 field.
4107 (struct gdb_bfd_cache_search): Likewise.
4108 (eq_bfd): Compare the size, inode, and device id fields.
4109 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4110 (gdb_bfd_ref): Likewise.
4111 (gdb_bfd_unref): Likewise.
4112
4113 2015-08-18 Pedro Alves <palves@redhat.com>
4114
4115 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4116 target implements to_always_non_stop_p, call it.
4117 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4118 (x86_linux_create_target): Install it as to_always_non_stop_p
4119 method.
4120
4121 2015-08-17 Doug Evans <dje@google.com>
4122
4123 * ui-out.c (default_ui_out_impl): Add comment.
4124
4125 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4126
4127 * d-exp.y (type_aggregate_p): New function.
4128 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4129 (classify_inner_name): Likewise.
4130 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4131
4132 2015-08-15 Doug Evans <xdje42@gmail.com>
4133
4134 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4135 updated.
4136 (add_psymbol_to_list): Ditto.
4137
4138 2015-08-15 Doug Evans <xdje42@gmail.com>
4139
4140 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4141 updated. Call end_psymtab_common.
4142 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4143 end_psymtab_common.
4144 (build_type_psymtabs_reader): Ditto.
4145 * psympriv.h (sort_pst_symbols): Delete.
4146 (end_psymtab_common): Declare.
4147 * psymtab.c (sort_pst_symbols): Make static.
4148 (end_psymtab_common): New function.
4149 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4150
4151 2015-08-15 Doug Evans <xdje42@gmail.com>
4152
4153 * defs.h (LANGUAGE_BITS): Define.
4154 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4155 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4156 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4157 (minimal_symbol_type): Add nr_minsym_types.
4158 (MINSYM_TYPE_BITS): Define.
4159 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4160 (domain_enum_tag): Add NR_DOMAINS.
4161 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4162 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4163
4164 2015-08-15 Doug Evans <xdje42@gmail.com>
4165
4166 * objfiles.h: Whitespace cleanup.
4167 * psympriv.h: Whitespace cleanup.
4168 * psymtab.c: Whitespace/coding convention cleanup.
4169
4170 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4171
4172 * inferior.c (detach_inferior_command): Don't call
4173 any_thread_of_process when pid is 0.
4174 (kill_inferior_command): Likewise.
4175
4176 2015-08-14 Doug Evans <xdje42@gmail.com>
4177
4178 PR gdb/11833
4179 * NEWS: Document new /s modifier for the disassemble command.
4180 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4181 (_initialize_cli_cmds): Update online docs of disassemble command.
4182 * disasm.c: #include "source.h".
4183 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4184 All uses updated.
4185 (dis_line_entry): New struct.
4186 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4187 (allocate_dis_line_table): New functions.
4188 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4189 (dump_insns): New arg end_pc. All callers updated.
4190 (do_mixed_source_and_assembly_deprecated): Renamed from
4191 do_mixed_source_and_assembly. All callers updated.
4192 (do_mixed_source_and_assembly): New function.
4193 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4194 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4195 DISASSEMBLY_SOURCE. All uses updated.
4196 (DISASSEMBLY_SOURCE): New macro.
4197 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4198
4199 2015-08-14 Keith Seitz <keiths@redhat.com>
4200
4201 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4202 `typename' to `type_name' to avoid C++ reserved word.
4203
4204 2015-08-14 Keith Seitz <keiths@redhat.com>
4205
4206 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4207 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4208 silence ARI errors.
4209
4210 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4211
4212 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4213 xstrprintf instead of malloc and sprintf.
4214 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4215 (lex_one_token): Likewise.
4216
4217 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4218
4219 * solib-svr4.c (read_program_header): Add base_addr argument to
4220 report the runtime address of the segment.
4221 (find_program_interpreter): Update read_program_header call to pass
4222 a NULL pointer for the new argument.
4223 (scan_dyntag): Add ptr_addr argument to report the runtime address
4224 of the tag payload.
4225 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4226 read_program_header to get the base address of the dynamic segment.
4227 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4228 read_program_header.
4229 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4230
4231 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4232
4233 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4234
4235 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4236
4237 * d-exp.y (%union): Add voidval.
4238 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4239 name in the lexing stage.
4240 (PostfixExpression): Move symbol completion handling in grammar here
4241 from PrimaryExpression.
4242 (PrimaryExpression): Move routines to handle resolving identifier
4243 tokens in the grammar here from push_expression_name.
4244 (IdentifierExp): Remove the handling of alternating '.' and identifier
4245 tokens.
4246 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4247 (BasicType): Remove C-style typename rules.
4248 (d_type_from_name, d_module_from_name, push_variable)
4249 (push_fieldnames, push_type_name, push_module_name)
4250 (push_expression_name): Remove.
4251 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4252 (token_and_value): New type.
4253 (token_fifo, popping, name_obstack): New globals.
4254 (classify_name): New function.
4255 (classify_inner_name): Likewise.
4256 (yylex): Likewise.
4257 (d_parse): Initialize token_fifo, popping and name_obstack.
4258
4259 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4260
4261 * Makefile.in (SFILES): Add d-namespace.c.
4262 (COMMON_OBS): Add d-namespace.o.
4263 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4264 la_lookup_symbol_nonlocal callback function pointer.
4265 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4266 (d_lookup_nested_symbol): New declaration.
4267 * d-namespace.c: New file.
4268
4269 2015-08-13 Pedro Alves <palves@redhat.com>
4270
4271 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4272 cleanup after the decref cleanup, not before.
4273
4274 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4275
4276 * ada-lang.c: Include namespace.h
4277 (aux_add_nonlocal_symbols): Fix a function name in comment.
4278 (ada_add_block_renamings): New.
4279 (add_nonlocal_symbols): Add global renamings handling.
4280 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4281 to...
4282 (ada_add_all_symbols): ... this new function.
4283 (ada_add_block_symbols): Try to match the input name against the
4284 "using directives list", perform a recursive symbol lookup on
4285 the matched declarations.
4286 * block.h (struct block): Move the_namespace to top-level as
4287 namespace_info. Remove the language_specific field.
4288 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4289 * buildsym.h (using_directives): Rename into...
4290 (local_using_directives): ... this.
4291 (global_using_directives): New.
4292 (struct context_stack): Rename the using_directives field into
4293 local_using_directives.
4294 * buildsym.c (finish_block_internal): Deal with the proper
4295 using directives repository (local or global).
4296 (prepare_for_building): Reset local_using_directives. Assert
4297 that there is no pending global using directive.
4298 (reset_symtab_globals): Reset global_using_directives and
4299 local_using_directives.
4300 (end_symtab_get_static_block): Don't ignore symtabs that have
4301 only using directives.
4302 (push_context): Update references to local_using_directives.
4303 (buildsym_init): Do not reset using_directives.
4304 * cp-support.c: Include namespace.h.
4305 * cp-support.h (struct using_direct): Move to namespace.h.
4306 (cp_add_using_directives): Move to namespace.h.
4307 * cp-namespace.c: Include namespace.h
4308 (cp_add_using_directive): Move to namespace.c, rename it to
4309 add_using_directive, add a "using_directives" argument and use
4310 it as the pending using directives repository. All callers
4311 updated.
4312 * dwarf2read.c (using_directives): New.
4313 (read_import_statement): Call using_directives.
4314 (read_func_scope): Update references to local_using_directives.
4315 (read_lexical_block_scope): Likewise.
4316 (read_namespace): Update the heading comment, call
4317 using_directives.
4318 * namespace.h: New file.
4319 * namespace.c: New file.
4320 * Makefile.in (SFILES): Add namespace.c.
4321 (COMMON_OBS): Add namespace.o
4322
4323 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4324
4325 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4326 compute RETADDR.
4327
4328 2015-08-12 Keith Seitz <keiths@redhat.com>
4329
4330 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4331 reserved C++ keyword "explicit" to "explicit_loc".
4332 * breakpoint.c (create_overlay_event_breakpoint)
4333 (create_longjmp_master_breakpoint)
4334 (create_std_terminate_master_breakpoint)
4335 (create_exception_master_breakpoint, update_static_tracepoint):
4336 Rename reserved C++ keyword "explicit" to "explicit_loc".
4337 * completer.c (collect_explicit_location_matches)
4338 (explicit_location_completer): Rename reserved C++ keyword
4339 "explicit" to "explicit_loc".
4340 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4341 (canonicalize_linespec, create_sals_line_offset)
4342 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4343 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4344 "explicit" to "explicit_loc".
4345 * location.c (struct event_location) <explicit>: Rename to
4346 "explicit_loc".
4347 (initialize_explicit_location, new_explicit_location)
4348 (explicit_location_to_string_internal, explicit_location_to_linespec):
4349 Rename reserved C++ keyword "explicit" to "explicit_loc".
4350 * location.h (explicit_location_to_string)
4351 (explicit_location_to_linespec, initialize_explicit_location)
4352 (new_explicit_location): Rename reserved C++ keyword "explicit"
4353 to "explicit_loc".
4354 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4355 keyword "explicit" to "explicit_loc".
4356
4357 2015-08-12 Keith Seitz <keiths@redhat.com>
4358
4359 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4360 and only call decode_line_1 when it is non-NULL.
4361
4362 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4363
4364 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4365 location address is not meaningful.
4366 (breakpoint_address_is_meaningful): Update comment.
4367
4368 2015-08-11 Keith Seitz <keiths@redhat.com>
4369
4370 * NEWS: Mention explicit locations.
4371 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4372 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4373 (_initialize_breakpoint): Update documentation for
4374 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4375
4376 2015-08-11 Keith Seitz <keiths@redhat.com>
4377
4378 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4379 explicit locations, options "--source", "--function",
4380 "--label", and "--line".
4381
4382 2015-08-11 Keith Seitz <keiths@redhat.com>
4383
4384 * completer.c: Include location.h.
4385 (enum match_type): New enum.
4386 (location_completer): Rename to ...
4387 (linespec_completer): ... this.
4388 (collect_explicit_location_matches, backup_text_ptr)
4389 (explicit_location_completer): New functions.
4390 (location_completer): "New" function; handle linespec
4391 and explicit location completions.
4392 (complete_line_internal): Remove all location completer-specific
4393 handling.
4394 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4395 (find_toplevel_char): Export.
4396 (linespec_parse_line_offset): Export.
4397 Issue error if STRING is not numerical.
4398 (gdb_get_linespec_parser_quote_characters): New function.
4399 * linespec.h (linespec_parse_line_offset): Declare.
4400 (get_gdb_linespec_parser_quote_characters): Declare.
4401 (is_ada_operator): Declare.
4402 (find_toplevel_char): Declare.
4403 (linespec_lexer_lex_keyword): Declare.
4404 * location.c (explicit_to_event_location): New function.
4405 (explicit_location_lex_one): New function.
4406 (string_to_explicit_location): New function.
4407 (string_to_event_location): Handle explicit locations.
4408 * location.h (explicit_to_event_location): Declare.
4409 (string_to_explicit_location): Declare.
4410
4411 2015-08-11 Keith Seitz <keiths@redhat.com>
4412
4413 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4414 linespec into explicit location.
4415 * breakpoint.c (create_overlay_breakpoint)
4416 (create_longjmp_master_breakpoint)
4417 (create_std_terminate_master_breakpoint)
4418 (create_exception_master_breakpoint): Convert linespec into explicit
4419 location.
4420 (update_static_tracepoint): Convert linespec into explicit location.
4421 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4422 location.h.
4423 (struct linespec) <expression, expr_pc, source_filename>
4424 <function_name, label_name, line_offset>: Replace with ...
4425 <explicit>: ... this.
4426 <is_linespec>: New member.
4427 (PARSER_EXPLICIT): New accessor macro.
4428 (undefined_label_error): New function.
4429 (source_file_not_found_error): New function.
4430 (linespec_parse_basic): The parser result is now an explicit location.
4431 Use PARSER_EXPLICIT to access it.
4432 Use undefined_label_error.
4433 (canonicalize_linespec): Convert canonical linespec into explicit
4434 location.
4435 Move string representation of location to explicit_location_to_linespec
4436 and use it and explicit_location_to_string to save string
4437 representations of the canonical location.
4438 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4439 explicit location. Update all references.
4440 (convert_explicit_location_to_sals): New function.
4441 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4442 result's explicit location.
4443 (linespec_state_constructor): Initialize is_linespec.
4444 Use PARSER_EXPLICIT.
4445 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4446 result.
4447 (event_location_to_sals): For linespec locations, set is_linespec.
4448 Handle explicit locations.
4449 (decode_objc): 'ls' contains an explicit location now. Update all
4450 references.
4451 (symtabs_from_filename): Use source_file_not_found_error.
4452 * location.c (struct event_location.u) <explicit>: New member.
4453 (initialize_explicit_location): New function.
4454 (initialize_event_location): Initialize explicit locations.
4455 (new_explicit_location, get_explicit_location)
4456 (get_explicit_location_const): New functions.
4457 (explicit_to_string_internal): New function; most of contents moved
4458 from canonicalize_linespec.
4459 (explicit_location_to_string): New function.
4460 (explicit_location_to_linespec): New function.
4461 (copy_event_location, delete_event_location)
4462 (event_location_to_string_const, event_location_empty_p): Handle
4463 explicit locations.
4464 * location.h (enum offset_relative_sign, struct line_offset): Move
4465 here from linespec.h.
4466 (enum event_location_type): Add EXPLICIT_LOCATION.
4467 (struct explicit_location): New structure.
4468 (explicit_location_to_string): Declare.
4469 (explicit_location_to_linespec): Declare.
4470 (new_explicit_location, get_explicit_locationp
4471 (get_explicit_location_const, initialize_explicit_location): Declare.
4472
4473 2015-08-11 Keith Seitz <keiths@redhat.com>
4474
4475 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4476 linespec for stap probe to probe location.
4477 * breakpoint.c (create_longjmp_master_breakpoint)
4478 (create_exception_master_breakpoint): Likewise.
4479 (break_command_1): Remove local variable `arg_cp'.
4480 Check location type to set appropriate breakpoint ops methods.
4481 (trace_command): Likewise.
4482 * linespec.c (event_location_to_sals): Assert on probe locations.
4483 * location.c (EL_PROBE): Add macro definition.
4484 (new_probe_location, get_probe_location): New functions.
4485 (copy_event_location, delete_event_location, event_location_to_string)
4486 (string_to_event_location, event_location_empty_p): Handle probe
4487 locations.
4488 * location.h (enum event_location_type): Add PROBE_LOCATION.
4489 (new_probe_location, get_probe_location): Declare.
4490 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4491 Convert linespec into probe location.
4492
4493 2015-08-11 Keith Seitz <keiths@redhat.com>
4494
4495 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4496 Convert linespec to address location.
4497 * linespec.c (canonicalize_linespec): Do not handle address
4498 locations here.
4499 (convert_address_location_to_sals): New function; contents moved
4500 from ...
4501 (convert_linespc_to_sals): ... here.
4502 (parse_linespec): Remove address locations from linespec grammar.
4503 Remove handling of address locations.
4504 (linespec_lex_to_end): Remove handling of address linespecs.
4505 (event_location_to_sals): Handle ADDRESS_LOCATION.
4506 (linespec_expression_to_pc): Export.
4507 * linespec.h (linespec_expression_to_pc): Add declaration.
4508 * location.c (struct event_location.u) <address>: New member.
4509 (new_address_location, get_address_location): New functions.
4510 (copy_event_location, delete_event_location, event_location_to_string)
4511 (string_to_event_location, event_location_empty_p): Handle address
4512 locations.
4513 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4514 (new_address_location, get_address_location): Declare.
4515 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4516 to address location.
4517 * spu-tdep.c (spu_catch_start): Likewise.
4518
4519 2015-08-11 Keith Seitz <keiths@redhat.com>
4520
4521 * ax-gdb.c: Include location.h.
4522 (agent_command_1) Use linespec location instead of address
4523 string.
4524 * break-catch-throw.c: Include location.h.
4525 (re_set_exception_catchpoint): Use linespec locations instead
4526 of address strings.
4527 * breakpoint.c: Include location.h.
4528 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4529 (create_std_terminate_master_breakpoint)
4530 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4531 Use linespec location instead of address string.
4532 (print_breakpoint_location): Use locations and
4533 event_location_to_string.
4534 Print extra_string for pending locations for non-MI streams.
4535 (print_one_breakpoint_location): Use locations and
4536 event_location_to_string.
4537 (init_raw_breakpoint_without_location): Initialize b->location.
4538 (create_thread_event_breakpoint): Use linespec location instead of
4539 address string.
4540 (init_breakpoint_sal): Likewise.
4541 Only save extra_string if it is non-NULL and not the empty string.
4542 Use event_location_to_string instead of `addr_string'.
4543 Constify `p' and `endp'.
4544 Use skip_spaces_const/skip_space_const instead of non-const versions.
4545 Copy the location into the breakpoint.
4546 If LOCATION is NULL, save the breakpoint address as a linespec location
4547 instead of an address string.
4548 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4549 event_location. All uses updated.
4550 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4551 (parse_breakpoint_sals): Use locations instead of address strings.
4552 Remove check for empty linespec with conditional.
4553 Refactor.
4554 (decode_static_tracepoint_spec): Make argument const and update
4555 function.
4556 (create_breakpoint): Change `arg' to a struct event_location and
4557 rename.
4558 Remove `copy_arg' and `addr_start'.
4559 If EXTRA_STRING is empty, set it to NULL.
4560 Don't populate `canonical' for pending breakpoints.
4561 Pass `extra_string' to find_condition_and_thread.
4562 Clear `extra_string' if `rest' was NULL.
4563 Do not error with "garbage after location" if setting a dprintf
4564 breakpoint.
4565 Copy the location into the breakpoint instead of an address string.
4566 (break_command_1): Use string_to_event_location and pass this to
4567 create_breakpoint instead of an address string.
4568 Check against `arg_cp' for a probe linespec.
4569 (dprintf_command): Use string_to_event_location and pass this to
4570 create_breakpoint instead of an address string.
4571 Throw an exception if no format string was specified.
4572 (print_recreate_ranged_breakpoint): Use event_location_to_string
4573 instead of address strings.
4574 (break_range_command, until_break_command)
4575 (init_ada_exception_breakpoint): Use locations instead
4576 of address strings.
4577 (say_where): Print out extra_string for pending locations.
4578 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4579 the breakpoint.
4580 (base_breakpoint_create_sals_from_location): Use struct event_location
4581 instead of address string.
4582 Remove `addr_start' and `copy_arg' parameters.
4583 (base_breakpoint_decode_location): Use struct event_location instead of
4584 address string.
4585 (bkpt_re_set): Use locations instead of address strings.
4586 Use event_location_empty_p to check for unset location.
4587 (bkpt_print_recreate): Use event_location_to_string instead of
4588 an address string.
4589 Print out extra_string for pending locations.
4590 (bkpt_create_sals_from_location, bkpt_decode_location)
4591 (bkpt_probe_create_sals_from_location): Use struct event_location
4592 instead of address string.
4593 (bkpt_probe_decode_location): Use struct event_location instead of
4594 address string.
4595 (tracepoint_print_recreate): Use event_location_to_string to
4596 recreate the tracepoint.
4597 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4598 (tracepoint_probe_create_sals_from_location)
4599 (tracepoint_probe_decode_location): Use struct event_location
4600 instead of address string.
4601 (dprintf_print_recreate): Use event_location_to_string to recreate
4602 the dprintf.
4603 (dprintf_re_set): Remove check for valid/missing format string.
4604 (strace_marker_create_sals_from_location)
4605 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4606 (update_static_tracepoint): Use struct event_location instead of
4607 address string.
4608 (location_to_sals): Likewise.
4609 Pass `extra_string' to find_condition_and_thread.
4610 For newly resolved pending breakpoint locations, clear the location's
4611 string representation.
4612 Assert that the breakpoint's condition string is NULL when
4613 condition_not_parsed.
4614 (breakpoint_re_set_default, create_sals_from_location_default)
4615 (decode_location_default, trace_command, ftrace_command)
4616 (strace_command, create_tracepoint_from_upload): Use locations
4617 instead of address strings.
4618 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4619 Use struct event_location instead of address string.
4620 Update all uses.
4621 <decode_location>: Likewise.
4622 (struct breakpoint) <addr_string>: Change to struct event_location
4623 and rename `location'.
4624 <addr_string_range_end>: Change to struct event_location and rename
4625 `location_range_end'.
4626 (create_breakpoint): Use struct event_location instead of address
4627 string.
4628 * cli/cli-cmds.c: Include location.h.
4629 (edit_command, list_command): Use locations instead of address strings.
4630 * elfread.c: Include location.h.
4631 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4632 * guile/scm-breakpoint.c: Include location.h.
4633 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4634 (gdbscm_register_breakpoint): Use locations instead of address
4635 strings.
4636 * linespec.c: Include location.h.
4637 (struct ls_parser) <stream>: Change to const char *.
4638 (PARSER_STREAM): Update.
4639 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4640 keywords must be followed by whitespace.
4641 (canonicalize_linespec): Save a linespec location into `canonical'.
4642 Save a canonical linespec into `canonical'.
4643 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4644 All uses updated.
4645 Update function description.
4646 (linespec_parser_new): Initialize `parser'.
4647 Update initialization of parsing stream.
4648 (event_location_to_sals): New function.
4649 (decode_line_full): Change `argptr' to a struct event_location and
4650 rename it `location'.
4651 Use locations instead of address strings.
4652 Call event_location_to_sals instead of parse_linespec.
4653 (decode_line_1): Likewise.
4654 (decode_line_with_current_source, decode_line_with_last_displayed)
4655 Use locations instead of address strings.
4656 (decode_objc): Likewise.
4657 Change `argptr' to const char * and rename `arg'.
4658 (destroy_linespec_result): Delete the linespec result's location
4659 instead of freeing the address string.
4660 * linespec.h (struct linespec_result) <addr_string>: Change to
4661 struct event_location and rename to ...
4662 <location>: ... this.
4663 (decode_line_1, decode_line_full): Change `argptr' to struct
4664 event_location. All callers updated.
4665 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4666 (mi_cmd_break_insert_1): Use locations instead of address strings.
4667 Throw an error if there was "garbage" at the end of the specified
4668 linespec.
4669 * probe.c: Include location.h.
4670 (parse_probes): Change `argptr' to struct event_location.
4671 Use event locations instead of address strings.
4672 * probe.h (parse_probes): Change `argptr' to struct event_location.
4673 * python/py-breakpoint.c: Include location.h.
4674 (bppy_get_location): Constify local variable `str'.
4675 Use event_location_to_string.
4676 (bppy_init): Use locations instead of address strings.
4677 * python/py-finishbreakpoint.c: Include location.h.
4678 (bpfinishpy_init): Remove local variable `addr_str'.
4679 Use locations instead of address strings.
4680 * python/python.c: Include location.h.
4681 (gdbpy_decode_line): Use locations instead of address strings.
4682 * remote.c: Include location.h.
4683 (remote_download_tracepoint): Use locations instead of address
4684 strings.
4685 * spu-tdep.c: Include location.h.
4686 (spu_catch_start): Remove local variable `buf'.
4687 Use locations instead of address strings.
4688 * tracepoint.c: Include location.h.
4689 (scope_info): Use locations instead of address strings.
4690 (encode_source_string): Constify parameter `src'.
4691 * tracepoint.h (encode_source_string): Likewise.
4692
4693 2015-08-11 Keith Seitz <keiths@redhat.com>
4694
4695 * Makefile.in (SFILES): Add location.c.
4696 (HFILES_NO_SRCDIR): Add location.h.
4697 (COMMON_OBS): Add location.o.
4698 * linespec.c (linespec_lex_to_end): New function.
4699 * linespec.h (linespec_lex_to_end): Declare.
4700 * location.c: New file.
4701 * location.h: New file.
4702
4703 2015-08-11 Keith Seitz <keiths@redhat.com>
4704
4705 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4706 Renamed to create_sals_from_location.
4707 <decode_linespec>: Renamed to decode_location.
4708 Update all callers.
4709 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4710 (create_sals_from_location_default): ... this.
4711 (addr_string_to_sals): Renamed to ...
4712 (location_to_sals): ... this.
4713 (decode_linespec_default): Renamed to ...
4714 (decode_location_default): ... this.
4715 (base_breakpoint_create_sals_from_address): Renamed to ...
4716 (base_breakpoint_create_sals_from_location): ... this.
4717 (bkpt_create_sals_from_address): Renamed to ...
4718 (bkpt_create_sals_from_location): ... this.
4719 (bkpt_decode_linespec): Renamed to ...
4720 (bkpt_decode_location): ... this.
4721 (bkpt_probe_create_sals_from_address): Renamed to ...
4722 (bkpt_probe_create_sals_from_location): ... this.
4723 (tracepoint_create_sals_from_address): Renamed to ...
4724 (tracepoint_create_sals_from_location): ... this.
4725 (tracepoint_decode_linespec): Renamed to ...
4726 (tracepoint_decode_location): ... this.
4727 (tracepoint_probe_create_sals_from_address): Renamed to ...
4728 (tracepoint_probe_create_sals_from_location): ... this.
4729 (tracepoint_probe_decode_linespec): Renamed to ...
4730 (tracepoint_probe_decode_location): ... this.
4731 (strace_marker_create_sals_from_address): Renamed to ...
4732 (strace_marker_create_sals_from_location): ... this.
4733 (decode_linespec_default): Renamed to ...
4734 (decode_location_default): ... this.
4735
4736 2015-08-10 Doug Evans <dje@google.com>
4737 Keith Seitz <keiths@redhat.com>
4738
4739 PR gdb/17960
4740 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4741 make_file_symbol_completion_list and made static.
4742 (make_file_symbol_completion_list): New function.
4743
4744 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4745
4746 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4747 trailing new-line at end of warning message.
4748 (proceed): Add i18n marker to error messages.
4749
4750 2015-08-07 Pedro Alves <palves@redhat.com>
4751
4752 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4753
4754 2015-08-07 Pedro Alves <palves@redhat.com>
4755
4756 * s390-linux-tdep.c (is_non_branch_ril)
4757 (s390_displaced_step_copy_insn): New functions.
4758 (s390_displaced_step_fixup): Update comment.
4759 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4760 gdbarch_displaced_step_copy_insn hook.
4761
4762 2015-08-07 Pedro Alves <palves@redhat.com>
4763
4764 * infrun.c (displaced_step_prepare_throw): Return -1 if
4765 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4766 comment.
4767 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4768 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4769 in file.
4770 (ppc_displaced_step_copy_insn): New function.
4771 (ppc_displaced_step_fixup): Update comment.
4772 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4773 gdbarch_displaced_step_copy_insn hook.
4774 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4775 NULL return.
4776 * gdbarch.h: Regenerate.
4777
4778 2015-08-07 Pedro Alves <palves@redhat.com>
4779
4780 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4781 field.
4782 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4783 Return false if dispaced stepping failed before.
4784 (resume): Pass the current inferior to
4785 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4786 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4787 displaced_stepping_failed flag, and fall back to an in-line
4788 step-over.
4789
4790 2015-08-07 Pedro Alves <palves@redhat.com>
4791
4792 * darwin-nat.c (darwin_stop): Rename to ...
4793 (darwin_interrupt): ... this.
4794 (_initialize_darwin_inferior): Adjust.
4795 * gnu-nat.c (gnu_stop): Delete.
4796 (gnu_target): Don't install gnu_stop.
4797 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4798 (inf_ptrace_interrupt): ... this.
4799 (inf_ptrace_target): Adjust.
4800 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4801 target_stop.
4802 * linux-nat (linux_nat_stop): Rename to ...
4803 (linux_nat_interrupt): ... this.
4804 (linux_nat_stop): Reimplement.
4805 (linux_nat_add_target): Install linux_nat_interrupt.
4806 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4807 (nto_handle_sigint_twice): ... this.
4808 (nto_interrupt): Rename to ...
4809 (nto_handle_sigint): ... this. Call target_interrupt instead of
4810 target_stop.
4811 (procfs_wait): Adjust.
4812 (procfs_stop): Rename to ...
4813 (procfs_interrupt): ... this.
4814 (init_procfs_targets): Adjust.
4815 * procfs.c (procfs_stop): Rename to ...
4816 (procfs_interrupt): ... this.
4817 (procfs_target): Adjust.
4818 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4819 (m32r_interrupt): ... this.
4820 (init_m32r_ops): Adjust.
4821 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4822 (gdbsim_interrupt_inferior): ... this.
4823 (gdbsim_stop): Rename to ...
4824 (gdbsim_interrupt): ... this.
4825 (gdbsim_cntrl_c): Adjust.
4826 (init_gdbsim_ops): Adjust.
4827 * remote.c (sync_remote_interrupt): Adjust comments.
4828 (remote_stop_as): Rename to ...
4829 (remote_interrupt_as): ... this.
4830 (remote_stop): Adjust comment.
4831 (remote_interrupt): New function.
4832 (init_remote_ops): Install remote_interrupt.
4833 * target.c (target_interrupt): New function.
4834 * target.h (struct target_ops) <to_interrupt>: New field.
4835 (target_interrupt): New declaration.
4836 * windows-nat.c (windows_stop): Rename to ...
4837 (windows_interrupt): ... this.
4838 * target-delegates.c: Regenerate.
4839
4840 2015-08-07 Pedro Alves <palves@redhat.com>
4841
4842 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4843 threads" as alternative to "switching back to stepped thread".
4844
4845 2015-08-07 Pedro Alves <palves@redhat.com>
4846
4847 * NEWS: Mention "maint set/show target-non-stop".
4848 * breakpoint.c (update_global_location_list): Check
4849 target_is_non_stop_p instead of non_stop.
4850 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4851 * infrun.c (show_can_use_displaced_stepping)
4852 (can_use_displaced_stepping_p, start_step_over_inferior):
4853 Likewise.
4854 (internal_resume_ptid): New function.
4855 (resume): Use it.
4856 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4857 all-stop mode but the target is always in non-stop mode, start all
4858 the other threads that are implicitly resumed too.
4859 (for_each_just_stopped_thread, fetch_inferior_event)
4860 (adjust_pc_after_break, stop_all_threads): Check
4861 target_is_non_stop_p instead of non_stop.
4862 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4863 with the target always in non-stop mode.
4864 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4865 instead of non_stop.
4866 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4867 instead of non_stop.
4868 (keep_going_stepped_thread): Use internal_resume_ptid.
4869 (stop_waiting): If in all-stop mode, and the target is in non-stop
4870 mode, stop all threads.
4871 (keep_going_pass): Likewise, when starting a new in-line step-over
4872 sequence.
4873 * linux-nat.c (get_pending_status, select_event_lwp)
4874 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4875 target_is_non_stop_p instead of non_stop.
4876 (linux_nat_always_non_stop_p): New function.
4877 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4878 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4879 * target-delegates.c: Regenerate.
4880 * target.c (target_is_non_stop_p): New function.
4881 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4882 (maint_set_target_non_stop_command)
4883 (maint_show_target_non_stop_command): New functions.
4884 (_initilize_target): Install "maint set/show target-non-stop"
4885 commands.
4886 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4887 (target_non_stop_enabled): New declaration.
4888 (target_is_non_stop_p): New declaration.
4889
4890 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4891
4892 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4893 has a pending status, return true.
4894 * gdbthread.h: Include target/waitstatus.h.
4895 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4896 stop_pc>: New fields.
4897 (struct thread_info) <resumed>: New field.
4898 (set_resumed): Declare.
4899 * infrun.c: Include "event-loop.h".
4900 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4901 (infrun_async): New function.
4902 (clear_step_over_info): Add debug output.
4903 (displaced_step_in_progress_any_inferior): New function.
4904 (displaced_step_fixup): New returns int.
4905 (start_step_over): Handle in-line step-overs too. Assert the
4906 thread is marked resumed.
4907 (resume_cleanups): Clear the thread's resumed flag.
4908 (resume): Set the thread's resumed flag. Return early if the
4909 thread has a pending status. Allow stepping a breakpoint with no
4910 signal.
4911 (proceed): Adjust to check 'resumed' instead of 'executing'.
4912 (clear_proceed_status_thread): If the thread has a pending status,
4913 and that status is a finished step, discard the pending status.
4914 (clear_proceed_status): Don't clear step_over_info here.
4915 (random_pending_event_thread, do_target_wait): New functions.
4916 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4917 do_target_wait.
4918 (wait_one): New function.
4919 (THREAD_STOPPED_BY): New macro.
4920 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4921 (thread_stopped_by_hw_breakpoint): New functions.
4922 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4923 functions.
4924 (handle_inferior_event): Also call set_resumed(false) on all
4925 threads implicitly stopped by the event.
4926 (restart_threads, resumed_thread_with_pending_status): New
4927 functions.
4928 (finish_step_over): If we were doing an in-line step-over before,
4929 and no longer are after trying to start a new step-over, restart
4930 all threads. If we have multiple threads with pending events,
4931 save the current event and go through the event loop again.
4932 (handle_signal_stop): Return early if finish_step_over returns
4933 false.
4934 <random signal>: If we get a signal while stepping over a
4935 breakpoint in-line in non-stop mode, restart all threads. Clear
4936 step_over_info before delivering the signal.
4937 (keep_going_stepped_thread): Use internal_error instead of
4938 gdb_assert. Mark the thread as resumed.
4939 (keep_going_pass_signal): Assert the thread isn't already resumed.
4940 If some other thread is doing an in-line step-over, defer the
4941 resume. If we just started a new in-line step-over, stop all
4942 threads. Don't clear step_over_info.
4943 (infrun_async_inferior_event_handler): New function.
4944 (_initialize_infrun): Create async event handler with
4945 infrun_async_inferior_event_handler as callback.
4946 (infrun_async): New declaration.
4947 * target.c (target_async): New function.
4948 * target.h (target_async): Declare macro and readd as function
4949 declaration.
4950 * target/waitstatus.h (enum target_stop_reason)
4951 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4952 * thread.c (new_thread): Clear the new waitstatus field.
4953 (set_resumed): New function.
4954
4955 2015-08-07 Pedro Alves <palves@redhat.com>
4956
4957 * infrun.c (keep_going_stepped_thread): New function, factored out
4958 from ...
4959 (switch_back_to_stepped_thread): ... here.
4960
4961 2015-08-07 Pedro Alves <palves@redhat.com>
4962
4963 * infrun.c (currently_stepping): Extend intro comment.
4964 * target.h (target_resume): Extend intro comment.
4965
4966 2015-08-07 Pedro Alves <palves@redhat.com>
4967
4968 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4969 of inferior_ptid. If the stepped thread vanished, return 0
4970 instead of resuming here. Use reset_ecs. Print the prev_pc and
4971 the current stop_pc in log message. Clear trap_expected if the
4972 thread advanced. Don't pass currently_stepping to
4973 do_target_resume.
4974
4975 2015-08-07 Pedro Alves <palves@redhat.com>
4976
4977 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4978 * infrun.c (struct execution_control_state): Move higher up in the
4979 file.
4980 (reset_ecs): New function.
4981 (start_step_over): Now returns int. Rewrite to use
4982 keep_going_pass_signal instead of manually starting a displaced step.
4983 (resume): Don't call set_running here. If displaced stepping
4984 can't start now, clear trap_expected.
4985 (find_thread_needs_step_over): Delete function.
4986 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4987 If the current thread needs a step over, push it in the step-over
4988 chain. Don't set insert breakpoints nor call resume directly
4989 here. Instead rewrite to use start_step_over and
4990 keep_going_pass_signal.
4991 (finish_step_over): New function.
4992 (handle_signal_stop): Call finish_step_over instead of
4993 start_step_over.
4994 (switch_back_to_stepped_thread): If the event thread needs another
4995 step-over do that first. Use start_step_over.
4996 (keep_going_pass_signal): New function, factored out from ...
4997 (keep_going): ... here.
4998 (_initialize_infrun): Comment moved here.
4999 * thread.c (set_running_thread): New function.
5000 (set_running, finish_thread_state): Use set_running_thread.
5001
5002 2015-08-07 Pedro Alves <palves@redhat.com>
5003
5004 * gdbthread.h (struct thread_info) <step_over_prev,
5005 step_over_next>: New fields.
5006 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5007 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5008 declarations.
5009 * infrun.c (struct displaced_step_request): Delete.
5010 (struct displaced_step_inferior_state) <step_request_queue>:
5011 Delete field.
5012 (displaced_step_prepare): Assert that trap_expected is set. Use
5013 thread_step_over_chain_enqueue. Split starting a new displaced
5014 step to ...
5015 (start_step_over): ... this new function.
5016 (resume): Assert the thread isn't waiting for a step over already.
5017 (proceed): Assert the thread isn't waiting for a step over
5018 already.
5019 (infrun_thread_stop_requested): Adjust to remove threads from the
5020 embedded step-over chain.
5021 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5022 displaced_step_fixup.
5023 (handle_signal_stop): Call start_step_over after
5024 displaced_step_fixup.
5025 * infrun.h (step_over_queue_head): New declaration.
5026 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5027 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5028 (thread_step_over_chain_enqueue)
5029 (thread_step_over_chain_remove): New functions.
5030 (delete_thread_1): Remove thread from the step-over chain.
5031
5032 2015-08-07 Pedro Alves <palves@redhat.com>
5033
5034 * infrun.c (thread_still_needs_step_over): Rename to ...
5035 (thread_still_needs_step_over_bp): ... this.
5036 (enum step_over_what): New.
5037 (thread_still_needs_step_over): Reimplement.
5038
5039 2015-08-07 Pedro Alves <palves@redhat.com>
5040
5041 * remote.c (remote_wait_as): If not waiting for a stop reply,
5042 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5043 requested, don't block waiting forever.
5044
5045 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5046
5047 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5048 waitstatus pointers instead of an ecs. Adjust.
5049 (handle_inferior_event): Adjust caller.
5050
5051 2015-08-07 Pedro Alves <palves@redhat.com>
5052
5053 * infrun.c (handle_inferior_event): If we get
5054 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5055 mode, mark all threads of the exiting process as not-executing.
5056 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5057 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5058 exiting process, if inferior_ptid still points at a process.
5059 * thread.c (struct current_thread_cleanup) <next>: New field.
5060 (current_thread_cleanup_chain): New global.
5061 (restore_current_thread_ptid_changed): New function.
5062 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5063 current_thread_cleanup_chain list.
5064 (make_cleanup_restore_current_thread): Add the cleanup data to the
5065 current_thread_cleanup_chain list.
5066 (_initialize_thread): Install restore_current_thread_ptid_changed
5067 as thread_ptid_changed observer.
5068
5069 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5070
5071 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5072 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5073 smaller than expected.
5074
5075 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5076
5077 * stack.c (get_frame_language): Moved ...
5078 * frame.c (get_frame_language): ... to here.
5079 * language.h (get_frame_language): Declaration moved to frame.h.
5080 * frame.h: Add language.h include, for language enum.
5081 (get_frame_language): Declaration moved from language.h.
5082 * language.c: Add frame.h include.
5083 * top.c: Add frame.h include.
5084 * symtab.h (struct obj_section): Declare.
5085 (struct cmd_list_element): Declare.
5086
5087 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5088
5089 * language.c (show_language_command): Find selected frame before
5090 asking for the language of that frame.
5091 (set_language_command): Likewise.
5092 * language.h (get_frame_language): Add frame parameter.
5093 * stack.c (get_frame_language): Add frame parameter, assert
5094 parameter is not NULL, update comment and reindent.
5095 * top.c (check_frame_language_change): Pass the selected frame
5096 into get_frame_language.
5097
5098 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5099
5100 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5101 (pt_btrace_insn_flags): New.
5102 (ftrace_add_pt): Call pt_btrace_insn_flags.
5103 * btrace.h (btrace_insn_flag): New.
5104 (btrace_insn) <flags>: New.
5105 * record-btrace.c (btrace_insn_history): Print insn prefix.
5106 * NEWS: Announce it.
5107
5108 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5109
5110 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5111 * configure: Regenerate.
5112
5113 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5114
5115 * Makefile.in (LIBICONV): Define.
5116 (CLIBS): Add LIBICONV.
5117 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5118 * configure: Regenerate.
5119
5120 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5121 Pedro Alves <palves@redhat.com>
5122
5123 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5124 (arm_set_abi): Likewise.
5125 * ax-general.c (ax_print): Likewise.
5126 * c-exp.y (exp : string_exp): Likewise.
5127 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5128 (do_compile_dwarf_expr_to_c): Likewise.
5129 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5130 Likewise.
5131 * dwarf2expr.c (execute_stack_op): Likewise.
5132 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5133 (disassemble_dwarf_expression): Likewise.
5134 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5135 (read_array_order): Likewise.
5136 (abbrev_table_read_table): Likewise.
5137 (read_attribute_value): Likewise.
5138 (skip_unknown_opcode): Likewise.
5139 (dwarf_decode_macro_bytes): Likewise.
5140 (dwarf_decode_macros): Likewise.
5141 * eval.c (value_f90_subarray): Likewise.
5142 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5143 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5144 * infrun.c (handle_command): Likewise.
5145 * memory-map.c (memory_map_start_memory): Likewise.
5146 * osabi.c (set_osabi): Likewise.
5147 * parse.c (operator_length_standard): Likewise.
5148 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5149 single return point.
5150 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5151 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5152 (gdbpy_lookup_global_symbol): Likewise.
5153 * record-full.c (record_full_restore): Likewise.
5154 * regcache.c (regcache_register_status): Likewise.
5155 (regcache_raw_read): Likewise.
5156 (regcache_cooked_read): Likewise.
5157 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5158 * symtab.c (initialize_ordinary_address_classes): Likewise.
5159 * target-debug.h (target_debug_print_signals): Likewise.
5160 * utils.c (do_restore_current_language): Likewise.
5161
5162 2015-08-06 Clem Dickey <clemd@acm.org>
5163
5164 PR python/17136
5165 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5166
5167 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5168
5169 * complaints.c (enum complaint_series): Add newlines and remove
5170 out of date comment.
5171 (struct complaints) <series>: Change type to enum
5172 complaint_series and remove out of date comment.
5173 (symfile_complaint_hook): Use equivalent enum value
5174 ISOLATED_MESSAGE instead of 0.
5175
5176 2015-08-06 Pedro Alves <palves@redhat.com>
5177
5178 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5179 returned > 0.
5180
5181 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5182
5183 * common/agent.c (symbol_list) <required>: Remove.
5184
5185 2015-08-06 Pedro Alves <palves@redhat.com>
5186
5187 * target/waitstatus.h (enum target_stop_reason)
5188 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5189
5190 2015-08-05 Pedro Alves <palves@redhat.com>
5191 Joel Brobecker <brobecker@adacore.com>
5192
5193 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5194 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5195 case where BS->STOP is not set.
5196
5197 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5198
5199 * nat/gdb_thread_db.h: Add copyright header.
5200 Protect against multiple inclusion.
5201
5202 2015-08-05 Yao Qi <yao.qi@linaro.org>
5203
5204 * aarch64-linux-nat.c (get_thread_id): Remove.
5205 (debug_reg_change_callback): Call ptid_get_lwp instead of
5206 get_thread_id.
5207 (fetch_gregs_from_thread): Likewise.
5208 (store_gregs_to_thread): Likewise.
5209 (fetch_fpregs_from_thread): Likewise.
5210 (store_fpregs_to_thread): Likewise.
5211 (aarch64_linux_get_debug_reg_capacity): Likewise.
5212 * arm-linux-nat.c (get_thread_id): Remove.
5213 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5214 * xtensa-linux-nat.c (get_thread_id): Remove.
5215 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5216 * arm-linux-nat.c (get_thread_id): Remove.
5217 (GET_THREAD_ID): Remove.
5218 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5219 (store_fpregs, fetch_regs, store_regs): Likewise.
5220 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5221 (fetch_vfp_regs, store_vfp_regs): Likewise.
5222 (arm_linux_read_description): Likewise.
5223 (arm_linux_get_hwbp_cap): Likewise.
5224 * xtensa-linux-nat.c (get_thread_id): Remove.
5225 (GET_THREAD_ID): Remove.
5226 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5227 GET_THREAD_ID.
5228
5229 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5230
5231 * python/py-linetable.c: Fix case of Linetable to LineTable
5232 in docstrings and code comments.
5233 * python/py-symtab.c: Same.
5234
5235 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5238
5239 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5240
5241 PR gdb/18767
5242 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5243 use.
5244
5245 2015-08-04 Pedro Alves <palves@redhat.com>
5246
5247 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5248 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5249 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5250 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5251 (td_thr_validate_ftype, td_thr_get_info_ftype)
5252 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5253 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5254 New typedefs.
5255 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5256 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5257 local macros and use them instead of verbose_dlsym and dlsym
5258 calls.
5259
5260 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5261
5262 * nios2-tdep.h: Include opcode/nios2.h here.
5263 (NIOS2_CDX_OPCODE_SIZE): New.
5264 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5265 * nios2-tdep.c: Don't include opcode/nios2.h here.
5266 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5267 4-byte read fails.
5268 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5269 (nios2_match_addi, nios2_match_orhi): Likewise.
5270 (nios2_match_stw, nios2_match_ldw): Likewise.
5271 (nios2_match_rdctl): Likewise.
5272 (nios2_match_stwm, nios2_match_ldwm): New.
5273 (nios2_match_branch): Add cases for R2 encodings.
5274 (nios2_match_jmpi, nios2_match_calli): Likewise.
5275 (nios2_match_jmpr, nios2_match_callr): Likewise.
5276 (nios2_match_break, nios2_match_trap): Likewise.
5277 (nios2_in_epilogue_p): Add R2 support.
5278 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5279 prologues.
5280 (nios2_breakpoint_from_pc): Handle R2 instructions.
5281 (nios2_get_next_pc): Likewise. Adjust call to
5282 tdep->syscall_next_pc.
5283 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5284 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5285 instruction field macros instead of literal hex values.
5286 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5287 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5288 Use size field from OP instead of assuming all instructions
5289 are the same size.
5290 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5291
5292 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5293
5294 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5295 variable warning with some compilers.
5296
5297 2015-08-03 Yao Qi <yao.qi@linaro.org>
5298
5299 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5300 in comment. Replace "rw" with "type".
5301 (arm_linux_remove_watchpoint): Change type of "rw" to
5302 "enum target_hw_bp_type".
5303
5304 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5305
5306 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5307 lookup_symbol.
5308 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5309 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5310 * mt-tdep.c (mt_skip_prologue): Likewise.
5311 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5312
5313 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5314
5315 * ada-exp.y (write_object_renaming): Replace struct
5316 ada_symbol_info with struct block_symbol. Update field
5317 references accordingly.
5318 (block_lookup, select_possible_type_sym): Likewise.
5319 (find_primitive_type): Likewise. Also update call to
5320 ada_lookup_symbol to extract the symbol itself.
5321 (write_var_or_type, write_name_assoc): Likewise.
5322 * ada-lang.h (struct ada_symbol_info): Remove.
5323 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5324 struct block_symbol.
5325 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5326 (ada_lookup_symbol): Return struct block_symbol instead of a
5327 mere symbol.
5328 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5329 with struct block_symbol.
5330 (resolve_subexp, ada_resolve_function, sort_choices,
5331 user_select_syms, is_nonfunction, add_defn_to_vec,
5332 num_defns_collected, defns_collected,
5333 symbols_are_identical_enums, remove_extra_symbols,
5334 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5335 ada_lookup_symbol_list, ada_iterate_over_symbols,
5336 ada_lookup_encoded_symbol, get_var_value): Likewise.
5337 (ada_lookup_symbol): Return a block_symbol instead of a mere
5338 symbol. Replace struct ada_symbol_info with struct
5339 block_symbol.
5340 (ada_lookup_symbol_nonlocal): Likewise.
5341 (standard_lookup): Make block passing explicit through
5342 lookup_symbol_in_language.
5343 * ada-tasks.c (get_tcb_types_info): Update the calls to
5344 lookup_symbol_in_language to extract the mere symbol out of the
5345 returned value.
5346 (ada_tasks_inferior_data_sniffer): Likewise.
5347 * ax-gdb.c (gen_static_field): Likewise for the call to
5348 lookup_symbol.
5349 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5350 lookup functions.
5351 (gen_expr): Likewise.
5352 * c-exp.y: Likewise. Remove uses of block_found.
5353 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5354 (classify_name): Likewise. Rename the "sym" local variable to
5355 "bsym".
5356 * c-valprint.c (print_unpacked_pointer): Likewise.
5357 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5358 "sym" parameter from struct symbol * to struct block_symbol.
5359 Use it to remove uses of block_found. Deal with struct
5360 block_symbol from lookup functions.
5361 (gcc_convert_symbol): Likewise. Update the call to
5362 convert_symbol_sym.
5363 * compile/compile-object-load.c (compile_object_load): Deal with
5364 struct block_symbol from lookup functions.
5365 * cp-namespace.c (cp_lookup_nested_symbol_1,
5366 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5367 cp_search_static_and_baseclasses,
5368 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5369 cp_lookup_symbol_imports_or_template,
5370 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5371 lookup_namespace_scope, cp_lookup_nonlocal,
5372 find_symbol_in_baseclass): Return struct block_symbol instead of
5373 mere symbols and deal with struct block_symbol from lookup
5374 functions.
5375 * cp-support.c (inspect_type, replace_typedefs,
5376 cp_lookup_rtti_type): Deal with struct block_symbol from
5377 lookup functions.
5378 * cp-support.h (cp_lookup_symbol_nonlocal,
5379 cp_lookup_symbol_from_namespace,
5380 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5381 Return struct block_symbol instead of mere symbols.
5382 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5383 push_module_name):
5384 Deal with struct block_symbol from lookup functions. Remove
5385 uses of block_found.
5386 * eval.c (evaluate_subexp_standard): Update call to
5387 cp_lookup_symbol_namespace.
5388 * f-exp.y: Deal with struct block_symbol from lookup functions.
5389 Remove uses of block_found.
5390 (yylex): Likewise.
5391 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5392 lookup_enum, lookup_template_type, check_typedef): Deal with
5393 struct block_symbol from lookup functions.
5394 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5395 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5396 (gdbscm_lookup_global_symbol): Likewise.
5397 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5398 * go-exp.y: Likewise. Remove uses of block_found.
5399 (package_name_p, classify_packaged_name, classify_name):
5400 Likewise.
5401 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5402 * jv-exp.y (push_variable): Likewise.
5403 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5404 * language.c (language_bool_type): Likewise.
5405 * language.h (struct language_defn): Update
5406 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5407 than a mere symbol.
5408 * linespec.c (find_label_symbols): Deal with struct block_symbol
5409 from lookup functions.
5410 * m2-exp.y: Likewise. Remove uses of block_found.
5411 (yylex): Likewise.
5412 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5413 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5414 * p-exp.y: Likewise. Remove uses of block_found.
5415 (yylex): Likewise.
5416 * p-valprint.c (pascal_val_print): Likewise.
5417 * parse.c (write_dollar_variable): Likewise. Remove uses of
5418 block_found.
5419 * parser-defs.h (struct symtoken): Turn the SYM field into a
5420 struct block_symbol.
5421 * printcmd.c (address_info): Deal with struct block_symbol from
5422 lookup functions.
5423 * python/py-frame.c (frapy_read_var): Likewise.
5424 * python/py-symbol.c (gdbpy_lookup_symbol,
5425 gdbpy_lookup_global_symbol): Likewise.
5426 * skip.c (skip_function_command): Likewise.
5427 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5428 block_symbol instead of a mere symbol.
5429 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5430 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5431 * solib.c (solib_global_lookup): Likewise.
5432 * solist.h (solib_global_lookup): Likewise.
5433 (struct target_so_ops): Update lookup_lib_global_symbol to
5434 return a struct block_symbol rather than a mere symbol.
5435 * source.c (select_source_symtab): Deal with struct block_symbol
5436 from lookup functions.
5437 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5438 Likewise.
5439 * symfile.c (set_initial_language): Likewise.
5440 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5441 block_symbol.
5442 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5443 (struct symbol_cache_slot): Turn the FOUND field into a struct
5444 block_symbol.
5445 (block_found): Remove.
5446 (eq_symbol_entry): Update to deal with struct block_symbol in
5447 cache slots.
5448 (symbol_cache_lookup): Return a struct block_symbol rather than
5449 a mere symbol.
5450 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5451 appropriately the cache slots. Update callers.
5452 (symbol_cache_dump): Update cache slots handling to the type
5453 change.
5454 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5455 lookup_symbol_aux, lookup_local_symbol,
5456 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5457 lookup_symbol_in_objfile_symtabs,
5458 lookup_symbol_in_objfile_from_linkage_name,
5459 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5460 lookup_symbol_in_static_block, lookup_static_symbol,
5461 lookup_global_symbol):
5462 Return a struct block_symbol rather than a mere symbol. Deal
5463 with struct block_symbol from other lookup functions. Remove
5464 uses of block_found.
5465 (lookup_symbol_in_block): Remove uses of block_found.
5466 (struct global_sym_lookup_data): Turn the RESULT field into a
5467 struct block_symbol.
5468 (lookup_symbol_global_iterator_cb): Update references to the
5469 RESULT field.
5470 (search_symbols): Deal with struct block_symbol from lookup
5471 functions.
5472 * symtab.h (struct block_symbol): New structure.
5473 (block_found): Remove.
5474 (lookup_symbol_in_language, lookup_symbol,
5475 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5476 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5477 lookup_global_symbol_from_objfile): Return a struct block_symbol
5478 rather than just a mere symbol. Update comments to remove
5479 mentions of block_found.
5480 * valops.c (find_function_in_inferior,
5481 value_struct_elt_for_reference, value_maybe_namespace_elt,
5482 value_of_this): Deal with struct block_symbol from lookup
5483 functions.
5484 * value.c (value_static_field, value_fn_field): Likewise.
5485
5486 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5487
5488 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5489 instead of integer.
5490
5491 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5492 Pedro Alves <palves@redhat.com>
5493
5494 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5495 type or value instead of integer.
5496 (aarch64_linux_insert_watchpoint): Likewise.
5497 (aarch64_linux_remove_watchpoint): Likewise.
5498 * ada-lang.c (ada_op_print_tab): Likewise.
5499 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5500 (amd64_linux_syscall_record_common): Likewise.
5501 * arch-utils.c (target_byte_order_user): Likewise.
5502 (default_byte_order): Likewise.
5503 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5504 (arm_linux_get_hwbp_type): Likewise.
5505 (arm_linux_hw_watchpoint_initialize): Likewise.
5506 (arm_linux_insert_watchpoint): Likewise.
5507 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5508 (arm_linux_syscall_record): Likewise.
5509 * breakpoint.c (update_watchpoint): Likewise.
5510 (breakpoint_here_p): Likewise.
5511 (bpstat_print): Likewise.
5512 (enable_breakpoint_disp): Likewise.
5513 * c-lang.c (c_op_print_tab): Likewise.
5514 * cli/cli-decode.c (add_info_alias): Likewise.
5515 * d-lang.c (d_op_print_tab): Likewise.
5516 * eval.c (evaluate_subexp_standard): Likewise.
5517 * f-exp.y (dot_ops): Likewise.
5518 (f77_keywords): Likewise.
5519 * f-lang.c (f_op_print_tab): Likewise.
5520 * go-lang.c (go_op_print_tab): Likewise.
5521 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5522 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5523 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5524 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5525 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5526 (struct scm_from_stringn_data): Likewise.
5527 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5528 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5529 (ia64_linux_remove_watchpoint): Likewise.
5530 (ia64_linux_can_use_hw_breakpoint): Likewise.
5531 * infrun.c (print_stop_event): Likewise.
5532 * jv-lang.c (java_op_print_tab): Likewise.
5533 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5534 * linux-nat.h (struct lwp_info): Likewise.
5535 * linux-thread-db.c (enable_thread_event): Likewise.
5536 * m2-lang.c (m2_op_print_tab): Likewise.
5537 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5538 (mi_cmd_stack_list_variables): Likewise.
5539 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5540 * mi/mi-out.c (mi_table_begin): Likewise.
5541 (mi_table_header): Likewise.
5542 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5543 (mips_linux_insert_watchpoint): Likewise.
5544 (mips_linux_remove_watchpoint): Likewise.
5545 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5546 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5547 (mips_linux_watch_type_to_irw): Likewise.
5548 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5549 (procfs_insert_hw_watchpoint): Likewise.
5550 (procfs_remove_hw_watchpoint): Likewise.
5551 (procfs_hw_watchpoint): Likewise.
5552 (procfs_can_use_hw_breakpoint): Likewise.
5553 (procfs_remove_hw_watchpoint): Likewise.
5554 (procfs_insert_hw_watchpoint): Likewise.
5555 * p-lang.c (pascal_op_print_tab): Likewise.
5556 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5557 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5558 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5559 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5560 (procfs_insert_watchpoint): Likewise.
5561 (procfs_remove_watchpoint): Likewise.
5562 * psymtab.c (recursively_search_psymtabs): Likewise.
5563 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5564 (m32r_insert_watchpoint): Likewise.
5565 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5566 (mips_insert_watchpoint): Likewise.
5567 (mips_remove_watchpoint): Likewise.
5568 * remote.c (watchpoint_to_Z_packet): Likewise.
5569 (remote_insert_watchpoint): Likewise.
5570 (remote_remove_watchpoint): Likewise.
5571 (remote_check_watch_resources): Likewise.
5572 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5573 (s390_remove_watchpoint): Likewise.
5574 (s390_can_use_hw_breakpoint): Likewise.
5575 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5576 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5577 * target.h (struct target_ops): Likewise.
5578 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5579 * ui-out.c (struct ui_out_hdr): Likewise.
5580 (append_header_to_list): Likewise.
5581 (get_next_header): Likewise.
5582 (verify_field): Likewise.
5583 (ui_out_begin): Likewise.
5584 (ui_out_field_int): Likewise.
5585 (ui_out_field_fmt_int): Likewise.
5586 (ui_out_field_skip): Likewise.
5587 (ui_out_field_string): Likewise.
5588 (ui_out_field_fmt): Likewise.
5589 * varobj.c (new_variable): Likewise.
5590 * x86-nat.c (x86_insert_watchpoint): Likewise.
5591 (x86_remove_watchpoint): Likewise.
5592 (x86_can_use_hw_breakpoint): Likewise.
5593 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5594 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5595 previously anonymous enumeration type..
5596 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5597 value.
5598 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5599 (target_debug_print_enum_bptype): New.
5600 * target-delegates.c: Regenerate.
5601
5602 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5603
5604 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5605 already says and disallow non-stack memory writes in the prologue.
5606
5607 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5608
5609 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5610 reflect how current GCC emits stack overflow checks. Match
5611 both trap and break instructions for backward compatbility.
5612 Disallow other trap and break instructions in the prologue.
5613
5614 2015-07-30 Pedro Alves <palves@redhat.com>
5615
5616 PR threads/18600
5617 * linux-nat.c (wait_lwp): Report to the core when thread group
5618 leader exits.
5619
5620 2015-07-30 Pedro Alves <palves@redhat.com>
5621 Simon Marchi <simon.marchi@ericsson.com>
5622
5623 PR threads/18600
5624 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5625 mark the new thread as resumed. Remove STOPPING parameter.
5626 (wait_lwp): Adjust call to linux_handle_extended_wait.
5627 (linux_nat_filter_event): Adjust call to
5628 linux_handle_extended_wait.
5629 (resume_stopped_resumed_lwps): Add debug output.
5630
5631 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5632
5633 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5634 isize argument.
5635 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5636 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5637 gdbarch_fast_tracepoint_valid_at.
5638 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5639 * gdbarch.h: Regenerate.
5640 * gdbarch.c: Regenerate.
5641 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5642 argument. Do not set it.
5643 * remote.c (remote_download_tracepoint): Adjust call to
5644 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5645 the instruction length.
5646
5647 2015-07-30 Yao Qi <yao.qi@linaro.org>
5648
5649 * arm-tdep.h (enum gdb_regnum): Move it to ...
5650 * arch/arm.h: ... here. New file.
5651 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5652
5653 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5654
5655 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5656 Change its type to int *.
5657 (decode_br): Rename link argument to is_blr. Change its type to
5658 int *.
5659 (decode_cb): Rename op argument to is_cbnz. Change its type to
5660 int *.
5661 (decode_tb): Rename op argument to is_tbnz. Change its type to
5662 int *. Set is_tbnz to either 1 or 0.
5663 (aarch64_analyze_prologue): Change type of is_link to int. Add
5664 new variables is_cbnz and is_tbnz. Adjust call to
5665 aarch64_decode_cb and aarch64_decode_tb.
5666
5667 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5668
5669 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5670 parameter.
5671 (mips_linux_new_thread): Likewise.
5672 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5673
5674 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5675
5676 * top.c: Include "tui/tui.h".
5677 (undo_terminal_modifications_before_exit): New static function.
5678 (quit_force): Use it.
5679
5680 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5681
5682 * target.c (terminal_state): Initialize to terminal_is_ours.
5683
5684 2015-07-29 Yao Qi <yao.qi@linaro.org>
5685
5686 PR record/18691
5687 * dcache.c (dcache_read_memory_partial): Call
5688 raw_memory_xfer_partial.
5689 * target.c (raw_memory_xfer_partial): Make it non-static.
5690 * target.h (raw_memory_xfer_partial): Declare.
5691
5692 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5693
5694 * c-valprint.c (c_val_print_array): Consider addressable memory
5695 unit size.
5696 (c_val_print_ptr): Likewise.
5697 (c_val_print_int): Likewise.
5698 * findvar.c (read_frame_register_value): Likewise.
5699 * valarith.c (find_size_for_pointer_math): Likewise.
5700 (value_ptrdiff): Likewise.
5701 (value_subscripted_rvalue): Likewise.
5702 * valops.c (read_value_memory): Likewise (and rename variables).
5703 (value_assign): Likewise.
5704 (value_repeat): Likewise.
5705 (value_array): Likewise.
5706 (value_slice): Likewise.
5707 * valprint.c (generic_val_print_ptr): Likewise.
5708 (generic_val_print_enum): Likewise.
5709 (generic_val_print_bool): Likewise.
5710 (generic_val_print_int): Likewise.
5711 (generic_val_print_char): Likewise.
5712 (generic_val_print_float): Likewise.
5713 (generic_val_print_decfloat): Likewise.
5714 (generic_val_print_complex): Likewise.
5715 (val_print_scalar_formatted): Likewise.
5716 (val_print_array_elements): Likewise.
5717 * value.c (set_value_parent): Likewise.
5718 (value_contents_copy_raw): Likewise.
5719 (set_internalvar_component): Likewise.
5720 (value_primitive_field): Likewise.
5721 (value_fetch_lazy): Likewise.
5722 * value.h (read_value_memory): Update comment.
5723
5724 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5725
5726 * value.c (get_value_arch): New function.
5727 * value.h (get_value_arch): New declaration.
5728
5729 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5730
5731 * value.c (struct value): Update comments.
5732
5733 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5734
5735 * gdbtypes.c (type_length_units): New function.
5736 * gdbtypes.h (type_length_units): New declaration.
5737 (struct type) <length>: Update comment.
5738
5739 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5740
5741 * valprint.c (generic_val_print): Factor out complex
5742 printing code to ...
5743 (generic_val_print_complex): ... this new function.
5744
5745 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5746
5747 * valprint.c (generic_val_print): Factor out decfloat
5748 printing code to ...
5749 (generic_val_print_decfloat): ... this new function.
5750
5751 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5752
5753 * valprint.c (generic_val_print): Factor out float
5754 printing code to ...
5755 (generic_val_print_float): ... this new function.
5756
5757 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5758
5759 * valprint.c (generic_val_print): Factor out char
5760 printing code to ...
5761 (generic_val_print_char): ... this new function.
5762
5763 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5764
5765 * valprint.c (generic_val_print): Factor out integer
5766 printing code to ...
5767 (generic_val_print_int): ... this new function.
5768
5769 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5770
5771 * valprint.c (generic_val_print): Factor out bool
5772 printing code to ...
5773 (generic_val_print_bool): ... this new function.
5774
5775 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5776
5777 * valprint.c (generic_val_print): Factor out function/method
5778 printing code to ...
5779 (generic_val_print_func): ... this new function.
5780
5781 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5782
5783 * valprint.c (generic_val_print): Factor out flags
5784 printing code to ...
5785 (generic_val_print_flags): ... this new function.
5786
5787 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5788
5789 * valprint.c (generic_val_print): Factor out enum
5790 printing code to ...
5791 (generic_val_print_enum): ... this new function.
5792
5793 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5794
5795 * valprint.c (generic_val_print): Factor out reference
5796 printing code to ...
5797 (generic_val_print_ref): ... this new function.
5798
5799 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5800
5801 * valprint.c (generic_val_print): Factor out memberptr
5802 printing code to ...
5803 (generic_val_print_memberptr): ... this new function.
5804
5805 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5806
5807 * valprint.c (generic_val_print): Factor out pointer
5808 printing code to ...
5809 (generic_val_print_ptr): ... this new function.
5810
5811 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5812
5813 * valprint.c (generic_val_print): Factor out array
5814 printing code to ...
5815 (generic_val_print_array): ... this new function.
5816
5817 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5818
5819 * valprint.c (generic_val_print): Factor out
5820 print_unpacked_pointer code to ...
5821 (print_unpacked_pointer): ... this new function.
5822
5823 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5824
5825 * event-top.c (handle_sigterm): Don't inspect
5826 target_can_async_p. Always set the quit flag and always mark
5827 the async signal handler.
5828
5829 2015-07-27 Yao Qi <yao.qi@linaro.org>
5830
5831 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5832
5833 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5834
5835 * remote.c (read_ptid): Return null_ptid when no thread id
5836 is found.
5837 (remote_current_thread): Add log warning for malformed
5838 qC reply.
5839 (remote_start_remote): Add log warning when current thread
5840 not found.
5841
5842 2015-07-24 Pedro Alves <palves@redhat.com>
5843
5844 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5845 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5846 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5847
5848 2015-07-24 Pedro Alves <palves@redhat.com>
5849
5850 PR gdb/18717
5851 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5852 is resumed, and extend the debug log.
5853
5854 2015-07-24 Pedro Alves <palves@redhat.com>
5855
5856 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5857
5858 2015-07-24 Pedro Alves <palves@redhat.com>
5859
5860 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5861 sys/ptrace.h.
5862 * alpha-linux-nat.c: Likewise.
5863 * amd64-linux-nat.c: Likewise.
5864 * arm-linux-nat.c: Likewise.
5865 * hppa-linux-nat.c: Likewise.
5866 * i386-linux-nat.c: Likewise.
5867 * ia64-linux-nat.c: Likewise.
5868 * linux-fork.c: Likewise.
5869 * linux-nat.c: Likewise.
5870 * m32r-linux-nat.c: Likewise.
5871 * m68klinux-nat.c: Likewise.
5872 * mips-linux-nat.c: Likewise.
5873 * nat/linux-btrace.c: Likewise.
5874 * nat/linux-ptrace.c: Likewise.
5875 * nat/linux-ptrace.h
5876 * nat/mips-linux-watch.c: Likewise.
5877 * nat/x86-linux-dregs.c: Likewise.
5878 * ppc-linux-nat.c: Likewise.
5879 * s390-linux-nat.c: Likewise.
5880 * spu-linux-nat.c: Likewise.
5881 * tilegx-linux-nat.c: Likewise.
5882 * x86-linux-nat.c: Likewise.
5883 * xtensa-linux-nat.c: Likewise.
5884
5885 2015-07-24 Pedro Alves <palves@redhat.com>
5886
5887 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5888 __ptrace_request as first parameter type instead of int.
5889 (PTRACE_TYPE_ARG1): Define.
5890 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5891 that casts first argument to PTRACE_TYPE_ARG1.
5892 * config.in: Regenerate.
5893 * configure: Regenerate.
5894
5895 2015-07-24 Pedro Alves <palves@redhat.com>
5896
5897 * gdb_ptrace.h: Move ...
5898 * nat/gdb_ptrace.h: ... here.
5899 * inf-ptrace.c: Adjust.
5900
5901 2015-07-24 Pedro Alves <palves@redhat.com>
5902
5903 * acinclude.m4: Include ptrace.m4.
5904 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5905 * ptrace.m4: ... to this new file.
5906
5907 2015-07-23 Doug Evans <dje@google.com>
5908
5909 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5910 (load_cu): Handle dummy CUs.
5911 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5912 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5913
5914 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5915
5916 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5917 documentation to say that it returns a list rather than
5918 a FrozenSet.
5919 (linetable_object_methods): Update the docstring of the
5920 "source_line" entry.
5921
5922 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5923
5924 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5925 type to the recursive call instead of the original (maybe
5926 TYPE_CODE_TYPEDEF) type.
5927
5928 2015-07-23 Yao Qi <yao.qi@linaro.org>
5929
5930 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5931 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5932 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5933
5934 2015-07-21 Yao Qi <yao.qi@linaro.org>
5935
5936 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5937 Move it to nat/aarch64-linux-hw-point.c.
5938 (aarch64_linux_child_post_startup_inferior): Update.
5939 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5940 New function.
5941 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5942 Declare it.
5943
5944 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5945
5946 * common/btrace-common.c (btrace_data_append): Change case label.
5947
5948 2015-07-20 Yao Qi <yao.qi@linaro.org>
5949
5950 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5951 Re-indent the code.
5952 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5953 "unsigned long long".
5954
5955 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5956
5957 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5958 to be set for SEC_ALLOC sections too.
5959
5960 2015-07-17 Yao Qi <yao.qi@linaro.org>
5961
5962 * Makefile.in (HFILES_NO_SRCDIR): Add
5963 nat/aarch64-linux-hw-point.h.
5964 (aarch64-linux-hw-point.o): New rule.
5965 * nat/aarch64-linux-hw-point.h: New file.
5966 * nat/aarch64-linux-hw-point.c: New file.
5967 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5968 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5969 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5970 (AARCH64_HWP_ALIGNMENT): Likewise.
5971 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5972 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5973 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5974 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5975 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5976 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5977 (struct aarch64_debug_reg_state): Likewise.
5978 (struct arch_lwp_info): Likewise.
5979 (aarch64_linux_set_debug_regs): Likewise.
5980 (aarch64_notify_debug_reg_change): Remove static.
5981 (aarch64_align_watchpoint): Likewise.
5982 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5983 (aarch64_watchpoint_length): Likewise.
5984 (aarch64_point_encode_ctrl_reg): Likewise
5985 (aarch64_point_is_aligned): Likewise.
5986 (aarch64_dr_state_insert_one_point): Likewise.
5987 (aarch64_dr_state_remove_one_point): Likewise.
5988 (aarch64_handle_breakpoint): Likewise.
5989 (aarch64_handle_aligned_watchpoint): Likewise.
5990 (aarch64_handle_unaligned_watchpoint): Likewise.
5991 (aarch64_handle_watchpoint): Likewise.
5992 * config/aarch64/linux.mh (NAT_FILE): Add
5993 aarch64-linux-hw-point.o.
5994
5995 2015-07-17 Yao Qi <yao.qi@linaro.org>
5996
5997 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5998 state and don't call aarch64_get_debug_reg_state. All callers
5999 update.
6000 (aarch64_linux_insert_hw_breakpoint): Call
6001 aarch64_get_debug_reg_state earlier.
6002 (aarch64_linux_remove_hw_breakpoint): Likewise.
6003 (aarch64_handle_aligned_watchpoint): Add argument state and
6004 don't call aarch64_get_debug_reg_state. All callers update.
6005 (aarch64_handle_unaligned_watchpoint): Likewise.
6006 (aarch64_handle_watchpoint): Add argument state.
6007 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6008 earlier.
6009 (aarch64_linux_remove_watchpoint): Likewise.
6010
6011 2015-07-17 Yao Qi <yao.qi@linaro.org>
6012
6013 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6014 debug_printf.
6015 (aarch64_handle_unaligned_watchpoint): Likewise.
6016
6017 2015-07-17 Yao Qi <yao.qi@linaro.org>
6018
6019 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6020 argument type's type to 'enum target_hw_bp_type'.
6021 (aarch64_dr_state_remove_one_point): Likewise.
6022 (aarch64_handle_breakpoint): Likewise.
6023 (aarch64_linux_insert_hw_breakpoint): Likewise.
6024 (aarch64_linux_remove_hw_breakpoint): Likewise.
6025 (aarch64_handle_aligned_watchpoint): Likewise.
6026
6027 2015-07-17 Yao Qi <yao.qi@linaro.org>
6028
6029 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6030 ptid_get_pid instead of get_thread_id.
6031
6032 2015-07-17 Yao Qi <yao.qi@linaro.org>
6033
6034 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6035 (add_current_inferior_and_thread): Don't initialise ptid.
6036
6037 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6038
6039 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6040 unavailable if invalid.
6041
6042 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6043
6044 Revert the previous 6 commits:
6045 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6046 Move gdb_regex* to common/
6047 Prepare linux_find_memory_regions_full & co. for move
6048 Move linux_find_memory_regions_full & co.
6049 gdbserver build-id attribute generator
6050 Validate symbol file using build-id
6051
6052 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6053 Jan Kratochvil <jan.kratochvil@redhat.com>
6054
6055 Validate symbol file using build-id.
6056 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6057 and 'show validate-build-id'. Add build-id attribute.
6058 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6059 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6060 * solib-frv.c (_initialize_frv_solib): Ditto.
6061 * solib-spu.c (set_spu_solib_ops): Ditto.
6062 * solib-svr4.c: Include rsp-low.h.
6063 (NOTE_GNU_BUILD_ID_NAME): New define.
6064 (svr4_validate): New function.
6065 (svr4_copy_library_list): Duplicate field build_id.
6066 (library_list_start_library): Parse 'build-id' attribute.
6067 (svr4_library_attributes): Add 'build-id' attribute.
6068 (_initialize_svr4_solib): Assign validate value.
6069 * solib-target.c (solib.h): Include.
6070 (_initialize_solib_target): Assign validate value.
6071 * solib.c (validate_build_id, show_validate_build_id): New.
6072 (solib_map_sections): Use ops->validate.
6073 (clear_so): Free build_id.
6074 (default_solib_validate): New function.
6075 (_initialize_solib): Add "validate-build-id".
6076 * solib.h (default_solib_validate): New declaration.
6077 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6078 (target_so_ops): New field 'validate'.
6079
6080 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6081 Jan Kratochvil <jan.kratochvil@redhat.com>
6082
6083 gdbserver build-id attribute generator.
6084 * features/library-list-svr4.dtd (library-list-svr4): New
6085 'build-id' attribute.
6086
6087 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6088 Jan Kratochvil <jan.kratochvil@redhat.com>
6089
6090 Move linux_find_memory_regions_full & co.
6091 * linux-tdep.c (nat/linux-maps.h): Include.
6092 (gdb_regex.h): Remove the include.
6093 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6094 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6095 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6096 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6097 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6098 and target/target.h.
6099 (struct smaps_vmflags, read_mapping, decode_vmflags)
6100 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6101 (linux_find_memory_regions_full): Move from linux-tdep.c.
6102 * nat/linux-maps.h (read_mapping): New declaration.
6103 (linux_find_memory_region_ftype, enum filterflags): Moved from
6104 linux-tdep.c.
6105 (linux_find_memory_regions_full): New declaration.
6106 * target.c (target/target-utils.h): Include.
6107 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6108 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6109 definitions to target/target-utils.c.
6110 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6111 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6112 from target.c.
6113 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6114 (read_alloc): New declaration.
6115 (read_stralloc_func_ftype): New typedef.
6116 (read_stralloc): New declaration.
6117 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6118
6119 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6120 Jan Kratochvil <jan.kratochvil@redhat.com>
6121
6122 Prepare linux_find_memory_regions_full & co. for move.
6123 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6124 (linux_find_memory_regions_full): Change signature and prepare
6125 for moving to linux-maps.
6126 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6127 (linux_find_memory_regions_thunk): New.
6128 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6129 (linux_find_memory_regions_gdb): New.
6130 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6131 (linux_make_mappings_corefile_notes): Use
6132 linux_find_memory_regions_gdb.
6133 * target.c (read_alloc_pread_ftype): New typedef.
6134 (target_fileio_read_alloc_1_pread): New function.
6135 (read_alloc): Refactor from target_fileio_read_alloc_1.
6136 (read_stralloc_func_ftype): New typedef.
6137 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6138 (read_stralloc): Refactored from target_fileio_read_stralloc.
6139 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6140
6141 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6142
6143 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6144 common/gdb_regex.h.
6145 (COMMON_OBS): Add gdb_regex.o.
6146 (gdb_regex.o): New.
6147 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6148 --without-included-regex and USE_INCLUDED_REGEX.
6149 * common/gdb_regex.c: New file from utils.c functions.
6150 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6151 file wrapping define name.
6152 * configure: Rebuilt.
6153 * configure.ac (gdb_use_included_regex, --without-included-regex)
6154 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6155 * gdb_regex.h: Move it to common/gdb_regex.h.
6156 * utils.c: Remove include gdb_regex.h.
6157 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6158 (compile_rx_or_error): Move them to common/gdb_regex.c.
6159
6160 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6161 Jan Kratochvil <jan.kratochvil@redhat.com>
6162
6163 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6164 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6165 common/target-utils.h.
6166 (COMMON_OBS): Add target-utils.o.
6167 (linux-maps.o, target-utils.o): New.
6168 * target/target-utils.c: New file.
6169 * target/target-utils.h: New file.
6170 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6171 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6172 * nat/linux-maps.c: New file.
6173 * nat/linux-maps.h: New file.
6174
6175 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6176 Pedro Alves <palves@redhat.com>
6177
6178 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6179 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6180 (perf_event_read_bts): Change the type of SIZE and READ.
6181 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6182 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6183 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6184 mmap page.
6185 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6186 buffer size to UINT_MAX.
6187 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6188 DATA_TAIL.
6189 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6190 <last_head>: Change type.
6191 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6192 * common/btrace-common.c (btrace_data_append): Change the type of
6193 SIZE.
6194 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6195 check.
6196
6197 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6198
6199 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6200 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6201 with check_typedef.
6202 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6203 (ada_array_length): Likewise.
6204 (find_parallel_type_by_descriptive_type): Likewise.
6205 (ada_check_typedef): Likewise.
6206 * arm-tdep.c (arm_return_in_memory): Likewise.
6207 * ax-gdb.c (gen_trace_static_fields): Likewise.
6208 (gen_struct_ref_recursive): Likewise.
6209 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6210 (variable: block COLONCOLON name): Likewise.
6211 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6212 * c-lang.c (classify_type): Likewise.
6213 * c-typeprint.c (c_print_type): Likewise.
6214 (c_print_typedef): Likewise.
6215 (c_type_print_base): Likewise.
6216 * c-valprint.c (c_val_print): Likewise.
6217 * compile/compile-c-types.c (convert_type): Likewise.
6218 * compile/compile-object-load.c (get_out_value_type): Likewise.
6219 * completer.c (add_struct_fields): Likewise.
6220 (expression_completer): Likewise.
6221 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6222 (cp_lookup_nested_symbol_1): Likewise.
6223 (cp_lookup_nested_symbol): Likewise.
6224 * cp-valprint.c (cp_print_value_fields): Likewise.
6225 (cp_print_static_field): Likewise.
6226 * d-valprint.c (d_val_print): Likewise.
6227 * eval.c (evaluate_subexp_standard): Likewise.
6228 (evaluate_subexp_for_sizeof): Likewise.
6229 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6230 * f-typeprint.c (f_type_print_base): Likewise.
6231 * f-valprint.c (f_val_print): Likewise.
6232 * gdbtypes.c (get_discrete_bounds): Likewise.
6233 (create_array_type_with_stride): Likewise.
6234 (type_name_no_tag_or_error): Likewise.
6235 (lookup_struct_elt_type): Likewise.
6236 (get_unsigned_type_max): Likewise.
6237 (internal_type_vptr_fieldno): Likewise.
6238 (set_type_vptr_fieldno): Likewise.
6239 (internal_type_vptr_basetype): Likewise.
6240 (set_type_vptr_basetype): Likewise.
6241 (get_vptr_fieldno): Likewise.
6242 (is_integral_type): Likewise.
6243 (is_scalar_type): Likewise.
6244 (is_scalar_type_recursive): Likewise.
6245 (distance_to_ancestor): Likewise.
6246 (is_unique_ancestor_worker): Likewise.
6247 (check_types_equal): Likewise.
6248 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6249
6250 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6251
6252 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6253 also test for language_d.
6254 (dwarf2_compute_name): Likewise.
6255 (read_func_scope): Likewise.
6256 (read_structure_type): Likewise.
6257 (new_symbol_full): Likewise.
6258 (determine_prefix): Likewise.
6259 (read_import_statement): Use dot as the separator for language_d.
6260 (typename_concat): Likewise, but don't prefix the D main function.
6261
6262 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6263
6264 * nat/linux-namespaces.c (setns): Rename from this ...
6265 (do_setns): ... to this. Support calling setns if it exists.
6266 (mnsh_handle_setns): Call do_setns.
6267
6268 2015-07-13 Yao Qi <yao.qi@linaro.org>
6269
6270 * exec.c (exec_file_attach): Add period at the end of error
6271 message.
6272
6273 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6274
6275 * tui/tui-win.c (window_name_completer): New function.
6276 (focus_completer): Call window_name_completer. All old content
6277 moved into window_name_completer.
6278 (winheight_completer): New function.
6279 (_initialize_tui_win): Rename variable. Add completer to
6280 winheight command. Update doc string on winheight.
6281
6282 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6283
6284 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6285 all nios2 mach variants.
6286
6287 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6288
6289 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6290 of target_read_memory.
6291
6292 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6293
6294 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6295 string copy.
6296 (parse_scrolling_args): Likewise.
6297
6298 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6299
6300 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6301 names in this function.
6302
6303 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6306 (CMD_NAME): Likewise.
6307 (DATA_NAME): Likewise.
6308 (DISASSEM_NAME): Likewise.
6309 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6310 (tui_set_win_height): Likewise.
6311 (parse_scrolling_args): Likewise.
6312
6313 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6314
6315 * record-btrace.c (record_btrace_goto_begin)
6316 (record_btrace_goto_end, record_btrace_goto): Move call to
6317 print_stack_frame ...
6318 (record_btrace_set_replay): ... here. Set stop_pc.
6319 * record-full.c (record_full_goto_entry): Set stop_pc.
6320
6321 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6322
6323 * NEWS: Mention support for tracepoints on aarch64-linux.
6324
6325 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6326
6327 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6328 function. Return 1.
6329 (the_low_target): Install it.
6330
6331 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6332
6333 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6334 * gdb.trace/collection.exp: Likewise.
6335 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6336 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6337 * gdb.trace/report.exp: Likewise.
6338 * gdb.trace/trace-break.exp: Likewise.
6339 * gdb.trace/unavailable.exp: Likewise.
6340 * gdb.trace/while-dyn.exp: Likewise.
6341
6342 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6343
6344 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6345 (aarch64_gen_return_address): New function.
6346 (aarch64_gdbarch_init): Hook it.
6347
6348 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6349
6350 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6351 swallow NOT_AVAILABLE_ERROR.
6352 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6353 available_p is not set.
6354 (aarch64_stub_frame_unwind_stop_reason): New function.
6355 (aarch64_stub_unwind): Install it.
6356
6357 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6358
6359 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6360 field.
6361 (aarch64_make_prologue_cache_1): New function, factored out from
6362 aarch64_make_prologue_cache. Do not allocate cache. Set
6363 available_p.
6364 (aarch64_make_prologue_cache): Reimplement wrapping
6365 aarch64_make_prologue_cache_1, and swallowing
6366 NOT_AVAILABLE_ERROR.
6367 (aarch64_prologue_frame_unwind_stop_reason): New function.
6368 Return UNWIND_UNAVAILABLE if available_p is not set.
6369 (aarch64_prologue_unwind): Install it.
6370 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6371 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6372 frame_id_build_unavailable_stack if available_p is not set.
6373
6374 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6375
6376 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6377 fields.
6378 (aarch64_scan_prologue): Set prev_pc.
6379 (aarch64_make_prologue_cache): Set func.
6380 (aarch64_make_stub_cache): Set prev_pc.
6381 (aarch64_prologue_this_id): Remove local variables id, pc and
6382 func. Read prev_pc and func from cache.
6383 (aarch64_stub_this_id): Read prev_pc from cache.
6384
6385 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6386
6387 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6388 argument this_cache. Remove unused local variables reg and
6389 unwound_fp. Return early if this_cache is already set. Set
6390 this_cache.
6391 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6392
6393 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6394
6395 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6396 New argument this_cache. Return early if this_cache is already
6397 set. Set this_cache.
6398 (aarch64_prologue_this_id): Update call to
6399 aarch64_make_prologue_cache.
6400 (aarch64_prologue_prev_register): Likewise.
6401 (aarch64_normal_frame_base): Likewise.
6402
6403 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * c-valprint.c (c_val_print): Factor out memberptr printing code
6406 from c_val_print to ...
6407 (c_val_print_memberptr): ... this new function.
6408
6409 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6410
6411 * c-valprint.c (c_val_print): Factor out int printing code to ...
6412 (c_val_print_int): ... this new function.
6413
6414 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6415
6416 * c-valprint.c (c_val_print): Factor out struct and union
6417 printing code to ...
6418 (c_val_print_struct): ... this new function ...
6419 (c_val_print_union): ... and this new function.
6420
6421 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6422
6423 * c-valprint.c (c_val_print): Factor out pointer printing code
6424 to ...
6425 (c_val_print_ptr): ... this new function.
6426
6427 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6428
6429 * c-valprint.c (c_valprint): Factor our array printing code from
6430 c_val_print to ...
6431 (c_val_print_array): ... this new function.
6432
6433 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6434
6435 * c-valprint.c (c_val_print): Factor out pointer printing code
6436 to ...
6437 (print_unpacked_pointer): ... this new function.
6438
6439 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6440
6441 * c-valprint.c (c_val_print): Remove an assignment to i and move
6442 its declaration.
6443
6444 2015-07-09 Yao Qi <yao.qi@linaro.org>
6445
6446 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6447 argument ptid. Update comments. Caller update.
6448
6449 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6450
6451 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6452 mnt packets.
6453
6454 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6455
6456 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6457
6458 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6459
6460 * progspace.c (delete_program_space): Add missing spaces.
6461
6462 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6463
6464 * inferior.c (delete_inferior_1): Rename to ...
6465 (delete_inferior): ..., remove 'silent' parameter, delete
6466 program space when unused and remove call to prune_program_spaces.
6467 Remove the old, unused, delete_inferior.
6468 (delete_inferior_silent): Remove.
6469 (prune_inferiors): Change call from delete_inferior_1 to
6470 delete_inferior and remove 'silent' parameter. Remove call to
6471 prune_program_spaces.
6472 (remove_inferior_command): Idem.
6473 * inferior.h (delete_inferior_1): Rename to...
6474 (delete_inferior): ..., remove 'silent' parameter and remove the
6475 original delete_inferior.
6476 (delete_inferior_silent): Remove.
6477 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6478 delete_inferior_1 to delete_inferior and remove 'silent'
6479 parameter.
6480 * progspace.c (prune_program_spaces): Remove.
6481 (pspace_empty_p): Rename to...
6482 (program_space_empty_p): ... and make non-static.
6483 (delete_program_space): New.
6484 * progspace.h (prune_program_spaces): Remove declaration.
6485 (program_space_empty_p): New declaration.
6486 (delete_program_space): New declaration.
6487 * monitor.c (monitor_close): Replace call to
6488 delete_thread_silent and delete_inferior_silent with
6489 discard_all_inferiors.
6490
6491 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6492
6493 * defs.h (deprecated_register_changed_hook): Remove prototype.
6494 * interps.c (clear_iterpreter_hooks): Remove reference to
6495 deprecated_register_changed_hook.
6496 * top.c (deprecated_register_changed_hook): Remove prototype.
6497 * valops.c (value_assign): Remove reference to
6498 deprecated_register_changed_hook.
6499 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6500 Add comment documenting the function.
6501 (tui_register_changed_observer): Define.
6502 (tui_install_hooks): Remove reference to
6503 deprecated_register_changed_hook. Set
6504 tui_register_changed_observer.
6505 (tui_remove_hooks): Remove reference to
6506 deprecated_register_changed_hook. Unset
6507 tui_register_changed_observer.
6508
6509 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6510
6511 PR compile/18484
6512 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6513
6514 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6515
6516 PR exp/18617
6517 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6518
6519 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6520
6521 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6522
6523 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6524
6525 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6526 Use safe_strerror() instead of strerror().
6527
6528 2015-07-07 Yao Qi <yao.qi@linaro.org>
6529
6530 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6531 * features/arm-with-m-fpa-layout.c: Regenerated.
6532 * features/arm-with-m-vfp-d16.xml: Likewise.
6533 * features/arm-with-m-vfp-d16.c: Regenerated.
6534 * features/arm-with-m.xml: Likewise.
6535 * features/arm-with-m.c: Regenerated.
6536 * features/arm-with-neon.xml: Likewise.
6537 * features/arm-with-neon.c: Regenerated.
6538 * features/arm-with-vfpv2.xml: Likewise.
6539 * features/arm-with-vfpv2.c: Regenerated.
6540 * features/arm-with-vfpv3.xml: Likewise.
6541 * features/arm-with-vfpv3.c: Regenerated.
6542
6543 2015-07-07 Yao Qi <yao.qi@linaro.org>
6544
6545 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6546 arm-linux-nat.c.
6547 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6548 elf/external.h.
6549 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6550 if target is 32-bit.
6551 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6552 if target is 32-bit.
6553 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6554 if target is 32-bit.
6555 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6556 if target is 32-bit.
6557 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6558 (aarch64_linux_read_description): Return the right target
6559 description.
6560 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6561 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6562 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6563 arm-linux-tdep.o.
6564
6565 2015-07-07 Yao Qi <yao.qi@linaro.org>
6566
6567 * aarch32-linux-nat.c: New file.
6568 * aarch32-linux-nat.h: New file.
6569 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6570 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6571 aarch32_gp_regcache_supply.
6572 (store_regs): Move code to aarch32-linux-nat.c. Call
6573 aarch32_gp_regcache_collect.
6574 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6575 aarch32_vfp_regcache_supply.
6576 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6577 aarch32_vfp_regcache_collect.
6578 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6579
6580 2015-07-07 Yao Qi <yao.qi@linaro.org>
6581
6582 * arm-linux-nat.c (store_fpregister): Remove.
6583 (store_register): Likewise.
6584 (fetch_fpregister): Likewise.
6585 (fetch_register): Likewise.
6586 (arm_linux_store_inferior_registers): Call store_regs and
6587 store_fpregs instead.
6588 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6589 fetch_regs instead.
6590
6591 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6592
6593 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6594 and focus commands.
6595
6596 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6597
6598 * NEWS: Create a new section for the next release branch.
6599 Rename the section of the current branch, now that it has
6600 been cut.
6601
6602 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6603
6604 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6605 * version.in: Bump version to 7.10.50.DATE-cvs.
6606
6607 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6608
6609 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6610 breakpoints in a special way.
6611 (remove_breakpoint): Likewise.
6612 (mark_breakpoints_out): Likewise.
6613
6614 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6615
6616 * doc/gdb.texinfo (TUI): Add comma after @xref.
6617
6618 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6619
6620 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6621 instead of casting the structure type.
6622
6623 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6624
6625 * valops.c (search_struct_field): Remove OFFSET parameter.
6626 (value_cast_structs): Adjust calls to search_struct_field.
6627 (value_struct_elt): Same.
6628 (find_overload_match): Same.
6629
6630 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6631
6632 * value.c (value_fetch_lazy): Update comment, change return
6633 value to void.
6634 * value.h (value_fetch_lazy): Change return value to void.
6635
6636 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6639 (tui_win_name): Make parameter and result const.
6640 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6641
6642 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6643
6644 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6645 use printf_unfiltered.
6646 (set_mpx_cmd): Add missing trailing space to command string
6647 literal.
6648 (_initialize_i386_tdep): Give the "mpx" prefix command its
6649 correct name.
6650
6651 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6652
6653 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6654 (enum rx_frame_type): New.
6655 (struct rx_prologue): Add new field `frame_type'.
6656 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6657 parameter in the prologue struct. Add code for recording
6658 locations of PC and PSW for fast interrupt and exception frames.
6659 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6660 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6661 (rx_frame_type): New function.
6662 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6663 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6664 `this_cache'.
6665 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6666 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6667 RX_FRAME_TYPE_FAST_INTERRUPT.
6668 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6669 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6670 (rx_frame_unwind): Use rx_frame_sniffer instead of
6671 default_frame_sniffer.
6672 (rx_frame_unwind): New unwinder.
6673 (rx_gdbarch_init): Register new unwinder.
6674
6675 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6676
6677 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6678 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6679 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6680 and RX_FPSW_REGNUM.
6681 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6682
6683 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6684
6685 Fix GCC false warning.
6686 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6687
6688 2015-07-02 Yao Qi <yao.qi@linaro.org>
6689
6690 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6691 typo in the debugging message.
6692
6693 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6694
6695 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6696 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6697 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6698 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6699 (btrace_maint_clear): New.
6700 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6701 (pt_print_packet, btrace_maint_decode_pt)
6702 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6703 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6704 (maint_btrace_packet_history_cmd)
6705 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6706 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6707 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6708 (maint_info_btrace_cmd, _initialize_btrace): New.
6709 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6710 (btrace_maint_packet_history, btrace_maint_info): New.
6711 (btrace_thread_info) <maint>: New.
6712 * NEWS: Announce it.
6713
6714 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6715
6716 * btrace.c (btrace_fetch): Append the new trace data.
6717 (btrace_clear): Clear the stored trace data.
6718 * btrace.h (btrace_thread_info) <data>: New.
6719 * common/btrace-common.h (btrace_data_clear)
6720 (btrace_data_append): New.
6721 * common/btrace-common.c (btrace_data_clear)
6722 (btrace_data_append): New.
6723
6724 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6725
6726 * nat/linux-btrace.c (linux_enable_bts): Check for
6727 PERF_ATTR_SIZE_VER5.
6728 Check for data_offset and data_size fields. Use them.
6729
6730 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6731
6732 * NEWS: Announce new commands "record btrace pt" and "record pt".
6733 Announce new options "set|show record btrace pt buffer-size".
6734 * btrace.c: Include "rsp-low.h".
6735 Include "inttypes.h".
6736 (btrace_add_pc): Add forward declaration.
6737 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6738 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6739 (btrace_compute_ftrace_pt): New.
6740 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6741 (check_xml_btrace_version): Update version check.
6742 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6743 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6744 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6745 (btrace_pt_children): New.
6746 (btrace_children): Add support for "pt".
6747 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6748 (btrace_conf_children): Add support for "pt".
6749 * btrace.h: Include "intel-pt.h".
6750 (btrace_pt_error): New.
6751 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6752 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6753 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6754 (struct btrace_config_pt): New.
6755 (struct btrace_config)<pt>: New.
6756 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6757 (struct btrace_data)<pt>: New.
6758 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6759 (pt): New.
6760 * features/btrace.dtd (btrace)<pt>: New.
6761 (pt, pt-config, cpu): New.
6762 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6763 (perf_event_pt_event_type, kernel_supports_pt)
6764 (linux_supports_pt): New.
6765 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6766 (linux_enable_bts): Free tinfo on error.
6767 (linux_enable_pt): New.
6768 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6769 (linux_disable_pt): New.
6770 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6771 (linux_fill_btrace_pt_config, linux_read_pt): New.
6772 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6773 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6774 (struct btrace_target_info)<pt>: New.
6775 * record-btrace.c (set_record_btrace_pt_cmdlist)
6776 (show_record_btrace_pt_cmdlist): New.
6777 (record_btrace_print_pt_conf): New.
6778 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6779 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6780 (cmd_record_btrace_pt_start): New.
6781 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6782 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6783 (_initialize_record_btrace): Add new commands.
6784 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6785 (remote_protocol_features): Add "Qbtrace:pt".
6786 Add "Qbtrace-conf:pt:size".
6787 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6788 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6789 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6790 (_initialize_remote): Add new commands.
6791
6792 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6793
6794 * configure.ac: check for libipt
6795 * configure: Regenerate.
6796 * config.in: Regenerate.
6797 * Makefile.in (LIBIPT): New.
6798 (CLIBS): Add $LIBIPT.
6799 * NEWS: document new configure options
6800
6801 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6802
6803 * compile/compile-object-load.c (compile_object_load): Replace debug
6804 message "lookup undefined ELF symbol" by 3 more specific messages.
6805
6806 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6807
6808 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6809 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6810 (rl78_gdbarch_init): Initialize rl78_psw_type.
6811
6812 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6813
6814 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6815 Update commentary. Always refresh the registers when frame
6816 information has changed.
6817 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6818 Change return type to int. Return 1 if frame information has
6819 changed, 0 otherwise.
6820 (tui_before_prompt): Update commentary.
6821 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6822 int.
6823
6824 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6825
6826 PR tui/13378
6827 * frame.c (select_frame): Remove reference to
6828 deprecated_selected_frame_level_changed_hook.
6829 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6830 declaration.
6831 * stack.c (deprecated_selected_frame_level_changed_hook):
6832 Likewise.
6833 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6834 Rename to ...
6835 (tui_refresh_frame_and_register_information): ... this. Bail
6836 out if there is no stack. Don't update register information
6837 unless registers_too_p is true.
6838 (tui_print_frame_info_listing_hook): Rename to ...
6839 (tui_dummy_print_frame_info_listing_hook): ... this.
6840 (tui_before_prompt): New function.
6841 (tui_normal_stop): New function.
6842 (tui_before_prompt_observer): New observer.
6843 (tui_normal_stop_observer): New observer.
6844 (tui_install_hooks): Set
6845 deprecated_print_frame_info_listing_hook to
6846 tui_dummy_print_frame_info_listing_hook. Register
6847 tui_before_prompt_observer to call tui_before_prompt and
6848 tui_normal_stop_observer to call tui_normal_stop. Remove
6849 reference to deprecated_selected_frame_level_changed_hook.
6850 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6851 and tui_normal_stop_observer. Remove reference to
6852 deprecated_selected_frame_level_changed_hook.
6853
6854 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6855
6856 PR tui/13378
6857 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6858 return an int instead of void. Return whether the locator
6859 window has changed.
6860 (tui_show_frame_info): If the locator info has not changed, then
6861 bail out early to avoid refreshing the windows.
6862
6863 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6864
6865 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6866 LOCATOR_WIN to tui_alloc_content.
6867
6868 2015-06-30 Yao Qi <yao.qi@linaro.org>
6869
6870 PR tdep/18605
6871 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6872 instructions.
6873
6874 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6875
6876 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6877 (rx_dwarf_reg_to_regnum): New function.
6878 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6879 unwinding.
6880
6881 2015-06-29 Pedro Alves <palves@redhat.com>
6882
6883 PR threads/18127
6884 * infcall.c (run_inferior_call): On infcall success, if the thread
6885 was marked stopped before, reset it back to stopped.
6886 * infrun.c (resume): Don't suppress the set_running calls when
6887 doing an infcall.
6888 (normal_stop): Only discard the finish_thread_state cleanup if the
6889 infcall succeeded.
6890
6891 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6892
6893 * MAINTAINERS (Write After Approval): Update my email address.
6894
6895 2015-06-26 Keith Seitz <keiths@redhat.com>
6896 Doug Evans <dje@google.com>
6897
6898 PR 16253
6899 * block.c (block_lookup_symbol): For non-function blocks,
6900 continue to search for a symbol with an exact domain match
6901 Otherwise, return any previously found "best domain" symbol.
6902 (block_lookup_symbol_primary): Likewise.
6903
6904 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6905
6906 * NEWS: Mention the new option "history remove-duplicates".
6907 * top.c (history_remove_duplicates): New static variable.
6908 (show_history_remove_duplicates): New static function.
6909 (gdb_add_history): Conditionally remove duplicate history
6910 entries.
6911 (init_main): Add "history remove-duplicates" option.
6912
6913 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6914
6915 * tui/tui-win.c (focus_completer): New static function.
6916 (_initialize_tui_win): Set the completion function of the
6917 "focus" command to focus_completer.
6918
6919 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6920
6921 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6922 and language_asm..
6923 * symtab.c (find_function_start_sal): Likewise.
6924
6925 2015-06-25 Gary Benson <gbenson@redhat.com>
6926
6927 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6928 it is the empty string after trailing slashes have been stripped.
6929
6930 2015-06-25 Gary Benson <gbenson@redhat.com>
6931
6932 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6933 * infrun.c (follow_exec): Likewise.
6934 * remote.c (remote_filesystem_is_local): Likewise.
6935 * solib.c (solib_find_1): Likewise.
6936
6937 2015-06-24 Keith Seitz <keiths@redhat.com>
6938
6939 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6940 return value from lrealpath.
6941
6942 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6943
6944 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6945
6946 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6947
6948 * remote-sim.c: Include gdb_bfd.h.
6949 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6950 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6951
6952 2015-06-24 Yao Qi <yao.qi@linaro.org>
6953
6954 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6955 set_gdbarch_get_siginfo_type.
6956 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6957 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6958 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6959 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6960 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6961 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6962 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6963 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6964 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6965 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6966
6967 2015-06-24 Gary Benson <gbenson@redhat.com>
6968
6969 * common/buffer.c (stdint.h): Do not include.
6970 * common/print-utils.c (stdint.h): Likewise.
6971 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6972 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6973 * ft32-tdep.c (gdb_assert.h): Likewise.
6974 * guile/scm-utils.c (stdint.h): Likewise.
6975 * i386-linux-tdep.c (stdint.h): Likewise.
6976 * i386-tdep.c (stdint.h): Likewise.
6977 * nat/linux-btrace.c (stdint.h): Likewise.
6978 * nat/linux-btrace.h (stdint.h): Likewise.
6979 * nat/linux-ptrace.c (stdint.h): Likewise.
6980 * nat/mips-linux-watch.h (stdint.h): Likewise.
6981 * ppc-linux-nat.c (stdint.h): Likewise.
6982 * python/python-internal.h (stdint.h): Likewise.
6983 * stub-termcap.c (stdlib.h): Likewise.
6984 * target/target.h (stdint.h): Likewise.
6985 * xtensa-linux-nat.c (stdint.h): Likewise.
6986
6987 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6988
6989 * top.c (init_history): Look at errno after calling strtol to
6990 properly map large GDBHISTSIZE values to infinity.
6991
6992 2015-06-23 Doug Evans <dje@google.com>
6993
6994 * inferior.h (struct inferior_suspend_state): Delete, unused.
6995 All references deleted.
6996
6997 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6998
6999 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7000 (microblaze_push_dummy_call): Likewise.
7001 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7002 and set_gdbarch_push_dummy_call.
7003
7004 2015-06-23 Yao Qi <yao.qi@linaro.org>
7005
7006 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7007 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7008 (amd64_linux_store_inferior_registers): Likewise.
7009 * arm-linux-nat.c (fetch_fpregister): Likewise.
7010 (fetch_fpregs, store_fpregister): Likewise.
7011 (store_fpregister, store_fpregs): Likewise.
7012 (fetch_register, fetch_regs): Likewise.
7013 (store_register, store_regs): Likewise.
7014 (fetch_vfp_regs, store_vfp_regs): Likewise.
7015 (arm_linux_read_description): Check have_ptrace_getregset is
7016 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7017 or TRIBOOL_FALSE.
7018 * i386-linux-nat.c (fetch_xstateregs): Check
7019 have_ptrace_getregset is not TRIBOOL_TRUE.
7020 (store_xstateregs): Likewise.
7021 * linux-nat.c (have_ptrace_getregset): Change its type to
7022 enum tribool.
7023 * linux-nat.h (tribool): New enum.
7024 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7025 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7026
7027 2015-06-19 Doug Evans <dje@google.com>
7028
7029 * NEWS: Mention Sun's version of stabs is no longer supported.
7030 * elfread.c (free_elfinfo): Delete. All uses updated.
7031 (elfstab_offset_sections): Delete. All uses updated.
7032 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7033 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7034 All uses updated.
7035 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7036 All callers updated.
7037
7038 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * common/rsp-low.c (needs_escaping): New.
7041 (remote_escape_output): Add unit_size parameter. Refactor to
7042 support multi-byte addressable units. Rename parameters.
7043 * common/rsp-low.h (remote_escape_output): Add unit_size
7044 parameter and rename others. Update doc.
7045 * remote.c (align_for_efficient_write): New.
7046 (remote_write_bytes_aux): Add unit_size parameter and use it.
7047 Rename some variables. Update doc.
7048 (remote_xfer_partial): Get unit size and use it.
7049 (remote_read_bytes_1): Add unit_size parameter and use it.
7050 Rename some variables. Update doc.
7051 (remote_write_bytes): Same.
7052 (remote_xfer_live_readonly_partial): Same.
7053 (remote_read_bytes): Same.
7054 (remote_flash_write): Update call to remote_write_bytes_aux.
7055 (remote_write_qxfer): Update call to remote_escape_output.
7056 (remote_search_memory): Same.
7057 (remote_hostio_pwrite): Same.
7058
7059 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7060
7061 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7062 locations as inserted.
7063 Update and expand comment about permanent locations.
7064 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7065 Move comment to add_location_to_breakpoint.
7066 (update_global_location_list): Don't error out if a permanent
7067 breakpoint is not marked inserted.
7068 Don't error out if a non-permanent breakpoint location is inserted on
7069 top of a permanent breakpoint.
7070
7071 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7072
7073 * breakpoint.c (make_breakpoint_permanent): Remove unused
7074 function.
7075 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7076
7077 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7078
7079 PR gdb/16999
7080 * NEWS: Mention new GDBHISTSIZE behavior.
7081 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7082 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7083
7084 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7085
7086 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7087 * top.c (init_history): Read from GDBHISTSIZE instead of
7088 HISTSIZE.
7089 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7090
7091 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7092
7093 * top.c (gdb_safe_append_history): Do not call
7094 history_truncate_file if the history is not stifled.
7095
7096 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7097
7098 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7099 * syscalls/s390x-linux.xml: Likewise.
7100
7101 2015-06-16 Michael Eager <eager@eagercon.com>
7102
7103 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7104
7105 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7106
7107 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7108 target_terminal_ours_for_output() before calling
7109 tui_show_frame_info(), and restore the original terminal
7110 settings afterwards.
7111
7112 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7113
7114 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7115
7116 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7117
7118 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7119 memory unit size.
7120 (mi_cmd_data_write_memory_bytes): Same.
7121
7122 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7123
7124 * corefile.c (write_memory): Update doc.
7125 * gdbcore.h (write_memory): Same.
7126
7127 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7128
7129 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7130 (dump_mapping_p): Use it for parameter filterflags.
7131 (linux_find_memory_regions_full): Use it for variable filterflags.
7132
7133 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7134 Jan Kratochvil <jan.kratochvil@redhat.com>
7135
7136 Merge multiple hex conversions.
7137 * monitor.c: Include rsp-low.h.
7138 (fromhex): Remove definition.
7139
7140 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7141 Jan Kratochvil <jan.kratochvil@redhat.com>
7142
7143 Move utility functions to common/.
7144 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7145 Move defs to common/common-utils.c.
7146 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7147 (skip_to_space_const): Move decls to common/common-utils.h.
7148 * common/common-defs.h: Move include of common-types.h before
7149 common-utils.h.
7150 * common/common-utils.c: Include host-defs.h and ctype.h.
7151 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7152 from utils.c.
7153 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7154 cli/cli-utils.c.
7155 * common/common-utils.h (strtoulst): Move decl from utils.h.
7156 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7157 Move from cli/cli-utils.h.
7158 * common/host-defs.h: Include limits.h.
7159 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7160 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7161 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7162 common/common-utils.h.
7163 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7164 (strtoulst): Move to common/common-utils.c.
7165 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7166
7167 2015-06-15 Yao Qi <yao.qi@linaro.org>
7168
7169 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7170
7171 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7172
7173 * build-id.c: Don't include elf-bfd.h.
7174 (build_id_bfd_get): Use bfd_build_id.
7175 (build_id_verify): Ditto.
7176 * build-id.h: Ditto.
7177 (find_separate_debug_file_by_buildid): Ditto.
7178 * python/py-objfile.c: Don't include elf-bfd.h.
7179 (objfpy_get_build_id) Use bfd_build_id.
7180 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7181 * coffread.c: Include build-id.h.
7182 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7183
7184 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7185
7186 * windows-nat.c (do_windows_fetch_inferior_registers)
7187 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7188 conditional with __CYGWIN__.
7189
7190 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * completer.c: Add arch-utils.h include.
7193 (enum reg_completer_targets): New enum.
7194 (reg_or_group_completer_1): New function containing old
7195 reg_or_group_completer, add and use new parameter to control what
7196 is completed on. Use get_current_arch rather than architecture of
7197 currently selected frame.
7198 (reg_or_group_completer): Call new reg_or_group_completer_1.
7199 (reggroup_completer): Call new reg_or_group_completer_1.
7200 * completer.h (reggroup_completer): Add declaration.
7201 * tui/tui-regs.c: Add 'completer.h' include.
7202 (tui_reg_next_command): Renamed to...
7203 (tui_reg_next): ...this. Adjust parameters and return rather than
7204 display new group.
7205 (tui_reg_prev_command): Renamed to...
7206 (tui_reg_prev): ...this. Adjust parameters and return rather than
7207 display new group.
7208 (tui_reg_float_command): Delete.
7209 (tui_reg_general_command): Delete.
7210 (tui_reg_system_command): Delete.
7211 (tui_reg_command): Rewrite to perform switching of register group.
7212 Add header comment.
7213 (tuireglist): Remove.
7214 (tui_reggroup_completer): New function.
7215 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7216 creation of 'tui reg' command.
7217 * NEWS: Add comment about 'tui reg' changes.
7218
7219 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7220
7221 * target.c (target_read): Consider addressable unit size when
7222 reading from a memory object.
7223 (read_memory_robust): Same.
7224 (read_whatever_is_readable): Same.
7225 (target_write_with_progress): Consider addressable unit size
7226 when writing to a memory object.
7227 * target.h (target_read): Update documentation.
7228 (target_write): Add documentation.
7229
7230 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * arch-utils.h (default_addressable_memory_unit_size): New.
7233 * arch-utils.c (default_addressable_memory_unit_size): New.
7234 * gdbarch.sh (addressable_memory_unit_size): New.
7235 * gdbarch.h: Re-generate.
7236 * gdbarch.c: Re-generate.
7237
7238 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7239
7240 * target.c (target_read): Rename variables and use
7241 TARGET_XFER_E_IO.
7242 (target_read_with_progress): Same.
7243 (read_memory_robust): Constify parameters and rename
7244 variables.
7245 (read_whatever_is_readable): Constify parameters,
7246 rename variables, adjust formatting.
7247 * target.h (read_memory_robust): Constify parameters.
7248
7249 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7250
7251 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7252 synthetic (non-AltiVec) vector types.
7253 (ppc64_sysv_abi_return_value): Likewise.
7254
7255 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7256
7257 PR breakpoints/16465
7258 * breakpoint.c (create_breakpoint): Save extra_string for
7259 pending breakpoints.
7260
7261 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7262
7263 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7264 and bt_mask to CORE_ADDR.
7265
7266 2015-06-11 Gary Benson <gbenson@redhat.com>
7267
7268 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7269 (mnsh_recv_message): Likewise.
7270
7271 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7272
7273 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7274 long long int and plongest instead of %ll.
7275
7276 2015-06-11 Gary Benson <gbenson@redhat.com>
7277
7278 * nat/linux-namespaces.c (gdb_wait.h): New include.
7279 (sys/wait.h): Do not include.
7280
7281 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7282
7283 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7284 end_sequence is true.
7285
7286 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7287
7288 Code cleanup.
7289 * solib-target.c (library_list_start_list): Use explicit NULL
7290 comparison.
7291
7292 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7293
7294 * solib-target.c (library_list_start_list): Do not dereference
7295 variable version in its initialization. Make the VERSION check handle
7296 NULL.
7297 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7298
7299 2015-06-10 Gary Benson <gbenson@redhat.com>
7300
7301 * NEWS: Announce support for direct access of executable and
7302 shared library files when attaching to inferiors in containers
7303 on GNU/Linux systems.
7304
7305 2015-06-10 Gary Benson <gbenson@redhat.com>
7306
7307 * remote.c (struct remote_state) <fs_pid>: New field.
7308 (new_remote_state): Initialize the above.
7309 (PACKET_vFile_setfs): New enum value.
7310 (remote_hostio_set_filesystem): New function.
7311 (remote_hostio_open): Call the above.
7312 (remote_hostio_unlink): Likewise.
7313 (remote_hostio_readlink): Likewise.
7314 (_initialize_remote): Register new "set/show remote
7315 hostio-setfs-packet" command.
7316 * NEWS: Announce new vFile:setfs packet.
7317
7318 2015-06-10 Gary Benson <gbenson@redhat.com>
7319
7320 * linux-nat.c (nat/linux-namespaces.h): New include.
7321 (fileio.h): Likewise.
7322 (linux_nat_filesystem_is_local): New function.
7323 (linux_nat_fileio_pid_of): Likewise.
7324 (linux_nat_fileio_open): Likewise.
7325 (linux_nat_fileio_readlink): Likewise.
7326 (linux_nat_fileio_unlink): Likewise.
7327 (linux_nat_add_target): Initialize to_filesystem_is_local,
7328 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7329 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7330 commands.
7331 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7332
7333 2015-06-10 Gary Benson <gbenson@redhat.com>
7334
7335 * target.h (struct inferior): New forward declaration.
7336 (struct target_ops) <to_filesystem_is_local>: Update comment.
7337 (struct target_ops) <to_fileio_open>: New argument inf.
7338 Update comment. All implementations updated.
7339 (struct target_ops) <to_fileio_unlink>: Likewise.
7340 (struct target_ops) <to_fileio_readlink>: Likewise.
7341 (target_filesystem_is_local): Update comment.
7342 (target_fileio_open): New argument inf. Update comment.
7343 (target_fileio_unlink): Likewise.
7344 (target_fileio_readlink): Likewise.
7345 (target_fileio_read_alloc): Likewise.
7346 (target_fileio_read_stralloc): Likewise.
7347 * target.c (target_fileio_open): New argument inf.
7348 Pass inf to implementation. Update debug printing.
7349 (target_fileio_unlink): Likewise.
7350 (target_fileio_readlink): Likewise.
7351 (target_fileio_read_alloc_1): New argument inf. Pass inf
7352 to target_fileio_open.
7353 (target_fileio_read_alloc): New argument inf. Pass inf to
7354 target_fileio_read_alloc_1.
7355 (target_fileio_read_stralloc): Likewise.
7356 * gdb_bfd.c (inferior.h): New include.
7357 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7358 argument with new argument "inferior". Pass inferior to
7359 target_fileio_open.
7360 (gdb_bfd_open): Supply inferior argument to
7361 gdb_bfd_iovec_fileio_open.
7362 * linux-tdep.c (linux_info_proc): Supply inf argument to
7363 relevant target_fileio calls.
7364 (linux_find_memory_regions_full): Likewise.
7365 (linux_fill_prpsinfo): Likewise.
7366 * remote.c (remote_filesystem_is_local): Supply inf
7367 argument to remote_hostio_open.
7368 (remote_file_put): Likewise.
7369 (remote_file_get): Likewise.
7370 (remote_file_delete): Supply inf argument to
7371 remote_hostio_unlink.
7372
7373 2015-06-10 Gary Benson <gbenson@redhat.com>
7374
7375 * inf-child.c (inf_child_fileio_open): Replace comment.
7376 (inf_child_fileio_pwrite): Likewise.
7377 (inf_child_fileio_pread): Likewise.
7378 (inf_child_fileio_fstat): Insert blank line before comment.
7379 (inf_child_fileio_close): Replace comment.
7380 (inf_child_fileio_unlink): Likewise.
7381 (inf_child_fileio_readlink): Likewise.
7382 * remote.c (remote_hostio_open): Likewise.
7383 (remote_hostio_pread): Likewise.
7384 (remote_hostio_pwrite): Likewise.
7385 (remote_hostio_close): Likewise.
7386 (remote_hostio_unlink): Likewise.
7387 (remote_hostio_readlink): Likewise.
7388 (remote_hostio_fstat): Likewise.
7389 (remote_filesystem_is_local): Likewise.
7390 * target.c (target_fileio_open): Likewise.
7391 (target_fileio_pwrite): Likewise.
7392 (target_fileio_pread): Likewise.
7393 (target_fileio_fstat): Insert blank line before comment.
7394 (target_fileio_close): Replace comment.
7395 (target_fileio_unlink): Likewise.
7396 (target_fileio_readlink): Likewise.
7397 (target_fileio_read_alloc): Likewise.
7398 (target_fileio_read_stralloc): Likewise.
7399
7400 2015-06-10 Gary Benson <gbenson@redhat.com>
7401
7402 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7403 (check_pid_namespace_match): Use linux_ns_same rather than
7404 linux_proc_pid_get_ns to spot PID namespace mismatches.
7405 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7406 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7407
7408 2015-06-10 Gary Benson <gbenson@redhat.com>
7409
7410 * configure.ac (AC_CHECK_FUNCS): Add setns.
7411 * config.in: Regenerate.
7412 * configure: Likewise.
7413 * nat/linux-namespaces.h: New file.
7414 * nat/linux-namespaces.c: Likewise.
7415 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7416 (linux-namespaces.o): New rule.
7417 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7418 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7419 * config/arm/linux.mh (NATDEPFILES): Likewise.
7420 * config/i386/linux.mh (NATDEPFILES): Likewise.
7421 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7422 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7423 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7424 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7425 * config/mips/linux.mh (NATDEPFILES): Likewise.
7426 * config/pa/linux.mh (NATDEPFILES): Likewise.
7427 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7428 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7429 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7430 * config/s390/linux.mh (NATDEPFILES): Likewise.
7431 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7432 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7433 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7434 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7435
7436 2015-06-10 Gary Benson <gbenson@redhat.com>
7437
7438 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7439 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7440 (make_cleanup_close): Likewise.
7441 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7442 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7443 (make_cleanup_close): Likewise.
7444
7445 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7446
7447 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7448 from SuspendThread().
7449
7450 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7451
7452 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7453 from OutputDebugString.
7454
7455 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7456 Mircea Gherzan <mircea.gherzan@intel.com>
7457
7458 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7459 MPX_BT_MASK_32): New macros.
7460 (i386_mpx_set_bounds): New function that implements
7461 the command "set-mpx-bound".
7462 (i386_mpx_enabled): Helper function to test MPX availability.
7463 (i386_mpx_bd_base): Helper function to calculate the base directory
7464 address.
7465 (i386_mpx_get_bt_entry): Helper function to access a bound
7466 table entry.
7467 (i386_mpx_print_bounds): Effectively display bound information.
7468 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7469 "show mpx".
7470 (_initialize_i386_tdep):
7471 Add "bound" to the commands "show mpx" and "set mpx" commands.
7472 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7473 and "show mpx" commands.
7474 * NEWS: List new commands for MPX support.
7475
7476 2015-06-09 Gary Benson <gbenson@redhat.com>
7477
7478 * common/fileio.h (fileio_to_host_mode): New declaration.
7479 * common/fileio.c (fileio_to_host_mode): New Function.
7480 * inf-child.c (inf_child_fileio_open): Process mode argument
7481 with fileio_to_host_mode.
7482
7483 2015-06-09 Gary Benson <gbenson@redhat.com>
7484
7485 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7486 conditional.
7487
7488 2015-06-05 Gary Benson <gbenson@redhat.com>
7489
7490 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7491 * remote.c (remote_filesystem_is_local): ...here.
7492
7493 2015-06-04 Yao Qi <yao.qi@linaro.org>
7494
7495 * gdbarch.c: Regenerate it.
7496
7497 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7498
7499 * arch-utils.c (default_infcall_munmap): New.
7500 * arch-utils.h (default_infcall_munmap): New declaration.
7501 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7502 (munmap_list_free, munmap_listp_free_cleanup): New.
7503 (struct setup_sections_data): Add field munmap_list_headp.
7504 (setup_sections): Call munmap_list_add.
7505 (compile_object_load): New variable munmap_list_head, initialize
7506 setup_sections_data.munmap_list_headp, return munmap_list_head.
7507 * compile/compile-object-load.h (struct munmap_list): New declaration.
7508 (struct compile_module): Add field munmap_list_head.
7509 (munmap_list_free): New declaration.
7510 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7511 munmap_list_head.
7512 (do_module_cleanup): Call munmap_list_free.
7513 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7514 * gdbarch.c: Regenerate.
7515 * gdbarch.h: Regenerate.
7516 * gdbarch.sh (infcall_munmap): New.
7517 * linux-tdep.c (linux_infcall_munmap): New.
7518 (linux_init_abi): Install it.
7519
7520 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7521
7522 PR gdb/15564
7523 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7524
7525 2015-06-02 Yao Qi <yao.qi@linaro.org>
7526
7527 * i386-linux-nat.c: Include linux-nat.h.
7528
7529 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7530 Jan Kratochvil <jan.kratochvil@redhat.com>
7531
7532 PR symtab/18392
7533 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7534 assertion.
7535 * dwarf2loc.c (chain_candidate): Likewise.
7536
7537 2015-06-01 Yao Qi <yao.qi@linaro.org>
7538
7539 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7540 (store_vfp_regs): Use PTRACE_SETREGSET.
7541
7542 2015-06-01 Yao Qi <yao.qi@linaro.org>
7543
7544 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7545 (fetch_fpregs): Likewise.
7546 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7547 (store_fpregs): Likewise.
7548
7549 2015-06-01 Yao Qi <yao.qi@linaro.org>
7550
7551 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7552 (fetch_regs): Likewise.
7553 (store_regs): Use PTRACE_SETREGSET.
7554 (store_register): Likewise.
7555
7556 2015-06-01 Yao Qi <yao.qi@linaro.org>
7557
7558 * arm-linux-nat.c (arm_linux_read_description): Check whether
7559 kernel supports PTRACE_GETREGSET.
7560
7561 2015-06-01 Yao Qi <yao.qi@linaro.org>
7562
7563 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7564 * linux-nat.c: ... here.
7565 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7566 to ...
7567 * linux-nat.h: ... here.
7568
7569 2015-06-01 Yao Qi <yao.qi@linaro.org>
7570
7571 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7572 * i386-linux-nat.c: Likewise.
7573 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7574 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7575 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7576 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7577 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7578
7579 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7580
7581 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7582 compatible to what read_child and write_child return. This
7583 unbreaks that DJGPP build of GDB which was broken since v7.7.
7584
7585 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7586
7587 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7588
7589 2015-05-29 Roland McGrath <mcgrathr@google.com>
7590
7591 PR gdb/18464
7592 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7593 rather than internal_error for an unrecognized value.
7594
7595 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7596
7597 * xtensa-tdep.c (xtensa_pseudo_register_read)
7598 (xtensa_pseudo_register_write): Don't alias last pseudo register
7599 to a1.
7600
7601 2015-05-28 Don Breazeal <donb@codesourcery.com>
7602
7603 * infrun.c (follow_fork_inferior): Ensure the use of
7604 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7605 messages.
7606
7607 2015-05-28 Doug Evans <dje@google.com>
7608
7609 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7610
7611 2015-05-28 Yao Qi <yao.qi@linaro.org>
7612
7613 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7614 (arm_linux_fetch_inferior_registers): Use
7615 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7616 (arm_linux_store_inferior_registers): Likewise.
7617 (arm_linux_read_description): Don't set
7618 arm_linux_has_wmmx_registers.
7619 * arm-tdep.c (arm_gdbarch_init): Set
7620 tdep->have_wmmx_registers according target descriptions.
7621 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7622 field.
7623
7624 2015-05-28 Yao Qi <yao.qi@linaro.org>
7625
7626 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7627 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7628 instead of arm_linux_vfp_register_count.
7629 (store_vfp_regs): Likewise.
7630 (arm_linux_fetch_inferior_registers): Likewise.
7631 (arm_linux_store_inferior_registers): Likewise.
7632 (arm_linux_read_description): Don't set
7633 arm_linux_vfp_register_count.
7634 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7635 Adjust.
7636 * arm-tdep.c (arm_gdbarch_init): Add assert on
7637 vfp_register_count.
7638 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7639 field to vfp_register_count. All users updated.
7640
7641 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7642
7643 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7644 ELFOSABI_GNU binaries.
7645
7646 2015-05-27 Doug Evans <dje@google.com>
7647
7648 * dwarf2read.c (lnp_state_machine): New typedef.
7649 (lnp_reader_state): New typedef.
7650 (dwarf_record_line_1): Renamed from dwarf_record_line.
7651 All callers updated.
7652 (dwarf_record_line): New function.
7653 (init_lnp_state_machine): New function.
7654 (check_line_address): Replace p_record_line parameter with state.
7655 All callers updated.
7656 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7657 Update to record state in lnp_state_machine.
7658
7659 2015-05-27 Doug Evans <dje@google.com>
7660
7661 * dwarf2read.c (record_line_ftype): New typedef.
7662 (check_line_address): New function.
7663 (dwarf_decode_lines_1): Call it.
7664
7665 2015-05-27 Doug Evans <dje@google.com>
7666
7667 * NEWS: Mention "set debug dwarf-line".
7668 * dwarf2read.c (dwarf_line_debug): New static global.
7669 (add_include_dir): Add debug dwarf-line support.
7670 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7671 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7672
7673 2015-05-27 Doug Evans <dje@google.com>
7674
7675 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7676 All callers updated.
7677 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7678 * cp-support.h (cp_lookup_nested_symbol): Update.
7679
7680 2015-05-27 Doug Evans <dje@google.com>
7681
7682 PR symtab/18258
7683 * block.c (block_find_symbol): New function.
7684 (block_find_non_opaque_type): Ditto.
7685 (block_find_non_opaque_type_preferred): Ditto.
7686 * block.h (block_symbol_matcher_ftype): New typedef.
7687 (block_find_symbol): Declare.
7688 (block_find_non_opaque_type): Ditto.
7689 (block_find_non_opaque_type_preferred): Ditto.
7690 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7691 * psymtab.c (psym_lookup_symbol): Ditto.
7692 * symtab.c (basic_lookup_transparent_type_1): New function.
7693 (basic_lookup_transparent_type): Call it.
7694
7695 2015-05-27 Yao Qi <yao.qi@linaro.org>
7696
7697 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7698 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7699
7700 2015-05-27 Yao Qi <yao.qi@linaro.org>
7701
7702 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7703 before operator &&.
7704 (aarch64_record_load_store): Likewise.
7705
7706 2015-05-26 Doug Evans <dje@google.com>
7707
7708 PR c++/18141, c++/18417.
7709 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7710 a typedef.
7711
7712 2015-05-26 Doug Evans <dje@google.com>
7713
7714 * NEWS: Add entries for command renamings.
7715 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7716 All uses updated.
7717 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7718 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7719 All uses updated.
7720 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7721 All callers updated. Fix spelling of DWARF in help text.
7722 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7723 All uses updated.
7724 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7725 All uses updated.
7726 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7727 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7728 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7729 All uses updated.
7730 (show_dwarf_always_disassemble): Renamed from
7731 show_dwarf2_always_disassemble. All callers updated.
7732 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7733 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7734 "set/show dwarf max-cache-age". Rename
7735 "set/show dwarf2 always-disassemble" to
7736 "set/show dwarf always-disassemble". Rename
7737 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7738 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7739
7740 2015-05-26 Doug Evans <dje@google.com>
7741
7742 PR python/18438
7743 * python/py-lazy-string.c (stpy_convert_to_value): Use
7744 gdbpy_gdb_memory_error not PyExc_MemoryError.
7745 (gdbpy_create_lazy_string_object): Ditto.
7746
7747 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7748
7749 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7750
7751 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7752
7753 * tui/tui-regs.c (tui_reg_prev_command): New function.
7754 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7755 * reggroups.c (reggroup_prev): New function.
7756 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7757
7758 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7759 Yao Qi <yao.qi@linaro.org>
7760
7761 * aarch64-linux-tdep.c: Include linux-record.h and
7762 record-full.h.
7763 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7764 (aarch64_syscall): New enum.
7765 (aarch64_canonicalize_syscall): New function.
7766 (aarch64_all_but_pc_registers_record): New function.
7767 (aarch64_linux_syscall_record): New function.
7768 (aarch64_linux_init_abi): Install AArch64 process record
7769 handler. Update to handle syscall recording.
7770 * aarch64-tdep.c: Include record.h and record-full.h.
7771 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7772 (struct aarch64_mem_r): Define.
7773 (aarch64_record_result): New enum.
7774 (struct insn_decode_record): Define.
7775 (insn_decode_record): New typedef.
7776 (aarch64_record_data_proc_reg): New function.
7777 (aarch64_record_data_proc_imm): New function.
7778 (aarch64_record_branch_except_sys): New function.
7779 (aarch64_record_load_store): New function.
7780 (aarch64_record_data_proc_simd_fp): New function.
7781 (aarch64_record_asimd_load_store): New function.
7782 (aarch64_record_decode_insn_handler): New function.
7783 (deallocate_reg_mem): New function.
7784 (aarch64_process_record): New function.
7785 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7786 New field.
7787 (aarch64_process_record): New extern declaration.
7788 * configure.tgt: Add linux-record.o to gdb_target_obs.
7789 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7790
7791 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7792
7793 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7794 targets.
7795
7796 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7797
7798 * amd64-tdep.c: Replace in_function_epilogue_p with
7799 stack_frame_destroyed_p throughout.
7800 * arch-utils.c: Ditto.
7801 * arch-utils.h: Ditto.
7802 * arm-tdep.c: Ditto.
7803 * breakpoint.c: Ditto.
7804 * gdbarch.sh: Ditto.
7805 * hppa-tdep.c: Ditto.
7806 * i386-tdep.c: Ditto.
7807 * mips-tdep.c: Ditto.
7808 * nios2-tdep.c: Ditto.
7809 * rs6000-tdep.c: Ditto.
7810 * s390-linux-tdep.c: Ditto.
7811 * score-tdep.c: Ditto.
7812 * sh-tdep.c: Ditto.
7813 * sparc-tdep.c: Ditto.
7814 * sparc-tdep.h: Ditto.
7815 * sparc64-tdep.c: Ditto.
7816 * spu-tdep.c: Ditto.
7817 * tic6x-tdep.c: Ditto.
7818 * tilegx-tdep.c: Ditto.
7819 * xstormy16-tdep.c: Ditto.
7820 * gdbarch.c, gdbarch.h: Re-generated.
7821
7822 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7823
7824 * NEWS: Mention 'tui enable' and 'tui disable'.
7825 * tui/tui.c (tui_enable_command): New function.
7826 (tui_disable_command): New function.
7827 (_initialize_tui): New function.
7828
7829 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7830
7831 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7832
7833 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7836 buf_ptr is freed.
7837
7838 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7839
7840 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7841 into ...
7842 (tui_set_layout_for_display_command): ...here, before calling
7843 tui_set_layout. Only set the layout if gdb has not already
7844 entered the TUI_FAILURE state.
7845
7846 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * tui/tui-layout.c (layout_completer): New function.
7849 (_initialize_tui_layout): Set completer on layout command.
7850
7851 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 * tui/tui-layout.c (tui_set_layout): Remove
7854 tui_register_display_type parameter. Remove all checking of this
7855 parameter, and reindent function. Update header comment.
7856 (tui_set_layout_for_display_command): Rename to...
7857 (tui_set_layout_by_name): ...this, and don't check for different
7858 register class types, don't pass a tui_register_display_type to
7859 tui_set_layout. Update header comment.
7860 (layout_names): Remove register set specific names.
7861 * tui/tui-layout.h (tui_set_layout): Remove
7862 tui_register_display_type parameter.
7863 * tui/tui.c (tui_rl_change_windows): Don't pass a
7864 tui_register_display_type to tui_set_layout.
7865 (tui_rl_delete_other_windows): Likewise.
7866 (tui_enable): Likewise.
7867 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7868 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7869 (TUI_GENERAL_REGS_NAME): Remove.
7870 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7871 (TUI_SPECIAL_REGS_NAME): Remove.
7872 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7873 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7874 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7875 (enum tui_register_display_type): Remove.
7876 (struct tui_layout_def): Remove regs_display_type and
7877 float_regs_display_type fields.
7878 (struct tui_data_info): Remove regs_display_type field.
7879 (tui_layout_command): Use new name for
7880 tui_set_layout_for_display_command.
7881 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7882 (tui_clear_win_detail): Don't initialise removed fields of
7883 win_info.
7884 * tui/tui-regs.c (tui_show_registers): Use new name for
7885 tui_set_layout_for_display_command.
7886 * tui/tui.h (tui_set_layout_for_display_command): Rename
7887 declaration to...
7888 (tui_set_layout_by_name): ...this.
7889 * printcmd.c (display_command): Remove tui related layout call,
7890 and reindent.
7891
7892 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7893
7894 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7895 (handle_inferior_event): New function.
7896
7897 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7898
7899 * ada-lang.c (to_fixed_array_type): Rename local variable
7900 typename into type_name.
7901
7902 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7903
7904 Fix ASAN crash for gdb.compile/compile.exp.
7905 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7906
7907 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7908
7909 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7910 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7911 * compile/compile-object-load.c (setup_sections, compile_object_load):
7912 Likewise.
7913 * compile/compile.c (compile_to_object): Likewise.
7914
7915 2015-05-16 Doug Evans <xdje42@gmail.com>
7916
7917 * NEWS: Mention support for unbuffered Guile memory ports.
7918 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7919 (ioscm_lseek_address): Improve overflow calculation.
7920 (gdbscm_memory_port_fill_input): Add assert.
7921 (gdbscm_memory_port_write): Handle unbuffered ports.
7922 Handle large writes identical to Guile's fport_write.
7923 (gdbscm_memory_port_seek): Fix seeking past end check.
7924 (gdbscm_memory_port_close): Handle closing unbuffered port.
7925 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7926 (ioscm_init_memory_port): Handle unbuffered ports.
7927 (ioscm_reinit_memory_port): Ditto.
7928 (ioscm_init_memory_port): Update size calculation.
7929 (gdbscm_open_memory): Support zero sized ports.
7930
7931 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7932
7933 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7934 variable compiler warnings.
7935
7936 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7937
7938 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7939
7940 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7941 Phil Muldoon <pmuldoon@redhat.com>
7942
7943 * NEWS (Changes since GDB 7.9): Add compile print.
7944 * compile/compile-c-support.c (add_code_header, add_code_footer)
7945 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7946 COMPILE_I_PRINT_VALUE_SCOPE.
7947 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7948 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7949 New.
7950 * compile/compile-object-load.c: Include block.h.
7951 (get_out_value_type): New function.
7952 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7953 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7954 OUT_VALUE_TYPE.
7955 * compile/compile-object-load.h (struct compile_module): Add fields
7956 out_value_addr and out_value_type.
7957 * compile/compile-object-run.c: Include valprint.h and compile.h.
7958 (struct do_module_cleanup): Add fields out_value_addr and
7959 out_value_type.
7960 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7961 COMPILE_I_PRINT_VALUE_SCOPE.
7962 (compile_object_run): Propagate out_value_addr and out_value_type.
7963 Pass OUT_VALUE_ADDR.
7964 * compile/compile.c: Include valprint.h.
7965 (compile_print_value, compile_print_command): New functions.
7966 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7967 (_initialize_compile): Update compile code help text. Install
7968 compile_print_command.
7969 * compile/compile.h (compile_print_value): New prototype.
7970 * defs.h (enum compile_i_scope_types): Add
7971 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7972
7973 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7974
7975 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7976 Rely on its parameter count.
7977 (compile_object_load): Replace lookup_minimal_symbol_text by
7978 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7979 return value.
7980 * compile/compile-object-load.h (struct compile_module): Replace
7981 func_addr by func_sym.
7982 * compile/compile-object-run.c: Include block.h.
7983 (compile_object_run): Reset module variable after it is freed. Use
7984 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7985
7986 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7989 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7990 (c_compute_program): Call generate_register_struct after typedefs.
7991 * compile/compile-loc2c.c (push, pushf_register_address)
7992 (pushf_register): Cast to GCC_UINTPTR.
7993 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7994 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7995 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7996 * compile/compile.c (_initialize_compile): Enable warnings for
7997 COMPILE_ARGS.
7998
7999 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8000
8001 * cli/cli-script.c (execute_control_command): Update
8002 eval_compile_command caller.
8003 * compile/compile-object-load.c (compile_object_load): Add parameters
8004 scope and scope_data. Set them.
8005 * compile/compile-object-load.h (struct compile_module): Add fields
8006 scope and scope_data.
8007 (compile_object_load): Add parameters scope and scope_data.
8008 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8009 scope and scope_data.
8010 (compile_object_run): Propagate the fields scope and scope_data.
8011 * compile/compile.c (compile_file_command, compile_code_command):
8012 Update eval_compile_command callers.
8013 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8014 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8015 * defs.h (struct command_line): Add field scope_data.
8016
8017 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8018
8019 * printcmd.c (struct format_data): Move it to valprint.h.
8020 (print_command_parse_format, print_value): New functions from ...
8021 (print_command_1): ... here. Call them.
8022 * valprint.h (struct format_data): Move it here from printcmd.c.
8023 (print_command_parse_format, print_value): New declarations.
8024
8025 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8026
8027 * compile/compile-object-load.c (compile_object_load): Add
8028 COMPILE_DEBUG message.
8029
8030 2015-05-15 Jerome Guitton <guitton@adacore.com>
8031
8032 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8033 index to get element instead of enum value.
8034 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8035 of index to compute length, but enum values to compute bounds.
8036 (ada_array_length): Use enum position of index instead of enum value.
8037 (pos_atr): Move position computation to...
8038 (ada_evaluate_subexp): Use enum values to compute bounds.
8039 * gdbtypes.c (discrete_position): ...this new function.
8040 * gdbtypes.h (discrete_position): New function declaration.
8041 * valprint.c (val_print_array_elements): Call discrete_position
8042 to handle array indexed by non-contiguous enumeration types.
8043
8044 2015-05-15 Jerome Guitton <guitton@adacore.com>
8045
8046 * ada-lang.c (find_parallel_type_by_descriptive_type):
8047 Go through typedefs during lookup.
8048 (to_fixed_array_type): Add support for non-bit packed arrays
8049 as variable-length fields.
8050
8051 2015-05-15 Pedro Alves <palves@redhat.com>
8052 Simon Marchi <simon.marchi@ericsson.com>
8053
8054 * event-loop.c (gdb_notifier) <next_file_handler,
8055 next_poll_fds_index>: New fields.
8056 (get_next_file_handler_to_handle_and_advance): New function.
8057 (delete_file_handler): If deleting the next file handler to
8058 handle, advance to the next file handler.
8059 (gdb_wait_for_event): Bail early if no event fired. Poll file
8060 handlers in round-robin fashion.
8061
8062 2015-05-15 Pedro Alves <palves@redhat.com>
8063
8064 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8065 'private' to 'priv'.
8066
8067 2015-05-15 Pedro Alves <palves@redhat.com>
8068
8069 * nat/linux-nat.h: Include "target/waitstatus.h".
8070
8071 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8072
8073 * python/py-unwind.c (struct reg_info): Move out of ...
8074 (struct cached_frame_info): ... this scope.
8075 (pending_frame_object_type, unwind_info_object_type): Make extern.
8076
8077 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8078
8079 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8080 accumSize is never negative.
8081
8082 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8083
8084 * tui/tui-command.c: Remove include of <ctype.h>.
8085 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8086
8087 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8088
8089 * dwarf2read.c (die_needs_namespace): Return 1 for
8090 DW_TAG_inlined_subroutine.
8091
8092 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8093
8094 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8095 (regcache_cpy_no_passthrough): Make it static, add function comment.
8096 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8097 (regcache_cpy_no_passthrough): Remove declaration.
8098
8099 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8100
8101 * gdbthread.h (struct thread_control_state): Update comment for
8102 proceed_to_finish.
8103 * infcall.c (run_inferior_call): Update comment about
8104 proceed_to_finish.
8105 * infcmd.c (get_return_value): Update comment about stop_registers.
8106 (finish_forward): Update comment about proceed_to_finish.
8107 * infrun.c (stop_registers): Remove.
8108 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8109 * infrun.h (stop_registers): Remove.
8110
8111 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8112
8113 * infcall.c (struct dummy_frame_context_saver)
8114 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8115 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8116 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8117 New.
8118 (call_function_by_hand_dummy): Move discard_cleanups of
8119 inf_status_cleanup before dummy_frame_push. Call
8120 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8121 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8122 * infcall.h (struct dummy_frame_context_saver)
8123 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8124 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8125 New declarations.
8126 * infcmd.c: Include infcall.h.
8127 (get_return_value): Add parameter ctx_saver, use it instead of
8128 stop_registers.
8129 (print_return_value): Add parameter ctx_saver, pass it.
8130 (struct finish_command_continuation_args): Add field ctx_saver.
8131 (finish_command_continuation): Update print_return_value caller.
8132 (finish_command_continuation_free_arg): Free also ctx_saver.
8133 (finish_forward): Call dummy_frame_context_saver_setup.
8134 * inferior.h (struct dummy_frame_context_saver): New declaration.
8135 (get_return_value): Add parameter ctx_saver.
8136 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8137 get_return_value caller.
8138
8139 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8140
8141 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8142 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8143 (remove_dummy_frame): Process dtor_list.
8144 (pop_dummy_frame): Process dtor_list.
8145 (register_dummy_frame_dtor): Maintain dtor_list.
8146 (find_dummy_frame_dtor): Handle dtor_list.
8147 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8148 Update comments.
8149
8150 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8151
8152 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8153 registers_valid.
8154 (compile_object_run): Update do_module_cleanup caller.
8155 * dummy-frame.c: Include infcall.h.
8156 (struct dummy_frame): Update dtor comment.
8157 (remove_dummy_frame): Call dtor.
8158 (pop_dummy_frame): Update dtor caller.
8159 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8160 registers_valid.
8161
8162 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8163
8164 GDB 7.9.1 released.
8165
8166 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8167
8168 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8169 Xmethods now being able to specify a result type to that new
8170 sectioin.
8171
8172 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8173
8174 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8175 first before resizing the window.
8176 * tui/tui.c (tui_enable): Likewise.
8177
8178 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8179
8180 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8181 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8182 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8183 dummy_dtor parameter.
8184 * infcall.h: Include dummy-frame.h.
8185 (call_function_by_hand_dummy_dtor_ftype): Remove.
8186 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8187 parameter.
8188
8189 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8190
8191 PR gdb/17820
8192 * top.c (history_size_setshow_var): Change type to signed.
8193 Initialize to -2. Update documentation.
8194 (set_readline_history_size): Define.
8195 (set_history_size_command): Use it. Remove logic for handling
8196 out-of-range sizes.
8197 (init_history): Use set_readline_history_size(). Test for a
8198 value of -2 instead of 0 when determining whether to set a
8199 default history size.
8200 (init_main): Decode the argument of the "size" command as a
8201 zuinteger_unlimited.
8202
8203 2015-05-12 Doug Evans <dje@google.com>
8204
8205 * dwarf2read.c (struct file_entry): Tweak comments.
8206 (get_debug_line_section): Tweak comments.
8207
8208 2015-05-12 Don Breazeal <donb@codesourcery.com>
8209
8210 * NEWS: Announce fork support in the RSP and support
8211 for fork debugging in extended mode.
8212
8213 2015-05-12 Don Breazeal <donb@codesourcery.com>
8214
8215 * remote.c (remote_insert_fork_catchpoint): New function.
8216 (remote_remove_fork_catchpoint): New function.
8217 (remote_insert_vfork_catchpoint): New function.
8218 (remote_remove_vfork_catchpoint): New function.
8219 (pending_fork_parent_callback): New function.
8220 (remove_new_fork_child): New function.
8221 (remote_update_thread_list): Call remote_notif_get_pending_events
8222 and remove_new_fork_child.
8223 (extended_remote_kill): Kill fork child when killing the
8224 parent before follow_fork completes.
8225 (init_extended_remote_ops): Initialize target vector with
8226 new fork catchpoint functions.
8227
8228 2015-05-12 Don Breazeal <donb@codesourcery.com>
8229
8230 * remote.c (remove_vfork_event_p): New function.
8231 (remote_follow_fork): Add vfork event type to event checking.
8232 (remote_parse_stop_reply): New stop reasons "vfork" and
8233 "vforkdone" for RSP 'T' Stop Reply Packet.
8234
8235 2015-05-12 Don Breazeal <donb@codesourcery.com>
8236
8237 * linux-nat.c (linux_nat_ptrace_options): New function.
8238 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8239 Call linux_nat_ptrace_options and use different argument to
8240 linux_enable_event_reporting.
8241 (_initialize_linux_nat): Delete call to
8242 linux_ptrace_set_additional_flags.
8243 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8244 supported_ptrace_options.
8245 (additional_flags): Delete variable.
8246 (linux_check_ptrace_features): Use supported_ptrace_options.
8247 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8248 Likewise, and remove additional_flags check.
8249 (linux_enable_event_reporting): Change 'attached' argument to
8250 'options'. Use supported_ptrace_options.
8251 (ptrace_supports_feature): Change comment. Use
8252 supported_ptrace_options.
8253 (linux_ptrace_set_additional_flags): Delete function.
8254 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8255 Delete function prototype.
8256 * remote.c (remote_fork_event_p): New function.
8257 (remote_detach_pid): New function.
8258 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8259 if doing detach-on-fork.
8260 (remote_follow_fork): New function.
8261 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8262 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8263 (init_extended_remote_ops): Initialize to_follow_fork.
8264
8265 2015-05-12 Don Breazeal <donb@codesourcery.com>
8266
8267 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8268 from static to extern.
8269 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8270 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8271 * PACKET_vfork_event_feature>: New enumeration constants.
8272 (remote_protocol_features): Add table entries for new packets.
8273 (remote_query_supported): Add new feature queries to qSupported
8274 packet.
8275
8276 2015-05-12 Gary Benson <gbenson@redhat.com>
8277
8278 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8279 for fake PIDs as well as real ones.
8280 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8281
8282 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8283
8284 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8285 * python/py-value.c (valpy_reference_value): New function.
8286 (valpy_const_value): Likewise.
8287 (value_object_methods): Add new methods.
8288 * value.c (make_cv_value): New function.
8289 * value.h (make_cv_value): Declare.
8290
8291 2015-05-08 Yao Qi <yao@codesourcery.com>
8292 Sandra Loosemore <sandra@codesourcery.com>
8293
8294 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8295 to 'lh->include_dirs' before accessing to it.
8296 (psymtab_include_file_name): Likewise.
8297 (dwarf_decode_lines_1): Likewise.
8298 (dwarf_decode_lines): Likewise.
8299 (file_file_name): Likewise.
8300
8301 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8302
8303 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8304 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8305 (nios2_linux_rt_sigreturn_init): Adjust base address of
8306 register save area.
8307
8308 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8309
8310 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8311 "trap 31" as the breakpoint instruction on all targets.
8312
8313 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8314
8315 * infcmd.c (print_return_value): Remove unused declaration.
8316
8317 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8318
8319 * dwarf2read.c (attr_to_dynamic_prop)
8320 <DW_AT_data_member_location>: Use read_type_die isntead of
8321 get_die_type.
8322
8323 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8324
8325 * ada-lang.c (ada_convert_actual): Add handling of formals
8326 passed inside an aligner type.
8327
8328 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8329
8330 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8331
8332 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8333
8334 PR python/18291
8335 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8336 Print xmethod matcher status.
8337
8338 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8339
8340 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8341 register in the regcache when treating the PSWM register, and vice
8342 versa.
8343
8344 2015-05-07 Gary Benson <gbenson@redhat.com>
8345
8346 * linux-thread-db.c (struct thread_db_info)
8347 <td_ta_map_id2thr_p>: Remove field.
8348 (try_thread_db_load_1): Remove initialization for the above.
8349
8350 2015-05-07 Gary Benson <gbenson@redhat.com>
8351
8352 * linux-thread-db.c (struct thread_db_info)
8353 <td_thr_validate_p>: Remove field.
8354 (try_thread_db_load_1): Remove initialization for the above.
8355
8356 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8357
8358 * compile/compile-object-load.c (compile_object_load): Support
8359 mst_text_gnu_ifunc.
8360
8361 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8362
8363 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8364 const. Use new variables for the const compatibility.
8365 (eval_compile_command): Make the cmd_string parameter const.
8366 * compile/compile.h (eval_compile_command): Make the cmd_string
8367 parameter const.
8368
8369 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8370
8371 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8372 comment.
8373 * top.c (deprecated_init_ui_hook): Delete.
8374 (gdb_init): Remove handling of deprecated_init_ui_hook.
8375 * interps.c (clear_interpreter_hooks): Remove handling of
8376 deprecated_init_ui_hook.
8377 * main.c (captured_main): Update comment.
8378
8379 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8380
8381 * solib.c (_initialize_solib): Add "info dll" alias creation.
8382 * windows-nat.c (set_windows_aliases): Delete.
8383 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8384 assignment.
8385 * NEWS: Add news entry about "info dll" now being available
8386 on all platforms.
8387
8388 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8389
8390 * ada-lang.c (value_assign_to_component): Reformat and improve
8391 documentation. Remove all trailing spaces.
8392
8393 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8394
8395 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8396 Stop counting inlined frames as soon as an out-of-line function
8397 is found.
8398
8399 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8400
8401 * dwarf2read.c (inherit_abstract_dies): Skip
8402 DW_TAG_GNU_call_site dies while inheriting children of an
8403 abstract DIE into a scope.
8404 (read_lexical_block_scope): Inherit abstract DIE's for
8405 lexical scopes.
8406
8407 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8408
8409 * ada-valprint.c (val_print_packed_array_elements): Delete
8410 variable "len". Add a type-length check when comparing two
8411 consecutive elements of the array. Use the element's actual
8412 length in call to value_contents_eq.
8413 * ada-lang.c (ada_value_primitive_packed_val): Always return
8414 a value whose type has been resolved.
8415
8416 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8417
8418 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8419 BIT_SIZE and LEN if the size of the resolved type is smaller
8420 than BIT_SIZE * HOST_CHAR_BIT.
8421
8422 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8423
8424 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8425 correct address in call to value_at. Adjust call to
8426 value_address accordingly.
8427
8428 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8429
8430 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8431 to print it.
8432
8433 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8434
8435 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8436 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8437 pinfo->valaddr.
8438 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8439 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8440 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8441 Add handling of addr_stack->valaddr.
8442 (resolve_dynamic_type): Add "valaddr" parameter.
8443 Set pinfo.valaddr field.
8444 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8445 resolve_dynamic_type.
8446 (ada_discrete_type_low_bound): Likewise.
8447 * findvar.c (default_read_var_value): Likewise.
8448 * value.c (value_from_contents_and_address): Likewise.
8449
8450 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8451
8452 * gdbtypes.c (resolve_dynamic_array): Use
8453 create_array_type_with_stride instead of create_array_type.
8454
8455 2015-04-30 DJ Delorie <dj@redhat.com>
8456
8457 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8458 rl78_decode_opcode
8459
8460 2015-04-29 Doug Evans <dje@google.com>
8461
8462 PR python/18285
8463 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8464 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8465 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8466 * extension-priv.h (struct extension_language_ops)
8467 <get_xmethod_result_type>: New member.
8468 * extension.c (get_xmethod_result_type): New function.
8469 * extension.h (get_xmethod_result_type): Declare.
8470 * python/py-xmethods.c (get_result_type_method_name): New static
8471 global.
8472 (py_get_result_type_method_name): Ditto.
8473 (gdbpy_get_xmethod_result_type): New function.
8474 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8475 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8476 * python/python.c (python_extension_ops): Add
8477 gdbpy_get_xmethod_result_type.
8478 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8479 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8480 xmethods.
8481 (value_x_unop): Ditto.
8482 * value.c (result_type_of_xmethod): New function.
8483 * value.h (result_type_of_xmethod): Declare.
8484
8485 2015-04-29 Gary Benson <gbenson@redhat.com>
8486
8487 * solib.c (solib_find_1): Allow fd argument to be NULL.
8488 (exec_file_find): Update comment.
8489 (solib_find): Likewise.
8490 * exec.c (exec_file_locate_attach): Use NULL as fd
8491 argument to exec_file_find to avoid having to close
8492 the opened file.
8493 * infrun.c (follow_exec): Likewise.
8494
8495 2015-04-28 Doug Evans <dje@google.com>
8496
8497 PR python/18299
8498 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8499 name or __name__ attributes. Handle gdb module as first argument.
8500
8501 2015-04-28 Doug Evans <dje@google.com>
8502
8503 PR python/18089
8504 * python/py-prettyprint.c (print_children): Verify result of children
8505 iterator. Provide better error message.
8506 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8507 * python/python.c (gdbpy_print_python_errors_p): New function.
8508
8509 2015-04-28 Doug Evans <dje@google.com>
8510
8511 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8512
8513 2015-04-28 Sasha Smundak <asmundak@google.com>
8514
8515 * NEWS: Mention gdb.Type.optimized_out method.
8516 * python/py-type.c (typy_optimized_out): New function.
8517
8518 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8519
8520 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8521
8522 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8523
8524 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8525 (initialize_utils): Move call of init_page_info() to ...
8526 * top.c (gdb_init): ... here.
8527
8528 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8529
8530 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8531 (tui_sigwinch_handler): Still update our idea of
8532 the terminal's width and height even when TUI is not active.
8533
8534 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8535
8536 * utils.h (set_screen_width_and_height): Declare.
8537 * utils.c (set_screen_width_and_height): Define.
8538 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8539
8540 2015-04-28 Gary Benson <gbenson@redhat.com>
8541
8542 * infrun.c (solist.h): New include.
8543 (follow_exec): Use exec_file_find to prefix execd_pathname
8544 with gdb_sysroot.
8545
8546 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8547
8548 * tui/tui-source.c (tui_set_source_content): Avoid calling
8549 strcpy() when offset is 0.
8550
8551 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8552
8553 PR gdb/18155
8554 * tui/tui-data.c (tui_free_window): Don't free the locator
8555 window when passed an SRC_WIN or a DISASSEM_WIN.
8556
8557 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8558
8559 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8560 (tui_win_content): Move declaration.
8561 (struct tui_gen_win_info): Give 'content' field the
8562 type tui_win_content.
8563 * tui/tui-data.c (init_content_element): Remove redundant and
8564 erroneous casts.
8565 (tui_add_content_elements): Remove erroneous cast.
8566 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8567 casts.
8568 (tui_get_begin_asm_address): Likewise.
8569 * tui/tui-regs.c (tui_show_registers): Likewise.
8570 (tui_show_register_group): Likewise.
8571 (tui_display_registers_from): Likewise.
8572 (tui_check_register_values): Likewise.
8573 * tui/tui-source.c (tui_set_source_content): Likewise.
8574 (tui_set_source_content_nil): Likewise.
8575 (tui_source_is_displayed): Likewise.
8576 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8577 (tui_set_locator_fullname): Likewise.
8578 (tui_set_locator_info): Likewise.
8579 (tui_show_frame_info): Likewise.
8580 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8581 (tui_show_source_line): Likewise.
8582 (tui_horizontal_source_scroll): Likewise.
8583 (tui_update_breakpoint_info): Likewise.
8584 (tui_set_exec_info_content): Likewise.
8585 (tui_show_exec_info_content): Likewise.
8586 (tui_alloc_source_buffer): Likewise.
8587 (tui_line_is_displayed): Likewise.
8588 (tui_addr_is_displayed): Likewise.
8589
8590 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8591
8592 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8593 event if PL_FLAG_EXEC is set.
8594 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8595 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8596 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8597 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8598 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8599
8600 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8601
8602 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8603 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8604 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8605 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8606 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8607 [PT_LWPINFO] (fbsd_wait): New function.
8608 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8609 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8610 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8611 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8612 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8613 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8614 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8615 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8616 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8617 "fbsd_wait".
8618 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8619 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8620 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8621 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8622 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8623 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8624 Set "to_post_attach" to "fbsd_post_attach".
8625
8626 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8627
8628 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8629 (fbsd_find_memory_regions): Mark static.
8630 (fbsd_nat_add_target): New function.
8631 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8632 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8633 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8634 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8635 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8636 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8637
8638 2015-04-27 Gary Benson <gbenson@redhat.com>
8639
8640 * objfiles.c (allocate_objfile): Do not attempt to expand name
8641 if name is a "target:" filename.
8642 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8643 to load auto-load scripts for objfiles with "target:" filenames.
8644
8645 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8646
8647 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8648 (enum s390_vector_abi_kind): New enum.
8649 (struct gdbarch_tdep)<vector_abi>: New field.
8650 (s390_effective_inner_type): Add parameter min_size. Stop
8651 unwrapping if the inner type is smaller than min_size.
8652 (s390_function_arg_float): Adjust call to
8653 s390_effective_inner_type.
8654 (s390_function_arg_vector): New function.
8655 (s390_function_arg_integer): Adjust comment.
8656 (struct s390_arg_state)<vr>: New field.
8657 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8658 arguments according to vector ABI when appropriate.
8659 (s390_push_dummy_call): Initialize the argument state's field
8660 'vr'. Adjust calls to s390_handle_arg.
8661 (s390_register_return_value): Handle vector return values.
8662 (s390_return_value): Apply the "register" return value convention
8663 to a vector when appropriate.
8664 (s390_gdbarch_init): Initialize tdep->vector_abi.
8665 * NEWS: Announce S390 vector ABI support.
8666
8667 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8668
8669 * s390-linux-tdep.c (s390_return_value_convention): Remove
8670 function. Inline its logic...
8671 (s390_return_value): ...here. Instead, move the handling of the
8672 "register" return value convention...
8673 (s390_register_return_value): ...here. New function.
8674
8675 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8676
8677 * s390-linux-tdep.c
8678 (is_float_singleton): Remove function. Move the "singleton" part
8679 of the logic...
8680 (s390_effective_inner_type): ...here. New function.
8681 (is_float_like): Remove function. Inline its logic...
8682 (s390_function_arg_float): ...here.
8683 (is_pointer_like, is_integer_like, is_struct_like): Remove
8684 functions. Inline their logic...
8685 (s390_function_arg_integer): ...here.
8686 (s390_function_arg_pass_by_reference): Remove function.
8687 (extend_simple_arg): Remove function.
8688 (alignment_of): Remove function.
8689 (struct s390_arg_state): New structure.
8690 (s390_handle_arg): New function.
8691 (s390_push_dummy_call): Move parameter placement logic to the new
8692 function s390_handle_arg. Call it for calculating the stack area
8693 sizes first, and again for actually writing the parameters.
8694
8695 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8696
8697 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8698 false if the argument is zero.
8699
8700 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8701
8702 * ada-lang.c (template_to_static_fixed_type): Return input type
8703 when it is already fixed. Cache the input type itself when not
8704 creating a static fixed copy. Make it explicit that we never
8705 molestate the input type.
8706 * gdbtypes.c (resolve_dynamic_struct): Reset the
8707 TYPE_TARGET_TYPE field for resolved copies.
8708
8709 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8710
8711 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8712 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8713 (template_to_static_fixed_type): Call ada_check_typedef only
8714 when necessary.
8715
8716 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8717
8718 * cli/cli-dump.c (srec_dump_command): Add internationalization
8719 mark ups.
8720 (ihex_dump_command): Likewise.
8721 (tekhex_dump_command): Likewise.
8722 (binary_dump_command): Likewise.
8723 (binary_append_command): Likewise.
8724
8725 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * cli/cli-dump.c (verilog_cmdlist): New variable.
8728 (dump_verilog_memory): New function.
8729 (dump_verilog_value): New function.
8730 (verilog_dump_command): New function.
8731 (_initialize_cli_dump): Add new commands to support verilog dump
8732 format.
8733 * NEWS: Add entry for "dump verilog".
8734
8735 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8736
8737 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8738 descriptive type when there is none.
8739
8740 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8741
8742 * tui/tui-win.c (tui_async_resize_screen): Call
8743 rl_resize_terminal().
8744
8745 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8746
8747 * windows-nat.c (handle_output_debug_string): Don't change
8748 current_event.dwThreadId.
8749 (get_windows_debug_event): Use thread_id, rather than relying on
8750 current_event.dwThreadId being changed.
8751
8752 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8753
8754 * windows-nat.c (windows_continue): Report an error if
8755 ContinueDebugEvent() fails.
8756
8757 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8758
8759 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8760
8761 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8762
8763 * windows-nat.c (get_windows_debug_event): Replace retval with
8764 thread_id throughout. Update stale comment.
8765
8766 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8767
8768 * windows-nat.c (get_windows_debug_event): Don't use ternary
8769 conditional operator.
8770
8771 2015-04-21 Pierre Muller <muller@sourceware.org>
8772
8773 PR pascal/17815
8774 p-exp.y (yylex): Reorganize code to return the matched pattern
8775 for a field of this.
8776
8777 2015-04-21 Gary Benson <gbenson@redhat.com>
8778
8779 * common/fileio.h (fileio_to_host_openflags): New declaration.
8780 * common/fileio.c (fcntl.h): New include.
8781 (fileio_to_host_openflags): New function, factored out from...
8782 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8783 Single use updated.
8784
8785 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8786
8787 * rl78-tdep.c (RL78_SP_ADDR): Define.
8788 (opc_reg_to_gdb_regnum): New static function.
8789 (rl78_analyze_prologue): Recognize instructions forming slightly
8790 more interesting prologues.
8791
8792 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8793
8794 Revert:
8795 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8796 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8797 TYPE_CODE_REF types so that they are not considered as dynamic
8798 depending on the referenced type.
8799 (resolve_dynamic_type_internal): Likewise.
8800
8801 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8802
8803 Revert:
8804 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8805 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8806 "top_level" parameter.
8807 (resolve_dynamic_type_internal): Remove the unused "top_level"
8808 parameter. Update call to is_dynamic_type_internal.
8809 (is_dynamic_type): Update call to is_dynamic_type_internal.
8810 (resolve_dynamic_range): Update call to
8811 resolve_dynamic_type_internal.
8812 (resolve_dynamic_union): Likewise.
8813 (resolve_dynamic_struct): Likewise.
8814 (resolve_dynamic_type): Likewise.
8815
8816 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8817
8818 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8819 xmalloc.
8820
8821 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8822
8823 * reply_mig_hack.awk: Robustify parsing.
8824
8825 * reply_mig_hack.awk: Don't bother to declare an intermediate
8826 function pointer variable.
8827
8828 2015-04-17 Doug Evans <dje@google.com>
8829
8830 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8831 to "exec_displacement" to avoid confusion with inner use of the name.
8832
8833 2015-04-17 Pedro Alves <palves@redhat.com>
8834
8835 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8836 if HW point of TYPE isn't supported.
8837
8838 2015-04-17 Yao Qi <yao.qi@linaro.org>
8839 Pedro Alves <palves@redhat.com>
8840
8841 * target.h (target_can_use_hardware_watchpoint): Update comments.
8842 Remove trailing ";".
8843
8844 2015-04-17 Gary Benson <gbenson@redhat.com>
8845
8846 * remote.c (remote_add_inferior): New argument try_open_exec.
8847 If nonzero, attempt to open the inferior's executable file as
8848 the main executable if no main executable is open already.
8849 All callers updated.
8850 * NEWS: Mention that GDB now supports automatic location and
8851 retrieval of executable + files from remote targets.
8852
8853 2015-04-17 Gary Benson <gbenson@redhat.com>
8854
8855 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8856 * remote.c (PACKET_qXfer_exec_file): Likewise.
8857 (remote_protocol_features): Register the
8858 "qXfer:exec-file:read" feature.
8859 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8860 (remote_pid_to_exec_file): New function.
8861 (init_remote_ops): Initialize to_pid_to_exec_file.
8862 (_initialize_remote): Register new "set/show remote
8863 pid-to-exec-file-packet" command.
8864 * NEWS: Announce new qXfer:exec-file:read packet.
8865
8866 2015-04-17 Gary Benson <gbenson@redhat.com>
8867
8868 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8869 New declaration.
8870 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8871 New function, factored out from...
8872 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8873
8874 2015-04-17 Gary Benson <gbenson@redhat.com>
8875
8876 * exec.c (solist.h): New include.
8877 (exec_file_locate_attach): Prefix absolute executable
8878 paths with gdb_sysroot if set.
8879 * NEWS: Mention that executable paths may be prepended
8880 with sysroot.
8881
8882 2015-04-17 Gary Benson <gbenson@redhat.com>
8883
8884 * solist.h (exec_file_find): New declaration.
8885 * solib.c (solib_find_1): New function, factored out from...
8886 (solib_find): ...here.
8887 (exec_file_find): New function.
8888
8889 2015-04-17 Gary Benson <gbenson@redhat.com>
8890
8891 * gdbcore.h (exec_file_locate_attach): New declaration.
8892 * exec.c (exec_file_locate_attach): New function, factored
8893 out from...
8894 * infcmd.c (attach_command_post_wait): ...here.
8895
8896 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8897
8898 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8899
8900 2015-04-16 Yao Qi <yao.qi@linaro.org>
8901
8902 * infrun.c (maybe_software_singlestep): Declare.
8903 (displaced_step_fixup): Call maybe_software_singlestep.
8904
8905 2015-04-15 Doug Evans <dje@google.com>
8906
8907 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8908
8909 2015-04-15 Doug Evans <dje@google.com>
8910
8911 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8912
8913 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8914
8915 * python/lib/gdb/command/unwinders.py: Add parentheses.
8916
8917 2015-04-15 Yao Qi <yao.qi@linaro.org>
8918
8919 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8920
8921 2015-04-15 Yao Qi <yao.qi@linaro.org>
8922
8923 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8924
8925 2015-04-15 Yao Qi <yao.qi@linaro.org>
8926
8927 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8928 dsc->insn_size instead of 4.
8929
8930 2015-04-14 Gary Benson <gbenson@redhat.com>
8931
8932 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8933 * minidebug.c (lzma_stat): Likewise.
8934 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8935 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8936
8937 2015-04-13 Stan Shebs <stanshebs@google.com>
8938
8939 * MAINTAINERS: Update my email address.
8940
8941 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8942
8943 * amd64-tdep.c (amd64_target_description): New function.
8944 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8945 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8946 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8947 x86 extended save area.
8948 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8949 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8950 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8951 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8952 "amd64fbsd_read_description".
8953 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8954 (amd64fbsd_supply_xstateregset): New function.
8955 (amd64fbsd_collect_xstateregset): New function.
8956 Add "amd64fbsd_xstateregset".
8957 (amd64fbsd_iterate_over_regset_sections): New function.
8958 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8959 "I386_FBSD_XSAVE_XCR0_OFFSET".
8960 Add "iterate_over_regset_sections" gdbarch method.
8961 Add "core_read_description" gdbarch method.
8962 * i386-tdep.c (i386_target_description): New function.
8963 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8964 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8965 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8966 x86 extended save area.
8967 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8968 * i386bsd-nat.h: Export i386bsd_xsave_len.
8969 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8970 (_initialize_i386fbsd_nat): Set "to_read_description" to
8971 "i386fbsd_read_description".
8972 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8973 (i386fbsd_core_read_description): New function.
8974 (i386fbsd_supply_xstateregset): New function.
8975 (i386fbsd_collect_xstateregset): New function.
8976 Add "i386fbsd_xstateregset".
8977 (i386fbsd_iterate_over_regset_sections): New function.
8978 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8979 "I386_FBSD_XSAVE_XCR0_OFFSET".
8980 Add "iterate_over_regset_sections" gdbarch method.
8981 Add "core_read_description" gdbarch method.
8982 * i386fbsd-tdep.h: New file.
8983
8984 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8985
8986 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8987 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8988 conditional.
8989 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8990 and lb.
8991 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8992 va.
8993 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8994 conditional.
8995 * defs.h (xdb_commands): Remove declaration.
8996 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8997 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8998 * infcmd.c (run_no_args_command, go_command): Remove.
8999 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9000 * infrun.c (xdb_handle_command): Remove.
9001 (_initialize_infrun): Remove xdb_commands for lz and z.
9002 * main.c (xdb_commands): Remove variable.
9003 (captured_main): Remove "xdb" from long_options.
9004 (print_gdb_help): Remove --xdb from help.
9005 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9006 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9007 * stack.c (backtrace_full_command, args_plus_locals_info)
9008 (current_frame_command): Remove.
9009 (_initialize_stack): Remove xdb_commands for t, T and l.
9010 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9011 * thread.c (_initialize_thread): Remove xdb_commands condition.
9012 * tui/tui-layout.c (tui_toggle_layout_command)
9013 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9014 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9015 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9016 (tui_scroll_regs_backward_command): Remove.
9017 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9018 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9019 (_initialize_tui_win): Remove xdb_commands for U and w.
9020 * utils.c (pagination_on_command, pagination_off_command): Remove.
9021 (initialize_utils): Remove xdb_commands for am and sm.
9022
9023 2015-04-10 Pedro Alves <palves@redhat.com>
9024
9025 * infrun.c (displaced_step_fixup): Switch to the event ptid
9026 earlier. If the thread stopped for a watchpoint and the
9027 target/arch has non-continuable watchpoints, cancel the displaced
9028 step.
9029 (resume): Don't start a displaced step if in-line step-over info
9030 is valid.
9031
9032 2015-04-10 Pedro Alves <palves@redhat.com>
9033
9034 * infrun.c (displaced_step_in_progress): New function.
9035 (do_target_resume): Advise target to report all signals if
9036 displaced stepping.
9037
9038 2015-04-10 Pedro Alves <palves@redhat.com>
9039
9040 PR gdb/18216
9041 * infrun.c (process_event_stop_test): Don't assume a step-resume
9042 is set if tp->stepped_breakpoint is true.
9043
9044 2015-04-10 Yao Qi <yao.qi@linaro.org>
9045
9046 * arm-tdep.c (install_alu_reg): Update comment.
9047 (thumb_copy_alu_reg): Remove local variable rn. Update
9048 debugging message. Use r2 instead of r1 in the modified
9049 instruction.
9050
9051 2015-04-10 Pedro Alves <palves@redhat.com>
9052
9053 PR gdb/13858
9054 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9055 linux_displaced_step_location as gdbarch_displaced_step_location
9056 hook.
9057 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9058 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9059 * linux-tdep.c (linux_displaced_step_location): New function,
9060 based on ppc_linux_displaced_step_location.
9061 * linux-tdep.h (linux_displaced_step_location): New declaration.
9062 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9063 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9064 Delete.
9065 (ppc_linux_init_abi): Install linux_displaced_step_location as
9066 gdbarch_displaced_step_location hook, even without Cell/B.E..
9067 (_initialize_ppc_linux_tdep): Don't install
9068 ppc_linux_inferior_created as inferior_created observer.
9069 * s390-linux-tdep.c (s390_gdbarch_init): Install
9070 linux_displaced_step_location as gdbarch_displaced_step_location
9071 hook.
9072
9073 2015-04-09 Gary Benson <gbenson@redhat.com>
9074
9075 * common/common-remote-fileio.h: Rename to...
9076 * common/fileio.h: ...this. Update all references.
9077 (remote_fileio_to_fio_error): Rename to...
9078 (host_to_fileio_error): ...this.
9079 (remote_fileio_to_be): Rename to...
9080 (host_to_bigendian): ...this. Update all callers.
9081 (remote_fileio_to_fio_uint): Rename to...
9082 (host_to_fileio_uint): ...this. Update all callers.
9083 (remote_fileio_to_fio_time): Rename to...
9084 (host_to_fileio_time): ...this. Update all callers.
9085 (remote_fileio_to_fio_stat): Rename to...
9086 (host_to_fileio_stat): ...this.
9087 Update all references.
9088 * common/common-remote-fileio.c: Rename to...
9089 * common/fileio.c: ...this. Update all references.
9090 (remote_fileio_to_fio_error): Rename to...
9091 (host_to_fileio_error): ...this. Update all callers.
9092 (remote_fileio_mode_to_target): Rename to...
9093 (fileio_mode_pack): ...this. Update all callers.
9094 (remote_fileio_to_fio_mode): Rename to...
9095 (host_to_fileio_mode): ...this. Update all callers.
9096 (remote_fileio_to_fio_ulong): Rename to...
9097 (host_to_fileio_ulong): ...this. Update all callers.
9098 (remote_fileio_to_fio_stat): Rename to...
9099 (host_to_fileio_stat): ...this. Update all callers.
9100
9101 2015-04-09 Andy Wingo <wingo@igalia.com>
9102
9103 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9104 (frame_functions): Bind gdbscm_frame_read_register to
9105 frame-read-register.
9106 * guile/lib/gdb.scm (frame-read-register): Export.
9107
9108 2015-04-09 Gary Benson <gbenson@redhat.com>
9109
9110 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9111 New declaration.
9112 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9113 New function, factored out the named functions below.
9114 * inf-child.c (gdb/fileio.h): Remove include.
9115 (common-remote-fileio.h): New include.
9116 (inf_child_errno_to_fileio_error): Remove function. Update
9117 all callers to use remote_fileio_to_fio_error.
9118 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9119
9120 2015-04-09 Andy Wingo <wingo@igalia.com>
9121
9122 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9123
9124 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9125
9126 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9127 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9128 * configure: Regenerated.
9129
9130 2015-04-09 Pedro Alves <palves@redhat.com>
9131
9132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9133 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9134 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9135 * gnulib/import/Makefile.am: Update.
9136 * gnulib/import/Makefile.in: Update.
9137 * gnulib/import/m4/gnulib-cache.m4: Update.
9138 * gnulib/import/m4/gnulib-comp.m4: Update.
9139 * gnulib/import/m4/strtok_r.m4: New file.
9140 * gnulib/import/strtok_r.c: New file.
9141
9142 2015-04-09 Pedro Alves <palves@redhat.com>
9143
9144 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9145 "called too early to check prototype".
9146
9147 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9148
9149 PR python/16699
9150 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9151 use a caching mechanism. Adjust comments and code to reflect
9152 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9153 (cmdpy_completer_handle_brkchars): Adjust call to
9154 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9155 (cmdpy_completer): Likewise.
9156
9157 2015-04-08 Yao Qi <yao.qi@linaro.org>
9158
9159 * spu-tdep.c (spu_gdbarch_init): Don't call
9160 set_gdbarch_cannot_step_breakpoint.
9161
9162 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9163
9164 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9165
9166 2015-04-07 Pedro Alves <palves@redhat.com>
9167
9168 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9169 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9170 (delete_exited_threads): New declaration.
9171 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9172 * linux-nat.c (linux_nat_update_thread_list): New function.
9173 (linux_nat_add_target): Install it.
9174 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9175 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9176 (delete_exited_threads): New function.
9177
9178 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9179
9180 * infrun.c (resume) <displaced stepping debug output>: Get the
9181 leader thread's regcache, not resume_ptid's.
9182
9183 2015-04-06 Doug Evans <xdje42@gmail.com>
9184
9185 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9186 VAR_DOMAIN.
9187 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9188 Include symbol domain in debugging output.
9189
9190 2015-04-06 Pedro Alves <palves@redhat.com>
9191 Bernd Edlinger <bernd.edlinger@hotmail.de>
9192
9193 * configure.ac: Remove the mingw32-specific stub-termcap.o
9194 fallback, and instead fallback to the stub termcap on all hosts.
9195 * configure: Regenerate.
9196 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9197 symbols.
9198
9199 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9200
9201 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9202 "top_level" parameter.
9203 (resolve_dynamic_type_internal): Remove the unused "top_level"
9204 parameter. Update call to is_dynamic_type_internal.
9205 (is_dynamic_type): Update call to is_dynamic_type_internal.
9206 (resolve_dynamic_range): Update call to
9207 resolve_dynamic_type_internal.
9208 (resolve_dynamic_union): Likewise.
9209 (resolve_dynamic_struct): Likewise.
9210 (resolve_dynamic_type): Likewise.
9211
9212 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9213
9214 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9215 TYPE_CODE_REF types so that they are not considered as dynamic
9216 depending on the referenced type.
9217 (resolve_dynamic_type_internal): Likewise.
9218
9219 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9220
9221 * Makefile.in (top_srcdir): New.
9222 * configure: Regenerated.
9223
9224 2015-04-02 Gary Benson <gbenson@redhat.com>
9225
9226 * NEWS: Announce the new default sysroot of "target:".
9227
9228 2015-04-02 Gary Benson <gbenson@redhat.com>
9229
9230 * main.c (captured_main): Set gdb_sysroot to "target:"
9231 if not otherwise set.
9232
9233 2015-04-02 Gary Benson <gbenson@redhat.com>
9234
9235 * exec.c (exec_file_attach): Support "target:" filenames.
9236
9237 2015-04-02 Gary Benson <gbenson@redhat.com>
9238
9239 * solib.c (solib_find): Strip "target:" prefix from sysroot
9240 if accessing local files.
9241
9242 2015-04-02 Gary Benson <gbenson@redhat.com>
9243
9244 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9245 checks and error messages.
9246
9247 2015-04-02 Gary Benson <gbenson@redhat.com>
9248
9249 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9250 (remote_filename_p): Remove declaration.
9251 (remote_bfd_open): Likewise.
9252 * remote.c (remote_bfd_iovec_open): Remove function.
9253 (remote_bfd_iovec_close): Likewise.
9254 (remote_bfd_iovec_pread): Likewise.
9255 (remote_bfd_iovec_stat): Likewise.
9256 (remote_filename_p): Likewise.
9257 (remote_bfd_open): Likewise.
9258 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9259 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9260 (gdb_bfd_open_maybe_remote): Remove function.
9261 (symfile_bfd_open): Replace remote filename check with
9262 target filename check.
9263 (reread_symbols): Use gdb_bfd_open.
9264 * build-id.c (gdbcore.h): New include.
9265 (build_id_to_debug_bfd): Use gdb_bfd_open.
9266 * infcmd.c (attach_command_post_wait): Remove remote filename
9267 check.
9268 * solib.c (solib_find): Replace remote-specific handling with
9269 target-specific handling. Update comments where necessary.
9270 (solib_bfd_open): Replace remote-specific handling with
9271 target-specific handling.
9272 (gdb_sysroot_changed): New function.
9273 (_initialize_solib): Call the above when gdb_sysroot changes.
9274 * windows-tdep.c (gdbcore.h): New include.
9275 (windows_xfer_shared_library): Use gdb_bfd_open.
9276
9277 2015-04-02 Gary Benson <gbenson@redhat.com>
9278
9279 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9280 (is_target_filename): New declaration.
9281 (gdb_bfd_has_target_filename): Likewise.
9282 (gdb_bfd_open): Update documentation comment.
9283 * gdb_bfd.c (target.h): New include.
9284 (gdb/fileio.h): Likewise.
9285 (is_target_filename): New function.
9286 (gdb_bfd_has_target_filename): Likewise.
9287 (fileio_errno_to_host): Likewise.
9288 (gdb_bfd_iovec_fileio_open): Likewise.
9289 (gdb_bfd_iovec_fileio_pread): Likewise.
9290 (gdb_bfd_iovec_fileio_close): Likewise.
9291 (gdb_bfd_iovec_fileio_fstat): Likewise.
9292 (gdb_bfd_open): Use target fileio to access paths prefixed
9293 with "target:" where necessary.
9294
9295 2015-04-02 Gary Benson <gbenson@redhat.com>
9296
9297 * target.h (struct target_ops) <to_filesystem_is_local>:
9298 New field.
9299 (target_filesystem_is_local): New macro.
9300 * target-delegates.c: Regenerate.
9301 * remote.c (remote_filesystem_is_local): New function.
9302 (init_remote_ops): Initialize to_filesystem_is_local.
9303
9304 2015-04-02 Gary Benson <gbenson@redhat.com>
9305
9306 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9307 (target_fileio_fstat): New declaration.
9308 * target.c (target_fileio_fstat): New function.
9309 * inf-child.c (inf_child_fileio_fstat): Likewise.
9310 (inf_child_target): Initialize to_fileio_fstat.
9311 * remote.c (init_remote_ops): Likewise.
9312
9313 2015-04-01 Sasha Smundak <asmundak@google.com>
9314
9315 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9316 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9317 (py-unwind.o): New recipe.
9318 * NEWS: mention Python frame unwinding.
9319 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9320 gdb/unwinder.py and gdb/command/unwinder.py
9321 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9322 list.
9323 (execute_unwinders): New function.
9324 * python/lib/gdb/command/unwinders.py: New file.
9325 * python/lib/gdb/unwinder.py: New file.
9326 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9327 (objfpy_dealloc): Decrement frame_unwinders reference count.
9328 (objfpy_initialize): Create frame_unwinders list.
9329 (objfpy_get_frame_unwinders): New function.
9330 (objfpy_set_frame_unwinders): Ditto.
9331 (objfile_getset): Add frame_unwinders attribute to Objfile.
9332 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9333 (pspy_dealloc): Decrement frame_unwinders reference count.
9334 (pspy_initialize): Create frame_unwinders list.
9335 (pspy_get_frame_unwinders): New function.
9336 (pspy_set_frame_unwinders): Ditto.
9337 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9338 * python/py-unwind.c: New file.
9339 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9340 (objpy_get_frame_unwinders): New prototype.
9341 (gdbpy_initialize_unwind): New prototype.
9342 * python/python.c (gdbpy_apply_type_printers): Call
9343 gdbpy_initialize_unwind.
9344
9345 2015-04-01 Pedro Alves <palves@redhat.com>
9346
9347 * infrun.c (resume): Check currently_stepping after clearing
9348 stepped_breakpoint, not before.
9349
9350 2015-04-01 Pedro Alves <palves@redhat.com>
9351
9352 * infrun.c (print_target_wait_results): Print all the ptid
9353 elements.
9354
9355 2015-04-01 Pedro Alves <palves@redhat.com>
9356
9357 * infrun.c (keep_going): Also discard cleanups if inserting
9358 breakpoints fails.
9359
9360 2015-04-01 Pedro Alves <palves@redhat.com>
9361
9362 * infrun.c (wait_for_inferior): Install the
9363 finish_thread_state_cleanup cleanup across the whole function, not
9364 just around handle_inferior_event.
9365
9366 2015-04-01 Pedro Alves <palves@redhat.com>
9367
9368 * infrun.c (resume) <step past permanent breakpoint>: Use
9369 do_target_resume.
9370
9371 2015-04-01 Pedro Alves <palves@redhat.com>
9372
9373 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9374
9375 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9376
9377 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9378
9379 2015-04-01 Pedro Alves <palves@redhat.com>
9380
9381 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9382 list if it was marked exited.
9383
9384 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9385
9386 * configure: Regenerated.
9387
9388 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9389 Jan Kratochvil <jan.kratochvil@redhat.com>
9390 Oleg Nesterov <oleg@redhat.com>
9391
9392 PR corefiles/16092
9393 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9394 New enum identifying the various options of the coredump_filter
9395 file.
9396 (struct smaps_vmflags): New struct.
9397 (use_coredump_filter): New variable.
9398 (decode_vmflags): New function.
9399 (mapping_is_anonymous_p): Likewise.
9400 (dump_mapping_p): Likewise.
9401 (linux_find_memory_regions_full): New variables
9402 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9403 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9404 parsing of its information. Implement memory mapping filtering
9405 based on its contents.
9406 (show_use_coredump_filter): New function.
9407 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9408 * NEWS: Mention the possibility of using the
9409 '/proc/PID/coredump_filter' file when generating a corefile.
9410 Mention new command 'set use-coredump-filter'.
9411
9412 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9413
9414 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9415 read_memory_unsigned_integer.
9416
9417 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9418
9419 * Makefile.in (ZLIB): New.
9420 (ZLIBINC): Likewise.
9421 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9422 (CLIBS): Add $(ZLIB).
9423 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9424 Add -lz to LIBS.
9425 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9426 * top.c (print_gdb_configuration): Remove --with-zlib and
9427 --without-zlib.
9428 * config.in: Regenerated.
9429 * configure: Likewise.
9430
9431 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9432
9433 * NEWS: Mention info os cpus support.
9434 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9435 (struct osdata_type): Add cpus entry, reorder the entries in
9436 alphabetical order.
9437
9438 2015-03-31 Matthias Klose <doko@ubuntu.com>
9439
9440 * compile/compile.c (compile_to_object): Allow triplets with or
9441 without vendor set.
9442
9443 2015-03-30 Doug Evans <dje@google.com>
9444
9445 PR c++/18141
9446 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9447 klass in VAR_DOMAIN.
9448
9449 2015-03-30 Gary Benson <gbenson@redhat.com>
9450
9451 * remote.c (remote_mourn_1): Remove function. Update all callers
9452 to use remote_mourn.
9453 (extended_remote_mourn_1): Remove function. Update all callers
9454 to use extended_remote_mourn.
9455 (extended_remote_attach_1): Remove function. Update all callers
9456 to use extended_remote_attach.
9457
9458 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9459
9460 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9461 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9462 (ALLDEPFILES): Add ft32-tdep.c.
9463 * configure.tgt: Add FT32 entry.
9464 * ft32-tdep.c: New file, FT32 target-dependent code.
9465 * ft32-tdep.h: New file, FT32 target-dependent code.
9466
9467 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9468
9469 Revert:
9470 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9471 Code cleanup.
9472 * printcmd.c (print_command_1): Move expr variable scope.
9473
9474 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9475
9476 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9477
9478 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9479
9480 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9481 sections.
9482
9483 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9484
9485 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9486 exception raised while parsing the probe arguments.
9487 Force parsing to be done using the C language parser.
9488 * expression.h (parse_expression_with_language): Declare.
9489 * parse.c (parse_expression_with_language): New function.
9490
9491 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9492
9493 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9494
9495 2015-03-26 Andy Wingo <wingo@igalia.com>
9496
9497 PR symtab/18148
9498 * dwarf2read.c (struct partial_die_info): Add has_const_value
9499 member.
9500 (add_partial_symbol): Don't punt on symbols that have const_value
9501 attributes.
9502 (read_partial_die): Detect DW_AT_const_value.
9503
9504 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9505
9506 Code cleanup.
9507 * printcmd.c (print_command_1): Move expr variable scope.
9508
9509 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9510
9511 Code cleanup.
9512 * printcmd.c (validate_format): Make the parameter cmdname const.
9513
9514 2015-03-26 Don Breazeal <donb@codesourcery.com>
9515
9516 * remote.c (_initialize_remote): Update comment.
9517
9518 2015-03-26 Pedro Alves <palves@redhat.com>
9519 Jon TURNEY <jon.turney@dronecode.org.uk>
9520
9521 * coffread.c (coff_symfile_read): When constructing the name of an
9522 import stub symbol from import symbol for amd64, only skip the
9523 char after _imp_ if the target is underscored (like i386) and the
9524 char is indeed the target's leading char.
9525
9526 2015-03-25 Pedro Alves <palves@redhat.com>
9527
9528 * target.h <to_async>: Replace 'callback' and 'context' parameters
9529 with boolean 'enable' parameter.
9530 (target_async): Replace CALLBACK and CONTEXT parameters with
9531 boolean ENABLE parameter.
9532 * inf-loop.c (inferior_event_handler): Adjust.
9533 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9534 (linux_nat_resume): Adjust.
9535 (async_client_callback, async_client_context): Delete.
9536 (handle_target_event): Call inferior_event_handler directly.
9537 (linux_nat_async): Replace 'callback' and 'context' parameters
9538 with boolean 'enable' parameter. Adjust. Remove references to
9539 async_client_callback and async_client_context.
9540 (linux_nat_close): Adjust.
9541 * record-btrace.c (record_btrace_async): Replace 'callback' and
9542 'context' parameters with boolean 'enable' parameter. Adjust.
9543 (record_btrace_resume): Adjust.
9544 * record-full.c (record_full_async): Replace 'callback' and
9545 'context' parameters with boolean 'enable' parameter. Adjust.
9546 (record_full_resume, record_full_core_resume): Adjust.
9547 * remote.c (struct remote_state) <async_client_callback,
9548 async_client_context>: Delete fields.
9549 (remote_start_remote, extended_remote_attach_1, remote_resume)
9550 (extended_remote_create_inferior): Adjust.
9551 (remote_async_serial_handler): Call inferior_event_handler
9552 directly.
9553 (remote_async): Replace 'callback' and 'context' parameters with
9554 boolean 'enable' parameter. Adjust.
9555 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9556 Adjust.
9557 * target-delegates.c: Regenerate.
9558
9559 2015-03-25 Gary Benson <gbenson@redhat.com>
9560 Pedro Alves <palves@redhat.com>
9561
9562 * target.c (fileio_ft_t): New typedef, define object vector.
9563 (fileio_fhandles): New static variable.
9564 (is_closed_fileio_fh): New macro.
9565 (lowest_closed_fd): New static variable.
9566 (acquire_fileio_fd): New function.
9567 (release_fileio_fd): Likewise.
9568 (fileio_fd_to_fh): New macro.
9569 (target_fileio_open): Wrap the file descriptor on success.
9570 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9571 (target_fileio_pread): Likewise.
9572 (target_fileio_close): Likewise.
9573
9574 2015-03-24 Pedro Alves <palves@redhat.com>
9575
9576 * thread.c (thread_apply_all_command): Take exited threads into
9577 account.
9578
9579 2015-03-24 Pedro Alves <palves@redhat.com>
9580
9581 * infrun.c (resume, proceed): Mention
9582 switch_back_to_stepped_thread, not switch_back_to_stepping.
9583
9584 2015-03-24 Pedro Alves <palves@redhat.com>
9585
9586 * infrun.c (user_visible_resume_ptid): Rewrite going from
9587 most-locked to unlocked instead of the opposite. Move comment ...
9588 * infrun.h (user_visible_resume_ptid): ... here.
9589
9590 2015-03-24 Pedro Alves <palves@redhat.com>
9591
9592 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9593 to resume the event lwp. Use the lwp's ptid instead of the passed
9594 in (maybe wildcard) ptid.
9595 (stop_wait_callback): Tweak debug log output.
9596 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9597 TRAP_TRACE.
9598 (linux_nat_filter_event): In debug output, distinguish a
9599 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9600 before trying to resume the lwp.
9601
9602 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9603
9604 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9605 pointer indirection.
9606 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9607 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9608
9609 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9610
9611 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9612 Renames DYN_ATTR_DATA_LOCATION.
9613 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9614 DYN_ATTR_DATA_LOCATION.
9615 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9616 instead of DYN_ATTR_DATA_LOCATION.
9617
9618 2015-03-24 Pedro Alves <palves@redhat.com>
9619
9620 * breakpoint.c (until_break_command): Adjust call to proceed.
9621 * gdbthread.h (struct thread_control_state) <stepping_command>:
9622 New field.
9623 * infcall.c (run_inferior_call): Adjust call to proceed.
9624 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9625 Adjust calls to proceed.
9626 (set_step_frame): Set the current thread's step_start_function
9627 here.
9628 (step_once): Adjust calls to proceed.
9629 (jump_command, signal_command, until_next_command)
9630 (finish_backward, finish_forward, proceed_after_attach_callback)
9631 (attach_command_post_wait): Adjust calls to proceed.
9632 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9633 (do_target_resume): New function, factored out from ...
9634 (resume): ... here. Remove 'step' parameter. Instead, check
9635 currently_stepping to determine whether the thread should be
9636 single-stepped.
9637 (proceed): Remove 'step' parameter and don't set the thread's
9638 step_start_function here. Adjust call to 'resume'.
9639 (handle_inferior_event): Adjust calls to 'resume'.
9640 (switch_back_to_stepped_thread): Use do_target_resume instead of
9641 'resume'.
9642 (keep_going): Adjust calls to 'resume'.
9643 * infrun.h (proceed): Remove 'step' parameter.
9644 (resume): Likewise.
9645 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9646 'resume'.
9647 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9648
9649 2015-03-24 Pedro Alves <palves@redhat.com>
9650
9651 * gdbthread.h (struct thread_control_state) <stepping_command>:
9652 New field.
9653 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9654 the thread's stepping_command field.
9655 * infrun.c (resume): Check the thread's stepping_command flag to
9656 determine which threads should be resumed. Rename 'entry_step'
9657 local to user_step.
9658 (clear_proceed_status_thread): Clear 'stepping_command'.
9659 (schedlock_applies): Change parameter type to struct thread_info
9660 pointer. Adjust.
9661 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9662 (switch_back_to_stepped_thread): Adjust calls to
9663 'schedlock_applies'.
9664 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9665
9666 2015-03-24 Pedro Alves <palves@redhat.com>
9667
9668 * infrun.c (step_start_function): Delete and ...
9669 * gdbthread.h (struct thread_control_state) <step_start_function>:
9670 ... now a field here.
9671 * infrun.c (clear_proceed_status_thread): Clear the thread's
9672 step_start_function.
9673 (proceed, process_event_stop_test, print_stop_event): Adjust.
9674
9675 2015-03-24 Pedro Alves <palves@redhat.com>
9676
9677 * infrun.c (proceed): No longer handle negative step.
9678
9679 2015-03-24 Gary Benson <gbenson@redhat.com>
9680
9681 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9682 (x86_linux_prepare_to_resume): Likewise.
9683 * x86-linux-nat.c (x86_linux_new_thread):
9684 Moved to nat/x86-linux.c.
9685 (x86_linux_prepare_to_resume): Likewise.
9686 * nat/x86-linux.c (x86_linux_new_thread): New function.
9687 (x86_linux_prepare_to_resume): Likewise.
9688
9689 2015-03-24 Gary Benson <gbenson@redhat.com>
9690
9691 * nat/x86-linux-dregs.h: New file.
9692 * nat/x86-linux-dregs.c: Likewise.
9693 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9694 (x86-linux-dregs.o): New rule.
9695 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9696 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9697 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9698 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9699 (x86_linux_dr_get): Likewise.
9700 (x86_linux_dr_set): Likewise.
9701 (x86_linux_dr_get_addr): Likewise.
9702 (x86_linux_dr_get_control): Likewise.
9703 (x86_linux_dr_get_status): Likewise.
9704 (update_debug_registers_callback): Likewise.
9705 (x86_linux_dr_set_control): Likewise.
9706 (x86_linux_dr_set_addr): Likewise.
9707 (x86_linux_update_debug_registers): Likewise.
9708
9709 2015-03-24 Gary Benson <gbenson@redhat.com>
9710
9711 * x86-linux-nat.c (x86_linux_update_debug_registers):
9712 New function, factored out from...
9713 (x86_linux_prepare_to_resume): ...this.
9714
9715 2015-03-24 Gary Benson <gbenson@redhat.com>
9716
9717 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9718 (x86_linux_dr_set): Likewise.
9719 (x86_linux_dr_get_addr): Likewise.
9720 (x86_linux_dr_get_control): Likewise.
9721 (x86_linux_dr_get_status): Likewise.
9722 (update_debug_registers_callback): Likewise.
9723 (x86_linux_dr_set_control): Likewise.
9724 (x86_linux_dr_set_addr): Likewise.
9725 (x86_linux_prepare_to_resume): Likewise.
9726 (x86_linux_new_thread): Likewise.
9727
9728 2015-03-24 Gary Benson <gbenson@redhat.com>
9729
9730 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9731 (x86_linux_new_thread): Rename argument.
9732
9733 2015-03-24 Gary Benson <gbenson@redhat.com>
9734
9735 * nat/x86-linux.h: New file.
9736 * nat/x86-linux.c: Likewise.
9737 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9738 (x86-linux.o): New rule.
9739 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9740 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9741 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9742 (lwp_set_arch_private_info): New declaration.
9743 (lwp_arch_private_info): Likewise.
9744 * linux-nat.c (lwp_set_arch_private_info): New function.
9745 (lwp_arch_private_info): Likewise.
9746 * x86-linux-nat.c: Include nat/x86-linux.h.
9747 (arch_lwp_info): Removed structure.
9748 (update_debug_registers_callback):
9749 Use lwp_set_debug_registers_changed.
9750 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9751 and lwp_set_debug_registers_changed.
9752 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9753
9754 2015-03-24 Gary Benson <gbenson@redhat.com>
9755
9756 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9757 (lwp_is_stopped): Likewise.
9758 (lwp_stop_reason): Likewise.
9759 * linux-nat.c (ptid_of_lwp): New function.
9760 (lwp_is_stopped): Likewise.
9761 (lwp_is_stopped_by_watchpoint): Likewise.
9762 * x86-linux-nat.c (update_debug_registers_callback):
9763 Use lwp_is_stopped.
9764 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9765 lwp_stop_reason.
9766
9767 2015-03-24 Gary Benson <gbenson@redhat.com>
9768
9769 * linux-nat.h (linux_stop_lwp): Move declaration to...
9770 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9771
9772 2015-03-24 Gary Benson <gbenson@redhat.com>
9773
9774 * linux-nat.h: Include nat/linux-nat.h.
9775 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9776 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9777 (iterate_over_lwps_ftype): New typedef.
9778 (iterate_over_lwps): New declaration.
9779 * linux-nat.h (iterate_over_lwps): Update comment. Use
9780 iterate_over_lwps_ftype. Update callback return value check.
9781
9782 2015-03-24 Gary Benson <gbenson@redhat.com>
9783
9784 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9785 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9786
9787 2015-03-24 Gary Benson <gbenson@redhat.com>
9788
9789 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9790 * linux-nat.c (current_lwp_ptid): New function.
9791 * x86-linux-nat.c: Include nat/linux-nat.h.
9792 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9793 (x86_linux_dr_get_control): Likewise.
9794 (x86_linux_dr_get_status): Likewise.
9795 (x86_linux_dr_set_control): Likewise.
9796 (x86_linux_dr_set_addr): Likewise.
9797
9798 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9799
9800 PR breakpoints/16466
9801 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9802
9803 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9804
9805 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9806 * ser-unix.c (hardwire_setparity): Likewise.
9807
9808 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9809
9810 * NEWS: Mention set/show serial parity command.
9811 * monitor.c (monitor_open): Call serial_setparity.
9812 * remote.c (remote_open_1): Likewise.
9813 * ser-base.c (ser_base_serparity): New function.
9814 * ser-base.h (ser_base_setparity): Add declaration.
9815 * ser-go32.c (dos_ops): Set "setparity" field.
9816 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9817 state.Parity.
9818 (ser_windows_setparity): New function.
9819 (hardwire_ops): Add ser_windows_setparity.
9820 (tty_ops): Add NULL for setparity field.
9821 (pipe_ops): Add ser_base_setparity.
9822 (tcp_ops): Likewise.
9823 * ser-pipe.c (pipe_ops): Likewise.
9824 * ser-tcp.c (tcp_ops): Likewise.
9825 * ser-unix.c (hardwire_setparity): Add declaration.
9826 (hardwire_raw): Don't reset PARENB flag.
9827 (hardwire_setparity): New function.
9828 (hardwire_ops): Add hardwire_setparity.
9829 * serial.c (serial_setparity): New function.
9830 (serial_parity): New global.
9831 (parity_none, parity_odd, parity_even, parity_enums, parity):
9832 New static globals.
9833 (set_parity): New function.
9834 (_initialize_serial): Add set/show serial parity commands.
9835 * serial.h (GDBPARITY_NONE): Define.
9836 (GDBPARITY_ODD): Define.
9837 (GDBPARITY_EVEN): Define.
9838 (serial_setparity) Add declaration.
9839 (struct serial_ops): Add setparity field.
9840 * target.h (serial_parity): Add declaration.
9841
9842 2015-03-23 Keith Seitz <keiths@redhat.com>
9843
9844 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9845
9846 2015-03-23 Keith Seitz <keiths@redhat.com>
9847
9848 * breakpoint.c (parse_breakpoint_sals): Use
9849 linespec_lexer_lex_keyword to ascertain if the user specified
9850 a NULL location.
9851 * linespec.c [IF_KEYWORD_INDEX]: Define.
9852 (linespec_lexer_lex_keyword): Export.
9853 (struct ls_parser) <keyword_ok>: Remove.
9854 A keyword is only a keyword if not followed by another keyword.
9855 (linespec_lexer_lex_one): Remove keyword_ok handling.
9856 Add comment explaining why the parsing stream is not advanced
9857 when a keyword is seen.
9858 (parse_linespec): Remove parser->keyword_ok.
9859 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9860
9861 2015-03-23 Keith Seitz <keiths@redhat.com>
9862
9863 PR gdb/18021
9864 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9865 if we find a static method with DW_AT_vtable_elem_location.
9866
9867 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9868
9869 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9870 before the second loop, to avoid undefined behavior. Reported by
9871 Anton Blanchard <anton@samba.org>.
9872
9873 2015-03-20 Keven Boell <keven.boell@intel.com>
9874
9875 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9876 data_location usage to linked list.
9877 (resolve_dynamic_type_internal): Adapt data_location to
9878 linked list.
9879 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9880 (copy_type_recursive, copy_type): Add copy of linked list.
9881 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9882 (struct dynamic_prop_list): New struct.
9883 * dwarf2read.c (set_die_type): Set data_location data.
9884
9885 2015-03-20 Pedro Alves <palves@redhat.com>
9886
9887 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9888 inner block and make it const.
9889 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9890
9891 2015-03-20 Pedro Alves <palves@redhat.com>
9892
9893 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9894 * breakpoint.h (set_breakpoint_condition): Update declaration.
9895
9896 2015-03-20 Pedro Alves <palves@redhat.com>
9897
9898 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9899
9900 2015-03-20 Pedro Alves <palves@redhat.com>
9901
9902 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9903
9904 2015-03-20 Pedro Alves <palves@redhat.com>
9905
9906 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9907
9908 2015-03-20 Pedro Alves <palves@redhat.com>
9909
9910 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9911 (nto_init_solib_absolute_prefix): Likewise.
9912
9913 2015-03-20 Pedro Alves <palves@redhat.com>
9914
9915 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9916 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9917
9918 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9919
9920 * config/djgpp/README: Remove gdb.hp.
9921
9922 2015-03-20 Yao Qi <yao.qi@linaro.org>
9923
9924 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9925 set_gdbarch_cannot_step_breakpoint.
9926
9927 2015-03-19 Pedro Alves <palves@redhat.com>
9928
9929 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9930 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9931 instead call perror_with_name.
9932 (check_ptrace_stopped_lwp_gone): New function.
9933 (linux_resume_one_lwp): Reimplement as wrapper around
9934 linux_resume_one_lwp_throw that swallows errors if the LWP is
9935 gone.
9936 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9937 swallows errors if the LWP is gone. Use
9938 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9939
9940 2015-03-19 Pedro Alves <palves@redhat.com>
9941
9942 * linux-nat.c (status_callback): Return early if the LWP has no
9943 status pending.
9944
9945 2015-03-19 Pedro Alves <palves@redhat.com>
9946
9947 * linux-nat.c (select_event_lwp_callback): Update comment to no
9948 longer mention SIGTRAP.
9949
9950 2015-03-18 Tristan Gingold <gingold@adacore.com>
9951
9952 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9953 redirection code to ...
9954 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9955 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9956
9957 2015-03-18 Gary Benson <gbenson@redhat.com>
9958
9959 (remote_protocol_features): Remove the "vFile:fstat" feature.
9960 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9961
9962 2015-03-11 Yao Qi <yao.qi@linaro.org>
9963
9964 PR tdep/18107
9965 * aarch64-linux-tdep.c: Include xml-syscall.h
9966 (aarch64_linux_get_syscall_number): New function.
9967 (aarch64_linux_init_abi): Call
9968 set_gdbarch_get_syscall_number.
9969 * syscalls/aarch64-linux.xml: New file.
9970
9971 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9972
9973 * ser-base.h (ser_base_setstopbits): Change second argument name
9974 from "rate" to "num".
9975
9976 2015-03-17 Gary Benson <gbenson@redhat.com>
9977 Luke Allardyce <lukeallardyce@gmail.com>
9978
9979 PR gdb/18131
9980 * common/common-remote-fileio.h (sys/stat.h): New include.
9981 (stuct stat): Remove forward declaration.
9982
9983 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9984
9985 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9986 before writing core register notes.
9987
9988 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9989 Pedro Alves <palves@redhat.com>
9990
9991 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9992 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9993 (tgoto): Wrap with extern "C".
9994
9995 2015-03-16 Pedro Alves <palves@redhat.com>
9996 Yuanhui Zhang <asmwarrior@gmail.com>
9997
9998 * stub-termcap.c (tputs): Change prototype.
9999
10000 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10001 Pedro Alves <palves@redhat.com>
10002
10003 * windows-nat.c (struct thread_info_struct): Rename to ...
10004 (struct windows_thread_info_struct): ... this.
10005 (thread_info): Rename to ...
10006 (windows_thread_info): ... this.
10007 All users updated.
10008
10009 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10010 Pedro Alves <palves@redhat.com>
10011
10012 * NEWS: New Removed targets and native configurations.
10013
10014 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10015
10016 Remove HPUX.
10017 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10018 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10019 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10020 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10021 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10022 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10023 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10024 hppa-hpux-tdep.c.
10025 * config/ia64/hpux.mh: Remove file.
10026 * config/pa/hpux.mh: Remove file.
10027 * configure: Rebuilt.
10028 * configure.ac (dlgetmodinfo, somread.o): Remove.
10029 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10030 (ia64-*-hpux*): Remove its float format exception.
10031 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10032 * hppa-hpux-nat.c: Remove file.
10033 * hppa-hpux-tdep.c: Remove file.
10034 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10035 Move them here from hppa-tdep.h
10036 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10037 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10038 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10039 Move them to hppa-tdep.c.
10040 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10041 declarations.
10042 * ia64-hpux-nat.c: Remove file.
10043 * ia64-hpux-tdep.c: Remove file.
10044 * ia64-hpux-tdep.h: Remove file.
10045 * inf-ttrace.c: Remove file.
10046 * inf-ttrace.h: Remove file.
10047 * solib-ia64-hpux.c: Remove file.
10048 * solib-ia64-hpux.h: Remove file.
10049 * solib-pa64.c: Remove file.
10050 * solib-pa64.h: Remove file.
10051 * solib-som.c: Remove file.
10052 * solib-som.h: Remove file.
10053 * somread.c: Remove file.
10054
10055 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10056
10057 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10058 * config.in: Regenerate.
10059 * configure: Regenerate.
10060 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10061 define.
10062 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10063 enumerate memory regions if present.
10064
10065 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10066
10067 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10068 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10069 expressions.
10070 (i386fbsd_sigtramp_p): Likewise.
10071
10072 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10073
10074 * MAINTAINERS (Write After Approval): Add John Baldwin.
10075
10076 2015-03-12 Gary Benson <gbenson@redhat.com>
10077
10078 * solib.c (_initialize_solib): Make "set/show sysroot" use
10079 add_setshow_optional_filename_cmd so it can be restored to
10080 empty after being set.
10081
10082 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10083
10084 * Makefile.in (SFILES): New source break-catch-syscall.c.
10085 (COMMON_OBS): New object break-catch-syscall.o.
10086 * break-catch-syscall.c: New file.
10087 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10088 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10089 (struct syscall_catchpoint): Likewise.
10090 (dtor_catch_syscall): Likewise.
10091 (catch_syscall_inferior_data): Likewise.
10092 (struct catch_syscall_inferior_data): Likewise.
10093 (get_catch_syscall_inferior_data): Likewise.
10094 (catch_syscall_inferior_data_cleanup): Likewise.
10095 (insert_catch_syscall): Likewise.
10096 (remove_catch_syscall): Likewise.
10097 (breakpoint_hit_catch_syscall): Likewise.
10098 (print_it_catch_syscall): Likewise.
10099 (print_one_catch_syscall): Likewise.
10100 (print_mention_catch_syscall): Likewise.
10101 (print_recreate_catch_syscall): Likewise.
10102 (catch_syscall_breakpoint_ops): Likewise.
10103 (syscall_catchpoint_p): Likewise.
10104 (create_syscall_event_catchpoint): Likewise.
10105 (catch_syscall_split_args): Likewise.
10106 (catch_syscall_command_1): Likewise.
10107 (is_syscall_catchpoint_enabled): Likewise.
10108 (catch_syscall_enabled): Likewise.
10109 (catching_syscall_number): Likewise.
10110 (catch_syscall_completer): Likewise.
10111 (clear_syscall_counts): Likewise.
10112 (initialize_breakpoint_ops): Move initialization of syscall
10113 catchpoints to break-catch-syscall.c.
10114 (_initialize_breakpoint): Move code related to syscall catchpoints
10115 to break-catch-syscall.c.
10116
10117 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10118
10119 * breakpoint.c (breakpoint_find_if): New function.
10120 * breakpoint.h (breakpoint_find_if): New prototype.
10121
10122 2015-03-11 Gary Benson <gbenson@redhat.com>
10123
10124 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10125 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10126 (remote_fileio_to_host_ulong): Likewise.
10127 (remote_fileio_to_host_mode): Likewise.
10128 (remote_fileio_to_host_time): Likewise.
10129 (remote_fileio_to_host_stat): Likewise.
10130 * remote.c (PACKET_vFile_fstat): New enum value.
10131 (remote_protocol_features): Register the "vFile:fstat" feature.
10132 (remote_hostio_fstat): New function.
10133 (remote_bfd_iovec_stat): Use the above.
10134 (_initialize_remote): Register new "set/show remote
10135 hostio-fstat-packet" command.
10136 * symfile.c (separate_debug_file_exists): Update comment.
10137 * NEWS: Announce new vFile:fstat packet.
10138
10139 2015-03-11 Gary Benson <gbenson@redhat.com>
10140
10141 * common/common-remote-fileio.h: New file.
10142 * common/common-remote-fileio.c: Likewise.
10143 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10144 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10145 (COMMON_OBS): Add common-remote-fileio.o.
10146 (common-remote-fileio.o): New rule.
10147 * remote-fileio.h (common-remote-fileio.h): New include.
10148 * remote-fileio.c (gdb/fileio.h): Do not include.
10149 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10150 (remote_fileio_to_fio_uint): Likewise.
10151 (remote_fileio_to_fio_time): Likewise.
10152 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10153 (remote_fileio_to_fio_mode): Likewise.
10154 (remote_fileio_to_fio_ulong): Likewise.
10155 (remote_fileio_to_fio_stat): Likewise.
10156
10157 2015-03-11 Andy Wingo <wingo@igalia.com>
10158
10159 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10160 we were checking the cached type, not the cached dynamic type.
10161
10162 2015-03-11 Andy Wingo <wingo@igalia.com>
10163
10164 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10165 other strings, as these are on the GC'd heap, and will be
10166 collected along with the smob.
10167
10168 2015-03-11 Andy Wingo <wingo@igalia.com>
10169
10170 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10171 (objfile_functions): Bind gdbscm_objfile_progspace to
10172 objfile-progspace.
10173 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10174
10175 2015-03-11 Andy Wingo <wingo@igalia.com>
10176
10177 * guile/guile.c (_initialize_guile): Disable automatic
10178 finalization, if Guile offers us that possibility.
10179 * guile/guile.c (call_initialize_gdb_module):
10180 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10181 finalizers in appropriate places.
10182 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10183 scm_set_automatic_finalization_enabled.
10184 * configure: Regenerated.
10185
10186 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10187
10188 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10189 SAL, if possible.
10190
10191 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10192
10193 * s390-linux-nat.c (struct arch_lwp_info): New.
10194 (s390_fix_watch_points): Rename to...
10195 (s390_prepare_to_resume): ...this. Skip the PER info update
10196 unless the watch points have changed.
10197 (s390_refresh_per_info, s390_new_thread): New functions.
10198 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10199 s390_fix_watch_points.
10200 (s390_remove_watchpoint): Likewise.
10201 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10202 Register s390_prepare_to_resume.
10203
10204 2015-03-09 Pedro Alves <palves@redhat.com>
10205
10206 Revert:
10207 2015-03-07 Pedro Alves <palves@redhat.com>
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 * configure.ac (build_warnings): Move -Wmissing-prototypes
10216 -Wdeclaration-after-statement -Wmissing-parameter-type
10217 -Wold-style-declaration -Wold-style-definition to the C-specific
10218 set.
10219 * configure: Regenerate.
10220
10221 2015-03-07 Pedro Alves <palves@redhat.com>
10222
10223 * common/gdb_socket.h: New file.
10224 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10225 sys/socket.h.
10226 (net_open): Use union gdb_sockaddr_u.
10227
10228 2015-03-07 Pedro Alves <palves@redhat.com>
10229
10230 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10231 (exceptions_state_mc_action_iter)
10232 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10233 Don't define.
10234 [__cplusplus] (try_scope_depth): New global.
10235 [__cplusplus] (exception_try_scope_entry)
10236 (exception_try_scope_exit, gdb_exception_sliced_copy)
10237 (exception_rethrow): New functions.
10238 (throw_exception): In C++ mode, throw
10239 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10240 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10241 (throw_it): In C++ mode, use try_scope_depth.
10242 * common/common-exceptions.h [!__cplusplus]
10243 (exceptions_state_mc_action_iter)
10244 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10245 Don't declare.
10246 [__cplusplus] (exception_try_scope_entry)
10247 (exception_try_scope_exit, exception_rethrow): Declare.
10248 [__cplusplus] (struct exception_try_scope): New struct.
10249 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10250 C++ exceptions.
10251 (struct gdb_exception_RETURN_MASK_ALL)
10252 (struct gdb_exception_RETURN_MASK_ERROR)
10253 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10254
10255 2015-03-07 Pedro Alves <palves@redhat.com>
10256
10257 * main.c (handle_command_errors): Remove volatile qualifier from
10258 parameter.
10259
10260 2015-03-07 Pedro Alves <palves@redhat.com>
10261
10262 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10263 TRY and CATCH.
10264 * gdbtypes.c (safe_parse_type): Remove empty line.
10265 (types_deeply_equal):
10266 * guile/scm-frame.c (gdbscm_frame_name):
10267 * linux-thread-db.c (find_new_threads_once):
10268 * python/py-breakpoint.c (bppy_get_commands):
10269 * record-btrace.c (record_btrace_insert_breakpoint)
10270 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10271 (record_btrace_start_replaying): Adjust to avoid code between TRY
10272 and CATCH.
10273
10274 2015-03-07 Pedro Alves <palves@redhat.com>
10275
10276 * common/common-exceptions.c (struct catcher) <exception>: No
10277 longer a pointer to volatile exception. Now an exception value.
10278 <mask>: Delete field.
10279 (exceptions_state_mc_init): Remove all parameters. Adjust.
10280 (exceptions_state_mc): No longer pop the catcher here.
10281 (exceptions_state_mc_catch): New function.
10282 (throw_exception): Adjust.
10283 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10284 all parameters.
10285 (exceptions_state_mc_catch): Declare.
10286 (TRY_CATCH): Rename to ...
10287 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10288 (CATCH, END_CATCH): New.
10289 All callers adjusted.
10290
10291 2015-03-07 Tom Tromey <tromey@redhat.com>
10292
10293 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10294
10295 2015-03-07 Pedro Alves <palves@redhat.com>
10296
10297 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10298 (amd64_epilogue_frame_cache): Normal exception handling code.
10299 * break-catch-throw.c (check_status_exception_catchpoint)
10300 (re_set_exception_catchpoint): Ditto.
10301 * cli/cli-interp.c (safe_execute_command):
10302 * cli/cli-script.c (script_from_file): Ditto.
10303 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10304 Ditto.
10305 * compile/compile-object-run.c (compile_object_run): Ditto.
10306 * cp-abi.c (baseclass_offset): Ditto.
10307 * cp-valprint.c (cp_print_value): Ditto.
10308 * exceptions.c (catch_exceptions_with_msg):
10309 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10310 * frame.c (get_frame_address_in_block_if_available): Ditto.
10311 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10312 (i386_sigtramp_frame_cache): Ditto.
10313 * infcmd.c (post_create_inferior): Ditto.
10314 * linespec.c (parse_linespec, find_linespec_symbols):
10315 * p-valprint.c (pascal_object_print_value): Ditto.
10316 * parse.c (parse_expression_for_completion): Ditto.
10317 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10318 * remote.c (remote_get_noisy_reply): Ditto.
10319 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10320 * solib-svr4.c (solib_svr4_r_map): Ditto.
10321
10322 2015-03-06 Gary Benson <gbenson@redhat.com>
10323
10324 * common/common-utils.h (startswith): New inline function.
10325 All places where this logic was used updated to use the above.
10326
10327 2015-03-05 Pedro Alves <palves@redhat.com>
10328
10329 PR gdb/18002
10330 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10331 after reading the breakpoint's shadow memory.
10332
10333 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10334
10335 * hppabsd-nat.c: Remove file.
10336 * hppaobsd-nat.c: New file.
10337 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10338 hppaobsd-nat.c.
10339 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10340 hppaobsd-nat.o.
10341
10342 2015-03-04 Pedro Alves <palves@redhat.com>
10343
10344 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10345 (target_decr_pc_after_break): Delete declaration.
10346 * target.c (default_target_decr_pc_after_break)
10347 (target_decr_pc_after_break): Delete.
10348 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10349 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10350 * linux-thread-db.c (check_event): Likewise.
10351 * infrun.c (adjust_pc_after_break): Likewise.
10352 * darwin-nat.c (cancel_breakpoint): Likewise.
10353 * aix-thread.c (aix_thread_wait): Likewise.
10354 * target-delegates.c: Regenerate.
10355
10356 2015-03-04 Pedro Alves <palves@redhat.com>
10357
10358 * linux-nat.c (save_sigtrap): Check for breakpoints before
10359 checking watchpoints.
10360 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10361 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10362 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10363 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10364 (linux_nat_stopped_by_sw_breakpoint)
10365 (linux_nat_supports_stopped_by_sw_breakpoint)
10366 (linux_nat_stopped_by_hw_breakpoint)
10367 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10368 (linux_nat_wait_1): Don't re-increment the PC if relying on
10369 SIGTRAP's siginfo->si_code.
10370 (linux_nat_add_target): Install new target methods.
10371 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10372 offset if the target already adjusted the PC.
10373 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10374 (GDB_ARCH_TRAP_BRKPT): New.
10375 (TRAP_HWBKPT): Define if not already defined.
10376
10377 2015-03-04 Pedro Alves <palves@redhat.com>
10378
10379 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10380 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10381 Delete field.
10382 <stop_reason>: New field.
10383 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10384 (packet_set_cmd_state): New function.
10385 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10386 features.
10387 (remote_query_supported): If not disabled with the corresponding
10388 "set remote foo-packet" command, report support for the swbreak
10389 and hwbreak features.
10390 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10391 field.
10392 <stop_reason>: New field.
10393 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10394 (remote_wait_as): Adjust.
10395 (remote_stopped_by_sw_breakpoint)
10396 (remote_supports_stopped_by_sw_breakpoint)
10397 (remote_stopped_by_hw_breakpoint)
10398 (remote_supports_stopped_by_hw_breakpoint): New functions.
10399 (remote_stopped_by_watchpoint): New function.
10400 (init_remote_ops): Install them.
10401 (_initialize_remote): Register new "set/show remote
10402 swbreak-feature-packet" and "set/show remote
10403 swbreak-feature-packet" commands.
10404
10405 2015-03-04 Pedro Alves <palves@redhat.com>
10406
10407 * btrace.h: Include target/waitstatus.h.
10408 (struct btrace_thread_info) <stop_reason>: New field.
10409 * record-btrace.c (record_btrace_step_thread): Use
10410 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10411 (record_btrace_decr_pc_after_break): Delete.
10412 (record_btrace_stopped_by_sw_breakpoint)
10413 (record_btrace_supports_stopped_by_sw_breakpoint)
10414 (record_btrace_stopped_by_hw_breakpoint)
10415 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10416 (init_record_btrace_ops): Install them.
10417 * record-full.c (record_full_hw_watchpoint): Delete and replace
10418 with ...
10419 (record_full_stop_reason): ... this throughout.
10420 (record_full_exec_insn): Adjust.
10421 (record_full_wait_1): Adjust. No longer re-increment the PC.
10422 (record_full_wait_1): Adjust. Use
10423 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10424 (record_full_stopped_by_watchpoint): Adjust.
10425 (record_full_stopped_by_sw_breakpoint)
10426 (record_full_supports_stopped_by_sw_breakpoint)
10427 (record_full_supports_stopped_by_sw_breakpoint)
10428 (record_full_stopped_by_hw_breakpoint)
10429 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10430 (init_record_full_ops, init_record_full_core_ops): Install them.
10431 * record.c (record_check_stopped_by_breakpoint): New function.
10432 * record.h: Include target/waitstatus.h.
10433 (record_check_stopped_by_breakpoint): New declaration.
10434
10435 2015-03-04 Pedro Alves <palves@redhat.com>
10436
10437 enum lwp_stop_reason -> enum target_stop_reason
10438 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10439 (linux_nat_stopped_by_watchpoint, status_callback)
10440 (linux_nat_wait_1): Adjust.
10441 * linux-nat.h (enum lwp_stop_reason): Delete.
10442 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10443 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10444 * target/waitstatus.h (enum target_stop_reason): New.
10445
10446 2015-03-04 Pedro Alves <palves@redhat.com>
10447
10448 * breakpoint.c (need_moribund_for_location_type): New function.
10449 (bpstat_stop_status): Don't skipping checking moribund locations
10450 of breakpoint types which the target tell caused a stop.
10451 (program_breakpoint_here_p): New function, factored out from ...
10452 (bp_loc_is_permanent): ... this.
10453 (update_global_location_list): Don't create a moribund location if
10454 the target supports reporting stops of the type of the removed
10455 breakpoint.
10456 * breakpoint.h (program_breakpoint_here_p): New declaration.
10457 * infrun.c (adjust_pc_after_break): Return early if the target has
10458 already adjusted the PC. Add comments.
10459 (handle_signal_stop): If nothing explains a signal, and the target
10460 tells us the stop was caused by a software breakpoint, check if
10461 there's a breakpoint instruction in the memory. If so, adjust the
10462 PC before presenting the stop to the user. Otherwise, ignore the
10463 trap. If nothing explains a signal, and the target tells us the
10464 stop was caused by a hardware breakpoint, ignore the trap.
10465 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10466 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10467 to_supports_stopped_by_hw_breakpoint>: New fields.
10468 (target_stopped_by_sw_breakpoint)
10469 (target_supports_stopped_by_sw_breakpoint)
10470 (target_stopped_by_hw_breakpoint)
10471 (target_supports_stopped_by_hw_breakpoint): Define.
10472 * target-delegates.c: Regenerate.
10473
10474 2015-03-04 Pedro Alves <palves@redhat.com>
10475
10476 * infrun.c (follow_fork_inferior): Use the whole of the
10477 inferior_ptid and pending_follow.related_pid ptids instead of
10478 building ptids from the process components. Adjust verbose output
10479 to use target_pid_to_str.
10480 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10481 inferior_ptid and pending_follow.related_pid ptids instead of
10482 building ptids from the process components.
10483
10484 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10485
10486 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10487 (inf_ptrace_insert_fork_catchpoint): New function.
10488 (inf_ptrace_remove_fork_catchpoint): New function.
10489 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10490
10491 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10492
10493 * s390-linux-tdep.c (s390_register_name): Return empty string
10494 instead of NULL for registers that shouldn't be visible.
10495
10496 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10497
10498 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10499 XML file for 64-bit targets.
10500
10501 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10502
10503 * target.h (find_default_create_inferior): Remove declaration.
10504 (find_default_attach): Likewise.
10505
10506 2015-03-03 Pedro Alves <palves@redhat.com>
10507
10508 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10509 Use ptid_get_pid to get the overall process id when resuming all
10510 threads.
10511
10512 2015-03-03 Pedro Alves <palves@redhat.com>
10513
10514 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10515 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10516 * inf-ptrace.c (get_ptrace_pid): New function.
10517 (inf_ptrace_resume): Use it.
10518 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10519 to the lower layer.
10520
10521 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10522
10523 * nat/linux-btrace.c: Include sys/utsname.h.
10524 (linux_determine_kernel_ptr_bits): New.
10525 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10526 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10527 ptr_bits.
10528
10529 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10530
10531 * btrace.c (ftrace_update_function): Treat return as tailcall for
10532 "_dl_runtime_resolve".
10533
10534 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10535
10536 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10537 * btrace.c (ftrace_debug): Do not print the line range.
10538 (ftrace_skip_file, ftrace_update_lines): Remove.
10539 (ftrace_new_function): Remove lbegin and lend initialization.
10540 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10541 * record-btrace.c (btrace_compute_src_line_range): New.
10542 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10543
10544 2015-03-02 Pedro Alves <palves@redhat.com>
10545
10546 * infrun.c (follow_exec): Delete all threads of the process except
10547 the event thread. Extended comments.
10548
10549 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10550
10551 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10552
10553 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10554
10555 * utils.h: Remove <stdbool.h> #include.
10556 (producer_is_gcc): Change return type to "int".
10557 * utils.c (producer_is_gcc): Change return type to int.
10558 Return 1 instead of true, and 0 instead of false.
10559 Adjust function documentation accordingly.
10560
10561 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10562
10563 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10564 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10565 present.
10566 (s390_linux_store_inferior_registers): Likewise.
10567 (s390_get_hwcap): Remove function. Embed its logic...
10568 (s390_read_description): ...here. Yield a target description with
10569 vector registers if applicable.
10570 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10571 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10572 "features/s390x-tevx-linux64.c".
10573 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10574 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10575 for "GNU/Linux-specific registers".
10576 (s390_dwarf_reg_r0l): New enum value.
10577 (s390_dwarf_reg_to_regnum): Support vector registers.
10578 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10579 of GPR lower halves.
10580 (regnum_is_vxr_full): New function.
10581 (s390_register_name): New function.
10582 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10583 f0-f15 and v0l-v15l.
10584 (s390_pseudo_register_type): Likewise.
10585 (s390_pseudo_register_read): Likewise.
10586 (s390_pseudo_register_write): Likewise.
10587 (s390_value_from_register): Account for the fact that values are
10588 placed left-justified in vector registers.
10589 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10590 the vector reggroup and omit them from the general reggroup.
10591 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10592 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10593 (s390_iterate_over_regset_sections): Add iterations for the two
10594 new vector regsets.
10595 (s390_core_read_description): Yield a target description with
10596 vector registers if applicable.
10597 (s390_gdbarch_init): Handle target descriptions with vector
10598 registers. Add "register_name" gdbarch method.
10599 (_initialize_s390_tdep): Call new tdesc initialization functions.
10600 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10601 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10602 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10603 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10604 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10605 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10606 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10607 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10608 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10609 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10610 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10611 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10612 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10613 (S390_NUM_REGS): Adjust value.
10614 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10615 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10616 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10617 * NEWS: Announce S/390 vector register support.
10618
10619 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10620
10621 * features/s390-tevx-linux64.xml: New file.
10622 * features/s390-vx-linux64.xml: New file.
10623 * features/s390-vx.xml: New file.
10624 * features/s390x-tevx-linux64.xml: New file.
10625 * features/s390x-vx-linux64.xml: New file.
10626 * features/Makefile (WHICH): Add s390-vx-linux64,
10627 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10628 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10629 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10630 macros.
10631 * features/s390-tevx-linux64.c: New generated file.
10632 * features/s390-vx-linux64.c: Likewise.
10633 * features/s390x-tevx-linux64.c: Likewise.
10634 * features/s390x-vx-linux64.c: Likewise.
10635 * regformats/s390-tevx-linux64.dat: Likewise.
10636 * regformats/s390-vx-linux64.dat: Likewise.
10637 * regformats/s390x-tevx-linux64.dat: Likewise.
10638 * regformats/s390x-vx-linux64.dat: Likewise.
10639
10640 2015-02-28 Doug Evans <xdje42@gmail.com>
10641
10642 * symtab.h (struct symtab) <next>: Fix comment.
10643
10644 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10645
10646 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10647 python_GdbMethods.
10648
10649 2015-02-27 Pedro Alves <palves@redhat.com>
10650
10651 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10652
10653 2015-02-27 Pedro Alves <palves@redhat.com>
10654
10655 * common/common-exceptions.h (exception_none): Declare.
10656 * common/common-exceptions.c (exception_none): Moved from
10657 exceptions.c.
10658 (exceptions_state_mc_init): Use exception_none.
10659 * exceptions.c (exception_none): Move to
10660 common/common-exceptions.c.
10661 * exceptions.h (exception_none): Move to
10662 common/common-exceptions.h.
10663
10664 2015-02-27 Pedro Alves <palves@redhat.com>
10665
10666 * main.c (catch_command_errors, catch_command_errors_const):
10667 Remove 'mask' argument. Adjust.
10668 (captured_main): Adjust callers.
10669
10670 2015-02-27 Pedro Alves <palves@redhat.com>
10671
10672 * python/python-internal.h: Include "extension-priv.h".
10673
10674 2015-02-27 Pedro Alves <palves@redhat.com>
10675
10676 * breakpoint.h (enum print_stop_action): Move further up in the
10677 file.
10678
10679 2015-02-27 Pedro Alves <palves@redhat.com>
10680
10681 * gdbarch.sh: Include regcache.h.
10682 * gdbarch.h: Regenerate.
10683
10684 2015-02-27 Pedro Alves <palves@redhat.com>
10685
10686 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10687 Remove duplicate const.
10688 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10689 duplicate const.
10690
10691 2015-02-27 Pedro Alves <palves@redhat.com>
10692
10693 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10694 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10695 * features/feature_to_c.sh: Tag the generated xml_builtin array
10696 with extern const in C++ mode.
10697
10698 2015-02-27 Tom Tromey <tromey@redhat.com>
10699
10700 * minidebug.c (struct lzma_stream): Rename to ...
10701 (struct gdb_lzma_stream): ... this.
10702 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10703
10704 2015-02-27 Pedro Alves <palves@redhat.com>
10705
10706 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10707 function.
10708 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10709 (mi_cmd_stack_list_variables): Use it.
10710
10711 2015-02-27 Pedro Alves <palves@redhat.com>
10712
10713 * x86-linux-nat.c (u_debugreg_offset): New function.
10714 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10715
10716 2015-02-27 Pedro Alves <palves@redhat.com>
10717
10718 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10719 declaration.
10720 Include break-common.h.
10721
10722 2015-02-27 Tom Tromey <tromey@redhat.com>
10723 Pedro Alves <palves@redhat.com>
10724
10725 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10726 local used to iterate over enums.
10727 * completer.c (signal_completer): Likewise.
10728 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10729 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10730 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10731 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10732 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10733 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10734 * tui-wingeneral.c (tui_refresh_all): Likewise.
10735
10736 2015-02-27 Pedro Alves <palves@redhat.com>
10737
10738 * target.h: Include "infrun.h".
10739
10740 2015-02-27 Pedro Alves <palves@redhat.com>
10741
10742 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10743
10744 2015-02-27 Pedro Alves <palves@redhat.com>
10745
10746 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10747 (IPA_SYM): Use it.
10748 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10749
10750 2015-02-27 Pedro Alves <palves@redhat.com>
10751
10752 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10753 cli_mld_erase_entire_line, and make it extern "C".
10754 * common/common-defs.h (EXTERN_C): New.
10755 * completer.c (_rl_completion_prefix_display_length)
10756 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10757 out of gdb_display_match_list_1.
10758 (_rl_qsort_string_compare): Move declaration out of
10759 gdb_display_match_list_1, and make it extern "C".
10760 * defs.h (re_comp): Use EXTERN_C.
10761 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10762 and make it extern "C".
10763 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10764 and make it extern "C".
10765 (main): Move declaration out of maintenance_set_profile_cmd.
10766 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10767 EXTERN_C.
10768
10769 2015-02-27 Pedro Alves <palves@redhat.com>
10770
10771 * python/python.c (GdbMethods): Rename to ...
10772 (python_GdbMethods): ... this and make extern.
10773 (GdbModuleDef): Rename to ...
10774 (python_GdbModuleDef): ... this and make extern.
10775
10776 2015-02-27 Pedro Alves <palves@redhat.com>
10777
10778 * record-btrace.c (set_record_btrace_cmdlist)
10779 (show_record_btrace_cmdlist): Remove redefinitions.
10780
10781 2015-02-27 Tom Tromey <tromey@redhat.com>
10782 Pedro Alves <palves@redhat.com>
10783
10784 * dwarf2-frame.c (enum cfa_how_kind, struct
10785 dwarf2_frame_state_reg_info): Move out of struct
10786 dwarf2_frame_state.
10787 * dwarf2read.c (struct tu_stats): Move out of struct
10788 dwarf2_per_objfile.
10789 (struct file_entry): Move out of struct line_header.
10790 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10791 typedef_field_list): Move out of struct field_info.
10792 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10793 Move out of struct dynamic_prop.
10794 (union type_owner, union field_location, struct field, struct
10795 range_bounds, union type_specific): Move out of struct main_type.
10796 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10797 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10798 (struct call_site_target, union call_site_parameter_u, struct
10799 call_site_parameter): Move out of struct call_site.
10800 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10801 m32c_prologue.
10802 (enum srcdest_kind): Move out of struct srcdest.
10803 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10804 * prologue-value.h (enum prologue_value_kind): Move out of struct
10805 prologue_value.
10806 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10807 gdbarch_tdep.
10808 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10809 out of struct field_info.
10810 * symfile.h (struct other_sections): Move out of struct
10811 section_addr_info.
10812 * symtab.c (struct symbol_cache_slot): Move out struct
10813 block_symbol_cache.
10814 * target-descriptions.c (enum tdesc_type_kind): Move out of
10815 typedef struct tdesc_type.
10816 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10817 struct tui_line_or_address.
10818 * value.c (enum internalvar_kind, union internalvar_data): Move
10819 out of struct internalvar.
10820 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10821 gdbarch_tdep.
10822
10823 2015-02-27 Tom Tromey <tromey@redhat.com>
10824 Pedro Alves <palves@redhat.com>
10825
10826 Rename symbols whose names are reserved C++ keywords throughout.
10827
10828 2015-02-27 Pedro Alves <palves@redhat.com>
10829
10830 * Makefile.in (COMPILER): New, get it from autoconf.
10831 (COMPILE.pre, CC_LD): Use COMPILER.
10832 (CXX): Get from autoconf instead.
10833 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10834 * acinclude.m4: Include build-with-cxx.m4.
10835 * build-with-cxx.m4: New file.
10836 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10837 Disable -Werror by default if building in C++ mode.
10838 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10839 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10840 Run supported-warning-flags tests with the C++ compiler.
10841 Save/restore CXXFLAGS too.
10842 * configure: Regenerate.
10843
10844 2015-02-27 Pedro Alves <palves@redhat.com>
10845
10846 * libiberty.m4: New file.
10847 * acinclude.m4: Include libiberty.m4.
10848 * configure.ac: Call libiberty_INIT.
10849 * config.in, configure: Regenerate.
10850
10851 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10852
10853 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10854 31-bit targets, but 64-bit targets as well.
10855 (s390_gnu_triplet_regexp): New function.
10856 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10857 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10858 method.
10859
10860 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10861
10862 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10863 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10864 from CONTEXT_DEBUGGER.
10865
10866 2015-02-26 Doug Evans <dje@google.com>
10867
10868 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10869 CHECK_TYPEDEF.
10870 (set_type_vptr_fieldno): Ditto.
10871 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10872 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10873
10874 2015-02-26 Pedro Alves <palves@redhat.com>
10875
10876 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10877 * complaints.c (vcomplaint): Pass argument FMT directly to
10878 printf-like functions instead of complaint->fmt.
10879 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10880 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10881 * compile/compile-loc2c.c (pushf, unary, binary): Add
10882 ATTRIBUTE_PRINTF.
10883 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10884 to pushf.
10885 (BINARY): Pass string literal as format string to 'binary'.
10886 * compile/compile-object-load.c (link_callbacks_einfo): Add
10887 ATTRIBUTE_PRINTF.
10888 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10889
10890 2015-02-26 Pedro Alves <palves@redhat.com>
10891
10892 * windows-termcap.c: Rename to ...
10893 * stub-termcap.c: ... this. Adjust header line.
10894 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10895 windows-termcap.c.
10896 * configure: Regenerate.
10897 * configure.ac: Refer to stub-termcap.o instead of
10898 windows-termcap.o.
10899 * gdb_curses.h: Mention stub-termcap.c instead of
10900 windows-termcap.c.
10901
10902 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10903
10904 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10905 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10906
10907 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10908
10909 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10910
10911 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10912
10913 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10914 bfd_canonicalize_symtab.
10915
10916 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10917
10918 * amd64fbsd-nat.c: Include sys/user.h.
10919 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10920 instead of KERN_PS_STRINGS to locate the signal trampoline.
10921 * i386fbsd-nat.c: Include sys/user.h.
10922 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10923 instead of KERN_PS_STRINGS to locate the signal trampoline.
10924 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10925 (amd64fbsd_sigtramp_p): New.
10926 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10927 longer set default values.
10928 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10929 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10930 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10931 (i386fbsd_freebsd4_sigtramp_start)
10932 (i386fbsd_freebsd4_sigtramp_middle)
10933 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10934 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10935 (i386fbsd_sigtramp_p): New.
10936 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10937 longer set default values.
10938 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10939
10940 2015-02-25 John Baldwin <jhb@freebsd.org>
10941
10942 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10943 get_frame_register instead of frame_unwind_register_unsigned.
10944
10945 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10946
10947 PR build/18033
10948 * compile/compile-c-support.c (c_compute_program): Change // comment.
10949 * compile/compile-object-load.c (setup_sections): Change // comment.
10950
10951 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10952
10953 PR build/18033:
10954 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10955
10956 2015-02-23 Pedro Alves <palves@redhat.com>
10957
10958 * remote.c (skip_to_semicolon): New function.
10959 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10960 special case the stop reasons that look like hex numbers
10961 upfront. Instead handle real register numbers after matching
10962 all the known stop reasons.
10963
10964 2015-02-21 Doug Evans <dje@google.com>
10965
10966 PR c++/17976, symtab/17821
10967 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10968 is_in_anonymous. All callers updated.
10969 (find_symbol_in_baseclass): Ditto.
10970 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10971 for symbols in an anonymous namespace.
10972 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10973 DW_AT_name directly.
10974 (dwarf2_name): Convert missing namespace name to
10975 CP_ANONYMOUS_NAMESPACE_STR.
10976
10977 2015-02-20 Pedro Alves <palves@redhat.com>
10978
10979 * linux-nat.c (linux_handle_extended_wait): Call
10980 thread_db_notice_clone whenever a new clone LWP is detected.
10981 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10982 functions.
10983 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10984 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10985 (linux_unstop_all_lwps): Declare.
10986 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10987 (thread_get_info_callback): Delete.
10988 (thread_from_lwp): Use td_thr_get_info and record_thread.
10989 (thread_db_attach_lwp): Delete.
10990 (thread_db_notice_clone): New function.
10991 (try_thread_db_load_1): If /proc is mounted and shows the
10992 process'es task list, walk over all LWPs and call thread_from_lwp
10993 instead of relying on td_ta_thr_iter.
10994 (attach_thread): Don't call check_thread_signals here. Split the
10995 tail part of the function (which adds the thread to the core GDB
10996 thread list) to ...
10997 (record_thread): ... this function. Call check_thread_signals
10998 here.
10999 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11000 call thread_from_lwp.
11001 (thread_db_update_thread_list): Rename to ...
11002 (thread_db_update_thread_list_org): ... this.
11003 (thread_db_update_thread_list): New function.
11004 (thread_db_find_thread_from_tid): Delete.
11005 (thread_db_get_ada_task_ptid): Simplify.
11006 * nat/linux-procfs.c: Include <sys/stat.h>.
11007 (linux_proc_task_list_dir_exists): New function.
11008 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11009
11010 2015-02-20 Pedro Alves <palves@redhat.com>
11011
11012 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11013 main LWP. Handle the case of waitpid returning 0 if we're already
11014 attached to the LWP. Don't set the LWP's last_resume_kind to
11015 resume_stop if we already knew about the LWP.
11016 (linux_nat_filter_event): Add debug logs.
11017
11018 2015-02-20 Pedro Alves <palves@redhat.com>
11019
11020 * target.h (forward_target_decr_pc_after_break): Delete
11021 declaration.
11022
11023 2015-02-20 Pedro Alves <palves@redhat.com>
11024
11025 PR threads/18006
11026 * linux-thread-db.c (thread_get_info_callback): Return early if
11027 the thread's lwp id is -1.
11028
11029 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11030
11031 GDB 7.9 released.
11032
11033 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11034
11035 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11036 (dtrace_get_probes) Change type of variable 'dof'.
11037
11038 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11039
11040 PR breakpoints/16812
11041 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11042 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11043 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11044
11045 2015-02-19 David Taylor <dtaylor@emc.com>
11046
11047 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11048
11049 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11050
11051 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11052 function.
11053 (tui_putc): Don't call tui_handle_resize_during_io.
11054 (tui_getc): Likewise.
11055 (tui_mld_getc): Likewise.
11056 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11057 (tui_sigwinch_token): New static variable.
11058 (tui_initialize_win): Adjust documentation. Set
11059 tui_sigwinch_token.
11060 (tui_async_resize_screen): New asynchronous callback.
11061 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11062 invoke tui_async_resize_screen.
11063
11064 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11065
11066 * configure: Regenerated.
11067 * configure.ac: Use GDB_AC_TRANSFORM.
11068 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11069 * acinclude.m4: sinclude transform.m4.
11070 * transform.m4: New file.
11071 (GDB_AC_TRANSFORM): New macro.
11072
11073 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11074
11075 * NEWS: Announce the support for DTrace SDT probes.
11076
11077 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11078
11079 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11080 (amd64_dtrace_parse_probe_argument): New function.
11081 (amd64_dtrace_probe_is_enabled): Likewise.
11082 (amd64_dtrace_enable_probe): Likewise.
11083 (amd64_dtrace_disable_probe): Likewise.
11084 (amd64_linux_init_abi): Register the
11085 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11086 `gdbarch_dtrace_disable_probe' and
11087 `gdbarch_dtrace_probe_is_enabled' hooks.
11088 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11089 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11090 (amd64_dtrace_enable_probe_sequence): Likewise.
11091 (amd64_dtrace_disable_probe_sequence): Likewise.
11092
11093 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11094
11095 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11096 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11097 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11098 handle ELF files.
11099 * Makefile.in (SFILES): dtrace-probe.c added.
11100 * configure: Regenerate.
11101 * dtrace-probe.c: New file.
11102 (SHT_SUNW_dof): New constant.
11103 (dtrace_probe_type): New enum.
11104 (dtrace_probe_arg): New struct.
11105 (dtrace_probe_arg_s): New typedef.
11106 (struct dtrace_probe_enabler): New struct.
11107 (dtrace_probe_enabler_s): New typedef.
11108 (dtrace_probe): New struct.
11109 (dtrace_probe_is_linespec): New function.
11110 (dtrace_dof_sect_type): New enum.
11111 (dtrace_dof_dofh_ident): Likewise.
11112 (dtrace_dof_encoding): Likewise.
11113 (DTRACE_DOF_ENCODE_LSB): Likewise.
11114 (DTRACE_DOF_ENCODE_MSB): Likewise.
11115 (dtrace_dof_hdr): New struct.
11116 (dtrace_dof_sect): Likewise.
11117 (dtrace_dof_provider): Likewise.
11118 (dtrace_dof_probe): Likewise.
11119 (DOF_UINT): New macro.
11120 (DTRACE_DOF_PTR): Likewise.
11121 (DTRACE_DOF_SECT): Likewise.
11122 (dtrace_process_dof_probe): New function.
11123 (dtrace_process_dof): Likewise.
11124 (dtrace_build_arg_exprs): Likewise.
11125 (dtrace_get_arg): Likewise.
11126 (dtrace_get_probes): Likewise.
11127 (dtrace_get_probe_argument_count): Likewise.
11128 (dtrace_can_evaluate_probe_arguments): Likewise.
11129 (dtrace_evaluate_probe_argument): Likewise.
11130 (dtrace_compile_to_ax): Likewise.
11131 (dtrace_probe_destroy): Likewise.
11132 (dtrace_gen_info_probes_table_header): Likewise.
11133 (dtrace_gen_info_probes_table_values): Likewise.
11134 (dtrace_probe_is_enabled): Likewise.
11135 (dtrace_probe_ops): New variable.
11136 (info_probes_dtrace_command): New function.
11137 (_initialize_dtrace_probe): Likewise.
11138 (dtrace_type_name): Likewise.
11139
11140 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11141
11142 * gdbarch.sh (dtrace_parse_probe_argument): New.
11143 (dtrace_probe_is_enabled): Likewise.
11144 (dtrace_enable_probe): Likewise.
11145 (dtrace_disable_probe): Likewise.
11146 * gdbarch.c: Regenerate.
11147 * gdbarch.h: Regenerate.
11148
11149 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11150
11151 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11152 stap_probe_ops for `enable_probe' and `disable_probe'.
11153 * probe.c (enable_probes_command): New function.
11154 (disable_probes_command): Likewise.
11155 (_initialize_probe): Define the cli commands `enable probe' and
11156 `disable probe'.
11157 (parse_probe_linespec): New function.
11158 (info_probes_for_ops): Use parse_probe_linespec.
11159 * probe.h (probe_ops): New hooks `enable_probe' and
11160 `disable_probe'.
11161
11162 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11163
11164 * probe.c (compute_probe_arg): Moved from stap-probe.c
11165 (compile_probe_arg): Likewise.
11166 (probe_funcs): Likewise.
11167 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11168 (compile_probe_arg): Likewise.
11169 (probe_funcs): Likewise.
11170
11171 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11172
11173 * probe.c (print_ui_out_not_applicables): New function.
11174 (exists_probe_with_pops): Likewise.
11175 (info_probes_for_ops): Do not include column headers for probe
11176 types for which no probe has been actually found on any object.
11177 Also invoke `print_ui_out_not_applicables' in order to match the
11178 column rows with the header when probes of several types are
11179 listed.
11180 Print the "Type" column.
11181 * probe.h (probe_ops): Added a new probe operation `type_name'.
11182 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11183 (stap_type_name): New function.
11184
11185 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11186
11187 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11188 (key_is_command_char): Delete.
11189
11190 2015-02-17 Pedro Alves <palves@redhat.com>
11191
11192 * tui/tui.c (tui_enable): Resize windows before anything
11193 might show a window.
11194
11195 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11196
11197 PR gdb/17984
11198 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11199 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11200 call.
11201 * aarch64-tdep.h (tdesc_aarch64): Declare.
11202
11203 2015-02-12 Mark Wielaard <mjw@redhat.com>
11204
11205 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11206
11207 2015-02-13 Doug Evans <dje@google.com>
11208
11209 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11210 anonymous_namespace to is_in_anonymous for consistency with the rest
11211 of the file.
11212 (cp_lookup_bare_symbol): Fix typo in comment.
11213 (cp_search_static_and_baseclasses): Ditto.
11214 (search_symbol_list): Use vertical space in comment better.
11215 (reset_directive_searched): Ditto. Fix typo.
11216 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11217
11218 2015-02-13 Yao Qi <yao.qi@arm.com>
11219
11220 * MAINTAINERS: Update my email address.
11221
11222 2015-02-12 Doug Evans <dje@google.com>
11223
11224 * symtab.c (completion_list_add_name): Fix memory leak.
11225
11226 2015-02-12 Doug Evans <dje@google.com>
11227
11228 * completer.c (complete_line): Remove incorrect comment.
11229
11230 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11231
11232 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11233 (py_print_frame): Use RETURN_MASK_ERROR.
11234
11235 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11236
11237 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11238 function comment. Wrap all function that can throw in cleanups.
11239 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11240 cleanups.
11241
11242 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11243
11244 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11245 Remove the error label.
11246
11247 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11248
11249 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11250 with goto first, indent the former else codepath left. Put variable
11251 'elided' to a new inner block.
11252
11253 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11254
11255 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11256
11257 2015-02-11 Pedro Alves <palves@redhat.com>
11258
11259 * xcoffread.c (within_function): Delete.
11260
11261 2015-02-11 Tom Tromey <tromey@redhat.com>
11262 Pedro Alves <palves@redhat.com>
11263
11264 * breakpoint.c (base_breakpoint_ops): Delete.
11265 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11266 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11267 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11268 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11269 * python/py-arch.c (arch_object_type): Make extern.
11270 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11271 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11272 * python/py-cmd.c (cmdpy_object_type): Make extern.
11273 * python/py-continueevent.c (continue_event_object_type)
11274 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11275 parameter. Update all callers.
11276 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11277 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11278 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11279 * python/py-function.c (fnpy_object_type): Make extern.
11280 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11281 * python/py-infevents.c (call_pre_event_object_type)
11282 (inferior_call_post_event_object_type).
11283 (memory_changed_event_object_type): Make extern.
11284 * python/py-infthread.c (thread_object_type): Make extern.
11285 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11286 * python/py-linetable.c (linetable_entry_object_type)
11287 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11288 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11289 (clear_objfiles_event_object_type): Make extern.
11290 * python/py-objfile.c (objfile_object_type): Make extern.
11291 * python/py-param.c (parmpy_object_type): Make extern.
11292 * python/py-progspace.c (pspace_object_type): Make extern.
11293 * python/py-signalevent.c (signal_event_object_type): Make extern.
11294 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11295 * python/py-type.c (type_object_type, field_object_type)
11296 (type_iterator_object_type): Make extern.
11297 * python/python.c (python_extension_script_ops)
11298 (python_extension_ops): Make extern.
11299 * stap-probe.c (stap_probe_ops): Make extern.
11300
11301 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11302
11303 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11304 because the event thread is not the current thread.
11305
11306 2015-02-11 Doug Evans <xdje42@gmail.com>
11307
11308 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11309 been initialized yet, return NULL.
11310
11311 2015-02-11 Doug Evans <dje@google.com>
11312
11313 * symfile.h (new_symfile_objfile): Delete.
11314 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11315 All callers updated.
11316
11317 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11318
11319 * tui/tui-io.c (tui_handle_resize_during_io): Call
11320 tui_update_gdb_sizes() after resizing the screen.
11321 * tui/tui.c (tui_enable): Resize the terminal before
11322 calling tui_update_gdb_sizes().
11323
11324 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11325
11326 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11327 line before printing a newline.
11328
11329 2015-02-11 Mark Wielaard <mjw@redhat.com>
11330
11331 * utils.c (producer_is_gcc): Return true or false.
11332
11333 2015-02-10 Mark Wielaard <mjw@redhat.com>
11334
11335 * utils.h (producer_is_gcc): Change return type to bool. Add major
11336 argument.
11337 * utils.c (producer_is_gcc): Likewise.
11338 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11339 * dwarf2read.c (check_producer): Likewise.
11340
11341 2015-02-10 Pedro Alves <palves@redhat.com>
11342
11343 * infrun.c (displaced_step_fixup): Switch to the event thread
11344 before calling gdbarch_displaced_step_fixup.
11345
11346 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11347
11348 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11349
11350 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11351
11352 * ada-varobj.c (ada_name_of_child): Constify parent.
11353 (ada_path_expr_of_child): Same.
11354 (ada_value_of_child): Same.
11355 (ada_type_of_child): Same.
11356 * c-varobj.c (c_is_path_expr_parent): Same.
11357 (c_describe_child): Same.
11358 (c_name_of_child): Same.
11359 (c_value_of_child): Same.
11360 (c_type_of_child): Same.
11361 (cplus_number_of_children): Same.
11362 (cplus_describe_child): Constify var.
11363 (cplus_name_of_child): Constify parent.
11364 (cplus_value_of_child): Same.
11365 (cplus_type_of_child): Same.
11366 * jv-varobj.c (java_name_of_child): Same.
11367 (java_value_of_child): Same.
11368 (java_type_of_child): Same.
11369 * varobj.c (value_of_child): Same.
11370 (varobj_default_is_path_expr_parent): Constify var, parent and return
11371 value.
11372 (varobj_get_path_expr): Constify var, modify path_expr through
11373 mutable_var.
11374 (install_new_value): Constify parent.
11375 (value_of_child): Constify parent.
11376 * varobj.h (struct varobj): Constify parent.
11377 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11378 type_of_child.
11379 (varobj_get_path_expr): Constify var.
11380 (varobj_get_path_expr_parent): Constify var and return value.
11381
11382 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11383
11384 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11385 (arm_prologue_this_id): Move PC and SP limit checks to
11386 arm_prologue_unwind_stop_reason.
11387 (arm_prologue_unwind) <stop_reason> : Set to
11388 arm_prologue_unwind_stop_reason.
11389
11390 2015-02-09 Mark Wielaard <mjw@redhat.com>
11391
11392 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11393 DW_LANG_Fortran08 as language_fortran.
11394
11395 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11396
11397 PR remote/17946
11398 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11399 of pointer against char.
11400
11401 2015-02-09 Mark Wielaard <mjw@redhat.com>
11402
11403 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11404 (c_type_print_modifier): Likewise.
11405 * dwarf2read.c (read_tag_atomic_type): New function.
11406 (read_type_die_1): Handle DW_TAG_atomic_type.
11407 * gdbtypes.c (make_atomic_type): New function.
11408 (recursive_dump_type): Handle TYPE_ATOMIC.
11409 * gdbtypes.h (enum type_flag_values): Renumber.
11410 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11411 (TYPE_ATOMIC): New macro.
11412 (make_atomic_type): Declare.
11413
11414 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11415
11416 * btrace.c (ftrace_find_call): Skip gaps.
11417 (ftrace_new_function): Initialize level.
11418 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11419 (ftrace_new_switch): Update
11420 level computation.
11421 (ftrace_new_gap): New.
11422 (ftrace_update_function): Create new function after gap.
11423 (btrace_compute_ftrace_bts): Create gap on error.
11424 (btrace_stitch_bts): Update parameters. Clear trace if it
11425 becomes empty.
11426 (btrace_stitch_trace): Update parameters. Update callers.
11427 (btrace_clear): Reset the number of gaps.
11428 (btrace_insn_get): Return NULL if the iterator points to a gap.
11429 (btrace_insn_number): Return zero if the iterator points to a gap.
11430 (btrace_insn_end): Allow gaps at the end.
11431 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11432 (btrace_find_insn_by_number): Assert that the found iterator does
11433 not point to a gap.
11434 (btrace_call_next, btrace_call_prev): Assert that the last function
11435 is not a gap.
11436 * btrace.h (btrace_bts_error): New.
11437 (btrace_function): Update comment.
11438 (btrace_function) <insn, insn_offset, number>: Update comment.
11439 (btrace_function) <errcode>: New.
11440 (btrace_thread_info) <ngaps>: New.
11441 (btrace_thread_info) <replay>: Update comment.
11442 (btrace_insn_get): Update comment.
11443 * record-btrace.c (btrace_ui_out_decode_error): New.
11444 (record_btrace_info): Print number of gaps.
11445 (btrace_insn_history, btrace_call_history): Call
11446 btrace_ui_out_decode_error for gaps.
11447 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11448
11449 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11450
11451 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11452 * nat/linux-btrace.c: (btrace_this_cpu): New.
11453 (cpu_supports_bts): Call btrace_this_cpu.
11454 (intel_supports_bts): Add cpu parameter.
11455
11456 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11457
11458 * btrace.h (btrace_insn_class): New.
11459 (btrace_insn) <size, iclass>: New.
11460 * btrace.c (ftrace_find_call): Update parameters. Update users.
11461 Use instruction classification.
11462 (ftrace_new_return): Update parameters. Update users.
11463 (ftrace_update_function): Update parameters. Update users. Use
11464 instruction classification.
11465 (ftrace_update_insns): Update parameters. Update users.
11466 (ftrace_classify_insn): New.
11467 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11468 TRY_CATCH around call to gdb_insn_length.
11469
11470 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11471
11472 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11473 Update parameters. Update users.
11474
11475 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11476
11477 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11478 (btrace_conf_bts_attributes): New.
11479 (btrace_conf_children): Add attributes.
11480 * common/btrace-common.h (btrace_config_bts): New.
11481 (btrace_config)<bts>: New.
11482 (btrace_config): Update comment.
11483 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11484 Use config.
11485 * features/btrace-conf.dtd: Increment version. Add size
11486 attribute to bts element.
11487 * record-btrace.c (set_record_btrace_bts_cmdlist,
11488 show_record_btrace_bts_cmdlist): New.
11489 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11490 record_btrace_print_conf, cmd_set_record_btrace_bts,
11491 cmd_show_record_btrace_bts): New.
11492 (record_btrace_info): Call record_btrace_print_conf.
11493 (_initialize_record_btrace): Add commands.
11494 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11495 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11496 (btrace_sync_conf): Synchronize bts size.
11497 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11498 * NEWS: Announce new commands and new packets.
11499
11500 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11501
11502 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11503 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11504 (x86_linux_btrace_conf): New.
11505 (x86_linux_create_target): Initialize to_btrace_conf.
11506 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11507 Check format. Split into this and ...
11508 (linux_enable_bts): ... this.
11509 (linux_btrace_conf): New.
11510 (perf_event_skip_record): Renamed into ...
11511 (perf_event_skip_bts_record): ... this. Updated users.
11512 (linux_disable_btrace): Split into this and ...
11513 (linux_disable_bts): ... this.
11514 (linux_read_btrace): Check format.
11515 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11516 (linux_btrace_conf): New.
11517 (btrace_target_info)<ptid>: Moved.
11518 (btrace_target_info)<conf>: New.
11519 (btrace_target_info): Split into this and ...
11520 (btrace_tinfo_bts): ... this. Updated users.
11521 * btrace.c (btrace_enable): Update parameters.
11522 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11523 (btrace_conf_children, btrace_conf_attributes)
11524 (btrace_conf_elements): New.
11525 * btrace.h (btrace_enable): Update parameters.
11526 (btrace_conf, parse_xml_btrace_conf): New.
11527 * common/btrace-common.h (btrace_config): New.
11528 * feature/btrace-conf.dtd: New.
11529 * record-btrace.c (record_btrace_conf): New.
11530 (record_btrace_cmdlist): New.
11531 (record_btrace_enable_warn, record_btrace_open): Pass
11532 &record_btrace_conf.
11533 (record_btrace_info): Print recording format.
11534 (cmd_record_btrace_bts_start): New.
11535 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11536 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11537 Add "record bts" alias command.
11538 * remote.c (remote_state)<btrace_config>: New.
11539 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11540 (remote_protocol_features): Add qXfer:btrace-conf:read.
11541 (remote_open_1): Call remote_btrace_reset.
11542 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11543 (btrace_target_info)<conf>: New.
11544 (btrace_sync_conf, btrace_read_config): New.
11545 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11546 btrace_read_conf.
11547 (remote_btrace_conf): New.
11548 (init_remote_ops): Initialize to_btrace_conf.
11549 (_initialize_remote): Add qXfer:btrace-conf packet.
11550 * target.c (target_enable_btrace): Update parameters.
11551 (target_btrace_conf): New.
11552 * target.h (target_enable_btrace): Update parameters.
11553 (target_btrace_conf): New.
11554 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11555 (target_ops)<to_enable_btrace>: Update parameters and comment.
11556 (target_ops)<to_btrace_conf>: New.
11557 * target-delegates: Regenerate.
11558 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11559 (target_debug_print_const_struct_btrace_target_info_p): New.
11560 * NEWS: Announce new command and new packet.
11561
11562 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11563
11564 * nat/linux-btrace.h (perf_event_buffer): New.
11565 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11566 <bts>: ... this.
11567 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11568 (perf_event_buffer_size, perf_event_buffer_begin)
11569 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11570 Updated users.
11571 (perf_event_new_data): New.
11572
11573 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11574
11575 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11576 * record-btrace.c (record_btrace_open): Remove call to
11577 target_supports_btrace.
11578 * remote.c (remote_supports_btrace): Update parameters.
11579 * target.c (target_supports_btrace): Update parameters.
11580 * target.h (to_supports_btrace, target_supports_btrace): Update
11581 parameters.
11582 * target-delegates.c: Regenerate.
11583 * target-debug.h (target_debug_print_enum_btrace_format): New.
11584 * nat/linux-btrace.c
11585 (kernel_supports_btrace): Rename into ...
11586 (kernel_supports_bts): ... this. Update users. Update warning text.
11587 (intel_supports_btrace): Rename into ...
11588 (intel_supports_bts): ... this. Update users.
11589 (cpu_supports_btrace): Rename into ...
11590 (cpu_supports_bts): ... this. Update users.
11591 (linux_supports_btrace): Update parameters. Split into this and ...
11592 (linux_supports_bts): ... this.
11593 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11594
11595 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11596
11597 * Makefile.in (SFILES): Add common/btrace-common.c.
11598 (COMMON_OBS): Add common/btrace-common.o.
11599 (btrace-common.o): Add build rules.
11600 * btrace.c (parse_xml_btrace): Update parameters.
11601 (parse_xml_btrace_block): Set format field.
11602 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11603 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11604 (btrace_compute_ftrace): Split into this and...
11605 (btrace_compute_ftrace_bts): ...this.
11606 (btrace_stitch_trace): Split into this and...
11607 (btrace_stitch_bts): ...this.
11608 * btrace.h (parse_xml_btrace): Update parameters.
11609 (make_cleanup_btrace_data): New.
11610 * common/btrace-common.c: New.
11611 * common/btrace-common.h: Include common-defs.h.
11612 (btrace_block_s): Update comment.
11613 (btrace_format): New.
11614 (btrace_format_string): New.
11615 (btrace_data_bts): New.
11616 (btrace_data): New.
11617 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11618 * remote.c (remote_read_btrace): Update parameters.
11619 * target.c (target_read_btrace): Update parameters.
11620 * target.h (target_read_btrace): Update parameters.
11621 (target_ops)<to_read_btrace>: Update parameters.
11622 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11623 * target-delegates.c: Regenerate.
11624 * target-debug (target_debug_print_struct_btrace_data_p): New.
11625 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11626 (linux_read_bts): ...this.
11627 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11628
11629 2015-02-06 Doug Evans <dje@google.com>
11630
11631 * remote-m32r-sdi.c: Include symfile.h.
11632
11633 2015-02-06 Doug Evans <dje@google.com>
11634
11635 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11636 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11637 to here.
11638
11639 2015-02-06 Pedro Alves <palves@redhat.com>
11640
11641 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11642
11643 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11644
11645 PR gdb/15678
11646 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11647 (enable_count_command): Check args for NULL value.
11648
11649 2015-02-05 Doug Evans <xdje42@gmail.com>
11650
11651 * guile/scm-frame.c: Fix spelling errors in a comment.
11652
11653 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11654
11655 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11656 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11657 return type.
11658
11659 2015-02-04 Pedro Alves <palves@redhat.com>
11660
11661 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11662 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11663 returns true.
11664 (resume_stopped_resumed_lwps): Don't check whether the thread is
11665 marked as executing.
11666 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11667
11668 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11669
11670 * regset.h (struct regset): Add flags field.
11671 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11672 * corelow.c (get_core_register_section): Add warning if the size
11673 exceeds the requested size and the regset does not have the
11674 REGSET_VARIABLE_SIZE flag set.
11675 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11676 flag.
11677 * armbsd-tdep.c (armbsd_gregset): Likewise.
11678 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11679 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11680 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11681 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11682
11683 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11684
11685 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11686 For ".reg-xstate", explicitly specify the requested section size
11687 via X86_XSTATE_SIZE instead of just 0 on input and
11688 X86_XSTATE_MAX_SIZE on output.
11689 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11690 Likewise.
11691
11692 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11693
11694 PR corefiles/17808:
11695 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11696 function type, particularly its SIZE parameter.
11697 * gdbarch.h: Regenerate.
11698 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11699 actual against required size using ">=" instead of "==".
11700 (amd64_collect_fpregset): Likewise.
11701 * i386-tdep.c (i386_supply_gregset): Likewise.
11702 (i386_collect_gregset): Likewise.
11703 (i386_supply_fpregset): Likewise.
11704 (i386_collect_fpregset): Likewise.
11705 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11706 (mips_fill_gregset_wrapper): Likewise.
11707 (mips_supply_fpregset_wrapper): Likewise.
11708 (mips_fill_fpregset_wrapper): Likewise.
11709 (mips64_supply_gregset_wrapper): Likewise.
11710 (mips64_fill_gregset_wrapper): Likewise.
11711 (mips64_supply_fpregset_wrapper): Likewise.
11712 (mips64_fill_fpregset_wrapper): Likewise.
11713 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11714 (am33_supply_fpregset_method): Likewise.
11715 (am33_collect_gregset_method): Likewise.
11716 (am33_collect_fpregset_method): Likewise.
11717
11718 2015-02-04 Doug Evans <dje@google.com>
11719 Pedro Alves <palves@redhat.com>
11720 Eli Zaretskii <eliz@gnu.org>
11721
11722 PR tui/17810
11723 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11724 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11725 * tui/tui-file.c: #include tui/tui-command.h.
11726 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11727 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11728 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11729
11730 2015-02-04 Pedro Alves <palves@redhat.com>
11731
11732 Fix build breakage.
11733 * event-loop.c (gdb_do_one_event): Add default switch case.
11734
11735 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11736
11737 Filter out inferior gcc option -fpreprocessed.
11738 * compile/compile.c (filter_args): New function.
11739 (get_args): Use it.
11740
11741 2015-02-03 Pedro Alves <palves@redhat.com>
11742
11743 * event-loop.c: Don't declare nor define a queue type for
11744 gdb_event_p.
11745 (event_queue): Delete.
11746 (create_event, create_file_event, gdb_event_xfree)
11747 (initialize_event_loop, process_event): Delete.
11748 (gdb_do_one_event): Return as soon as one event is handled.
11749 (handle_file_event): Change prototype. Used the passed in
11750 file_handler pointer and ready_mask instead of looping over all
11751 file handlers.
11752 (gdb_wait_for_event): Update the poll/select timeouts before
11753 blocking. Run event handlers directly instead of queueing events.
11754 Return as soon as one event is handled.
11755 (struct async_event_handler_data): Delete.
11756 (invoke_async_event_handler): Delete.
11757 (check_async_event_handlers): Change return type to int. Run
11758 event handlers directly instead of queueing events. Return as
11759 soon as one event is handled.
11760 (handle_timer_event): Delete.
11761 (update_wait_timeout): New function, factored out from
11762 poll_timers.
11763 (poll_timers): Reimplement.
11764 * event-loop.h (initialize_event_loop): Delete declaration.
11765 * top.c (gdb_init): Don't call initialize_event_loop.
11766
11767 2015-02-03 Pedro Alves <palves@redhat.com>
11768
11769 * event-loop.c (clear_async_event_handler): New function.
11770 * event-loop.h (clear_async_event_handler): New declaration.
11771 * record-btrace.c (record_btrace_async): New function.
11772 (init_record_btrace_ops): Install record_btrace_async.
11773 * record-full.c (record_full_async): New function.
11774 (record_full_resume): Don't mark the async event source here.
11775 (init_record_full_ops): Install record_full_async.
11776 (record_full_core_resume): Don't mark the async event source here.
11777 (init_record_full_core_ops): Install record_full_async.
11778 * remote.c (remote_async): Mark and clear the async stop reply
11779 queue event-loop token as appropriate.
11780
11781 2015-02-03 Pedro Alves <palves@redhat.com>
11782
11783 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11784 target_is_async_p instead of target_can_async.
11785 (linux_nat_wait): Use target_is_async_p instead of
11786 target_can_async. Don't enable async here.
11787 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11788 target_is_async_p instead of target_can_async.
11789
11790 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11791
11792 * varobj.h (lang_varobj_ops): Mention which return values need
11793 to be freed.
11794
11795 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11796
11797 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11798
11799 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11800
11801 PR gdb/17856:
11802 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11803 results found in the cache.
11804
11805 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11806
11807 PR gdb/17854:
11808 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11809 when allocating a new one.
11810
11811 2015-02-01 Tom Tromey <tom@tromey.com>
11812
11813 * MAINTAINERS: Remove myself.
11814
11815 2015-01-31 Doug Evans <xdje42@gmail.com>
11816
11817 * dwarf2read.c (process_structure_scope): Update setting of
11818 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11819 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11820 (set_type_vptr_fieldno): New function.
11821 (internal_type_vptr_basetype): New function.
11822 (set_type_vptr_basetype): New function.
11823 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11824 TYPE_VPTR_BASETYPE.
11825 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11826 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11827 (print_cplus_stuff): ... moved here.
11828 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11829 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11830 moved to ...
11831 (struct cplus_struct_type): ... here. All uses updated.
11832 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11833 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11834 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11835 * stabsread.c (read_tilde_fields): Update setting of
11836 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11837
11838 2015-01-31 Doug Evans <xdje42@gmail.com>
11839
11840 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11841 to self_p.
11842 (cp_print_class_member): Rename local domain to self_type.
11843 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11844 domain_type to self_type.
11845 (set_die_type) <need_gnat_info>: Handle
11846 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11847 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11848 TYPE_SPECIFIC_SELF_TYPE.
11849 * gdbtypes.c (internal_type_self_type): New function.
11850 (set_type_self_type): New function.
11851 (smash_to_memberptr_type): Rename parameter domain to self_type.
11852 Update setting of TYPE_SELF_TYPE.
11853 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11854 (smash_to_method_type): Rename parameter domain to self_type.
11855 Update setting of TYPE_SELF_TYPE.
11856 (check_stub_method): Call smash_to_method_type.
11857 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11858 (copy_type_recursive): Ditto.
11859 * gdbtypes.h (enum type_specific_kind): New value
11860 TYPE_SPECIFIC_SELF_TYPE.
11861 (struct main_type) <type_specific>: New member self_type.
11862 (struct cplus_struct_type) <fn_field.type>: Update comment.
11863 (TYPE_SELF_TYPE): Rewrite.
11864 (internal_type_self_type, set_type_self_type): Declare.
11865 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11866 self_type.
11867 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11868 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11869 TYPE_TARGET_TYPE.
11870 * stabsread.c (read_member_functions): Mark methods with
11871 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11872 TYPE_SELF_TYPE.
11873
11874 2015-01-31 Doug Evans <xdje42@gmail.com>
11875
11876 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11877 All uses updated.
11878
11879 2015-01-31 Doug Evans <xdje42@gmail.com>
11880
11881 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11882 or unions. Return zero if union.
11883 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11884 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11885 gnuv3_get_vtable.
11886 (compute_vtable_size): Assert only passed structs.
11887 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11888
11889 2015-01-31 Doug Evans <xdje42@gmail.com>
11890
11891 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11892 kinds.
11893
11894 2015-01-31 Gary Benson <gbenson@redhat.com>
11895 Doug Evans <dje@google.com>
11896
11897 PR cli/9007
11898 PR cli/11920
11899 PR cli/15548
11900 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11901 reached.
11902 * common/common-exceptions.h (enum errors)
11903 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11904 * completer.h (get_max_completions_reached_message): New declaration.
11905 (max_completions): Likewise.
11906 (completion_tracker_t): New typedef.
11907 (new_completion_tracker): New declaration.
11908 (make_cleanup_free_completion_tracker): Likewise.
11909 (maybe_add_completion_enum): New enum.
11910 (maybe_add_completion): New declaration.
11911 (throw_max_completions_reached_error): Likewise.
11912 * completer.c (max_completions): New global variable.
11913 (new_completion_tracker): New function.
11914 (free_completion_tracker): Likewise.
11915 (make_cleanup_free_completion_tracker): Likewise.
11916 (maybe_add_completions): Likewise.
11917 (throw_max_completions_reached_error): Likewise.
11918 (complete_line): Remove duplicates and limit result to max_completions
11919 entries.
11920 (get_max_completions_reached_message): New function.
11921 (gdb_display_match_list): Handle max_completions.
11922 (_initialize_completer): New declaration and function.
11923 * symtab.c: Include completer.h.
11924 (completion_tracker): New static variable.
11925 (completion_list_add_name): Call maybe_add_completion.
11926 (default_make_symbol_completion_list_break_on_1): Renamed from
11927 default_make_symbol_completion_list_break_on. Maintain
11928 completion_tracker across calls to completion_list_add_name.
11929 (default_make_symbol_completion_list_break_on): New function.
11930 * top.c (init_main): Set rl_completion_display_matches_hook.
11931 * tui/tui-io.c: Include completer.h.
11932 (tui_old_rl_display_matches_hook): New static global.
11933 (tui_rl_display_match_list): Notify user if max-completions reached.
11934 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11935 * NEWS (New Options): Mention set/show max-completions.
11936
11937 2015-01-31 Gary Benson <gbenson@redhat.com>
11938
11939 * symtab.c (struct add_name_data) <code>: New field.
11940 Updated comments.
11941 (add_symtab_completions): New function.
11942 (symtab_expansion_callback): Likewise.
11943 (default_make_symbol_completion_list_break_on): Set datum.code.
11944 Move minimal symbol scan before calling expand_symtabs_matching.
11945 Scan known primary symtabs for externs and statics before calling
11946 expand_symtabs_matching. Pass symtab_expansion_callback as
11947 expansion_notify argument to expand_symtabs_matching. Do not scan
11948 primary symtabs for externs and statics after calling
11949 expand_symtabs_matching.
11950
11951 2015-01-31 Gary Benson <gbenson@redhat.com>
11952
11953 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11954 (struct quick_symbol_functions) <expand_symtabs_matching>:
11955 New argument expansion_notify. All uses updated.
11956 (expand_symtabs_matching): New argument expansion_notify.
11957 All uses updated.
11958 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11959 Also print expansion notify.
11960 * symtab.c (expand_symtabs_matching_via_partial): Call
11961 expansion_notify whenever a partial symbol table is expanded.
11962 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11963 expansion_notify whenever a symbol table is instantiated.
11964
11965 2015-01-31 Doug Evans <xdje42@gmail.com>
11966
11967 * cli-out.c: #include completer.h, readline/readline.h.
11968 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11969 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11970 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11971 * cli-out.h (cli_display_match_list): Declare.
11972 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11973 (ELLIPSIS_LEN): Ditto.
11974 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11975 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11976 (gdb_fnprint, gdb_print_filename): Ditto.
11977 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11978 (gdb_display_match_list): Ditto.
11979 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11980 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11981 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11982 (match_list_displayer): New struct.
11983 (gdb_display_match_list): Declare.
11984 * top.c (init_main): Set rl_completion_display_matches_hook.
11985 * tui/tui-io.c: #include completer.h.
11986 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11987 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11988 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11989 (tui_mld_getc, tui_mld_read_key): Ditto.
11990 (tui_rl_display_match_list): Rewrite.
11991 (tui_handle_resize_during_io): New arg for_completion. All callers
11992 updated.
11993
11994 2015-01-31 Doug Evans <xdje42@gmail.com>
11995
11996 Add symbol lookup cache.
11997 * NEWS: Document new options and commands.
11998 * symtab.c (symbol_cache_key): New static global.
11999 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12000 (SYMBOL_LOOKUP_FAILED): New macro.
12001 (symbol_cache_slot_state): New enum.
12002 (block_symbol_cache): New struct.
12003 (symbol_cache): New struct.
12004 (new_symbol_cache_size, symbol_cache_size): New static globals.
12005 (hash_symbol_entry, eq_symbol_entry): New functions.
12006 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12007 (make_symbol_cache, free_symbol_cache): New functions.
12008 (get_symbol_cache, symbol_cache_cleanup): New function.
12009 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12010 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12011 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12012 (symbol_cache_flush, symbol_cache_dump): New functions.
12013 (maintenance_print_symbol_cache): New function.
12014 (maintenance_flush_symbol_cache): New function.
12015 (symbol_cache_stats): New function.
12016 (maintenance_print_symbol_cache_statistics): New function.
12017 (symtab_new_objfile_observer): New function.
12018 (symtab_free_objfile_observer): New function.
12019 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12020 (_initialize_symtab): Init symbol_cache_key. New parameter
12021 maint symbol-cache-size. New maint commands print symbol-cache,
12022 print symbol-cache-statistics, flush-symbol-cache.
12023 Install new_objfile, free_objfile observers.
12024
12025 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12026
12027 PR symtab/17855
12028 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12029 to end.
12030
12031 2015-01-31 Doug Evans <xdje42@gmail.com>
12032
12033 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12034 * auto-load.c: #include ctype.h.
12035 (struct auto_load_pspace_info): Replace member loaded_scripts with
12036 new members loaded_script_files, loaded_script_texts.
12037 (auto_load_pspace_data_cleanup): Update.
12038 (init_loaded_scripts_info): Update.
12039 (get_auto_load_pspace_data_for_loading): Update.
12040 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12041 updated.
12042 (maybe_add_script_text): New function.
12043 (clear_section_scripts): Update.
12044 (source_script_file, execute_script_contents): New functions.
12045 (source_section_scripts): Add support for
12046 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12047 (print_scripts): New function.
12048 (auto_load_info_scripts): Also print inlined scripts.
12049 (maybe_print_unsupported_script_warning): Renamed from
12050 unsupported_script_warning_print. All callers updated.
12051 (maybe_print_script_not_found_warning): Renamed from
12052 script_not_found_warning_print. All callers updated.
12053 * extension-priv.h (struct extension_language_script_ops): New member
12054 objfile_script_executor.
12055 * extension.c (ext_lang_objfile_script_executor): New function.
12056 * extension.h (objfile_script_executor_func): New typedef.
12057 (ext_lang_objfile_script_executor): Declare.
12058 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12059 * guile/guile.c (guile_extension_script_ops): Update.
12060 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12061 * python/python.c (python_extension_script_ops): Update.
12062 (gdbpy_execute_objfile_script): New function.
12063
12064 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12065
12066 * tui/tui-io.c (tui_expand_tabs): New function.
12067 (tui_puts, tui_redisplay_readline): Expand TABs into the
12068 appropriate number of spaces.
12069 * tui/tui-regs.c: Include tui-io.h.
12070 (tui_register_format): Call tui_expand_tabs to expand TABs into
12071 the appropriate number of spaces.
12072 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12073
12074 2015-01-30 Doug Evans <dje@google.com>
12075
12076 * NEWS: "info source" command now display producer string if present.
12077 * source.c (source_info): Print producer string if present.
12078
12079 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12080
12081 * varobj.c (varobj_delete): Fix comment.
12082
12083 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12084
12085 * varobj.c (create_child): Modify comment.
12086
12087 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12088
12089 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12090 parameter.
12091 (ada_name_of_variable): Same.
12092 (ada_path_expr_of_child): Same.
12093 (ada_value_of_variable): Same.
12094 (ada_value_is_changeable_p): Same.
12095 (ada_value_has_mutated): Same.
12096 * c-varobj.c (varobj_is_anonymous_child): Same.
12097 (c_is_path_expr_parent): Same.
12098 (c_number_of_children): Same.
12099 (c_name_of_variable): Same.
12100 (c_path_expr_of_child): Same.
12101 (get_type): Same.
12102 (c_value_of_variable): Same.
12103 (cplus_number_of_children): Same.
12104 (cplus_name_of_variable): Same.
12105 (cplus_path_expr_of_child): Same.
12106 (cplus_value_of_variable): Same.
12107 * jv-varobj.c (java_number_of_children): Same.
12108 (java_name_of_variable): Same.
12109 (java_path_expr_of_child): Same.
12110 (java_value_of_variable): Same.
12111 * varobj.c (number_of_children): Same.
12112 (name_of_variable): Same.
12113 (is_root_p): Same.
12114 (varobj_ensure_python_env): Same.
12115 (varobj_get_objname): Same.
12116 (varobj_get_expression): Same.
12117 (varobj_get_display_format): Same.
12118 (varobj_get_display_hint): Same.
12119 (varobj_has_more): Same.
12120 (varobj_get_thread_id): Same.
12121 (varobj_get_frozen): Same.
12122 (dynamic_varobj_has_child_method): Same.
12123 (varobj_get_gdb_type): Same.
12124 (is_path_expr_parent): Same.
12125 (varobj_default_is_path_expr_parent): Same.
12126 (varobj_get_language): Same.
12127 (varobj_get_attributes): Same.
12128 (varobj_is_dynamic_p): Same.
12129 (varobj_get_child_range): Same.
12130 (varobj_value_has_mutated): Same.
12131 (varobj_get_value_type): Same.
12132 (number_of_children): Same.
12133 (name_of_variable): Same.
12134 (check_scope): Same.
12135 (varobj_editable_p): Same.
12136 (varobj_value_is_changeable_p): Same.
12137 (varobj_floating_p): Same.
12138 (varobj_default_value_is_changeable_p): Same.
12139
12140 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12141
12142 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12143 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12144 child->path_expr.
12145 (cplus_path_expr_of_child): Same.
12146
12147 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12148
12149 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12150 result.
12151 (mi_cmd_var_info_expression): Same.
12152 * varobj.c (varobj_get_expression): Mention in the comment that
12153 the result must by freed by the caller.
12154
12155 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12156
12157 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12158 varobj_get_type.
12159 (varobj_update_one): Same.
12160 * varobj.c (update_type_if_necessary): Free curr_type_str and
12161 new_type_str.
12162 (varobj_get_type): Specify in comment that the result needs to be
12163 freed by the caller.
12164
12165 2015-01-29 Doug Evans <dje@google.com>
12166
12167 PR symtab/17890
12168 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12169
12170 2015-01-25 Mark Wielaard <mjw@redhat.com>
12171
12172 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12173 * utils.c (producer_is_gcc_ge_4): Likewise.
12174 (producer_is_gcc): New function.
12175 * utils.h (producer_is_gcc): New declaration.
12176
12177 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12178
12179 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12180 kind.
12181 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12182 parameter by "addr_stack" parameter.
12183 (resolve_dynamic_range): Replace "addr" parameter by
12184 "stack_addr" parameter. Update function documentation.
12185 Update code accordingly.
12186 (resolve_dynamic_array, resolve_dynamic_union)
12187 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12188 (resolve_dynamic_type): Update code, following the changes made
12189 to resolve_dynamic_type_internal's interface.
12190 * dwarf2loc.h (struct property_addr_info): New.
12191 (dwarf2_evaluate_property): Replace "address" parameter
12192 by "addr_stack" parameter. Adjust function documentation.
12193 (struct dwarf2_offset_baton): New.
12194 (struct dwarf2_property_baton): Update documentation of
12195 field "referenced_type" to be more general. New field
12196 "offset_info" in union data field.
12197 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12198 parameter by "addr_stack" parameter. Adjust code accordingly.
12199 Add support for PROP_ADDR_OFFSET properties.
12200 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12201 DW_AT_data_member_location attributes as well. Use case
12202 statements instead of if/else condition.
12203
12204 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12205
12206 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12207 Return zero if PARENT_VALUE is NULL and parent_type's
12208 range type is dynamic.
12209
12210 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12211
12212 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12213 nonzero if the type's subtype is dynamic.
12214 (resolve_dynamic_range): Also resolve the range's subtype.
12215
12216 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12217
12218 Pushed by Joel Brobecker <brobecker@adacore.com>.
12219 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12220
12221 2015-01-27 Doug Evans <dje@google.com>
12222
12223 * NEWS: Mention gdb.Objfile.username.
12224 * python/py-objfile.c (objfpy_get_username): New function.
12225 (objfile_getset): Add "username".
12226
12227 2015-01-24 Mark Wielaard <mjw@redhat.com>
12228
12229 * stack.c (return_command): Markup warning message with _.
12230
12231 2015-01-24 Doug Evans <xdje42@gmail.com>
12232
12233 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12234
12235 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12236
12237 Fix 100x slowdown regression on DWZ files.
12238 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12239 (struct line_header): Add offset and offset_in_dwz.
12240 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12241 (free_line_header_voidp): New declaration.
12242 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12243 functions.
12244 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12245 (handle_DW_AT_stmt_list): Use line_header_hash.
12246 (free_line_header_voidp): New function.
12247 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12248 (dwarf_decode_lines): New parameter decode_mapping, use it.
12249 (dwarf2_free_objfile): Free line_header_hash.
12250
12251 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12252
12253 PR gdb/17416
12254 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12255 value_ind.
12256
12257 2015-01-15 Mark Wielaard <mjw@redhat.com>
12258
12259 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12260 DW_AT_noreturn.
12261 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12262 calling_convention an 8 bit bit field.
12263 (TYPE_NO_RETURN): New macro.
12264 * infcmd.c (finish_command): Query if function does not return
12265 normally.
12266 * stack.c (return_command): Likewise.
12267
12268 2015-01-23 Pedro Alves <palves@redhat.com>
12269
12270 * linux-nat.c (linux_is_async_p): New macro.
12271 (linux_nat_is_async_p):
12272 (linux_nat_terminal_inferior): Check whether the target can async
12273 instead of whether it is already async.
12274 (linux_nat_terminal_ours): Don't check whether the target is
12275 async.
12276 (linux_async_pipe): Use linux_is_async_p.
12277
12278 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12279
12280 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12281 '-ascending'.
12282 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12283 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12284 Sort tp_array using tp_array_compar.
12285 (_initialize_thread): Extend thread_apply_all_command help.
12286
12287 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12288
12289 * corelow.c (core_open): Call also thread_command.
12290 * gdbthread.h (thread_command): New prototype moved from ...
12291 * thread.c (thread_command): ... here.
12292 (thread_command): Make it global.
12293
12294 2015-01-22 Pedro Alves <palves@redhat.com>
12295
12296 * configure.ac [*mingw32*]: Check $curses_found instead of
12297 $prefer_curses.
12298 * configure: Regenerate.
12299 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12300 HAVE_NCURSES_NCURSES_H checks.
12301
12302 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12303
12304 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12305 fails with the 1st arg NULL, try again with "unknown". Don't test
12306 the "cup" capability: it isn't supported by the Windows port of
12307 ncurses, but the Windows console driver is still capable of
12308 supporting TUI.
12309
12310 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12311
12312 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12313
12314 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12315
12316 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12317 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12318 reason that "make TAGS" is broken.
12319
12320 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12321
12322 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12323 and check additional store instructions.
12324
12325 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12326
12327 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12328
12329 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12330
12331 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12332 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12333 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12334 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12335 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12336 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12337 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12338 ppc_process_record_op19, ppc_process_record_op31,
12339 ppc_process_record_op59, ppc_process_record_op60,
12340 ppc_process_record_op63): Likewise.
12341
12342 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12343
12344 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12345 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12346 strerror.
12347
12348 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12349
12350 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12351 ppc_process_record_op31, ppc_process_record_op59,
12352 ppc_process_record_op60, ppc_process_record_op63,
12353 ppc_process_record): Fix -Wformat warning.
12354 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12355 Remove unused variables.
12356
12357 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12358
12359 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12360
12361 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12362
12363 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12364 CONFIG_OBS if not building with a curses library.
12365 * configure: Regenerate.
12366
12367 * windows-termcap.c: Include defs.h. Make the whole body empty if
12368 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12369 HAVE_NCURSES_NCURSES_H is defined.
12370
12371 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12372
12373 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12374 from end of line to start of next line.
12375
12376 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12377
12378 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12379 Scan PLT stub backward for reverse debugging.
12380 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12381
12382 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12383 Ulrich Weigand <uweigand@de.ibm.com>
12384
12385 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12386 gdb_target_obs.
12387 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12388 record.
12389 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12390 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12391 (ppc_linux_init_abi): Set process_record, process_record_signal.
12392 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12393 ppc_linux_record_tdep to gdbarch_tdep.
12394 (ppc_process_record): New declaration.
12395 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12396 ppc_process_record_op19, ppc_process_record_op31,
12397 ppc_process_record_op59, ppc_process_record_op60,
12398 ppc_process_record_op63, ppc_process_record): New functions.
12399
12400 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12401
12402 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12403 rs6000_in_function_epilogue_frame_p and add an argument
12404 for frame_info.
12405 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12406 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12407 New functions.
12408 (rs6000_epilogue_frame_unwind): New.
12409 (rs6000_gdbarch_init): Append epilogue unwinder.
12410
12411 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12412
12413 * nat/linux-personality.c: Replace "#ifndef
12414 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12415 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12416 systems.
12417
12418 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12419
12420 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12421 functions.
12422 (_initialize_tui_win) <border-kind, border-mode>:
12423 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12424 (tui_set_tab_width_command): Fix the commentary.
12425
12426 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12427
12428 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12429 Doc fix.
12430 (tui_set_tab_width_command): Delete and recreate the source and
12431 the disassembly windows, to show the effect of the changed tab
12432 size immediately.
12433
12434 * tui/tui-data.h (LINE_PREFIX): Make shorter
12435 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12436 "Thread NNNNN.XXXX" thread ID notation on Windows.
12437
12438 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12439
12440 Fix gcc-5 compilation.
12441 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12442
12443 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12444
12445 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12446 (linux-personality.o): New rule.
12447 * common/common-defs.h: Include <stdint.h>.
12448 * config/aarch64/linux.mh (NATDEPFILES): Include
12449 linux-personality.o.
12450 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12451 * config/arm/linux.mh (NATDEPFILES): Likewise.
12452 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12453 * config/i386/linux.mh (NATDEPFILES): Likewise.
12454 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12455 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12456 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12457 * config/mips/linux.mh (NATDEPFILES): Likewise.
12458 * config/pa/linux.mh (NATDEPFILES): Likewise.
12459 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12460 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12461 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12462 * config/s390/linux.mh (NATDEPFILES): Likewise.
12463 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12464 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12465 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12466 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12467 * defs.h: Remove #include <stdint.h> (moved to
12468 common/common-defs.h).
12469 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12470 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12471 nat/linux-personality.c).
12472 (linux_nat_create_inferior): Remove code to disable address space
12473 randomization (moved to nat/linux-personality.c). Create cleanup
12474 to disable address space randomization.
12475 * nat/linux-personality.c: New file.
12476 * nat/linux-personality.h: Likewise.
12477
12478 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12479
12480 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12481 common/posix-strerror.c.
12482 (posix-strerror.o): New rule.
12483 (mingw-strerror.o): Likewise.
12484 * common/common-utils.h (safe_strerror): Move prototype to here,
12485 from utils.h.
12486 * common/common.host: New file.
12487 * common/mingw-strerror.c: Likewise.
12488 * common/posix-strerror.c: Likewise.
12489 * configure: Regenerated.
12490 * configure.ac: Source common/common.host. Add variable
12491 common_host_obs to gdb_host_obs.
12492 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12493 gdb/common/posix-strerror.c when warning about the use of
12494 strerror.
12495 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12496 common/mingw-strerror.c.
12497 * posix-hdep.c (safe_strerror): Remove definition; move it to
12498 common/posix-hdep.c.
12499 * utils.h (safe_strerror): Remove prototype; move to
12500 common/common-utils.h.
12501
12502 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12503
12504 GDB 7.8.2 released.
12505
12506 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12507
12508 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12509 ___XA type if the array has already been fixed.
12510
12511 2015-01-14 Yao Qi <yao@codesourcery.com>
12512
12513 * Makefile.in (ppc-linux.o): New rule.
12514 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12515 * configure.ac: AC_CHECK_FUNCS(getauxval).
12516 * config.in: Re-generated.
12517 * configure: Re-generated.
12518 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12519 Declare.
12520 * nat/ppc-linux.c: New file.
12521 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12522 Call ppc64_64bit_inferior_p.
12523
12524 2015-01-14 Yao Qi <yao@codesourcery.com>
12525
12526 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12527 nat/ppc-linux.h.
12528 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12529 (PPC_FEATURE_HAS_DFP): Likewise.
12530 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12531 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12532 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12533 Include "nat/ppc-linux.h".
12534 * nat/ppc-linux.h: New file.
12535 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12536
12537 2015-01-14 Pedro Alves <palves@redhat.com>
12538
12539 PR gdb/17525
12540 * breakpoint.c: Include "interps.h".
12541 (bpstat_do_actions_1): Also check whether the interpreter is
12542 async.
12543
12544 2015-01-14 Pedro Alves <palves@redhat.com>
12545
12546 PR cli/17828
12547 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12548 reinstall if the interpreter is sync.
12549
12550 2015-01-13 Doug Evans <dje@google.com>
12551
12552 * objfiles.c (objfile_filename): New function.
12553 * objfiles.h (objfile_filename): Declare it.
12554 (objfile_name): Add function comment.
12555 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12556 bfd file name (which may be realpath'd), and the original name.
12557
12558 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12559
12560 * NEWS: Create a new section for the next release branch.
12561 Rename the section of the current branch, now that it has
12562 been cut.
12563
12564 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12565
12566 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12567 * version.in: Bump version to 7.9.50.DATE-cvs.
12568
12569 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12570
12571 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12572 Remove trailing new-line in argument of call to warning.
12573
12574 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12575
12576 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12577 new-line in argument of call to "warning".
12578
12579 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12580
12581 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12582 in static block, then try searching for primitive types.
12583
12584 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12585
12586 * top.h (gdb_add_history): Declare.
12587 * top.c (command_count): New variable.
12588 (gdb_add_history): New function.
12589 (gdb_safe_append_history): New static function.
12590 (quit_force): Call it.
12591 (command_line_input): Use gdb_add_history instead of
12592 add_history.
12593 * event-top.c (command_line_handler): Likewise.
12594
12595 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12596
12597 PR gdb/17046
12598 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12599 <setjmp.h> #include.
12600
12601 2015-01-11 Doug Evans <xdje42@gmail.com>
12602
12603 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12604
12605 2015-01-11 Doug Evans <xdje42@gmail.com>
12606
12607 PR gdb/15830
12608 * NEWS: The "maint demangle" command is renamed as "demangle".
12609 * demangle.c: #include cli/cli-utils.h, language.h.
12610 (demangle_command): New function.
12611 (_initialize_demangle): Add new command "demangle".
12612 * maint.c (maintenance_demangle): Stub out.
12613 (_initialize_maint_cmds): Update help text for "maint demangle",
12614 and mark as deprecated.
12615
12616 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12617
12618 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12619 inferior_thread is a function.
12620
12621 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12622
12623 * Makefile.in (.y.c): Don't munge yacc's #line
12624 directives.
12625
12626 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12627
12628 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12629 to prompt for input.
12630 * tui/tui-hooks.c (tui_query_hook): Remove.
12631 (tui_install_hooks): Don't set deprecated_query_hook.
12632 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12633 height calculation. Always update the command window's cur_line.
12634
12635 2015-01-09 Pedro Alves <palves@redhat.com>
12636
12637 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12638 function.
12639 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12640 declaration.
12641 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12642 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12643 stop_reason.
12644 (check_stopped_by_watchpoint): New function.
12645 (save_sigtrap): Reimplement.
12646 (linux_nat_stopped_by_watchpoint): Adjust.
12647 (linux_nat_lp_status_is_event): Delete.
12648 (stop_wait_callback): Only call save_sigtrap after storing the
12649 pending status.
12650 (status_callback): If the thread had been stopped for a breakpoint
12651 that has since been removed, discard the event and resume the LWP.
12652 (count_events_callback, select_event_lwp_callback): Use
12653 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12654 (cancel_breakpoint): Rename to ...
12655 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12656 stopped for a software breakpoint or hardware breakpoint.
12657 (select_event_lwp): Only give preference to the stepping LWP in
12658 all-stop mode. Adjust comments.
12659 (stop_and_resume_callback): Remove references to new_pending_p.
12660 (linux_nat_filter_event): Likewise. Leave exit events of the
12661 leader thread pending here. Handle signal short circuiting here.
12662 Only call save_sigtrap after storing the pending waitstatus.
12663 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12664 new_pending. Don't handle leaving events the caller is not
12665 interested in pending here, nor handle signal short-circuiting
12666 here. Also give equal priority to all LWPs that have had events
12667 in non-stop mode. If reporting a software breakpoint event,
12668 unadjust the LWP's PC.
12669 * linux-nat.h (enum lwp_stop_reason): New.
12670 (struct lwp_info) <stop_pc>: New field.
12671 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12672 (struct lwp_info) <stop_reason>: New field.
12673 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12674
12675 2015-01-09 Pedro Alves <palves@redhat.com>
12676
12677 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12678 Set the LWP's 'resumed' flag.
12679
12680 2015-01-09 Pedro Alves <palves@redhat.com>
12681
12682 * linux-nat.c (linux_resume_one_lwp): New function.
12683 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12684 (linux_nat_resume): Use lwp_status_pending_p and
12685 linux_resume_one_lwp.
12686 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12687 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12688 (status_callback, running_callback): Use lwp_status_pending_p.
12689 (lwp_status_pending_p): New function.
12690 (stop_and_resume_callback): Use lwp_status_pending_p.
12691 (linux_nat_filter_event): Use linux_resume_one_lwp.
12692 (linux_nat_wait_1): Always use status_callback to look for an LWP
12693 with a pending status. Use linux_resume_one_lwp.
12694 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12695 linux_resume_one_lwp.
12696
12697 2015-01-09 Pedro Alves <palves@redhat.com>
12698
12699 * breakpoint.c (bp_location_inserted_here_p): New function,
12700 factored out from ...
12701 (breakpoint_inserted_here_p): ... here. Use
12702 ALL_BP_LOCATIONS_AT_ADDR.
12703 (software_breakpoint_inserted_here_p): Use
12704 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12705
12706 2014-01-09 Pedro Alves <palves@redhat.com>
12707
12708 Skip enabling event reporting if the kernel supports
12709 PTRACE_EVENT_CLONE.
12710 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12711 (thread_db_use_events): New function.
12712 (try_thread_db_load_1): Check thread_db_use_events before enabling
12713 event reporting.
12714 (update_thread_state): New function.
12715 (attach_thread): Use it. Check thread_db_use_events before
12716 enabling event reporting.
12717 (thread_db_detach): Check thread_db_use_events before disabling
12718 event reporting.
12719 (find_new_threads_callback): Check thread_db_use_events before
12720 enabling event reporting. Update the thread's state if not using
12721 libthread_db events.
12722
12723 2015-01-09 Pedro Alves <palves@redhat.com>
12724
12725 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12726 about to wait for is > 0.
12727 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12728 the kernel thread ID is -1.
12729
12730 2015-01-09 Pedro Alves <palves@redhat.com>
12731
12732 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12733 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12734 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12735 ptrace option flags.
12736 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12737 field.
12738 * nat/linux-procfs.c: Include <dirent.h>.
12739 (linux_proc_get_int): New parameter "warn". Handle it.
12740 (linux_proc_get_tgid): Adjust.
12741 (linux_proc_get_tracerpid): Rename to ...
12742 (linux_proc_get_tracerpid_nowarn): ... this.
12743 (linux_proc_pid_get_state): New function, factored out from
12744 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12745 and handle it.
12746 (linux_proc_pid_is_gone): New function.
12747 (linux_proc_pid_is_stopped): Adjust.
12748 (linux_proc_pid_is_zombie_maybe_warn)
12749 (linux_proc_pid_is_zombie_nowarn): New functions.
12750 (linux_proc_pid_is_zombie): Use
12751 linux_proc_pid_is_zombie_maybe_warn.
12752 (linux_proc_attach_tgid_threads): New function.
12753 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12754 (linux_proc_get_tracerpid): Rename to ...
12755 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12756 (linux_proc_pid_is_gone): New declaration.
12757 (linux_proc_pid_is_zombie): Update comment.
12758 (linux_proc_pid_is_zombie_nowarn): New declaration.
12759 (linux_proc_attach_lwp_func): New typedef.
12760 (linux_proc_attach_tgid_threads): New declaration.
12761 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12762 use nowarn functions.
12763 (linux_ptrace_attach_fail_reason_string): Move here from
12764 gdbserver/linux-low.c and rename.
12765 (ptrace_supports_feature): If the current ptrace options are not
12766 known yet, check them now, instead of asserting.
12767 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12768 Declare.
12769
12770 2015-01-09 Pedro Alves <palves@redhat.com>
12771
12772 * linux-thread-db.c (thread_db_find_new_threads_silently)
12773 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12774 (find_new_threads_once): Print debug output on gdb_stdlog.
12775
12776 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12777 Pedro Alves <palves@redhat.com>
12778
12779 * compile/compile.c: Include "gdb_wait.h".
12780 (do_rmdir): Check return value, and free 'zap'.
12781
12782 2015-01-08 Pedro Alves <palves@redhat.com>
12783 Yao Qi <yao@codesourcery.com>
12784
12785 * dwarf2loc.c (indirect_pieced_value): Don't call
12786 gdb_sign_extend. Call extract_signed_integer instead.
12787 * utils.c (gdb_sign_extend): Remove.
12788 * utils.h (gdb_sign_extend): Remove declaration.
12789
12790 2015-01-07 Pierre Muller <muller@sourceware.org>
12791
12792 PR symtab/17811
12793 * stabsread.c (define_symbol): Set language for C++ special symbols.
12794
12795 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12796
12797 * inflow.c (initial_gdb_ttystate): Tweak comment.
12798
12799 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12800
12801 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12802 comment documenting function.
12803
12804 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12805
12806 * terminal.h (set_initial_gdb_ttystate): Declare.
12807 * inflow.c (initial_gdb_ttystate): New static variable.
12808 (set_initial_gdb_ttystate): New setter.
12809 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12810 instead of our current terminal state.
12811 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12812
12813 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12814
12815 * guile/scm-type.c (tyscm_array_1): Add comment.
12816 * python/py-type.c (typy_array_1): Add comment.
12817
12818 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12819
12820 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12821 error if N2 is equal to N1 - 1.
12822
12823 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12824
12825 * python/py-type.c (typy_array_1): Do not raise negative-length
12826 exception if N2 is equal to N1 - 1.
12827
12828 2015-01-03 Doug Evans <xdje42@gmail.com>
12829
12830 * c-exp.y: Whitespace cleanup.
12831 (classify_inner_name): Remove extra ;.
12832
12833 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12834
12835 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12836 offset signed.
12837
12838 2015-01-02 Doug Evans <dje@google.com>
12839
12840 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12841
12842 2015-01-02 Doug Evans <dje@google.com>
12843
12844 * symtab.h (struct symbol): Fix typo in comment.
12845
12846 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12847
12848 Update year range in copyright notice of all files.
12849
12850 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12851
12852 * top.c (print_gdb_version): Update copyright year to 2015.
12853
12854 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12855
12856 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12857
12858 For older changes see ChangeLog-2014.
12859 \f
12860 Local Variables:
12861 mode: change-log
12862 left-margin: 8
12863 fill-column: 74
12864 version-control: never
12865 coding: utf-8
12866 End: