[C++/mingw] ser-mingw.c casts
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-11-17 Pedro Alves <palves@redhat.com>
2
3 * ser-mingw.c (CancelIo_ftype): New typedef.
4 (CancelIo): Use CancelIo_ftype.
5 (ser_windows_close, ser_windows_wait_handle)
6 (ser_windows_read_prim, stop_select_thread)
7 (console_select_thread, pipe_select_thread, file_select_thread)
8 (ser_console_wait_handle, ser_console_done_wait_handle)
9 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
10 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
11 (net_windows_socket_check_pending, net_windows_select_thread)
12 (net_windows_wait_handle, net_windows_done_wait_handle)
13 (net_windows_close): Add casts.
14 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
15 void*.
16
17 2015-11-17 Simon Marchi <simon.marchi@ericsson.com>
18
19 * c-exp.y (exp): Adjust, change enum c_string_type to
20 c_string_type.
21 (parse_string_or_char): Likewise.
22 * c-lang.c (charset_for_string_type): Likewise.
23 (classify_type): Likewise.
24 (c_printchar): Likewise.
25 (c_printstr): Likewise.
26 (evaluate_subexp_c): Likewise. And change cast to enum
27 c_string_type_values.
28 * c-lang.h: Include "common/enum_flags.h".
29 (enum c_string_type): Rename to...
30 (enum c_string_type_values): ...this.
31 (c_string_type): Define new enum flags type.
32
33 2015-11-17 Pedro Alves <palves@redhat.com>
34
35 * btrace.h: Include common/enum-flags.h.
36 (btrace_insn_flags): Define.
37 (struct btrace_insn) <flags>: Change type.
38 (btrace_function_flags): Define.
39 (struct btrace_function) <flags>: Change type.
40 (btrace_thread_flags): Define.
41 (struct btrace_thread_info) <flags>: Change type.
42 * c-exp.y (token_flags): Rename to ...
43 (token_flag): ... this.
44 (token_flags): Define.
45 (struct token) <flags>: Change type.
46 * common/enum-flags.h: New file.
47 * compile/compile-c-types.c (convert_qualified): Change type of
48 'quals' local.
49 * compile/compile-internal.h: Include "common/enum-flags.h".
50 (gcc_qualifiers_flags): Define.
51 * completer.c (enum reg_completer_targets): Rename to ...
52 (enum reg_completer_target): ... this.
53 (reg_completer_targets): Define.
54 (reg_or_group_completer_1): Change type of 'targets' parameter.
55 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
56 of 'psl_flags' local.
57 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
58 * infrun.c: Include "common/enum-flags.h".
59 (enum step_over_what): Rename to ...
60 (enum step_over_what_flag): ... this.
61 (step_over_what): Change type.
62 (start_step_over): Change type of 'step_what' local.
63 (thread_still_needs_step_over): Now returns a step_over_what.
64 Adjust.
65 (keep_going_pass_signal): Change type of 'step_what' local.
66 * linux-tdep.c: Include "common/enum-flags.h".
67 (enum filterflags): Rename to ...
68 (enum filter_flag): ... this.
69 (filter_flags): Define.
70 (dump_mapping_p): Change type of 'filterflags' parameter.
71 (linux_find_memory_regions_full): Change type of 'filterflags'
72 local.
73 (linux_find_memory_regions_full): Pass the address of an unsigned
74 int to sscanf instead of the address of an enum.
75 * record-btrace.c (btrace_print_lines): Change type of local
76 'psl_flags'.
77 (btrace_call_history): Replace 'flags' parameter
78 with 'int_flags' parameter. Adjust.
79 (record_btrace_call_history, record_btrace_call_history_range)
80 (record_btrace_call_history_from): Rename 'flags' parameter to
81 'int_flags'. Use record_print_flags.
82 * record.h: Include "common/enum-flags.h".
83 (record_print_flags): Define.
84 * source.c: Include "common/enum-flags.h".
85 (print_source_lines_base, print_source_lines): Change type of
86 flags parameter.
87 * symtab.h: Include "common/enum-flags.h".
88 (enum print_source_lines_flags): Rename to ...
89 (enum print_source_lines_flag): ... this.
90 (print_source_lines_flags): Define.
91 (print_source_lines): Change prototype.
92
93 2015-11-17 Pedro Alves <palves@redhat.com>
94
95 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
96 error instead of TARGET_XFER_E_IO.
97 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
98 memory_error.
99
100 2015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
101
102 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
103 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
104 value.
105 * dwarf2read.c (read_subrange_type): Likewise.
106
107 2015-11-16 Yao Qi <yao.qi@linaro.org>
108
109 * aarch64-tdep.c (aarch64_extract_return_value): Change array
110 buf's length to V_REGISTER_SIZE.
111
112 2015-11-16 Yao Qi <yao.qi@linaro.org>
113
114 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
115 from bfd_byte * to value *. Caller updated.
116 (pass_in_x): Likewise.
117 (pass_in_v_or_stack): Likewise.
118 (pass_on_stack): Likewise.
119
120 2015-11-16 Yao Qi <yao.qi@linaro.org>
121
122 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
123 instead of value_contents_writeable.
124 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
125
126 2015-11-16 Yao Qi <yao.qi@linaro.org>
127
128 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
129 to buf. Pass buf instead of val to push_stack_item.
130
131 2015-11-13 Yao Qi <yao.qi@linaro.org>
132
133 PR tdep/19051
134 * arm-tdep.c (arm_type_align): Return the right alignment
135 value for vector.
136 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
137 128-bit vector types.
138 (arm_return_in_memory): Handel vector type.
139
140 2015-11-13 Yao Qi <yao.qi@linaro.org>
141
142 * arm-tdep.c (arm_return_in_memory): Rewrite it.
143 (arm_return_value): Call arm_return_in_memory for
144 TYPE_CODE_COMPLEX.
145
146 2015-11-12 Yao Qi <yao.qi@linaro.org>
147
148 * arm-tdep.c (push_stack_item): Change contents type to
149 const gdb_byte *.
150
151 2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
152
153 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
154 cast to PTRACE_TYPE_RET *.
155 (inf_ptrace_store_register): Likewise.
156
157 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
160 info sub-commands.
161 * gnu-nat.c (add_task_commands): Likewise.
162 * macrocmd.c (_initialize_macrocmd): Likewise.
163
164 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * cli/cli-decode.c (add_info): Switch to class_info.
167
168 2015-11-09 Joel Brobecker <brobecker@adacore.com>
169
170 * ada-lang.c (ada_is_wrapper_field): Add special handling
171 for fields called "RETVAL".
172
173 2015-11-09 Yao Qi <yao.qi@linaro.org>
174
175 * arm-tdep.c (arm_exidx_new_objfile): Use
176 ELF_STRING_ARM_unwind.
177
178 2015-11-09 Yao Qi <yao.qi@linaro.org>
179
180 * infrun.c (displaced_step_in_progress_thread): New function.
181 (handle_inferior_event_1): Call it.
182
183 2015-11-05 Yao Qi <yao.qi@linaro.org>
184
185 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
186 aarch64_decode_insn and decode instruction by aarch64_inst.
187
188 2015-11-05 Yao Qi <yao.qi@linaro.org>
189
190 * aarch64-tdep.c (extract_signed_bitfield): Remove.
191 (decode_masked_match): Remove.
192 (aarch64_decode_add_sub_imm): Remove.
193 (aarch64_decode_br): Remove.
194 (aarch64_decode_eret): Remove.
195 (aarch64_decode_movz): Remove.
196 (aarch64_decode_orr_shifted_register_x): Remove.
197 (aarch64_decode_ret): Remove.
198 (aarch64_decode_stp_offset): Remove.
199 (aarch64_decode_stur): Remove.
200 (aarch64_analyze_prologue): Call aarch64_decode_insn
201 and use aarch64_inst to decode instructions.
202
203 2015-11-05 Yao Qi <yao.qi@linaro.org>
204
205 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
206 wback.
207 (aarch64_decode_stp_offset_wb): Removed.
208 (aarch64_analyze_prologue): Don't use
209 aarch64_decode_stp_offset_wb.
210
211 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
212
213 PR/18376
214 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
215 (s390_software_single_step): New function.
216 (s390_displaced_step_hw_singlestep): New function.
217 (s390_gdbarch_init): Fill gdbarch slots with the above.
218
219 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
220
221 PR/18376
222 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
223 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
224 (s390_linux_record_tdep): New static global variable.
225 (s390x_linux_record_tdep): New static global variable.
226 (s390_all_but_pc_registers_record): New function.
227 (s390_canonicalize_syscall): New function.
228 (s390_linux_syscall_record): New function.
229 (s390_linux_record_signal): New function.
230 (s390_record_calc_disp_common): New function.
231 (s390_record_calc_disp): New function.
232 (s390_record_calc_disp_vsce): New function.
233 (s390_record_calc_rl): New function.
234 (s390_record_gpr_g): New function.
235 (s390_record_gpr_h): New function.
236 (s390_record_vr): New function.
237 (s390_process_record): New function.
238 (s390_init_linux_record_tdep): New function.
239 (s390_gdbarch_init): Fill record function slots.
240
241 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
242
243 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
244 memory storage.
245
246 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
247
248 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
249 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
250 (_initialize_record): Document the /s modifier.
251 * NEWS: Announce record instruction-history's new /s modifier.
252
253 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
254
255 * record-btrace.c (struct btrace_line_range): New.
256 (btrace_mk_line_range, btrace_line_range_add)
257 (btrace_line_range_is_empty, btrace_line_range_contains_range)
258 (btrace_find_line_range, btrace_print_lines): New.
259 (btrace_insn_history): Add source interleaving algorithm.
260
261 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
262
263 * disasm.h (DISASSEMBLY_SPECULATION): New.
264 (struct disasm_insn): New.
265 (gdb_pretty_print_insn): New.
266 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
267 Update users. Print instruction number and indicate speculative
268 execution, if requested.
269
270 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
271
272 * disasm.c (dump_insns): Split into this and ...
273 (gdb_pretty_print_insn): ... this.
274
275 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
278 (xtensa_linux_fetch_inferior_registers): Likewise.
279 (xtensa_linux_store_inferior_registers): Likewise.
280
281 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * arm-linux-nat.c (arm_linux_read_description): Add cast.
284
285 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
286
287 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
288 type of rw to enum target_hw_bp_type.
289 (ppc_linux_remove_mask_watchpoint): Likewise.
290 * target.c (target_insert_mask_watchpoint): Likewise.
291 (target_remove_mask_watchpoint): Likewise.
292 * target.h (target_insert_mask_watchpoint): Likewise.
293 (target_remove_mask_watchpoint): Likewise.
294 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
295 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
296 * target-delegates.c: Regenerate.
297
298 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
301 (get_sim_inferior_data): Likewise.
302 (sim_inferior_data_cleanup): Likewise.
303 (gdbsim_close_inferior): Likewise.
304 (gdbsim_resume_inferior): Likewise.
305 (gdbsim_wait): Likewise.
306 (simulator_command): Likewise.
307 (sim_command_completer): Likewise.
308
309 2015-11-03 Marcin Koƛcielnicki <koriakin@0x04.net>
310
311 * MAINTAINERS (Write After Approval): Add Marcin Koƛcielnicki.
312
313 2015-10-30 Pedro Alves <palves@redhat.com>
314
315 * breakpoint.c (breakpoint_in_range_p)
316 (breakpoint_location_address_range_overlap): New functions.
317 * breakpoint.h (breakpoint_in_range_p): New declaration.
318 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
319 in the scratch pad range, don't displaced step.
320
321 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
322
323 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
324 size_stack_t, size_size_t, size_iovec.
325
326 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
327
328 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
329 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
330 (amd64_x32_linux_init_abi): Fix size_termios.
331
332 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
333
334 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
335
336 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
337
338 * linux-record.c (record_linux_system_call): Fix old_select.
339
340 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
341
342 * linux-record.c (record_linux_system_call): Fix newstatat.
343
344 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
345
346 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
347
348 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
349
350 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
351 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
352 (amd64_x32_linux_init_abi): Add size_time_t.
353 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
354 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
355 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
356 handling.
357 * linux-record.h (struct linux_record_tdep): Add size_time_t.
358 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
359
360 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
361
362 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
363
364 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
365
366 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
367 size_dirent{,64}, add size_old_dirent.
368 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
369 add size_old_dirent.
370 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
371 size_old_dirent.
372 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
373 add size_old_dirent.
374 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
375 add size_old_dirent.
376 * linux-record.c (record_linux_system_call): Fix handling of readdir
377 and getdents{,64}.
378 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
379 add size_old_dirent.
380 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
381 size_dirent{,64}, add size_old_dirent.
382
383 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
384
385 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
386 size_sigset_t, size_old_sigaction, size_old_sigset_t.
387 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
388 size_sigset_t, size_old_sigaction, size_old_sigset_t.
389 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
390 size_old_sigaction, size_old_sigset_t.
391 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
392 size_old_sigaction, size_old_sigset_t.
393 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
394 size_old_sigaction, size_old_sigset_t.
395 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
396 size_sigset_t, size_old_sigaction, size_old_sigset_t.
397
398 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
399
400 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
401 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
402
403 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
404
405 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
406 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
407 (amd64_x32_linux_init_abi): Remove size_siginfo.
408 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
409 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
410 * linux-record.c (record_linux_system_call): Change size_siginfo
411 to size_siginfo_t.
412 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
413 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
414
415 2015-10-29 Pedro Alves <palves@redhat.com>
416
417 * mdebugread.c (add_data_symbol): New function, factored out from
418 ...
419 (parse_symbol): ... here. Delete 'theclass' local.
420
421 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * jit.c (jit_target_read_impl): Add cast.
424
425 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * jit.c (jit_reader_load): Add cast.
428
429 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * dwarf2read.c (partial_die_full_name): Add cast.
432
433 2015-10-29 Pedro Alves <palves@redhat.com>
434
435 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
436
437 2015-10-29 Pedro Alves <palves@redhat.com>
438
439 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
440
441 2015-10-29 Eli Zaretskii <eliz@gnu.org>
442
443 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
444 in the environment.
445
446 2015-10-29 Pedro Alves <palves@redhat.com>
447
448 * gnu-v2-abi.c (gnuv2_is_destructor_name)
449 (gnuv2_is_constructor_name): Add casts.
450
451 2015-10-29 Pedro Alves <palves@redhat.com>
452
453 * common/common-exceptions.c (exception_none): Add cast.
454
455 2015-10-29 Pedro Alves <palves@redhat.com>
456
457 * compile/compile-c-types.c (struct type_map_instance)
458 <gcc_type>: Rename to gcc_type_handle.
459 (insert_type, convert_type): Adjust.
460
461 2015-10-29 Pedro Alves <palves@redhat.com>
462
463 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
464 assume that "break" breaks out of a TRY/CATCH.
465 * python/py-framefilter.c (py_print_single_arg): Don't assume
466 "continue" breaks out of a TRY/CATCH.
467 * python/py-value.c (valpy_binop_throw): New function, factored
468 out from ...
469 (valpy_binop): ... this.
470 (valpy_richcompare_throw): New function, factored
471 out from ...
472 (valpy_richcompare): ... this.
473 * solib.c (solib_read_symbols): Don't assume "break" breaks out
474 of a TRY/CATCH.
475 * common/common-exceptions.h [USE_RAW_CXX_TRY]
476 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
477
478 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
479
480 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
481 as move along with [d]addu.
482
483 2015-10-28 Yao Qi <yao.qi@linaro.org>
484
485 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
486 aarch64_decode_insn.
487
488 2015-10-27 Pedro Alves <palves@redhat.com>
489
490 * common/print-utils.c (host_address_to_string): Rename to ...
491 (host_address_to_string_1): ... this.
492 * common/print-utils.h (host_address_to_string): Reimplement as
493 wrapper around host_address_to_string_1.
494 * utils.c (gdb_print_host_address): Rename to ...
495 (gdb_print_host_address_1): ... this.
496 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
497 around host_address_to_string_1.
498
499 2015-10-27 Pedro Alves <palves@redhat.com>
500
501 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
502 memory_error. Rename local 'status' to 'res'.
503 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
504 memory_error.
505 * corefile.c (read_stack, read_code, write_memory): Always pass
506 TARGET_XFER_E_IO to memory_error.
507 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
508 memory_error. Rename parameter 'status' to 'err'.
509 (dump_insns): Rename local 'status' to 'err'.
510 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
511 to 'errp'. Rename local 'status' to 'err'. Always pass
512 TARGET_XFER_E_IO to memory_error.
513 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
514 * target.c (target_read_memory, target_read_raw_memory)
515 (target_read_stack, target_read_code, target_write_memory)
516 (target_write_raw_memory): Return -1 on error instead of
517 TARGET_XFER_E_IO.
518 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
519 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
520
521 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * guile/guile-internal.h (gdbscm_with_guile): Change return
524 types to const char *.
525 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
526 (struct c_data) <func>: Likewise.
527 (struct c_data) <result>: Change type to const char *.
528 (scscm_eval_scheme_string): Change return type to
529 const char *.
530 (scscm_source_scheme_script): Likewise.
531 (gdbscm_safe_eval_string): Change type of result variable to
532 const char * and remove cast.
533 (gdbscm_safe_source_script): Likewise.
534 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
535 Change return type to const char *.
536 (gdbscm_disasm_read_memory): Change type of status to
537 const char *.
538
539 2015-10-27 Pedro Alves <palves@redhat.com>
540
541 * source.c (openp): New local 'last_errno'. Use it to
542 save/restore errno.
543
544 2015-10-27 Pedro Alves <palves@redhat.com>
545
546 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
547
548 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * ctf.c (SET_ENUM_FIELD): New macro.
551 (ctf_read_status): Use it.
552 (ctf_read_tp): Use it.
553
554 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
555
556 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
557 scm_t_dynwind_flags casts.
558 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
559 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
560 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
561
562 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
563
564 * ax.h (ax_raw_byte): New declaration.
565 * ax-general.c (ax_raw_byte): New function.
566 (ax_simple): Use ax_raw_byte.
567 * ax-gdb.c (gen_printf): Likewise.
568
569 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * ada-lang.h (GROW_VECT): Add cast.
572
573 2015-10-26 Doug Evans <xdje42@gmail.com>
574
575 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
576
577 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
580 pointer.
581 (simple_search_memory): Cast return of memmem.
582
583 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
584
585 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
586
587 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
588
589 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
590 -1 on error.
591
592 2015-10-26 Doug Evans <dje@google.com>
593
594 PR symtab/17391
595 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
596 instead of gdbarch_dwarf2_reg_to_regnum.
597 (dwarf2_frame_cache): Ditto.
598 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
599 gdbarch_dwarf2_reg_to_regnum.
600 (get_reg_value): Ditto.
601 (dwarf2_fetch_cfa_info): Ditto.
602 (dwarf2_frame_prev_register): Ditto.
603 * dwarf2loc.c: #include "complaints.h".
604 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
605 instead of gdbarch_dwarf2_reg_to_regnum.
606 (dwarf_expr_get_reg_value): Ditto.
607 (read_pieced_value): Ditto.
608 (write_pieced_value): Ditto.
609 (dwarf2_evaluate_loc_desc_full): Ditto.
610 (dwarf_reg_to_regnum): New function.
611 (throw_bad_regnum_error): New function.
612 (dwarf_reg_to_regnum_or_error): Renamed from
613 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
614 All callers updated. Call throw_bad_regnum_error.
615 (locexpr_regname): Improve text of bad register number.
616 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
617 (dwarf_reg_to_regnum_or_error): Update prototype.
618 * dwarf2expr.c: #include "dwarf2loc.h".
619 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
620 gdbarch_dwarf2_reg_to_regnum.
621 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
622 * gdbarch.h: Regenerate.
623 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
624 register.
625 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
626 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
627 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
628 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
629 Remove warning for bad register.
630 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
631 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
632 i386_svr4_reg_to_regnum. Return -1 for bad registers.
633 (i386_svr4_reg_to_regnum): New function.
634 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
635 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
636 on bad registers, return -1.
637 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
638 Remove warning for bad register.
639 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
640 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
641 Remove warning for bad register. Return -1 for bad register.
642 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
643 for bad register, return -1.
644 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
645 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
646 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
647 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
648 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
649 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
650 for bad regs.
651 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
652 bad regs. Fix error result.
653 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
654 (reg_value_complaint): Update complaint text.
655 * mdebugread.c (reg_value_complaint): New function.
656 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
657
658 2015-10-26 Doug Evans <dje@google.com>
659
660 PR python/18938
661 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
662 All callers updated.
663
664 2015-10-26 Doug Evans <dje@google.com>
665
666 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
667 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
668 (maintenance_print_psymbols): Print address map.
669
670 2015-10-26 Doug Evans <dje@google.com>
671
672 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
673
674 2015-10-26 Doug Evans <dje@google.com>
675
676 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
677 gdbserver/linux-low.c.
678 (WSETSTOP): Simplify.
679
680 2015-10-26 Doug Evans <dje@google.com>
681
682 * linux-thread-db.c (find_new_threads_callback): Ditto.
683 (thread_db_pid_to_str): Ditto.
684
685 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
688 local char array to scm_mode_bits, use a cast instead.
689
690 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
691
692 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
693 result. Change type of element_block_ptr. Change allocation to
694 use XNEWVEC.
695
696 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
697
698 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
699 catch_errors call instead of NULL.
700
701 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
704 char pointer to scm_mode_bits.
705
706 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
709 cast.
710
711 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
714 "data" local variable and use it.
715
716 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
717
718 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
719 domain_enum cast.
720 (gdbscm_lookup_symbol): Likewise.
721
722 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
723
724 * d-exp.y: Remove an obsolete comment and propagate the block
725 information to the produced expression.
726
727 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
730 cast.
731 (tui_add_content_elements): Likewise.
732
733 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * cli/cli-setshow.c (do_set_command): Constify p.
736
737 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
740 (void *) cast with (gdb_byte *).
741
742 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * proc-service.c (ps_pdread): Add cast.
745
746 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
749 valbuf.
750
751 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
754 (ia64_push_dummy_call): Remove cast and change type of "to" to
755 array of gdb_byte.
756
757 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
760
761 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
762
763 * observer.h (observer_${event}_notification_stub): Add cast.
764
765 2015-10-23 Yao Qi <yao.qi@linaro.org>
766
767 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
768 dsd.insn_count to zero.
769
770 2015-10-22 Pedro Alves <palves@redhat.com>
771
772 * infrun.c (stop_after_trap): Delete.
773 (clear_proceed_status, handle_signal_stop, struct
774 infcall_control_state, save_infcall_control_state)
775 (restore_infcall_control_state): Remove references to
776 stop_after_trap.
777
778 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
779
780 * python/python.c (_initialize_python): Add cast.
781
782 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
783
784 * nto-tdep.c (nto_inferior_data): Add cast.
785
786 2015-10-22 Pedro Alves <palves@redhat.com>
787
788 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
789 windows_wait and windows_resume directly instead of
790 wait_for_inferior and resume.
791
792 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * xtensa-tdep.h (XTREG): Add casts.
795 (XTREG_END): Likewise.
796
797 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
800
801 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
804
805 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
806
807 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
808 buf to gdb_byte*.
809 (supply_32bit_reg): Add cast.
810 (mips64_fill_gregset): Likewise.
811
812 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
813
814 PR python/18073
815 * python/py-type.c (typy_get_composite): Allow returning a
816 function type.
817
818 2015-10-21 Keven Boell <keven.boell@intel.com>
819
820 * dwarf2read.c (set_die_type): Add read of
821 DW_AT_allocated and DW_AT_associated.
822 * f-typeprint.c: New include of typeprint.h
823 (f_print_type): Add check for allocated/associated
824 status of type.
825 (f_type_print_varspec_suffix): Add check for
826 * gdbtypes.c (create_array_type_with_stride):
827 Add check for valid data location of type in
828 case allocated or associated attributes are set.
829 Length of an array should be only calculated if
830 allocated or associated is resolved as true.
831 (is_dynamic_type_internal): Add check for allocated/
832 associated.
833 (resolve_dynamic_array): Evaluate allocated/associated
834 properties.
835 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
836 <DYN_PROP_ASSOCIATED>: New enums.
837 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
838 (type_not_allocated): New function.
839 (type_not_associated): New function.
840 * valarith.c (value_subscripted_rvalue): Add check for
841 allocated/associated.
842 * valprint.c: New include of typeprint.h.
843 (valprint_check_validity): Add check for allocated/associated.
844 (value_check_printable): Add check for allocated/
845 associated.
846 * typeprint.h (val_print_not_allocated): New function.
847 (val_print_not_associated): New function.
848 * typeprint.c (val_print_not_allocated): New function.
849 (val_print_not_associated): New function.
850
851 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
852
853 * Makefile.in: Add arm.c/o.
854 * arch/arm.c: New file.
855 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
856 (MAKE_THUMB_ADDR): Likewise.
857 (UNMAKE_THUMB_ADDR): Likewise.
858 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
859 (IS_THUMB_ADDR): Move to arm.h.
860 (MAKE_THUMB_ADDR): Likewise.
861 (UNMAKE_THUMB_ADDR): Likewise.
862 * configure.tgt: Add arm.o to all ARM configs.
863
864 2015-10-21 Yao Qi <yao.qi@linaro.org>
865
866 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
867 Remove argument exp_vCont_s.
868 * gdb.base/range-stepping.exp: Callers updated.
869 * gdb.trace/range-stepping.exp: Likewise.
870
871 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
872
873 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
874 (nto_sniff_abi_note_section): New function.
875 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
876 binary.
877
878 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
879
880 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
881 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
882 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
883 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
884 New functions.
885 (_initialize_nto_tdep): New forward declaration, new function.
886 * nto-tdep.h (struct nto_inferior_data): New struct.
887 (nto_inferior_data): New function declaration.
888
889 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
890
891 * findvar.c (address_from_register): Check REGNUM validity.
892
893 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
894
895 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
896 (init_procfs_targets): Wire new function.
897
898 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
899
900 * nto-procfs.c (sys/auxv.h): Include.
901 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
902 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
903 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
904
905 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
906
907 * nto-procfs.c (nto_procfs_path): Rename to...
908 (nodestr): ... this, and change type.
909 (nto_node): Use new variable and logic accordingly.
910 (procfs_open_1): Use new variable name. Use local buffer to construct
911 procfrs path.
912 (procfs_pidlist): Use NODESTR to construct procfs path.
913 (procfs_files_info): Use NODESTR to output meaningful text.
914 (do_attach): Construct procfs using NODESTR.
915 (procfs_create_inferior): Compare pointer to NULL.
916
917 2015-10-19 Josh Stone <jistone@redhat.com>
918
919 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
920 return state, even when not actively catching syscalls at all.
921 (linux_handle_extended_wait): Mark syscall_state like an entry.
922 (wait_lwp): Set syscall_state ignored for other traps.
923 (linux_nat_filter_event): Likewise.
924
925 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
926
927 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
928 when handling 'E', 'T', 'S', 'X' and 'W' packets.
929 Do not set rs->waiting_for_stop_reply back to 1.
930
931 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
932
933 * nto-procfs.c (common/filestuff.h): Include.
934 (procfs_can_use_hw_breakpoint): Fix enum name.
935 (procfs_open_1): Fix compiler warning.
936 (procfs_pidlist): Make static.
937 (procfs_meminfo): Make static, fix type name, add missing argument.
938 (procfs_store_registers): Make static.
939 (procfs_thread_info): Remove unused function.
940 (_initialize_procfs): Forward declare.
941
942 2015-10-16 Yao Qi <yao.qi@arm.com>
943
944 * MAINTAINERS: Update my email address.
945
946 2015-10-15 Yao Qi <yao.qi@linaro.org>
947
948 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
949 Call gdbarch_breakpoint_from_pc to instruction length.
950 (aarch64_linux_remove_hw_breakpoint): Likewise.
951 * common/common-regcache.h (regcache_register_size): Declare.
952 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
953 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
954 the process is 32bit, otherwise set alignment to 4.
955 (aarch64_handle_breakpoint): Update comments.
956 * regcache.c (regcache_register_size): New function.
957
958 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
959
960 * gdbarch.sh (core_regset_section): Remove.
961 * gdbarch.h: Regenerate.
962
963 2015-10-14 Yao Qi <yao.qi@linaro.org>
964
965 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
966 out of it.
967 (enum aarch64_memory_operand_type): New.
968
969 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
970
971 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
972
973 2015-10-13 Pedro Alves <palves@redhat.com>
974
975 * ada-lang.c (ada_enum_name): Constify local.
976 * ada-typeprint.c (print_range_bound): Constify locals.
977 * c-varobj.c (c_describe_child): Likewise.
978 * cli/cli-setshow.c (do_set_command): Likewise.
979 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
980 * dwarf2read.c (find_file_and_directory): Likewise.
981 (anonymous_struct_prefix, dwarf2_name): Likewise.
982 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
983 * go-lang.c (unpack_mangled_go_symbol): Likewise.
984 * jv-typeprint.c (java_type_print_base): Likewise.
985 * ser-tcp.c (net_open): Likewise.
986 * symfile.c (deduce_language_from_filename): Likewise.
987 * symtab.c (gdb_mangle_name): Likewise.
988 * tui/tui-io.c (tui_redisplay_readline): Likewise.
989
990 2015-10-13 Pedro Alves <palves@redhat.com>
991
992 * infrun.c (restore_execution_direction): New function.
993 (fetch_inferior_event): Use it instead of
994 make_cleanup_restore_integer.
995 (execution_direction): Change type to enum
996 exec_direction_kind.
997 * infrun.h (execution_direction): Likewise.
998
999 2015-10-13 Pedro Alves <palves@redhat.com>
1000
1001 * ada-lang.c (ada_value_primitive_packed_val): Constify
1002 locals. Use value_contents_writeable. Remove casts.
1003
1004 2015-10-13 Pedro Alves <palves@redhat.com>
1005
1006 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1007 and alloca calls.
1008
1009 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1012 write_memory with write_memory_unsigned_integer.
1013
1014 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * solib-dsbt.c (cmp_name): Constify arguments.
1017 * solib-frv.c (cmp_name): Likewise.
1018 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1019 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1020 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1021 (gdb_bfd_lookup_symbol): Likewise.
1022 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1023 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1024
1025 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * stack.c (parse_frame_specification): Remove message parameter,
1028 replace with fixed string in function body, update function
1029 comment.
1030 (frame_info): Remove message to parse_frame_specification.
1031 (select_frame_command): Likewise.
1032
1033 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * stack.c (parse_frame_specification): Delete.
1036 (parse_frame_specification_1): Rename to
1037 parse_frame_specification.
1038 (frame_info): Use parse_frame_specification.
1039 (select_frame_command): Likewise.
1040 (return_command): Use select_frame and print_stack_frame rather
1041 than frame_command and select_frame_command.
1042 (func_command): Use get_current_frame rather than
1043 parse_frame_specification.
1044
1045 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1046
1047 * stack.c (func_command): Return early when there is no ARG
1048 string.
1049
1050 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * stack.c: Include safe-ctype.h not ctype.h.
1053 (parse_frame_specification): Use ISSPACE not isspace.
1054 (backtrace_command): Use TOLOWER not tolower.
1055
1056 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1057
1058 * mep-tdep.c (current_me_module): Add cast.
1059 (mep_gdbarch_init): Likewise.
1060
1061 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1064 (m32c_write_reg_t): ...this and...
1065 (m32c_read_reg_t): ...this.
1066 (struct m32c_reg): Update types of read and write.
1067 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1068 adjust definition.
1069 (m32c_banked_read): Likewise.
1070 (m32c_sb_read): Likewise.
1071 (m32c_part_read): Likewise.
1072 (m32c_cat_read): Likewise.
1073 (m32c_r3r2r1r0_read): Likewise.
1074 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1075 and adjust definition.
1076 (m32c_banked_write): Likewise.
1077 (m32c_sb_write): Likewise.
1078 (m32c_part_write): Likewise.
1079 (m32c_cat_write): Likewise.
1080 (m32c_r3r2r1r0_write): Likewise.
1081
1082 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1085
1086 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1087
1088 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1089 gdb_sys_no_syscall instead of -1.
1090
1091 2015-10-12 Yao Qi <yao.qi@linaro.org>
1092
1093 * NEWS: Mention the change.
1094
1095 2015-10-12 Yao Qi <yao.qi@linaro.org>
1096
1097 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1098 (aarch64_emit_load_store): ... it. All callers updated.
1099
1100 2015-10-12 Yao Qi <yao.qi@linaro.org>
1101
1102 * arch/aarch64-insn.c (emit_insn): Rename to ...
1103 (aarch64_emit_insn): ... it. All callers updated.
1104
1105 2015-10-12 Yao Qi <yao.qi@linaro.org>
1106
1107 * aarch64-linux-tdep.c: Include arch-utils.h.
1108 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1109 set_gdbarch_displaced_step_copy_insn,
1110 set_gdbarch_displaced_step_fixup,
1111 set_gdbarch_displaced_step_free_closure,
1112 set_gdbarch_displaced_step_location,
1113 and set_gdbarch_displaced_step_hw_singlestep.
1114 * aarch64-tdep.c (struct displaced_step_closure): New.
1115 (struct aarch64_displaced_step_data): New.
1116 (aarch64_displaced_step_b): New function.
1117 (aarch64_displaced_step_b_cond): Likewise.
1118 (aarch64_register): Likewise.
1119 (aarch64_displaced_step_cb): Likewise.
1120 (aarch64_displaced_step_tb): Likewise.
1121 (aarch64_displaced_step_adr): Likewise.
1122 (aarch64_displaced_step_ldr_literal): Likewise.
1123 (aarch64_displaced_step_others): Likewise.
1124 (aarch64_displaced_step_copy_insn): Likewise.
1125 (aarch64_displaced_step_fixup): Likewise.
1126 (aarch64_displaced_step_hw_singlestep): Likewise.
1127 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1128 (aarch64_displaced_step_copy_insn): Declare.
1129 (aarch64_displaced_step_fixup): Declare.
1130 (aarch64_displaced_step_hw_singlestep): Declare.
1131 * arch/aarch64-insn.c (emit_insn): Moved from
1132 gdbserver/linux-aarch64-low.c.
1133 (emit_load_store): Likewise.
1134 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1135 gdbserver/linux-aarch64-low.c.
1136 (struct aarch64_register): Likewise.
1137 (struct aarch64_memory_operand): Likewise.
1138 (ENCODE): Likewise.
1139 (can_encode_int32): New macro.
1140 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1141 (emit_tb, emit_nop): Likewise.
1142 (emit_insn): Declare.
1143 (emit_load_store): Declare.
1144
1145 2015-10-12 Yao Qi <yao.qi@linaro.org>
1146
1147 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1148 gdbserver/linux-aarch64-low.c.
1149 (aarch64_relocate_instruction): Likewise.
1150 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
1151 (struct aarch64_insn_data): Moved from
1152 gdbserver/linux-aarch64-low.c.
1153 (struct aarch64_insn_visitor): Likewise.
1154 (aarch64_relocate_instruction): Declare.
1155
1156 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1157
1158 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
1159 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
1160 to the returned value.
1161
1162 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1163
1164 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
1165 is large enough for BIT_SIZE. Update function comment.
1166
1167 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1168
1169 * ada-lang.c (ada_value_primitive_packed_val): Move
1170 src_len variable to local block where used. Override
1171 BIT_SIZE if bigger than size of resolved type.
1172
1173 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1174
1175 * gdbtypes.h (is_scalar_type): Add extern declaration.
1176 * gdbtypes.c (is_scalar_type): Make non-static.
1177 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1178 to compute IS_SCALAR instead of doing it ourselves.
1179
1180 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1181
1182 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1183 of case where TYPE is dynamic.
1184
1185 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1186
1187 * ada-lang.c (ada_unpack_from_contents): New function,
1188 extracted from ada_value_primitive_packed_val.
1189 (ada_value_primitive_packed_val): Replace extracted out code
1190 by call to ada_unpack_from_contents.
1191
1192 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1193
1194 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1195 variable declarations.
1196
1197 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1198
1199 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1200 of local variables src and unpacked to "gdb_type *" instead of
1201 "unsigned char *".
1202
1203 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1204
1205 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1206 of various local variables more explicit and consistent.
1207 No real code change otherwise.
1208
1209 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1210
1211 * i386-tdep.h (struct gdbarch_tdep): Change type of
1212 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1213
1214 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1215
1216 * cris-tdep.c (struct instruction_environment): Change type of
1217 byte_order to enum bfd_endian.
1218
1219 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1220
1221 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1222 enum gdb_syscall casts.
1223
1224 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1225
1226 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1227 * arm-tdep.c (struct stack_item): Likewise.
1228 (push_stack_item): Add gdb_byte* cast.
1229 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1230 (push_stack_item): Add gdb_byte* cast.
1231 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1232 and add cast.
1233 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1234 (push_stack_item): Add gdb_byte* cast.
1235 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1236 add cast.
1237 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1238 gdb_byte*.
1239 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1240 gdb_byte* and remove unnecessary cast.
1241 (h8300h_extract_return_value): Likewise.
1242 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1243 (h8300h_store_return_value): Likewise.
1244 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1245 gdb_byte* and remove unnecessary cast.
1246 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1247 and add cast.
1248 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1249 gdb_byte* and remove unnecessary cast.
1250 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1251 valbuf.
1252 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1253 (mep_pseudo_cr64_read): Likewise.
1254 (mep_pseudo_csr_write): Likewise.
1255 (mep_pseudo_cr32_write): Likewise.
1256 (mep_pseudo_cr64_write): Likewise.
1257 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1258 gdb_byte* and add cast.
1259 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1260 gdb_byte* and remove unnecessary cast.
1261 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1262 valbuf.
1263 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1264 gdb_byte*.
1265 * printcmd.c (void): Likewise.
1266 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1267 gdb_byte* and add cast.
1268 (infpy_write_memory): Likewise.
1269 (infpy_search_memory): Likewise.
1270 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1271 and add cast.
1272 (regcache_raw_write_unsigned): Likewise.
1273 (regcache_cooked_write_signed): Likewise.
1274 (regcache_cooked_write_unsigned): Likewise.
1275 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1276 gdb_byte*.
1277
1278 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1279
1280 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1281 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1282
1283 2015-10-09 Eli Zaretskii <eliz@gnu.org>
1284
1285 * stack.c (print_stack_frame):
1286 * utils.c (printchar): Fix typos in commentary.
1287
1288 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1289
1290 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1291 (PostfixExpression): Support `expr.sizeof' expressions.
1292 (PrimaryExpression): Support `typeof(expr)' expressions.
1293
1294 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1295
1296 * MAINTAINERS: Update my email address.
1297
1298 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1299
1300 * record-btrace.c (record_btrace_resume): Fix void return.
1301
1302 2015-10-07 Yao Qi <yao.qi@linaro.org>
1303
1304 * aarch64-tdep.c: Include opcode/aarch64.h.
1305 (submask): Move it above.
1306 (bit): Likewise.
1307 (bits): Likewise.
1308 (aarch64_software_single_step): Call aarch64_decode_insn.
1309 Decode instruction by aarch64_inst instead of using
1310 aarch64_decode_bcond and decode_masked_match.
1311
1312 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1313
1314 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1315 only when the file is binary.
1316
1317 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1318
1319 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1320 subroutine handling.
1321
1322 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1323
1324 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1325
1326 2015-09-30 Doug Evans <dje@google.com>
1327
1328 * dwarf2read.c (setup_type_unit_groups): Add comment.
1329
1330 2015-09-30 Pedro Alves <palves@redhat.com>
1331
1332 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1333 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1334 (x86_linux_create_target): Don't install
1335 x86_linux_always_non_stop_p.
1336
1337 2015-09-30 Don Breazeal <donb@codesourcery.com>
1338
1339 * remote.c (remote_parse_stop_reply): Call strprefix instead
1340 of strncmp.
1341
1342 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1343
1344 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1345 * gdbarch.h: Regenerate.
1346 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1347 struct gdbarch_tdep_info *.
1348 * mips-tdep.c (mips_gdbarch_init): Likewise.
1349 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1350 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1351 * spu-multiarch.c (spu_gdbarch): Likewise.
1352
1353 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1354
1355 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1356 record a NULL value.
1357
1358 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1359
1360 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1361 and union arguments the same as pointer arguments when determining
1362 size of argument.
1363
1364 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1365
1366 * ft32-tdep.c: #include "opcode/ft32.h".
1367 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1368 (ft32_analyze_prologue): Use FT32_* macros.
1369
1370 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1371
1372 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1373 comment.
1374
1375 2015-09-28 Doug Evans <dje@google.com>
1376
1377 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1378
1379 2015-09-28 Doug Evans <dje@google.com>
1380
1381 * common/filestuff.c (make_cleanup_close): Update comment.
1382
1383 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1384
1385 * btrace.c (parse_xml_btrace_block): Fix cast of
1386 xml_find_attribute's return value.
1387 * memory-map.c (memory_map_start_memory): Likewise.
1388 * solib-svr4.c (library_list_start_library): Likewise.
1389 * solib-target.c (library_list_start_segment): Likewise.
1390 (library_list_start_section): Likewise.
1391 * tracepoint.c (traceframe_info_start_memory): Likewise.
1392
1393 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1394
1395 * d-namespace.c (d_lookup_symbol): New arg langdef.
1396 All callers updated. Support looking up symbol as a primitive type.
1397 (lookup_module_scope): New arg langdef. All callers updated.
1398 Call d_lookup_symbol directly for simple bare symbols.
1399
1400 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1401
1402 * macrocmd.c (print_macro_callback): Add cast(s).
1403 * macrotab.c (macro_bcache_str): Likewise.
1404 (new_macro_definition): Likewise.
1405 * main.c (captured_main): Likewise.
1406 * maint.c (print_bfd_section_info): Likewise.
1407 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1408 (basic_type): Likewise.
1409 * memattr.c (mem_region_cmp): Likewise.
1410 * memory-map.c (memory_map_start_memory): Likewise.
1411 (memory_map_end_memory): Likewise.
1412 (memory_map_start_property): Likewise.
1413 (memory_map_end_property): Likewise.
1414 (clear_result): Likewise.
1415 * memrange.c (compare_mem_ranges): Likewise.
1416 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1417 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1418 * mi/mi-console.c (mi_console_file_delete): Likewise.
1419 (mi_console_file_fputs): Likewise.
1420 (mi_console_raw_packet): Likewise.
1421 (mi_console_file_flush): Likewise.
1422 (mi_console_set_raw): Likewise.
1423 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1424 (mi_new_thread): Likewise.
1425 (mi_thread_exit): Likewise.
1426 (mi_record_changed): Likewise.
1427 (mi_inferior_added): Likewise.
1428 (mi_inferior_appeared): Likewise.
1429 (mi_inferior_exit): Likewise.
1430 (mi_inferior_removed): Likewise.
1431 (mi_interp_data): Likewise.
1432 (mi_on_normal_stop): Likewise.
1433 (mi_traceframe_changed): Likewise.
1434 (mi_tsv_created): Likewise.
1435 (mi_tsv_deleted): Likewise.
1436 (mi_tsv_modified): Likewise.
1437 (mi_breakpoint_created): Likewise.
1438 (mi_breakpoint_deleted): Likewise.
1439 (mi_breakpoint_modified): Likewise.
1440 (mi_output_running_pid): Likewise.
1441 (mi_inferior_count): Likewise.
1442 (mi_solib_loaded): Likewise.
1443 (mi_solib_unloaded): Likewise.
1444 (mi_command_param_changed): Likewise.
1445 (mi_memory_changed): Likewise.
1446 (report_initial_inferior): Likewise.
1447 (mi_ui_out): Likewise.
1448 (mi_set_logging): Likewise.
1449 * mi/mi-main.c (collect_cores): Likewise.
1450 (print_one_inferior): Likewise.
1451 (free_vector_of_ints): Likewise.
1452 (free_splay_tree): Likewise.
1453 (mi_execute_command): Likewise.
1454 * mi/mi-out.c (mi_table_body): Likewise.
1455 (mi_table_end): Likewise.
1456 (mi_table_header): Likewise.
1457 (mi_begin): Likewise.
1458 (mi_end): Likewise.
1459 (mi_field_int): Likewise.
1460 (mi_field_string): Likewise.
1461 (mi_field_fmt): Likewise.
1462 (mi_flush): Likewise.
1463 (mi_redirect): Likewise.
1464 (field_separator): Likewise.
1465 (mi_open): Likewise.
1466 (mi_close): Likewise.
1467 (mi_out_buffered): Likewise.
1468 (mi_out_rewind): Likewise.
1469 (mi_out_put): Likewise.
1470 (mi_version): Likewise.
1471 (mi_out_data_dtor): Likewise.
1472 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1473 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1474 * minidebug.c (lzma_open): Likewise.
1475 (lzma_pread): Likewise.
1476 (lzma_close): Likewise.
1477 (lzma_stat): Likewise.
1478 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1479 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1480 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1481 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1482 (mips_micro_frame_cache): Likewise.
1483 (mips_insn32_frame_cache): Likewise.
1484 (mips_stub_frame_cache): Likewise.
1485 (gdb_print_insn_mips): Likewise.
1486 (value_of_mips_user_reg): Likewise.
1487 (mips_gdbarch_init): Likewise.
1488 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1489 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1490 (mipsnbsd_supply_gregset): Likewise.
1491 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1492 (am33_collect_gregset_method): Likewise.
1493 (am33_collect_fpregset_method): Likewise.
1494 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1495 * moxie-tdep.c (moxie_frame_cache): Likewise.
1496 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1497 (msp430_analyze_frame_prologue): Likewise.
1498 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1499 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1500 (nios2_collect_gregset): Likewise.
1501 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1502 (nios2_stub_frame_cache): Likewise.
1503 * objc-lang.c (find_methods): Likewise.
1504 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1505 (get_objfile_pspace_data): Likewise.
1506 (get_objfile_bfd_data): Likewise.
1507 (objfile_bfd_data_free): Likewise.
1508 (add_to_objfile_sections): Likewise.
1509 (do_free_objfile_cleanup): Likewise.
1510 (resume_section_map_updates_cleanup): Likewise.
1511 * opencl-lang.c (builtin_opencl_type): Likewise.
1512 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1513 * osdata.c (osdata_start_osdata): Likewise.
1514 (osdata_start_item): Likewise.
1515 (osdata_start_column): Likewise.
1516 (osdata_end_column): Likewise.
1517 (clear_parsing_data): Likewise.
1518 (osdata_free_cleanup): Likewise.
1519 * parse.c (type_stack_cleanup): Likewise.
1520 (exp_uses_objfile_iter): Likewise.
1521 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1522 (ppc_linux_collect_gregset): Likewise.
1523 (ppu2spu_prev_arch): Likewise.
1524 (ppu2spu_this_id): Likewise.
1525 (ppu2spu_prev_register): Likewise.
1526 (ppu2spu_unwind_register): Likewise.
1527 (ppu2spu_sniffer): Likewise.
1528 (ppu2spu_dealloc_cache): Likewise.
1529 (ppc_linux_init_abi): Likewise.
1530 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1531 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1532 * progspace.c (restore_program_space): Likewise.
1533 * psymtab.c (find_pc_sect_psymtab): Likewise.
1534 (compare_psymbols): Likewise.
1535 (psymbol_bcache_full): Likewise.
1536 (allocate_psymtab): Likewise.
1537 (discard_psymtabs_upto): Likewise.
1538 * python/py-block.c (set_block): Likewise.
1539 (del_objfile_blocks): Likewise.
1540 * python/py-breakpoint.c (build_bp_list): Likewise.
1541 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1542 (build_inferior_list): Likewise.
1543 (py_free_inferior): Likewise.
1544 * python/py-objfile.c (py_free_objfile): Likewise.
1545 (objfile_to_objfile_object): Likewise.
1546 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1547 * python/py-progspace.c (py_free_pspace): Likewise.
1548 (pspace_to_pspace_object): Likewise.
1549 * python/py-symbol.c (set_symbol): Likewise.
1550 (del_objfile_symbols): Likewise.
1551 * python/py-symtab.c (set_sal): Likewise.
1552 (set_symtab): Likewise.
1553 (del_objfile_symtab): Likewise.
1554 (del_objfile_sal): Likewise.
1555 * python/py-type.c (save_objfile_types): Likewise.
1556 (set_type): Likewise.
1557 * python/py-unwind.c (pyuw_prev_register): Likewise.
1558 (pyuw_on_new_gdbarch): Likewise.
1559 * python/py-utils.c (py_decref): Likewise.
1560 (py_xdecref): Likewise.
1561 (gdb_py_generic_dict): Likewise.
1562 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1563 (gdbpy_clone_xmethod_worker_data): Likewise.
1564 (gdbpy_get_xmethod_arg_types): Likewise.
1565 (gdbpy_get_xmethod_result_type): Likewise.
1566 (gdbpy_invoke_xmethod): Likewise.
1567 * python/python.c (gdbpy_apply_type_printers): Likewise.
1568 (gdbpy_free_type_printers): Likewise.
1569 * record-btrace.c (record_btrace_disable_callback): Likewise.
1570 (bfcache_hash): Likewise.
1571 (bfcache_eq): Likewise.
1572 (btrace_get_frame_function): Likewise.
1573 (record_btrace_frame_unwind_stop_reason): Likewise.
1574 (record_btrace_frame_this_id): Likewise.
1575 (record_btrace_frame_prev_register): Likewise.
1576 (record_btrace_frame_dealloc_cache): Likewise.
1577 * record-full.c (record_full_message_wrapper): Likewise.
1578 (record_full_save_cleanups): Likewise.
1579 * regcache.c (regcache_descr): Likewise.
1580 (do_regcache_xfree): Likewise.
1581 (do_regcache_invalidate): Likewise.
1582 (do_cooked_read): Likewise.
1583 (regcache_transfer_regset): Likewise.
1584 * reggroups.c (reggroup_add): Likewise.
1585 (reggroup_next): Likewise.
1586 (reggroup_prev): Likewise.
1587 * remote-fileio.c (do_remote_fileio_request): Likewise.
1588 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1589 (do_notif_event_xfree): Likewise.
1590 * remote.c (get_remote_arch_state): Likewise.
1591 (remote_pspace_data_cleanup): Likewise.
1592 (get_remote_exec_file): Likewise.
1593 (set_pspace_remote_exec_file): Likewise.
1594 (compare_pnums): Likewise.
1595 (clear_threads_listing_context): Likewise.
1596 (remote_newthread_step): Likewise.
1597 (start_thread): Likewise.
1598 (end_thread): Likewise.
1599 (remove_child_of_pending_fork): Likewise.
1600 (remove_stop_reply_for_inferior): Likewise.
1601 (remove_stop_reply_of_remote_state): Likewise.
1602 (remote_notif_remove_once_on_match): Likewise.
1603 (stop_reply_match_ptid_and_ws): Likewise.
1604 (kill_child_of_pending_fork): Likewise.
1605 (register_remote_g_packet_guess): Likewise.
1606 (remote_read_description_p): Likewise.
1607 (remote_read_description): Likewise.
1608 (free_actions_list_cleanup_wrapper): Likewise.
1609 (remote_async_serial_handler): Likewise.
1610 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1611 (rl78_analyze_frame_prologue): Likewise.
1612 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1613 (ppc_supply_fpregset): Likewise.
1614 (ppc_supply_vsxregset): Likewise.
1615 (ppc_supply_vrregset): Likewise.
1616 (ppc_collect_gregset): Likewise.
1617 (ppc_collect_fpregset): Likewise.
1618 (ppc_collect_vsxregset): Likewise.
1619 (ppc_collect_vrregset): Likewise.
1620 (e500_move_ev_register): Likewise.
1621 (do_regcache_raw_write): Likewise.
1622 (rs6000_frame_cache): Likewise.
1623 (rs6000_epilogue_frame_cache): Likewise.
1624 (rs6000_gdbarch_init): Likewise.
1625 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1626 (rx_analyze_frame_prologue): Likewise.
1627 (rx_frame_type): Likewise.
1628 (rx_frame_sniffer_common): Likewise.
1629 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1630 (s390_frame_unwind_cache): Likewise.
1631 (s390_stub_frame_unwind_cache): Likewise.
1632 (s390_sigtramp_frame_unwind_cache): Likewise.
1633 * score-tdep.c (score_make_prologue_cache): Likewise.
1634 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1635 (sentinel_frame_prev_arch): Likewise.
1636 * ser-base.c (fd_event): Likewise.
1637 (push_event): Likewise.
1638 (ser_base_write): Likewise.
1639 * ser-pipe.c (pipe_close): Likewise.
1640 * serial.c (serial_write): Likewise.
1641 * sh-tdep.c (sh_frame_cache): Likewise.
1642 (sh_stub_this_id): Likewise.
1643 * sh64-tdep.c (sh64_frame_cache): Likewise.
1644 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1645 (library_list_start_library): Likewise.
1646 (library_list_start_list): Likewise.
1647 (solib_aix_free_library_list): Likewise.
1648 * solib-darwin.c (get_darwin_info): Likewise.
1649 * solib-dsbt.c (get_dsbt_info): Likewise.
1650 * solib-spu.c (append_ocl_sos): Likewise.
1651 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1652 (get_svr4_info): Likewise.
1653 (library_list_start_library): Likewise.
1654 (svr4_library_list_start_list): Likewise.
1655 (hash_probe_and_action): Likewise.
1656 (equal_probe_and_action): Likewise.
1657 (svr4_update_solib_event_breakpoint): Likewise.
1658 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1659 (svr4_fetch_link_map_offsets): Likewise.
1660 (svr4_have_link_map_offsets): Likewise.
1661 * solib-target.c (library_list_start_segment): Likewise.
1662 (library_list_start_section): Likewise.
1663 (library_list_start_library): Likewise.
1664 (library_list_end_library): Likewise.
1665 (library_list_start_list): Likewise.
1666 (solib_target_free_library_list): Likewise.
1667 * solib.c (solib_ops): Likewise.
1668 (set_solib_ops): Likewise.
1669 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1670 * sparc-tdep.c (sparc_frame_cache): Likewise.
1671 (sparc32_frame_cache): Likewise.
1672 (sparc32_supply_gregset): Likewise.
1673 (sparc32_collect_gregset): Likewise.
1674 (sparc32_supply_fpregset): Likewise.
1675 (sparc32_collect_fpregset): Likewise.
1676 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1677 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1678 (sparc64_collect_gregset): Likewise.
1679 (sparc64_supply_fpregset): Likewise.
1680 (sparc64_collect_fpregset): Likewise.
1681 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1682 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1683 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1684 (sparc64obsd_trapframe_cache): Likewise.
1685 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1686 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1687 * spu-multiarch.c (spu_gdbarch): Likewise.
1688 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1689 (spu2ppu_prev_arch): Likewise.
1690 (spu2ppu_this_id): Likewise.
1691 (spu2ppu_prev_register): Likewise.
1692 (spu2ppu_dealloc_cache): Likewise.
1693 (spu_dis_asm_print_address): Likewise.
1694 (gdb_print_insn_spu): Likewise.
1695 (spu_get_overlay_table): Likewise.
1696 * stabsread.c (rs6000_builtin_type): Likewise.
1697 * stack.c (do_print_variable_and_value): Likewise.
1698 * stap-probe.c (get_stap_base_address_1): Likewise.
1699 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1700 (debug_qf_find_last_source_symtab): Likewise.
1701 (debug_qf_forget_cached_source_info): Likewise.
1702 (debug_qf_map_symtabs_matching_filename): Likewise.
1703 (debug_qf_lookup_symbol): Likewise.
1704 (debug_qf_print_stats): Likewise.
1705 (debug_qf_dump): Likewise.
1706 (debug_qf_relocate): Likewise.
1707 (debug_qf_expand_symtabs_for_function): Likewise.
1708 (debug_qf_expand_all_symtabs): Likewise.
1709 (debug_qf_expand_symtabs_with_fullname): Likewise.
1710 (debug_qf_map_matching_symbols): Likewise.
1711 (debug_qf_expand_symtabs_matching): Likewise.
1712 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1713 (debug_qf_map_symbol_filenames): Likewise.
1714 (debug_sym_get_probes): Likewise.
1715 (debug_sym_new_init): Likewise.
1716 (debug_sym_init): Likewise.
1717 (debug_sym_read): Likewise.
1718 (debug_sym_read_psymbols): Likewise.
1719 (debug_sym_finish): Likewise.
1720 (debug_sym_offsets): Likewise.
1721 (debug_sym_read_linetable): Likewise.
1722 (debug_sym_relocate): Likewise.
1723 (uninstall_symfile_debug_logging): Likewise.
1724 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1725 * symfile.c (place_section): Likewise.
1726 (add_section_size_callback): Likewise.
1727 (load_progress): Likewise.
1728 (load_section_callback): Likewise.
1729 (clear_memory_write_data): Likewise.
1730 (allocate_symtab): Likewise.
1731 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1732 * symtab.c (lookup_symtab_callback): Likewise.
1733 (hash_demangled_name_entry): Likewise.
1734 (eq_demangled_name_entry): Likewise.
1735 (get_symbol_cache): Likewise.
1736 (symbol_cache_cleanup): Likewise.
1737 (set_symbol_cache_size): Likewise.
1738 (symbol_cache_flush): Likewise.
1739 (maintenance_print_symbol_cache): Likewise.
1740 (maintenance_print_symbol_cache_statistics): Likewise.
1741 (delete_filename_seen_cache): Likewise.
1742 (output_partial_symbol_filename): Likewise.
1743 (search_symbols_file_matches): Likewise.
1744 (search_symbols_name_matches): Likewise.
1745 (do_free_completion_list): Likewise.
1746 (maybe_add_partial_symtab_filename): Likewise.
1747 (get_main_info): Likewise.
1748 (main_info_cleanup): Likewise.
1749 * target-dcache.c (target_dcache_cleanup): Likewise.
1750 (target_dcache_init_p): Likewise.
1751 (target_dcache_invalidate): Likewise.
1752 (target_dcache_get): Likewise.
1753 (target_dcache_get_or_init): Likewise.
1754 * target-descriptions.c (target_find_description): Likewise.
1755 (tdesc_find_type): Likewise.
1756 (tdesc_data_cleanup): Likewise.
1757 (tdesc_find_arch_register): Likewise.
1758 (tdesc_register_name): Likewise.
1759 (tdesc_register_type): Likewise.
1760 (tdesc_register_reggroup_p): Likewise.
1761 (set_tdesc_pseudo_register_name): Likewise.
1762 (set_tdesc_pseudo_register_type): Likewise.
1763 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1764 (tdesc_use_registers): Likewise.
1765 (free_target_description): Likewise.
1766 * target-memory.c (compare_block_starting_address): Likewise.
1767 (cleanup_request_data): Likewise.
1768 (cleanup_write_requests_vector): Likewise.
1769 * target.c (open_target): Likewise.
1770 (cleanup_restore_target_terminal): Likewise.
1771 (free_memory_read_result_vector): Likewise.
1772 * thread.c (disable_thread_stack_temporaries): Likewise.
1773 (finish_thread_state_cleanup): Likewise.
1774 (do_restore_current_thread_cleanup): Likewise.
1775 (restore_current_thread_cleanup_dtor): Likewise.
1776 (set_thread_refcount): Likewise.
1777 (tp_array_compar): Likewise.
1778 (do_captured_thread_select): Likewise.
1779 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1780 (tic6x_stub_this_id): Likewise.
1781 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1782 * top.c (do_restore_instream_cleanup): Likewise.
1783 (gdb_readline_wrapper_cleanup): Likewise.
1784 (kill_or_detach): Likewise.
1785 (print_inferior_quit_action): Likewise.
1786 * tracefile-tfile.c (match_blocktype): Likewise.
1787 (build_traceframe_info): Likewise.
1788 * tracefile.c (trace_file_writer_xfree): Likewise.
1789 * tracepoint.c (memrange_cmp): Likewise.
1790 (do_collect_symbol): Likewise.
1791 (do_clear_collection_list): Likewise.
1792 (do_restore_current_traceframe_cleanup): Likewise.
1793 (restore_current_traceframe_cleanup_dtor): Likewise.
1794 (free_current_marker): Likewise.
1795 (traceframe_info_start_memory): Likewise.
1796 (traceframe_info_start_tvar): Likewise.
1797 (free_result): Likewise.
1798 * tramp-frame.c (tramp_frame_cache): Likewise.
1799 * tui/tui-file.c (tui_file_delete): Likewise.
1800 (tui_fileopen): Likewise.
1801 (tui_sfileopen): Likewise.
1802 (tui_file_isatty): Likewise.
1803 (tui_file_rewind): Likewise.
1804 (tui_file_put): Likewise.
1805 (tui_file_fputs): Likewise.
1806 (tui_file_get_strbuf): Likewise.
1807 (tui_file_adjust_strbuf): Likewise.
1808 (tui_file_flush): Likewise.
1809 * tui/tui-layout.c (make_command_window): Likewise.
1810 (make_data_window): Likewise.
1811 (show_source_disasm_command): Likewise.
1812 (show_data): Likewise.
1813 (make_source_or_disasm_window): Likewise.
1814 (show_source_or_disasm_and_command): Likewise.
1815 * tui/tui-out.c (tui_field_int): Likewise.
1816 (tui_field_string): Likewise.
1817 (tui_field_fmt): Likewise.
1818 (tui_text): Likewise.
1819 * typeprint.c (hash_typedef_field): Likewise.
1820 (eq_typedef_field): Likewise.
1821 (do_free_typedef_hash): Likewise.
1822 (copy_typedef_hash_element): Likewise.
1823 (do_free_global_table): Likewise.
1824 (find_global_typedef): Likewise.
1825 (find_typedef_in_hash): Likewise.
1826 * ui-file.c (ui_file_write_for_put): Likewise.
1827 (do_ui_file_xstrdup): Likewise.
1828 (mem_file_delete): Likewise.
1829 (mem_file_rewind): Likewise.
1830 (mem_file_put): Likewise.
1831 (mem_file_write): Likewise.
1832 (stdio_file_delete): Likewise.
1833 (stdio_file_flush): Likewise.
1834 (stdio_file_read): Likewise.
1835 (stdio_file_write): Likewise.
1836 (stdio_file_write_async_safe): Likewise.
1837 (stdio_file_fputs): Likewise.
1838 (stdio_file_isatty): Likewise.
1839 (stdio_file_fseek): Likewise.
1840 (tee_file_delete): Likewise.
1841 (tee_file_flush): Likewise.
1842 (tee_file_write): Likewise.
1843 (tee_file_fputs): Likewise.
1844 (tee_file_isatty): Likewise.
1845 * ui-out.c (do_cleanup_table_end): Likewise.
1846 (do_cleanup_end): Likewise.
1847 * user-regs.c (user_reg_add): Likewise.
1848 (user_reg_map_name_to_regnum): Likewise.
1849 (usernum_to_user_reg): Likewise.
1850 (maintenance_print_user_registers): Likewise.
1851 * utils.c (do_bfd_close_cleanup): Likewise.
1852 (do_fclose_cleanup): Likewise.
1853 (do_obstack_free): Likewise.
1854 (do_ui_file_delete): Likewise.
1855 (do_ui_out_redirect_pop): Likewise.
1856 (do_free_section_addr_info): Likewise.
1857 (restore_integer): Likewise.
1858 (do_unpush_target): Likewise.
1859 (do_htab_delete_cleanup): Likewise.
1860 (do_restore_ui_file): Likewise.
1861 (do_value_free): Likewise.
1862 (do_free_so): Likewise.
1863 (free_current_contents): Likewise.
1864 (do_regfree_cleanup): Likewise.
1865 (core_addr_hash): Likewise.
1866 (core_addr_eq): Likewise.
1867 (do_free_char_ptr_vec): Likewise.
1868 * v850-tdep.c (v850_frame_cache): Likewise.
1869 * varobj.c (do_free_variable_cleanup): Likewise.
1870 * vax-tdep.c (vax_supply_gregset): Likewise.
1871 (vax_frame_cache): Likewise.
1872 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1873 * xml-support.c (gdb_xml_body_text): Likewise.
1874 (gdb_xml_values_cleanup): Likewise.
1875 (gdb_xml_start_element): Likewise.
1876 (gdb_xml_start_element_wrapper): Likewise.
1877 (gdb_xml_end_element): Likewise.
1878 (gdb_xml_end_element_wrapper): Likewise.
1879 (gdb_xml_cleanup): Likewise.
1880 (gdb_xml_fetch_external_entity): Likewise.
1881 (gdb_xml_parse_attr_enum): Likewise.
1882 (xinclude_start_include): Likewise.
1883 (xinclude_end_include): Likewise.
1884 (xml_xinclude_default): Likewise.
1885 (xml_xinclude_start_doctype): Likewise.
1886 (xml_xinclude_end_doctype): Likewise.
1887 (xml_xinclude_cleanup): Likewise.
1888 (xml_fetch_content_from_file): Likewise.
1889 * xml-syscall.c (free_syscalls_info): Likewise.
1890 (syscall_start_syscall): Likewise.
1891 * xml-tdesc.c (tdesc_end_arch): Likewise.
1892 (tdesc_end_osabi): Likewise.
1893 (tdesc_end_compatible): Likewise.
1894 (tdesc_start_target): Likewise.
1895 (tdesc_start_feature): Likewise.
1896 (tdesc_start_reg): Likewise.
1897 (tdesc_start_union): Likewise.
1898 (tdesc_start_struct): Likewise.
1899 (tdesc_start_flags): Likewise.
1900 (tdesc_start_field): Likewise.
1901 (tdesc_start_vector): Likewise.
1902 (fetch_available_features_from_target): Likewise.
1903 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1904 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1905 (xtensa_frame_cache): Likewise.
1906 (xtensa_frame_prev_register): Likewise.
1907 (xtensa_extract_return_value): Likewise.
1908
1909 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1910
1911 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1912 (aarch64_make_stub_cache): Likewise.
1913 (value_of_aarch64_user_reg): Likewise.
1914 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1915 (get_ada_inferior_data): Likewise.
1916 (get_ada_pspace_data): Likewise.
1917 (ada_pspace_data_cleanup): Likewise.
1918 (ada_complete_symbol_matcher): Likewise.
1919 (ada_exc_search_name_matches): Likewise.
1920 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1921 (get_ada_tasks_inferior_data): Likewise.
1922 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1923 (splay_obstack_alloc): Likewise.
1924 (splay_obstack_free): Likewise.
1925 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1926 (alpha_linux_collect_gregset): Likewise.
1927 (alpha_linux_supply_fpregset): Likewise.
1928 (alpha_linux_collect_fpregset): Likewise.
1929 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1930 * alpha-tdep.c (alpha_lds): Likewise.
1931 (alpha_sts): Likewise.
1932 (alpha_sigtramp_frame_unwind_cache): Likewise.
1933 (alpha_heuristic_frame_unwind_cache): Likewise.
1934 (alpha_supply_int_regs): Likewise.
1935 (alpha_fill_int_regs): Likewise.
1936 (alpha_supply_fp_regs): Likewise.
1937 (alpha_fill_fp_regs): Likewise.
1938 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1939 (alphanbsd_aout_supply_gregset): Likewise.
1940 (alphanbsd_supply_gregset): Likewise.
1941 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1942 (amd64_x32_linux_init_abi): Likewise.
1943 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1944 (amd64_collect_native_gregset): Likewise.
1945 * amd64-tdep.c (amd64_frame_cache): Likewise.
1946 (amd64_sigtramp_frame_cache): Likewise.
1947 (amd64_epilogue_frame_cache): Likewise.
1948 (amd64_supply_fxsave): Likewise.
1949 (amd64_supply_xsave): Likewise.
1950 (amd64_collect_fxsave): Likewise.
1951 (amd64_collect_xsave): Likewise.
1952 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1953 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1954 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1955 (arm_linux_collect_gregset): Likewise.
1956 (arm_linux_supply_nwfpe): Likewise.
1957 (arm_linux_collect_nwfpe): Likewise.
1958 (arm_linux_supply_vfp): Likewise.
1959 (arm_linux_collect_vfp): Likewise.
1960 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1961 (arm_prologue_unwind_stop_reason): Likewise.
1962 (arm_prologue_this_id): Likewise.
1963 (arm_prologue_prev_register): Likewise.
1964 (arm_exidx_data_free): Likewise.
1965 (arm_find_exidx_entry): Likewise.
1966 (arm_stub_this_id): Likewise.
1967 (arm_m_exception_this_id): Likewise.
1968 (arm_m_exception_prev_register): Likewise.
1969 (arm_normal_frame_base): Likewise.
1970 (gdb_print_insn_arm): Likewise.
1971 (arm_objfile_data_free): Likewise.
1972 (arm_record_special_symbol): Likewise.
1973 (value_of_arm_user_reg): Likewise.
1974 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1975 (armbsd_supply_gregset): Likewise.
1976 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1977 (get_auto_load_pspace_data): Likewise.
1978 (hash_loaded_script_entry): Likewise.
1979 (eq_loaded_script_entry): Likewise.
1980 (clear_section_scripts): Likewise.
1981 (collect_matching_scripts): Likewise.
1982 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1983 (get_auxv_inferior_data): Likewise.
1984 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1985 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1986 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1987 (target_bfd_xclose): Likewise.
1988 (target_bfd_get_section_table): Likewise.
1989 * bfin-tdep.c (bfin_frame_cache): Likewise.
1990 * block.c (find_block_in_blockvector): Likewise.
1991 (call_site_for_pc): Likewise.
1992 (block_find_non_opaque_type_preferred): Likewise.
1993 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1994 (signal_catchpoint_remove_location): Likewise.
1995 (signal_catchpoint_breakpoint_hit): Likewise.
1996 (signal_catchpoint_print_one): Likewise.
1997 (signal_catchpoint_print_mention): Likewise.
1998 (signal_catchpoint_print_recreate): Likewise.
1999 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2000 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2001 (bp_location_compare_addrs): Likewise.
2002 (get_first_locp_gte_addr): Likewise.
2003 (check_tracepoint_command): Likewise.
2004 (do_map_commands_command): Likewise.
2005 (get_breakpoint_objfile_data): Likewise.
2006 (free_breakpoint_probes): Likewise.
2007 (do_captured_breakpoint_query): Likewise.
2008 (compare_breakpoints): Likewise.
2009 (bp_location_compare): Likewise.
2010 (bpstat_remove_breakpoint_callback): Likewise.
2011 (do_delete_breakpoint_cleanup): Likewise.
2012 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2013 (bsd_uthread_set_collect_uthread): Likewise.
2014 (bsd_uthread_activate): Likewise.
2015 (bsd_uthread_fetch_registers): Likewise.
2016 (bsd_uthread_store_registers): Likewise.
2017 * btrace.c (check_xml_btrace_version): Likewise.
2018 (parse_xml_btrace_block): Likewise.
2019 (parse_xml_btrace_pt_config_cpu): Likewise.
2020 (parse_xml_btrace_pt_raw): Likewise.
2021 (parse_xml_btrace_pt): Likewise.
2022 (parse_xml_btrace_conf_bts): Likewise.
2023 (parse_xml_btrace_conf_pt): Likewise.
2024 (do_btrace_data_cleanup): Likewise.
2025 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2026 * charset.c (cleanup_iconv): Likewise.
2027 (do_cleanup_iterator): Likewise.
2028 * cli-out.c (cli_uiout_dtor): Likewise.
2029 (cli_table_begin): Likewise.
2030 (cli_table_body): Likewise.
2031 (cli_table_end): Likewise.
2032 (cli_table_header): Likewise.
2033 (cli_begin): Likewise.
2034 (cli_end): Likewise.
2035 (cli_field_int): Likewise.
2036 (cli_field_skip): Likewise.
2037 (cli_field_string): Likewise.
2038 (cli_field_fmt): Likewise.
2039 (cli_spaces): Likewise.
2040 (cli_text): Likewise.
2041 (cli_message): Likewise.
2042 (cli_wrap_hint): Likewise.
2043 (cli_flush): Likewise.
2044 (cli_redirect): Likewise.
2045 (out_field_fmt): Likewise.
2046 (field_separator): Likewise.
2047 (cli_out_set_stream): Likewise.
2048 * cli/cli-cmds.c (compare_symtabs): Likewise.
2049 * cli/cli-dump.c (call_dump_func): Likewise.
2050 (restore_section_callback): Likewise.
2051 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2052 (do_restore_user_call_depth): Likewise.
2053 (do_free_command_lines_cleanup): Likewise.
2054 * coff-pe-read.c (get_section_vmas): Likewise.
2055 (pe_as16): Likewise.
2056 (pe_as32): Likewise.
2057 * coffread.c (coff_symfile_read): Likewise.
2058 * common/agent.c (agent_look_up_symbols): Likewise.
2059 * common/filestuff.c (do_close_cleanup): Likewise.
2060 * common/format.c (free_format_pieces_cleanup): Likewise.
2061 * common/vec.c (vec_o_reserve): Likewise.
2062 * compile/compile-c-support.c (print_one_macro): Likewise.
2063 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2064 (eq_symbol_error): Likewise.
2065 (del_symbol_error): Likewise.
2066 (error_symbol_once): Likewise.
2067 (gcc_convert_symbol): Likewise.
2068 (gcc_symbol_address): Likewise.
2069 (hash_symname): Likewise.
2070 (eq_symname): Likewise.
2071 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2072 (eq_type_map_instance): Likewise.
2073 (insert_type): Likewise.
2074 (convert_type): Likewise.
2075 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2076 (setup_sections): Likewise.
2077 (link_hash_table_free): Likewise.
2078 (copy_sections): Likewise.
2079 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2080 * compile/compile.c (compile_print_value): Likewise.
2081 (do_rmdir): Likewise.
2082 (cleanup_compile_instance): Likewise.
2083 (cleanup_unlink_file): Likewise.
2084 * completer.c (free_completion_tracker): Likewise.
2085 * corelow.c (add_to_spuid_list): Likewise.
2086 * cp-namespace.c (reset_directive_searched): Likewise.
2087 * cp-support.c (reset_directive_searched): Likewise.
2088 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2089 (cris_frame_unwind_cache): Likewise.
2090 * d-lang.c (builtin_d_type): Likewise.
2091 * d-namespace.c (reset_directive_searched): Likewise.
2092 * dbxread.c (dbx_free_symfile_info): Likewise.
2093 (do_free_bincl_list_cleanup): Likewise.
2094 * disasm.c (hash_dis_line_entry): Likewise.
2095 (eq_dis_line_entry): Likewise.
2096 (dis_asm_print_address): Likewise.
2097 (fprintf_disasm): Likewise.
2098 (do_ui_file_delete): Likewise.
2099 * doublest.c (convert_floatformat_to_doublest): Likewise.
2100 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2101 (dummy_frame_prev_register): Likewise.
2102 (dummy_frame_this_id): Likewise.
2103 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2104 (cache_eq): Likewise.
2105 (cache_find): Likewise.
2106 (tailcall_frame_this_id): Likewise.
2107 (dwarf2_tailcall_prev_register_first): Likewise.
2108 (tailcall_frame_prev_register): Likewise.
2109 (tailcall_frame_dealloc_cache): Likewise.
2110 (tailcall_frame_prev_arch): Likewise.
2111 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2112 (dwarf2_frame_set_init_reg): Likewise.
2113 (dwarf2_frame_init_reg): Likewise.
2114 (dwarf2_frame_set_signal_frame_p): Likewise.
2115 (dwarf2_frame_signal_frame_p): Likewise.
2116 (dwarf2_frame_set_adjust_regnum): Likewise.
2117 (dwarf2_frame_adjust_regnum): Likewise.
2118 (clear_pointer_cleanup): Likewise.
2119 (dwarf2_frame_cache): Likewise.
2120 (find_cie): Likewise.
2121 (dwarf2_frame_find_fde): Likewise.
2122 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2123 (free_dwarf_expr_context_cleanup): Likewise.
2124 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2125 (locexpr_get_frame_base): Likewise.
2126 (loclist_find_frame_base_location): Likewise.
2127 (loclist_get_frame_base): Likewise.
2128 (dwarf_expr_dwarf_call): Likewise.
2129 (dwarf_expr_get_base_type): Likewise.
2130 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2131 (dwarf_expr_get_obj_addr): Likewise.
2132 (entry_data_value_coerce_ref): Likewise.
2133 (entry_data_value_copy_closure): Likewise.
2134 (entry_data_value_free_closure): Likewise.
2135 (get_frame_address_in_block_wrapper): Likewise.
2136 (dwarf2_evaluate_property): Likewise.
2137 (dwarf2_compile_property_to_c): Likewise.
2138 (needs_frame_read_addr_from_reg): Likewise.
2139 (needs_frame_get_reg_value): Likewise.
2140 (needs_frame_frame_base): Likewise.
2141 (needs_frame_frame_cfa): Likewise.
2142 (needs_frame_tls_address): Likewise.
2143 (needs_frame_dwarf_call): Likewise.
2144 (needs_dwarf_reg_entry_value): Likewise.
2145 (get_ax_pc): Likewise.
2146 (locexpr_read_variable): Likewise.
2147 (locexpr_read_variable_at_entry): Likewise.
2148 (locexpr_read_needs_frame): Likewise.
2149 (locexpr_describe_location): Likewise.
2150 (locexpr_tracepoint_var_ref): Likewise.
2151 (locexpr_generate_c_location): Likewise.
2152 (loclist_read_variable): Likewise.
2153 (loclist_read_variable_at_entry): Likewise.
2154 (loclist_describe_location): Likewise.
2155 (loclist_tracepoint_var_ref): Likewise.
2156 (loclist_generate_c_location): Likewise.
2157 * dwarf2read.c (line_header_hash_voidp): Likewise.
2158 (line_header_eq_voidp): Likewise.
2159 (dwarf2_has_info): Likewise.
2160 (dwarf2_get_section_info): Likewise.
2161 (locate_dwz_sections): Likewise.
2162 (hash_file_name_entry): Likewise.
2163 (eq_file_name_entry): Likewise.
2164 (delete_file_name_entry): Likewise.
2165 (dw2_setup): Likewise.
2166 (dw2_get_file_names_reader): Likewise.
2167 (dw2_find_pc_sect_compunit_symtab): Likewise.
2168 (hash_signatured_type): Likewise.
2169 (eq_signatured_type): Likewise.
2170 (add_signatured_type_cu_to_table): Likewise.
2171 (create_debug_types_hash_table): Likewise.
2172 (lookup_dwo_signatured_type): Likewise.
2173 (lookup_dwp_signatured_type): Likewise.
2174 (lookup_signatured_type): Likewise.
2175 (hash_type_unit_group): Likewise.
2176 (eq_type_unit_group): Likewise.
2177 (get_type_unit_group): Likewise.
2178 (process_psymtab_comp_unit_reader): Likewise.
2179 (sort_tu_by_abbrev_offset): Likewise.
2180 (process_skeletonless_type_unit): Likewise.
2181 (psymtabs_addrmap_cleanup): Likewise.
2182 (dwarf2_read_symtab): Likewise.
2183 (psymtab_to_symtab_1): Likewise.
2184 (die_hash): Likewise.
2185 (die_eq): Likewise.
2186 (load_full_comp_unit_reader): Likewise.
2187 (reset_die_in_process): Likewise.
2188 (free_cu_line_header): Likewise.
2189 (handle_DW_AT_stmt_list): Likewise.
2190 (hash_dwo_file): Likewise.
2191 (eq_dwo_file): Likewise.
2192 (hash_dwo_unit): Likewise.
2193 (eq_dwo_unit): Likewise.
2194 (create_dwo_cu_reader): Likewise.
2195 (create_dwo_unit_in_dwp_v1): Likewise.
2196 (create_dwo_unit_in_dwp_v2): Likewise.
2197 (lookup_dwo_unit_in_dwp): Likewise.
2198 (dwarf2_locate_dwo_sections): Likewise.
2199 (dwarf2_locate_common_dwp_sections): Likewise.
2200 (dwarf2_locate_v2_dwp_sections): Likewise.
2201 (hash_dwp_loaded_cutus): Likewise.
2202 (eq_dwp_loaded_cutus): Likewise.
2203 (lookup_dwo_cutu): Likewise.
2204 (abbrev_table_free_cleanup): Likewise.
2205 (dwarf2_free_abbrev_table): Likewise.
2206 (find_partial_die_in_comp_unit): Likewise.
2207 (free_line_header_voidp): Likewise.
2208 (follow_die_offset): Likewise.
2209 (follow_die_sig_1): Likewise.
2210 (free_heap_comp_unit): Likewise.
2211 (free_stack_comp_unit): Likewise.
2212 (dwarf2_free_objfile): Likewise.
2213 (per_cu_offset_and_type_hash): Likewise.
2214 (per_cu_offset_and_type_eq): Likewise.
2215 (get_die_type_at_offset): Likewise.
2216 (partial_die_hash): Likewise.
2217 (partial_die_eq): Likewise.
2218 (dwarf2_per_objfile_free): Likewise.
2219 (hash_strtab_entry): Likewise.
2220 (eq_strtab_entry): Likewise.
2221 (add_string): Likewise.
2222 (hash_symtab_entry): Likewise.
2223 (eq_symtab_entry): Likewise.
2224 (delete_symtab_entry): Likewise.
2225 (cleanup_mapped_symtab): Likewise.
2226 (add_indices_to_cpool): Likewise.
2227 (hash_psymtab_cu_index): Likewise.
2228 (eq_psymtab_cu_index): Likewise.
2229 (add_address_entry_worker): Likewise.
2230 (unlink_if_set): Likewise.
2231 (write_one_signatured_type): Likewise.
2232 (save_gdb_index_command): Likewise.
2233 * elfread.c (elf_symtab_read): Likewise.
2234 (elf_gnu_ifunc_cache_hash): Likewise.
2235 (elf_gnu_ifunc_cache_eq): Likewise.
2236 (elf_gnu_ifunc_record_cache): Likewise.
2237 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2238 (elf_get_probes): Likewise.
2239 (probe_key_free): Likewise.
2240 * f-lang.c (builtin_f_type): Likewise.
2241 * frame-base.c (frame_base_append_sniffer): Likewise.
2242 (frame_base_set_default): Likewise.
2243 (frame_base_find_by_frame): Likewise.
2244 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2245 (frame_unwind_append_unwinder): Likewise.
2246 (frame_unwind_find_by_frame): Likewise.
2247 * frame.c (frame_addr_hash): Likewise.
2248 (frame_addr_hash_eq): Likewise.
2249 (frame_stash_find): Likewise.
2250 (do_frame_register_read): Likewise.
2251 (unwind_to_current_frame): Likewise.
2252 (frame_cleanup_after_sniffer): Likewise.
2253 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2254 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2255 * ft32-tdep.c (ft32_frame_cache): Likewise.
2256 * gcore.c (do_bfd_delete_cleanup): Likewise.
2257 (gcore_create_callback): Likewise.
2258 * gdb_bfd.c (hash_bfd): Likewise.
2259 (eq_bfd): Likewise.
2260 (gdb_bfd_open): Likewise.
2261 (free_one_bfd_section): Likewise.
2262 (gdb_bfd_ref): Likewise.
2263 (gdb_bfd_unref): Likewise.
2264 (get_section_descriptor): Likewise.
2265 (gdb_bfd_map_section): Likewise.
2266 (gdb_bfd_crc): Likewise.
2267 (gdb_bfd_mark_parent): Likewise.
2268 (gdb_bfd_record_inclusion): Likewise.
2269 (gdb_bfd_requires_relocations): Likewise.
2270 (print_one_bfd): Likewise.
2271 * gdbtypes.c (type_pair_hash): Likewise.
2272 (type_pair_eq): Likewise.
2273 (builtin_type): Likewise.
2274 (objfile_type): Likewise.
2275 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2276 (vtable_address_point_offset): Likewise.
2277 (gnuv3_get_vtable): Likewise.
2278 (hash_value_and_voffset): Likewise.
2279 (eq_value_and_voffset): Likewise.
2280 (compare_value_and_voffset): Likewise.
2281 (compute_vtable_size): Likewise.
2282 (gnuv3_get_typeid_type): Likewise.
2283 * go-lang.c (builtin_go_type): Likewise.
2284 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2285 (bkscm_eq_block_smob): Likewise.
2286 (bkscm_objfile_block_map): Likewise.
2287 (bkscm_del_objfile_blocks): Likewise.
2288 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2289 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2290 (gdbscm_disasm_print_address): Likewise.
2291 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2292 (frscm_eq_frame_smob): Likewise.
2293 (frscm_inferior_frame_map): Likewise.
2294 (frscm_del_inferior_frames): Likewise.
2295 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2296 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2297 (ofscm_objfile_smob_from_objfile): Likewise.
2298 * guile/scm-ports.c (ioscm_write): Likewise.
2299 (ioscm_file_port_delete): Likewise.
2300 (ioscm_file_port_rewind): Likewise.
2301 (ioscm_file_port_put): Likewise.
2302 (ioscm_file_port_write): Likewise.
2303 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2304 (psscm_pspace_smob_from_pspace): Likewise.
2305 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2306 (scscm_recording_unwind_handler): Likewise.
2307 (gdbscm_with_catch): Likewise.
2308 (scscm_call_0_body): Likewise.
2309 (scscm_call_1_body): Likewise.
2310 (scscm_call_2_body): Likewise.
2311 (scscm_call_3_body): Likewise.
2312 (scscm_call_4_body): Likewise.
2313 (scscm_apply_1_body): Likewise.
2314 (scscm_eval_scheme_string): Likewise.
2315 (gdbscm_safe_eval_string): Likewise.
2316 (scscm_source_scheme_script): Likewise.
2317 (gdbscm_safe_source_script): Likewise.
2318 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2319 (gdbscm_call_scm_from_stringn): Likewise.
2320 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2321 (syscm_eq_symbol_smob): Likewise.
2322 (syscm_get_symbol_map): Likewise.
2323 (syscm_del_objfile_symbols): Likewise.
2324 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2325 (stscm_eq_symtab_smob): Likewise.
2326 (stscm_objfile_symtab_map): Likewise.
2327 (stscm_del_objfile_symtabs): Likewise.
2328 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2329 (tyscm_eq_type_smob): Likewise.
2330 (tyscm_type_map): Likewise.
2331 (tyscm_copy_type_recursive): Likewise.
2332 (save_objfile_types): Likewise.
2333 * guile/scm-utils.c (extract_arg): Likewise.
2334 * h8300-tdep.c (h8300_frame_cache): Likewise.
2335 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2336 * hppa-tdep.c (compare_unwind_entries): Likewise.
2337 (find_unwind_entry): Likewise.
2338 (hppa_frame_cache): Likewise.
2339 (hppa_stub_frame_unwind_cache): Likewise.
2340 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2341 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2342 (hppaobsd_supply_fpregset): Likewise.
2343 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2344 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2345 * i386-tdep.c (i386_frame_cache): Likewise.
2346 (i386_epilogue_frame_cache): Likewise.
2347 (i386_sigtramp_frame_cache): Likewise.
2348 (i386_supply_gregset): Likewise.
2349 (i386_collect_gregset): Likewise.
2350 (i386_gdbarch_init): Likewise.
2351 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2352 (i386obsd_trapframe_cache): Likewise.
2353 * i387-tdep.c (i387_supply_fsave): Likewise.
2354 (i387_collect_fsave): Likewise.
2355 (i387_supply_fxsave): Likewise.
2356 (i387_collect_fxsave): Likewise.
2357 (i387_supply_xsave): Likewise.
2358 (i387_collect_xsave): Likewise.
2359 * ia64-tdep.c (ia64_frame_cache): Likewise.
2360 (ia64_sigtramp_frame_cache): Likewise.
2361 * infcmd.c (attach_command_continuation): Likewise.
2362 (attach_command_continuation_free_args): Likewise.
2363 * inferior.c (restore_inferior): Likewise.
2364 (delete_thread_of_inferior): Likewise.
2365 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2366 (get_inflow_inferior_data): Likewise.
2367 (inflow_inferior_exit): Likewise.
2368 * infrun.c (displaced_step_clear_cleanup): Likewise.
2369 (restore_current_uiout_cleanup): Likewise.
2370 (release_stop_context_cleanup): Likewise.
2371 (do_restore_infcall_suspend_state_cleanup): Likewise.
2372 (do_restore_infcall_control_state_cleanup): Likewise.
2373 (restore_inferior_ptid): Likewise.
2374 * inline-frame.c (block_starting_point_at): Likewise.
2375 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2376 * jit.c (get_jit_objfile_data): Likewise.
2377 (get_jit_program_space_data): Likewise.
2378 (jit_object_close_impl): Likewise.
2379 (jit_find_objf_with_entry_addr): Likewise.
2380 (jit_breakpoint_deleted): Likewise.
2381 (jit_unwind_reg_set_impl): Likewise.
2382 (jit_unwind_reg_get_impl): Likewise.
2383 (jit_dealloc_cache): Likewise.
2384 (jit_frame_sniffer): Likewise.
2385 (jit_frame_prev_register): Likewise.
2386 (jit_prepend_unwinder): Likewise.
2387 (jit_inferior_exit_hook): Likewise.
2388 (free_objfile_data): Likewise.
2389 * jv-lang.c (jv_per_objfile_free): Likewise.
2390 (get_dynamics_objfile): Likewise.
2391 (get_java_class_symtab): Likewise.
2392 (builtin_java_type): Likewise.
2393 * language.c (language_string_char_type): Likewise.
2394 (language_bool_type): Likewise.
2395 (language_lookup_primitive_type): Likewise.
2396 (language_lookup_primitive_type_as_symbol): Likewise.
2397 * linespec.c (hash_address_entry): Likewise.
2398 (eq_address_entry): Likewise.
2399 (iterate_inline_only): Likewise.
2400 (iterate_name_matcher): Likewise.
2401 (decode_line_2_compare_items): Likewise.
2402 (collect_one_symbol): Likewise.
2403 (compare_symbols): Likewise.
2404 (compare_msymbols): Likewise.
2405 (add_symtabs_to_list): Likewise.
2406 (collect_symbols): Likewise.
2407 (compare_msyms): Likewise.
2408 (add_minsym): Likewise.
2409 (cleanup_linespec_result): Likewise.
2410 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2411 * linux-nat.c (delete_lwp_cleanup): Likewise.
2412 (count_events_callback): Likewise.
2413 (select_event_lwp_callback): Likewise.
2414 (resume_stopped_resumed_lwps): Likewise.
2415 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2416 (invalidate_linux_cache_inf): Likewise.
2417 (get_linux_inferior_data): Likewise.
2418 (linux_find_memory_regions_thunk): Likewise.
2419 (linux_make_mappings_callback): Likewise.
2420 (linux_corefile_thread_callback): Likewise.
2421 (find_mapping_size): Likewise.
2422 * linux-thread-db.c (find_new_threads_callback): Likewise.
2423 * lm32-tdep.c (lm32_frame_cache): Likewise.
2424 * m2-lang.c (builtin_m2_type): Likewise.
2425 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2426 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2427 (m32r_linux_supply_gregset): Likewise.
2428 (m32r_linux_collect_gregset): Likewise.
2429 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2430 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2431 * m68k-tdep.c (m68k_frame_cache): Likewise.
2432 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2433 (m68kbsd_supply_gregset): Likewise.
2434 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2435 * m88k-tdep.c (m88k_frame_cache): Likewise.
2436 (m88k_supply_gregset): Likewise.
2437
2438 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2439
2440 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2441 to allocation result assignment.
2442 * ada-exp.y (write_object_renaming): Likewise.
2443 (write_ambiguous_var): Likewise.
2444 (ada_nget_field_index): Likewise.
2445 (write_var_or_type): Likewise.
2446 * ada-lang.c (ada_decode_symbol): Likewise.
2447 (ada_value_assign): Likewise.
2448 (value_pointer): Likewise.
2449 (cache_symbol): Likewise.
2450 (add_nonlocal_symbols): Likewise.
2451 (ada_name_for_lookup): Likewise.
2452 (symbol_completion_add): Likewise.
2453 (ada_to_fixed_type_1): Likewise.
2454 (ada_get_next_arg): Likewise.
2455 (defns_collected): Likewise.
2456 * ada-lex.l (processId): Likewise.
2457 (processString): Likewise.
2458 * ada-tasks.c (read_known_tasks_array): Likewise.
2459 (read_known_tasks_list): Likewise.
2460 * ada-typeprint.c (decoded_type_name): Likewise.
2461 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2462 * amd64-tdep.c (amd64_push_arguments): Likewise.
2463 (amd64_displaced_step_copy_insn): Likewise.
2464 (amd64_classify_insn_at): Likewise.
2465 (amd64_relocate_instruction): Likewise.
2466 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2467 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2468 (initialize_current_architecture): Likewise.
2469 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2470 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2471 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2472 (arm_push_dummy_call): Likewise.
2473 (extend_buffer_earlier): Likewise.
2474 (arm_adjust_breakpoint_address): Likewise.
2475 (arm_skip_stub): Likewise.
2476 * auto-load.c (filename_is_in_pattern): Likewise.
2477 (maybe_add_script_file): Likewise.
2478 (maybe_add_script_text): Likewise.
2479 (auto_load_objfile_script_1): Likewise.
2480 * auxv.c (ld_so_xfer_auxv): Likewise.
2481 * ax-general.c (new_agent_expr): Likewise.
2482 (grow_expr): Likewise.
2483 (ax_reg_mask): Likewise.
2484 * bcache.c (bcache_full): Likewise.
2485 * breakpoint.c (program_breakpoint_here_p): Likewise.
2486 * btrace.c (parse_xml_raw): Likewise.
2487 * build-id.c (build_id_to_debug_bfd): Likewise.
2488 * buildsym.c (end_symtab_with_blockvector): Likewise.
2489 * c-exp.y (string_exp): Likewise.
2490 (qualified_name): Likewise.
2491 (write_destructor_name): Likewise.
2492 (operator_stoken): Likewise.
2493 (parse_number): Likewise.
2494 (scan_macro_expansion): Likewise.
2495 (yylex): Likewise.
2496 (c_print_token): Likewise.
2497 * c-lang.c (c_get_string): Likewise.
2498 (emit_numeric_character): Likewise.
2499 * charset.c (wchar_iterate): Likewise.
2500 * cli/cli-cmds.c (complete_command): Likewise.
2501 (make_command): Likewise.
2502 * cli/cli-dump.c (restore_section_callback): Likewise.
2503 (restore_binary_file): Likewise.
2504 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2505 * cli/cli-script.c (execute_control_command): Likewise.
2506 * cli/cli-setshow.c (do_set_command): Likewise.
2507 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2508 (read_pe_exported_syms): Likewise.
2509 * coffread.c (coff_read_struct_type): Likewise.
2510 (coff_read_enum_type): Likewise.
2511 * common/btrace-common.c (btrace_data_append): Likewise.
2512 * common/buffer.c (buffer_grow): Likewise.
2513 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2514 * common/format.c (parse_format_string): Likewise.
2515 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2516 * common/xml-utils.c (xml_escape_text): Likewise.
2517 * compile/compile-object-load.c (copy_sections): Likewise.
2518 (compile_object_load): Likewise.
2519 * compile/compile-object-run.c (compile_object_run): Likewise.
2520 * completer.c (filename_completer): Likewise.
2521 * corefile.c (read_memory_typed_address): Likewise.
2522 (write_memory_unsigned_integer): Likewise.
2523 (write_memory_signed_integer): Likewise.
2524 (complete_set_gnutarget): Likewise.
2525 * corelow.c (get_core_register_section): Likewise.
2526 * cp-name-parser.y (d_grab): Likewise.
2527 (allocate_info): Likewise.
2528 (cp_new_demangle_parse_info): Likewise.
2529 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2530 (cp_lookup_symbol_in_namespace): Likewise.
2531 (lookup_namespace_scope): Likewise.
2532 (find_symbol_in_baseclass): Likewise.
2533 (cp_lookup_nested_symbol): Likewise.
2534 (cp_lookup_transparent_type_loop): Likewise.
2535 * cp-support.c (copy_string_to_obstack): Likewise.
2536 (make_symbol_overload_list): Likewise.
2537 (make_symbol_overload_list_namespace): Likewise.
2538 (make_symbol_overload_list_adl_namespace): Likewise.
2539 (first_component_command): Likewise.
2540 * cp-valprint.c (cp_print_value): Likewise.
2541 * ctf.c (ctf_xfer_partial): Likewise.
2542 * d-exp.y (StringExp): Likewise.
2543 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2544 (lookup_module_scope): Likewise.
2545 (find_symbol_in_baseclass): Likewise.
2546 (d_lookup_nested_symbol): Likewise.
2547 * dbxread.c (find_stab_function_addr): Likewise.
2548 (read_dbx_symtab): Likewise.
2549 (dbx_end_psymtab): Likewise.
2550 (cp_set_block_scope): Likewise.
2551 * dcache.c (dcache_alloc): Likewise.
2552 * demangle.c (_initialize_demangler): Likewise.
2553 * dicos-tdep.c (dicos_load_module_p): Likewise.
2554 * dictionary.c (dict_create_hashed_expandable): Likewise.
2555 (dict_create_linear_expandable): Likewise.
2556 (expand_hashtable): Likewise.
2557 (add_symbol_linear_expandable): Likewise.
2558 * dwarf2-frame.c (add_cie): Likewise.
2559 (add_fde): Likewise.
2560 (dwarf2_build_frame_info): Likewise.
2561 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2562 (dwarf_expr_fetch_address): Likewise.
2563 (add_piece): Likewise.
2564 (execute_stack_op): Likewise.
2565 * dwarf2loc.c (chain_candidate): Likewise.
2566 (dwarf_entry_parameter_to_value): Likewise.
2567 (read_pieced_value): Likewise.
2568 (write_pieced_value): Likewise.
2569 * dwarf2read.c (dwarf2_read_section): Likewise.
2570 (add_type_unit): Likewise.
2571 (read_comp_units_from_section): Likewise.
2572 (fixup_go_packaging): Likewise.
2573 (dwarf2_compute_name): Likewise.
2574 (dwarf2_physname): Likewise.
2575 (create_dwo_unit_in_dwp_v1): Likewise.
2576 (create_dwo_unit_in_dwp_v2): Likewise.
2577 (read_func_scope): Likewise.
2578 (read_call_site_scope): Likewise.
2579 (dwarf2_attach_fields_to_type): Likewise.
2580 (process_structure_scope): Likewise.
2581 (mark_common_block_symbol_computed): Likewise.
2582 (read_common_block): Likewise.
2583 (abbrev_table_read_table): Likewise.
2584 (guess_partial_die_structure_name): Likewise.
2585 (fixup_partial_die): Likewise.
2586 (add_file_name): Likewise.
2587 (dwarf2_const_value_data): Likewise.
2588 (dwarf2_const_value_attr): Likewise.
2589 (build_error_marker_type): Likewise.
2590 (guess_full_die_structure_name): Likewise.
2591 (anonymous_struct_prefix): Likewise.
2592 (typename_concat): Likewise.
2593 (dwarf2_canonicalize_name): Likewise.
2594 (dwarf2_name): Likewise.
2595 (write_constant_as_bytes): Likewise.
2596 (dwarf2_fetch_constant_bytes): Likewise.
2597 (copy_string): Likewise.
2598 (parse_macro_definition): Likewise.
2599 * elfread.c (elf_symfile_segments): Likewise.
2600 (elf_rel_plt_read): Likewise.
2601 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2602 (elf_gnu_ifunc_resolve_by_got): Likewise.
2603 (elf_read_minimal_symbols): Likewise.
2604 (elf_gnu_ifunc_record_cache): Likewise.
2605 * event-top.c (top_level_prompt): Likewise.
2606 (command_line_handler): Likewise.
2607 * exec.c (resize_section_table): Likewise.
2608 * expprint.c (print_subexp_standard): Likewise.
2609 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2610 * findcmd.c (parse_find_args): Likewise.
2611 * findvar.c (address_from_register): Likewise.
2612 * frame.c (get_prev_frame_always): Likewise.
2613 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2614 (get_section_descriptor): Likewise.
2615 * gdb_obstack.c (obconcat): Likewise.
2616 (obstack_strdup): Likewise.
2617 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2618 (create_set_type): Likewise.
2619 (lookup_unsigned_typename): Likewise.
2620 (lookup_signed_typename): Likewise.
2621 (resolve_dynamic_union): Likewise.
2622 (resolve_dynamic_struct): Likewise.
2623 (add_dyn_prop): Likewise.
2624 (copy_dynamic_prop_list): Likewise.
2625 (arch_flags_type): Likewise.
2626 (append_composite_type_field_raw): Likewise.
2627 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2628 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2629 * go-exp.y (string_exp): Likewise.
2630 * go-lang.c (go_demangle): Likewise.
2631 * guile/guile.c (compute_scheme_string): Likewise.
2632 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2633 (gdbscm_canonicalize_command_name): Likewise.
2634 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2635 (ioscm_init_memory_port): Likewise.
2636 (ioscm_reinit_memory_port): Likewise.
2637 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2638 (gdbscm_gc_dup_argv): Likewise.
2639 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2640 * hppa-tdep.c (internalize_unwinds): Likewise.
2641 (read_unwind_info): Likewise.
2642 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2643 (windows_core_xfer_shared_libraries): Likewise.
2644 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2645 (i386_stap_parse_special_token_triplet): Likewise.
2646 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2647 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2648 * inf-child.c (inf_child_fileio_readlink): Likewise.
2649 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2650 (inf_ptrace_store_register): Likewise.
2651 * infrun.c (follow_exec): Likewise.
2652 (displaced_step_prepare_throw): Likewise.
2653 (save_stop_context): Likewise.
2654 (save_infcall_suspend_state): Likewise.
2655 * jit.c (jit_read_descriptor): Likewise.
2656 (jit_read_code_entry): Likewise.
2657 (jit_symtab_line_mapping_add_impl): Likewise.
2658 (finalize_symtab): Likewise.
2659 (jit_unwind_reg_get_impl): Likewise.
2660 * jv-exp.y (QualifiedName): Likewise.
2661 * jv-lang.c (get_java_utf8_name): Likewise.
2662 (type_from_class): Likewise.
2663 (java_demangle_type_signature): Likewise.
2664 (java_class_name_from_physname): Likewise.
2665 * jv-typeprint.c (java_type_print_base): Likewise.
2666 * jv-valprint.c (java_value_print): Likewise.
2667 * language.c (add_language): Likewise.
2668 * linespec.c (add_sal_to_sals_basic): Likewise.
2669 (add_sal_to_sals): Likewise.
2670 (decode_objc): Likewise.
2671 (find_linespec_symbols): Likewise.
2672 * linux-fork.c (fork_save_infrun_state): Likewise.
2673 * linux-nat.c (linux_nat_detach): Likewise.
2674 (linux_nat_fileio_readlink): Likewise.
2675 * linux-record.c (record_linux_sockaddr): Likewise.
2676 (record_linux_msghdr): Likewise.
2677 (Do): Likewise.
2678 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2679 (linux_collect_regset_section_cb): Likewise.
2680 (linux_get_siginfo_data): Likewise.
2681 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2682 (try_thread_db_load_from_dir): Likewise.
2683 (thread_db_load_search): Likewise.
2684 (info_auto_load_libthread_db): Likewise.
2685 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2686 (m32c_m16c_pointer_to_address): Likewise.
2687 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2688 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2689 * machoread.c (macho_check_dsym): Likewise.
2690 * macroexp.c (resize_buffer): Likewise.
2691 (gather_arguments): Likewise.
2692 (maybe_expand): Likewise.
2693 * macrotab.c (new_macro_key): Likewise.
2694 (new_source_file): Likewise.
2695 (new_macro_definition): Likewise.
2696 * mdebugread.c (parse_symbol): Likewise.
2697 (parse_type): Likewise.
2698 (parse_partial_symbols): Likewise.
2699 (psymtab_to_symtab_1): Likewise.
2700 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2701 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2702 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2703 (mi_cmd_data_read_memory_bytes): Likewise.
2704 (mi_cmd_data_write_memory_bytes): Likewise.
2705 (mi_cmd_trace_frame_collected): Likewise.
2706 * mi/mi-parse.c (mi_parse_argv): Likewise.
2707 (mi_parse): Likewise.
2708 * minidebug.c (lzma_open): Likewise.
2709 (lzma_pread): Likewise.
2710 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2711 (mips_print_fp_register): Likewise.
2712 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2713 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2714 * mt-tdep.c (mt_register_name): Likewise.
2715 (mt_registers_info): Likewise.
2716 (mt_push_dummy_call): Likewise.
2717 * namespace.c (add_using_directive): Likewise.
2718 * nat/linux-btrace.c (perf_event_read): Likewise.
2719 (linux_enable_bts): Likewise.
2720 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2721 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2722 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2723 (nto_parse_redirection): Likewise.
2724 * objc-lang.c (objc_demangle): Likewise.
2725 (find_methods): Likewise.
2726 * objfiles.c (get_objfile_bfd_data): Likewise.
2727 (set_objfile_main_name): Likewise.
2728 (allocate_objfile): Likewise.
2729 (objfile_relocate): Likewise.
2730 (update_section_map): Likewise.
2731 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2732 * p-exp.y (exp): Likewise.
2733 (yylex): Likewise.
2734 * p-valprint.c (pascal_object_print_value): Likewise.
2735 * parse.c (initialize_expout): Likewise.
2736 (mark_completion_tag): Likewise.
2737 (copy_name): Likewise.
2738 (parse_float): Likewise.
2739 (type_stack_reserve): Likewise.
2740 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2741 (ppu2spu_prev_register): Likewise.
2742 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2743 * printcmd.c (printf_wide_c_string): Likewise.
2744 (printf_pointer): Likewise.
2745 * probe.c (parse_probes): Likewise.
2746 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2747 (cmdpy_init): Likewise.
2748 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2749 * python/py-symtab.c (set_sal): Likewise.
2750 * python/py-unwind.c (pyuw_sniffer): Likewise.
2751 * python/python.c (python_interactive_command): Likewise.
2752 (compute_python_string): Likewise.
2753 * ravenscar-thread.c (get_running_thread_id): Likewise.
2754 * record-full.c (record_full_exec_insn): Likewise.
2755 (record_full_core_open_1): Likewise.
2756 * regcache.c (regcache_raw_read_signed): Likewise.
2757 (regcache_raw_read_unsigned): Likewise.
2758 (regcache_cooked_read_signed): Likewise.
2759 (regcache_cooked_read_unsigned): Likewise.
2760 * remote-fileio.c (remote_fileio_func_open): Likewise.
2761 (remote_fileio_func_rename): Likewise.
2762 (remote_fileio_func_unlink): Likewise.
2763 (remote_fileio_func_stat): Likewise.
2764 (remote_fileio_func_system): Likewise.
2765 * remote-mips.c (mips_xfer_memory): Likewise.
2766 (mips_load_srec): Likewise.
2767 (pmon_end_download): Likewise.
2768 * remote.c (new_remote_state): Likewise.
2769 (map_regcache_remote_table): Likewise.
2770 (remote_register_number_and_offset): Likewise.
2771 (init_remote_state): Likewise.
2772 (get_memory_packet_size): Likewise.
2773 (remote_pass_signals): Likewise.
2774 (remote_program_signals): Likewise.
2775 (remote_start_remote): Likewise.
2776 (remote_check_symbols): Likewise.
2777 (remote_query_supported): Likewise.
2778 (extended_remote_attach): Likewise.
2779 (process_g_packet): Likewise.
2780 (store_registers_using_G): Likewise.
2781 (putpkt_binary): Likewise.
2782 (read_frame): Likewise.
2783 (compare_sections_command): Likewise.
2784 (remote_hostio_pread): Likewise.
2785 (remote_hostio_readlink): Likewise.
2786 (remote_file_put): Likewise.
2787 (remote_file_get): Likewise.
2788 (remote_pid_to_exec_file): Likewise.
2789 (_initialize_remote): Likewise.
2790 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2791 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2792 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2793 (bfd_uses_spe_extensions): Likewise.
2794 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2795 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2796 * solib-dsbt.c (decode_loadmap): Likewise.
2797 (fetch_loadmap): Likewise.
2798 (scan_dyntag): Likewise.
2799 (enable_break): Likewise.
2800 (dsbt_relocate_main_executable): Likewise.
2801 * solib-frv.c (fetch_loadmap): Likewise.
2802 (enable_break2): Likewise.
2803 (frv_relocate_main_executable): Likewise.
2804 * solib-spu.c (spu_relocate_main_executable): Likewise.
2805 (spu_bfd_open): Likewise.
2806 * solib-svr4.c (lm_info_read): Likewise.
2807 (read_program_header): Likewise.
2808 (find_program_interpreter): Likewise.
2809 (scan_dyntag): Likewise.
2810 (elf_locate_base): Likewise.
2811 (open_symbol_file_object): Likewise.
2812 (read_program_headers_from_bfd): Likewise.
2813 (svr4_relocate_main_executable): Likewise.
2814 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2815 * solib.c (solib_find_1): Likewise.
2816 (exec_file_find): Likewise.
2817 (solib_find): Likewise.
2818 * source.c (openp): Likewise.
2819 (print_source_lines_base): Likewise.
2820 (forward_search_command): Likewise.
2821 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2822 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2823 (spu_get_overlay_table): Likewise.
2824 * stabsread.c (patch_block_stabs): Likewise.
2825 (define_symbol): Likewise.
2826 (again:): Likewise.
2827 (read_member_functions): Likewise.
2828 (read_one_struct_field): Likewise.
2829 (read_enum_type): Likewise.
2830 (common_block_start): Likewise.
2831 * stack.c (read_frame_arg): Likewise.
2832 (backtrace_command): Likewise.
2833 * stap-probe.c (stap_parse_register_operand): Likewise.
2834 * symfile.c (syms_from_objfile_1): Likewise.
2835 (find_separate_debug_file): Likewise.
2836 (load_command): Likewise.
2837 (load_progress): Likewise.
2838 (load_section_callback): Likewise.
2839 (reread_symbols): Likewise.
2840 (add_filename_language): Likewise.
2841 (allocate_compunit_symtab): Likewise.
2842 (read_target_long_array): Likewise.
2843 (simple_read_overlay_table): Likewise.
2844 * symtab.c (symbol_set_names): Likewise.
2845 (resize_symbol_cache): Likewise.
2846 (rbreak_command): Likewise.
2847 (completion_list_add_name): Likewise.
2848 (completion_list_objc_symbol): Likewise.
2849 (add_filename_to_list): Likewise.
2850 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2851 * target-memory.c (target_write_memory_blocks): Likewise.
2852 * target.c (target_read_string): Likewise.
2853 (read_whatever_is_readable): Likewise.
2854 (target_read_alloc_1): Likewise.
2855 (simple_search_memory): Likewise.
2856 (target_fileio_read_alloc_1): Likewise.
2857 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2858 * top.c (command_line_input): Likewise.
2859 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2860 * tracefile.c (tracefile_fetch_registers): Likewise.
2861 * tracepoint.c (add_memrange): Likewise.
2862 (init_collection_list): Likewise.
2863 (add_aexpr): Likewise.
2864 (trace_dump_actions): Likewise.
2865 (parse_trace_status): Likewise.
2866 (parse_tracepoint_definition): Likewise.
2867 (parse_tsv_definition): Likewise.
2868 (parse_static_tracepoint_marker_definition): Likewise.
2869 * tui/tui-file.c (tui_sfileopen): Likewise.
2870 (tui_file_adjust_strbuf): Likewise.
2871 * tui/tui-io.c (tui_expand_tabs): Likewise.
2872 * tui/tui-source.c (tui_set_source_content): Likewise.
2873 * typeprint.c (find_global_typedef): Likewise.
2874 * ui-file.c (do_ui_file_xstrdup): Likewise.
2875 (ui_file_obsavestring): Likewise.
2876 (mem_file_write): Likewise.
2877 * utils.c (make_hex_string): Likewise.
2878 (get_regcomp_error): Likewise.
2879 (puts_filtered_tabular): Likewise.
2880 (gdb_realpath_keepfile): Likewise.
2881 (ldirname): Likewise.
2882 (gdb_bfd_errmsg): Likewise.
2883 (substitute_path_component): Likewise.
2884 * valops.c (search_struct_method): Likewise.
2885 (find_oload_champ_namespace_loop): Likewise.
2886 * valprint.c (print_decimal_chars): Likewise.
2887 (read_string): Likewise.
2888 (generic_emit_char): Likewise.
2889 * varobj.c (varobj_delete): Likewise.
2890 (varobj_value_get_print_value): Likewise.
2891 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2892 * windows-tdep.c (display_one_tib): Likewise.
2893 * xcoffread.c (read_xcoff_symtab): Likewise.
2894 (process_xcoff_symbol): Likewise.
2895 (swap_sym): Likewise.
2896 (scan_xcoff_symtab): Likewise.
2897 (xcoff_initial_scan): Likewise.
2898 * xml-support.c (gdb_xml_end_element): Likewise.
2899 (xml_process_xincludes): Likewise.
2900 (xml_fetch_content_from_file): Likewise.
2901 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2902 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2903
2904 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2905
2906 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2907 instead of builtin_func_ptr.
2908 (ft32_pointer_to_address): New function.
2909 (ft32_address_class_type_flags): New function.
2910 (ft32_address_class_type_flags_to_name): New function.
2911 (ft32_address_class_name_to_type_flags): New function.
2912 (ft32_gdbarch_init): Set tdep->pc_type. Call
2913 set_gdbarch_pointer_to_address,
2914 set_gdbarch_address_class_type_flags
2915 set_gdbarch_address_class_name_to_type_flags,
2916 and set_gdbarch_address_class_type_flags_to_name.
2917 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2918
2919 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2920
2921 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2922 value is a reference, actually dereference it in order to get
2923 the underlying value.
2924
2925 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2926
2927 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2928
2929 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2930
2931 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2932 * linespec.c (linespec_lexer_lex_string): Same.
2933
2934 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2935
2936 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2937
2938 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2939
2940 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2941 variable. Call aarch64_decode_adr instead of
2942 aarch64_decode_adrp.
2943 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2944 (aarch64_decode_adr): New function declaration.
2945 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2946 (aarch64_decode_adr): New function, factored out from
2947 aarch64_decode_adrp to decode both adr and adrp instructions.
2948
2949 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2950
2951 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2952 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2953 (aarch64-insn.o): New rule.
2954 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2955 (aarch64*-*-linux*): Likewise.
2956 * arch/aarch64-insn.c: New file.
2957 * arch/aarch64-insn.h: New file.
2958 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2959 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2960 arch/aarch64-insn.h.
2961 (decode_add_sub_imm): Rename to ...
2962 (aarch64_decode_add_sub_imm): ... this.
2963 (decode_adrp): Rename to ...
2964 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2965 Declare in arch/aarch64-insn.h.
2966 (decode_b): Rename to ...
2967 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2968 Declare in arch/aarch64-insn.h.
2969 (decode_bcond): Rename to ...
2970 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2971 Declare in arch/aarch64-insn.h.
2972 (decode_br): Rename to ...
2973 (aarch64_decode_br): ... this.
2974 (decode_cb): Rename to ...
2975 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2976 Declare in arch/aarch64-insn.h.
2977 (decode_eret): Rename to ...
2978 (aarch64_decode_eret): ... this.
2979 (decode_movz): Rename to ...
2980 (aarch64_decode_movz): ... this.
2981 (decode_orr_shifted_register_x): Rename to ...
2982 (aarch64_decode_orr_shifted_register_x): ... this.
2983 (decode_ret): Rename to ...
2984 (aarch64_decode_ret): ... this.
2985 (decode_stp_offset): Rename to ...
2986 (aarch64_decode_stp_offset): ... this.
2987 (decode_stp_offset_wb): Rename to ...
2988 (aarch64_decode_stp_offset_wb): ... this.
2989 (decode_stur): Rename to ...
2990 (aarch64_decode_stur): ... this.
2991 (decode_tb): Rename to ...
2992 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2993 Declare in arch/aarch64-insn.h.
2994 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2995
2996 2015-09-20 Doug Evans <xdje42@gmail.com>
2997
2998 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2999
3000 2015-09-20 Doug Evans <xdje42@gmail.com>
3001
3002 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3003 variable name that collides with a parameter.
3004
3005 2015-09-20 Joel Brobecker <brobecker@adacore.com>
3006
3007 * dwarf2loc.c (locexpr_get_frame_base): Renames
3008 block_op_get_frame_base.
3009 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3010 block_op_get_frame_base by reference to locexpr_get_frame_base.
3011 (loclist_get_frame_base): New function, near identical copy of
3012 locexpr_get_frame_base.
3013 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3014 block_op_get_frame_base by reference to loclist_get_frame_base.
3015
3016 2015-09-19 Doug Evans <xdje42@gmail.com>
3017
3018 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3019 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3020
3021 2015-09-18 Doug Evans <xdje42@gmail.com>
3022
3023 * linux-thread-db.c (record_thread): Return the created thread.
3024 (thread_from_lwp): Likewise.
3025 (thread_db_get_thread_local_address): Update.
3026
3027 2015-09-18 Doug Evans <xdje42@gmail.com>
3028
3029 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3030 move only member demangled_name up. All uses updated.
3031
3032 2015-09-18 Doug Evans <xdje42@gmail.com>
3033
3034 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3035 kind of minimal symbol in the error message.
3036 * objfiles.c (objfile_flavour_name): New function.
3037 * objfiles.h (objfile_flavour_name): Declare.
3038
3039 2015-09-18 Yao Qi <yao.qi@linaro.org>
3040
3041 * nat/aarch64-linux.c: Include elf/common.h,
3042 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3043 (aarch64_ps_get_thread_area): New function.
3044 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3045 (aarch64_ps_get_thread_area): Declare.
3046 * aarch64-linux-nat.c (ps_get_thread_area): Call
3047 aarch64_ps_get_thread_area.
3048
3049 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3050
3051 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3052
3053 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3054
3055 * NEWS: Announce new scheduler-locking mode.
3056 * infrun.c (schedlock_replay): New.
3057 (scheduler_enums): Add schedlock_replay.
3058 (scheduler_mode): Change default to schedlock_replay.
3059 (user_visible_resume_ptid): Handle schedlock_replay.
3060 (clear_proceed_status_thread): Stop replaying if resumed thread is
3061 not replaying.
3062 (schedlock_applies): Handle schedlock_replay.
3063 (_initialize_infrun): Document new scheduler-locking mode.
3064 * record-btrace.c (record_btrace_resume): Remove code to stop other
3065 threads when not replaying the resumed thread.
3066
3067 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3068
3069 * record-btrace.c ((record_btrace_will_replay): New.
3070 (init_record_btrace_ops): Initialize to_record_will_replay.
3071 * record-full.c ((record_full_will_replay): New.
3072 (init_record_full_ops): Initialize to_record_will_replay.
3073 * target-delegates.c: Regenerated.
3074 * target.c (target_record_will_replay): New.
3075 * target.h (struct target_ops) <to_record_will_replay>: New.
3076 (target_record_will_replay): New.
3077
3078 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3079
3080 * record-btrace.c (record_btrace_resume): Call
3081 target_record_stop_replaying.
3082 (record_btrace_stop_replaying_all): New.
3083 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3084 * record-full.c (record_full_stop_replaying): New.
3085 (init_record_full_ops ): Initialize to_record_stop_replaying.
3086 * target-delegates.c: Regenerated.
3087 * target.c (target_record_stop_replaying): New.
3088 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3089 (target_record_stop_replaying): New.
3090
3091 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3092
3093 * record-btrace.c (record_btrace_xfer_partial)
3094 (record_btrace_store_registers, record_btrace_prepare_to_store):
3095 Call record_btrace_is_replaying with inferior_ptid instead of
3096 minus_one_ptid.
3097 (record_btrace_store_registers): Change error message.
3098
3099 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3100
3101 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3102 Update users to pass minus_one_ptid.
3103 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3104 * record.c (cmd_record_delete): Pass inferior_ptid to
3105 target_record_is_replaying.
3106 * target-delegates.c: Regenerated.
3107 * target.c (target_record_is_replaying): Add ptid argument.
3108 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3109 argument.
3110 (target_record_is_replaying): Add ptid argument.
3111
3112 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3113
3114 * record-btrace.c (record_btrace_open): Remove non_stop check.
3115 * NEWS: Announce that record btrace supports non-stop mode.
3116
3117 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3118
3119 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3120 in the TARKET_WAITKIND_NO_HISTORY case.
3121
3122 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3123
3124 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3125 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3126
3127 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3128
3129 * record-btrace.c (get_thread_current_frame): New.
3130 (record_btrace_start_replaying): Call get_thread_current_frame.
3131
3132 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3133
3134 * record-btrace.c (record_btrace_resume_thread): A move request
3135 overwrites a previous move request.
3136 (record_btrace_find_resume_thread): Removed.
3137 (record_btrace_resume): Resume all requested threads.
3138
3139 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3140
3141 * record-btrace.c: Include vec.h.
3142 (record_btrace_find_thread_to_move): Removed.
3143 (btrace_step_no_resumed, btrace_step_again)
3144 (record_btrace_stop_replaying_at_end): New.
3145 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3146 (record_btrace_single_step_forward): Remove calls to
3147 record_btrace_stop_replaying.
3148 (record_btrace_step_thread): Do only one step for BTHR_CONT and
3149 BTHR_RCONT. Keep threads at the end of their history moving.
3150 (record_btrace_wait): Call record_btrace_step_thread for all threads
3151 until one reports an event. Call record_btrace_stop_replaying_at_end
3152 for the eventing thread.
3153
3154 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3155
3156 * record-btrace.c (record_btrace_single_step_forward): Return
3157 NO_HISTORY if a step brings us to the end of the execution history.
3158
3159 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3160
3161 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
3162 to ...
3163 (record_btrace_single_step_forward): ... here and
3164 (record_btrace_single_step_backward): ... here.
3165
3166 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3167
3168 * record-btrace.c (btrace_step_spurious)
3169 (record_btrace_single_step_forward)
3170 (record_btrace_single_step_backward): New.
3171 (record_btrace_step_thread): Call record_btrace_single_step_forward
3172 and record_btrace_single_step_backward.
3173
3174 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3175
3176 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3177 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3178
3179 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3180
3181 * record-btrace.c (btrace_thread_flag_to_str)
3182 (record_btrace_cancel_resume): New.
3183 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3184 (record_btrace_resume): Print execution direction.
3185 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3186 (record_btrace_wait): Call record_btrace_cancel_resume.
3187
3188 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3189
3190 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3191 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3192 (record_btrace_find_thread_to_move): Also accept threads that have
3193 BTHR_STOP set.
3194 (btrace_step_stopped_on_request, record_btrace_stop): New.
3195 (record_btrace_step_thread): Support BTHR_STOP.
3196 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3197 (init_record_btrace_ops): Initialize to_stop.
3198
3199 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3200
3201 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3202 target_is_non_stop_p ().
3203
3204 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3205
3206 * ada-typeprint.c (print_array_type): Do not describe arrays as
3207 packed when they embed dynamic elements.
3208
3209 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3210
3211 * symtab.h (address_class): Document that TLS variables
3212 are handled by LOC_UNRESOLVED.
3213 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3214 * printcmd.c (address_info): Don't relocate TLS variables.
3215
3216 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3217
3218 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3219 (decode_adrp): Likewise.
3220 (decode_b): Likewise.
3221 (decode_bcond): Likewise.
3222 (decode_br): Likewise.
3223 (decode_cb): Likewise.
3224 (decode_eret): Likewise.
3225 (decode_movz): Likewise.
3226 (decode_orr_shifted_register_x): Likewise.
3227 (decode_ret): Likewise.
3228 (decode_stp_offset): Likewise.
3229 (decode_stp_offset_wb): Likewise.
3230 (decode_stur): Likewise.
3231 (decode_tb): Likewise.
3232 (aarch64_analyze_prologue): Likewise.
3233 (pass_in_x): Likewise.
3234 (pass_in_v): Likewise.
3235 (pass_on_stack): Likewise.
3236 (aarch64_push_dummy_call): Likewise.
3237 (aarch64_extract_return_value): Likewise.
3238 (aarch64_store_return_value): Likewise.
3239 (aarch64_return_value): Likewise.
3240 (aarch64_record_asimd_load_store): Likewise.
3241 (aarch64_record_load_store): Likewise.
3242 (aarch64_record_data_proc_simd_fp): Likewise.
3243
3244 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3245
3246 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3247 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3248 (ppc64_skip_trampoline_code_1): ... here.
3249 (ppc64_skip_trampoline_code): New wrapper function.
3250 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3251
3252 2015-09-15 Yao Qi <yao.qi@linaro.org>
3253
3254 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3255 function.
3256 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3257 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3258 if target_can_do_single_step returns 1.
3259 * remote.c (struct vCont_action_support) <s, S>: New fields.
3260 (PACKET_vContSupported): New enum.
3261 (remote_protocol_features): New element for vContSupported.
3262 (remote_query_supported): Append "vContSupported+".
3263 (remote_vcont_probe): Remove support_s and support_S, use
3264 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3265 vCont packet if c and C actions are not supported.
3266 (remote_can_do_single_step): New function.
3267 (init_remote_ops): Install it to to_can_do_single_step.
3268 (_initialize_remote): Call add_packet_config_cmd.
3269 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3270 (target_can_do_single_step): New macro.
3271 * target-delegates.c: Re-generated.
3272
3273 2015-09-15 Yao Qi <yao.qi@linaro.org>
3274
3275 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3276 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3277 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3278 New function.
3279 (aarch64_siginfo_from_compat_siginfo): New function.
3280 * nat/aarch64-linux.h: Include signal.h.
3281 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3282 (compat_timer_t, compat_clock_t): Likewise.
3283 (struct compat_timeval): New.
3284 (union compat_sigval): New.
3285 (struct compat_siginfo): New.
3286 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3287 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3288 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3289 (cpt_si_band, cpt_si_fd): Likewise.
3290
3291 2015-09-14 Pedro Alves <palves@redhat.com>
3292
3293 * infrun.c (current_stop_id): New global.
3294 (get_stop_id, new_stop_id): New functions.
3295 (fetch_inferior_event): Handle normal_stop proceeding the target.
3296 (struct stop_context): New.
3297 (save_stop_context, release_stop_context_cleanup)
3298 (stop_context_changed): New functions.
3299 (normal_stop): Return true if the hook-stop changes the stop
3300 context.
3301 * infrun.h (get_stop_id): Declare.
3302 (normal_stop): Now returns int. Add documentation.
3303
3304 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3305
3306 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3307 comment. Handle packed arrays.
3308
3309 2015-09-14 Pedro Alves <palves@redhat.com>
3310
3311 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3312 mention of maint set/show target-non-stop.
3313
3314 2015-09-11 Don Breazeal <donb@codesourcery.com>
3315
3316 * NEWS: Announce new remote packets for the exec-events
3317 feature and the exec-events feature and associated commands.
3318
3319 2015-09-11 Don Breazeal <donb@codesourcery.com>
3320
3321 * remote.c (remote_exec_event_p): New function.
3322 (remote_insert_exec_catchpoint): New function.
3323 (remote_remove_exec_catchpoint): New function.
3324 (init_extended_remote_ops): Initialize extended_remote_ops
3325 members to_insert_exec_catchpoint and
3326 to_remove_exec_catchpoint.
3327
3328 2015-09-11 Don Breazeal <donb@codesourcery.com>
3329 Luis Machado <lgustavo@codesourcery.com>
3330
3331 * infrun.c (follow_exec): Use process-style ptid for
3332 exec message. Call add_inferior_with_spaces and
3333 target_follow_exec.
3334 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3335 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3336 * remote.c (remote_pspace_data): New static variable.
3337 (remote_pspace_data_cleanup): New function.
3338 (get_remote_exec_file): New function.
3339 (set_remote_exec_file_1): New function.
3340 (set_remote_exec_file): New function.
3341 (show_remote_exec_file): New function.
3342 (remote_exec_file): Delete static variable.
3343 (anonymous enum) <PACKET_exec_event_feature>: New
3344 enumeration constant.
3345 (remote_protocol_features): Add entry for exec-events feature.
3346 (remote_query_supported): Add client side of qSupported query
3347 for exec-events feature.
3348 (remote_follow_exec): New function.
3349 (remote_parse_stop_reply): Handle 'exec' stop reason.
3350 (extended_remote_run, extended_remote_create_inferior): Call
3351 get_remote_exec_file and set_remote_exec_file_1.
3352 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3353 member.
3354 (_initialize_remote): Call
3355 register_program_space_data_with_cleanup. Call
3356 add_packet_config_cmd for remote exec-events feature.
3357 Modify call to add_setshow_string_noescape_cmd for exec-file
3358 to use new functions set_remote_exec_file and
3359 show_remote_exec_file.
3360 * target-debug.h, target-delegates.c: Regenerated.
3361 * target.c (target_follow_exec): New function.
3362 * target.h (struct target_ops) <to_follow_exec>: New member.
3363 (target_follow_exec): Declare new function.
3364
3365 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3366
3367 * aarch64-tdep.c (decode_cb): Move up comment describing the
3368 encoding.
3369 (decode_tb): Fix a typo in comment above the function. Move up
3370 comment describing the encoding.
3371
3372 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3373
3374 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3375
3376 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3377
3378 PR gdb/18947
3379 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3380 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3381
3382 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3383
3384 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3385 operations.
3386
3387 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3388
3389 * ada-lang.c (ada_search_struct_field): Constify parameters
3390 and/or variables..
3391 (xget_renaming_scope): Likewise.
3392 (ada_is_redundant_range_encoding): Likewise.
3393 (scan_discrim_bound): Likewise.
3394 (to_fixed_range_type): Likewise.
3395
3396 2015-09-10 Yao Qi <yao.qi@linaro.org>
3397
3398 * breakpoint.c (download_tracepoint_locations): New local
3399 can_download_tracepoint. Check the result of
3400 target_can_download_tracepoint and save it in
3401 can_download_tracepoint if there are tracepoints to download.
3402 * linux-nat.h (enum tribool): Move it to ...
3403 * common/common-types.h: ... here.
3404
3405 2015-09-09 Pedro Alves <palves@redhat.com>
3406
3407 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3408 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3409
3410 2015-09-09 Pedro Alves <palves@redhat.com>
3411
3412 * continuations.c (add_continuation, restore_thread_cleanup)
3413 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3414 (do_all_continuations_thread, do_all_continuations)
3415 (discard_all_continuations_thread_callback)
3416 (discard_all_continuations_thread, discard_all_continuations)
3417 (add_intermediate_continuation)
3418 (do_all_intermediate_continuations_thread_callback)
3419 (do_all_intermediate_continuations_thread)
3420 (do_all_intermediate_continuations)
3421 (discard_all_intermediate_continuations_thread_callback)
3422 (discard_all_intermediate_continuations_thread)
3423 (discard_all_intermediate_continuations): Delete.
3424 * continuations.h (add_continuation, do_all_continuations)
3425 (do_all_continuations_thread, discard_all_continuations)
3426 (discard_all_continuations_thread, add_intermediate_continuation)
3427 (do_all_intermediate_continuations)
3428 (do_all_intermediate_continuations_thread)
3429 (discard_all_intermediate_continuations)
3430 (discard_all_intermediate_continuations_thread): Delete
3431 declarations.
3432 * event-top.c (stdin_event_handler): Delete references to
3433 continuations.
3434 * gdbthread.h (struct thread_info): Delete continuations and
3435 intermediate_continuations fields.
3436 * inf-loop.c (inferior_event_handler): Remove references to
3437 continuations.
3438 * infrun.c (infrun_thread_stop_requested_callback): Remove
3439 references to continuations.
3440 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3441 * thread.c: Don't include "continuations.h".
3442 (clear_thread_inferior_resources): Remove references to
3443 continuations.
3444
3445 2015-09-09 Pedro Alves <palves@redhat.com>
3446
3447 * infcall.c (struct dummy_frame_context_saver): Delete.
3448 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3449 (dummy_frame_context_saver_drop)
3450 (dummy_frame_context_saver_cleanup)
3451 (dummy_frame_context_saver_get_regs)
3452 (dummy_frame_context_saver_setup): Delete.
3453 * infcall.h (dummy_frame_context_saver_drop)
3454 (dummy_frame_context_saver_cleanup)
3455 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3456 Delete.
3457 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3458 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3459 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3460
3461 2015-09-09 Pedro Alves <palves@redhat.com>
3462
3463 * breakpoint.c: Include "thread-fsm.h".
3464 (struct until_break_command_continuation_args): Delete.
3465 (struct until_break_fsm): New.
3466 (until_break_fsm_ops): New global.
3467 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3468 (until_break_command_continuation): Delete.
3469 (until_break_fsm_clean_up): New function.
3470 (until_break_fsm_async_reply_reason): New function.
3471 (until_break_command): Adjust to create an until_break_fsm instead
3472 of a continuation.
3473 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3474 here.
3475 * infcmd.c (struct until_next_fsm): New.
3476 (until_next_fsm_ops): New global.
3477 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3478 (until_next_continuation): Delete.
3479 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3480 functions.
3481 (until_next_command): Adjust to create a new until_next_fsm
3482 instead of a continuation.
3483
3484 2015-09-09 Pedro Alves <palves@redhat.com>
3485
3486 * infcall.c: Include thread_fsm.h.
3487 (struct call_return_meta_info): New.
3488 (get_call_return_value): New function, factored out from
3489 call_function_by_hand_dummy.
3490 (struct call_thread_fsm): New.
3491 (call_thread_fsm_ops): New global.
3492 (new_call_thread_fsm, call_thread_fsm_should_stop)
3493 (call_thread_fsm_should_notify_stop): New functions.
3494 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3495 the thread.
3496 (call_function_by_hand_dummy): Create a new call_thread_fsm
3497 instance, associate it with the thread, and wait for the FSM to
3498 finish. If finished successfully, fetch the function's result
3499 value out of the FSM.
3500 * infrun.c (fetch_inferior_event): If the FSM says the stop
3501 shouldn't be notified, don't call normal_stop.
3502 (maybe_remove_breakpoints): New function, factored out from ...
3503 (normal_stop): ... here. Simplify.
3504 * infrun.h (maybe_remove_breakpoints): Declare.
3505 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3506 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3507 (thread_fsm_should_notify_stop): Declare.
3508
3509 2015-09-09 Pedro Alves <palves@redhat.com>
3510
3511 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3512 * breakpoint.c (handle_jit_event): Print debug output.
3513 (bpstat_what): Split event callback handling to ...
3514 (bpstat_run_callbacks): ... this new function.
3515 (momentary_bkpt_print_it): No longer handle bp_finish here.
3516 * breakpoint.h (bpstat_run_callbacks): Declare.
3517 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3518 <thread_fsm>: New field.
3519 (thread_cancel_execution_command): Declare.
3520 * infcmd.c: Include thread-fsm.h.
3521 (struct step_command_fsm): New.
3522 (step_command_fsm_ops): New global.
3523 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3524 (step_1): Adjust to use step_command_fsm_prepare and
3525 prepare_one_step.
3526 (struct step_1_continuation_args): Delete.
3527 (step_1_continuation): Delete.
3528 (step_command_fsm_should_stop): New function.
3529 (step_once): Delete.
3530 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3531 (prepare_one_step): New function, based on step_once.
3532 (until_next_command): Remove step_multi reference.
3533 (struct return_value_info): New.
3534 (print_return_value): Rename to ...
3535 (print_return_value_1): ... this. New struct return_value_info
3536 parameter. Adjust.
3537 (print_return_value): Reimplement as wrapper around
3538 print_return_value_1.
3539 (struct finish_command_fsm): New.
3540 (finish_command_continuation): Delete.
3541 (finish_command_fsm_ops): New global.
3542 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3543 functions.
3544 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3545 New.
3546 (finish_command_continuation_free_arg): Delete.
3547 (finish_command_fsm_async_reply_reason): New.
3548 (finish_backward, finish_forward): Change symbol parameter to a
3549 finish_command_fsm. Adjust.
3550 (finish_command): Create a finish_command_fsm. Adjust.
3551 * infrun.c: Include "thread-fsm.h".
3552 (clear_proceed_status_thread): Delete the thread's FSM.
3553 (infrun_thread_stop_requested_callback): Cancel the thread's
3554 execution command.
3555 (clean_up_just_stopped_threads_fsms): New function.
3556 (fetch_inferior_event): Handle the event_thread's should_stop
3557 method saying the command isn't done yet.
3558 (process_event_stop_test): Run breakpoint callbacks here.
3559 (print_stop_event): Rename to ...
3560 (print_stop_location): ... this.
3561 (restore_current_uiout_cleanup): New function.
3562 (print_stop_event): Reimplement.
3563 (normal_stop): No longer notify the end_stepping_range observers
3564 here handle "step N" nor "finish" here. No longer call
3565 print_stop_event here.
3566 * infrun.h (struct return_value_info): Forward declare.
3567 (print_return_value): Declare.
3568 (print_stop_event): Change prototype.
3569 * thread-fsm.c: New file.
3570 * thread-fsm.h: New file.
3571 * thread.c: Include "thread-fsm.h".
3572 (thread_cancel_execution_command): New function.
3573 (clear_thread_inferior_resources): Call it.
3574 * cli/cli-interp.c (cli_on_normal_stop): New function.
3575 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3576 observer.
3577 * mi/mi-interp.c: Include "thread-fsm.h".
3578 (restore_current_uiout_cleanup): Delete.
3579 (mi_on_normal_stop): If the thread has an FSM associated, and it
3580 finished, ask it for the async-reply-reason to print. Always call
3581 print_stop_event here, regardless of the top-level interpreter.
3582 Check bpstat_what to tell whether an asynchronous breakpoint hit
3583 triggered.
3584 * tui/tui-interp.c (tui_on_normal_stop): New function.
3585 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3586
3587 2015-09-09 Pedro Alves <palves@redhat.com>
3588
3589 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3590 check whether the target can async.
3591 * inf-loop.c (inferior_event_handler): Only call target_async if
3592 the target can async.
3593 * infcall.c: Include top.h and interps.h.
3594 (run_inferior_call): For the interpreter to sync mode while
3595 running the infcall. Call wait_sync_command_done instead of
3596 wait_for_inferior plus normal_stop.
3597 * infcmd.c (prepare_execution_command): Don't check whether the
3598 target can async when running in the foreground.
3599 (step_1): Delete synchronous case handling.
3600 (step_once): Always install a continuation, even in sync mode.
3601 (until_next_command, finish_forward): Don't check whether the
3602 target can async.
3603 (attach_command_post_wait, notice_new_inferior): Always install a
3604 continuation, even in sync mode.
3605 * infrun.c (mark_infrun_async_event_handler): New function.
3606 (proceed): In sync mode, mark infrun's event source instead of
3607 waiting for events here.
3608 (fetch_inferior_event): If the target can't async, do a blocking
3609 wait.
3610 (prepare_to_wait): In sync mode, mark infrun's event source.
3611 (infrun_async_inferior_event_handler): No longer bail out if the
3612 target can't async.
3613 * infrun.h (mark_infrun_async_event_handler): New declaration.
3614 * linux-nat.c (linux_nat_wait_1): Remove calls to
3615 set_sigint_trap/clear_sigint_trap.
3616 (linux_nat_terminal_inferior): No longer check whether the target
3617 can async.
3618 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3619 comment.
3620 (mi_execute_command_input_handler): No longer check whether the
3621 target is async. Update and simplify comment.
3622 * target.c (default_target_wait): New function.
3623 * target.h (struct target_ops) <to_wait>: Now defaults to
3624 default_target_wait.
3625 (default_target_wait): Declare.
3626 * top.c (wait_sync_command_done): New function, factored out from
3627 ...
3628 (maybe_wait_sync_command_done): ... this.
3629 * top.h (wait_sync_command_done): Declare.
3630 * target-delegates.c: Regenerate.
3631
3632 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3633
3634 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3635 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3636 Remove include of sys/utsname.h.
3637 (linux_determine_kernel_ptr_bits): Remove.
3638 (linux_determine_kernel_start): New.
3639 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3640 Update check.
3641 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3642 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3643 initialization.
3644 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3645 assignment.
3646
3647 2015-09-07 Pedro Alves <palves@redhat.com>
3648
3649 * guile/guile-internal.h (as_a_scm_t_subr): New.
3650 * guile/guile.c (misc_guile_functions): Use it.
3651 * guile/scm-arch.c (arch_functions): Use it.
3652 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3653 Use it.
3654 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3655 * guile/scm-cmd.c (command_functions): Use it.
3656 * guile/scm-disasm.c (disasm_functions): Use it.
3657 * guile/scm-exception.c (exception_functions)
3658 (private_exception_functions): Use it.
3659 * guile/scm-frame.c (frame_functions)
3660 * guile/scm-gsmob.c (gsmob_functions): Use it.
3661 * guile/scm-iterator.c (iterator_functions): Use it.
3662 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3663 * guile/scm-math.c (math_functions): Use it.
3664 * guile/scm-objfile.c (objfile_functions): Use it.
3665 * guile/scm-param.c (parameter_functions): Use it.
3666 * guile/scm-ports.c (port_functions, private_port_functions): Use
3667 it.
3668 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3669 * guile/scm-progspace.c (pspace_functions): Use it.
3670 * guile/scm-string.c (string_functions): Use it.
3671 * guile/scm-symbol.c (symbol_functions): Use it.
3672 * guile/scm-symtab.c (symtab_functions): Use it.
3673 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3674 it.
3675 * guile/scm-value.c (value_functions): Use it.
3676
3677 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3678
3679 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3680 (tui_next_win): Likewise.
3681 (tui_prev_win): Likewise.
3682 (tui_partial_win_by_name): Likewise.
3683 (tui_init_generic_part): Likewise.
3684 (init_content_element): Likewise.
3685 (tui_del_window): Likewise.
3686 (tui_free_window): Likewise.
3687 (tui_del_data_windows): Likewise.
3688 (tui_free_data_content): Likewise.
3689 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3690 * tui/tui-regs.c (tui_show_register_group): Likewise.
3691 * tui/tui-win.c (tui_resize_all): Likewise.
3692 (tui_set_focus): Likewise.
3693 (tui_set_win_height): Likewise.
3694 (make_invisible_and_set_new_height): Likewise.
3695 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3696 * tui/tui-wingeneral.c (make_visible): Likewise.
3697
3698 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3701
3702 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3703
3704 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3705 pointer.
3706 * dbxread.c (dbx_end_psymtab): Likewise.
3707 * gnu-nat.c (gnu_write_inferior): Likewise.
3708 * mdebugread.c (cross_ref): Likewise.
3709 * p-valprint.c (pascal_val_print): Likewise.
3710 * xcoffread.c (xcoff_end_psymtab): Likewise.
3711
3712 2015-09-04 Yao Qi <yao.qi@linaro.org>
3713
3714 * NEWS: Mention the aarch64 multi-arch debugging support.
3715
3716 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3717
3718 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3719 type instead of a TYPE_CODE_INT one for the string_char_type
3720 and the ada_primitive_type_char types.
3721
3722 2015-09-03 Yao Qi <yao.qi@linaro.org>
3723
3724 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3725 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3726 aarch64_linux_region_ok_for_watchpoint.
3727 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3728 New function.
3729 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3730 Declare it.
3731
3732 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3733
3734 * gdb_obstack.h (obstack_strdup): Declare.
3735 * gdb_obstack.c (obstack_strdup): Define.
3736 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3737 * gdbarch.c: Regenerate.
3738 * gdbarch.h: Regenerate.
3739 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3740
3741 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3742
3743 * gdbtypes.c (copy_type_recursive): Update documentation.
3744
3745 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3746
3747 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3748 as zero.
3749
3750 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3751
3752 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3753
3754 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3755
3756 * solib-svr4.c (solib_event_probe_action): Call
3757 get_probe_argument_count using TRY...CATCH.
3758 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3759
3760 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3761
3762 * probe.h (struct probe_ops) <get_probe_argument_count,
3763 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3764 the comment that the function can throw an exception.
3765 (get_probe_argument_count): Likewise.
3766 (evaluate_probe_argument): Likewise.
3767 * stap-probe.c (stap_get_opcode): Call error instead of
3768 internal_error.
3769 (stap_get_expected_argument_type): Likewise. Add argument
3770 'probe'. Improve error message by mentioning the probe's name.
3771 (stap_parse_probe_arguments): Adjust call to
3772 stap_get_expected_argument_type.
3773 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3774 not zero. Call internal_error if GDB requests an argument but the
3775 probe has no arguments.
3776
3777 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3778
3779 * ada-lang.c (ada_resolve_function): Do not ask the user what
3780 match to use when in completion mode.
3781
3782 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3783
3784 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3785 cast of NULL.
3786
3787 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3788
3789 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3790 call_abi using XSHAL_ABI macro.
3791
3792 2015-08-29 Doug Evans <xdje42@gmail.com>
3793
3794 * symtab.h (struct symbol): Tweak comment.
3795
3796 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3797
3798 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3799 gdbarch obstack instead of on the heap. Update commentary
3800 accordingly.
3801
3802 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3803
3804 GDB 7.10 released.
3805
3806 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3807
3808 * NEWS: Update entry about non-8-bits addressable memory.
3809
3810 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3811
3812 Revert:
3813 2014-11-06 Doug Evans <xdje42@gmail.com>
3814 * solib.c (solib_global_lookup): Fetch arch from objfile,
3815 not target_gdbarch.
3816
3817 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3818
3819 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3820 attempt to relocate a TLS variable offset.
3821
3822 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3823
3824 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3825 registered yet. Set inferior_ptid while calling target_read_memory.
3826
3827 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3828
3829 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3830 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3831 * linux-nat.c (check_stopped_by_breakpoint): Use
3832 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3833
3834 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3835
3836 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3837 thread was not yet discovered, use thread_from_lwp instead of
3838 calling thread_db_find_new_threads_1.
3839
3840 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3841
3842 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3843 statements.
3844
3845 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3846
3847 * NEWS: Document support for non-8-bits addressable memory.
3848
3849 2015-08-27 Pedro Alves <palves@redhat.com>
3850
3851 * configure.ac: Remove AC_TYPE_SIGNAL call.
3852 * configure, config.in: Regenerate.
3853
3854 2015-08-27 Pedro Alves <palves@redhat.com>
3855
3856 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3857 * extension-priv.h: Include signal.h.
3858 (struct signal_handler) <handler>: Change type to sighandler_t.
3859 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3860 * inflow.c (sigint_ours, sigquit_ours): Change type to
3861 sighandler_t.
3862 (child_terminal_inferior): Remove casts.
3863 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3864 (osig): Change type to sighandler_t.
3865 * nto-procfs.c (ofunc): Change type to sighandler_t.
3866 (procfs_wait): Remove casts.
3867 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3868 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3869 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3870
3871 2015-08-27 Pedro Alves <palves@redhat.com>
3872
3873 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3874 * gnulib/aclocal.m4: Renegerate.
3875 * gnulib/config.in: Renegerate.
3876 * gnulib/configure: Renegerate.
3877 * gnulib/import/Makefile.am: Update.
3878 * gnulib/import/Makefile.in: Regenerate.
3879 * gnulib/import/m4/gnulib-cache.m4: Update.
3880 * gnulib/import/m4/gnulib-comp.m4: Update.
3881 * gnulib/import/m4/signal_h.m4: New file.
3882 * gnulib/import/signal.in.h: New file.
3883
3884 2015-08-27 Pedro Alves <palves@redhat.com>
3885
3886 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3887 (MIN_MEMORY_PACKET_SIZE): New.
3888 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3889 (get_memory_packet_size): Adjust. No longer limit the max packet
3890 size.
3891 (set_memory_packet_size): Adjust, and remove dead code.
3892 (remote_check_symbols): Use xmalloc and a cleanup instead of
3893 alloca.
3894 (remote_packet_size): No longer cap the packet size.
3895 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3896
3897 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3898
3899 * compile/compile.c (compile_to_object): Mention language in
3900 error message.
3901
3902 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3903
3904 * target.c (target_pre_inferior): Unset attach_flag.
3905
3906 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3907
3908 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3909 * gdbarch.c: Re-generate.
3910
3911 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3912
3913 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3914 function with the XNEW-family equivalent.
3915 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3916 * ada-exp.y (write_ambiguous_var): Likewise.
3917 * ada-lang.c (resolve_subexp): Likewise.
3918 (user_select_syms): Likewise.
3919 (assign_aggregate): Likewise.
3920 (ada_evaluate_subexp): Likewise.
3921 (cache_symbol): Likewise.
3922 * addrmap.c (allocate_key): Likewise.
3923 (addrmap_create_mutable): Likewise.
3924 * aix-thread.c (sync_threadlists): Likewise.
3925 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3926 (alpha_gdbarch_init): Likewise.
3927 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3928 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3929 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3930 * arm-tdep.c (push_stack_item): Likewise.
3931 (arm_displaced_step_copy_insn): Likewise.
3932 (arm_gdbarch_init): Likewise.
3933 (_initialize_arm_tdep): Likewise.
3934 * avr-tdep.c (push_stack_item): Likewise.
3935 * ax-general.c (new_agent_expr): Likewise.
3936 * block.c (block_initialize_namespace): Likewise.
3937 * breakpoint.c (alloc_counted_command_line): Likewise.
3938 (update_dprintf_command_list): Likewise.
3939 (parse_breakpoint_sals): Likewise.
3940 (decode_static_tracepoint_spec): Likewise.
3941 (until_break_command): Likewise.
3942 (clear_command): Likewise.
3943 (update_global_location_list): Likewise.
3944 (get_breakpoint_objfile_data) Likewise.
3945 * btrace.c (ftrace_new_function): Likewise.
3946 (btrace_set_insn_history): Likewise.
3947 (btrace_set_call_history): Likewise.
3948 * buildsym.c (add_symbol_to_list): Likewise.
3949 (record_pending_block): Likewise.
3950 (start_subfile): Likewise.
3951 (start_buildsym_compunit): Likewise.
3952 (push_subfile): Likewise.
3953 (end_symtab_get_static_block): Likewise.
3954 (buildsym_init): Likewise.
3955 * cli/cli-cmds.c (source_command): Likewise.
3956 * cli/cli-decode.c (add_cmd): Likewise.
3957 * cli/cli-script.c (build_command_line): Likewise.
3958 (setup_user_args): Likewise.
3959 (realloc_body_list): Likewise.
3960 (process_next_line): Likewise.
3961 (copy_command_lines): Likewise.
3962 * cli/cli-setshow.c (do_set_command): Likewise.
3963 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3964 * coffread.c (coff_locate_sections): Likewise.
3965 (coff_symtab_read): Likewise.
3966 (coff_read_struct_type): Likewise.
3967 * common/cleanups.c (make_my_cleanup2): Likewise.
3968 * common/common-exceptions.c (throw_it): Likewise.
3969 * common/filestuff.c (make_cleanup_close): Likewise.
3970 * common/format.c (parse_format_string): Likewise.
3971 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3972 * compile/compile-object-load.c (munmap_list_add): Likewise.
3973 (compile_object_load): Likewise.
3974 * compile/compile-object-run.c (compile_object_run): Likewise.
3975 * compile/compile.c (append_args): Likewise.
3976 * corefile.c (specify_exec_file_hook): Likewise.
3977 * cp-support.c (make_symbol_overload_list): Likewise.
3978 * cris-tdep.c (push_stack_item): Likewise.
3979 (cris_gdbarch_init): Likewise.
3980 * ctf.c (ctf_trace_file_writer_new): Likewise.
3981 * dbxread.c (init_header_files): Likewise.
3982 (add_new_header_file): Likewise.
3983 (init_bincl_list): Likewise.
3984 (dbx_end_psymtab): Likewise.
3985 (start_psymtab): Likewise.
3986 (dbx_end_psymtab): Likewise.
3987 * dcache.c (dcache_init): Likewise.
3988 * dictionary.c (dict_create_hashed): Likewise.
3989 (dict_create_hashed_expandable): Likewise.
3990 (dict_create_linear): Likewise.
3991 (dict_create_linear_expandable): Likewise.
3992 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3993 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3994 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3995 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3996 (decode_frame_entry_1): Likewise.
3997 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3998 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3999 * dwarf2read.c (dwarf2_has_info): Likewise.
4000 (create_signatured_type_table_from_index): Likewise.
4001 (dwarf2_read_index): Likewise.
4002 (dw2_get_file_names_reader): Likewise.
4003 (create_all_type_units): Likewise.
4004 (read_cutu_die_from_dwo): Likewise.
4005 (init_tu_and_read_dwo_dies): Likewise.
4006 (init_cutu_and_read_dies): Likewise.
4007 (create_all_comp_units): Likewise.
4008 (queue_comp_unit): Likewise.
4009 (inherit_abstract_dies): Likewise.
4010 (read_call_site_scope): Likewise.
4011 (dwarf2_add_field): Likewise.
4012 (dwarf2_add_typedef): Likewise.
4013 (dwarf2_add_member_fn): Likewise.
4014 (attr_to_dynamic_prop): Likewise.
4015 (abbrev_table_alloc_abbrev): Likewise.
4016 (abbrev_table_read_table): Likewise.
4017 (add_include_dir): Likewise.
4018 (add_file_name): Likewise.
4019 (dwarf_decode_line_header): Likewise.
4020 (dwarf2_const_value_attr): Likewise.
4021 (dwarf_alloc_block): Likewise.
4022 (parse_macro_definition): Likewise.
4023 (set_die_type): Likewise.
4024 (write_psymtabs_to_index): Likewise.
4025 (create_cus_from_index): Likewise.
4026 (dwarf2_create_include_psymtab): Likewise.
4027 (process_psymtab_comp_unit_reader): Likewise.
4028 (build_type_psymtab_dependencies): Likewise.
4029 (read_comp_units_from_section): Likewise.
4030 (compute_compunit_symtab_includes): Likewise.
4031 (create_dwo_unit_in_dwp_v1): Likewise.
4032 (create_dwo_unit_in_dwp_v2): Likewise.
4033 (read_func_scope): Likewise.
4034 (process_structure_scope): Likewise.
4035 (mark_common_block_symbol_computed): Likewise.
4036 (load_partial_dies): Likewise.
4037 (dwarf2_symbol_mark_computed): Likewise.
4038 * elfread.c (elf_symfile_segments): Likewise.
4039 (elf_read_minimal_symbols): Likewise.
4040 * environ.c (make_environ): Likewise.
4041 * eval.c (evaluate_subexp_standard): Likewise.
4042 * event-loop.c (create_file_handler): Likewise.
4043 (create_async_signal_handler): Likewise.
4044 (create_async_event_handler): Likewise.
4045 (create_timer): Likewise.
4046 * exec.c (build_section_table): Likewise.
4047 * fbsd-nat.c (fbsd_remember_child): Likewise.
4048 * fork-child.c (fork_inferior): Likewise.
4049 * frv-tdep.c (new_variant): Likewise.
4050 * gdbarch.sh (gdbarch_alloc): Likewise.
4051 (append_name): Likewise.
4052 * gdbtypes.c (rank_function): Likewise.
4053 (copy_type_recursive): Likewise.
4054 (add_dyn_prop): Likewise.
4055 * gnu-nat.c (make_proc): Likewise.
4056 (make_inf): Likewise.
4057 (gnu_write_inferior): Likewise.
4058 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4059 (build_std_type_info_type): Likewise.
4060 * guile/scm-param.c (compute_enum_list): Likewise.
4061 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4062 * guile/scm-value.c (gdbscm_value_call): Likewise.
4063 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4064 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4065 (read_unwind_info): Likewise.
4066 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4067 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4068 (call_function_by_hand_dummy): Likewise.
4069 * infcmd.c (step_once): Likewise.
4070 (finish_forward): Likewise.
4071 (attach_command): Likewise.
4072 (notice_new_inferior): Likewise.
4073 * inferior.c (add_inferior_silent): Likewise.
4074 * infrun.c (add_displaced_stepping_state): Likewise.
4075 (save_infcall_control_state): Likewise.
4076 (save_inferior_ptid): Likewise.
4077 (_initialize_infrun): Likewise.
4078 * jit.c (bfd_open_from_target_memory): Likewise.
4079 (jit_gdbarch_data_init): Likewise.
4080 * language.c (add_language): Likewise.
4081 * linespec.c (decode_line_2): Likewise.
4082 * linux-nat.c (add_to_pid_list): Likewise.
4083 (add_initial_lwp): Likewise.
4084 * linux-thread-db.c (add_thread_db_info): Likewise.
4085 (record_thread): Likewise.
4086 (info_auto_load_libthread_db): Likewise.
4087 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4089 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4090 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4091 * macrocmd.c (macro_define_command): Likewise.
4092 * macroexp.c (gather_arguments): Likewise.
4093 * macroscope.c (sal_macro_scope): Likewise.
4094 * macrotab.c (new_macro_table): Likewise.
4095 * mdebugread.c (push_parse_stack): Likewise.
4096 (parse_partial_symbols): Likewise.
4097 (parse_symbol): Likewise.
4098 (psymtab_to_symtab_1): Likewise.
4099 (new_block): Likewise.
4100 (new_psymtab): Likewise.
4101 (mdebug_build_psymtabs): Likewise.
4102 (add_pending): Likewise.
4103 (elfmdebug_build_psymtabs): Likewise.
4104 * mep-tdep.c (mep_gdbarch_init): Likewise.
4105 * mi/mi-main.c (mi_execute_command): Likewise.
4106 * mi/mi-parse.c (mi_parse_argv): Likewise.
4107 * minidebug.c (lzma_open): Likewise.
4108 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4109 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4110 * mips-tdep.c (mips_gdbarch_init): Likewise.
4111 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4112 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4113 * mt-tdep.c (mt_registers_info): Likewise.
4114 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4115 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4116 (linux_enable_pt): Likewise.
4117 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4118 (linux_xfer_osdata_processgroups): Likewise.
4119 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4120 * nto-procfs.c (procfs_meminfo): Likewise.
4121 * objc-lang.c (start_msglist): Likewise.
4122 (selectors_info): Likewise.
4123 (classes_info): Likewise.
4124 (find_methods): Likewise.
4125 * objfiles.c (allocate_objfile): Likewise.
4126 (update_section_map): Likewise.
4127 * osabi.c (gdbarch_register_osabi): Likewise.
4128 (gdbarch_register_osabi_sniffer): Likewise.
4129 * parse.c (start_arglist): Likewise.
4130 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4131 (hwdebug_insert_point): Likewise.
4132 * printcmd.c (display_command): Likewise.
4133 (ui_printf): Likewise.
4134 * procfs.c (create_procinfo): Likewise.
4135 (load_syscalls): Likewise.
4136 (proc_get_LDT_entry): Likewise.
4137 (proc_update_threads): Likewise.
4138 * prologue-value.c (make_pv_area): Likewise.
4139 (pv_area_store): Likewise.
4140 * psymtab.c (extend_psymbol_list): Likewise.
4141 (init_psymbol_list): Likewise.
4142 (allocate_psymtab): Likewise.
4143 * python/py-inferior.c (add_thread_object): Likewise.
4144 * python/py-param.c (compute_enum_values): Likewise.
4145 * python/py-value.c (valpy_call): Likewise.
4146 * python/py-varobj.c (py_varobj_iter_next): Likewise.
4147 * python/python.c (ensure_python_env): Likewise.
4148 * record-btrace.c (record_btrace_start_replaying): Likewise.
4149 * record-full.c (record_full_reg_alloc): Likewise.
4150 (record_full_mem_alloc): Likewise.
4151 (record_full_end_alloc): Likewise.
4152 (record_full_core_xfer_partial): Likewise.
4153 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
4154 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
4155 * remote-notif.c (remote_notif_state_allocate): Likewise.
4156 * remote.c (demand_private_info): Likewise.
4157 (remote_notif_stop_alloc_reply): Likewise.
4158 (remote_enable_btrace): Likewise.
4159 * reverse.c (save_bookmark_command): Likewise.
4160 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4161 * rx-tdep.c (rx_gdbarch_init): Likewise.
4162 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4163 * ser-go32.c (dos_get_tty_state): Likewise.
4164 (dos_copy_tty_state): Likewise.
4165 * ser-mingw.c (ser_windows_open): Likewise.
4166 (ser_console_wait_handle): Likewise.
4167 (ser_console_get_tty_state): Likewise.
4168 (make_pipe_state): Likewise.
4169 (net_windows_open): Likewise.
4170 * ser-unix.c (hardwire_get_tty_state): Likewise.
4171 (hardwire_copy_tty_state): Likewise.
4172 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4173 * solib-dsbt.c (dsbt_current_sos): Likewise.
4174 (dsbt_relocate_main_executable): Likewise.
4175 * solib-frv.c (frv_current_sos): Likewise.
4176 (frv_relocate_main_executable): Likewise.
4177 * solib-spu.c (spu_bfd_fopen): Likewise.
4178 * solib-svr4.c (lm_info_read): Likewise.
4179 (svr4_copy_library_list): Likewise.
4180 (svr4_default_sos): Likewise.
4181 * source.c (find_source_lines): Likewise.
4182 (line_info): Likewise.
4183 (add_substitute_path_rule): Likewise.
4184 * spu-linux-nat.c (spu_bfd_open): Likewise.
4185 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4186 * stabsread.c (dbx_lookup_type): Likewise.
4187 (read_type): Likewise.
4188 (read_member_functions): Likewise.
4189 (read_struct_fields): Likewise.
4190 (read_baseclasses): Likewise.
4191 (read_args): Likewise.
4192 (_initialize_stabsread): Likewise.
4193 * stack.c (func_command): Likewise.
4194 * stap-probe.c (handle_stap_probe): Likewise.
4195 * symfile.c (addrs_section_sort): Likewise.
4196 (addr_info_make_relative): Likewise.
4197 (load_section_callback): Likewise.
4198 (add_symbol_file_command): Likewise.
4199 (init_filename_language_table): Likewise.
4200 * symtab.c (create_filename_seen_cache): Likewise.
4201 (sort_search_symbols_remove_dups): Likewise.
4202 (search_symbols): Likewise.
4203 * target.c (make_cleanup_restore_target_terminal): Likewise.
4204 * thread.c (new_thread): Likewise.
4205 (enable_thread_stack_temporaries): Likewise.
4206 (make_cleanup_restore_current_thread): Likewise.
4207 (thread_apply_all_command): Likewise.
4208 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4209 * top.c (gdb_readline_wrapper): Likewise.
4210 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4211 * tracepoint.c (trace_find_line_command): Likewise.
4212 (all_tracepoint_actions_and_cleanup): Likewise.
4213 (make_cleanup_restore_current_traceframe): Likewise.
4214 (get_uploaded_tp): Likewise.
4215 (get_uploaded_tsv): Likewise.
4216 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4217 (tui_alloc_win_info): Likewise.
4218 (tui_alloc_content): Likewise.
4219 (tui_add_content_elements): Likewise.
4220 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4221 (tui_set_disassem_content): Likewise.
4222 * ui-file.c (ui_file_new): Likewise.
4223 (stdio_file_new): Likewise.
4224 (tee_file_new): Likewise.
4225 * utils.c (make_cleanup_restore_integer): Likewise.
4226 (add_internal_problem_command): Likewise.
4227 * v850-tdep.c (v850_gdbarch_init): Likewise.
4228 * valops.c (find_oload_champ): Likewise.
4229 * value.c (allocate_value_lazy): Likewise.
4230 (record_latest_value): Likewise.
4231 (create_internalvar): Likewise.
4232 * varobj.c (install_variable): Likewise.
4233 (new_variable): Likewise.
4234 (new_root_variable): Likewise.
4235 (cppush): Likewise.
4236 (_initialize_varobj): Likewise.
4237 * windows-nat.c (windows_make_so): Likewise.
4238 * x86-nat.c (x86_add_process): Likewise.
4239 * xcoffread.c (arrange_linetable): Likewise.
4240 (allocate_include_entry): Likewise.
4241 (process_linenos): Likewise.
4242 (SYMBOL_DUP): Likewise.
4243 (xcoff_start_psymtab): Likewise.
4244 (xcoff_end_psymtab): Likewise.
4245 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4246 * xtensa-tdep.c (xtensa_register_type): Likewise.
4247 * gdbarch.c: Regenerate.
4248 * gdbarch.h: Regenerate.
4249
4250 2015-08-25 Don Breazeal <donb@codesourcery.com>
4251
4252 * infrun.c (follow_exec): Re-order operations for
4253 handling follow-exec-mode "new".
4254 (handle_inferior_event_1): Assign ecs->event_thread
4255 to the current thread.
4256 * remote.c (get_remote_arch_state): Add an assertion.
4257
4258 2015-08-26 Pedro Alves <palves@redhat.com>
4259
4260 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4261
4262 2015-08-25 Pedro Alves <palves@redhat.com>
4263
4264 PR gdb/18804
4265 * defs.h (maybe_quit): Declare.
4266 (QUIT): Now calls maybe_quit.
4267 * event-loop.c (clear_async_signal_handler)
4268 (async_signal_handler_is_marked): New functions.
4269 * event-loop.h (async_signal_handler_is_marked)
4270 (clear_async_signal_handler): New declarations.
4271 * remote.c (remote_check_pending_interrupt): New function.
4272 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4273 longer check whether the target is async. If waiting for a stop
4274 reply, and a Ctrl-C as been sent to the target, offer to
4275 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4276 Otherwise do not disconnect and throw a quit.
4277 (_initialize_remote): Install remote_check_pending_interrupt as
4278 to_check_pending_interrupt.
4279 * target.c (target_check_pending_interrupt): New function.
4280 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4281 field.
4282 (target_check_pending_interrupt): New declaration.
4283 * utils.c (maybe_quit): New function.
4284 * target-delegates.c: Regenerate.
4285
4286 2015-08-25 Yao Qi <yao.qi@linaro.org>
4287
4288 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4289 Rename local variable pid to tid, and get lwpid of lwp. Update
4290 debug output.
4291
4292 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4293
4294 * ada-lang.c (ada_read_var_value): Add a var_block argument
4295 and pass it to default_read_var_value.
4296 * block.c (block_static_link): New accessor.
4297 * block.h (block_static_link): Declare it.
4298 * buildsym.c (finish_block_internal): Add a static_link
4299 argument. If there is a static link, associate it to the new
4300 block.
4301 (finish_block): Add a static link argument and pass it to
4302 finish_block_internal.
4303 (end_symtab_get_static_block): Update calls to finish_block and
4304 to finish_block_internal.
4305 (end_symtab_with_blockvector): Update call to
4306 finish_block_internal.
4307 * buildsym.h: Forward-declare struct dynamic_prop.
4308 (struct context_stack): Add a static_link field.
4309 (finish_block): Add a static link argument.
4310 * c-exp.y: Remove an obsolete comment (evaluation of variables
4311 already start from the selected frame, and now they climb *up*
4312 the call stack) and propagate the block information to the
4313 produced expression.
4314 * d-exp.y: Likewise.
4315 * f-exp.y: Likewise.
4316 * go-exp.y: Likewise.
4317 * jv-exp.y: Likewise.
4318 * m2-exp.y: Likewise.
4319 * p-exp.y: Likewise.
4320 * coffread.c (coff_symtab_read): Update calls to finish_block.
4321 * dbxread.c (process_one_symbol): Likewise.
4322 * xcoffread.c (read_xcoff_symtab): Likewise.
4323 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4324 "sym" parameter to struct block_symbol, update its uses and pass
4325 its block to calls to read_var_value.
4326 (convert_symbol_sym): Update the calls to convert_one_symbol.
4327 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4328 call to read_var_value.
4329 * dwarf2loc.c (block_op_get_frame_base): New.
4330 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4331 get_frame_base method.
4332 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4333 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4334 instead of the selected frame in order to evaluate the
4335 expression.
4336 (dwarf2_evaluate_property): Add a frame argument. Update call
4337 to dwarf2_locexpr_baton_eval to provide a frame in available and
4338 to handle the absence of address stack.
4339 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4340 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4341 declaration.
4342 (read_func_scope): Record any available static link description.
4343 Update call to finish_block.
4344 (read_lexical_block_scope): Update call to finish_block.
4345 * findvar.c (follow_static_link): New.
4346 (get_hosting_frame): New.
4347 (default_read_var_value): Add a var_block argument. Use
4348 get_hosting_frame to handle non-local references.
4349 (read_var_value): Add a var_block argument and pass it to the
4350 LA_READ_VAR_VALUE method.
4351 * gdbtypes.c (resolve_dynamic_range): Update calls to
4352 dwarf2_evaluate_property.
4353 (resolve_dynamic_type_internal): Likewise.
4354 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4355 read_var_value, passing it the block coming from symbol lookup.
4356 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4357 read_var_value (TODO).
4358 * infcmd.c (finish_command_continuation): Update call to
4359 read_var_value, passing it the block coming from symbol lookup.
4360 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4361 * language.h (struct language_defn): Add a var_block argument to
4362 the LA_READ_VAR_VALUE method.
4363 * objfiles.c (struct static_link_htab_entry): New.
4364 (static_link_htab_entry_hash): New.
4365 (static_link_htab_entry_eq): New.
4366 (objfile_register_static_link): New.
4367 (objfile_lookup_static_link): New.
4368 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4369 * objfiles.h: Include hashtab.h.
4370 (struct objfile): Add a static_links field.
4371 (objfile_register_static_link): New.
4372 (objfile_lookup_static_link): New.
4373 * printcmd.c (print_variable_and_value): Update call to
4374 read_var_value.
4375 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4376 * python/py-frame.c (frapy_read_var): Update call to
4377 read_var_value, passing it the block coming from symbol lookup.
4378 * python/py-framefilter.c (extract_sym): Add a sym_block
4379 parameter and set the pointed value to NULL (TODO).
4380 (enumerate_args): Update call to extract_sym.
4381 (enumerate_locals): Update calls to extract_sym and to
4382 read_var_value.
4383 * python/py-symbol.c (sympy_value): Update call to
4384 read_var_value (TODO).
4385 * stack.c (read_frame_local): Update call to read_var_value.
4386 (read_frame_arg): Likewise.
4387 (return_command): Likewise.
4388 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4389 method.
4390 (struct symbol): Add a block field.
4391 (SYMBOL_BLOCK): New accessor.
4392 * valops.c (value_of_variable): Remove frame/block handling and
4393 pass the block argument to read_var_value, which does this job
4394 now.
4395 (value_struct_elt_for_reference): Update calls to
4396 read_var_value.
4397 (value_of_this): Pass the block found to read_var_value.
4398 * value.h (read_var_value): Add a var_block argument.
4399 (default_read_var_value): Likewise.
4400
4401 2015-08-25 Yao Qi <yao.qi@linaro.org>
4402
4403 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4404 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4405 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4406
4407 2015-08-25 Yao Qi <yao.qi@linaro.org>
4408
4409 * Makefile.in (aarch64-liunx.o): New rule.
4410 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4411 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4412 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4413 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4414 extern.
4415 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4416 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4417 * nat/aarch64-linux.c: New file.
4418 * nat/aarch64-linux.h: New file.
4419
4420 2015-08-25 Yao Qi <yao.qi@linaro.org>
4421
4422 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4423 lwp_arch_private_info and ptid_of_lwp.
4424
4425 2015-08-25 Yao Qi <yao.qi@linaro.org>
4426
4427 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4428 Move it to nat/aarch64-linux-hw-point.c.
4429 (debug_reg_change_callback): Likewise.
4430 (aarch64_notify_debug_reg_change): :Likewise.
4431 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4432 (aarch64_dr_update_callback_param): New.
4433 (debug_reg_change_callback): New function.
4434 (aarch64_notify_debug_reg_change): Likewise.
4435 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4436 Remove the declaration.
4437
4438 2015-08-25 Yao Qi <yao.qi@linaro.org>
4439
4440 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4441 Call current_lwp_ptid.
4442
4443 2015-08-25 Yao Qi <yao.qi@linaro.org>
4444
4445 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4446 debug_printf.
4447
4448 2015-08-25 Yao Qi <yao.qi@linaro.org>
4449
4450 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4451 ptid_get_pid rather than ptid_get_lwp.
4452
4453 2015-08-24 Pedro Alves <palves@redhat.com>
4454
4455 * NEWS (New commands): Mention set/show remote
4456 multiprocess-extensions-packet.
4457 * remote.c (remote_query_supported): Only tell the server to use
4458 the multiprocess extensions if the user hasn't force-disabled them
4459 with "set remote multiprocess-extensions-packet off".
4460
4461 2015-08-24 Pedro Alves <palves@redhat.com>
4462
4463 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4464 1029a8112290f6eee9d7878a391c49db42c999bd.
4465 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4466 Regenerate.
4467 * gnulib/import/Makefile.am: Update.
4468 * gnulib/import/Makefile.in: Update.
4469 * gnulib/import/alloca.in.h: Update.
4470 * gnulib/import/basename-lgpl.c: Update.
4471 * gnulib/import/canonicalize-lgpl.c: Update.
4472 * gnulib/import/config.charset: Update.
4473 * gnulib/import/dirent.in.h: Update.
4474 * gnulib/import/dirfd.c: Update.
4475 * gnulib/import/dirname-lgpl.c: Update.
4476 * gnulib/import/dirname.h: Update.
4477 * gnulib/import/dosname.h: Update.
4478 * gnulib/import/errno.in.h: Update.
4479 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4480 * gnulib/import/extra/snippet/c++defs.h: Update.
4481 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4482 * gnulib/import/extra/update-copyright: Update.
4483 * gnulib/import/float+.h: Update.
4484 * gnulib/import/float.c: Update.
4485 * gnulib/import/float.in.h: Update.
4486 * gnulib/import/fnmatch.c: Update.
4487 * gnulib/import/fnmatch.in.h: Update.
4488 * gnulib/import/fnmatch_loop.c: Update.
4489 * gnulib/import/fpucw.h: Update.
4490 * gnulib/import/frexp.c: Update.
4491 * gnulib/import/frexpl.c: Update.
4492 * gnulib/import/gettimeofday.c: Update.
4493 * gnulib/import/inttypes.in.h: Update.
4494 * gnulib/import/isnan.c: Update.
4495 * gnulib/import/isnand-nolibm.h: Update.
4496 * gnulib/import/isnand.c: Update.
4497 * gnulib/import/isnanl-nolibm.h: Update.
4498 * gnulib/import/isnanl.c: Update.
4499 * gnulib/import/itold.c: Update.
4500 * gnulib/import/localcharset.c: Update.
4501 * gnulib/import/localcharset.h: Update.
4502 * gnulib/import/lstat.c: Update.
4503 * gnulib/import/m4/00gnulib.m4: Update.
4504 * gnulib/import/m4/absolute-header.m4: Update.
4505 * gnulib/import/m4/alloca.m4: Update.
4506 * gnulib/import/m4/canonicalize.m4: Update.
4507 * gnulib/import/m4/codeset.m4: Update.
4508 * gnulib/import/m4/configmake.m4: Update.
4509 * gnulib/import/m4/dirent_h.m4: Update.
4510 * gnulib/import/m4/dirfd.m4: Update.
4511 * gnulib/import/m4/dirname.m4: Update.
4512 * gnulib/import/m4/double-slash-root.m4: Update.
4513 * gnulib/import/m4/eealloc.m4: Update.
4514 * gnulib/import/m4/errno_h.m4: Update.
4515 * gnulib/import/m4/exponentd.m4: Update.
4516 * gnulib/import/m4/exponentl.m4: Update.
4517 * gnulib/import/m4/extensions.m4: Update.
4518 * gnulib/import/m4/extern-inline.m4: Update.
4519 * gnulib/import/m4/fcntl-o.m4: Update.
4520 * gnulib/import/m4/float_h.m4: Update.
4521 * gnulib/import/m4/fnmatch.m4: Update.
4522 * gnulib/import/m4/fpieee.m4: Update.
4523 * gnulib/import/m4/frexp.m4: Update.
4524 * gnulib/import/m4/frexpl.m4: Update.
4525 * gnulib/import/m4/gettimeofday.m4: Update.
4526 * gnulib/import/m4/glibc21.m4: Update.
4527 * gnulib/import/m4/gnulib-cache.m4: Update.
4528 * gnulib/import/m4/gnulib-common.m4: Update.
4529 * gnulib/import/m4/gnulib-comp.m4: Update.
4530 * gnulib/import/m4/gnulib-tool.m4: Update.
4531 * gnulib/import/m4/include_next.m4: Update.
4532 * gnulib/import/m4/inttypes-pri.m4: Update.
4533 * gnulib/import/m4/inttypes.m4: Update.
4534 * gnulib/import/m4/isnand.m4: Update.
4535 * gnulib/import/m4/isnanl.m4: Update.
4536 * gnulib/import/m4/largefile.m4: Update.
4537 * gnulib/import/m4/localcharset.m4: Update.
4538 * gnulib/import/m4/locale-fr.m4: Update.
4539 * gnulib/import/m4/locale-ja.m4: Update.
4540 * gnulib/import/m4/locale-zh.m4: Update.
4541 * gnulib/import/m4/longlong.m4: Update.
4542 * gnulib/import/m4/lstat.m4: Update.
4543 * gnulib/import/m4/malloc.m4: Update.
4544 * gnulib/import/m4/malloca.m4: Update.
4545 * gnulib/import/m4/math_h.m4: Update.
4546 * gnulib/import/m4/mbrtowc.m4: Update.
4547 * gnulib/import/m4/mbsinit.m4: Update.
4548 * gnulib/import/m4/mbsrtowcs.m4: Update.
4549 * gnulib/import/m4/mbstate_t.m4: Update.
4550 * gnulib/import/m4/memchr.m4: Update.
4551 * gnulib/import/m4/memmem.m4: Update.
4552 * gnulib/import/m4/mmap-anon.m4: Update.
4553 * gnulib/import/m4/multiarch.m4: Update.
4554 * gnulib/import/m4/nocrash.m4: Update.
4555 * gnulib/import/m4/off_t.m4: Update.
4556 * gnulib/import/m4/pathmax.m4: Update.
4557 * gnulib/import/m4/readlink.m4: Update.
4558 * gnulib/import/m4/rename.m4: Update.
4559 * gnulib/import/m4/rmdir.m4: Update.
4560 * gnulib/import/m4/ssize_t.m4: Update.
4561 * gnulib/import/m4/stat.m4: Update.
4562 * gnulib/import/m4/stdbool.m4: Update.
4563 * gnulib/import/m4/stddef_h.m4: Update.
4564 * gnulib/import/m4/stdint.m4: Update.
4565 * gnulib/import/m4/stdio_h.m4: Update.
4566 * gnulib/import/m4/stdlib_h.m4: Update.
4567 * gnulib/import/m4/string_h.m4: Update.
4568 * gnulib/import/m4/strstr.m4: Update.
4569 * gnulib/import/m4/strtok_r.m4: Update.
4570 * gnulib/import/m4/sys_socket_h.m4: Update.
4571 * gnulib/import/m4/sys_stat_h.m4: Update.
4572 * gnulib/import/m4/sys_time_h.m4: Update.
4573 * gnulib/import/m4/sys_types_h.m4: Update.
4574 * gnulib/import/m4/time_h.m4: Update.
4575 * gnulib/import/m4/unistd_h.m4: Update.
4576 * gnulib/import/m4/warn-on-use.m4: Update.
4577 * gnulib/import/m4/wchar_h.m4: Update.
4578 * gnulib/import/m4/wchar_t.m4: Update.
4579 * gnulib/import/m4/wctype_h.m4: Update.
4580 * gnulib/import/m4/wint_t.m4: Update.
4581 * gnulib/import/malloc.c: Update.
4582 * gnulib/import/malloca.c: Update.
4583 * gnulib/import/malloca.h: Update.
4584 * gnulib/import/math.in.h: Update.
4585 * gnulib/import/mbrtowc.c: Update.
4586 * gnulib/import/mbsinit.c: Update.
4587 * gnulib/import/mbsrtowcs-impl.h: Update.
4588 * gnulib/import/mbsrtowcs-state.c: Update.
4589 * gnulib/import/mbsrtowcs.c: Update.
4590 * gnulib/import/memchr.c: Update.
4591 * gnulib/import/memmem.c: Update.
4592 * gnulib/import/pathmax.h: Update.
4593 * gnulib/import/readlink.c: Update.
4594 * gnulib/import/ref-add.sin: Update.
4595 * gnulib/import/ref-del.sin: Update.
4596 * gnulib/import/rename.c: Update.
4597 * gnulib/import/rmdir.c: Update.
4598 * gnulib/import/same-inode.h: Update.
4599 * gnulib/import/stat.c: Update.
4600 * gnulib/import/stdbool.in.h: Update.
4601 * gnulib/import/stddef.in.h: Update.
4602 * gnulib/import/stdint.in.h: Update.
4603 * gnulib/import/stdio.c: Update.
4604 * gnulib/import/stdio.in.h: Update.
4605 * gnulib/import/stdlib.in.h: Update.
4606 * gnulib/import/str-two-way.h: Update.
4607 * gnulib/import/streq.h: Update.
4608 * gnulib/import/string.in.h: Update.
4609 * gnulib/import/stripslash.c: Update.
4610 * gnulib/import/strnlen1.c: Update.
4611 * gnulib/import/strnlen1.h: Update.
4612 * gnulib/import/strstr.c: Update.
4613 * gnulib/import/strtok_r.c: Update.
4614 * gnulib/import/sys_stat.in.h: Update.
4615 * gnulib/import/sys_time.in.h: Update.
4616 * gnulib/import/sys_types.in.h: Update.
4617 * gnulib/import/time.in.h: Update.
4618 * gnulib/import/unistd.in.h: Update.
4619 * gnulib/import/verify.h: Update.
4620 * gnulib/import/wchar.in.h: Update.
4621 * gnulib/import/wctype.in.h: Update.
4622 * gnulib/import/gettimeofday.c: New file.
4623 * gnulib/import/m4/absolute-header.m4: New file.
4624 * gnulib/import/m4/gettimeofday.m4: New file.
4625 * gnulib/import/m4/sys_socket_h.m4: New file.
4626 * gnulib/import/m4/sys_time_h.m4: New file.
4627 * gnulib/import/stdio.c: Delete file.
4628 * gnulib/import/sys_time.in.h: New file.
4629
4630 2015-08-24 Pedro Alves <palves@redhat.com>
4631
4632 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4633 * common/gdb_sys_time.h: New file.
4634 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4635 * gdb_select.h: Likewise.
4636 * gdb_usleep.c: Likewise.
4637 * maint.c: Likewise.
4638 * mi/mi-main.c: Likewise.
4639 * mi/mi-parse.h: Likewise.
4640 * remote-fileio.c: Likewise.
4641 * remote-m32r-sdi.c: Likewise.
4642 * remote.c: Likewise.
4643 * ser-base.c: Likewise.
4644 * ser-pipe.c: Likewise.
4645 * ser-tcp.c: Likewise.
4646 * ser-unix.c: Likewise.
4647 * symfile.c: Likewise.
4648 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4649 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4650 * utils.c: Likewise.
4651
4652 2015-08-24 Pedro Alves <palves@redhat.com>
4653
4654 * NEWS: Mention removed support for the various ROM monitors.
4655 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4656 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4657 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4658 gdb_target_obs.
4659 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4660 gdb_target_obs.
4661 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4662 dsrec.o from gdb_target_obs.
4663 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4664 from gdb_target_obs.
4665 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4666 gdb_target_obs.
4667 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4668 dink32-rom.o from gdb_target_obs.
4669 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4670 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4671 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4672 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4673
4674 2015-08-21 Pedro Alves <palves@redhat.com>
4675
4676 * frame.c (null_frame_id): Explicitly zero-initialize.
4677
4678 2015-08-21 Tom Tromey <tromey@redhat.com>
4679
4680 * dwarf2read.c (struct dwarf2_section_info): Rename field
4681 'asection' to 'section'.
4682 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4683 (dwarf2_locate_sections, dwarf2_locate_sections)
4684 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4685 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4686 (dwarf2_locate_v2_dwp_sections): Adjust.
4687
4688 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4689
4690 * top.h (gdb_in_secondary_prompt_p): Declare.
4691 * top.c (gdb_secondary_prompt_depth): Define.
4692 (gdb_in_secondary_prompt_p): Define.
4693 (gdb_readline_wrapper_cleanup): Decrement
4694 gdb_secondary_prompt_depth.
4695 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4696 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4697 are in a secondary prompt.
4698
4699 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4700
4701 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4702 emit the newline.
4703
4704 2015-08-21 Gary Benson <gbenson@redhat.com>
4705
4706 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4707
4708 2015-08-21 Gary Benson <gbenson@redhat.com>
4709
4710 * target.h (struct target_ops) <to_fileio_open>: New argument
4711 warn_if_slow. Update comment. All implementations updated.
4712 (target_fileio_open_warn_if_slow): New declaration.
4713 * target.c (target_fileio_open): Renamed as...
4714 (target_fileio_open_1): ...this. New argument warn_if_slow.
4715 Pass warn_if_slow to implementation. Update debug printing.
4716 (target_fileio_open): New function.
4717 (target_fileio_open_warn_if_slow): Likewise.
4718 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4719 target_fileio_open_warn_if_slow.
4720
4721 2015-08-21 Gary Benson <gbenson@redhat.com>
4722
4723 * nat/linux-namespaces.c (linux_mntns_access_fs):
4724 Do not overwrite old_chain.
4725
4726 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4727
4728 * arch/xtensa.h: New file.
4729 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4730 (ps_get_thread_area): New function.
4731 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4732 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4733 * xtensa-tdep.c (osabi.h): New #include.
4734 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4735 xtensa-specific hooks.
4736 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4737 member and move the structure to arch/xtensa.h.
4738
4739 2015-08-21 Pedro Alves <palves@redhat.com>
4740
4741 * remote.c (struct readahead_cache): New.
4742 (struct remote_state) <readahead_cache>: New field.
4743 (remote_open_1): Invalidate the cache.
4744 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4745 functions.
4746 (remote_hostio_pwrite): Invalidate the readahead cache.
4747 (remote_hostio_pread): Rename to ...
4748 (remote_hostio_pread_vFile): ... this.
4749 (remote_hostio_pread_from_cache): New function.
4750 (remote_hostio_pread): Reimplement.
4751 (remote_hostio_close): Invalidate the readahead cache.
4752
4753 2015-08-21 Marcin Cieƛlak <saper@saper.info> (tiny patch)
4754
4755 PR build/18843
4756 * procfs.c: Include "filestuff.h".
4757
4758 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4759
4760 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4761 curch.
4762 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4763 cur_line or curch, instead call wmove().
4764 (init_win_info) [CMD_WIN]: Likewise.
4765 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4766 instead call getcury().
4767 (tui_redisplay_readline): Don't set cur_line or curch.
4768 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4769 getcury().
4770 (tui_cont_sig): Remove call to wmove.
4771 (tui_getc): Don't read cur_line or curch, instead call getcury()
4772 or getyx(). Don't set curch.
4773 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4774 set cur_line or curch. Always move cursor to (0,0).
4775
4776 2015-08-20 Pedro Alves <palves@redhat.com>
4777
4778 * infrun.c (print_target_wait_results): Make extern.
4779 * infrun.h (print_target_wait_results): Declare.
4780 * remote.c (set_stop_requested_callback): Delete.
4781 (process_initial_stop_replies): New function.
4782 (remote_start_remote): Use it.
4783 (stop_reply_queue_length): New function.
4784
4785 2015-08-20 Pedro Alves <palves@redhat.com>
4786
4787 * dwarf2read.c (process_full_comp_unit): To tell whether
4788 start_subfile managed to deduce a language, test for
4789 language_unknown instead of language_c.
4790
4791 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4792
4793 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4794 matches attributes.
4795
4796 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4797
4798 * dwarf2read.c (dwarf2_string_attr): New function.
4799 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4800 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4801 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4802 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4803 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4804
4805 2015-08-18 Doug Evans <dje@google.com>
4806 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4807
4808 PR mi/18833
4809 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4810 if MI-like.
4811 * mi/mi-out.c: #include "vec.h".
4812 (ui_filep): New type.
4813 (DEV_VEC_P (ui_filep)): New type.
4814 (struct ui_out_data) <buffer, original_buffer>: Delete.
4815 (struct ui_out_data) <streams>: New member.
4816 (mi_ui_out_impl): Add data_destroy field.
4817 (mi_field_string, mi_field_fmt): Update.
4818 (mi_flush, mi_redirect, field_separator): Update.
4819 (mi_open, mi_close): Update.
4820 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4821 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4822 (mi_out_new): Call mi_out_data_ctor.
4823
4824 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4825
4826 * remote.c (strprefix): New.
4827 (remote_parse_stop_reply): Use strprefix instead of strncmp
4828 to ensure exact match of keyword.
4829
4830 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * gdb_bfd.c (debug_bfd_cache): New variable.
4833 (show_bfd_cache_debug): New function.
4834 (gdb_bfd_open): Add debug logging.
4835 (gdb_bfd_ref): Likewise.
4836 (gdb_bfd_unref): Likewise.
4837 (_initialize_gdb_bfd): Add new set/show command.
4838 * NEWS: Mention new command.
4839
4840 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * gdb_bfd.c (bfd_sharing): New variable.
4843 (show_bfd_sharing): New function.
4844 (gdb_bfd_open): Check bfd_sharing variable.
4845 (_initialize_gdb_bfd): Add new set/show command.
4846 * NEWS: Mention new command.
4847
4848 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4851 field.
4852 (struct gdb_bfd_cache_search): Likewise.
4853 (eq_bfd): Compare the size, inode, and device id fields.
4854 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4855 (gdb_bfd_ref): Likewise.
4856 (gdb_bfd_unref): Likewise.
4857
4858 2015-08-18 Pedro Alves <palves@redhat.com>
4859
4860 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4861 target implements to_always_non_stop_p, call it.
4862 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4863 (x86_linux_create_target): Install it as to_always_non_stop_p
4864 method.
4865
4866 2015-08-17 Doug Evans <dje@google.com>
4867
4868 * ui-out.c (default_ui_out_impl): Add comment.
4869
4870 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4871
4872 * d-exp.y (type_aggregate_p): New function.
4873 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4874 (classify_inner_name): Likewise.
4875 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4876
4877 2015-08-15 Doug Evans <xdje42@gmail.com>
4878
4879 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4880 updated.
4881 (add_psymbol_to_list): Ditto.
4882
4883 2015-08-15 Doug Evans <xdje42@gmail.com>
4884
4885 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4886 updated. Call end_psymtab_common.
4887 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4888 end_psymtab_common.
4889 (build_type_psymtabs_reader): Ditto.
4890 * psympriv.h (sort_pst_symbols): Delete.
4891 (end_psymtab_common): Declare.
4892 * psymtab.c (sort_pst_symbols): Make static.
4893 (end_psymtab_common): New function.
4894 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4895
4896 2015-08-15 Doug Evans <xdje42@gmail.com>
4897
4898 * defs.h (LANGUAGE_BITS): Define.
4899 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4900 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4901 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4902 (minimal_symbol_type): Add nr_minsym_types.
4903 (MINSYM_TYPE_BITS): Define.
4904 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4905 (domain_enum_tag): Add NR_DOMAINS.
4906 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4907 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4908
4909 2015-08-15 Doug Evans <xdje42@gmail.com>
4910
4911 * objfiles.h: Whitespace cleanup.
4912 * psympriv.h: Whitespace cleanup.
4913 * psymtab.c: Whitespace/coding convention cleanup.
4914
4915 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4916
4917 * inferior.c (detach_inferior_command): Don't call
4918 any_thread_of_process when pid is 0.
4919 (kill_inferior_command): Likewise.
4920
4921 2015-08-14 Doug Evans <xdje42@gmail.com>
4922
4923 PR gdb/11833
4924 * NEWS: Document new /s modifier for the disassemble command.
4925 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4926 (_initialize_cli_cmds): Update online docs of disassemble command.
4927 * disasm.c: #include "source.h".
4928 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4929 All uses updated.
4930 (dis_line_entry): New struct.
4931 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4932 (allocate_dis_line_table): New functions.
4933 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4934 (dump_insns): New arg end_pc. All callers updated.
4935 (do_mixed_source_and_assembly_deprecated): Renamed from
4936 do_mixed_source_and_assembly. All callers updated.
4937 (do_mixed_source_and_assembly): New function.
4938 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4939 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4940 DISASSEMBLY_SOURCE. All uses updated.
4941 (DISASSEMBLY_SOURCE): New macro.
4942 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4943
4944 2015-08-14 Keith Seitz <keiths@redhat.com>
4945
4946 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4947 `typename' to `type_name' to avoid C++ reserved word.
4948
4949 2015-08-14 Keith Seitz <keiths@redhat.com>
4950
4951 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4952 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4953 silence ARI errors.
4954
4955 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4956
4957 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4958 xstrprintf instead of malloc and sprintf.
4959 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4960 (lex_one_token): Likewise.
4961
4962 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4963
4964 * solib-svr4.c (read_program_header): Add base_addr argument to
4965 report the runtime address of the segment.
4966 (find_program_interpreter): Update read_program_header call to pass
4967 a NULL pointer for the new argument.
4968 (scan_dyntag): Add ptr_addr argument to report the runtime address
4969 of the tag payload.
4970 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4971 read_program_header to get the base address of the dynamic segment.
4972 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4973 read_program_header.
4974 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4975
4976 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4977
4978 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4979
4980 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4981
4982 * d-exp.y (%union): Add voidval.
4983 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4984 name in the lexing stage.
4985 (PostfixExpression): Move symbol completion handling in grammar here
4986 from PrimaryExpression.
4987 (PrimaryExpression): Move routines to handle resolving identifier
4988 tokens in the grammar here from push_expression_name.
4989 (IdentifierExp): Remove the handling of alternating '.' and identifier
4990 tokens.
4991 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4992 (BasicType): Remove C-style typename rules.
4993 (d_type_from_name, d_module_from_name, push_variable)
4994 (push_fieldnames, push_type_name, push_module_name)
4995 (push_expression_name): Remove.
4996 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4997 (token_and_value): New type.
4998 (token_fifo, popping, name_obstack): New globals.
4999 (classify_name): New function.
5000 (classify_inner_name): Likewise.
5001 (yylex): Likewise.
5002 (d_parse): Initialize token_fifo, popping and name_obstack.
5003
5004 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5005
5006 * Makefile.in (SFILES): Add d-namespace.c.
5007 (COMMON_OBS): Add d-namespace.o.
5008 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5009 la_lookup_symbol_nonlocal callback function pointer.
5010 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5011 (d_lookup_nested_symbol): New declaration.
5012 * d-namespace.c: New file.
5013
5014 2015-08-13 Pedro Alves <palves@redhat.com>
5015
5016 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5017 cleanup after the decref cleanup, not before.
5018
5019 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5020
5021 * ada-lang.c: Include namespace.h
5022 (aux_add_nonlocal_symbols): Fix a function name in comment.
5023 (ada_add_block_renamings): New.
5024 (add_nonlocal_symbols): Add global renamings handling.
5025 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5026 to...
5027 (ada_add_all_symbols): ... this new function.
5028 (ada_add_block_symbols): Try to match the input name against the
5029 "using directives list", perform a recursive symbol lookup on
5030 the matched declarations.
5031 * block.h (struct block): Move the_namespace to top-level as
5032 namespace_info. Remove the language_specific field.
5033 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5034 * buildsym.h (using_directives): Rename into...
5035 (local_using_directives): ... this.
5036 (global_using_directives): New.
5037 (struct context_stack): Rename the using_directives field into
5038 local_using_directives.
5039 * buildsym.c (finish_block_internal): Deal with the proper
5040 using directives repository (local or global).
5041 (prepare_for_building): Reset local_using_directives. Assert
5042 that there is no pending global using directive.
5043 (reset_symtab_globals): Reset global_using_directives and
5044 local_using_directives.
5045 (end_symtab_get_static_block): Don't ignore symtabs that have
5046 only using directives.
5047 (push_context): Update references to local_using_directives.
5048 (buildsym_init): Do not reset using_directives.
5049 * cp-support.c: Include namespace.h.
5050 * cp-support.h (struct using_direct): Move to namespace.h.
5051 (cp_add_using_directives): Move to namespace.h.
5052 * cp-namespace.c: Include namespace.h
5053 (cp_add_using_directive): Move to namespace.c, rename it to
5054 add_using_directive, add a "using_directives" argument and use
5055 it as the pending using directives repository. All callers
5056 updated.
5057 * dwarf2read.c (using_directives): New.
5058 (read_import_statement): Call using_directives.
5059 (read_func_scope): Update references to local_using_directives.
5060 (read_lexical_block_scope): Likewise.
5061 (read_namespace): Update the heading comment, call
5062 using_directives.
5063 * namespace.h: New file.
5064 * namespace.c: New file.
5065 * Makefile.in (SFILES): Add namespace.c.
5066 (COMMON_OBS): Add namespace.o
5067
5068 2015-08-12 Joel Brobecker <brobecker@adacore.com>
5069
5070 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5071 compute RETADDR.
5072
5073 2015-08-12 Keith Seitz <keiths@redhat.com>
5074
5075 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5076 reserved C++ keyword "explicit" to "explicit_loc".
5077 * breakpoint.c (create_overlay_event_breakpoint)
5078 (create_longjmp_master_breakpoint)
5079 (create_std_terminate_master_breakpoint)
5080 (create_exception_master_breakpoint, update_static_tracepoint):
5081 Rename reserved C++ keyword "explicit" to "explicit_loc".
5082 * completer.c (collect_explicit_location_matches)
5083 (explicit_location_completer): Rename reserved C++ keyword
5084 "explicit" to "explicit_loc".
5085 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5086 (canonicalize_linespec, create_sals_line_offset)
5087 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5088 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5089 "explicit" to "explicit_loc".
5090 * location.c (struct event_location) <explicit>: Rename to
5091 "explicit_loc".
5092 (initialize_explicit_location, new_explicit_location)
5093 (explicit_location_to_string_internal, explicit_location_to_linespec):
5094 Rename reserved C++ keyword "explicit" to "explicit_loc".
5095 * location.h (explicit_location_to_string)
5096 (explicit_location_to_linespec, initialize_explicit_location)
5097 (new_explicit_location): Rename reserved C++ keyword "explicit"
5098 to "explicit_loc".
5099 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5100 keyword "explicit" to "explicit_loc".
5101
5102 2015-08-12 Keith Seitz <keiths@redhat.com>
5103
5104 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5105 and only call decode_line_1 when it is non-NULL.
5106
5107 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
5108
5109 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5110 location address is not meaningful.
5111 (breakpoint_address_is_meaningful): Update comment.
5112
5113 2015-08-11 Keith Seitz <keiths@redhat.com>
5114
5115 * NEWS: Mention explicit locations.
5116 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5117 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5118 (_initialize_breakpoint): Update documentation for
5119 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5120
5121 2015-08-11 Keith Seitz <keiths@redhat.com>
5122
5123 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5124 explicit locations, options "--source", "--function",
5125 "--label", and "--line".
5126
5127 2015-08-11 Keith Seitz <keiths@redhat.com>
5128
5129 * completer.c: Include location.h.
5130 (enum match_type): New enum.
5131 (location_completer): Rename to ...
5132 (linespec_completer): ... this.
5133 (collect_explicit_location_matches, backup_text_ptr)
5134 (explicit_location_completer): New functions.
5135 (location_completer): "New" function; handle linespec
5136 and explicit location completions.
5137 (complete_line_internal): Remove all location completer-specific
5138 handling.
5139 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5140 (find_toplevel_char): Export.
5141 (linespec_parse_line_offset): Export.
5142 Issue error if STRING is not numerical.
5143 (gdb_get_linespec_parser_quote_characters): New function.
5144 * linespec.h (linespec_parse_line_offset): Declare.
5145 (get_gdb_linespec_parser_quote_characters): Declare.
5146 (is_ada_operator): Declare.
5147 (find_toplevel_char): Declare.
5148 (linespec_lexer_lex_keyword): Declare.
5149 * location.c (explicit_to_event_location): New function.
5150 (explicit_location_lex_one): New function.
5151 (string_to_explicit_location): New function.
5152 (string_to_event_location): Handle explicit locations.
5153 * location.h (explicit_to_event_location): Declare.
5154 (string_to_explicit_location): Declare.
5155
5156 2015-08-11 Keith Seitz <keiths@redhat.com>
5157
5158 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5159 linespec into explicit location.
5160 * breakpoint.c (create_overlay_breakpoint)
5161 (create_longjmp_master_breakpoint)
5162 (create_std_terminate_master_breakpoint)
5163 (create_exception_master_breakpoint): Convert linespec into explicit
5164 location.
5165 (update_static_tracepoint): Convert linespec into explicit location.
5166 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5167 location.h.
5168 (struct linespec) <expression, expr_pc, source_filename>
5169 <function_name, label_name, line_offset>: Replace with ...
5170 <explicit>: ... this.
5171 <is_linespec>: New member.
5172 (PARSER_EXPLICIT): New accessor macro.
5173 (undefined_label_error): New function.
5174 (source_file_not_found_error): New function.
5175 (linespec_parse_basic): The parser result is now an explicit location.
5176 Use PARSER_EXPLICIT to access it.
5177 Use undefined_label_error.
5178 (canonicalize_linespec): Convert canonical linespec into explicit
5179 location.
5180 Move string representation of location to explicit_location_to_linespec
5181 and use it and explicit_location_to_string to save string
5182 representations of the canonical location.
5183 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5184 explicit location. Update all references.
5185 (convert_explicit_location_to_sals): New function.
5186 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5187 result's explicit location.
5188 (linespec_state_constructor): Initialize is_linespec.
5189 Use PARSER_EXPLICIT.
5190 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5191 result.
5192 (event_location_to_sals): For linespec locations, set is_linespec.
5193 Handle explicit locations.
5194 (decode_objc): 'ls' contains an explicit location now. Update all
5195 references.
5196 (symtabs_from_filename): Use source_file_not_found_error.
5197 * location.c (struct event_location.u) <explicit>: New member.
5198 (initialize_explicit_location): New function.
5199 (initialize_event_location): Initialize explicit locations.
5200 (new_explicit_location, get_explicit_location)
5201 (get_explicit_location_const): New functions.
5202 (explicit_to_string_internal): New function; most of contents moved
5203 from canonicalize_linespec.
5204 (explicit_location_to_string): New function.
5205 (explicit_location_to_linespec): New function.
5206 (copy_event_location, delete_event_location)
5207 (event_location_to_string_const, event_location_empty_p): Handle
5208 explicit locations.
5209 * location.h (enum offset_relative_sign, struct line_offset): Move
5210 here from linespec.h.
5211 (enum event_location_type): Add EXPLICIT_LOCATION.
5212 (struct explicit_location): New structure.
5213 (explicit_location_to_string): Declare.
5214 (explicit_location_to_linespec): Declare.
5215 (new_explicit_location, get_explicit_locationp
5216 (get_explicit_location_const, initialize_explicit_location): Declare.
5217
5218 2015-08-11 Keith Seitz <keiths@redhat.com>
5219
5220 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5221 linespec for stap probe to probe location.
5222 * breakpoint.c (create_longjmp_master_breakpoint)
5223 (create_exception_master_breakpoint): Likewise.
5224 (break_command_1): Remove local variable `arg_cp'.
5225 Check location type to set appropriate breakpoint ops methods.
5226 (trace_command): Likewise.
5227 * linespec.c (event_location_to_sals): Assert on probe locations.
5228 * location.c (EL_PROBE): Add macro definition.
5229 (new_probe_location, get_probe_location): New functions.
5230 (copy_event_location, delete_event_location, event_location_to_string)
5231 (string_to_event_location, event_location_empty_p): Handle probe
5232 locations.
5233 * location.h (enum event_location_type): Add PROBE_LOCATION.
5234 (new_probe_location, get_probe_location): Declare.
5235 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5236 Convert linespec into probe location.
5237
5238 2015-08-11 Keith Seitz <keiths@redhat.com>
5239
5240 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5241 Convert linespec to address location.
5242 * linespec.c (canonicalize_linespec): Do not handle address
5243 locations here.
5244 (convert_address_location_to_sals): New function; contents moved
5245 from ...
5246 (convert_linespc_to_sals): ... here.
5247 (parse_linespec): Remove address locations from linespec grammar.
5248 Remove handling of address locations.
5249 (linespec_lex_to_end): Remove handling of address linespecs.
5250 (event_location_to_sals): Handle ADDRESS_LOCATION.
5251 (linespec_expression_to_pc): Export.
5252 * linespec.h (linespec_expression_to_pc): Add declaration.
5253 * location.c (struct event_location.u) <address>: New member.
5254 (new_address_location, get_address_location): New functions.
5255 (copy_event_location, delete_event_location, event_location_to_string)
5256 (string_to_event_location, event_location_empty_p): Handle address
5257 locations.
5258 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5259 (new_address_location, get_address_location): Declare.
5260 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5261 to address location.
5262 * spu-tdep.c (spu_catch_start): Likewise.
5263
5264 2015-08-11 Keith Seitz <keiths@redhat.com>
5265
5266 * ax-gdb.c: Include location.h.
5267 (agent_command_1) Use linespec location instead of address
5268 string.
5269 * break-catch-throw.c: Include location.h.
5270 (re_set_exception_catchpoint): Use linespec locations instead
5271 of address strings.
5272 * breakpoint.c: Include location.h.
5273 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5274 (create_std_terminate_master_breakpoint)
5275 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5276 Use linespec location instead of address string.
5277 (print_breakpoint_location): Use locations and
5278 event_location_to_string.
5279 Print extra_string for pending locations for non-MI streams.
5280 (print_one_breakpoint_location): Use locations and
5281 event_location_to_string.
5282 (init_raw_breakpoint_without_location): Initialize b->location.
5283 (create_thread_event_breakpoint): Use linespec location instead of
5284 address string.
5285 (init_breakpoint_sal): Likewise.
5286 Only save extra_string if it is non-NULL and not the empty string.
5287 Use event_location_to_string instead of `addr_string'.
5288 Constify `p' and `endp'.
5289 Use skip_spaces_const/skip_space_const instead of non-const versions.
5290 Copy the location into the breakpoint.
5291 If LOCATION is NULL, save the breakpoint address as a linespec location
5292 instead of an address string.
5293 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5294 event_location. All uses updated.
5295 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5296 (parse_breakpoint_sals): Use locations instead of address strings.
5297 Remove check for empty linespec with conditional.
5298 Refactor.
5299 (decode_static_tracepoint_spec): Make argument const and update
5300 function.
5301 (create_breakpoint): Change `arg' to a struct event_location and
5302 rename.
5303 Remove `copy_arg' and `addr_start'.
5304 If EXTRA_STRING is empty, set it to NULL.
5305 Don't populate `canonical' for pending breakpoints.
5306 Pass `extra_string' to find_condition_and_thread.
5307 Clear `extra_string' if `rest' was NULL.
5308 Do not error with "garbage after location" if setting a dprintf
5309 breakpoint.
5310 Copy the location into the breakpoint instead of an address string.
5311 (break_command_1): Use string_to_event_location and pass this to
5312 create_breakpoint instead of an address string.
5313 Check against `arg_cp' for a probe linespec.
5314 (dprintf_command): Use string_to_event_location and pass this to
5315 create_breakpoint instead of an address string.
5316 Throw an exception if no format string was specified.
5317 (print_recreate_ranged_breakpoint): Use event_location_to_string
5318 instead of address strings.
5319 (break_range_command, until_break_command)
5320 (init_ada_exception_breakpoint): Use locations instead
5321 of address strings.
5322 (say_where): Print out extra_string for pending locations.
5323 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5324 the breakpoint.
5325 (base_breakpoint_create_sals_from_location): Use struct event_location
5326 instead of address string.
5327 Remove `addr_start' and `copy_arg' parameters.
5328 (base_breakpoint_decode_location): Use struct event_location instead of
5329 address string.
5330 (bkpt_re_set): Use locations instead of address strings.
5331 Use event_location_empty_p to check for unset location.
5332 (bkpt_print_recreate): Use event_location_to_string instead of
5333 an address string.
5334 Print out extra_string for pending locations.
5335 (bkpt_create_sals_from_location, bkpt_decode_location)
5336 (bkpt_probe_create_sals_from_location): Use struct event_location
5337 instead of address string.
5338 (bkpt_probe_decode_location): Use struct event_location instead of
5339 address string.
5340 (tracepoint_print_recreate): Use event_location_to_string to
5341 recreate the tracepoint.
5342 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5343 (tracepoint_probe_create_sals_from_location)
5344 (tracepoint_probe_decode_location): Use struct event_location
5345 instead of address string.
5346 (dprintf_print_recreate): Use event_location_to_string to recreate
5347 the dprintf.
5348 (dprintf_re_set): Remove check for valid/missing format string.
5349 (strace_marker_create_sals_from_location)
5350 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5351 (update_static_tracepoint): Use struct event_location instead of
5352 address string.
5353 (location_to_sals): Likewise.
5354 Pass `extra_string' to find_condition_and_thread.
5355 For newly resolved pending breakpoint locations, clear the location's
5356 string representation.
5357 Assert that the breakpoint's condition string is NULL when
5358 condition_not_parsed.
5359 (breakpoint_re_set_default, create_sals_from_location_default)
5360 (decode_location_default, trace_command, ftrace_command)
5361 (strace_command, create_tracepoint_from_upload): Use locations
5362 instead of address strings.
5363 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5364 Use struct event_location instead of address string.
5365 Update all uses.
5366 <decode_location>: Likewise.
5367 (struct breakpoint) <addr_string>: Change to struct event_location
5368 and rename `location'.
5369 <addr_string_range_end>: Change to struct event_location and rename
5370 `location_range_end'.
5371 (create_breakpoint): Use struct event_location instead of address
5372 string.
5373 * cli/cli-cmds.c: Include location.h.
5374 (edit_command, list_command): Use locations instead of address strings.
5375 * elfread.c: Include location.h.
5376 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5377 * guile/scm-breakpoint.c: Include location.h.
5378 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5379 (gdbscm_register_breakpoint): Use locations instead of address
5380 strings.
5381 * linespec.c: Include location.h.
5382 (struct ls_parser) <stream>: Change to const char *.
5383 (PARSER_STREAM): Update.
5384 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5385 keywords must be followed by whitespace.
5386 (canonicalize_linespec): Save a linespec location into `canonical'.
5387 Save a canonical linespec into `canonical'.
5388 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5389 All uses updated.
5390 Update function description.
5391 (linespec_parser_new): Initialize `parser'.
5392 Update initialization of parsing stream.
5393 (event_location_to_sals): New function.
5394 (decode_line_full): Change `argptr' to a struct event_location and
5395 rename it `location'.
5396 Use locations instead of address strings.
5397 Call event_location_to_sals instead of parse_linespec.
5398 (decode_line_1): Likewise.
5399 (decode_line_with_current_source, decode_line_with_last_displayed)
5400 Use locations instead of address strings.
5401 (decode_objc): Likewise.
5402 Change `argptr' to const char * and rename `arg'.
5403 (destroy_linespec_result): Delete the linespec result's location
5404 instead of freeing the address string.
5405 * linespec.h (struct linespec_result) <addr_string>: Change to
5406 struct event_location and rename to ...
5407 <location>: ... this.
5408 (decode_line_1, decode_line_full): Change `argptr' to struct
5409 event_location. All callers updated.
5410 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5411 (mi_cmd_break_insert_1): Use locations instead of address strings.
5412 Throw an error if there was "garbage" at the end of the specified
5413 linespec.
5414 * probe.c: Include location.h.
5415 (parse_probes): Change `argptr' to struct event_location.
5416 Use event locations instead of address strings.
5417 * probe.h (parse_probes): Change `argptr' to struct event_location.
5418 * python/py-breakpoint.c: Include location.h.
5419 (bppy_get_location): Constify local variable `str'.
5420 Use event_location_to_string.
5421 (bppy_init): Use locations instead of address strings.
5422 * python/py-finishbreakpoint.c: Include location.h.
5423 (bpfinishpy_init): Remove local variable `addr_str'.
5424 Use locations instead of address strings.
5425 * python/python.c: Include location.h.
5426 (gdbpy_decode_line): Use locations instead of address strings.
5427 * remote.c: Include location.h.
5428 (remote_download_tracepoint): Use locations instead of address
5429 strings.
5430 * spu-tdep.c: Include location.h.
5431 (spu_catch_start): Remove local variable `buf'.
5432 Use locations instead of address strings.
5433 * tracepoint.c: Include location.h.
5434 (scope_info): Use locations instead of address strings.
5435 (encode_source_string): Constify parameter `src'.
5436 * tracepoint.h (encode_source_string): Likewise.
5437
5438 2015-08-11 Keith Seitz <keiths@redhat.com>
5439
5440 * Makefile.in (SFILES): Add location.c.
5441 (HFILES_NO_SRCDIR): Add location.h.
5442 (COMMON_OBS): Add location.o.
5443 * linespec.c (linespec_lex_to_end): New function.
5444 * linespec.h (linespec_lex_to_end): Declare.
5445 * location.c: New file.
5446 * location.h: New file.
5447
5448 2015-08-11 Keith Seitz <keiths@redhat.com>
5449
5450 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5451 Renamed to create_sals_from_location.
5452 <decode_linespec>: Renamed to decode_location.
5453 Update all callers.
5454 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5455 (create_sals_from_location_default): ... this.
5456 (addr_string_to_sals): Renamed to ...
5457 (location_to_sals): ... this.
5458 (decode_linespec_default): Renamed to ...
5459 (decode_location_default): ... this.
5460 (base_breakpoint_create_sals_from_address): Renamed to ...
5461 (base_breakpoint_create_sals_from_location): ... this.
5462 (bkpt_create_sals_from_address): Renamed to ...
5463 (bkpt_create_sals_from_location): ... this.
5464 (bkpt_decode_linespec): Renamed to ...
5465 (bkpt_decode_location): ... this.
5466 (bkpt_probe_create_sals_from_address): Renamed to ...
5467 (bkpt_probe_create_sals_from_location): ... this.
5468 (tracepoint_create_sals_from_address): Renamed to ...
5469 (tracepoint_create_sals_from_location): ... this.
5470 (tracepoint_decode_linespec): Renamed to ...
5471 (tracepoint_decode_location): ... this.
5472 (tracepoint_probe_create_sals_from_address): Renamed to ...
5473 (tracepoint_probe_create_sals_from_location): ... this.
5474 (tracepoint_probe_decode_linespec): Renamed to ...
5475 (tracepoint_probe_decode_location): ... this.
5476 (strace_marker_create_sals_from_address): Renamed to ...
5477 (strace_marker_create_sals_from_location): ... this.
5478 (decode_linespec_default): Renamed to ...
5479 (decode_location_default): ... this.
5480
5481 2015-08-10 Doug Evans <dje@google.com>
5482 Keith Seitz <keiths@redhat.com>
5483
5484 PR gdb/17960
5485 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5486 make_file_symbol_completion_list and made static.
5487 (make_file_symbol_completion_list): New function.
5488
5489 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5490
5491 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5492 trailing new-line at end of warning message.
5493 (proceed): Add i18n marker to error messages.
5494
5495 2015-08-07 Pedro Alves <palves@redhat.com>
5496
5497 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5498
5499 2015-08-07 Pedro Alves <palves@redhat.com>
5500
5501 * s390-linux-tdep.c (is_non_branch_ril)
5502 (s390_displaced_step_copy_insn): New functions.
5503 (s390_displaced_step_fixup): Update comment.
5504 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5505 gdbarch_displaced_step_copy_insn hook.
5506
5507 2015-08-07 Pedro Alves <palves@redhat.com>
5508
5509 * infrun.c (displaced_step_prepare_throw): Return -1 if
5510 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5511 comment.
5512 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5513 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5514 in file.
5515 (ppc_displaced_step_copy_insn): New function.
5516 (ppc_displaced_step_fixup): Update comment.
5517 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5518 gdbarch_displaced_step_copy_insn hook.
5519 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5520 NULL return.
5521 * gdbarch.h: Regenerate.
5522
5523 2015-08-07 Pedro Alves <palves@redhat.com>
5524
5525 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5526 field.
5527 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5528 Return false if dispaced stepping failed before.
5529 (resume): Pass the current inferior to
5530 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5531 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5532 displaced_stepping_failed flag, and fall back to an in-line
5533 step-over.
5534
5535 2015-08-07 Pedro Alves <palves@redhat.com>
5536
5537 * darwin-nat.c (darwin_stop): Rename to ...
5538 (darwin_interrupt): ... this.
5539 (_initialize_darwin_inferior): Adjust.
5540 * gnu-nat.c (gnu_stop): Delete.
5541 (gnu_target): Don't install gnu_stop.
5542 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5543 (inf_ptrace_interrupt): ... this.
5544 (inf_ptrace_target): Adjust.
5545 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5546 target_stop.
5547 * linux-nat (linux_nat_stop): Rename to ...
5548 (linux_nat_interrupt): ... this.
5549 (linux_nat_stop): Reimplement.
5550 (linux_nat_add_target): Install linux_nat_interrupt.
5551 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5552 (nto_handle_sigint_twice): ... this.
5553 (nto_interrupt): Rename to ...
5554 (nto_handle_sigint): ... this. Call target_interrupt instead of
5555 target_stop.
5556 (procfs_wait): Adjust.
5557 (procfs_stop): Rename to ...
5558 (procfs_interrupt): ... this.
5559 (init_procfs_targets): Adjust.
5560 * procfs.c (procfs_stop): Rename to ...
5561 (procfs_interrupt): ... this.
5562 (procfs_target): Adjust.
5563 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5564 (m32r_interrupt): ... this.
5565 (init_m32r_ops): Adjust.
5566 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5567 (gdbsim_interrupt_inferior): ... this.
5568 (gdbsim_stop): Rename to ...
5569 (gdbsim_interrupt): ... this.
5570 (gdbsim_cntrl_c): Adjust.
5571 (init_gdbsim_ops): Adjust.
5572 * remote.c (sync_remote_interrupt): Adjust comments.
5573 (remote_stop_as): Rename to ...
5574 (remote_interrupt_as): ... this.
5575 (remote_stop): Adjust comment.
5576 (remote_interrupt): New function.
5577 (init_remote_ops): Install remote_interrupt.
5578 * target.c (target_interrupt): New function.
5579 * target.h (struct target_ops) <to_interrupt>: New field.
5580 (target_interrupt): New declaration.
5581 * windows-nat.c (windows_stop): Rename to ...
5582 (windows_interrupt): ... this.
5583 * target-delegates.c: Regenerate.
5584
5585 2015-08-07 Pedro Alves <palves@redhat.com>
5586
5587 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5588 threads" as alternative to "switching back to stepped thread".
5589
5590 2015-08-07 Pedro Alves <palves@redhat.com>
5591
5592 * NEWS: Mention "maint set/show target-non-stop".
5593 * breakpoint.c (update_global_location_list): Check
5594 target_is_non_stop_p instead of non_stop.
5595 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5596 * infrun.c (show_can_use_displaced_stepping)
5597 (can_use_displaced_stepping_p, start_step_over_inferior):
5598 Likewise.
5599 (internal_resume_ptid): New function.
5600 (resume): Use it.
5601 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5602 all-stop mode but the target is always in non-stop mode, start all
5603 the other threads that are implicitly resumed too.
5604 (for_each_just_stopped_thread, fetch_inferior_event)
5605 (adjust_pc_after_break, stop_all_threads): Check
5606 target_is_non_stop_p instead of non_stop.
5607 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5608 with the target always in non-stop mode.
5609 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5610 instead of non_stop.
5611 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5612 instead of non_stop.
5613 (keep_going_stepped_thread): Use internal_resume_ptid.
5614 (stop_waiting): If in all-stop mode, and the target is in non-stop
5615 mode, stop all threads.
5616 (keep_going_pass): Likewise, when starting a new in-line step-over
5617 sequence.
5618 * linux-nat.c (get_pending_status, select_event_lwp)
5619 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5620 target_is_non_stop_p instead of non_stop.
5621 (linux_nat_always_non_stop_p): New function.
5622 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5623 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5624 * target-delegates.c: Regenerate.
5625 * target.c (target_is_non_stop_p): New function.
5626 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5627 (maint_set_target_non_stop_command)
5628 (maint_show_target_non_stop_command): New functions.
5629 (_initilize_target): Install "maint set/show target-non-stop"
5630 commands.
5631 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5632 (target_non_stop_enabled): New declaration.
5633 (target_is_non_stop_p): New declaration.
5634
5635 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5636
5637 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5638 has a pending status, return true.
5639 * gdbthread.h: Include target/waitstatus.h.
5640 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5641 stop_pc>: New fields.
5642 (struct thread_info) <resumed>: New field.
5643 (set_resumed): Declare.
5644 * infrun.c: Include "event-loop.h".
5645 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5646 (infrun_async): New function.
5647 (clear_step_over_info): Add debug output.
5648 (displaced_step_in_progress_any_inferior): New function.
5649 (displaced_step_fixup): New returns int.
5650 (start_step_over): Handle in-line step-overs too. Assert the
5651 thread is marked resumed.
5652 (resume_cleanups): Clear the thread's resumed flag.
5653 (resume): Set the thread's resumed flag. Return early if the
5654 thread has a pending status. Allow stepping a breakpoint with no
5655 signal.
5656 (proceed): Adjust to check 'resumed' instead of 'executing'.
5657 (clear_proceed_status_thread): If the thread has a pending status,
5658 and that status is a finished step, discard the pending status.
5659 (clear_proceed_status): Don't clear step_over_info here.
5660 (random_pending_event_thread, do_target_wait): New functions.
5661 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5662 do_target_wait.
5663 (wait_one): New function.
5664 (THREAD_STOPPED_BY): New macro.
5665 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5666 (thread_stopped_by_hw_breakpoint): New functions.
5667 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5668 functions.
5669 (handle_inferior_event): Also call set_resumed(false) on all
5670 threads implicitly stopped by the event.
5671 (restart_threads, resumed_thread_with_pending_status): New
5672 functions.
5673 (finish_step_over): If we were doing an in-line step-over before,
5674 and no longer are after trying to start a new step-over, restart
5675 all threads. If we have multiple threads with pending events,
5676 save the current event and go through the event loop again.
5677 (handle_signal_stop): Return early if finish_step_over returns
5678 false.
5679 <random signal>: If we get a signal while stepping over a
5680 breakpoint in-line in non-stop mode, restart all threads. Clear
5681 step_over_info before delivering the signal.
5682 (keep_going_stepped_thread): Use internal_error instead of
5683 gdb_assert. Mark the thread as resumed.
5684 (keep_going_pass_signal): Assert the thread isn't already resumed.
5685 If some other thread is doing an in-line step-over, defer the
5686 resume. If we just started a new in-line step-over, stop all
5687 threads. Don't clear step_over_info.
5688 (infrun_async_inferior_event_handler): New function.
5689 (_initialize_infrun): Create async event handler with
5690 infrun_async_inferior_event_handler as callback.
5691 (infrun_async): New declaration.
5692 * target.c (target_async): New function.
5693 * target.h (target_async): Declare macro and readd as function
5694 declaration.
5695 * target/waitstatus.h (enum target_stop_reason)
5696 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5697 * thread.c (new_thread): Clear the new waitstatus field.
5698 (set_resumed): New function.
5699
5700 2015-08-07 Pedro Alves <palves@redhat.com>
5701
5702 * infrun.c (keep_going_stepped_thread): New function, factored out
5703 from ...
5704 (switch_back_to_stepped_thread): ... here.
5705
5706 2015-08-07 Pedro Alves <palves@redhat.com>
5707
5708 * infrun.c (currently_stepping): Extend intro comment.
5709 * target.h (target_resume): Extend intro comment.
5710
5711 2015-08-07 Pedro Alves <palves@redhat.com>
5712
5713 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5714 of inferior_ptid. If the stepped thread vanished, return 0
5715 instead of resuming here. Use reset_ecs. Print the prev_pc and
5716 the current stop_pc in log message. Clear trap_expected if the
5717 thread advanced. Don't pass currently_stepping to
5718 do_target_resume.
5719
5720 2015-08-07 Pedro Alves <palves@redhat.com>
5721
5722 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5723 * infrun.c (struct execution_control_state): Move higher up in the
5724 file.
5725 (reset_ecs): New function.
5726 (start_step_over): Now returns int. Rewrite to use
5727 keep_going_pass_signal instead of manually starting a displaced step.
5728 (resume): Don't call set_running here. If displaced stepping
5729 can't start now, clear trap_expected.
5730 (find_thread_needs_step_over): Delete function.
5731 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5732 If the current thread needs a step over, push it in the step-over
5733 chain. Don't set insert breakpoints nor call resume directly
5734 here. Instead rewrite to use start_step_over and
5735 keep_going_pass_signal.
5736 (finish_step_over): New function.
5737 (handle_signal_stop): Call finish_step_over instead of
5738 start_step_over.
5739 (switch_back_to_stepped_thread): If the event thread needs another
5740 step-over do that first. Use start_step_over.
5741 (keep_going_pass_signal): New function, factored out from ...
5742 (keep_going): ... here.
5743 (_initialize_infrun): Comment moved here.
5744 * thread.c (set_running_thread): New function.
5745 (set_running, finish_thread_state): Use set_running_thread.
5746
5747 2015-08-07 Pedro Alves <palves@redhat.com>
5748
5749 * gdbthread.h (struct thread_info) <step_over_prev,
5750 step_over_next>: New fields.
5751 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5752 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5753 declarations.
5754 * infrun.c (struct displaced_step_request): Delete.
5755 (struct displaced_step_inferior_state) <step_request_queue>:
5756 Delete field.
5757 (displaced_step_prepare): Assert that trap_expected is set. Use
5758 thread_step_over_chain_enqueue. Split starting a new displaced
5759 step to ...
5760 (start_step_over): ... this new function.
5761 (resume): Assert the thread isn't waiting for a step over already.
5762 (proceed): Assert the thread isn't waiting for a step over
5763 already.
5764 (infrun_thread_stop_requested): Adjust to remove threads from the
5765 embedded step-over chain.
5766 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5767 displaced_step_fixup.
5768 (handle_signal_stop): Call start_step_over after
5769 displaced_step_fixup.
5770 * infrun.h (step_over_queue_head): New declaration.
5771 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5772 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5773 (thread_step_over_chain_enqueue)
5774 (thread_step_over_chain_remove): New functions.
5775 (delete_thread_1): Remove thread from the step-over chain.
5776
5777 2015-08-07 Pedro Alves <palves@redhat.com>
5778
5779 * infrun.c (thread_still_needs_step_over): Rename to ...
5780 (thread_still_needs_step_over_bp): ... this.
5781 (enum step_over_what): New.
5782 (thread_still_needs_step_over): Reimplement.
5783
5784 2015-08-07 Pedro Alves <palves@redhat.com>
5785
5786 * remote.c (remote_wait_as): If not waiting for a stop reply,
5787 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5788 requested, don't block waiting forever.
5789
5790 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5791
5792 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5793 waitstatus pointers instead of an ecs. Adjust.
5794 (handle_inferior_event): Adjust caller.
5795
5796 2015-08-07 Pedro Alves <palves@redhat.com>
5797
5798 * infrun.c (handle_inferior_event): If we get
5799 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5800 mode, mark all threads of the exiting process as not-executing.
5801 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5802 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5803 exiting process, if inferior_ptid still points at a process.
5804 * thread.c (struct current_thread_cleanup) <next>: New field.
5805 (current_thread_cleanup_chain): New global.
5806 (restore_current_thread_ptid_changed): New function.
5807 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5808 current_thread_cleanup_chain list.
5809 (make_cleanup_restore_current_thread): Add the cleanup data to the
5810 current_thread_cleanup_chain list.
5811 (_initialize_thread): Install restore_current_thread_ptid_changed
5812 as thread_ptid_changed observer.
5813
5814 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5815
5816 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5817 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5818 smaller than expected.
5819
5820 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5821
5822 * stack.c (get_frame_language): Moved ...
5823 * frame.c (get_frame_language): ... to here.
5824 * language.h (get_frame_language): Declaration moved to frame.h.
5825 * frame.h: Add language.h include, for language enum.
5826 (get_frame_language): Declaration moved from language.h.
5827 * language.c: Add frame.h include.
5828 * top.c: Add frame.h include.
5829 * symtab.h (struct obj_section): Declare.
5830 (struct cmd_list_element): Declare.
5831
5832 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5833
5834 * language.c (show_language_command): Find selected frame before
5835 asking for the language of that frame.
5836 (set_language_command): Likewise.
5837 * language.h (get_frame_language): Add frame parameter.
5838 * stack.c (get_frame_language): Add frame parameter, assert
5839 parameter is not NULL, update comment and reindent.
5840 * top.c (check_frame_language_change): Pass the selected frame
5841 into get_frame_language.
5842
5843 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5844
5845 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5846 (pt_btrace_insn_flags): New.
5847 (ftrace_add_pt): Call pt_btrace_insn_flags.
5848 * btrace.h (btrace_insn_flag): New.
5849 (btrace_insn) <flags>: New.
5850 * record-btrace.c (btrace_insn_history): Print insn prefix.
5851 * NEWS: Announce it.
5852
5853 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5854
5855 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5856 * configure: Regenerate.
5857
5858 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5859
5860 * Makefile.in (LIBICONV): Define.
5861 (CLIBS): Add LIBICONV.
5862 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5863 * configure: Regenerate.
5864
5865 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5866 Pedro Alves <palves@redhat.com>
5867
5868 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5869 (arm_set_abi): Likewise.
5870 * ax-general.c (ax_print): Likewise.
5871 * c-exp.y (exp : string_exp): Likewise.
5872 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5873 (do_compile_dwarf_expr_to_c): Likewise.
5874 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5875 Likewise.
5876 * dwarf2expr.c (execute_stack_op): Likewise.
5877 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5878 (disassemble_dwarf_expression): Likewise.
5879 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5880 (read_array_order): Likewise.
5881 (abbrev_table_read_table): Likewise.
5882 (read_attribute_value): Likewise.
5883 (skip_unknown_opcode): Likewise.
5884 (dwarf_decode_macro_bytes): Likewise.
5885 (dwarf_decode_macros): Likewise.
5886 * eval.c (value_f90_subarray): Likewise.
5887 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5888 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5889 * infrun.c (handle_command): Likewise.
5890 * memory-map.c (memory_map_start_memory): Likewise.
5891 * osabi.c (set_osabi): Likewise.
5892 * parse.c (operator_length_standard): Likewise.
5893 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5894 single return point.
5895 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5896 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5897 (gdbpy_lookup_global_symbol): Likewise.
5898 * record-full.c (record_full_restore): Likewise.
5899 * regcache.c (regcache_register_status): Likewise.
5900 (regcache_raw_read): Likewise.
5901 (regcache_cooked_read): Likewise.
5902 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5903 * symtab.c (initialize_ordinary_address_classes): Likewise.
5904 * target-debug.h (target_debug_print_signals): Likewise.
5905 * utils.c (do_restore_current_language): Likewise.
5906
5907 2015-08-06 Clem Dickey <clemd@acm.org>
5908
5909 PR python/17136
5910 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5911
5912 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5913
5914 * complaints.c (enum complaint_series): Add newlines and remove
5915 out of date comment.
5916 (struct complaints) <series>: Change type to enum
5917 complaint_series and remove out of date comment.
5918 (symfile_complaint_hook): Use equivalent enum value
5919 ISOLATED_MESSAGE instead of 0.
5920
5921 2015-08-06 Pedro Alves <palves@redhat.com>
5922
5923 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5924 returned > 0.
5925
5926 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5927
5928 * common/agent.c (symbol_list) <required>: Remove.
5929
5930 2015-08-06 Pedro Alves <palves@redhat.com>
5931
5932 * target/waitstatus.h (enum target_stop_reason)
5933 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5934
5935 2015-08-05 Pedro Alves <palves@redhat.com>
5936 Joel Brobecker <brobecker@adacore.com>
5937
5938 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5939 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5940 case where BS->STOP is not set.
5941
5942 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5943
5944 * nat/gdb_thread_db.h: Add copyright header.
5945 Protect against multiple inclusion.
5946
5947 2015-08-05 Yao Qi <yao.qi@linaro.org>
5948
5949 * aarch64-linux-nat.c (get_thread_id): Remove.
5950 (debug_reg_change_callback): Call ptid_get_lwp instead of
5951 get_thread_id.
5952 (fetch_gregs_from_thread): Likewise.
5953 (store_gregs_to_thread): Likewise.
5954 (fetch_fpregs_from_thread): Likewise.
5955 (store_fpregs_to_thread): Likewise.
5956 (aarch64_linux_get_debug_reg_capacity): Likewise.
5957 * arm-linux-nat.c (get_thread_id): Remove.
5958 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5959 * xtensa-linux-nat.c (get_thread_id): Remove.
5960 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5961 * arm-linux-nat.c (get_thread_id): Remove.
5962 (GET_THREAD_ID): Remove.
5963 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5964 (store_fpregs, fetch_regs, store_regs): Likewise.
5965 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5966 (fetch_vfp_regs, store_vfp_regs): Likewise.
5967 (arm_linux_read_description): Likewise.
5968 (arm_linux_get_hwbp_cap): Likewise.
5969 * xtensa-linux-nat.c (get_thread_id): Remove.
5970 (GET_THREAD_ID): Remove.
5971 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5972 GET_THREAD_ID.
5973
5974 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5975
5976 * python/py-linetable.c: Fix case of Linetable to LineTable
5977 in docstrings and code comments.
5978 * python/py-symtab.c: Same.
5979
5980 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5981
5982 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5983
5984 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5985
5986 PR gdb/18767
5987 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5988 use.
5989
5990 2015-08-04 Pedro Alves <palves@redhat.com>
5991
5992 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5993 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5994 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5995 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5996 (td_thr_validate_ftype, td_thr_get_info_ftype)
5997 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5998 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5999 New typedefs.
6000 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6001 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6002 local macros and use them instead of verbose_dlsym and dlsym
6003 calls.
6004
6005 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6006
6007 * nios2-tdep.h: Include opcode/nios2.h here.
6008 (NIOS2_CDX_OPCODE_SIZE): New.
6009 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6010 * nios2-tdep.c: Don't include opcode/nios2.h here.
6011 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6012 4-byte read fails.
6013 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6014 (nios2_match_addi, nios2_match_orhi): Likewise.
6015 (nios2_match_stw, nios2_match_ldw): Likewise.
6016 (nios2_match_rdctl): Likewise.
6017 (nios2_match_stwm, nios2_match_ldwm): New.
6018 (nios2_match_branch): Add cases for R2 encodings.
6019 (nios2_match_jmpi, nios2_match_calli): Likewise.
6020 (nios2_match_jmpr, nios2_match_callr): Likewise.
6021 (nios2_match_break, nios2_match_trap): Likewise.
6022 (nios2_in_epilogue_p): Add R2 support.
6023 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6024 prologues.
6025 (nios2_breakpoint_from_pc): Handle R2 instructions.
6026 (nios2_get_next_pc): Likewise. Adjust call to
6027 tdep->syscall_next_pc.
6028 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6029 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6030 instruction field macros instead of literal hex values.
6031 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6032 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6033 Use size field from OP instead of assuming all instructions
6034 are the same size.
6035 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6036
6037 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6038
6039 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6040 variable warning with some compilers.
6041
6042 2015-08-03 Yao Qi <yao.qi@linaro.org>
6043
6044 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6045 in comment. Replace "rw" with "type".
6046 (arm_linux_remove_watchpoint): Change type of "rw" to
6047 "enum target_hw_bp_type".
6048
6049 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6050
6051 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6052 lookup_symbol.
6053 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6054 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6055 * mt-tdep.c (mt_skip_prologue): Likewise.
6056 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6057
6058 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6059
6060 * ada-exp.y (write_object_renaming): Replace struct
6061 ada_symbol_info with struct block_symbol. Update field
6062 references accordingly.
6063 (block_lookup, select_possible_type_sym): Likewise.
6064 (find_primitive_type): Likewise. Also update call to
6065 ada_lookup_symbol to extract the symbol itself.
6066 (write_var_or_type, write_name_assoc): Likewise.
6067 * ada-lang.h (struct ada_symbol_info): Remove.
6068 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6069 struct block_symbol.
6070 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6071 (ada_lookup_symbol): Return struct block_symbol instead of a
6072 mere symbol.
6073 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6074 with struct block_symbol.
6075 (resolve_subexp, ada_resolve_function, sort_choices,
6076 user_select_syms, is_nonfunction, add_defn_to_vec,
6077 num_defns_collected, defns_collected,
6078 symbols_are_identical_enums, remove_extra_symbols,
6079 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6080 ada_lookup_symbol_list, ada_iterate_over_symbols,
6081 ada_lookup_encoded_symbol, get_var_value): Likewise.
6082 (ada_lookup_symbol): Return a block_symbol instead of a mere
6083 symbol. Replace struct ada_symbol_info with struct
6084 block_symbol.
6085 (ada_lookup_symbol_nonlocal): Likewise.
6086 (standard_lookup): Make block passing explicit through
6087 lookup_symbol_in_language.
6088 * ada-tasks.c (get_tcb_types_info): Update the calls to
6089 lookup_symbol_in_language to extract the mere symbol out of the
6090 returned value.
6091 (ada_tasks_inferior_data_sniffer): Likewise.
6092 * ax-gdb.c (gen_static_field): Likewise for the call to
6093 lookup_symbol.
6094 (gen_maybe_namespace_elt): Deal with struct block_symbol from
6095 lookup functions.
6096 (gen_expr): Likewise.
6097 * c-exp.y: Likewise. Remove uses of block_found.
6098 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6099 (classify_name): Likewise. Rename the "sym" local variable to
6100 "bsym".
6101 * c-valprint.c (print_unpacked_pointer): Likewise.
6102 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6103 "sym" parameter from struct symbol * to struct block_symbol.
6104 Use it to remove uses of block_found. Deal with struct
6105 block_symbol from lookup functions.
6106 (gcc_convert_symbol): Likewise. Update the call to
6107 convert_symbol_sym.
6108 * compile/compile-object-load.c (compile_object_load): Deal with
6109 struct block_symbol from lookup functions.
6110 * cp-namespace.c (cp_lookup_nested_symbol_1,
6111 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6112 cp_search_static_and_baseclasses,
6113 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6114 cp_lookup_symbol_imports_or_template,
6115 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6116 lookup_namespace_scope, cp_lookup_nonlocal,
6117 find_symbol_in_baseclass): Return struct block_symbol instead of
6118 mere symbols and deal with struct block_symbol from lookup
6119 functions.
6120 * cp-support.c (inspect_type, replace_typedefs,
6121 cp_lookup_rtti_type): Deal with struct block_symbol from
6122 lookup functions.
6123 * cp-support.h (cp_lookup_symbol_nonlocal,
6124 cp_lookup_symbol_from_namespace,
6125 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
6126 Return struct block_symbol instead of mere symbols.
6127 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6128 push_module_name):
6129 Deal with struct block_symbol from lookup functions. Remove
6130 uses of block_found.
6131 * eval.c (evaluate_subexp_standard): Update call to
6132 cp_lookup_symbol_namespace.
6133 * f-exp.y: Deal with struct block_symbol from lookup functions.
6134 Remove uses of block_found.
6135 (yylex): Likewise.
6136 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6137 lookup_enum, lookup_template_type, check_typedef): Deal with
6138 struct block_symbol from lookup functions.
6139 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6140 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6141 (gdbscm_lookup_global_symbol): Likewise.
6142 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6143 * go-exp.y: Likewise. Remove uses of block_found.
6144 (package_name_p, classify_packaged_name, classify_name):
6145 Likewise.
6146 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6147 * jv-exp.y (push_variable): Likewise.
6148 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6149 * language.c (language_bool_type): Likewise.
6150 * language.h (struct language_defn): Update
6151 la_lookup_symbol_nonlocal to return a struct block_symbol rather
6152 than a mere symbol.
6153 * linespec.c (find_label_symbols): Deal with struct block_symbol
6154 from lookup functions.
6155 * m2-exp.y: Likewise. Remove uses of block_found.
6156 (yylex): Likewise.
6157 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6158 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
6159 * p-exp.y: Likewise. Remove uses of block_found.
6160 (yylex): Likewise.
6161 * p-valprint.c (pascal_val_print): Likewise.
6162 * parse.c (write_dollar_variable): Likewise. Remove uses of
6163 block_found.
6164 * parser-defs.h (struct symtoken): Turn the SYM field into a
6165 struct block_symbol.
6166 * printcmd.c (address_info): Deal with struct block_symbol from
6167 lookup functions.
6168 * python/py-frame.c (frapy_read_var): Likewise.
6169 * python/py-symbol.c (gdbpy_lookup_symbol,
6170 gdbpy_lookup_global_symbol): Likewise.
6171 * skip.c (skip_function_command): Likewise.
6172 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
6173 block_symbol instead of a mere symbol.
6174 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6175 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6176 * solib.c (solib_global_lookup): Likewise.
6177 * solist.h (solib_global_lookup): Likewise.
6178 (struct target_so_ops): Update lookup_lib_global_symbol to
6179 return a struct block_symbol rather than a mere symbol.
6180 * source.c (select_source_symtab): Deal with struct block_symbol
6181 from lookup functions.
6182 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6183 Likewise.
6184 * symfile.c (set_initial_language): Likewise.
6185 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
6186 block_symbol.
6187 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6188 (struct symbol_cache_slot): Turn the FOUND field into a struct
6189 block_symbol.
6190 (block_found): Remove.
6191 (eq_symbol_entry): Update to deal with struct block_symbol in
6192 cache slots.
6193 (symbol_cache_lookup): Return a struct block_symbol rather than
6194 a mere symbol.
6195 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6196 appropriately the cache slots. Update callers.
6197 (symbol_cache_dump): Update cache slots handling to the type
6198 change.
6199 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6200 lookup_symbol_aux, lookup_local_symbol,
6201 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6202 lookup_symbol_in_objfile_symtabs,
6203 lookup_symbol_in_objfile_from_linkage_name,
6204 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6205 lookup_symbol_in_static_block, lookup_static_symbol,
6206 lookup_global_symbol):
6207 Return a struct block_symbol rather than a mere symbol. Deal
6208 with struct block_symbol from other lookup functions. Remove
6209 uses of block_found.
6210 (lookup_symbol_in_block): Remove uses of block_found.
6211 (struct global_sym_lookup_data): Turn the RESULT field into a
6212 struct block_symbol.
6213 (lookup_symbol_global_iterator_cb): Update references to the
6214 RESULT field.
6215 (search_symbols): Deal with struct block_symbol from lookup
6216 functions.
6217 * symtab.h (struct block_symbol): New structure.
6218 (block_found): Remove.
6219 (lookup_symbol_in_language, lookup_symbol,
6220 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6221 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6222 lookup_global_symbol_from_objfile): Return a struct block_symbol
6223 rather than just a mere symbol. Update comments to remove
6224 mentions of block_found.
6225 * valops.c (find_function_in_inferior,
6226 value_struct_elt_for_reference, value_maybe_namespace_elt,
6227 value_of_this): Deal with struct block_symbol from lookup
6228 functions.
6229 * value.c (value_static_field, value_fn_field): Likewise.
6230
6231 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6232
6233 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6234 instead of integer.
6235
6236 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6237 Pedro Alves <palves@redhat.com>
6238
6239 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6240 type or value instead of integer.
6241 (aarch64_linux_insert_watchpoint): Likewise.
6242 (aarch64_linux_remove_watchpoint): Likewise.
6243 * ada-lang.c (ada_op_print_tab): Likewise.
6244 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6245 (amd64_linux_syscall_record_common): Likewise.
6246 * arch-utils.c (target_byte_order_user): Likewise.
6247 (default_byte_order): Likewise.
6248 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6249 (arm_linux_get_hwbp_type): Likewise.
6250 (arm_linux_hw_watchpoint_initialize): Likewise.
6251 (arm_linux_insert_watchpoint): Likewise.
6252 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6253 (arm_linux_syscall_record): Likewise.
6254 * breakpoint.c (update_watchpoint): Likewise.
6255 (breakpoint_here_p): Likewise.
6256 (bpstat_print): Likewise.
6257 (enable_breakpoint_disp): Likewise.
6258 * c-lang.c (c_op_print_tab): Likewise.
6259 * cli/cli-decode.c (add_info_alias): Likewise.
6260 * d-lang.c (d_op_print_tab): Likewise.
6261 * eval.c (evaluate_subexp_standard): Likewise.
6262 * f-exp.y (dot_ops): Likewise.
6263 (f77_keywords): Likewise.
6264 * f-lang.c (f_op_print_tab): Likewise.
6265 * go-lang.c (go_op_print_tab): Likewise.
6266 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6267 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6268 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6269 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6270 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6271 (struct scm_from_stringn_data): Likewise.
6272 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6273 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6274 (ia64_linux_remove_watchpoint): Likewise.
6275 (ia64_linux_can_use_hw_breakpoint): Likewise.
6276 * infrun.c (print_stop_event): Likewise.
6277 * jv-lang.c (java_op_print_tab): Likewise.
6278 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6279 * linux-nat.h (struct lwp_info): Likewise.
6280 * linux-thread-db.c (enable_thread_event): Likewise.
6281 * m2-lang.c (m2_op_print_tab): Likewise.
6282 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6283 (mi_cmd_stack_list_variables): Likewise.
6284 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6285 * mi/mi-out.c (mi_table_begin): Likewise.
6286 (mi_table_header): Likewise.
6287 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6288 (mips_linux_insert_watchpoint): Likewise.
6289 (mips_linux_remove_watchpoint): Likewise.
6290 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6291 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6292 (mips_linux_watch_type_to_irw): Likewise.
6293 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6294 (procfs_insert_hw_watchpoint): Likewise.
6295 (procfs_remove_hw_watchpoint): Likewise.
6296 (procfs_hw_watchpoint): Likewise.
6297 (procfs_can_use_hw_breakpoint): Likewise.
6298 (procfs_remove_hw_watchpoint): Likewise.
6299 (procfs_insert_hw_watchpoint): Likewise.
6300 * p-lang.c (pascal_op_print_tab): Likewise.
6301 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6302 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6303 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6304 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6305 (procfs_insert_watchpoint): Likewise.
6306 (procfs_remove_watchpoint): Likewise.
6307 * psymtab.c (recursively_search_psymtabs): Likewise.
6308 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6309 (m32r_insert_watchpoint): Likewise.
6310 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6311 (mips_insert_watchpoint): Likewise.
6312 (mips_remove_watchpoint): Likewise.
6313 * remote.c (watchpoint_to_Z_packet): Likewise.
6314 (remote_insert_watchpoint): Likewise.
6315 (remote_remove_watchpoint): Likewise.
6316 (remote_check_watch_resources): Likewise.
6317 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6318 (s390_remove_watchpoint): Likewise.
6319 (s390_can_use_hw_breakpoint): Likewise.
6320 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6321 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6322 * target.h (struct target_ops): Likewise.
6323 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6324 * ui-out.c (struct ui_out_hdr): Likewise.
6325 (append_header_to_list): Likewise.
6326 (get_next_header): Likewise.
6327 (verify_field): Likewise.
6328 (ui_out_begin): Likewise.
6329 (ui_out_field_int): Likewise.
6330 (ui_out_field_fmt_int): Likewise.
6331 (ui_out_field_skip): Likewise.
6332 (ui_out_field_string): Likewise.
6333 (ui_out_field_fmt): Likewise.
6334 * varobj.c (new_variable): Likewise.
6335 * x86-nat.c (x86_insert_watchpoint): Likewise.
6336 (x86_remove_watchpoint): Likewise.
6337 (x86_can_use_hw_breakpoint): Likewise.
6338 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6339 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6340 previously anonymous enumeration type..
6341 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6342 value.
6343 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6344 (target_debug_print_enum_bptype): New.
6345 * target-delegates.c: Regenerate.
6346
6347 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6348
6349 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6350 already says and disallow non-stack memory writes in the prologue.
6351
6352 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6353
6354 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6355 reflect how current GCC emits stack overflow checks. Match
6356 both trap and break instructions for backward compatbility.
6357 Disallow other trap and break instructions in the prologue.
6358
6359 2015-07-30 Pedro Alves <palves@redhat.com>
6360
6361 PR threads/18600
6362 * linux-nat.c (wait_lwp): Report to the core when thread group
6363 leader exits.
6364
6365 2015-07-30 Pedro Alves <palves@redhat.com>
6366 Simon Marchi <simon.marchi@ericsson.com>
6367
6368 PR threads/18600
6369 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6370 mark the new thread as resumed. Remove STOPPING parameter.
6371 (wait_lwp): Adjust call to linux_handle_extended_wait.
6372 (linux_nat_filter_event): Adjust call to
6373 linux_handle_extended_wait.
6374 (resume_stopped_resumed_lwps): Add debug output.
6375
6376 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6377
6378 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6379 isize argument.
6380 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6381 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6382 gdbarch_fast_tracepoint_valid_at.
6383 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6384 * gdbarch.h: Regenerate.
6385 * gdbarch.c: Regenerate.
6386 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6387 argument. Do not set it.
6388 * remote.c (remote_download_tracepoint): Adjust call to
6389 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6390 the instruction length.
6391
6392 2015-07-30 Yao Qi <yao.qi@linaro.org>
6393
6394 * arm-tdep.h (enum gdb_regnum): Move it to ...
6395 * arch/arm.h: ... here. New file.
6396 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6397
6398 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6399
6400 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6401 Change its type to int *.
6402 (decode_br): Rename link argument to is_blr. Change its type to
6403 int *.
6404 (decode_cb): Rename op argument to is_cbnz. Change its type to
6405 int *.
6406 (decode_tb): Rename op argument to is_tbnz. Change its type to
6407 int *. Set is_tbnz to either 1 or 0.
6408 (aarch64_analyze_prologue): Change type of is_link to int. Add
6409 new variables is_cbnz and is_tbnz. Adjust call to
6410 aarch64_decode_cb and aarch64_decode_tb.
6411
6412 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6415 parameter.
6416 (mips_linux_new_thread): Likewise.
6417 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6418
6419 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6420
6421 * top.c: Include "tui/tui.h".
6422 (undo_terminal_modifications_before_exit): New static function.
6423 (quit_force): Use it.
6424
6425 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6426
6427 * target.c (terminal_state): Initialize to terminal_is_ours.
6428
6429 2015-07-29 Yao Qi <yao.qi@linaro.org>
6430
6431 PR record/18691
6432 * dcache.c (dcache_read_memory_partial): Call
6433 raw_memory_xfer_partial.
6434 * target.c (raw_memory_xfer_partial): Make it non-static.
6435 * target.h (raw_memory_xfer_partial): Declare.
6436
6437 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * c-valprint.c (c_val_print_array): Consider addressable memory
6440 unit size.
6441 (c_val_print_ptr): Likewise.
6442 (c_val_print_int): Likewise.
6443 * findvar.c (read_frame_register_value): Likewise.
6444 * valarith.c (find_size_for_pointer_math): Likewise.
6445 (value_ptrdiff): Likewise.
6446 (value_subscripted_rvalue): Likewise.
6447 * valops.c (read_value_memory): Likewise (and rename variables).
6448 (value_assign): Likewise.
6449 (value_repeat): Likewise.
6450 (value_array): Likewise.
6451 (value_slice): Likewise.
6452 * valprint.c (generic_val_print_ptr): Likewise.
6453 (generic_val_print_enum): Likewise.
6454 (generic_val_print_bool): Likewise.
6455 (generic_val_print_int): Likewise.
6456 (generic_val_print_char): Likewise.
6457 (generic_val_print_float): Likewise.
6458 (generic_val_print_decfloat): Likewise.
6459 (generic_val_print_complex): Likewise.
6460 (val_print_scalar_formatted): Likewise.
6461 (val_print_array_elements): Likewise.
6462 * value.c (set_value_parent): Likewise.
6463 (value_contents_copy_raw): Likewise.
6464 (set_internalvar_component): Likewise.
6465 (value_primitive_field): Likewise.
6466 (value_fetch_lazy): Likewise.
6467 * value.h (read_value_memory): Update comment.
6468
6469 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6470
6471 * value.c (get_value_arch): New function.
6472 * value.h (get_value_arch): New declaration.
6473
6474 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6475
6476 * value.c (struct value): Update comments.
6477
6478 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6479
6480 * gdbtypes.c (type_length_units): New function.
6481 * gdbtypes.h (type_length_units): New declaration.
6482 (struct type) <length>: Update comment.
6483
6484 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6485
6486 * valprint.c (generic_val_print): Factor out complex
6487 printing code to ...
6488 (generic_val_print_complex): ... this new function.
6489
6490 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * valprint.c (generic_val_print): Factor out decfloat
6493 printing code to ...
6494 (generic_val_print_decfloat): ... this new function.
6495
6496 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6497
6498 * valprint.c (generic_val_print): Factor out float
6499 printing code to ...
6500 (generic_val_print_float): ... this new function.
6501
6502 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6503
6504 * valprint.c (generic_val_print): Factor out char
6505 printing code to ...
6506 (generic_val_print_char): ... this new function.
6507
6508 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6509
6510 * valprint.c (generic_val_print): Factor out integer
6511 printing code to ...
6512 (generic_val_print_int): ... this new function.
6513
6514 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6515
6516 * valprint.c (generic_val_print): Factor out bool
6517 printing code to ...
6518 (generic_val_print_bool): ... this new function.
6519
6520 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6521
6522 * valprint.c (generic_val_print): Factor out function/method
6523 printing code to ...
6524 (generic_val_print_func): ... this new function.
6525
6526 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6527
6528 * valprint.c (generic_val_print): Factor out flags
6529 printing code to ...
6530 (generic_val_print_flags): ... this new function.
6531
6532 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6533
6534 * valprint.c (generic_val_print): Factor out enum
6535 printing code to ...
6536 (generic_val_print_enum): ... this new function.
6537
6538 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6539
6540 * valprint.c (generic_val_print): Factor out reference
6541 printing code to ...
6542 (generic_val_print_ref): ... this new function.
6543
6544 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6545
6546 * valprint.c (generic_val_print): Factor out memberptr
6547 printing code to ...
6548 (generic_val_print_memberptr): ... this new function.
6549
6550 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6551
6552 * valprint.c (generic_val_print): Factor out pointer
6553 printing code to ...
6554 (generic_val_print_ptr): ... this new function.
6555
6556 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6557
6558 * valprint.c (generic_val_print): Factor out array
6559 printing code to ...
6560 (generic_val_print_array): ... this new function.
6561
6562 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6563
6564 * valprint.c (generic_val_print): Factor out
6565 print_unpacked_pointer code to ...
6566 (print_unpacked_pointer): ... this new function.
6567
6568 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6569
6570 * event-top.c (handle_sigterm): Don't inspect
6571 target_can_async_p. Always set the quit flag and always mark
6572 the async signal handler.
6573
6574 2015-07-27 Yao Qi <yao.qi@linaro.org>
6575
6576 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6577
6578 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6579
6580 * remote.c (read_ptid): Return null_ptid when no thread id
6581 is found.
6582 (remote_current_thread): Add log warning for malformed
6583 qC reply.
6584 (remote_start_remote): Add log warning when current thread
6585 not found.
6586
6587 2015-07-24 Pedro Alves <palves@redhat.com>
6588
6589 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6590 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6591 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6592
6593 2015-07-24 Pedro Alves <palves@redhat.com>
6594
6595 PR gdb/18717
6596 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6597 is resumed, and extend the debug log.
6598
6599 2015-07-24 Pedro Alves <palves@redhat.com>
6600
6601 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6602
6603 2015-07-24 Pedro Alves <palves@redhat.com>
6604
6605 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6606 sys/ptrace.h.
6607 * alpha-linux-nat.c: Likewise.
6608 * amd64-linux-nat.c: Likewise.
6609 * arm-linux-nat.c: Likewise.
6610 * hppa-linux-nat.c: Likewise.
6611 * i386-linux-nat.c: Likewise.
6612 * ia64-linux-nat.c: Likewise.
6613 * linux-fork.c: Likewise.
6614 * linux-nat.c: Likewise.
6615 * m32r-linux-nat.c: Likewise.
6616 * m68klinux-nat.c: Likewise.
6617 * mips-linux-nat.c: Likewise.
6618 * nat/linux-btrace.c: Likewise.
6619 * nat/linux-ptrace.c: Likewise.
6620 * nat/linux-ptrace.h
6621 * nat/mips-linux-watch.c: Likewise.
6622 * nat/x86-linux-dregs.c: Likewise.
6623 * ppc-linux-nat.c: Likewise.
6624 * s390-linux-nat.c: Likewise.
6625 * spu-linux-nat.c: Likewise.
6626 * tilegx-linux-nat.c: Likewise.
6627 * x86-linux-nat.c: Likewise.
6628 * xtensa-linux-nat.c: Likewise.
6629
6630 2015-07-24 Pedro Alves <palves@redhat.com>
6631
6632 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6633 __ptrace_request as first parameter type instead of int.
6634 (PTRACE_TYPE_ARG1): Define.
6635 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6636 that casts first argument to PTRACE_TYPE_ARG1.
6637 * config.in: Regenerate.
6638 * configure: Regenerate.
6639
6640 2015-07-24 Pedro Alves <palves@redhat.com>
6641
6642 * gdb_ptrace.h: Move ...
6643 * nat/gdb_ptrace.h: ... here.
6644 * inf-ptrace.c: Adjust.
6645
6646 2015-07-24 Pedro Alves <palves@redhat.com>
6647
6648 * acinclude.m4: Include ptrace.m4.
6649 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6650 * ptrace.m4: ... to this new file.
6651
6652 2015-07-23 Doug Evans <dje@google.com>
6653
6654 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6655 (load_cu): Handle dummy CUs.
6656 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6657 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6658
6659 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6660
6661 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6662 documentation to say that it returns a list rather than
6663 a FrozenSet.
6664 (linetable_object_methods): Update the docstring of the
6665 "source_line" entry.
6666
6667 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6668
6669 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6670 type to the recursive call instead of the original (maybe
6671 TYPE_CODE_TYPEDEF) type.
6672
6673 2015-07-23 Yao Qi <yao.qi@linaro.org>
6674
6675 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6676 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6677 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6678
6679 2015-07-21 Yao Qi <yao.qi@linaro.org>
6680
6681 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6682 Move it to nat/aarch64-linux-hw-point.c.
6683 (aarch64_linux_child_post_startup_inferior): Update.
6684 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6685 New function.
6686 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6687 Declare it.
6688
6689 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6690
6691 * common/btrace-common.c (btrace_data_append): Change case label.
6692
6693 2015-07-20 Yao Qi <yao.qi@linaro.org>
6694
6695 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6696 Re-indent the code.
6697 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6698 "unsigned long long".
6699
6700 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6701
6702 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6703 to be set for SEC_ALLOC sections too.
6704
6705 2015-07-17 Yao Qi <yao.qi@linaro.org>
6706
6707 * Makefile.in (HFILES_NO_SRCDIR): Add
6708 nat/aarch64-linux-hw-point.h.
6709 (aarch64-linux-hw-point.o): New rule.
6710 * nat/aarch64-linux-hw-point.h: New file.
6711 * nat/aarch64-linux-hw-point.c: New file.
6712 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6713 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6714 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6715 (AARCH64_HWP_ALIGNMENT): Likewise.
6716 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6717 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6718 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6719 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6720 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6721 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6722 (struct aarch64_debug_reg_state): Likewise.
6723 (struct arch_lwp_info): Likewise.
6724 (aarch64_linux_set_debug_regs): Likewise.
6725 (aarch64_notify_debug_reg_change): Remove static.
6726 (aarch64_align_watchpoint): Likewise.
6727 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6728 (aarch64_watchpoint_length): Likewise.
6729 (aarch64_point_encode_ctrl_reg): Likewise
6730 (aarch64_point_is_aligned): Likewise.
6731 (aarch64_dr_state_insert_one_point): Likewise.
6732 (aarch64_dr_state_remove_one_point): Likewise.
6733 (aarch64_handle_breakpoint): Likewise.
6734 (aarch64_handle_aligned_watchpoint): Likewise.
6735 (aarch64_handle_unaligned_watchpoint): Likewise.
6736 (aarch64_handle_watchpoint): Likewise.
6737 * config/aarch64/linux.mh (NAT_FILE): Add
6738 aarch64-linux-hw-point.o.
6739
6740 2015-07-17 Yao Qi <yao.qi@linaro.org>
6741
6742 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6743 state and don't call aarch64_get_debug_reg_state. All callers
6744 update.
6745 (aarch64_linux_insert_hw_breakpoint): Call
6746 aarch64_get_debug_reg_state earlier.
6747 (aarch64_linux_remove_hw_breakpoint): Likewise.
6748 (aarch64_handle_aligned_watchpoint): Add argument state and
6749 don't call aarch64_get_debug_reg_state. All callers update.
6750 (aarch64_handle_unaligned_watchpoint): Likewise.
6751 (aarch64_handle_watchpoint): Add argument state.
6752 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6753 earlier.
6754 (aarch64_linux_remove_watchpoint): Likewise.
6755
6756 2015-07-17 Yao Qi <yao.qi@linaro.org>
6757
6758 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6759 debug_printf.
6760 (aarch64_handle_unaligned_watchpoint): Likewise.
6761
6762 2015-07-17 Yao Qi <yao.qi@linaro.org>
6763
6764 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6765 argument type's type to 'enum target_hw_bp_type'.
6766 (aarch64_dr_state_remove_one_point): Likewise.
6767 (aarch64_handle_breakpoint): Likewise.
6768 (aarch64_linux_insert_hw_breakpoint): Likewise.
6769 (aarch64_linux_remove_hw_breakpoint): Likewise.
6770 (aarch64_handle_aligned_watchpoint): Likewise.
6771
6772 2015-07-17 Yao Qi <yao.qi@linaro.org>
6773
6774 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6775 ptid_get_pid instead of get_thread_id.
6776
6777 2015-07-17 Yao Qi <yao.qi@linaro.org>
6778
6779 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6780 (add_current_inferior_and_thread): Don't initialise ptid.
6781
6782 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6783
6784 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6785 unavailable if invalid.
6786
6787 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6788
6789 Revert the previous 6 commits:
6790 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6791 Move gdb_regex* to common/
6792 Prepare linux_find_memory_regions_full & co. for move
6793 Move linux_find_memory_regions_full & co.
6794 gdbserver build-id attribute generator
6795 Validate symbol file using build-id
6796
6797 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6798 Jan Kratochvil <jan.kratochvil@redhat.com>
6799
6800 Validate symbol file using build-id.
6801 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6802 and 'show validate-build-id'. Add build-id attribute.
6803 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6804 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6805 * solib-frv.c (_initialize_frv_solib): Ditto.
6806 * solib-spu.c (set_spu_solib_ops): Ditto.
6807 * solib-svr4.c: Include rsp-low.h.
6808 (NOTE_GNU_BUILD_ID_NAME): New define.
6809 (svr4_validate): New function.
6810 (svr4_copy_library_list): Duplicate field build_id.
6811 (library_list_start_library): Parse 'build-id' attribute.
6812 (svr4_library_attributes): Add 'build-id' attribute.
6813 (_initialize_svr4_solib): Assign validate value.
6814 * solib-target.c (solib.h): Include.
6815 (_initialize_solib_target): Assign validate value.
6816 * solib.c (validate_build_id, show_validate_build_id): New.
6817 (solib_map_sections): Use ops->validate.
6818 (clear_so): Free build_id.
6819 (default_solib_validate): New function.
6820 (_initialize_solib): Add "validate-build-id".
6821 * solib.h (default_solib_validate): New declaration.
6822 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6823 (target_so_ops): New field 'validate'.
6824
6825 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6826 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 gdbserver build-id attribute generator.
6829 * features/library-list-svr4.dtd (library-list-svr4): New
6830 'build-id' attribute.
6831
6832 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6833 Jan Kratochvil <jan.kratochvil@redhat.com>
6834
6835 Move linux_find_memory_regions_full & co.
6836 * linux-tdep.c (nat/linux-maps.h): Include.
6837 (gdb_regex.h): Remove the include.
6838 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6839 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6840 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6841 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6842 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6843 and target/target.h.
6844 (struct smaps_vmflags, read_mapping, decode_vmflags)
6845 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6846 (linux_find_memory_regions_full): Move from linux-tdep.c.
6847 * nat/linux-maps.h (read_mapping): New declaration.
6848 (linux_find_memory_region_ftype, enum filterflags): Moved from
6849 linux-tdep.c.
6850 (linux_find_memory_regions_full): New declaration.
6851 * target.c (target/target-utils.h): Include.
6852 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6853 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6854 definitions to target/target-utils.c.
6855 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6856 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6857 from target.c.
6858 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6859 (read_alloc): New declaration.
6860 (read_stralloc_func_ftype): New typedef.
6861 (read_stralloc): New declaration.
6862 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6863
6864 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6865 Jan Kratochvil <jan.kratochvil@redhat.com>
6866
6867 Prepare linux_find_memory_regions_full & co. for move.
6868 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6869 (linux_find_memory_regions_full): Change signature and prepare
6870 for moving to linux-maps.
6871 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6872 (linux_find_memory_regions_thunk): New.
6873 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6874 (linux_find_memory_regions_gdb): New.
6875 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6876 (linux_make_mappings_corefile_notes): Use
6877 linux_find_memory_regions_gdb.
6878 * target.c (read_alloc_pread_ftype): New typedef.
6879 (target_fileio_read_alloc_1_pread): New function.
6880 (read_alloc): Refactor from target_fileio_read_alloc_1.
6881 (read_stralloc_func_ftype): New typedef.
6882 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6883 (read_stralloc): Refactored from target_fileio_read_stralloc.
6884 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6885
6886 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6887
6888 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6889 common/gdb_regex.h.
6890 (COMMON_OBS): Add gdb_regex.o.
6891 (gdb_regex.o): New.
6892 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6893 --without-included-regex and USE_INCLUDED_REGEX.
6894 * common/gdb_regex.c: New file from utils.c functions.
6895 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6896 file wrapping define name.
6897 * configure: Rebuilt.
6898 * configure.ac (gdb_use_included_regex, --without-included-regex)
6899 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6900 * gdb_regex.h: Move it to common/gdb_regex.h.
6901 * utils.c: Remove include gdb_regex.h.
6902 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6903 (compile_rx_or_error): Move them to common/gdb_regex.c.
6904
6905 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6906 Jan Kratochvil <jan.kratochvil@redhat.com>
6907
6908 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6909 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6910 common/target-utils.h.
6911 (COMMON_OBS): Add target-utils.o.
6912 (linux-maps.o, target-utils.o): New.
6913 * target/target-utils.c: New file.
6914 * target/target-utils.h: New file.
6915 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6916 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6917 * nat/linux-maps.c: New file.
6918 * nat/linux-maps.h: New file.
6919
6920 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6921 Pedro Alves <palves@redhat.com>
6922
6923 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6924 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6925 (perf_event_read_bts): Change the type of SIZE and READ.
6926 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6927 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6928 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6929 mmap page.
6930 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6931 buffer size to UINT_MAX.
6932 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6933 DATA_TAIL.
6934 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6935 <last_head>: Change type.
6936 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6937 * common/btrace-common.c (btrace_data_append): Change the type of
6938 SIZE.
6939 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6940 check.
6941
6942 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6945 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6946 with check_typedef.
6947 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6948 (ada_array_length): Likewise.
6949 (find_parallel_type_by_descriptive_type): Likewise.
6950 (ada_check_typedef): Likewise.
6951 * arm-tdep.c (arm_return_in_memory): Likewise.
6952 * ax-gdb.c (gen_trace_static_fields): Likewise.
6953 (gen_struct_ref_recursive): Likewise.
6954 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6955 (variable: block COLONCOLON name): Likewise.
6956 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6957 * c-lang.c (classify_type): Likewise.
6958 * c-typeprint.c (c_print_type): Likewise.
6959 (c_print_typedef): Likewise.
6960 (c_type_print_base): Likewise.
6961 * c-valprint.c (c_val_print): Likewise.
6962 * compile/compile-c-types.c (convert_type): Likewise.
6963 * compile/compile-object-load.c (get_out_value_type): Likewise.
6964 * completer.c (add_struct_fields): Likewise.
6965 (expression_completer): Likewise.
6966 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6967 (cp_lookup_nested_symbol_1): Likewise.
6968 (cp_lookup_nested_symbol): Likewise.
6969 * cp-valprint.c (cp_print_value_fields): Likewise.
6970 (cp_print_static_field): Likewise.
6971 * d-valprint.c (d_val_print): Likewise.
6972 * eval.c (evaluate_subexp_standard): Likewise.
6973 (evaluate_subexp_for_sizeof): Likewise.
6974 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6975 * f-typeprint.c (f_type_print_base): Likewise.
6976 * f-valprint.c (f_val_print): Likewise.
6977 * gdbtypes.c (get_discrete_bounds): Likewise.
6978 (create_array_type_with_stride): Likewise.
6979 (type_name_no_tag_or_error): Likewise.
6980 (lookup_struct_elt_type): Likewise.
6981 (get_unsigned_type_max): Likewise.
6982 (internal_type_vptr_fieldno): Likewise.
6983 (set_type_vptr_fieldno): Likewise.
6984 (internal_type_vptr_basetype): Likewise.
6985 (set_type_vptr_basetype): Likewise.
6986 (get_vptr_fieldno): Likewise.
6987 (is_integral_type): Likewise.
6988 (is_scalar_type): Likewise.
6989 (is_scalar_type_recursive): Likewise.
6990 (distance_to_ancestor): Likewise.
6991 (is_unique_ancestor_worker): Likewise.
6992 (check_types_equal): Likewise.
6993 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6994
6995 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6996
6997 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6998 also test for language_d.
6999 (dwarf2_compute_name): Likewise.
7000 (read_func_scope): Likewise.
7001 (read_structure_type): Likewise.
7002 (new_symbol_full): Likewise.
7003 (determine_prefix): Likewise.
7004 (read_import_statement): Use dot as the separator for language_d.
7005 (typename_concat): Likewise, but don't prefix the D main function.
7006
7007 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7008
7009 * nat/linux-namespaces.c (setns): Rename from this ...
7010 (do_setns): ... to this. Support calling setns if it exists.
7011 (mnsh_handle_setns): Call do_setns.
7012
7013 2015-07-13 Yao Qi <yao.qi@linaro.org>
7014
7015 * exec.c (exec_file_attach): Add period at the end of error
7016 message.
7017
7018 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7019
7020 * tui/tui-win.c (window_name_completer): New function.
7021 (focus_completer): Call window_name_completer. All old content
7022 moved into window_name_completer.
7023 (winheight_completer): New function.
7024 (_initialize_tui_win): Rename variable. Add completer to
7025 winheight command. Update doc string on winheight.
7026
7027 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7028
7029 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7030 all nios2 mach variants.
7031
7032 2015-07-10 Kevin Buettner <kevinb@redhat.com>
7033
7034 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7035 of target_read_memory.
7036
7037 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7038
7039 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7040 string copy.
7041 (parse_scrolling_args): Likewise.
7042
7043 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7046 names in this function.
7047
7048 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7049
7050 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7051 (CMD_NAME): Likewise.
7052 (DATA_NAME): Likewise.
7053 (DISASSEM_NAME): Likewise.
7054 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7055 (tui_set_win_height): Likewise.
7056 (parse_scrolling_args): Likewise.
7057
7058 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7059
7060 * record-btrace.c (record_btrace_goto_begin)
7061 (record_btrace_goto_end, record_btrace_goto): Move call to
7062 print_stack_frame ...
7063 (record_btrace_set_replay): ... here. Set stop_pc.
7064 * record-full.c (record_full_goto_entry): Set stop_pc.
7065
7066 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7067
7068 * NEWS: Mention support for tracepoints on aarch64-linux.
7069
7070 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7071
7072 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7073 function. Return 1.
7074 (the_low_target): Install it.
7075
7076 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7077
7078 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7079 * gdb.trace/collection.exp: Likewise.
7080 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7081 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7082 * gdb.trace/report.exp: Likewise.
7083 * gdb.trace/trace-break.exp: Likewise.
7084 * gdb.trace/unavailable.exp: Likewise.
7085 * gdb.trace/while-dyn.exp: Likewise.
7086
7087 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7088
7089 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7090 (aarch64_gen_return_address): New function.
7091 (aarch64_gdbarch_init): Hook it.
7092
7093 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7094
7095 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7096 swallow NOT_AVAILABLE_ERROR.
7097 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7098 available_p is not set.
7099 (aarch64_stub_frame_unwind_stop_reason): New function.
7100 (aarch64_stub_unwind): Install it.
7101
7102 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7103
7104 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7105 field.
7106 (aarch64_make_prologue_cache_1): New function, factored out from
7107 aarch64_make_prologue_cache. Do not allocate cache. Set
7108 available_p.
7109 (aarch64_make_prologue_cache): Reimplement wrapping
7110 aarch64_make_prologue_cache_1, and swallowing
7111 NOT_AVAILABLE_ERROR.
7112 (aarch64_prologue_frame_unwind_stop_reason): New function.
7113 Return UNWIND_UNAVAILABLE if available_p is not set.
7114 (aarch64_prologue_unwind): Install it.
7115 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7116 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7117 frame_id_build_unavailable_stack if available_p is not set.
7118
7119 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7120
7121 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7122 fields.
7123 (aarch64_scan_prologue): Set prev_pc.
7124 (aarch64_make_prologue_cache): Set func.
7125 (aarch64_make_stub_cache): Set prev_pc.
7126 (aarch64_prologue_this_id): Remove local variables id, pc and
7127 func. Read prev_pc and func from cache.
7128 (aarch64_stub_this_id): Read prev_pc from cache.
7129
7130 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7131
7132 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7133 argument this_cache. Remove unused local variables reg and
7134 unwound_fp. Return early if this_cache is already set. Set
7135 this_cache.
7136 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7137
7138 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7139
7140 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7141 New argument this_cache. Return early if this_cache is already
7142 set. Set this_cache.
7143 (aarch64_prologue_this_id): Update call to
7144 aarch64_make_prologue_cache.
7145 (aarch64_prologue_prev_register): Likewise.
7146 (aarch64_normal_frame_base): Likewise.
7147
7148 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7149
7150 * c-valprint.c (c_val_print): Factor out memberptr printing code
7151 from c_val_print to ...
7152 (c_val_print_memberptr): ... this new function.
7153
7154 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7155
7156 * c-valprint.c (c_val_print): Factor out int printing code to ...
7157 (c_val_print_int): ... this new function.
7158
7159 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7160
7161 * c-valprint.c (c_val_print): Factor out struct and union
7162 printing code to ...
7163 (c_val_print_struct): ... this new function ...
7164 (c_val_print_union): ... and this new function.
7165
7166 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7167
7168 * c-valprint.c (c_val_print): Factor out pointer printing code
7169 to ...
7170 (c_val_print_ptr): ... this new function.
7171
7172 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7173
7174 * c-valprint.c (c_valprint): Factor our array printing code from
7175 c_val_print to ...
7176 (c_val_print_array): ... this new function.
7177
7178 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * c-valprint.c (c_val_print): Factor out pointer printing code
7181 to ...
7182 (print_unpacked_pointer): ... this new function.
7183
7184 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7185
7186 * c-valprint.c (c_val_print): Remove an assignment to i and move
7187 its declaration.
7188
7189 2015-07-09 Yao Qi <yao.qi@linaro.org>
7190
7191 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7192 argument ptid. Update comments. Caller update.
7193
7194 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7195
7196 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7197 mnt packets.
7198
7199 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7200
7201 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7202
7203 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7204
7205 * progspace.c (delete_program_space): Add missing spaces.
7206
7207 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7208
7209 * inferior.c (delete_inferior_1): Rename to ...
7210 (delete_inferior): ..., remove 'silent' parameter, delete
7211 program space when unused and remove call to prune_program_spaces.
7212 Remove the old, unused, delete_inferior.
7213 (delete_inferior_silent): Remove.
7214 (prune_inferiors): Change call from delete_inferior_1 to
7215 delete_inferior and remove 'silent' parameter. Remove call to
7216 prune_program_spaces.
7217 (remove_inferior_command): Idem.
7218 * inferior.h (delete_inferior_1): Rename to...
7219 (delete_inferior): ..., remove 'silent' parameter and remove the
7220 original delete_inferior.
7221 (delete_inferior_silent): Remove.
7222 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7223 delete_inferior_1 to delete_inferior and remove 'silent'
7224 parameter.
7225 * progspace.c (prune_program_spaces): Remove.
7226 (pspace_empty_p): Rename to...
7227 (program_space_empty_p): ... and make non-static.
7228 (delete_program_space): New.
7229 * progspace.h (prune_program_spaces): Remove declaration.
7230 (program_space_empty_p): New declaration.
7231 (delete_program_space): New declaration.
7232 * monitor.c (monitor_close): Replace call to
7233 delete_thread_silent and delete_inferior_silent with
7234 discard_all_inferiors.
7235
7236 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7237
7238 * defs.h (deprecated_register_changed_hook): Remove prototype.
7239 * interps.c (clear_iterpreter_hooks): Remove reference to
7240 deprecated_register_changed_hook.
7241 * top.c (deprecated_register_changed_hook): Remove prototype.
7242 * valops.c (value_assign): Remove reference to
7243 deprecated_register_changed_hook.
7244 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7245 Add comment documenting the function.
7246 (tui_register_changed_observer): Define.
7247 (tui_install_hooks): Remove reference to
7248 deprecated_register_changed_hook. Set
7249 tui_register_changed_observer.
7250 (tui_remove_hooks): Remove reference to
7251 deprecated_register_changed_hook. Unset
7252 tui_register_changed_observer.
7253
7254 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7255
7256 PR compile/18484
7257 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7258
7259 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
7260
7261 PR exp/18617
7262 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7263
7264 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7265
7266 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7267
7268 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7269
7270 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7271 Use safe_strerror() instead of strerror().
7272
7273 2015-07-07 Yao Qi <yao.qi@linaro.org>
7274
7275 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7276 * features/arm-with-m-fpa-layout.c: Regenerated.
7277 * features/arm-with-m-vfp-d16.xml: Likewise.
7278 * features/arm-with-m-vfp-d16.c: Regenerated.
7279 * features/arm-with-m.xml: Likewise.
7280 * features/arm-with-m.c: Regenerated.
7281 * features/arm-with-neon.xml: Likewise.
7282 * features/arm-with-neon.c: Regenerated.
7283 * features/arm-with-vfpv2.xml: Likewise.
7284 * features/arm-with-vfpv2.c: Regenerated.
7285 * features/arm-with-vfpv3.xml: Likewise.
7286 * features/arm-with-vfpv3.c: Regenerated.
7287
7288 2015-07-07 Yao Qi <yao.qi@linaro.org>
7289
7290 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7291 arm-linux-nat.c.
7292 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7293 elf/external.h.
7294 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7295 if target is 32-bit.
7296 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7297 if target is 32-bit.
7298 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7299 if target is 32-bit.
7300 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7301 if target is 32-bit.
7302 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7303 (aarch64_linux_read_description): Return the right target
7304 description.
7305 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7306 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7307 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7308 arm-linux-tdep.o.
7309
7310 2015-07-07 Yao Qi <yao.qi@linaro.org>
7311
7312 * aarch32-linux-nat.c: New file.
7313 * aarch32-linux-nat.h: New file.
7314 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7315 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7316 aarch32_gp_regcache_supply.
7317 (store_regs): Move code to aarch32-linux-nat.c. Call
7318 aarch32_gp_regcache_collect.
7319 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7320 aarch32_vfp_regcache_supply.
7321 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7322 aarch32_vfp_regcache_collect.
7323 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7324
7325 2015-07-07 Yao Qi <yao.qi@linaro.org>
7326
7327 * arm-linux-nat.c (store_fpregister): Remove.
7328 (store_register): Likewise.
7329 (fetch_fpregister): Likewise.
7330 (fetch_register): Likewise.
7331 (arm_linux_store_inferior_registers): Call store_regs and
7332 store_fpregs instead.
7333 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7334 fetch_regs instead.
7335
7336 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7339 and focus commands.
7340
7341 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7342
7343 * NEWS: Create a new section for the next release branch.
7344 Rename the section of the current branch, now that it has
7345 been cut.
7346
7347 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7348
7349 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7350 * version.in: Bump version to 7.10.50.DATE-cvs.
7351
7352 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7353
7354 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7355 breakpoints in a special way.
7356 (remove_breakpoint): Likewise.
7357 (mark_breakpoints_out): Likewise.
7358
7359 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * doc/gdb.texinfo (TUI): Add comma after @xref.
7362
7363 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7366 instead of casting the structure type.
7367
7368 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7369
7370 * valops.c (search_struct_field): Remove OFFSET parameter.
7371 (value_cast_structs): Adjust calls to search_struct_field.
7372 (value_struct_elt): Same.
7373 (find_overload_match): Same.
7374
7375 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7376
7377 * value.c (value_fetch_lazy): Update comment, change return
7378 value to void.
7379 * value.h (value_fetch_lazy): Change return value to void.
7380
7381 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7384 (tui_win_name): Make parameter and result const.
7385 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7386
7387 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7388
7389 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7390 use printf_unfiltered.
7391 (set_mpx_cmd): Add missing trailing space to command string
7392 literal.
7393 (_initialize_i386_tdep): Give the "mpx" prefix command its
7394 correct name.
7395
7396 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7397
7398 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7399 (enum rx_frame_type): New.
7400 (struct rx_prologue): Add new field `frame_type'.
7401 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7402 parameter in the prologue struct. Add code for recording
7403 locations of PC and PSW for fast interrupt and exception frames.
7404 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7405 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7406 (rx_frame_type): New function.
7407 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7408 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7409 `this_cache'.
7410 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7411 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7412 RX_FRAME_TYPE_FAST_INTERRUPT.
7413 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7414 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7415 (rx_frame_unwind): Use rx_frame_sniffer instead of
7416 default_frame_sniffer.
7417 (rx_frame_unwind): New unwinder.
7418 (rx_gdbarch_init): Register new unwinder.
7419
7420 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7421
7422 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7423 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7424 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7425 and RX_FPSW_REGNUM.
7426 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7427
7428 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7429
7430 Fix GCC false warning.
7431 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7432
7433 2015-07-02 Yao Qi <yao.qi@linaro.org>
7434
7435 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7436 typo in the debugging message.
7437
7438 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7439
7440 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7441 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7442 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7443 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7444 (btrace_maint_clear): New.
7445 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7446 (pt_print_packet, btrace_maint_decode_pt)
7447 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7448 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7449 (maint_btrace_packet_history_cmd)
7450 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7451 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7452 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7453 (maint_info_btrace_cmd, _initialize_btrace): New.
7454 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7455 (btrace_maint_packet_history, btrace_maint_info): New.
7456 (btrace_thread_info) <maint>: New.
7457 * NEWS: Announce it.
7458
7459 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7460
7461 * btrace.c (btrace_fetch): Append the new trace data.
7462 (btrace_clear): Clear the stored trace data.
7463 * btrace.h (btrace_thread_info) <data>: New.
7464 * common/btrace-common.h (btrace_data_clear)
7465 (btrace_data_append): New.
7466 * common/btrace-common.c (btrace_data_clear)
7467 (btrace_data_append): New.
7468
7469 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7470
7471 * nat/linux-btrace.c (linux_enable_bts): Check for
7472 PERF_ATTR_SIZE_VER5.
7473 Check for data_offset and data_size fields. Use them.
7474
7475 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7476
7477 * NEWS: Announce new commands "record btrace pt" and "record pt".
7478 Announce new options "set|show record btrace pt buffer-size".
7479 * btrace.c: Include "rsp-low.h".
7480 Include "inttypes.h".
7481 (btrace_add_pc): Add forward declaration.
7482 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7483 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7484 (btrace_compute_ftrace_pt): New.
7485 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7486 (check_xml_btrace_version): Update version check.
7487 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7488 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7489 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7490 (btrace_pt_children): New.
7491 (btrace_children): Add support for "pt".
7492 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7493 (btrace_conf_children): Add support for "pt".
7494 * btrace.h: Include "intel-pt.h".
7495 (btrace_pt_error): New.
7496 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7497 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7498 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7499 (struct btrace_config_pt): New.
7500 (struct btrace_config)<pt>: New.
7501 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7502 (struct btrace_data)<pt>: New.
7503 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7504 (pt): New.
7505 * features/btrace.dtd (btrace)<pt>: New.
7506 (pt, pt-config, cpu): New.
7507 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7508 (perf_event_pt_event_type, kernel_supports_pt)
7509 (linux_supports_pt): New.
7510 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7511 (linux_enable_bts): Free tinfo on error.
7512 (linux_enable_pt): New.
7513 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7514 (linux_disable_pt): New.
7515 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7516 (linux_fill_btrace_pt_config, linux_read_pt): New.
7517 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7518 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7519 (struct btrace_target_info)<pt>: New.
7520 * record-btrace.c (set_record_btrace_pt_cmdlist)
7521 (show_record_btrace_pt_cmdlist): New.
7522 (record_btrace_print_pt_conf): New.
7523 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7524 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7525 (cmd_record_btrace_pt_start): New.
7526 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7527 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7528 (_initialize_record_btrace): Add new commands.
7529 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7530 (remote_protocol_features): Add "Qbtrace:pt".
7531 Add "Qbtrace-conf:pt:size".
7532 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7533 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7534 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7535 (_initialize_remote): Add new commands.
7536
7537 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7538
7539 * configure.ac: check for libipt
7540 * configure: Regenerate.
7541 * config.in: Regenerate.
7542 * Makefile.in (LIBIPT): New.
7543 (CLIBS): Add $LIBIPT.
7544 * NEWS: document new configure options
7545
7546 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7547
7548 * compile/compile-object-load.c (compile_object_load): Replace debug
7549 message "lookup undefined ELF symbol" by 3 more specific messages.
7550
7551 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7552
7553 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7554 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7555 (rl78_gdbarch_init): Initialize rl78_psw_type.
7556
7557 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7558
7559 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7560 Update commentary. Always refresh the registers when frame
7561 information has changed.
7562 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7563 Change return type to int. Return 1 if frame information has
7564 changed, 0 otherwise.
7565 (tui_before_prompt): Update commentary.
7566 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7567 int.
7568
7569 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7570
7571 PR tui/13378
7572 * frame.c (select_frame): Remove reference to
7573 deprecated_selected_frame_level_changed_hook.
7574 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7575 declaration.
7576 * stack.c (deprecated_selected_frame_level_changed_hook):
7577 Likewise.
7578 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7579 Rename to ...
7580 (tui_refresh_frame_and_register_information): ... this. Bail
7581 out if there is no stack. Don't update register information
7582 unless registers_too_p is true.
7583 (tui_print_frame_info_listing_hook): Rename to ...
7584 (tui_dummy_print_frame_info_listing_hook): ... this.
7585 (tui_before_prompt): New function.
7586 (tui_normal_stop): New function.
7587 (tui_before_prompt_observer): New observer.
7588 (tui_normal_stop_observer): New observer.
7589 (tui_install_hooks): Set
7590 deprecated_print_frame_info_listing_hook to
7591 tui_dummy_print_frame_info_listing_hook. Register
7592 tui_before_prompt_observer to call tui_before_prompt and
7593 tui_normal_stop_observer to call tui_normal_stop. Remove
7594 reference to deprecated_selected_frame_level_changed_hook.
7595 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7596 and tui_normal_stop_observer. Remove reference to
7597 deprecated_selected_frame_level_changed_hook.
7598
7599 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7600
7601 PR tui/13378
7602 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7603 return an int instead of void. Return whether the locator
7604 window has changed.
7605 (tui_show_frame_info): If the locator info has not changed, then
7606 bail out early to avoid refreshing the windows.
7607
7608 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7609
7610 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7611 LOCATOR_WIN to tui_alloc_content.
7612
7613 2015-06-30 Yao Qi <yao.qi@linaro.org>
7614
7615 PR tdep/18605
7616 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7617 instructions.
7618
7619 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7620
7621 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7622 (rx_dwarf_reg_to_regnum): New function.
7623 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7624 unwinding.
7625
7626 2015-06-29 Pedro Alves <palves@redhat.com>
7627
7628 PR threads/18127
7629 * infcall.c (run_inferior_call): On infcall success, if the thread
7630 was marked stopped before, reset it back to stopped.
7631 * infrun.c (resume): Don't suppress the set_running calls when
7632 doing an infcall.
7633 (normal_stop): Only discard the finish_thread_state cleanup if the
7634 infcall succeeded.
7635
7636 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7637
7638 * MAINTAINERS (Write After Approval): Update my email address.
7639
7640 2015-06-26 Keith Seitz <keiths@redhat.com>
7641 Doug Evans <dje@google.com>
7642
7643 PR 16253
7644 * block.c (block_lookup_symbol): For non-function blocks,
7645 continue to search for a symbol with an exact domain match
7646 Otherwise, return any previously found "best domain" symbol.
7647 (block_lookup_symbol_primary): Likewise.
7648
7649 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7650
7651 * NEWS: Mention the new option "history remove-duplicates".
7652 * top.c (history_remove_duplicates): New static variable.
7653 (show_history_remove_duplicates): New static function.
7654 (gdb_add_history): Conditionally remove duplicate history
7655 entries.
7656 (init_main): Add "history remove-duplicates" option.
7657
7658 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7659
7660 * tui/tui-win.c (focus_completer): New static function.
7661 (_initialize_tui_win): Set the completion function of the
7662 "focus" command to focus_completer.
7663
7664 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7665
7666 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7667 and language_asm..
7668 * symtab.c (find_function_start_sal): Likewise.
7669
7670 2015-06-25 Gary Benson <gbenson@redhat.com>
7671
7672 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7673 it is the empty string after trailing slashes have been stripped.
7674
7675 2015-06-25 Gary Benson <gbenson@redhat.com>
7676
7677 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7678 * infrun.c (follow_exec): Likewise.
7679 * remote.c (remote_filesystem_is_local): Likewise.
7680 * solib.c (solib_find_1): Likewise.
7681
7682 2015-06-24 Keith Seitz <keiths@redhat.com>
7683
7684 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7685 return value from lrealpath.
7686
7687 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7688
7689 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7690
7691 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7692
7693 * remote-sim.c: Include gdb_bfd.h.
7694 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7695 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7696
7697 2015-06-24 Yao Qi <yao.qi@linaro.org>
7698
7699 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7700 set_gdbarch_get_siginfo_type.
7701 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7702 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7703 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7704 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7705 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7706 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7707 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7708 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7709 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7710 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7711
7712 2015-06-24 Gary Benson <gbenson@redhat.com>
7713
7714 * common/buffer.c (stdint.h): Do not include.
7715 * common/print-utils.c (stdint.h): Likewise.
7716 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7717 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7718 * ft32-tdep.c (gdb_assert.h): Likewise.
7719 * guile/scm-utils.c (stdint.h): Likewise.
7720 * i386-linux-tdep.c (stdint.h): Likewise.
7721 * i386-tdep.c (stdint.h): Likewise.
7722 * nat/linux-btrace.c (stdint.h): Likewise.
7723 * nat/linux-btrace.h (stdint.h): Likewise.
7724 * nat/linux-ptrace.c (stdint.h): Likewise.
7725 * nat/mips-linux-watch.h (stdint.h): Likewise.
7726 * ppc-linux-nat.c (stdint.h): Likewise.
7727 * python/python-internal.h (stdint.h): Likewise.
7728 * stub-termcap.c (stdlib.h): Likewise.
7729 * target/target.h (stdint.h): Likewise.
7730 * xtensa-linux-nat.c (stdint.h): Likewise.
7731
7732 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7733
7734 * top.c (init_history): Look at errno after calling strtol to
7735 properly map large GDBHISTSIZE values to infinity.
7736
7737 2015-06-23 Doug Evans <dje@google.com>
7738
7739 * inferior.h (struct inferior_suspend_state): Delete, unused.
7740 All references deleted.
7741
7742 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7743
7744 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7745 (microblaze_push_dummy_call): Likewise.
7746 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7747 and set_gdbarch_push_dummy_call.
7748
7749 2015-06-23 Yao Qi <yao.qi@linaro.org>
7750
7751 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7752 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7753 (amd64_linux_store_inferior_registers): Likewise.
7754 * arm-linux-nat.c (fetch_fpregister): Likewise.
7755 (fetch_fpregs, store_fpregister): Likewise.
7756 (store_fpregister, store_fpregs): Likewise.
7757 (fetch_register, fetch_regs): Likewise.
7758 (store_register, store_regs): Likewise.
7759 (fetch_vfp_regs, store_vfp_regs): Likewise.
7760 (arm_linux_read_description): Check have_ptrace_getregset is
7761 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7762 or TRIBOOL_FALSE.
7763 * i386-linux-nat.c (fetch_xstateregs): Check
7764 have_ptrace_getregset is not TRIBOOL_TRUE.
7765 (store_xstateregs): Likewise.
7766 * linux-nat.c (have_ptrace_getregset): Change its type to
7767 enum tribool.
7768 * linux-nat.h (tribool): New enum.
7769 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7770 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7771
7772 2015-06-19 Doug Evans <dje@google.com>
7773
7774 * NEWS: Mention Sun's version of stabs is no longer supported.
7775 * elfread.c (free_elfinfo): Delete. All uses updated.
7776 (elfstab_offset_sections): Delete. All uses updated.
7777 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7778 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7779 All uses updated.
7780 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7781 All callers updated.
7782
7783 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7784
7785 * common/rsp-low.c (needs_escaping): New.
7786 (remote_escape_output): Add unit_size parameter. Refactor to
7787 support multi-byte addressable units. Rename parameters.
7788 * common/rsp-low.h (remote_escape_output): Add unit_size
7789 parameter and rename others. Update doc.
7790 * remote.c (align_for_efficient_write): New.
7791 (remote_write_bytes_aux): Add unit_size parameter and use it.
7792 Rename some variables. Update doc.
7793 (remote_xfer_partial): Get unit size and use it.
7794 (remote_read_bytes_1): Add unit_size parameter and use it.
7795 Rename some variables. Update doc.
7796 (remote_write_bytes): Same.
7797 (remote_xfer_live_readonly_partial): Same.
7798 (remote_read_bytes): Same.
7799 (remote_flash_write): Update call to remote_write_bytes_aux.
7800 (remote_write_qxfer): Update call to remote_escape_output.
7801 (remote_search_memory): Same.
7802 (remote_hostio_pwrite): Same.
7803
7804 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7805
7806 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7807 locations as inserted.
7808 Update and expand comment about permanent locations.
7809 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7810 Move comment to add_location_to_breakpoint.
7811 (update_global_location_list): Don't error out if a permanent
7812 breakpoint is not marked inserted.
7813 Don't error out if a non-permanent breakpoint location is inserted on
7814 top of a permanent breakpoint.
7815
7816 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7817
7818 * breakpoint.c (make_breakpoint_permanent): Remove unused
7819 function.
7820 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7821
7822 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7823
7824 PR gdb/16999
7825 * NEWS: Mention new GDBHISTSIZE behavior.
7826 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7827 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7828
7829 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7830
7831 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7832 * top.c (init_history): Read from GDBHISTSIZE instead of
7833 HISTSIZE.
7834 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7835
7836 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7837
7838 * top.c (gdb_safe_append_history): Do not call
7839 history_truncate_file if the history is not stifled.
7840
7841 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7842
7843 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7844 * syscalls/s390x-linux.xml: Likewise.
7845
7846 2015-06-16 Michael Eager <eager@eagercon.com>
7847
7848 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7849
7850 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7851
7852 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7853 target_terminal_ours_for_output() before calling
7854 tui_show_frame_info(), and restore the original terminal
7855 settings afterwards.
7856
7857 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7858
7859 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7860
7861 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7862
7863 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7864 memory unit size.
7865 (mi_cmd_data_write_memory_bytes): Same.
7866
7867 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7868
7869 * corefile.c (write_memory): Update doc.
7870 * gdbcore.h (write_memory): Same.
7871
7872 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7875 (dump_mapping_p): Use it for parameter filterflags.
7876 (linux_find_memory_regions_full): Use it for variable filterflags.
7877
7878 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7879 Jan Kratochvil <jan.kratochvil@redhat.com>
7880
7881 Merge multiple hex conversions.
7882 * monitor.c: Include rsp-low.h.
7883 (fromhex): Remove definition.
7884
7885 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7886 Jan Kratochvil <jan.kratochvil@redhat.com>
7887
7888 Move utility functions to common/.
7889 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7890 Move defs to common/common-utils.c.
7891 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7892 (skip_to_space_const): Move decls to common/common-utils.h.
7893 * common/common-defs.h: Move include of common-types.h before
7894 common-utils.h.
7895 * common/common-utils.c: Include host-defs.h and ctype.h.
7896 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7897 from utils.c.
7898 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7899 cli/cli-utils.c.
7900 * common/common-utils.h (strtoulst): Move decl from utils.h.
7901 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7902 Move from cli/cli-utils.h.
7903 * common/host-defs.h: Include limits.h.
7904 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7905 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7906 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7907 common/common-utils.h.
7908 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7909 (strtoulst): Move to common/common-utils.c.
7910 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7911
7912 2015-06-15 Yao Qi <yao.qi@linaro.org>
7913
7914 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7915
7916 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7917
7918 * build-id.c: Don't include elf-bfd.h.
7919 (build_id_bfd_get): Use bfd_build_id.
7920 (build_id_verify): Ditto.
7921 * build-id.h: Ditto.
7922 (find_separate_debug_file_by_buildid): Ditto.
7923 * python/py-objfile.c: Don't include elf-bfd.h.
7924 (objfpy_get_build_id) Use bfd_build_id.
7925 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7926 * coffread.c: Include build-id.h.
7927 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7928
7929 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7930
7931 * windows-nat.c (do_windows_fetch_inferior_registers)
7932 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7933 conditional with __CYGWIN__.
7934
7935 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * completer.c: Add arch-utils.h include.
7938 (enum reg_completer_targets): New enum.
7939 (reg_or_group_completer_1): New function containing old
7940 reg_or_group_completer, add and use new parameter to control what
7941 is completed on. Use get_current_arch rather than architecture of
7942 currently selected frame.
7943 (reg_or_group_completer): Call new reg_or_group_completer_1.
7944 (reggroup_completer): Call new reg_or_group_completer_1.
7945 * completer.h (reggroup_completer): Add declaration.
7946 * tui/tui-regs.c: Add 'completer.h' include.
7947 (tui_reg_next_command): Renamed to...
7948 (tui_reg_next): ...this. Adjust parameters and return rather than
7949 display new group.
7950 (tui_reg_prev_command): Renamed to...
7951 (tui_reg_prev): ...this. Adjust parameters and return rather than
7952 display new group.
7953 (tui_reg_float_command): Delete.
7954 (tui_reg_general_command): Delete.
7955 (tui_reg_system_command): Delete.
7956 (tui_reg_command): Rewrite to perform switching of register group.
7957 Add header comment.
7958 (tuireglist): Remove.
7959 (tui_reggroup_completer): New function.
7960 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7961 creation of 'tui reg' command.
7962 * NEWS: Add comment about 'tui reg' changes.
7963
7964 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7965
7966 * target.c (target_read): Consider addressable unit size when
7967 reading from a memory object.
7968 (read_memory_robust): Same.
7969 (read_whatever_is_readable): Same.
7970 (target_write_with_progress): Consider addressable unit size
7971 when writing to a memory object.
7972 * target.h (target_read): Update documentation.
7973 (target_write): Add documentation.
7974
7975 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7976
7977 * arch-utils.h (default_addressable_memory_unit_size): New.
7978 * arch-utils.c (default_addressable_memory_unit_size): New.
7979 * gdbarch.sh (addressable_memory_unit_size): New.
7980 * gdbarch.h: Re-generate.
7981 * gdbarch.c: Re-generate.
7982
7983 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7984
7985 * target.c (target_read): Rename variables and use
7986 TARGET_XFER_E_IO.
7987 (target_read_with_progress): Same.
7988 (read_memory_robust): Constify parameters and rename
7989 variables.
7990 (read_whatever_is_readable): Constify parameters,
7991 rename variables, adjust formatting.
7992 * target.h (read_memory_robust): Constify parameters.
7993
7994 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7995
7996 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7997 synthetic (non-AltiVec) vector types.
7998 (ppc64_sysv_abi_return_value): Likewise.
7999
8000 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8001
8002 PR breakpoints/16465
8003 * breakpoint.c (create_breakpoint): Save extra_string for
8004 pending breakpoints.
8005
8006 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8007
8008 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8009 and bt_mask to CORE_ADDR.
8010
8011 2015-06-11 Gary Benson <gbenson@redhat.com>
8012
8013 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8014 (mnsh_recv_message): Likewise.
8015
8016 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8017
8018 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8019 long long int and plongest instead of %ll.
8020
8021 2015-06-11 Gary Benson <gbenson@redhat.com>
8022
8023 * nat/linux-namespaces.c (gdb_wait.h): New include.
8024 (sys/wait.h): Do not include.
8025
8026 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8027
8028 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8029 end_sequence is true.
8030
8031 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8032
8033 Code cleanup.
8034 * solib-target.c (library_list_start_list): Use explicit NULL
8035 comparison.
8036
8037 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8038
8039 * solib-target.c (library_list_start_list): Do not dereference
8040 variable version in its initialization. Make the VERSION check handle
8041 NULL.
8042 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8043
8044 2015-06-10 Gary Benson <gbenson@redhat.com>
8045
8046 * NEWS: Announce support for direct access of executable and
8047 shared library files when attaching to inferiors in containers
8048 on GNU/Linux systems.
8049
8050 2015-06-10 Gary Benson <gbenson@redhat.com>
8051
8052 * remote.c (struct remote_state) <fs_pid>: New field.
8053 (new_remote_state): Initialize the above.
8054 (PACKET_vFile_setfs): New enum value.
8055 (remote_hostio_set_filesystem): New function.
8056 (remote_hostio_open): Call the above.
8057 (remote_hostio_unlink): Likewise.
8058 (remote_hostio_readlink): Likewise.
8059 (_initialize_remote): Register new "set/show remote
8060 hostio-setfs-packet" command.
8061 * NEWS: Announce new vFile:setfs packet.
8062
8063 2015-06-10 Gary Benson <gbenson@redhat.com>
8064
8065 * linux-nat.c (nat/linux-namespaces.h): New include.
8066 (fileio.h): Likewise.
8067 (linux_nat_filesystem_is_local): New function.
8068 (linux_nat_fileio_pid_of): Likewise.
8069 (linux_nat_fileio_open): Likewise.
8070 (linux_nat_fileio_readlink): Likewise.
8071 (linux_nat_fileio_unlink): Likewise.
8072 (linux_nat_add_target): Initialize to_filesystem_is_local,
8073 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8074 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8075 commands.
8076 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8077
8078 2015-06-10 Gary Benson <gbenson@redhat.com>
8079
8080 * target.h (struct inferior): New forward declaration.
8081 (struct target_ops) <to_filesystem_is_local>: Update comment.
8082 (struct target_ops) <to_fileio_open>: New argument inf.
8083 Update comment. All implementations updated.
8084 (struct target_ops) <to_fileio_unlink>: Likewise.
8085 (struct target_ops) <to_fileio_readlink>: Likewise.
8086 (target_filesystem_is_local): Update comment.
8087 (target_fileio_open): New argument inf. Update comment.
8088 (target_fileio_unlink): Likewise.
8089 (target_fileio_readlink): Likewise.
8090 (target_fileio_read_alloc): Likewise.
8091 (target_fileio_read_stralloc): Likewise.
8092 * target.c (target_fileio_open): New argument inf.
8093 Pass inf to implementation. Update debug printing.
8094 (target_fileio_unlink): Likewise.
8095 (target_fileio_readlink): Likewise.
8096 (target_fileio_read_alloc_1): New argument inf. Pass inf
8097 to target_fileio_open.
8098 (target_fileio_read_alloc): New argument inf. Pass inf to
8099 target_fileio_read_alloc_1.
8100 (target_fileio_read_stralloc): Likewise.
8101 * gdb_bfd.c (inferior.h): New include.
8102 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8103 argument with new argument "inferior". Pass inferior to
8104 target_fileio_open.
8105 (gdb_bfd_open): Supply inferior argument to
8106 gdb_bfd_iovec_fileio_open.
8107 * linux-tdep.c (linux_info_proc): Supply inf argument to
8108 relevant target_fileio calls.
8109 (linux_find_memory_regions_full): Likewise.
8110 (linux_fill_prpsinfo): Likewise.
8111 * remote.c (remote_filesystem_is_local): Supply inf
8112 argument to remote_hostio_open.
8113 (remote_file_put): Likewise.
8114 (remote_file_get): Likewise.
8115 (remote_file_delete): Supply inf argument to
8116 remote_hostio_unlink.
8117
8118 2015-06-10 Gary Benson <gbenson@redhat.com>
8119
8120 * inf-child.c (inf_child_fileio_open): Replace comment.
8121 (inf_child_fileio_pwrite): Likewise.
8122 (inf_child_fileio_pread): Likewise.
8123 (inf_child_fileio_fstat): Insert blank line before comment.
8124 (inf_child_fileio_close): Replace comment.
8125 (inf_child_fileio_unlink): Likewise.
8126 (inf_child_fileio_readlink): Likewise.
8127 * remote.c (remote_hostio_open): Likewise.
8128 (remote_hostio_pread): Likewise.
8129 (remote_hostio_pwrite): Likewise.
8130 (remote_hostio_close): Likewise.
8131 (remote_hostio_unlink): Likewise.
8132 (remote_hostio_readlink): Likewise.
8133 (remote_hostio_fstat): Likewise.
8134 (remote_filesystem_is_local): Likewise.
8135 * target.c (target_fileio_open): Likewise.
8136 (target_fileio_pwrite): Likewise.
8137 (target_fileio_pread): Likewise.
8138 (target_fileio_fstat): Insert blank line before comment.
8139 (target_fileio_close): Replace comment.
8140 (target_fileio_unlink): Likewise.
8141 (target_fileio_readlink): Likewise.
8142 (target_fileio_read_alloc): Likewise.
8143 (target_fileio_read_stralloc): Likewise.
8144
8145 2015-06-10 Gary Benson <gbenson@redhat.com>
8146
8147 * linux-thread-db.c (nat/linux-namespaces.h): New include.
8148 (check_pid_namespace_match): Use linux_ns_same rather than
8149 linux_proc_pid_get_ns to spot PID namespace mismatches.
8150 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
8151 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
8152
8153 2015-06-10 Gary Benson <gbenson@redhat.com>
8154
8155 * configure.ac (AC_CHECK_FUNCS): Add setns.
8156 * config.in: Regenerate.
8157 * configure: Likewise.
8158 * nat/linux-namespaces.h: New file.
8159 * nat/linux-namespaces.c: Likewise.
8160 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
8161 (linux-namespaces.o): New rule.
8162 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
8163 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8164 * config/arm/linux.mh (NATDEPFILES): Likewise.
8165 * config/i386/linux.mh (NATDEPFILES): Likewise.
8166 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8167 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8168 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8169 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8170 * config/mips/linux.mh (NATDEPFILES): Likewise.
8171 * config/pa/linux.mh (NATDEPFILES): Likewise.
8172 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8173 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8174 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8175 * config/s390/linux.mh (NATDEPFILES): Likewise.
8176 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8177 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8178 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8179 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8180
8181 2015-06-10 Gary Benson <gbenson@redhat.com>
8182
8183 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8184 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8185 (make_cleanup_close): Likewise.
8186 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8187 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8188 (make_cleanup_close): Likewise.
8189
8190 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8191
8192 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8193 from SuspendThread().
8194
8195 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8196
8197 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8198 from OutputDebugString.
8199
8200 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8201 Mircea Gherzan <mircea.gherzan@intel.com>
8202
8203 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8204 MPX_BT_MASK_32): New macros.
8205 (i386_mpx_set_bounds): New function that implements
8206 the command "set-mpx-bound".
8207 (i386_mpx_enabled): Helper function to test MPX availability.
8208 (i386_mpx_bd_base): Helper function to calculate the base directory
8209 address.
8210 (i386_mpx_get_bt_entry): Helper function to access a bound
8211 table entry.
8212 (i386_mpx_print_bounds): Effectively display bound information.
8213 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8214 "show mpx".
8215 (_initialize_i386_tdep):
8216 Add "bound" to the commands "show mpx" and "set mpx" commands.
8217 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8218 and "show mpx" commands.
8219 * NEWS: List new commands for MPX support.
8220
8221 2015-06-09 Gary Benson <gbenson@redhat.com>
8222
8223 * common/fileio.h (fileio_to_host_mode): New declaration.
8224 * common/fileio.c (fileio_to_host_mode): New Function.
8225 * inf-child.c (inf_child_fileio_open): Process mode argument
8226 with fileio_to_host_mode.
8227
8228 2015-06-09 Gary Benson <gbenson@redhat.com>
8229
8230 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8231 conditional.
8232
8233 2015-06-05 Gary Benson <gbenson@redhat.com>
8234
8235 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8236 * remote.c (remote_filesystem_is_local): ...here.
8237
8238 2015-06-04 Yao Qi <yao.qi@linaro.org>
8239
8240 * gdbarch.c: Regenerate it.
8241
8242 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8243
8244 * arch-utils.c (default_infcall_munmap): New.
8245 * arch-utils.h (default_infcall_munmap): New declaration.
8246 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8247 (munmap_list_free, munmap_listp_free_cleanup): New.
8248 (struct setup_sections_data): Add field munmap_list_headp.
8249 (setup_sections): Call munmap_list_add.
8250 (compile_object_load): New variable munmap_list_head, initialize
8251 setup_sections_data.munmap_list_headp, return munmap_list_head.
8252 * compile/compile-object-load.h (struct munmap_list): New declaration.
8253 (struct compile_module): Add field munmap_list_head.
8254 (munmap_list_free): New declaration.
8255 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8256 munmap_list_head.
8257 (do_module_cleanup): Call munmap_list_free.
8258 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8259 * gdbarch.c: Regenerate.
8260 * gdbarch.h: Regenerate.
8261 * gdbarch.sh (infcall_munmap): New.
8262 * linux-tdep.c (linux_infcall_munmap): New.
8263 (linux_init_abi): Install it.
8264
8265 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8266
8267 PR gdb/15564
8268 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8269
8270 2015-06-02 Yao Qi <yao.qi@linaro.org>
8271
8272 * i386-linux-nat.c: Include linux-nat.h.
8273
8274 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8275 Jan Kratochvil <jan.kratochvil@redhat.com>
8276
8277 PR symtab/18392
8278 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8279 assertion.
8280 * dwarf2loc.c (chain_candidate): Likewise.
8281
8282 2015-06-01 Yao Qi <yao.qi@linaro.org>
8283
8284 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8285 (store_vfp_regs): Use PTRACE_SETREGSET.
8286
8287 2015-06-01 Yao Qi <yao.qi@linaro.org>
8288
8289 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8290 (fetch_fpregs): Likewise.
8291 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8292 (store_fpregs): Likewise.
8293
8294 2015-06-01 Yao Qi <yao.qi@linaro.org>
8295
8296 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8297 (fetch_regs): Likewise.
8298 (store_regs): Use PTRACE_SETREGSET.
8299 (store_register): Likewise.
8300
8301 2015-06-01 Yao Qi <yao.qi@linaro.org>
8302
8303 * arm-linux-nat.c (arm_linux_read_description): Check whether
8304 kernel supports PTRACE_GETREGSET.
8305
8306 2015-06-01 Yao Qi <yao.qi@linaro.org>
8307
8308 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8309 * linux-nat.c: ... here.
8310 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8311 to ...
8312 * linux-nat.h: ... here.
8313
8314 2015-06-01 Yao Qi <yao.qi@linaro.org>
8315
8316 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8317 * i386-linux-nat.c: Likewise.
8318 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8319 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8320 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8321 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8322 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8323
8324 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8325
8326 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8327 compatible to what read_child and write_child return. This
8328 unbreaks that DJGPP build of GDB which was broken since v7.7.
8329
8330 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8331
8332 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8333
8334 2015-05-29 Roland McGrath <mcgrathr@google.com>
8335
8336 PR gdb/18464
8337 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8338 rather than internal_error for an unrecognized value.
8339
8340 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8341
8342 * xtensa-tdep.c (xtensa_pseudo_register_read)
8343 (xtensa_pseudo_register_write): Don't alias last pseudo register
8344 to a1.
8345
8346 2015-05-28 Don Breazeal <donb@codesourcery.com>
8347
8348 * infrun.c (follow_fork_inferior): Ensure the use of
8349 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8350 messages.
8351
8352 2015-05-28 Doug Evans <dje@google.com>
8353
8354 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8355
8356 2015-05-28 Yao Qi <yao.qi@linaro.org>
8357
8358 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8359 (arm_linux_fetch_inferior_registers): Use
8360 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8361 (arm_linux_store_inferior_registers): Likewise.
8362 (arm_linux_read_description): Don't set
8363 arm_linux_has_wmmx_registers.
8364 * arm-tdep.c (arm_gdbarch_init): Set
8365 tdep->have_wmmx_registers according target descriptions.
8366 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8367 field.
8368
8369 2015-05-28 Yao Qi <yao.qi@linaro.org>
8370
8371 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8372 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8373 instead of arm_linux_vfp_register_count.
8374 (store_vfp_regs): Likewise.
8375 (arm_linux_fetch_inferior_registers): Likewise.
8376 (arm_linux_store_inferior_registers): Likewise.
8377 (arm_linux_read_description): Don't set
8378 arm_linux_vfp_register_count.
8379 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8380 Adjust.
8381 * arm-tdep.c (arm_gdbarch_init): Add assert on
8382 vfp_register_count.
8383 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8384 field to vfp_register_count. All users updated.
8385
8386 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8387
8388 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8389 ELFOSABI_GNU binaries.
8390
8391 2015-05-27 Doug Evans <dje@google.com>
8392
8393 * dwarf2read.c (lnp_state_machine): New typedef.
8394 (lnp_reader_state): New typedef.
8395 (dwarf_record_line_1): Renamed from dwarf_record_line.
8396 All callers updated.
8397 (dwarf_record_line): New function.
8398 (init_lnp_state_machine): New function.
8399 (check_line_address): Replace p_record_line parameter with state.
8400 All callers updated.
8401 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8402 Update to record state in lnp_state_machine.
8403
8404 2015-05-27 Doug Evans <dje@google.com>
8405
8406 * dwarf2read.c (record_line_ftype): New typedef.
8407 (check_line_address): New function.
8408 (dwarf_decode_lines_1): Call it.
8409
8410 2015-05-27 Doug Evans <dje@google.com>
8411
8412 * NEWS: Mention "set debug dwarf-line".
8413 * dwarf2read.c (dwarf_line_debug): New static global.
8414 (add_include_dir): Add debug dwarf-line support.
8415 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8416 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8417
8418 2015-05-27 Doug Evans <dje@google.com>
8419
8420 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8421 All callers updated.
8422 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8423 * cp-support.h (cp_lookup_nested_symbol): Update.
8424
8425 2015-05-27 Doug Evans <dje@google.com>
8426
8427 PR symtab/18258
8428 * block.c (block_find_symbol): New function.
8429 (block_find_non_opaque_type): Ditto.
8430 (block_find_non_opaque_type_preferred): Ditto.
8431 * block.h (block_symbol_matcher_ftype): New typedef.
8432 (block_find_symbol): Declare.
8433 (block_find_non_opaque_type): Ditto.
8434 (block_find_non_opaque_type_preferred): Ditto.
8435 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8436 * psymtab.c (psym_lookup_symbol): Ditto.
8437 * symtab.c (basic_lookup_transparent_type_1): New function.
8438 (basic_lookup_transparent_type): Call it.
8439
8440 2015-05-27 Yao Qi <yao.qi@linaro.org>
8441
8442 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8443 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8444
8445 2015-05-27 Yao Qi <yao.qi@linaro.org>
8446
8447 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8448 before operator &&.
8449 (aarch64_record_load_store): Likewise.
8450
8451 2015-05-26 Doug Evans <dje@google.com>
8452
8453 PR c++/18141, c++/18417.
8454 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8455 a typedef.
8456
8457 2015-05-26 Doug Evans <dje@google.com>
8458
8459 * NEWS: Add entries for command renamings.
8460 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8461 All uses updated.
8462 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8463 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8464 All uses updated.
8465 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8466 All callers updated. Fix spelling of DWARF in help text.
8467 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8468 All uses updated.
8469 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8470 All uses updated.
8471 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8472 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8473 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8474 All uses updated.
8475 (show_dwarf_always_disassemble): Renamed from
8476 show_dwarf2_always_disassemble. All callers updated.
8477 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8478 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8479 "set/show dwarf max-cache-age". Rename
8480 "set/show dwarf2 always-disassemble" to
8481 "set/show dwarf always-disassemble". Rename
8482 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8483 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8484
8485 2015-05-26 Doug Evans <dje@google.com>
8486
8487 PR python/18438
8488 * python/py-lazy-string.c (stpy_convert_to_value): Use
8489 gdbpy_gdb_memory_error not PyExc_MemoryError.
8490 (gdbpy_create_lazy_string_object): Ditto.
8491
8492 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8493
8494 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8495
8496 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8497
8498 * tui/tui-regs.c (tui_reg_prev_command): New function.
8499 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8500 * reggroups.c (reggroup_prev): New function.
8501 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8502
8503 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8504 Yao Qi <yao.qi@linaro.org>
8505
8506 * aarch64-linux-tdep.c: Include linux-record.h and
8507 record-full.h.
8508 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8509 (aarch64_syscall): New enum.
8510 (aarch64_canonicalize_syscall): New function.
8511 (aarch64_all_but_pc_registers_record): New function.
8512 (aarch64_linux_syscall_record): New function.
8513 (aarch64_linux_init_abi): Install AArch64 process record
8514 handler. Update to handle syscall recording.
8515 * aarch64-tdep.c: Include record.h and record-full.h.
8516 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8517 (struct aarch64_mem_r): Define.
8518 (aarch64_record_result): New enum.
8519 (struct insn_decode_record): Define.
8520 (insn_decode_record): New typedef.
8521 (aarch64_record_data_proc_reg): New function.
8522 (aarch64_record_data_proc_imm): New function.
8523 (aarch64_record_branch_except_sys): New function.
8524 (aarch64_record_load_store): New function.
8525 (aarch64_record_data_proc_simd_fp): New function.
8526 (aarch64_record_asimd_load_store): New function.
8527 (aarch64_record_decode_insn_handler): New function.
8528 (deallocate_reg_mem): New function.
8529 (aarch64_process_record): New function.
8530 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8531 New field.
8532 (aarch64_process_record): New extern declaration.
8533 * configure.tgt: Add linux-record.o to gdb_target_obs.
8534 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8535
8536 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8537
8538 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8539 targets.
8540
8541 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8542
8543 * amd64-tdep.c: Replace in_function_epilogue_p with
8544 stack_frame_destroyed_p throughout.
8545 * arch-utils.c: Ditto.
8546 * arch-utils.h: Ditto.
8547 * arm-tdep.c: Ditto.
8548 * breakpoint.c: Ditto.
8549 * gdbarch.sh: Ditto.
8550 * hppa-tdep.c: Ditto.
8551 * i386-tdep.c: Ditto.
8552 * mips-tdep.c: Ditto.
8553 * nios2-tdep.c: Ditto.
8554 * rs6000-tdep.c: Ditto.
8555 * s390-linux-tdep.c: Ditto.
8556 * score-tdep.c: Ditto.
8557 * sh-tdep.c: Ditto.
8558 * sparc-tdep.c: Ditto.
8559 * sparc-tdep.h: Ditto.
8560 * sparc64-tdep.c: Ditto.
8561 * spu-tdep.c: Ditto.
8562 * tic6x-tdep.c: Ditto.
8563 * tilegx-tdep.c: Ditto.
8564 * xstormy16-tdep.c: Ditto.
8565 * gdbarch.c, gdbarch.h: Re-generated.
8566
8567 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8568
8569 * NEWS: Mention 'tui enable' and 'tui disable'.
8570 * tui/tui.c (tui_enable_command): New function.
8571 (tui_disable_command): New function.
8572 (_initialize_tui): New function.
8573
8574 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8575
8576 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8577
8578 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8579
8580 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8581 buf_ptr is freed.
8582
8583 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8584
8585 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8586 into ...
8587 (tui_set_layout_for_display_command): ...here, before calling
8588 tui_set_layout. Only set the layout if gdb has not already
8589 entered the TUI_FAILURE state.
8590
8591 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * tui/tui-layout.c (layout_completer): New function.
8594 (_initialize_tui_layout): Set completer on layout command.
8595
8596 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8597
8598 * tui/tui-layout.c (tui_set_layout): Remove
8599 tui_register_display_type parameter. Remove all checking of this
8600 parameter, and reindent function. Update header comment.
8601 (tui_set_layout_for_display_command): Rename to...
8602 (tui_set_layout_by_name): ...this, and don't check for different
8603 register class types, don't pass a tui_register_display_type to
8604 tui_set_layout. Update header comment.
8605 (layout_names): Remove register set specific names.
8606 * tui/tui-layout.h (tui_set_layout): Remove
8607 tui_register_display_type parameter.
8608 * tui/tui.c (tui_rl_change_windows): Don't pass a
8609 tui_register_display_type to tui_set_layout.
8610 (tui_rl_delete_other_windows): Likewise.
8611 (tui_enable): Likewise.
8612 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8613 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8614 (TUI_GENERAL_REGS_NAME): Remove.
8615 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8616 (TUI_SPECIAL_REGS_NAME): Remove.
8617 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8618 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8619 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8620 (enum tui_register_display_type): Remove.
8621 (struct tui_layout_def): Remove regs_display_type and
8622 float_regs_display_type fields.
8623 (struct tui_data_info): Remove regs_display_type field.
8624 (tui_layout_command): Use new name for
8625 tui_set_layout_for_display_command.
8626 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8627 (tui_clear_win_detail): Don't initialise removed fields of
8628 win_info.
8629 * tui/tui-regs.c (tui_show_registers): Use new name for
8630 tui_set_layout_for_display_command.
8631 * tui/tui.h (tui_set_layout_for_display_command): Rename
8632 declaration to...
8633 (tui_set_layout_by_name): ...this.
8634 * printcmd.c (display_command): Remove tui related layout call,
8635 and reindent.
8636
8637 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8638
8639 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8640 (handle_inferior_event): New function.
8641
8642 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8643
8644 * ada-lang.c (to_fixed_array_type): Rename local variable
8645 typename into type_name.
8646
8647 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8648
8649 Fix ASAN crash for gdb.compile/compile.exp.
8650 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8651
8652 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8653
8654 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8655 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8656 * compile/compile-object-load.c (setup_sections, compile_object_load):
8657 Likewise.
8658 * compile/compile.c (compile_to_object): Likewise.
8659
8660 2015-05-16 Doug Evans <xdje42@gmail.com>
8661
8662 * NEWS: Mention support for unbuffered Guile memory ports.
8663 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8664 (ioscm_lseek_address): Improve overflow calculation.
8665 (gdbscm_memory_port_fill_input): Add assert.
8666 (gdbscm_memory_port_write): Handle unbuffered ports.
8667 Handle large writes identical to Guile's fport_write.
8668 (gdbscm_memory_port_seek): Fix seeking past end check.
8669 (gdbscm_memory_port_close): Handle closing unbuffered port.
8670 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8671 (ioscm_init_memory_port): Handle unbuffered ports.
8672 (ioscm_reinit_memory_port): Ditto.
8673 (ioscm_init_memory_port): Update size calculation.
8674 (gdbscm_open_memory): Support zero sized ports.
8675
8676 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8677
8678 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8679 variable compiler warnings.
8680
8681 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8682
8683 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8684
8685 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8686 Phil Muldoon <pmuldoon@redhat.com>
8687
8688 * NEWS (Changes since GDB 7.9): Add compile print.
8689 * compile/compile-c-support.c (add_code_header, add_code_footer)
8690 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8691 COMPILE_I_PRINT_VALUE_SCOPE.
8692 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8693 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8694 New.
8695 * compile/compile-object-load.c: Include block.h.
8696 (get_out_value_type): New function.
8697 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8698 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8699 OUT_VALUE_TYPE.
8700 * compile/compile-object-load.h (struct compile_module): Add fields
8701 out_value_addr and out_value_type.
8702 * compile/compile-object-run.c: Include valprint.h and compile.h.
8703 (struct do_module_cleanup): Add fields out_value_addr and
8704 out_value_type.
8705 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8706 COMPILE_I_PRINT_VALUE_SCOPE.
8707 (compile_object_run): Propagate out_value_addr and out_value_type.
8708 Pass OUT_VALUE_ADDR.
8709 * compile/compile.c: Include valprint.h.
8710 (compile_print_value, compile_print_command): New functions.
8711 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8712 (_initialize_compile): Update compile code help text. Install
8713 compile_print_command.
8714 * compile/compile.h (compile_print_value): New prototype.
8715 * defs.h (enum compile_i_scope_types): Add
8716 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8717
8718 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8719
8720 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8721 Rely on its parameter count.
8722 (compile_object_load): Replace lookup_minimal_symbol_text by
8723 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8724 return value.
8725 * compile/compile-object-load.h (struct compile_module): Replace
8726 func_addr by func_sym.
8727 * compile/compile-object-run.c: Include block.h.
8728 (compile_object_run): Reset module variable after it is freed. Use
8729 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8730
8731 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8732
8733 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8734 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8735 (c_compute_program): Call generate_register_struct after typedefs.
8736 * compile/compile-loc2c.c (push, pushf_register_address)
8737 (pushf_register): Cast to GCC_UINTPTR.
8738 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8739 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8740 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8741 * compile/compile.c (_initialize_compile): Enable warnings for
8742 COMPILE_ARGS.
8743
8744 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8745
8746 * cli/cli-script.c (execute_control_command): Update
8747 eval_compile_command caller.
8748 * compile/compile-object-load.c (compile_object_load): Add parameters
8749 scope and scope_data. Set them.
8750 * compile/compile-object-load.h (struct compile_module): Add fields
8751 scope and scope_data.
8752 (compile_object_load): Add parameters scope and scope_data.
8753 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8754 scope and scope_data.
8755 (compile_object_run): Propagate the fields scope and scope_data.
8756 * compile/compile.c (compile_file_command, compile_code_command):
8757 Update eval_compile_command callers.
8758 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8759 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8760 * defs.h (struct command_line): Add field scope_data.
8761
8762 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8763
8764 * printcmd.c (struct format_data): Move it to valprint.h.
8765 (print_command_parse_format, print_value): New functions from ...
8766 (print_command_1): ... here. Call them.
8767 * valprint.h (struct format_data): Move it here from printcmd.c.
8768 (print_command_parse_format, print_value): New declarations.
8769
8770 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8771
8772 * compile/compile-object-load.c (compile_object_load): Add
8773 COMPILE_DEBUG message.
8774
8775 2015-05-15 Jerome Guitton <guitton@adacore.com>
8776
8777 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8778 index to get element instead of enum value.
8779 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8780 of index to compute length, but enum values to compute bounds.
8781 (ada_array_length): Use enum position of index instead of enum value.
8782 (pos_atr): Move position computation to...
8783 (ada_evaluate_subexp): Use enum values to compute bounds.
8784 * gdbtypes.c (discrete_position): ...this new function.
8785 * gdbtypes.h (discrete_position): New function declaration.
8786 * valprint.c (val_print_array_elements): Call discrete_position
8787 to handle array indexed by non-contiguous enumeration types.
8788
8789 2015-05-15 Jerome Guitton <guitton@adacore.com>
8790
8791 * ada-lang.c (find_parallel_type_by_descriptive_type):
8792 Go through typedefs during lookup.
8793 (to_fixed_array_type): Add support for non-bit packed arrays
8794 as variable-length fields.
8795
8796 2015-05-15 Pedro Alves <palves@redhat.com>
8797 Simon Marchi <simon.marchi@ericsson.com>
8798
8799 * event-loop.c (gdb_notifier) <next_file_handler,
8800 next_poll_fds_index>: New fields.
8801 (get_next_file_handler_to_handle_and_advance): New function.
8802 (delete_file_handler): If deleting the next file handler to
8803 handle, advance to the next file handler.
8804 (gdb_wait_for_event): Bail early if no event fired. Poll file
8805 handlers in round-robin fashion.
8806
8807 2015-05-15 Pedro Alves <palves@redhat.com>
8808
8809 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8810 'private' to 'priv'.
8811
8812 2015-05-15 Pedro Alves <palves@redhat.com>
8813
8814 * nat/linux-nat.h: Include "target/waitstatus.h".
8815
8816 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8817
8818 * python/py-unwind.c (struct reg_info): Move out of ...
8819 (struct cached_frame_info): ... this scope.
8820 (pending_frame_object_type, unwind_info_object_type): Make extern.
8821
8822 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8823
8824 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8825 accumSize is never negative.
8826
8827 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8828
8829 * tui/tui-command.c: Remove include of <ctype.h>.
8830 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8831
8832 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8833
8834 * dwarf2read.c (die_needs_namespace): Return 1 for
8835 DW_TAG_inlined_subroutine.
8836
8837 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8838
8839 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8840 (regcache_cpy_no_passthrough): Make it static, add function comment.
8841 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8842 (regcache_cpy_no_passthrough): Remove declaration.
8843
8844 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8845
8846 * gdbthread.h (struct thread_control_state): Update comment for
8847 proceed_to_finish.
8848 * infcall.c (run_inferior_call): Update comment about
8849 proceed_to_finish.
8850 * infcmd.c (get_return_value): Update comment about stop_registers.
8851 (finish_forward): Update comment about proceed_to_finish.
8852 * infrun.c (stop_registers): Remove.
8853 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8854 * infrun.h (stop_registers): Remove.
8855
8856 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8857
8858 * infcall.c (struct dummy_frame_context_saver)
8859 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8860 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8861 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8862 New.
8863 (call_function_by_hand_dummy): Move discard_cleanups of
8864 inf_status_cleanup before dummy_frame_push. Call
8865 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8866 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8867 * infcall.h (struct dummy_frame_context_saver)
8868 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8869 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8870 New declarations.
8871 * infcmd.c: Include infcall.h.
8872 (get_return_value): Add parameter ctx_saver, use it instead of
8873 stop_registers.
8874 (print_return_value): Add parameter ctx_saver, pass it.
8875 (struct finish_command_continuation_args): Add field ctx_saver.
8876 (finish_command_continuation): Update print_return_value caller.
8877 (finish_command_continuation_free_arg): Free also ctx_saver.
8878 (finish_forward): Call dummy_frame_context_saver_setup.
8879 * inferior.h (struct dummy_frame_context_saver): New declaration.
8880 (get_return_value): Add parameter ctx_saver.
8881 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8882 get_return_value caller.
8883
8884 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8885
8886 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8887 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8888 (remove_dummy_frame): Process dtor_list.
8889 (pop_dummy_frame): Process dtor_list.
8890 (register_dummy_frame_dtor): Maintain dtor_list.
8891 (find_dummy_frame_dtor): Handle dtor_list.
8892 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8893 Update comments.
8894
8895 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8898 registers_valid.
8899 (compile_object_run): Update do_module_cleanup caller.
8900 * dummy-frame.c: Include infcall.h.
8901 (struct dummy_frame): Update dtor comment.
8902 (remove_dummy_frame): Call dtor.
8903 (pop_dummy_frame): Update dtor caller.
8904 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8905 registers_valid.
8906
8907 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8908
8909 GDB 7.9.1 released.
8910
8911 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8912
8913 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8914 Xmethods now being able to specify a result type to that new
8915 sectioin.
8916
8917 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8918
8919 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8920 first before resizing the window.
8921 * tui/tui.c (tui_enable): Likewise.
8922
8923 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8924
8925 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8926 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8927 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8928 dummy_dtor parameter.
8929 * infcall.h: Include dummy-frame.h.
8930 (call_function_by_hand_dummy_dtor_ftype): Remove.
8931 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8932 parameter.
8933
8934 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8935
8936 PR gdb/17820
8937 * top.c (history_size_setshow_var): Change type to signed.
8938 Initialize to -2. Update documentation.
8939 (set_readline_history_size): Define.
8940 (set_history_size_command): Use it. Remove logic for handling
8941 out-of-range sizes.
8942 (init_history): Use set_readline_history_size(). Test for a
8943 value of -2 instead of 0 when determining whether to set a
8944 default history size.
8945 (init_main): Decode the argument of the "size" command as a
8946 zuinteger_unlimited.
8947
8948 2015-05-12 Doug Evans <dje@google.com>
8949
8950 * dwarf2read.c (struct file_entry): Tweak comments.
8951 (get_debug_line_section): Tweak comments.
8952
8953 2015-05-12 Don Breazeal <donb@codesourcery.com>
8954
8955 * NEWS: Announce fork support in the RSP and support
8956 for fork debugging in extended mode.
8957
8958 2015-05-12 Don Breazeal <donb@codesourcery.com>
8959
8960 * remote.c (remote_insert_fork_catchpoint): New function.
8961 (remote_remove_fork_catchpoint): New function.
8962 (remote_insert_vfork_catchpoint): New function.
8963 (remote_remove_vfork_catchpoint): New function.
8964 (pending_fork_parent_callback): New function.
8965 (remove_new_fork_child): New function.
8966 (remote_update_thread_list): Call remote_notif_get_pending_events
8967 and remove_new_fork_child.
8968 (extended_remote_kill): Kill fork child when killing the
8969 parent before follow_fork completes.
8970 (init_extended_remote_ops): Initialize target vector with
8971 new fork catchpoint functions.
8972
8973 2015-05-12 Don Breazeal <donb@codesourcery.com>
8974
8975 * remote.c (remove_vfork_event_p): New function.
8976 (remote_follow_fork): Add vfork event type to event checking.
8977 (remote_parse_stop_reply): New stop reasons "vfork" and
8978 "vforkdone" for RSP 'T' Stop Reply Packet.
8979
8980 2015-05-12 Don Breazeal <donb@codesourcery.com>
8981
8982 * linux-nat.c (linux_nat_ptrace_options): New function.
8983 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8984 Call linux_nat_ptrace_options and use different argument to
8985 linux_enable_event_reporting.
8986 (_initialize_linux_nat): Delete call to
8987 linux_ptrace_set_additional_flags.
8988 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8989 supported_ptrace_options.
8990 (additional_flags): Delete variable.
8991 (linux_check_ptrace_features): Use supported_ptrace_options.
8992 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8993 Likewise, and remove additional_flags check.
8994 (linux_enable_event_reporting): Change 'attached' argument to
8995 'options'. Use supported_ptrace_options.
8996 (ptrace_supports_feature): Change comment. Use
8997 supported_ptrace_options.
8998 (linux_ptrace_set_additional_flags): Delete function.
8999 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9000 Delete function prototype.
9001 * remote.c (remote_fork_event_p): New function.
9002 (remote_detach_pid): New function.
9003 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9004 if doing detach-on-fork.
9005 (remote_follow_fork): New function.
9006 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9007 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9008 (init_extended_remote_ops): Initialize to_follow_fork.
9009
9010 2015-05-12 Don Breazeal <donb@codesourcery.com>
9011
9012 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9013 from static to extern.
9014 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9015 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9016 * PACKET_vfork_event_feature>: New enumeration constants.
9017 (remote_protocol_features): Add table entries for new packets.
9018 (remote_query_supported): Add new feature queries to qSupported
9019 packet.
9020
9021 2015-05-12 Gary Benson <gbenson@redhat.com>
9022
9023 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9024 for fake PIDs as well as real ones.
9025 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9026
9027 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9028
9029 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9030 * python/py-value.c (valpy_reference_value): New function.
9031 (valpy_const_value): Likewise.
9032 (value_object_methods): Add new methods.
9033 * value.c (make_cv_value): New function.
9034 * value.h (make_cv_value): Declare.
9035
9036 2015-05-08 Yao Qi <yao@codesourcery.com>
9037 Sandra Loosemore <sandra@codesourcery.com>
9038
9039 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9040 to 'lh->include_dirs' before accessing to it.
9041 (psymtab_include_file_name): Likewise.
9042 (dwarf_decode_lines_1): Likewise.
9043 (dwarf_decode_lines): Likewise.
9044 (file_file_name): Likewise.
9045
9046 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9047
9048 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9049 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9050 (nios2_linux_rt_sigreturn_init): Adjust base address of
9051 register save area.
9052
9053 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9054
9055 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9056 "trap 31" as the breakpoint instruction on all targets.
9057
9058 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9059
9060 * infcmd.c (print_return_value): Remove unused declaration.
9061
9062 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9063
9064 * dwarf2read.c (attr_to_dynamic_prop)
9065 <DW_AT_data_member_location>: Use read_type_die isntead of
9066 get_die_type.
9067
9068 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9069
9070 * ada-lang.c (ada_convert_actual): Add handling of formals
9071 passed inside an aligner type.
9072
9073 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9074
9075 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9076
9077 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9078
9079 PR python/18291
9080 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9081 Print xmethod matcher status.
9082
9083 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9084
9085 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9086 register in the regcache when treating the PSWM register, and vice
9087 versa.
9088
9089 2015-05-07 Gary Benson <gbenson@redhat.com>
9090
9091 * linux-thread-db.c (struct thread_db_info)
9092 <td_ta_map_id2thr_p>: Remove field.
9093 (try_thread_db_load_1): Remove initialization for the above.
9094
9095 2015-05-07 Gary Benson <gbenson@redhat.com>
9096
9097 * linux-thread-db.c (struct thread_db_info)
9098 <td_thr_validate_p>: Remove field.
9099 (try_thread_db_load_1): Remove initialization for the above.
9100
9101 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9102
9103 * compile/compile-object-load.c (compile_object_load): Support
9104 mst_text_gnu_ifunc.
9105
9106 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9107
9108 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9109 const. Use new variables for the const compatibility.
9110 (eval_compile_command): Make the cmd_string parameter const.
9111 * compile/compile.h (eval_compile_command): Make the cmd_string
9112 parameter const.
9113
9114 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9115
9116 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9117 comment.
9118 * top.c (deprecated_init_ui_hook): Delete.
9119 (gdb_init): Remove handling of deprecated_init_ui_hook.
9120 * interps.c (clear_interpreter_hooks): Remove handling of
9121 deprecated_init_ui_hook.
9122 * main.c (captured_main): Update comment.
9123
9124 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9125
9126 * solib.c (_initialize_solib): Add "info dll" alias creation.
9127 * windows-nat.c (set_windows_aliases): Delete.
9128 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9129 assignment.
9130 * NEWS: Add news entry about "info dll" now being available
9131 on all platforms.
9132
9133 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9134
9135 * ada-lang.c (value_assign_to_component): Reformat and improve
9136 documentation. Remove all trailing spaces.
9137
9138 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9139
9140 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9141 Stop counting inlined frames as soon as an out-of-line function
9142 is found.
9143
9144 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9145
9146 * dwarf2read.c (inherit_abstract_dies): Skip
9147 DW_TAG_GNU_call_site dies while inheriting children of an
9148 abstract DIE into a scope.
9149 (read_lexical_block_scope): Inherit abstract DIE's for
9150 lexical scopes.
9151
9152 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9153
9154 * ada-valprint.c (val_print_packed_array_elements): Delete
9155 variable "len". Add a type-length check when comparing two
9156 consecutive elements of the array. Use the element's actual
9157 length in call to value_contents_eq.
9158 * ada-lang.c (ada_value_primitive_packed_val): Always return
9159 a value whose type has been resolved.
9160
9161 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9162
9163 * ada-lang.c (ada_value_primitive_packed_val): Recompute
9164 BIT_SIZE and LEN if the size of the resolved type is smaller
9165 than BIT_SIZE * HOST_CHAR_BIT.
9166
9167 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9168
9169 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9170 correct address in call to value_at. Adjust call to
9171 value_address accordingly.
9172
9173 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9174
9175 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9176 to print it.
9177
9178 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9179
9180 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9181 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9182 pinfo->valaddr.
9183 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9184 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9185 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9186 Add handling of addr_stack->valaddr.
9187 (resolve_dynamic_type): Add "valaddr" parameter.
9188 Set pinfo.valaddr field.
9189 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9190 resolve_dynamic_type.
9191 (ada_discrete_type_low_bound): Likewise.
9192 * findvar.c (default_read_var_value): Likewise.
9193 * value.c (value_from_contents_and_address): Likewise.
9194
9195 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9196
9197 * gdbtypes.c (resolve_dynamic_array): Use
9198 create_array_type_with_stride instead of create_array_type.
9199
9200 2015-04-30 DJ Delorie <dj@redhat.com>
9201
9202 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9203 rl78_decode_opcode
9204
9205 2015-04-29 Doug Evans <dje@google.com>
9206
9207 PR python/18285
9208 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9209 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9210 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9211 * extension-priv.h (struct extension_language_ops)
9212 <get_xmethod_result_type>: New member.
9213 * extension.c (get_xmethod_result_type): New function.
9214 * extension.h (get_xmethod_result_type): Declare.
9215 * python/py-xmethods.c (get_result_type_method_name): New static
9216 global.
9217 (py_get_result_type_method_name): Ditto.
9218 (gdbpy_get_xmethod_result_type): New function.
9219 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9220 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9221 * python/python.c (python_extension_ops): Add
9222 gdbpy_get_xmethod_result_type.
9223 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9224 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9225 xmethods.
9226 (value_x_unop): Ditto.
9227 * value.c (result_type_of_xmethod): New function.
9228 * value.h (result_type_of_xmethod): Declare.
9229
9230 2015-04-29 Gary Benson <gbenson@redhat.com>
9231
9232 * solib.c (solib_find_1): Allow fd argument to be NULL.
9233 (exec_file_find): Update comment.
9234 (solib_find): Likewise.
9235 * exec.c (exec_file_locate_attach): Use NULL as fd
9236 argument to exec_file_find to avoid having to close
9237 the opened file.
9238 * infrun.c (follow_exec): Likewise.
9239
9240 2015-04-28 Doug Evans <dje@google.com>
9241
9242 PR python/18299
9243 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9244 name or __name__ attributes. Handle gdb module as first argument.
9245
9246 2015-04-28 Doug Evans <dje@google.com>
9247
9248 PR python/18089
9249 * python/py-prettyprint.c (print_children): Verify result of children
9250 iterator. Provide better error message.
9251 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9252 * python/python.c (gdbpy_print_python_errors_p): New function.
9253
9254 2015-04-28 Doug Evans <dje@google.com>
9255
9256 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9257
9258 2015-04-28 Sasha Smundak <asmundak@google.com>
9259
9260 * NEWS: Mention gdb.Type.optimized_out method.
9261 * python/py-type.c (typy_optimized_out): New function.
9262
9263 2015-04-28 John Baldwin <jhb@FreeBSD.org>
9264
9265 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9266
9267 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9268
9269 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9270 (initialize_utils): Move call of init_page_info() to ...
9271 * top.c (gdb_init): ... here.
9272
9273 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9274
9275 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9276 (tui_sigwinch_handler): Still update our idea of
9277 the terminal's width and height even when TUI is not active.
9278
9279 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9280
9281 * utils.h (set_screen_width_and_height): Declare.
9282 * utils.c (set_screen_width_and_height): Define.
9283 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9284
9285 2015-04-28 Gary Benson <gbenson@redhat.com>
9286
9287 * infrun.c (solist.h): New include.
9288 (follow_exec): Use exec_file_find to prefix execd_pathname
9289 with gdb_sysroot.
9290
9291 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9292
9293 * tui/tui-source.c (tui_set_source_content): Avoid calling
9294 strcpy() when offset is 0.
9295
9296 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9297
9298 PR gdb/18155
9299 * tui/tui-data.c (tui_free_window): Don't free the locator
9300 window when passed an SRC_WIN or a DISASSEM_WIN.
9301
9302 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9303
9304 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9305 (tui_win_content): Move declaration.
9306 (struct tui_gen_win_info): Give 'content' field the
9307 type tui_win_content.
9308 * tui/tui-data.c (init_content_element): Remove redundant and
9309 erroneous casts.
9310 (tui_add_content_elements): Remove erroneous cast.
9311 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9312 casts.
9313 (tui_get_begin_asm_address): Likewise.
9314 * tui/tui-regs.c (tui_show_registers): Likewise.
9315 (tui_show_register_group): Likewise.
9316 (tui_display_registers_from): Likewise.
9317 (tui_check_register_values): Likewise.
9318 * tui/tui-source.c (tui_set_source_content): Likewise.
9319 (tui_set_source_content_nil): Likewise.
9320 (tui_source_is_displayed): Likewise.
9321 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9322 (tui_set_locator_fullname): Likewise.
9323 (tui_set_locator_info): Likewise.
9324 (tui_show_frame_info): Likewise.
9325 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9326 (tui_show_source_line): Likewise.
9327 (tui_horizontal_source_scroll): Likewise.
9328 (tui_update_breakpoint_info): Likewise.
9329 (tui_set_exec_info_content): Likewise.
9330 (tui_show_exec_info_content): Likewise.
9331 (tui_alloc_source_buffer): Likewise.
9332 (tui_line_is_displayed): Likewise.
9333 (tui_addr_is_displayed): Likewise.
9334
9335 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9336
9337 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9338 event if PL_FLAG_EXEC is set.
9339 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9340 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9341 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9342 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9343 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9344
9345 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9346
9347 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9348 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9349 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9350 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9351 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9352 [PT_LWPINFO] (fbsd_wait): New function.
9353 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9354 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9355 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9356 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9357 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9358 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9359 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9360 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9361 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9362 "fbsd_wait".
9363 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9364 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9365 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9366 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9367 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9368 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9369 Set "to_post_attach" to "fbsd_post_attach".
9370
9371 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9372
9373 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9374 (fbsd_find_memory_regions): Mark static.
9375 (fbsd_nat_add_target): New function.
9376 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9377 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9378 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9379 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9380 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9381 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9382
9383 2015-04-27 Gary Benson <gbenson@redhat.com>
9384
9385 * objfiles.c (allocate_objfile): Do not attempt to expand name
9386 if name is a "target:" filename.
9387 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9388 to load auto-load scripts for objfiles with "target:" filenames.
9389
9390 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9391
9392 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9393 (enum s390_vector_abi_kind): New enum.
9394 (struct gdbarch_tdep)<vector_abi>: New field.
9395 (s390_effective_inner_type): Add parameter min_size. Stop
9396 unwrapping if the inner type is smaller than min_size.
9397 (s390_function_arg_float): Adjust call to
9398 s390_effective_inner_type.
9399 (s390_function_arg_vector): New function.
9400 (s390_function_arg_integer): Adjust comment.
9401 (struct s390_arg_state)<vr>: New field.
9402 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9403 arguments according to vector ABI when appropriate.
9404 (s390_push_dummy_call): Initialize the argument state's field
9405 'vr'. Adjust calls to s390_handle_arg.
9406 (s390_register_return_value): Handle vector return values.
9407 (s390_return_value): Apply the "register" return value convention
9408 to a vector when appropriate.
9409 (s390_gdbarch_init): Initialize tdep->vector_abi.
9410 * NEWS: Announce S390 vector ABI support.
9411
9412 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9413
9414 * s390-linux-tdep.c (s390_return_value_convention): Remove
9415 function. Inline its logic...
9416 (s390_return_value): ...here. Instead, move the handling of the
9417 "register" return value convention...
9418 (s390_register_return_value): ...here. New function.
9419
9420 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9421
9422 * s390-linux-tdep.c
9423 (is_float_singleton): Remove function. Move the "singleton" part
9424 of the logic...
9425 (s390_effective_inner_type): ...here. New function.
9426 (is_float_like): Remove function. Inline its logic...
9427 (s390_function_arg_float): ...here.
9428 (is_pointer_like, is_integer_like, is_struct_like): Remove
9429 functions. Inline their logic...
9430 (s390_function_arg_integer): ...here.
9431 (s390_function_arg_pass_by_reference): Remove function.
9432 (extend_simple_arg): Remove function.
9433 (alignment_of): Remove function.
9434 (struct s390_arg_state): New structure.
9435 (s390_handle_arg): New function.
9436 (s390_push_dummy_call): Move parameter placement logic to the new
9437 function s390_handle_arg. Call it for calculating the stack area
9438 sizes first, and again for actually writing the parameters.
9439
9440 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9441
9442 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9443 false if the argument is zero.
9444
9445 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9446
9447 * ada-lang.c (template_to_static_fixed_type): Return input type
9448 when it is already fixed. Cache the input type itself when not
9449 creating a static fixed copy. Make it explicit that we never
9450 molestate the input type.
9451 * gdbtypes.c (resolve_dynamic_struct): Reset the
9452 TYPE_TARGET_TYPE field for resolved copies.
9453
9454 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9455
9456 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9457 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9458 (template_to_static_fixed_type): Call ada_check_typedef only
9459 when necessary.
9460
9461 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9462
9463 * cli/cli-dump.c (srec_dump_command): Add internationalization
9464 mark ups.
9465 (ihex_dump_command): Likewise.
9466 (tekhex_dump_command): Likewise.
9467 (binary_dump_command): Likewise.
9468 (binary_append_command): Likewise.
9469
9470 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9471
9472 * cli/cli-dump.c (verilog_cmdlist): New variable.
9473 (dump_verilog_memory): New function.
9474 (dump_verilog_value): New function.
9475 (verilog_dump_command): New function.
9476 (_initialize_cli_dump): Add new commands to support verilog dump
9477 format.
9478 * NEWS: Add entry for "dump verilog".
9479
9480 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9481
9482 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9483 descriptive type when there is none.
9484
9485 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9486
9487 * tui/tui-win.c (tui_async_resize_screen): Call
9488 rl_resize_terminal().
9489
9490 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9491
9492 * windows-nat.c (handle_output_debug_string): Don't change
9493 current_event.dwThreadId.
9494 (get_windows_debug_event): Use thread_id, rather than relying on
9495 current_event.dwThreadId being changed.
9496
9497 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9498
9499 * windows-nat.c (windows_continue): Report an error if
9500 ContinueDebugEvent() fails.
9501
9502 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9503
9504 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9505
9506 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9507
9508 * windows-nat.c (get_windows_debug_event): Replace retval with
9509 thread_id throughout. Update stale comment.
9510
9511 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9512
9513 * windows-nat.c (get_windows_debug_event): Don't use ternary
9514 conditional operator.
9515
9516 2015-04-21 Pierre Muller <muller@sourceware.org>
9517
9518 PR pascal/17815
9519 p-exp.y (yylex): Reorganize code to return the matched pattern
9520 for a field of this.
9521
9522 2015-04-21 Gary Benson <gbenson@redhat.com>
9523
9524 * common/fileio.h (fileio_to_host_openflags): New declaration.
9525 * common/fileio.c (fcntl.h): New include.
9526 (fileio_to_host_openflags): New function, factored out from...
9527 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9528 Single use updated.
9529
9530 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9531
9532 * rl78-tdep.c (RL78_SP_ADDR): Define.
9533 (opc_reg_to_gdb_regnum): New static function.
9534 (rl78_analyze_prologue): Recognize instructions forming slightly
9535 more interesting prologues.
9536
9537 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9538
9539 Revert:
9540 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9541 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9542 TYPE_CODE_REF types so that they are not considered as dynamic
9543 depending on the referenced type.
9544 (resolve_dynamic_type_internal): Likewise.
9545
9546 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9547
9548 Revert:
9549 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9550 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9551 "top_level" parameter.
9552 (resolve_dynamic_type_internal): Remove the unused "top_level"
9553 parameter. Update call to is_dynamic_type_internal.
9554 (is_dynamic_type): Update call to is_dynamic_type_internal.
9555 (resolve_dynamic_range): Update call to
9556 resolve_dynamic_type_internal.
9557 (resolve_dynamic_union): Likewise.
9558 (resolve_dynamic_struct): Likewise.
9559 (resolve_dynamic_type): Likewise.
9560
9561 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9562
9563 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9564 xmalloc.
9565
9566 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9567
9568 * reply_mig_hack.awk: Robustify parsing.
9569
9570 * reply_mig_hack.awk: Don't bother to declare an intermediate
9571 function pointer variable.
9572
9573 2015-04-17 Doug Evans <dje@google.com>
9574
9575 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9576 to "exec_displacement" to avoid confusion with inner use of the name.
9577
9578 2015-04-17 Pedro Alves <palves@redhat.com>
9579
9580 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9581 if HW point of TYPE isn't supported.
9582
9583 2015-04-17 Yao Qi <yao.qi@linaro.org>
9584 Pedro Alves <palves@redhat.com>
9585
9586 * target.h (target_can_use_hardware_watchpoint): Update comments.
9587 Remove trailing ";".
9588
9589 2015-04-17 Gary Benson <gbenson@redhat.com>
9590
9591 * remote.c (remote_add_inferior): New argument try_open_exec.
9592 If nonzero, attempt to open the inferior's executable file as
9593 the main executable if no main executable is open already.
9594 All callers updated.
9595 * NEWS: Mention that GDB now supports automatic location and
9596 retrieval of executable + files from remote targets.
9597
9598 2015-04-17 Gary Benson <gbenson@redhat.com>
9599
9600 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9601 * remote.c (PACKET_qXfer_exec_file): Likewise.
9602 (remote_protocol_features): Register the
9603 "qXfer:exec-file:read" feature.
9604 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9605 (remote_pid_to_exec_file): New function.
9606 (init_remote_ops): Initialize to_pid_to_exec_file.
9607 (_initialize_remote): Register new "set/show remote
9608 pid-to-exec-file-packet" command.
9609 * NEWS: Announce new qXfer:exec-file:read packet.
9610
9611 2015-04-17 Gary Benson <gbenson@redhat.com>
9612
9613 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9614 New declaration.
9615 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9616 New function, factored out from...
9617 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9618
9619 2015-04-17 Gary Benson <gbenson@redhat.com>
9620
9621 * exec.c (solist.h): New include.
9622 (exec_file_locate_attach): Prefix absolute executable
9623 paths with gdb_sysroot if set.
9624 * NEWS: Mention that executable paths may be prepended
9625 with sysroot.
9626
9627 2015-04-17 Gary Benson <gbenson@redhat.com>
9628
9629 * solist.h (exec_file_find): New declaration.
9630 * solib.c (solib_find_1): New function, factored out from...
9631 (solib_find): ...here.
9632 (exec_file_find): New function.
9633
9634 2015-04-17 Gary Benson <gbenson@redhat.com>
9635
9636 * gdbcore.h (exec_file_locate_attach): New declaration.
9637 * exec.c (exec_file_locate_attach): New function, factored
9638 out from...
9639 * infcmd.c (attach_command_post_wait): ...here.
9640
9641 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9642
9643 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9644
9645 2015-04-16 Yao Qi <yao.qi@linaro.org>
9646
9647 * infrun.c (maybe_software_singlestep): Declare.
9648 (displaced_step_fixup): Call maybe_software_singlestep.
9649
9650 2015-04-15 Doug Evans <dje@google.com>
9651
9652 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9653
9654 2015-04-15 Doug Evans <dje@google.com>
9655
9656 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9657
9658 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9659
9660 * python/lib/gdb/command/unwinders.py: Add parentheses.
9661
9662 2015-04-15 Yao Qi <yao.qi@linaro.org>
9663
9664 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9665
9666 2015-04-15 Yao Qi <yao.qi@linaro.org>
9667
9668 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9669
9670 2015-04-15 Yao Qi <yao.qi@linaro.org>
9671
9672 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9673 dsc->insn_size instead of 4.
9674
9675 2015-04-14 Gary Benson <gbenson@redhat.com>
9676
9677 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9678 * minidebug.c (lzma_stat): Likewise.
9679 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9680 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9681
9682 2015-04-13 Stan Shebs <stanshebs@google.com>
9683
9684 * MAINTAINERS: Update my email address.
9685
9686 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9687
9688 * amd64-tdep.c (amd64_target_description): New function.
9689 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9690 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9691 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9692 x86 extended save area.
9693 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9694 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9695 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9696 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9697 "amd64fbsd_read_description".
9698 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9699 (amd64fbsd_supply_xstateregset): New function.
9700 (amd64fbsd_collect_xstateregset): New function.
9701 Add "amd64fbsd_xstateregset".
9702 (amd64fbsd_iterate_over_regset_sections): New function.
9703 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9704 "I386_FBSD_XSAVE_XCR0_OFFSET".
9705 Add "iterate_over_regset_sections" gdbarch method.
9706 Add "core_read_description" gdbarch method.
9707 * i386-tdep.c (i386_target_description): New function.
9708 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9709 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9710 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9711 x86 extended save area.
9712 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9713 * i386bsd-nat.h: Export i386bsd_xsave_len.
9714 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9715 (_initialize_i386fbsd_nat): Set "to_read_description" to
9716 "i386fbsd_read_description".
9717 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9718 (i386fbsd_core_read_description): New function.
9719 (i386fbsd_supply_xstateregset): New function.
9720 (i386fbsd_collect_xstateregset): New function.
9721 Add "i386fbsd_xstateregset".
9722 (i386fbsd_iterate_over_regset_sections): New function.
9723 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9724 "I386_FBSD_XSAVE_XCR0_OFFSET".
9725 Add "iterate_over_regset_sections" gdbarch method.
9726 Add "core_read_description" gdbarch method.
9727 * i386fbsd-tdep.h: New file.
9728
9729 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9730
9731 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9732 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9733 conditional.
9734 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9735 and lb.
9736 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9737 va.
9738 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9739 conditional.
9740 * defs.h (xdb_commands): Remove declaration.
9741 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9742 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9743 * infcmd.c (run_no_args_command, go_command): Remove.
9744 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9745 * infrun.c (xdb_handle_command): Remove.
9746 (_initialize_infrun): Remove xdb_commands for lz and z.
9747 * main.c (xdb_commands): Remove variable.
9748 (captured_main): Remove "xdb" from long_options.
9749 (print_gdb_help): Remove --xdb from help.
9750 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9751 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9752 * stack.c (backtrace_full_command, args_plus_locals_info)
9753 (current_frame_command): Remove.
9754 (_initialize_stack): Remove xdb_commands for t, T and l.
9755 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9756 * thread.c (_initialize_thread): Remove xdb_commands condition.
9757 * tui/tui-layout.c (tui_toggle_layout_command)
9758 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9759 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9760 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9761 (tui_scroll_regs_backward_command): Remove.
9762 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9763 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9764 (_initialize_tui_win): Remove xdb_commands for U and w.
9765 * utils.c (pagination_on_command, pagination_off_command): Remove.
9766 (initialize_utils): Remove xdb_commands for am and sm.
9767
9768 2015-04-10 Pedro Alves <palves@redhat.com>
9769
9770 * infrun.c (displaced_step_fixup): Switch to the event ptid
9771 earlier. If the thread stopped for a watchpoint and the
9772 target/arch has non-continuable watchpoints, cancel the displaced
9773 step.
9774 (resume): Don't start a displaced step if in-line step-over info
9775 is valid.
9776
9777 2015-04-10 Pedro Alves <palves@redhat.com>
9778
9779 * infrun.c (displaced_step_in_progress): New function.
9780 (do_target_resume): Advise target to report all signals if
9781 displaced stepping.
9782
9783 2015-04-10 Pedro Alves <palves@redhat.com>
9784
9785 PR gdb/18216
9786 * infrun.c (process_event_stop_test): Don't assume a step-resume
9787 is set if tp->stepped_breakpoint is true.
9788
9789 2015-04-10 Yao Qi <yao.qi@linaro.org>
9790
9791 * arm-tdep.c (install_alu_reg): Update comment.
9792 (thumb_copy_alu_reg): Remove local variable rn. Update
9793 debugging message. Use r2 instead of r1 in the modified
9794 instruction.
9795
9796 2015-04-10 Pedro Alves <palves@redhat.com>
9797
9798 PR gdb/13858
9799 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9800 linux_displaced_step_location as gdbarch_displaced_step_location
9801 hook.
9802 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9803 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9804 * linux-tdep.c (linux_displaced_step_location): New function,
9805 based on ppc_linux_displaced_step_location.
9806 * linux-tdep.h (linux_displaced_step_location): New declaration.
9807 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9808 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9809 Delete.
9810 (ppc_linux_init_abi): Install linux_displaced_step_location as
9811 gdbarch_displaced_step_location hook, even without Cell/B.E..
9812 (_initialize_ppc_linux_tdep): Don't install
9813 ppc_linux_inferior_created as inferior_created observer.
9814 * s390-linux-tdep.c (s390_gdbarch_init): Install
9815 linux_displaced_step_location as gdbarch_displaced_step_location
9816 hook.
9817
9818 2015-04-09 Gary Benson <gbenson@redhat.com>
9819
9820 * common/common-remote-fileio.h: Rename to...
9821 * common/fileio.h: ...this. Update all references.
9822 (remote_fileio_to_fio_error): Rename to...
9823 (host_to_fileio_error): ...this.
9824 (remote_fileio_to_be): Rename to...
9825 (host_to_bigendian): ...this. Update all callers.
9826 (remote_fileio_to_fio_uint): Rename to...
9827 (host_to_fileio_uint): ...this. Update all callers.
9828 (remote_fileio_to_fio_time): Rename to...
9829 (host_to_fileio_time): ...this. Update all callers.
9830 (remote_fileio_to_fio_stat): Rename to...
9831 (host_to_fileio_stat): ...this.
9832 Update all references.
9833 * common/common-remote-fileio.c: Rename to...
9834 * common/fileio.c: ...this. Update all references.
9835 (remote_fileio_to_fio_error): Rename to...
9836 (host_to_fileio_error): ...this. Update all callers.
9837 (remote_fileio_mode_to_target): Rename to...
9838 (fileio_mode_pack): ...this. Update all callers.
9839 (remote_fileio_to_fio_mode): Rename to...
9840 (host_to_fileio_mode): ...this. Update all callers.
9841 (remote_fileio_to_fio_ulong): Rename to...
9842 (host_to_fileio_ulong): ...this. Update all callers.
9843 (remote_fileio_to_fio_stat): Rename to...
9844 (host_to_fileio_stat): ...this. Update all callers.
9845
9846 2015-04-09 Andy Wingo <wingo@igalia.com>
9847
9848 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9849 (frame_functions): Bind gdbscm_frame_read_register to
9850 frame-read-register.
9851 * guile/lib/gdb.scm (frame-read-register): Export.
9852
9853 2015-04-09 Gary Benson <gbenson@redhat.com>
9854
9855 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9856 New declaration.
9857 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9858 New function, factored out the named functions below.
9859 * inf-child.c (gdb/fileio.h): Remove include.
9860 (common-remote-fileio.h): New include.
9861 (inf_child_errno_to_fileio_error): Remove function. Update
9862 all callers to use remote_fileio_to_fio_error.
9863 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9864
9865 2015-04-09 Andy Wingo <wingo@igalia.com>
9866
9867 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9868
9869 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9870
9871 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9872 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9873 * configure: Regenerated.
9874
9875 2015-04-09 Pedro Alves <palves@redhat.com>
9876
9877 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9878 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9879 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9880 * gnulib/import/Makefile.am: Update.
9881 * gnulib/import/Makefile.in: Update.
9882 * gnulib/import/m4/gnulib-cache.m4: Update.
9883 * gnulib/import/m4/gnulib-comp.m4: Update.
9884 * gnulib/import/m4/strtok_r.m4: New file.
9885 * gnulib/import/strtok_r.c: New file.
9886
9887 2015-04-09 Pedro Alves <palves@redhat.com>
9888
9889 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9890 "called too early to check prototype".
9891
9892 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9893
9894 PR python/16699
9895 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9896 use a caching mechanism. Adjust comments and code to reflect
9897 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9898 (cmdpy_completer_handle_brkchars): Adjust call to
9899 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9900 (cmdpy_completer): Likewise.
9901
9902 2015-04-08 Yao Qi <yao.qi@linaro.org>
9903
9904 * spu-tdep.c (spu_gdbarch_init): Don't call
9905 set_gdbarch_cannot_step_breakpoint.
9906
9907 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9908
9909 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9910
9911 2015-04-07 Pedro Alves <palves@redhat.com>
9912
9913 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9914 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9915 (delete_exited_threads): New declaration.
9916 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9917 * linux-nat.c (linux_nat_update_thread_list): New function.
9918 (linux_nat_add_target): Install it.
9919 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9920 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9921 (delete_exited_threads): New function.
9922
9923 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9924
9925 * infrun.c (resume) <displaced stepping debug output>: Get the
9926 leader thread's regcache, not resume_ptid's.
9927
9928 2015-04-06 Doug Evans <xdje42@gmail.com>
9929
9930 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9931 VAR_DOMAIN.
9932 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9933 Include symbol domain in debugging output.
9934
9935 2015-04-06 Pedro Alves <palves@redhat.com>
9936 Bernd Edlinger <bernd.edlinger@hotmail.de>
9937
9938 * configure.ac: Remove the mingw32-specific stub-termcap.o
9939 fallback, and instead fallback to the stub termcap on all hosts.
9940 * configure: Regenerate.
9941 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9942 symbols.
9943
9944 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9945
9946 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9947 "top_level" parameter.
9948 (resolve_dynamic_type_internal): Remove the unused "top_level"
9949 parameter. Update call to is_dynamic_type_internal.
9950 (is_dynamic_type): Update call to is_dynamic_type_internal.
9951 (resolve_dynamic_range): Update call to
9952 resolve_dynamic_type_internal.
9953 (resolve_dynamic_union): Likewise.
9954 (resolve_dynamic_struct): Likewise.
9955 (resolve_dynamic_type): Likewise.
9956
9957 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9958
9959 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9960 TYPE_CODE_REF types so that they are not considered as dynamic
9961 depending on the referenced type.
9962 (resolve_dynamic_type_internal): Likewise.
9963
9964 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9965
9966 * Makefile.in (top_srcdir): New.
9967 * configure: Regenerated.
9968
9969 2015-04-02 Gary Benson <gbenson@redhat.com>
9970
9971 * NEWS: Announce the new default sysroot of "target:".
9972
9973 2015-04-02 Gary Benson <gbenson@redhat.com>
9974
9975 * main.c (captured_main): Set gdb_sysroot to "target:"
9976 if not otherwise set.
9977
9978 2015-04-02 Gary Benson <gbenson@redhat.com>
9979
9980 * exec.c (exec_file_attach): Support "target:" filenames.
9981
9982 2015-04-02 Gary Benson <gbenson@redhat.com>
9983
9984 * solib.c (solib_find): Strip "target:" prefix from sysroot
9985 if accessing local files.
9986
9987 2015-04-02 Gary Benson <gbenson@redhat.com>
9988
9989 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9990 checks and error messages.
9991
9992 2015-04-02 Gary Benson <gbenson@redhat.com>
9993
9994 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9995 (remote_filename_p): Remove declaration.
9996 (remote_bfd_open): Likewise.
9997 * remote.c (remote_bfd_iovec_open): Remove function.
9998 (remote_bfd_iovec_close): Likewise.
9999 (remote_bfd_iovec_pread): Likewise.
10000 (remote_bfd_iovec_stat): Likewise.
10001 (remote_filename_p): Likewise.
10002 (remote_bfd_open): Likewise.
10003 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10004 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10005 (gdb_bfd_open_maybe_remote): Remove function.
10006 (symfile_bfd_open): Replace remote filename check with
10007 target filename check.
10008 (reread_symbols): Use gdb_bfd_open.
10009 * build-id.c (gdbcore.h): New include.
10010 (build_id_to_debug_bfd): Use gdb_bfd_open.
10011 * infcmd.c (attach_command_post_wait): Remove remote filename
10012 check.
10013 * solib.c (solib_find): Replace remote-specific handling with
10014 target-specific handling. Update comments where necessary.
10015 (solib_bfd_open): Replace remote-specific handling with
10016 target-specific handling.
10017 (gdb_sysroot_changed): New function.
10018 (_initialize_solib): Call the above when gdb_sysroot changes.
10019 * windows-tdep.c (gdbcore.h): New include.
10020 (windows_xfer_shared_library): Use gdb_bfd_open.
10021
10022 2015-04-02 Gary Benson <gbenson@redhat.com>
10023
10024 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10025 (is_target_filename): New declaration.
10026 (gdb_bfd_has_target_filename): Likewise.
10027 (gdb_bfd_open): Update documentation comment.
10028 * gdb_bfd.c (target.h): New include.
10029 (gdb/fileio.h): Likewise.
10030 (is_target_filename): New function.
10031 (gdb_bfd_has_target_filename): Likewise.
10032 (fileio_errno_to_host): Likewise.
10033 (gdb_bfd_iovec_fileio_open): Likewise.
10034 (gdb_bfd_iovec_fileio_pread): Likewise.
10035 (gdb_bfd_iovec_fileio_close): Likewise.
10036 (gdb_bfd_iovec_fileio_fstat): Likewise.
10037 (gdb_bfd_open): Use target fileio to access paths prefixed
10038 with "target:" where necessary.
10039
10040 2015-04-02 Gary Benson <gbenson@redhat.com>
10041
10042 * target.h (struct target_ops) <to_filesystem_is_local>:
10043 New field.
10044 (target_filesystem_is_local): New macro.
10045 * target-delegates.c: Regenerate.
10046 * remote.c (remote_filesystem_is_local): New function.
10047 (init_remote_ops): Initialize to_filesystem_is_local.
10048
10049 2015-04-02 Gary Benson <gbenson@redhat.com>
10050
10051 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10052 (target_fileio_fstat): New declaration.
10053 * target.c (target_fileio_fstat): New function.
10054 * inf-child.c (inf_child_fileio_fstat): Likewise.
10055 (inf_child_target): Initialize to_fileio_fstat.
10056 * remote.c (init_remote_ops): Likewise.
10057
10058 2015-04-01 Sasha Smundak <asmundak@google.com>
10059
10060 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10061 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10062 (py-unwind.o): New recipe.
10063 * NEWS: mention Python frame unwinding.
10064 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10065 gdb/unwinder.py and gdb/command/unwinder.py
10066 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10067 list.
10068 (execute_unwinders): New function.
10069 * python/lib/gdb/command/unwinders.py: New file.
10070 * python/lib/gdb/unwinder.py: New file.
10071 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10072 (objfpy_dealloc): Decrement frame_unwinders reference count.
10073 (objfpy_initialize): Create frame_unwinders list.
10074 (objfpy_get_frame_unwinders): New function.
10075 (objfpy_set_frame_unwinders): Ditto.
10076 (objfile_getset): Add frame_unwinders attribute to Objfile.
10077 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10078 (pspy_dealloc): Decrement frame_unwinders reference count.
10079 (pspy_initialize): Create frame_unwinders list.
10080 (pspy_get_frame_unwinders): New function.
10081 (pspy_set_frame_unwinders): Ditto.
10082 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10083 * python/py-unwind.c: New file.
10084 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10085 (objpy_get_frame_unwinders): New prototype.
10086 (gdbpy_initialize_unwind): New prototype.
10087 * python/python.c (gdbpy_apply_type_printers): Call
10088 gdbpy_initialize_unwind.
10089
10090 2015-04-01 Pedro Alves <palves@redhat.com>
10091
10092 * infrun.c (resume): Check currently_stepping after clearing
10093 stepped_breakpoint, not before.
10094
10095 2015-04-01 Pedro Alves <palves@redhat.com>
10096
10097 * infrun.c (print_target_wait_results): Print all the ptid
10098 elements.
10099
10100 2015-04-01 Pedro Alves <palves@redhat.com>
10101
10102 * infrun.c (keep_going): Also discard cleanups if inserting
10103 breakpoints fails.
10104
10105 2015-04-01 Pedro Alves <palves@redhat.com>
10106
10107 * infrun.c (wait_for_inferior): Install the
10108 finish_thread_state_cleanup cleanup across the whole function, not
10109 just around handle_inferior_event.
10110
10111 2015-04-01 Pedro Alves <palves@redhat.com>
10112
10113 * infrun.c (resume) <step past permanent breakpoint>: Use
10114 do_target_resume.
10115
10116 2015-04-01 Pedro Alves <palves@redhat.com>
10117
10118 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10119
10120 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10121
10122 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10123
10124 2015-04-01 Pedro Alves <palves@redhat.com>
10125
10126 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10127 list if it was marked exited.
10128
10129 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10130
10131 * configure: Regenerated.
10132
10133 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10134 Jan Kratochvil <jan.kratochvil@redhat.com>
10135 Oleg Nesterov <oleg@redhat.com>
10136
10137 PR corefiles/16092
10138 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10139 New enum identifying the various options of the coredump_filter
10140 file.
10141 (struct smaps_vmflags): New struct.
10142 (use_coredump_filter): New variable.
10143 (decode_vmflags): New function.
10144 (mapping_is_anonymous_p): Likewise.
10145 (dump_mapping_p): Likewise.
10146 (linux_find_memory_regions_full): New variables
10147 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10148 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
10149 parsing of its information. Implement memory mapping filtering
10150 based on its contents.
10151 (show_use_coredump_filter): New function.
10152 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
10153 * NEWS: Mention the possibility of using the
10154 '/proc/PID/coredump_filter' file when generating a corefile.
10155 Mention new command 'set use-coredump-filter'.
10156
10157 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10158
10159 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
10160 read_memory_unsigned_integer.
10161
10162 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
10163
10164 * Makefile.in (ZLIB): New.
10165 (ZLIBINC): Likewise.
10166 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10167 (CLIBS): Add $(ZLIB).
10168 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10169 Add -lz to LIBS.
10170 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10171 * top.c (print_gdb_configuration): Remove --with-zlib and
10172 --without-zlib.
10173 * config.in: Regenerated.
10174 * configure: Likewise.
10175
10176 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10177
10178 * NEWS: Mention info os cpus support.
10179 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10180 (struct osdata_type): Add cpus entry, reorder the entries in
10181 alphabetical order.
10182
10183 2015-03-31 Matthias Klose <doko@ubuntu.com>
10184
10185 * compile/compile.c (compile_to_object): Allow triplets with or
10186 without vendor set.
10187
10188 2015-03-30 Doug Evans <dje@google.com>
10189
10190 PR c++/18141
10191 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10192 klass in VAR_DOMAIN.
10193
10194 2015-03-30 Gary Benson <gbenson@redhat.com>
10195
10196 * remote.c (remote_mourn_1): Remove function. Update all callers
10197 to use remote_mourn.
10198 (extended_remote_mourn_1): Remove function. Update all callers
10199 to use extended_remote_mourn.
10200 (extended_remote_attach_1): Remove function. Update all callers
10201 to use extended_remote_attach.
10202
10203 2015-03-28 James Bowman <james.bowman@ftdichip.com>
10204
10205 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10206 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10207 (ALLDEPFILES): Add ft32-tdep.c.
10208 * configure.tgt: Add FT32 entry.
10209 * ft32-tdep.c: New file, FT32 target-dependent code.
10210 * ft32-tdep.h: New file, FT32 target-dependent code.
10211
10212 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10213
10214 Revert:
10215 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10216 Code cleanup.
10217 * printcmd.c (print_command_1): Move expr variable scope.
10218
10219 2015-03-27 Joel Brobecker <brobecker@adacore.com>
10220
10221 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10222
10223 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10224
10225 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10226 sections.
10227
10228 2015-03-26 Joel Brobecker <brobecker@adacore.com>
10229
10230 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10231 exception raised while parsing the probe arguments.
10232 Force parsing to be done using the C language parser.
10233 * expression.h (parse_expression_with_language): Declare.
10234 * parse.c (parse_expression_with_language): New function.
10235
10236 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10237
10238 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10239
10240 2015-03-26 Andy Wingo <wingo@igalia.com>
10241
10242 PR symtab/18148
10243 * dwarf2read.c (struct partial_die_info): Add has_const_value
10244 member.
10245 (add_partial_symbol): Don't punt on symbols that have const_value
10246 attributes.
10247 (read_partial_die): Detect DW_AT_const_value.
10248
10249 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10250
10251 Code cleanup.
10252 * printcmd.c (print_command_1): Move expr variable scope.
10253
10254 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 Code cleanup.
10257 * printcmd.c (validate_format): Make the parameter cmdname const.
10258
10259 2015-03-26 Don Breazeal <donb@codesourcery.com>
10260
10261 * remote.c (_initialize_remote): Update comment.
10262
10263 2015-03-26 Pedro Alves <palves@redhat.com>
10264 Jon TURNEY <jon.turney@dronecode.org.uk>
10265
10266 * coffread.c (coff_symfile_read): When constructing the name of an
10267 import stub symbol from import symbol for amd64, only skip the
10268 char after _imp_ if the target is underscored (like i386) and the
10269 char is indeed the target's leading char.
10270
10271 2015-03-25 Pedro Alves <palves@redhat.com>
10272
10273 * target.h <to_async>: Replace 'callback' and 'context' parameters
10274 with boolean 'enable' parameter.
10275 (target_async): Replace CALLBACK and CONTEXT parameters with
10276 boolean ENABLE parameter.
10277 * inf-loop.c (inferior_event_handler): Adjust.
10278 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10279 (linux_nat_resume): Adjust.
10280 (async_client_callback, async_client_context): Delete.
10281 (handle_target_event): Call inferior_event_handler directly.
10282 (linux_nat_async): Replace 'callback' and 'context' parameters
10283 with boolean 'enable' parameter. Adjust. Remove references to
10284 async_client_callback and async_client_context.
10285 (linux_nat_close): Adjust.
10286 * record-btrace.c (record_btrace_async): Replace 'callback' and
10287 'context' parameters with boolean 'enable' parameter. Adjust.
10288 (record_btrace_resume): Adjust.
10289 * record-full.c (record_full_async): Replace 'callback' and
10290 'context' parameters with boolean 'enable' parameter. Adjust.
10291 (record_full_resume, record_full_core_resume): Adjust.
10292 * remote.c (struct remote_state) <async_client_callback,
10293 async_client_context>: Delete fields.
10294 (remote_start_remote, extended_remote_attach_1, remote_resume)
10295 (extended_remote_create_inferior): Adjust.
10296 (remote_async_serial_handler): Call inferior_event_handler
10297 directly.
10298 (remote_async): Replace 'callback' and 'context' parameters with
10299 boolean 'enable' parameter. Adjust.
10300 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10301 Adjust.
10302 * target-delegates.c: Regenerate.
10303
10304 2015-03-25 Gary Benson <gbenson@redhat.com>
10305 Pedro Alves <palves@redhat.com>
10306
10307 * target.c (fileio_ft_t): New typedef, define object vector.
10308 (fileio_fhandles): New static variable.
10309 (is_closed_fileio_fh): New macro.
10310 (lowest_closed_fd): New static variable.
10311 (acquire_fileio_fd): New function.
10312 (release_fileio_fd): Likewise.
10313 (fileio_fd_to_fh): New macro.
10314 (target_fileio_open): Wrap the file descriptor on success.
10315 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10316 (target_fileio_pread): Likewise.
10317 (target_fileio_close): Likewise.
10318
10319 2015-03-24 Pedro Alves <palves@redhat.com>
10320
10321 * thread.c (thread_apply_all_command): Take exited threads into
10322 account.
10323
10324 2015-03-24 Pedro Alves <palves@redhat.com>
10325
10326 * infrun.c (resume, proceed): Mention
10327 switch_back_to_stepped_thread, not switch_back_to_stepping.
10328
10329 2015-03-24 Pedro Alves <palves@redhat.com>
10330
10331 * infrun.c (user_visible_resume_ptid): Rewrite going from
10332 most-locked to unlocked instead of the opposite. Move comment ...
10333 * infrun.h (user_visible_resume_ptid): ... here.
10334
10335 2015-03-24 Pedro Alves <palves@redhat.com>
10336
10337 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10338 to resume the event lwp. Use the lwp's ptid instead of the passed
10339 in (maybe wildcard) ptid.
10340 (stop_wait_callback): Tweak debug log output.
10341 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10342 TRAP_TRACE.
10343 (linux_nat_filter_event): In debug output, distinguish a
10344 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10345 before trying to resume the lwp.
10346
10347 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10348
10349 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10350 pointer indirection.
10351 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10352 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10353
10354 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10355
10356 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10357 Renames DYN_ATTR_DATA_LOCATION.
10358 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10359 DYN_ATTR_DATA_LOCATION.
10360 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10361 instead of DYN_ATTR_DATA_LOCATION.
10362
10363 2015-03-24 Pedro Alves <palves@redhat.com>
10364
10365 * breakpoint.c (until_break_command): Adjust call to proceed.
10366 * gdbthread.h (struct thread_control_state) <stepping_command>:
10367 New field.
10368 * infcall.c (run_inferior_call): Adjust call to proceed.
10369 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10370 Adjust calls to proceed.
10371 (set_step_frame): Set the current thread's step_start_function
10372 here.
10373 (step_once): Adjust calls to proceed.
10374 (jump_command, signal_command, until_next_command)
10375 (finish_backward, finish_forward, proceed_after_attach_callback)
10376 (attach_command_post_wait): Adjust calls to proceed.
10377 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10378 (do_target_resume): New function, factored out from ...
10379 (resume): ... here. Remove 'step' parameter. Instead, check
10380 currently_stepping to determine whether the thread should be
10381 single-stepped.
10382 (proceed): Remove 'step' parameter and don't set the thread's
10383 step_start_function here. Adjust call to 'resume'.
10384 (handle_inferior_event): Adjust calls to 'resume'.
10385 (switch_back_to_stepped_thread): Use do_target_resume instead of
10386 'resume'.
10387 (keep_going): Adjust calls to 'resume'.
10388 * infrun.h (proceed): Remove 'step' parameter.
10389 (resume): Likewise.
10390 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10391 'resume'.
10392 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10393
10394 2015-03-24 Pedro Alves <palves@redhat.com>
10395
10396 * gdbthread.h (struct thread_control_state) <stepping_command>:
10397 New field.
10398 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10399 the thread's stepping_command field.
10400 * infrun.c (resume): Check the thread's stepping_command flag to
10401 determine which threads should be resumed. Rename 'entry_step'
10402 local to user_step.
10403 (clear_proceed_status_thread): Clear 'stepping_command'.
10404 (schedlock_applies): Change parameter type to struct thread_info
10405 pointer. Adjust.
10406 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10407 (switch_back_to_stepped_thread): Adjust calls to
10408 'schedlock_applies'.
10409 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10410
10411 2015-03-24 Pedro Alves <palves@redhat.com>
10412
10413 * infrun.c (step_start_function): Delete and ...
10414 * gdbthread.h (struct thread_control_state) <step_start_function>:
10415 ... now a field here.
10416 * infrun.c (clear_proceed_status_thread): Clear the thread's
10417 step_start_function.
10418 (proceed, process_event_stop_test, print_stop_event): Adjust.
10419
10420 2015-03-24 Pedro Alves <palves@redhat.com>
10421
10422 * infrun.c (proceed): No longer handle negative step.
10423
10424 2015-03-24 Gary Benson <gbenson@redhat.com>
10425
10426 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10427 (x86_linux_prepare_to_resume): Likewise.
10428 * x86-linux-nat.c (x86_linux_new_thread):
10429 Moved to nat/x86-linux.c.
10430 (x86_linux_prepare_to_resume): Likewise.
10431 * nat/x86-linux.c (x86_linux_new_thread): New function.
10432 (x86_linux_prepare_to_resume): Likewise.
10433
10434 2015-03-24 Gary Benson <gbenson@redhat.com>
10435
10436 * nat/x86-linux-dregs.h: New file.
10437 * nat/x86-linux-dregs.c: Likewise.
10438 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10439 (x86-linux-dregs.o): New rule.
10440 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10441 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10442 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10443 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10444 (x86_linux_dr_get): Likewise.
10445 (x86_linux_dr_set): Likewise.
10446 (x86_linux_dr_get_addr): Likewise.
10447 (x86_linux_dr_get_control): Likewise.
10448 (x86_linux_dr_get_status): Likewise.
10449 (update_debug_registers_callback): Likewise.
10450 (x86_linux_dr_set_control): Likewise.
10451 (x86_linux_dr_set_addr): Likewise.
10452 (x86_linux_update_debug_registers): Likewise.
10453
10454 2015-03-24 Gary Benson <gbenson@redhat.com>
10455
10456 * x86-linux-nat.c (x86_linux_update_debug_registers):
10457 New function, factored out from...
10458 (x86_linux_prepare_to_resume): ...this.
10459
10460 2015-03-24 Gary Benson <gbenson@redhat.com>
10461
10462 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10463 (x86_linux_dr_set): Likewise.
10464 (x86_linux_dr_get_addr): Likewise.
10465 (x86_linux_dr_get_control): Likewise.
10466 (x86_linux_dr_get_status): Likewise.
10467 (update_debug_registers_callback): Likewise.
10468 (x86_linux_dr_set_control): Likewise.
10469 (x86_linux_dr_set_addr): Likewise.
10470 (x86_linux_prepare_to_resume): Likewise.
10471 (x86_linux_new_thread): Likewise.
10472
10473 2015-03-24 Gary Benson <gbenson@redhat.com>
10474
10475 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10476 (x86_linux_new_thread): Rename argument.
10477
10478 2015-03-24 Gary Benson <gbenson@redhat.com>
10479
10480 * nat/x86-linux.h: New file.
10481 * nat/x86-linux.c: Likewise.
10482 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10483 (x86-linux.o): New rule.
10484 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10485 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10486 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10487 (lwp_set_arch_private_info): New declaration.
10488 (lwp_arch_private_info): Likewise.
10489 * linux-nat.c (lwp_set_arch_private_info): New function.
10490 (lwp_arch_private_info): Likewise.
10491 * x86-linux-nat.c: Include nat/x86-linux.h.
10492 (arch_lwp_info): Removed structure.
10493 (update_debug_registers_callback):
10494 Use lwp_set_debug_registers_changed.
10495 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10496 and lwp_set_debug_registers_changed.
10497 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10498
10499 2015-03-24 Gary Benson <gbenson@redhat.com>
10500
10501 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10502 (lwp_is_stopped): Likewise.
10503 (lwp_stop_reason): Likewise.
10504 * linux-nat.c (ptid_of_lwp): New function.
10505 (lwp_is_stopped): Likewise.
10506 (lwp_is_stopped_by_watchpoint): Likewise.
10507 * x86-linux-nat.c (update_debug_registers_callback):
10508 Use lwp_is_stopped.
10509 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10510 lwp_stop_reason.
10511
10512 2015-03-24 Gary Benson <gbenson@redhat.com>
10513
10514 * linux-nat.h (linux_stop_lwp): Move declaration to...
10515 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10516
10517 2015-03-24 Gary Benson <gbenson@redhat.com>
10518
10519 * linux-nat.h: Include nat/linux-nat.h.
10520 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10521 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10522 (iterate_over_lwps_ftype): New typedef.
10523 (iterate_over_lwps): New declaration.
10524 * linux-nat.h (iterate_over_lwps): Update comment. Use
10525 iterate_over_lwps_ftype. Update callback return value check.
10526
10527 2015-03-24 Gary Benson <gbenson@redhat.com>
10528
10529 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10530 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10531
10532 2015-03-24 Gary Benson <gbenson@redhat.com>
10533
10534 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10535 * linux-nat.c (current_lwp_ptid): New function.
10536 * x86-linux-nat.c: Include nat/linux-nat.h.
10537 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10538 (x86_linux_dr_get_control): Likewise.
10539 (x86_linux_dr_get_status): Likewise.
10540 (x86_linux_dr_set_control): Likewise.
10541 (x86_linux_dr_set_addr): Likewise.
10542
10543 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10544
10545 PR breakpoints/16466
10546 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10547
10548 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10549
10550 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10551 * ser-unix.c (hardwire_setparity): Likewise.
10552
10553 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10554
10555 * NEWS: Mention set/show serial parity command.
10556 * monitor.c (monitor_open): Call serial_setparity.
10557 * remote.c (remote_open_1): Likewise.
10558 * ser-base.c (ser_base_serparity): New function.
10559 * ser-base.h (ser_base_setparity): Add declaration.
10560 * ser-go32.c (dos_ops): Set "setparity" field.
10561 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10562 state.Parity.
10563 (ser_windows_setparity): New function.
10564 (hardwire_ops): Add ser_windows_setparity.
10565 (tty_ops): Add NULL for setparity field.
10566 (pipe_ops): Add ser_base_setparity.
10567 (tcp_ops): Likewise.
10568 * ser-pipe.c (pipe_ops): Likewise.
10569 * ser-tcp.c (tcp_ops): Likewise.
10570 * ser-unix.c (hardwire_setparity): Add declaration.
10571 (hardwire_raw): Don't reset PARENB flag.
10572 (hardwire_setparity): New function.
10573 (hardwire_ops): Add hardwire_setparity.
10574 * serial.c (serial_setparity): New function.
10575 (serial_parity): New global.
10576 (parity_none, parity_odd, parity_even, parity_enums, parity):
10577 New static globals.
10578 (set_parity): New function.
10579 (_initialize_serial): Add set/show serial parity commands.
10580 * serial.h (GDBPARITY_NONE): Define.
10581 (GDBPARITY_ODD): Define.
10582 (GDBPARITY_EVEN): Define.
10583 (serial_setparity) Add declaration.
10584 (struct serial_ops): Add setparity field.
10585 * target.h (serial_parity): Add declaration.
10586
10587 2015-03-23 Keith Seitz <keiths@redhat.com>
10588
10589 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10590
10591 2015-03-23 Keith Seitz <keiths@redhat.com>
10592
10593 * breakpoint.c (parse_breakpoint_sals): Use
10594 linespec_lexer_lex_keyword to ascertain if the user specified
10595 a NULL location.
10596 * linespec.c [IF_KEYWORD_INDEX]: Define.
10597 (linespec_lexer_lex_keyword): Export.
10598 (struct ls_parser) <keyword_ok>: Remove.
10599 A keyword is only a keyword if not followed by another keyword.
10600 (linespec_lexer_lex_one): Remove keyword_ok handling.
10601 Add comment explaining why the parsing stream is not advanced
10602 when a keyword is seen.
10603 (parse_linespec): Remove parser->keyword_ok.
10604 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10605
10606 2015-03-23 Keith Seitz <keiths@redhat.com>
10607
10608 PR gdb/18021
10609 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10610 if we find a static method with DW_AT_vtable_elem_location.
10611
10612 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10613
10614 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10615 before the second loop, to avoid undefined behavior. Reported by
10616 Anton Blanchard <anton@samba.org>.
10617
10618 2015-03-20 Keven Boell <keven.boell@intel.com>
10619
10620 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10621 data_location usage to linked list.
10622 (resolve_dynamic_type_internal): Adapt data_location to
10623 linked list.
10624 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10625 (copy_type_recursive, copy_type): Add copy of linked list.
10626 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10627 (struct dynamic_prop_list): New struct.
10628 * dwarf2read.c (set_die_type): Set data_location data.
10629
10630 2015-03-20 Pedro Alves <palves@redhat.com>
10631
10632 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10633 inner block and make it const.
10634 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10635
10636 2015-03-20 Pedro Alves <palves@redhat.com>
10637
10638 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10639 * breakpoint.h (set_breakpoint_condition): Update declaration.
10640
10641 2015-03-20 Pedro Alves <palves@redhat.com>
10642
10643 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10644
10645 2015-03-20 Pedro Alves <palves@redhat.com>
10646
10647 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10648
10649 2015-03-20 Pedro Alves <palves@redhat.com>
10650
10651 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10652
10653 2015-03-20 Pedro Alves <palves@redhat.com>
10654
10655 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10656 (nto_init_solib_absolute_prefix): Likewise.
10657
10658 2015-03-20 Pedro Alves <palves@redhat.com>
10659
10660 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10661 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10662
10663 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10664
10665 * config/djgpp/README: Remove gdb.hp.
10666
10667 2015-03-20 Yao Qi <yao.qi@linaro.org>
10668
10669 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10670 set_gdbarch_cannot_step_breakpoint.
10671
10672 2015-03-19 Pedro Alves <palves@redhat.com>
10673
10674 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10675 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10676 instead call perror_with_name.
10677 (check_ptrace_stopped_lwp_gone): New function.
10678 (linux_resume_one_lwp): Reimplement as wrapper around
10679 linux_resume_one_lwp_throw that swallows errors if the LWP is
10680 gone.
10681 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10682 swallows errors if the LWP is gone. Use
10683 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10684
10685 2015-03-19 Pedro Alves <palves@redhat.com>
10686
10687 * linux-nat.c (status_callback): Return early if the LWP has no
10688 status pending.
10689
10690 2015-03-19 Pedro Alves <palves@redhat.com>
10691
10692 * linux-nat.c (select_event_lwp_callback): Update comment to no
10693 longer mention SIGTRAP.
10694
10695 2015-03-18 Tristan Gingold <gingold@adacore.com>
10696
10697 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10698 redirection code to ...
10699 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10700 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10701
10702 2015-03-18 Gary Benson <gbenson@redhat.com>
10703
10704 (remote_protocol_features): Remove the "vFile:fstat" feature.
10705 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10706
10707 2015-03-11 Yao Qi <yao.qi@linaro.org>
10708
10709 PR tdep/18107
10710 * aarch64-linux-tdep.c: Include xml-syscall.h
10711 (aarch64_linux_get_syscall_number): New function.
10712 (aarch64_linux_init_abi): Call
10713 set_gdbarch_get_syscall_number.
10714 * syscalls/aarch64-linux.xml: New file.
10715
10716 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10717
10718 * ser-base.h (ser_base_setstopbits): Change second argument name
10719 from "rate" to "num".
10720
10721 2015-03-17 Gary Benson <gbenson@redhat.com>
10722 Luke Allardyce <lukeallardyce@gmail.com>
10723
10724 PR gdb/18131
10725 * common/common-remote-fileio.h (sys/stat.h): New include.
10726 (stuct stat): Remove forward declaration.
10727
10728 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10729
10730 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10731 before writing core register notes.
10732
10733 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10734 Pedro Alves <palves@redhat.com>
10735
10736 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10737 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10738 (tgoto): Wrap with extern "C".
10739
10740 2015-03-16 Pedro Alves <palves@redhat.com>
10741 Yuanhui Zhang <asmwarrior@gmail.com>
10742
10743 * stub-termcap.c (tputs): Change prototype.
10744
10745 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10746 Pedro Alves <palves@redhat.com>
10747
10748 * windows-nat.c (struct thread_info_struct): Rename to ...
10749 (struct windows_thread_info_struct): ... this.
10750 (thread_info): Rename to ...
10751 (windows_thread_info): ... this.
10752 All users updated.
10753
10754 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10755 Pedro Alves <palves@redhat.com>
10756
10757 * NEWS: New Removed targets and native configurations.
10758
10759 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10760
10761 Remove HPUX.
10762 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10763 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10764 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10765 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10766 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10767 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10768 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10769 hppa-hpux-tdep.c.
10770 * config/ia64/hpux.mh: Remove file.
10771 * config/pa/hpux.mh: Remove file.
10772 * configure: Rebuilt.
10773 * configure.ac (dlgetmodinfo, somread.o): Remove.
10774 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10775 (ia64-*-hpux*): Remove its float format exception.
10776 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10777 * hppa-hpux-nat.c: Remove file.
10778 * hppa-hpux-tdep.c: Remove file.
10779 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10780 Move them here from hppa-tdep.h
10781 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10782 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10783 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10784 Move them to hppa-tdep.c.
10785 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10786 declarations.
10787 * ia64-hpux-nat.c: Remove file.
10788 * ia64-hpux-tdep.c: Remove file.
10789 * ia64-hpux-tdep.h: Remove file.
10790 * inf-ttrace.c: Remove file.
10791 * inf-ttrace.h: Remove file.
10792 * solib-ia64-hpux.c: Remove file.
10793 * solib-ia64-hpux.h: Remove file.
10794 * solib-pa64.c: Remove file.
10795 * solib-pa64.h: Remove file.
10796 * solib-som.c: Remove file.
10797 * solib-som.h: Remove file.
10798 * somread.c: Remove file.
10799
10800 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10801
10802 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10803 * config.in: Regenerate.
10804 * configure: Regenerate.
10805 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10806 define.
10807 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10808 enumerate memory regions if present.
10809
10810 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10811
10812 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10813 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10814 expressions.
10815 (i386fbsd_sigtramp_p): Likewise.
10816
10817 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10818
10819 * MAINTAINERS (Write After Approval): Add John Baldwin.
10820
10821 2015-03-12 Gary Benson <gbenson@redhat.com>
10822
10823 * solib.c (_initialize_solib): Make "set/show sysroot" use
10824 add_setshow_optional_filename_cmd so it can be restored to
10825 empty after being set.
10826
10827 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10828
10829 * Makefile.in (SFILES): New source break-catch-syscall.c.
10830 (COMMON_OBS): New object break-catch-syscall.o.
10831 * break-catch-syscall.c: New file.
10832 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10833 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10834 (struct syscall_catchpoint): Likewise.
10835 (dtor_catch_syscall): Likewise.
10836 (catch_syscall_inferior_data): Likewise.
10837 (struct catch_syscall_inferior_data): Likewise.
10838 (get_catch_syscall_inferior_data): Likewise.
10839 (catch_syscall_inferior_data_cleanup): Likewise.
10840 (insert_catch_syscall): Likewise.
10841 (remove_catch_syscall): Likewise.
10842 (breakpoint_hit_catch_syscall): Likewise.
10843 (print_it_catch_syscall): Likewise.
10844 (print_one_catch_syscall): Likewise.
10845 (print_mention_catch_syscall): Likewise.
10846 (print_recreate_catch_syscall): Likewise.
10847 (catch_syscall_breakpoint_ops): Likewise.
10848 (syscall_catchpoint_p): Likewise.
10849 (create_syscall_event_catchpoint): Likewise.
10850 (catch_syscall_split_args): Likewise.
10851 (catch_syscall_command_1): Likewise.
10852 (is_syscall_catchpoint_enabled): Likewise.
10853 (catch_syscall_enabled): Likewise.
10854 (catching_syscall_number): Likewise.
10855 (catch_syscall_completer): Likewise.
10856 (clear_syscall_counts): Likewise.
10857 (initialize_breakpoint_ops): Move initialization of syscall
10858 catchpoints to break-catch-syscall.c.
10859 (_initialize_breakpoint): Move code related to syscall catchpoints
10860 to break-catch-syscall.c.
10861
10862 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10863
10864 * breakpoint.c (breakpoint_find_if): New function.
10865 * breakpoint.h (breakpoint_find_if): New prototype.
10866
10867 2015-03-11 Gary Benson <gbenson@redhat.com>
10868
10869 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10870 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10871 (remote_fileio_to_host_ulong): Likewise.
10872 (remote_fileio_to_host_mode): Likewise.
10873 (remote_fileio_to_host_time): Likewise.
10874 (remote_fileio_to_host_stat): Likewise.
10875 * remote.c (PACKET_vFile_fstat): New enum value.
10876 (remote_protocol_features): Register the "vFile:fstat" feature.
10877 (remote_hostio_fstat): New function.
10878 (remote_bfd_iovec_stat): Use the above.
10879 (_initialize_remote): Register new "set/show remote
10880 hostio-fstat-packet" command.
10881 * symfile.c (separate_debug_file_exists): Update comment.
10882 * NEWS: Announce new vFile:fstat packet.
10883
10884 2015-03-11 Gary Benson <gbenson@redhat.com>
10885
10886 * common/common-remote-fileio.h: New file.
10887 * common/common-remote-fileio.c: Likewise.
10888 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10889 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10890 (COMMON_OBS): Add common-remote-fileio.o.
10891 (common-remote-fileio.o): New rule.
10892 * remote-fileio.h (common-remote-fileio.h): New include.
10893 * remote-fileio.c (gdb/fileio.h): Do not include.
10894 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10895 (remote_fileio_to_fio_uint): Likewise.
10896 (remote_fileio_to_fio_time): Likewise.
10897 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10898 (remote_fileio_to_fio_mode): Likewise.
10899 (remote_fileio_to_fio_ulong): Likewise.
10900 (remote_fileio_to_fio_stat): Likewise.
10901
10902 2015-03-11 Andy Wingo <wingo@igalia.com>
10903
10904 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10905 we were checking the cached type, not the cached dynamic type.
10906
10907 2015-03-11 Andy Wingo <wingo@igalia.com>
10908
10909 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10910 other strings, as these are on the GC'd heap, and will be
10911 collected along with the smob.
10912
10913 2015-03-11 Andy Wingo <wingo@igalia.com>
10914
10915 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10916 (objfile_functions): Bind gdbscm_objfile_progspace to
10917 objfile-progspace.
10918 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10919
10920 2015-03-11 Andy Wingo <wingo@igalia.com>
10921
10922 * guile/guile.c (_initialize_guile): Disable automatic
10923 finalization, if Guile offers us that possibility.
10924 * guile/guile.c (call_initialize_gdb_module):
10925 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10926 finalizers in appropriate places.
10927 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10928 scm_set_automatic_finalization_enabled.
10929 * configure: Regenerated.
10930
10931 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10932
10933 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10934 SAL, if possible.
10935
10936 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10937
10938 * s390-linux-nat.c (struct arch_lwp_info): New.
10939 (s390_fix_watch_points): Rename to...
10940 (s390_prepare_to_resume): ...this. Skip the PER info update
10941 unless the watch points have changed.
10942 (s390_refresh_per_info, s390_new_thread): New functions.
10943 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10944 s390_fix_watch_points.
10945 (s390_remove_watchpoint): Likewise.
10946 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10947 Register s390_prepare_to_resume.
10948
10949 2015-03-09 Pedro Alves <palves@redhat.com>
10950
10951 Revert:
10952 2015-03-07 Pedro Alves <palves@redhat.com>
10953 * common/gdb_socket.h: New file.
10954 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10955 sys/socket.h.
10956 (net_open): Use union gdb_sockaddr_u.
10957
10958 2015-03-07 Pedro Alves <palves@redhat.com>
10959
10960 * configure.ac (build_warnings): Move -Wmissing-prototypes
10961 -Wdeclaration-after-statement -Wmissing-parameter-type
10962 -Wold-style-declaration -Wold-style-definition to the C-specific
10963 set.
10964 * configure: Regenerate.
10965
10966 2015-03-07 Pedro Alves <palves@redhat.com>
10967
10968 * common/gdb_socket.h: New file.
10969 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10970 sys/socket.h.
10971 (net_open): Use union gdb_sockaddr_u.
10972
10973 2015-03-07 Pedro Alves <palves@redhat.com>
10974
10975 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10976 (exceptions_state_mc_action_iter)
10977 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10978 Don't define.
10979 [__cplusplus] (try_scope_depth): New global.
10980 [__cplusplus] (exception_try_scope_entry)
10981 (exception_try_scope_exit, gdb_exception_sliced_copy)
10982 (exception_rethrow): New functions.
10983 (throw_exception): In C++ mode, throw
10984 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10985 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10986 (throw_it): In C++ mode, use try_scope_depth.
10987 * common/common-exceptions.h [!__cplusplus]
10988 (exceptions_state_mc_action_iter)
10989 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10990 Don't declare.
10991 [__cplusplus] (exception_try_scope_entry)
10992 (exception_try_scope_exit, exception_rethrow): Declare.
10993 [__cplusplus] (struct exception_try_scope): New struct.
10994 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10995 C++ exceptions.
10996 (struct gdb_exception_RETURN_MASK_ALL)
10997 (struct gdb_exception_RETURN_MASK_ERROR)
10998 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10999
11000 2015-03-07 Pedro Alves <palves@redhat.com>
11001
11002 * main.c (handle_command_errors): Remove volatile qualifier from
11003 parameter.
11004
11005 2015-03-07 Pedro Alves <palves@redhat.com>
11006
11007 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11008 TRY and CATCH.
11009 * gdbtypes.c (safe_parse_type): Remove empty line.
11010 (types_deeply_equal):
11011 * guile/scm-frame.c (gdbscm_frame_name):
11012 * linux-thread-db.c (find_new_threads_once):
11013 * python/py-breakpoint.c (bppy_get_commands):
11014 * record-btrace.c (record_btrace_insert_breakpoint)
11015 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11016 (record_btrace_start_replaying): Adjust to avoid code between TRY
11017 and CATCH.
11018
11019 2015-03-07 Pedro Alves <palves@redhat.com>
11020
11021 * common/common-exceptions.c (struct catcher) <exception>: No
11022 longer a pointer to volatile exception. Now an exception value.
11023 <mask>: Delete field.
11024 (exceptions_state_mc_init): Remove all parameters. Adjust.
11025 (exceptions_state_mc): No longer pop the catcher here.
11026 (exceptions_state_mc_catch): New function.
11027 (throw_exception): Adjust.
11028 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11029 all parameters.
11030 (exceptions_state_mc_catch): Declare.
11031 (TRY_CATCH): Rename to ...
11032 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11033 (CATCH, END_CATCH): New.
11034 All callers adjusted.
11035
11036 2015-03-07 Tom Tromey <tromey@redhat.com>
11037
11038 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11039
11040 2015-03-07 Pedro Alves <palves@redhat.com>
11041
11042 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11043 (amd64_epilogue_frame_cache): Normal exception handling code.
11044 * break-catch-throw.c (check_status_exception_catchpoint)
11045 (re_set_exception_catchpoint): Ditto.
11046 * cli/cli-interp.c (safe_execute_command):
11047 * cli/cli-script.c (script_from_file): Ditto.
11048 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11049 Ditto.
11050 * compile/compile-object-run.c (compile_object_run): Ditto.
11051 * cp-abi.c (baseclass_offset): Ditto.
11052 * cp-valprint.c (cp_print_value): Ditto.
11053 * exceptions.c (catch_exceptions_with_msg):
11054 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11055 * frame.c (get_frame_address_in_block_if_available): Ditto.
11056 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11057 (i386_sigtramp_frame_cache): Ditto.
11058 * infcmd.c (post_create_inferior): Ditto.
11059 * linespec.c (parse_linespec, find_linespec_symbols):
11060 * p-valprint.c (pascal_object_print_value): Ditto.
11061 * parse.c (parse_expression_for_completion): Ditto.
11062 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11063 * remote.c (remote_get_noisy_reply): Ditto.
11064 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11065 * solib-svr4.c (solib_svr4_r_map): Ditto.
11066
11067 2015-03-06 Gary Benson <gbenson@redhat.com>
11068
11069 * common/common-utils.h (startswith): New inline function.
11070 All places where this logic was used updated to use the above.
11071
11072 2015-03-05 Pedro Alves <palves@redhat.com>
11073
11074 PR gdb/18002
11075 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11076 after reading the breakpoint's shadow memory.
11077
11078 2015-03-05 Mark Kettenis <kettenis@gnu.org>
11079
11080 * hppabsd-nat.c: Remove file.
11081 * hppaobsd-nat.c: New file.
11082 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11083 hppaobsd-nat.c.
11084 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11085 hppaobsd-nat.o.
11086
11087 2015-03-04 Pedro Alves <palves@redhat.com>
11088
11089 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11090 (target_decr_pc_after_break): Delete declaration.
11091 * target.c (default_target_decr_pc_after_break)
11092 (target_decr_pc_after_break): Delete.
11093 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11094 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11095 * linux-thread-db.c (check_event): Likewise.
11096 * infrun.c (adjust_pc_after_break): Likewise.
11097 * darwin-nat.c (cancel_breakpoint): Likewise.
11098 * aix-thread.c (aix_thread_wait): Likewise.
11099 * target-delegates.c: Regenerate.
11100
11101 2015-03-04 Pedro Alves <palves@redhat.com>
11102
11103 * linux-nat.c (save_sigtrap): Check for breakpoints before
11104 checking watchpoints.
11105 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11106 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11107 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11108 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11109 (linux_nat_stopped_by_sw_breakpoint)
11110 (linux_nat_supports_stopped_by_sw_breakpoint)
11111 (linux_nat_stopped_by_hw_breakpoint)
11112 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11113 (linux_nat_wait_1): Don't re-increment the PC if relying on
11114 SIGTRAP's siginfo->si_code.
11115 (linux_nat_add_target): Install new target methods.
11116 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11117 offset if the target already adjusted the PC.
11118 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11119 (GDB_ARCH_TRAP_BRKPT): New.
11120 (TRAP_HWBKPT): Define if not already defined.
11121
11122 2015-03-04 Pedro Alves <palves@redhat.com>
11123
11124 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11125 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11126 Delete field.
11127 <stop_reason>: New field.
11128 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11129 (packet_set_cmd_state): New function.
11130 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11131 features.
11132 (remote_query_supported): If not disabled with the corresponding
11133 "set remote foo-packet" command, report support for the swbreak
11134 and hwbreak features.
11135 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11136 field.
11137 <stop_reason>: New field.
11138 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11139 (remote_wait_as): Adjust.
11140 (remote_stopped_by_sw_breakpoint)
11141 (remote_supports_stopped_by_sw_breakpoint)
11142 (remote_stopped_by_hw_breakpoint)
11143 (remote_supports_stopped_by_hw_breakpoint): New functions.
11144 (remote_stopped_by_watchpoint): New function.
11145 (init_remote_ops): Install them.
11146 (_initialize_remote): Register new "set/show remote
11147 swbreak-feature-packet" and "set/show remote
11148 swbreak-feature-packet" commands.
11149
11150 2015-03-04 Pedro Alves <palves@redhat.com>
11151
11152 * btrace.h: Include target/waitstatus.h.
11153 (struct btrace_thread_info) <stop_reason>: New field.
11154 * record-btrace.c (record_btrace_step_thread): Use
11155 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11156 (record_btrace_decr_pc_after_break): Delete.
11157 (record_btrace_stopped_by_sw_breakpoint)
11158 (record_btrace_supports_stopped_by_sw_breakpoint)
11159 (record_btrace_stopped_by_hw_breakpoint)
11160 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
11161 (init_record_btrace_ops): Install them.
11162 * record-full.c (record_full_hw_watchpoint): Delete and replace
11163 with ...
11164 (record_full_stop_reason): ... this throughout.
11165 (record_full_exec_insn): Adjust.
11166 (record_full_wait_1): Adjust. No longer re-increment the PC.
11167 (record_full_wait_1): Adjust. Use
11168 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11169 (record_full_stopped_by_watchpoint): Adjust.
11170 (record_full_stopped_by_sw_breakpoint)
11171 (record_full_supports_stopped_by_sw_breakpoint)
11172 (record_full_supports_stopped_by_sw_breakpoint)
11173 (record_full_stopped_by_hw_breakpoint)
11174 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11175 (init_record_full_ops, init_record_full_core_ops): Install them.
11176 * record.c (record_check_stopped_by_breakpoint): New function.
11177 * record.h: Include target/waitstatus.h.
11178 (record_check_stopped_by_breakpoint): New declaration.
11179
11180 2015-03-04 Pedro Alves <palves@redhat.com>
11181
11182 enum lwp_stop_reason -> enum target_stop_reason
11183 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11184 (linux_nat_stopped_by_watchpoint, status_callback)
11185 (linux_nat_wait_1): Adjust.
11186 * linux-nat.h (enum lwp_stop_reason): Delete.
11187 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11188 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11189 * target/waitstatus.h (enum target_stop_reason): New.
11190
11191 2015-03-04 Pedro Alves <palves@redhat.com>
11192
11193 * breakpoint.c (need_moribund_for_location_type): New function.
11194 (bpstat_stop_status): Don't skipping checking moribund locations
11195 of breakpoint types which the target tell caused a stop.
11196 (program_breakpoint_here_p): New function, factored out from ...
11197 (bp_loc_is_permanent): ... this.
11198 (update_global_location_list): Don't create a moribund location if
11199 the target supports reporting stops of the type of the removed
11200 breakpoint.
11201 * breakpoint.h (program_breakpoint_here_p): New declaration.
11202 * infrun.c (adjust_pc_after_break): Return early if the target has
11203 already adjusted the PC. Add comments.
11204 (handle_signal_stop): If nothing explains a signal, and the target
11205 tells us the stop was caused by a software breakpoint, check if
11206 there's a breakpoint instruction in the memory. If so, adjust the
11207 PC before presenting the stop to the user. Otherwise, ignore the
11208 trap. If nothing explains a signal, and the target tells us the
11209 stop was caused by a hardware breakpoint, ignore the trap.
11210 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11211 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11212 to_supports_stopped_by_hw_breakpoint>: New fields.
11213 (target_stopped_by_sw_breakpoint)
11214 (target_supports_stopped_by_sw_breakpoint)
11215 (target_stopped_by_hw_breakpoint)
11216 (target_supports_stopped_by_hw_breakpoint): Define.
11217 * target-delegates.c: Regenerate.
11218
11219 2015-03-04 Pedro Alves <palves@redhat.com>
11220
11221 * infrun.c (follow_fork_inferior): Use the whole of the
11222 inferior_ptid and pending_follow.related_pid ptids instead of
11223 building ptids from the process components. Adjust verbose output
11224 to use target_pid_to_str.
11225 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11226 inferior_ptid and pending_follow.related_pid ptids instead of
11227 building ptids from the process components.
11228
11229 2015-03-04 Mark Kettenis <kettenis@gnu.org>
11230
11231 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11232 (inf_ptrace_insert_fork_catchpoint): New function.
11233 (inf_ptrace_remove_fork_catchpoint): New function.
11234 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11235
11236 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11237
11238 * s390-linux-tdep.c (s390_register_name): Return empty string
11239 instead of NULL for registers that shouldn't be visible.
11240
11241 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11242
11243 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11244 XML file for 64-bit targets.
11245
11246 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11247
11248 * target.h (find_default_create_inferior): Remove declaration.
11249 (find_default_attach): Likewise.
11250
11251 2015-03-03 Pedro Alves <palves@redhat.com>
11252
11253 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11254 Use ptid_get_pid to get the overall process id when resuming all
11255 threads.
11256
11257 2015-03-03 Pedro Alves <palves@redhat.com>
11258
11259 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11260 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11261 * inf-ptrace.c (get_ptrace_pid): New function.
11262 (inf_ptrace_resume): Use it.
11263 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11264 to the lower layer.
11265
11266 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11267
11268 * nat/linux-btrace.c: Include sys/utsname.h.
11269 (linux_determine_kernel_ptr_bits): New.
11270 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11271 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11272 ptr_bits.
11273
11274 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11275
11276 * btrace.c (ftrace_update_function): Treat return as tailcall for
11277 "_dl_runtime_resolve".
11278
11279 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11280
11281 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11282 * btrace.c (ftrace_debug): Do not print the line range.
11283 (ftrace_skip_file, ftrace_update_lines): Remove.
11284 (ftrace_new_function): Remove lbegin and lend initialization.
11285 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11286 * record-btrace.c (btrace_compute_src_line_range): New.
11287 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11288
11289 2015-03-02 Pedro Alves <palves@redhat.com>
11290
11291 * infrun.c (follow_exec): Delete all threads of the process except
11292 the event thread. Extended comments.
11293
11294 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11295
11296 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11297
11298 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11299
11300 * utils.h: Remove <stdbool.h> #include.
11301 (producer_is_gcc): Change return type to "int".
11302 * utils.c (producer_is_gcc): Change return type to int.
11303 Return 1 instead of true, and 0 instead of false.
11304 Adjust function documentation accordingly.
11305
11306 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11307
11308 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11309 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11310 present.
11311 (s390_linux_store_inferior_registers): Likewise.
11312 (s390_get_hwcap): Remove function. Embed its logic...
11313 (s390_read_description): ...here. Yield a target description with
11314 vector registers if applicable.
11315 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11316 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11317 "features/s390x-tevx-linux64.c".
11318 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11319 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11320 for "GNU/Linux-specific registers".
11321 (s390_dwarf_reg_r0l): New enum value.
11322 (s390_dwarf_reg_to_regnum): Support vector registers.
11323 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11324 of GPR lower halves.
11325 (regnum_is_vxr_full): New function.
11326 (s390_register_name): New function.
11327 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11328 f0-f15 and v0l-v15l.
11329 (s390_pseudo_register_type): Likewise.
11330 (s390_pseudo_register_read): Likewise.
11331 (s390_pseudo_register_write): Likewise.
11332 (s390_value_from_register): Account for the fact that values are
11333 placed left-justified in vector registers.
11334 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11335 the vector reggroup and omit them from the general reggroup.
11336 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11337 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11338 (s390_iterate_over_regset_sections): Add iterations for the two
11339 new vector regsets.
11340 (s390_core_read_description): Yield a target description with
11341 vector registers if applicable.
11342 (s390_gdbarch_init): Handle target descriptions with vector
11343 registers. Add "register_name" gdbarch method.
11344 (_initialize_s390_tdep): Call new tdesc initialization functions.
11345 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11346 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11347 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11348 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11349 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11350 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11351 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11352 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11353 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11354 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11355 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11356 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11357 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11358 (S390_NUM_REGS): Adjust value.
11359 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11360 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11361 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11362 * NEWS: Announce S/390 vector register support.
11363
11364 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11365
11366 * features/s390-tevx-linux64.xml: New file.
11367 * features/s390-vx-linux64.xml: New file.
11368 * features/s390-vx.xml: New file.
11369 * features/s390x-tevx-linux64.xml: New file.
11370 * features/s390x-vx-linux64.xml: New file.
11371 * features/Makefile (WHICH): Add s390-vx-linux64,
11372 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11373 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11374 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11375 macros.
11376 * features/s390-tevx-linux64.c: New generated file.
11377 * features/s390-vx-linux64.c: Likewise.
11378 * features/s390x-tevx-linux64.c: Likewise.
11379 * features/s390x-vx-linux64.c: Likewise.
11380 * regformats/s390-tevx-linux64.dat: Likewise.
11381 * regformats/s390-vx-linux64.dat: Likewise.
11382 * regformats/s390x-tevx-linux64.dat: Likewise.
11383 * regformats/s390x-vx-linux64.dat: Likewise.
11384
11385 2015-02-28 Doug Evans <xdje42@gmail.com>
11386
11387 * symtab.h (struct symtab) <next>: Fix comment.
11388
11389 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11390
11391 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11392 python_GdbMethods.
11393
11394 2015-02-27 Pedro Alves <palves@redhat.com>
11395
11396 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11397
11398 2015-02-27 Pedro Alves <palves@redhat.com>
11399
11400 * common/common-exceptions.h (exception_none): Declare.
11401 * common/common-exceptions.c (exception_none): Moved from
11402 exceptions.c.
11403 (exceptions_state_mc_init): Use exception_none.
11404 * exceptions.c (exception_none): Move to
11405 common/common-exceptions.c.
11406 * exceptions.h (exception_none): Move to
11407 common/common-exceptions.h.
11408
11409 2015-02-27 Pedro Alves <palves@redhat.com>
11410
11411 * main.c (catch_command_errors, catch_command_errors_const):
11412 Remove 'mask' argument. Adjust.
11413 (captured_main): Adjust callers.
11414
11415 2015-02-27 Pedro Alves <palves@redhat.com>
11416
11417 * python/python-internal.h: Include "extension-priv.h".
11418
11419 2015-02-27 Pedro Alves <palves@redhat.com>
11420
11421 * breakpoint.h (enum print_stop_action): Move further up in the
11422 file.
11423
11424 2015-02-27 Pedro Alves <palves@redhat.com>
11425
11426 * gdbarch.sh: Include regcache.h.
11427 * gdbarch.h: Regenerate.
11428
11429 2015-02-27 Pedro Alves <palves@redhat.com>
11430
11431 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11432 Remove duplicate const.
11433 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11434 duplicate const.
11435
11436 2015-02-27 Pedro Alves <palves@redhat.com>
11437
11438 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11439 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11440 * features/feature_to_c.sh: Tag the generated xml_builtin array
11441 with extern const in C++ mode.
11442
11443 2015-02-27 Tom Tromey <tromey@redhat.com>
11444
11445 * minidebug.c (struct lzma_stream): Rename to ...
11446 (struct gdb_lzma_stream): ... this.
11447 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11448
11449 2015-02-27 Pedro Alves <palves@redhat.com>
11450
11451 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11452 function.
11453 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11454 (mi_cmd_stack_list_variables): Use it.
11455
11456 2015-02-27 Pedro Alves <palves@redhat.com>
11457
11458 * x86-linux-nat.c (u_debugreg_offset): New function.
11459 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11460
11461 2015-02-27 Pedro Alves <palves@redhat.com>
11462
11463 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11464 declaration.
11465 Include break-common.h.
11466
11467 2015-02-27 Tom Tromey <tromey@redhat.com>
11468 Pedro Alves <palves@redhat.com>
11469
11470 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11471 local used to iterate over enums.
11472 * completer.c (signal_completer): Likewise.
11473 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11474 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11475 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11476 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11477 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11478 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11479 * tui-wingeneral.c (tui_refresh_all): Likewise.
11480
11481 2015-02-27 Pedro Alves <palves@redhat.com>
11482
11483 * target.h: Include "infrun.h".
11484
11485 2015-02-27 Pedro Alves <palves@redhat.com>
11486
11487 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11488
11489 2015-02-27 Pedro Alves <palves@redhat.com>
11490
11491 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11492 (IPA_SYM): Use it.
11493 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11494
11495 2015-02-27 Pedro Alves <palves@redhat.com>
11496
11497 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11498 cli_mld_erase_entire_line, and make it extern "C".
11499 * common/common-defs.h (EXTERN_C): New.
11500 * completer.c (_rl_completion_prefix_display_length)
11501 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11502 out of gdb_display_match_list_1.
11503 (_rl_qsort_string_compare): Move declaration out of
11504 gdb_display_match_list_1, and make it extern "C".
11505 * defs.h (re_comp): Use EXTERN_C.
11506 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11507 and make it extern "C".
11508 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11509 and make it extern "C".
11510 (main): Move declaration out of maintenance_set_profile_cmd.
11511 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11512 EXTERN_C.
11513
11514 2015-02-27 Pedro Alves <palves@redhat.com>
11515
11516 * python/python.c (GdbMethods): Rename to ...
11517 (python_GdbMethods): ... this and make extern.
11518 (GdbModuleDef): Rename to ...
11519 (python_GdbModuleDef): ... this and make extern.
11520
11521 2015-02-27 Pedro Alves <palves@redhat.com>
11522
11523 * record-btrace.c (set_record_btrace_cmdlist)
11524 (show_record_btrace_cmdlist): Remove redefinitions.
11525
11526 2015-02-27 Tom Tromey <tromey@redhat.com>
11527 Pedro Alves <palves@redhat.com>
11528
11529 * dwarf2-frame.c (enum cfa_how_kind, struct
11530 dwarf2_frame_state_reg_info): Move out of struct
11531 dwarf2_frame_state.
11532 * dwarf2read.c (struct tu_stats): Move out of struct
11533 dwarf2_per_objfile.
11534 (struct file_entry): Move out of struct line_header.
11535 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11536 typedef_field_list): Move out of struct field_info.
11537 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11538 Move out of struct dynamic_prop.
11539 (union type_owner, union field_location, struct field, struct
11540 range_bounds, union type_specific): Move out of struct main_type.
11541 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11542 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11543 (struct call_site_target, union call_site_parameter_u, struct
11544 call_site_parameter): Move out of struct call_site.
11545 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11546 m32c_prologue.
11547 (enum srcdest_kind): Move out of struct srcdest.
11548 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11549 * prologue-value.h (enum prologue_value_kind): Move out of struct
11550 prologue_value.
11551 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11552 gdbarch_tdep.
11553 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11554 out of struct field_info.
11555 * symfile.h (struct other_sections): Move out of struct
11556 section_addr_info.
11557 * symtab.c (struct symbol_cache_slot): Move out struct
11558 block_symbol_cache.
11559 * target-descriptions.c (enum tdesc_type_kind): Move out of
11560 typedef struct tdesc_type.
11561 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11562 struct tui_line_or_address.
11563 * value.c (enum internalvar_kind, union internalvar_data): Move
11564 out of struct internalvar.
11565 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11566 gdbarch_tdep.
11567
11568 2015-02-27 Tom Tromey <tromey@redhat.com>
11569 Pedro Alves <palves@redhat.com>
11570
11571 Rename symbols whose names are reserved C++ keywords throughout.
11572
11573 2015-02-27 Pedro Alves <palves@redhat.com>
11574
11575 * Makefile.in (COMPILER): New, get it from autoconf.
11576 (COMPILE.pre, CC_LD): Use COMPILER.
11577 (CXX): Get from autoconf instead.
11578 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11579 * acinclude.m4: Include build-with-cxx.m4.
11580 * build-with-cxx.m4: New file.
11581 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11582 Disable -Werror by default if building in C++ mode.
11583 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11584 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11585 Run supported-warning-flags tests with the C++ compiler.
11586 Save/restore CXXFLAGS too.
11587 * configure: Regenerate.
11588
11589 2015-02-27 Pedro Alves <palves@redhat.com>
11590
11591 * libiberty.m4: New file.
11592 * acinclude.m4: Include libiberty.m4.
11593 * configure.ac: Call libiberty_INIT.
11594 * config.in, configure: Regenerate.
11595
11596 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11597
11598 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11599 31-bit targets, but 64-bit targets as well.
11600 (s390_gnu_triplet_regexp): New function.
11601 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11602 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11603 method.
11604
11605 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11606
11607 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11608 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11609 from CONTEXT_DEBUGGER.
11610
11611 2015-02-26 Doug Evans <dje@google.com>
11612
11613 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11614 CHECK_TYPEDEF.
11615 (set_type_vptr_fieldno): Ditto.
11616 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11617 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11618
11619 2015-02-26 Pedro Alves <palves@redhat.com>
11620
11621 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11622 * complaints.c (vcomplaint): Pass argument FMT directly to
11623 printf-like functions instead of complaint->fmt.
11624 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11625 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11626 * compile/compile-loc2c.c (pushf, unary, binary): Add
11627 ATTRIBUTE_PRINTF.
11628 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11629 to pushf.
11630 (BINARY): Pass string literal as format string to 'binary'.
11631 * compile/compile-object-load.c (link_callbacks_einfo): Add
11632 ATTRIBUTE_PRINTF.
11633 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11634
11635 2015-02-26 Pedro Alves <palves@redhat.com>
11636
11637 * windows-termcap.c: Rename to ...
11638 * stub-termcap.c: ... this. Adjust header line.
11639 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11640 windows-termcap.c.
11641 * configure: Regenerate.
11642 * configure.ac: Refer to stub-termcap.o instead of
11643 windows-termcap.o.
11644 * gdb_curses.h: Mention stub-termcap.c instead of
11645 windows-termcap.c.
11646
11647 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11648
11649 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11650 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11651
11652 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11653
11654 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11655
11656 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11657
11658 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11659 bfd_canonicalize_symtab.
11660
11661 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11662
11663 * amd64fbsd-nat.c: Include sys/user.h.
11664 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11665 instead of KERN_PS_STRINGS to locate the signal trampoline.
11666 * i386fbsd-nat.c: Include sys/user.h.
11667 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11668 instead of KERN_PS_STRINGS to locate the signal trampoline.
11669 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11670 (amd64fbsd_sigtramp_p): New.
11671 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11672 longer set default values.
11673 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11674 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11675 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11676 (i386fbsd_freebsd4_sigtramp_start)
11677 (i386fbsd_freebsd4_sigtramp_middle)
11678 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11679 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11680 (i386fbsd_sigtramp_p): New.
11681 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11682 longer set default values.
11683 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11684
11685 2015-02-25 John Baldwin <jhb@freebsd.org>
11686
11687 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11688 get_frame_register instead of frame_unwind_register_unsigned.
11689
11690 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11691
11692 PR build/18033
11693 * compile/compile-c-support.c (c_compute_program): Change // comment.
11694 * compile/compile-object-load.c (setup_sections): Change // comment.
11695
11696 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11697
11698 PR build/18033:
11699 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11700
11701 2015-02-23 Pedro Alves <palves@redhat.com>
11702
11703 * remote.c (skip_to_semicolon): New function.
11704 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11705 special case the stop reasons that look like hex numbers
11706 upfront. Instead handle real register numbers after matching
11707 all the known stop reasons.
11708
11709 2015-02-21 Doug Evans <dje@google.com>
11710
11711 PR c++/17976, symtab/17821
11712 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11713 is_in_anonymous. All callers updated.
11714 (find_symbol_in_baseclass): Ditto.
11715 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11716 for symbols in an anonymous namespace.
11717 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11718 DW_AT_name directly.
11719 (dwarf2_name): Convert missing namespace name to
11720 CP_ANONYMOUS_NAMESPACE_STR.
11721
11722 2015-02-20 Pedro Alves <palves@redhat.com>
11723
11724 * linux-nat.c (linux_handle_extended_wait): Call
11725 thread_db_notice_clone whenever a new clone LWP is detected.
11726 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11727 functions.
11728 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11729 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11730 (linux_unstop_all_lwps): Declare.
11731 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11732 (thread_get_info_callback): Delete.
11733 (thread_from_lwp): Use td_thr_get_info and record_thread.
11734 (thread_db_attach_lwp): Delete.
11735 (thread_db_notice_clone): New function.
11736 (try_thread_db_load_1): If /proc is mounted and shows the
11737 process'es task list, walk over all LWPs and call thread_from_lwp
11738 instead of relying on td_ta_thr_iter.
11739 (attach_thread): Don't call check_thread_signals here. Split the
11740 tail part of the function (which adds the thread to the core GDB
11741 thread list) to ...
11742 (record_thread): ... this function. Call check_thread_signals
11743 here.
11744 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11745 call thread_from_lwp.
11746 (thread_db_update_thread_list): Rename to ...
11747 (thread_db_update_thread_list_org): ... this.
11748 (thread_db_update_thread_list): New function.
11749 (thread_db_find_thread_from_tid): Delete.
11750 (thread_db_get_ada_task_ptid): Simplify.
11751 * nat/linux-procfs.c: Include <sys/stat.h>.
11752 (linux_proc_task_list_dir_exists): New function.
11753 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11754
11755 2015-02-20 Pedro Alves <palves@redhat.com>
11756
11757 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11758 main LWP. Handle the case of waitpid returning 0 if we're already
11759 attached to the LWP. Don't set the LWP's last_resume_kind to
11760 resume_stop if we already knew about the LWP.
11761 (linux_nat_filter_event): Add debug logs.
11762
11763 2015-02-20 Pedro Alves <palves@redhat.com>
11764
11765 * target.h (forward_target_decr_pc_after_break): Delete
11766 declaration.
11767
11768 2015-02-20 Pedro Alves <palves@redhat.com>
11769
11770 PR threads/18006
11771 * linux-thread-db.c (thread_get_info_callback): Return early if
11772 the thread's lwp id is -1.
11773
11774 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11775
11776 GDB 7.9 released.
11777
11778 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11779
11780 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11781 (dtrace_get_probes) Change type of variable 'dof'.
11782
11783 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11784
11785 PR breakpoints/16812
11786 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11787 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11788 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11789
11790 2015-02-19 David Taylor <dtaylor@emc.com>
11791
11792 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11793
11794 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11795
11796 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11797 function.
11798 (tui_putc): Don't call tui_handle_resize_during_io.
11799 (tui_getc): Likewise.
11800 (tui_mld_getc): Likewise.
11801 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11802 (tui_sigwinch_token): New static variable.
11803 (tui_initialize_win): Adjust documentation. Set
11804 tui_sigwinch_token.
11805 (tui_async_resize_screen): New asynchronous callback.
11806 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11807 invoke tui_async_resize_screen.
11808
11809 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11810
11811 * configure: Regenerated.
11812 * configure.ac: Use GDB_AC_TRANSFORM.
11813 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11814 * acinclude.m4: sinclude transform.m4.
11815 * transform.m4: New file.
11816 (GDB_AC_TRANSFORM): New macro.
11817
11818 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11819
11820 * NEWS: Announce the support for DTrace SDT probes.
11821
11822 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11823
11824 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11825 (amd64_dtrace_parse_probe_argument): New function.
11826 (amd64_dtrace_probe_is_enabled): Likewise.
11827 (amd64_dtrace_enable_probe): Likewise.
11828 (amd64_dtrace_disable_probe): Likewise.
11829 (amd64_linux_init_abi): Register the
11830 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11831 `gdbarch_dtrace_disable_probe' and
11832 `gdbarch_dtrace_probe_is_enabled' hooks.
11833 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11834 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11835 (amd64_dtrace_enable_probe_sequence): Likewise.
11836 (amd64_dtrace_disable_probe_sequence): Likewise.
11837
11838 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11839
11840 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11841 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11842 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11843 handle ELF files.
11844 * Makefile.in (SFILES): dtrace-probe.c added.
11845 * configure: Regenerate.
11846 * dtrace-probe.c: New file.
11847 (SHT_SUNW_dof): New constant.
11848 (dtrace_probe_type): New enum.
11849 (dtrace_probe_arg): New struct.
11850 (dtrace_probe_arg_s): New typedef.
11851 (struct dtrace_probe_enabler): New struct.
11852 (dtrace_probe_enabler_s): New typedef.
11853 (dtrace_probe): New struct.
11854 (dtrace_probe_is_linespec): New function.
11855 (dtrace_dof_sect_type): New enum.
11856 (dtrace_dof_dofh_ident): Likewise.
11857 (dtrace_dof_encoding): Likewise.
11858 (DTRACE_DOF_ENCODE_LSB): Likewise.
11859 (DTRACE_DOF_ENCODE_MSB): Likewise.
11860 (dtrace_dof_hdr): New struct.
11861 (dtrace_dof_sect): Likewise.
11862 (dtrace_dof_provider): Likewise.
11863 (dtrace_dof_probe): Likewise.
11864 (DOF_UINT): New macro.
11865 (DTRACE_DOF_PTR): Likewise.
11866 (DTRACE_DOF_SECT): Likewise.
11867 (dtrace_process_dof_probe): New function.
11868 (dtrace_process_dof): Likewise.
11869 (dtrace_build_arg_exprs): Likewise.
11870 (dtrace_get_arg): Likewise.
11871 (dtrace_get_probes): Likewise.
11872 (dtrace_get_probe_argument_count): Likewise.
11873 (dtrace_can_evaluate_probe_arguments): Likewise.
11874 (dtrace_evaluate_probe_argument): Likewise.
11875 (dtrace_compile_to_ax): Likewise.
11876 (dtrace_probe_destroy): Likewise.
11877 (dtrace_gen_info_probes_table_header): Likewise.
11878 (dtrace_gen_info_probes_table_values): Likewise.
11879 (dtrace_probe_is_enabled): Likewise.
11880 (dtrace_probe_ops): New variable.
11881 (info_probes_dtrace_command): New function.
11882 (_initialize_dtrace_probe): Likewise.
11883 (dtrace_type_name): Likewise.
11884
11885 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11886
11887 * gdbarch.sh (dtrace_parse_probe_argument): New.
11888 (dtrace_probe_is_enabled): Likewise.
11889 (dtrace_enable_probe): Likewise.
11890 (dtrace_disable_probe): Likewise.
11891 * gdbarch.c: Regenerate.
11892 * gdbarch.h: Regenerate.
11893
11894 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11895
11896 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11897 stap_probe_ops for `enable_probe' and `disable_probe'.
11898 * probe.c (enable_probes_command): New function.
11899 (disable_probes_command): Likewise.
11900 (_initialize_probe): Define the cli commands `enable probe' and
11901 `disable probe'.
11902 (parse_probe_linespec): New function.
11903 (info_probes_for_ops): Use parse_probe_linespec.
11904 * probe.h (probe_ops): New hooks `enable_probe' and
11905 `disable_probe'.
11906
11907 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11908
11909 * probe.c (compute_probe_arg): Moved from stap-probe.c
11910 (compile_probe_arg): Likewise.
11911 (probe_funcs): Likewise.
11912 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11913 (compile_probe_arg): Likewise.
11914 (probe_funcs): Likewise.
11915
11916 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11917
11918 * probe.c (print_ui_out_not_applicables): New function.
11919 (exists_probe_with_pops): Likewise.
11920 (info_probes_for_ops): Do not include column headers for probe
11921 types for which no probe has been actually found on any object.
11922 Also invoke `print_ui_out_not_applicables' in order to match the
11923 column rows with the header when probes of several types are
11924 listed.
11925 Print the "Type" column.
11926 * probe.h (probe_ops): Added a new probe operation `type_name'.
11927 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11928 (stap_type_name): New function.
11929
11930 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11931
11932 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11933 (key_is_command_char): Delete.
11934
11935 2015-02-17 Pedro Alves <palves@redhat.com>
11936
11937 * tui/tui.c (tui_enable): Resize windows before anything
11938 might show a window.
11939
11940 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11941
11942 PR gdb/17984
11943 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11944 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11945 call.
11946 * aarch64-tdep.h (tdesc_aarch64): Declare.
11947
11948 2015-02-12 Mark Wielaard <mjw@redhat.com>
11949
11950 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11951
11952 2015-02-13 Doug Evans <dje@google.com>
11953
11954 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11955 anonymous_namespace to is_in_anonymous for consistency with the rest
11956 of the file.
11957 (cp_lookup_bare_symbol): Fix typo in comment.
11958 (cp_search_static_and_baseclasses): Ditto.
11959 (search_symbol_list): Use vertical space in comment better.
11960 (reset_directive_searched): Ditto. Fix typo.
11961 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11962
11963 2015-02-13 Yao Qi <yao.qi@arm.com>
11964
11965 * MAINTAINERS: Update my email address.
11966
11967 2015-02-12 Doug Evans <dje@google.com>
11968
11969 * symtab.c (completion_list_add_name): Fix memory leak.
11970
11971 2015-02-12 Doug Evans <dje@google.com>
11972
11973 * completer.c (complete_line): Remove incorrect comment.
11974
11975 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11976
11977 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11978 (py_print_frame): Use RETURN_MASK_ERROR.
11979
11980 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11981
11982 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11983 function comment. Wrap all function that can throw in cleanups.
11984 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11985 cleanups.
11986
11987 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11988
11989 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11990 Remove the error label.
11991
11992 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11993
11994 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11995 with goto first, indent the former else codepath left. Put variable
11996 'elided' to a new inner block.
11997
11998 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11999
12000 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12001
12002 2015-02-11 Pedro Alves <palves@redhat.com>
12003
12004 * xcoffread.c (within_function): Delete.
12005
12006 2015-02-11 Tom Tromey <tromey@redhat.com>
12007 Pedro Alves <palves@redhat.com>
12008
12009 * breakpoint.c (base_breakpoint_ops): Delete.
12010 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12011 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12012 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12013 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12014 * python/py-arch.c (arch_object_type): Make extern.
12015 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12016 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12017 * python/py-cmd.c (cmdpy_object_type): Make extern.
12018 * python/py-continueevent.c (continue_event_object_type)
12019 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12020 parameter. Update all callers.
12021 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12022 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12023 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12024 * python/py-function.c (fnpy_object_type): Make extern.
12025 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12026 * python/py-infevents.c (call_pre_event_object_type)
12027 (inferior_call_post_event_object_type).
12028 (memory_changed_event_object_type): Make extern.
12029 * python/py-infthread.c (thread_object_type): Make extern.
12030 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12031 * python/py-linetable.c (linetable_entry_object_type)
12032 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12033 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12034 (clear_objfiles_event_object_type): Make extern.
12035 * python/py-objfile.c (objfile_object_type): Make extern.
12036 * python/py-param.c (parmpy_object_type): Make extern.
12037 * python/py-progspace.c (pspace_object_type): Make extern.
12038 * python/py-signalevent.c (signal_event_object_type): Make extern.
12039 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12040 * python/py-type.c (type_object_type, field_object_type)
12041 (type_iterator_object_type): Make extern.
12042 * python/python.c (python_extension_script_ops)
12043 (python_extension_ops): Make extern.
12044 * stap-probe.c (stap_probe_ops): Make extern.
12045
12046 2015-02-11 Pedro Alves <pedro@codesourcery.com>
12047
12048 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12049 because the event thread is not the current thread.
12050
12051 2015-02-11 Doug Evans <xdje42@gmail.com>
12052
12053 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12054 been initialized yet, return NULL.
12055
12056 2015-02-11 Doug Evans <dje@google.com>
12057
12058 * symfile.h (new_symfile_objfile): Delete.
12059 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12060 All callers updated.
12061
12062 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12063
12064 * tui/tui-io.c (tui_handle_resize_during_io): Call
12065 tui_update_gdb_sizes() after resizing the screen.
12066 * tui/tui.c (tui_enable): Resize the terminal before
12067 calling tui_update_gdb_sizes().
12068
12069 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12070
12071 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12072 line before printing a newline.
12073
12074 2015-02-11 Mark Wielaard <mjw@redhat.com>
12075
12076 * utils.c (producer_is_gcc): Return true or false.
12077
12078 2015-02-10 Mark Wielaard <mjw@redhat.com>
12079
12080 * utils.h (producer_is_gcc): Change return type to bool. Add major
12081 argument.
12082 * utils.c (producer_is_gcc): Likewise.
12083 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12084 * dwarf2read.c (check_producer): Likewise.
12085
12086 2015-02-10 Pedro Alves <palves@redhat.com>
12087
12088 * infrun.c (displaced_step_fixup): Switch to the event thread
12089 before calling gdbarch_displaced_step_fixup.
12090
12091 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12092
12093 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12094
12095 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12096
12097 * ada-varobj.c (ada_name_of_child): Constify parent.
12098 (ada_path_expr_of_child): Same.
12099 (ada_value_of_child): Same.
12100 (ada_type_of_child): Same.
12101 * c-varobj.c (c_is_path_expr_parent): Same.
12102 (c_describe_child): Same.
12103 (c_name_of_child): Same.
12104 (c_value_of_child): Same.
12105 (c_type_of_child): Same.
12106 (cplus_number_of_children): Same.
12107 (cplus_describe_child): Constify var.
12108 (cplus_name_of_child): Constify parent.
12109 (cplus_value_of_child): Same.
12110 (cplus_type_of_child): Same.
12111 * jv-varobj.c (java_name_of_child): Same.
12112 (java_value_of_child): Same.
12113 (java_type_of_child): Same.
12114 * varobj.c (value_of_child): Same.
12115 (varobj_default_is_path_expr_parent): Constify var, parent and return
12116 value.
12117 (varobj_get_path_expr): Constify var, modify path_expr through
12118 mutable_var.
12119 (install_new_value): Constify parent.
12120 (value_of_child): Constify parent.
12121 * varobj.h (struct varobj): Constify parent.
12122 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12123 type_of_child.
12124 (varobj_get_path_expr): Constify var.
12125 (varobj_get_path_expr_parent): Constify var and return value.
12126
12127 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
12128
12129 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12130 (arm_prologue_this_id): Move PC and SP limit checks to
12131 arm_prologue_unwind_stop_reason.
12132 (arm_prologue_unwind) <stop_reason> : Set to
12133 arm_prologue_unwind_stop_reason.
12134
12135 2015-02-09 Mark Wielaard <mjw@redhat.com>
12136
12137 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12138 DW_LANG_Fortran08 as language_fortran.
12139
12140 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12141
12142 PR remote/17946
12143 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12144 of pointer against char.
12145
12146 2015-02-09 Mark Wielaard <mjw@redhat.com>
12147
12148 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12149 (c_type_print_modifier): Likewise.
12150 * dwarf2read.c (read_tag_atomic_type): New function.
12151 (read_type_die_1): Handle DW_TAG_atomic_type.
12152 * gdbtypes.c (make_atomic_type): New function.
12153 (recursive_dump_type): Handle TYPE_ATOMIC.
12154 * gdbtypes.h (enum type_flag_values): Renumber.
12155 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
12156 (TYPE_ATOMIC): New macro.
12157 (make_atomic_type): Declare.
12158
12159 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12160
12161 * btrace.c (ftrace_find_call): Skip gaps.
12162 (ftrace_new_function): Initialize level.
12163 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
12164 (ftrace_new_switch): Update
12165 level computation.
12166 (ftrace_new_gap): New.
12167 (ftrace_update_function): Create new function after gap.
12168 (btrace_compute_ftrace_bts): Create gap on error.
12169 (btrace_stitch_bts): Update parameters. Clear trace if it
12170 becomes empty.
12171 (btrace_stitch_trace): Update parameters. Update callers.
12172 (btrace_clear): Reset the number of gaps.
12173 (btrace_insn_get): Return NULL if the iterator points to a gap.
12174 (btrace_insn_number): Return zero if the iterator points to a gap.
12175 (btrace_insn_end): Allow gaps at the end.
12176 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12177 (btrace_find_insn_by_number): Assert that the found iterator does
12178 not point to a gap.
12179 (btrace_call_next, btrace_call_prev): Assert that the last function
12180 is not a gap.
12181 * btrace.h (btrace_bts_error): New.
12182 (btrace_function): Update comment.
12183 (btrace_function) <insn, insn_offset, number>: Update comment.
12184 (btrace_function) <errcode>: New.
12185 (btrace_thread_info) <ngaps>: New.
12186 (btrace_thread_info) <replay>: Update comment.
12187 (btrace_insn_get): Update comment.
12188 * record-btrace.c (btrace_ui_out_decode_error): New.
12189 (record_btrace_info): Print number of gaps.
12190 (btrace_insn_history, btrace_call_history): Call
12191 btrace_ui_out_decode_error for gaps.
12192 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12193
12194 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12195
12196 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12197 * nat/linux-btrace.c: (btrace_this_cpu): New.
12198 (cpu_supports_bts): Call btrace_this_cpu.
12199 (intel_supports_bts): Add cpu parameter.
12200
12201 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12202
12203 * btrace.h (btrace_insn_class): New.
12204 (btrace_insn) <size, iclass>: New.
12205 * btrace.c (ftrace_find_call): Update parameters. Update users.
12206 Use instruction classification.
12207 (ftrace_new_return): Update parameters. Update users.
12208 (ftrace_update_function): Update parameters. Update users. Use
12209 instruction classification.
12210 (ftrace_update_insns): Update parameters. Update users.
12211 (ftrace_classify_insn): New.
12212 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12213 TRY_CATCH around call to gdb_insn_length.
12214
12215 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12216
12217 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12218 Update parameters. Update users.
12219
12220 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12221
12222 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12223 (btrace_conf_bts_attributes): New.
12224 (btrace_conf_children): Add attributes.
12225 * common/btrace-common.h (btrace_config_bts): New.
12226 (btrace_config)<bts>: New.
12227 (btrace_config): Update comment.
12228 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12229 Use config.
12230 * features/btrace-conf.dtd: Increment version. Add size
12231 attribute to bts element.
12232 * record-btrace.c (set_record_btrace_bts_cmdlist,
12233 show_record_btrace_bts_cmdlist): New.
12234 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12235 record_btrace_print_conf, cmd_set_record_btrace_bts,
12236 cmd_show_record_btrace_bts): New.
12237 (record_btrace_info): Call record_btrace_print_conf.
12238 (_initialize_record_btrace): Add commands.
12239 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12240 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12241 (btrace_sync_conf): Synchronize bts size.
12242 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12243 * NEWS: Announce new commands and new packets.
12244
12245 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12246
12247 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12248 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12249 (x86_linux_btrace_conf): New.
12250 (x86_linux_create_target): Initialize to_btrace_conf.
12251 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12252 Check format. Split into this and ...
12253 (linux_enable_bts): ... this.
12254 (linux_btrace_conf): New.
12255 (perf_event_skip_record): Renamed into ...
12256 (perf_event_skip_bts_record): ... this. Updated users.
12257 (linux_disable_btrace): Split into this and ...
12258 (linux_disable_bts): ... this.
12259 (linux_read_btrace): Check format.
12260 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12261 (linux_btrace_conf): New.
12262 (btrace_target_info)<ptid>: Moved.
12263 (btrace_target_info)<conf>: New.
12264 (btrace_target_info): Split into this and ...
12265 (btrace_tinfo_bts): ... this. Updated users.
12266 * btrace.c (btrace_enable): Update parameters.
12267 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12268 (btrace_conf_children, btrace_conf_attributes)
12269 (btrace_conf_elements): New.
12270 * btrace.h (btrace_enable): Update parameters.
12271 (btrace_conf, parse_xml_btrace_conf): New.
12272 * common/btrace-common.h (btrace_config): New.
12273 * feature/btrace-conf.dtd: New.
12274 * record-btrace.c (record_btrace_conf): New.
12275 (record_btrace_cmdlist): New.
12276 (record_btrace_enable_warn, record_btrace_open): Pass
12277 &record_btrace_conf.
12278 (record_btrace_info): Print recording format.
12279 (cmd_record_btrace_bts_start): New.
12280 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12281 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12282 Add "record bts" alias command.
12283 * remote.c (remote_state)<btrace_config>: New.
12284 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12285 (remote_protocol_features): Add qXfer:btrace-conf:read.
12286 (remote_open_1): Call remote_btrace_reset.
12287 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12288 (btrace_target_info)<conf>: New.
12289 (btrace_sync_conf, btrace_read_config): New.
12290 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12291 btrace_read_conf.
12292 (remote_btrace_conf): New.
12293 (init_remote_ops): Initialize to_btrace_conf.
12294 (_initialize_remote): Add qXfer:btrace-conf packet.
12295 * target.c (target_enable_btrace): Update parameters.
12296 (target_btrace_conf): New.
12297 * target.h (target_enable_btrace): Update parameters.
12298 (target_btrace_conf): New.
12299 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12300 (target_ops)<to_enable_btrace>: Update parameters and comment.
12301 (target_ops)<to_btrace_conf>: New.
12302 * target-delegates: Regenerate.
12303 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12304 (target_debug_print_const_struct_btrace_target_info_p): New.
12305 * NEWS: Announce new command and new packet.
12306
12307 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12308
12309 * nat/linux-btrace.h (perf_event_buffer): New.
12310 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12311 <bts>: ... this.
12312 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12313 (perf_event_buffer_size, perf_event_buffer_begin)
12314 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12315 Updated users.
12316 (perf_event_new_data): New.
12317
12318 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12319
12320 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12321 * record-btrace.c (record_btrace_open): Remove call to
12322 target_supports_btrace.
12323 * remote.c (remote_supports_btrace): Update parameters.
12324 * target.c (target_supports_btrace): Update parameters.
12325 * target.h (to_supports_btrace, target_supports_btrace): Update
12326 parameters.
12327 * target-delegates.c: Regenerate.
12328 * target-debug.h (target_debug_print_enum_btrace_format): New.
12329 * nat/linux-btrace.c
12330 (kernel_supports_btrace): Rename into ...
12331 (kernel_supports_bts): ... this. Update users. Update warning text.
12332 (intel_supports_btrace): Rename into ...
12333 (intel_supports_bts): ... this. Update users.
12334 (cpu_supports_btrace): Rename into ...
12335 (cpu_supports_bts): ... this. Update users.
12336 (linux_supports_btrace): Update parameters. Split into this and ...
12337 (linux_supports_bts): ... this.
12338 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12339
12340 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12341
12342 * Makefile.in (SFILES): Add common/btrace-common.c.
12343 (COMMON_OBS): Add common/btrace-common.o.
12344 (btrace-common.o): Add build rules.
12345 * btrace.c (parse_xml_btrace): Update parameters.
12346 (parse_xml_btrace_block): Set format field.
12347 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12348 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12349 (btrace_compute_ftrace): Split into this and...
12350 (btrace_compute_ftrace_bts): ...this.
12351 (btrace_stitch_trace): Split into this and...
12352 (btrace_stitch_bts): ...this.
12353 * btrace.h (parse_xml_btrace): Update parameters.
12354 (make_cleanup_btrace_data): New.
12355 * common/btrace-common.c: New.
12356 * common/btrace-common.h: Include common-defs.h.
12357 (btrace_block_s): Update comment.
12358 (btrace_format): New.
12359 (btrace_format_string): New.
12360 (btrace_data_bts): New.
12361 (btrace_data): New.
12362 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12363 * remote.c (remote_read_btrace): Update parameters.
12364 * target.c (target_read_btrace): Update parameters.
12365 * target.h (target_read_btrace): Update parameters.
12366 (target_ops)<to_read_btrace>: Update parameters.
12367 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12368 * target-delegates.c: Regenerate.
12369 * target-debug (target_debug_print_struct_btrace_data_p): New.
12370 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12371 (linux_read_bts): ...this.
12372 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12373
12374 2015-02-06 Doug Evans <dje@google.com>
12375
12376 * remote-m32r-sdi.c: Include symfile.h.
12377
12378 2015-02-06 Doug Evans <dje@google.com>
12379
12380 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12381 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12382 to here.
12383
12384 2015-02-06 Pedro Alves <palves@redhat.com>
12385
12386 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12387
12388 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12389
12390 PR gdb/15678
12391 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12392 (enable_count_command): Check args for NULL value.
12393
12394 2015-02-05 Doug Evans <xdje42@gmail.com>
12395
12396 * guile/scm-frame.c: Fix spelling errors in a comment.
12397
12398 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12399
12400 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12401 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12402 return type.
12403
12404 2015-02-04 Pedro Alves <palves@redhat.com>
12405
12406 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12407 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12408 returns true.
12409 (resume_stopped_resumed_lwps): Don't check whether the thread is
12410 marked as executing.
12411 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12412
12413 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12414
12415 * regset.h (struct regset): Add flags field.
12416 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12417 * corelow.c (get_core_register_section): Add warning if the size
12418 exceeds the requested size and the regset does not have the
12419 REGSET_VARIABLE_SIZE flag set.
12420 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12421 flag.
12422 * armbsd-tdep.c (armbsd_gregset): Likewise.
12423 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12424 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12425 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12426 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12427
12428 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12429
12430 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12431 For ".reg-xstate", explicitly specify the requested section size
12432 via X86_XSTATE_SIZE instead of just 0 on input and
12433 X86_XSTATE_MAX_SIZE on output.
12434 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12435 Likewise.
12436
12437 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12438
12439 PR corefiles/17808:
12440 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12441 function type, particularly its SIZE parameter.
12442 * gdbarch.h: Regenerate.
12443 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12444 actual against required size using ">=" instead of "==".
12445 (amd64_collect_fpregset): Likewise.
12446 * i386-tdep.c (i386_supply_gregset): Likewise.
12447 (i386_collect_gregset): Likewise.
12448 (i386_supply_fpregset): Likewise.
12449 (i386_collect_fpregset): Likewise.
12450 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12451 (mips_fill_gregset_wrapper): Likewise.
12452 (mips_supply_fpregset_wrapper): Likewise.
12453 (mips_fill_fpregset_wrapper): Likewise.
12454 (mips64_supply_gregset_wrapper): Likewise.
12455 (mips64_fill_gregset_wrapper): Likewise.
12456 (mips64_supply_fpregset_wrapper): Likewise.
12457 (mips64_fill_fpregset_wrapper): Likewise.
12458 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12459 (am33_supply_fpregset_method): Likewise.
12460 (am33_collect_gregset_method): Likewise.
12461 (am33_collect_fpregset_method): Likewise.
12462
12463 2015-02-04 Doug Evans <dje@google.com>
12464 Pedro Alves <palves@redhat.com>
12465 Eli Zaretskii <eliz@gnu.org>
12466
12467 PR tui/17810
12468 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12469 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12470 * tui/tui-file.c: #include tui/tui-command.h.
12471 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12472 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12473 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12474
12475 2015-02-04 Pedro Alves <palves@redhat.com>
12476
12477 Fix build breakage.
12478 * event-loop.c (gdb_do_one_event): Add default switch case.
12479
12480 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12481
12482 Filter out inferior gcc option -fpreprocessed.
12483 * compile/compile.c (filter_args): New function.
12484 (get_args): Use it.
12485
12486 2015-02-03 Pedro Alves <palves@redhat.com>
12487
12488 * event-loop.c: Don't declare nor define a queue type for
12489 gdb_event_p.
12490 (event_queue): Delete.
12491 (create_event, create_file_event, gdb_event_xfree)
12492 (initialize_event_loop, process_event): Delete.
12493 (gdb_do_one_event): Return as soon as one event is handled.
12494 (handle_file_event): Change prototype. Used the passed in
12495 file_handler pointer and ready_mask instead of looping over all
12496 file handlers.
12497 (gdb_wait_for_event): Update the poll/select timeouts before
12498 blocking. Run event handlers directly instead of queueing events.
12499 Return as soon as one event is handled.
12500 (struct async_event_handler_data): Delete.
12501 (invoke_async_event_handler): Delete.
12502 (check_async_event_handlers): Change return type to int. Run
12503 event handlers directly instead of queueing events. Return as
12504 soon as one event is handled.
12505 (handle_timer_event): Delete.
12506 (update_wait_timeout): New function, factored out from
12507 poll_timers.
12508 (poll_timers): Reimplement.
12509 * event-loop.h (initialize_event_loop): Delete declaration.
12510 * top.c (gdb_init): Don't call initialize_event_loop.
12511
12512 2015-02-03 Pedro Alves <palves@redhat.com>
12513
12514 * event-loop.c (clear_async_event_handler): New function.
12515 * event-loop.h (clear_async_event_handler): New declaration.
12516 * record-btrace.c (record_btrace_async): New function.
12517 (init_record_btrace_ops): Install record_btrace_async.
12518 * record-full.c (record_full_async): New function.
12519 (record_full_resume): Don't mark the async event source here.
12520 (init_record_full_ops): Install record_full_async.
12521 (record_full_core_resume): Don't mark the async event source here.
12522 (init_record_full_core_ops): Install record_full_async.
12523 * remote.c (remote_async): Mark and clear the async stop reply
12524 queue event-loop token as appropriate.
12525
12526 2015-02-03 Pedro Alves <palves@redhat.com>
12527
12528 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12529 target_is_async_p instead of target_can_async.
12530 (linux_nat_wait): Use target_is_async_p instead of
12531 target_can_async. Don't enable async here.
12532 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12533 target_is_async_p instead of target_can_async.
12534
12535 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12536
12537 * varobj.h (lang_varobj_ops): Mention which return values need
12538 to be freed.
12539
12540 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12541
12542 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12543
12544 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12545
12546 PR gdb/17856:
12547 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12548 results found in the cache.
12549
12550 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12551
12552 PR gdb/17854:
12553 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12554 when allocating a new one.
12555
12556 2015-02-01 Tom Tromey <tom@tromey.com>
12557
12558 * MAINTAINERS: Remove myself.
12559
12560 2015-01-31 Doug Evans <xdje42@gmail.com>
12561
12562 * dwarf2read.c (process_structure_scope): Update setting of
12563 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12564 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12565 (set_type_vptr_fieldno): New function.
12566 (internal_type_vptr_basetype): New function.
12567 (set_type_vptr_basetype): New function.
12568 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12569 TYPE_VPTR_BASETYPE.
12570 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12571 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12572 (print_cplus_stuff): ... moved here.
12573 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12574 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12575 moved to ...
12576 (struct cplus_struct_type): ... here. All uses updated.
12577 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12578 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12579 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12580 * stabsread.c (read_tilde_fields): Update setting of
12581 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12582
12583 2015-01-31 Doug Evans <xdje42@gmail.com>
12584
12585 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12586 to self_p.
12587 (cp_print_class_member): Rename local domain to self_type.
12588 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12589 domain_type to self_type.
12590 (set_die_type) <need_gnat_info>: Handle
12591 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12592 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12593 TYPE_SPECIFIC_SELF_TYPE.
12594 * gdbtypes.c (internal_type_self_type): New function.
12595 (set_type_self_type): New function.
12596 (smash_to_memberptr_type): Rename parameter domain to self_type.
12597 Update setting of TYPE_SELF_TYPE.
12598 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12599 (smash_to_method_type): Rename parameter domain to self_type.
12600 Update setting of TYPE_SELF_TYPE.
12601 (check_stub_method): Call smash_to_method_type.
12602 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12603 (copy_type_recursive): Ditto.
12604 * gdbtypes.h (enum type_specific_kind): New value
12605 TYPE_SPECIFIC_SELF_TYPE.
12606 (struct main_type) <type_specific>: New member self_type.
12607 (struct cplus_struct_type) <fn_field.type>: Update comment.
12608 (TYPE_SELF_TYPE): Rewrite.
12609 (internal_type_self_type, set_type_self_type): Declare.
12610 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12611 self_type.
12612 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12613 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12614 TYPE_TARGET_TYPE.
12615 * stabsread.c (read_member_functions): Mark methods with
12616 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12617 TYPE_SELF_TYPE.
12618
12619 2015-01-31 Doug Evans <xdje42@gmail.com>
12620
12621 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12622 All uses updated.
12623
12624 2015-01-31 Doug Evans <xdje42@gmail.com>
12625
12626 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12627 or unions. Return zero if union.
12628 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12629 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12630 gnuv3_get_vtable.
12631 (compute_vtable_size): Assert only passed structs.
12632 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12633
12634 2015-01-31 Doug Evans <xdje42@gmail.com>
12635
12636 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12637 kinds.
12638
12639 2015-01-31 Gary Benson <gbenson@redhat.com>
12640 Doug Evans <dje@google.com>
12641
12642 PR cli/9007
12643 PR cli/11920
12644 PR cli/15548
12645 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12646 reached.
12647 * common/common-exceptions.h (enum errors)
12648 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12649 * completer.h (get_max_completions_reached_message): New declaration.
12650 (max_completions): Likewise.
12651 (completion_tracker_t): New typedef.
12652 (new_completion_tracker): New declaration.
12653 (make_cleanup_free_completion_tracker): Likewise.
12654 (maybe_add_completion_enum): New enum.
12655 (maybe_add_completion): New declaration.
12656 (throw_max_completions_reached_error): Likewise.
12657 * completer.c (max_completions): New global variable.
12658 (new_completion_tracker): New function.
12659 (free_completion_tracker): Likewise.
12660 (make_cleanup_free_completion_tracker): Likewise.
12661 (maybe_add_completions): Likewise.
12662 (throw_max_completions_reached_error): Likewise.
12663 (complete_line): Remove duplicates and limit result to max_completions
12664 entries.
12665 (get_max_completions_reached_message): New function.
12666 (gdb_display_match_list): Handle max_completions.
12667 (_initialize_completer): New declaration and function.
12668 * symtab.c: Include completer.h.
12669 (completion_tracker): New static variable.
12670 (completion_list_add_name): Call maybe_add_completion.
12671 (default_make_symbol_completion_list_break_on_1): Renamed from
12672 default_make_symbol_completion_list_break_on. Maintain
12673 completion_tracker across calls to completion_list_add_name.
12674 (default_make_symbol_completion_list_break_on): New function.
12675 * top.c (init_main): Set rl_completion_display_matches_hook.
12676 * tui/tui-io.c: Include completer.h.
12677 (tui_old_rl_display_matches_hook): New static global.
12678 (tui_rl_display_match_list): Notify user if max-completions reached.
12679 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12680 * NEWS (New Options): Mention set/show max-completions.
12681
12682 2015-01-31 Gary Benson <gbenson@redhat.com>
12683
12684 * symtab.c (struct add_name_data) <code>: New field.
12685 Updated comments.
12686 (add_symtab_completions): New function.
12687 (symtab_expansion_callback): Likewise.
12688 (default_make_symbol_completion_list_break_on): Set datum.code.
12689 Move minimal symbol scan before calling expand_symtabs_matching.
12690 Scan known primary symtabs for externs and statics before calling
12691 expand_symtabs_matching. Pass symtab_expansion_callback as
12692 expansion_notify argument to expand_symtabs_matching. Do not scan
12693 primary symtabs for externs and statics after calling
12694 expand_symtabs_matching.
12695
12696 2015-01-31 Gary Benson <gbenson@redhat.com>
12697
12698 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12699 (struct quick_symbol_functions) <expand_symtabs_matching>:
12700 New argument expansion_notify. All uses updated.
12701 (expand_symtabs_matching): New argument expansion_notify.
12702 All uses updated.
12703 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12704 Also print expansion notify.
12705 * symtab.c (expand_symtabs_matching_via_partial): Call
12706 expansion_notify whenever a partial symbol table is expanded.
12707 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12708 expansion_notify whenever a symbol table is instantiated.
12709
12710 2015-01-31 Doug Evans <xdje42@gmail.com>
12711
12712 * cli-out.c: #include completer.h, readline/readline.h.
12713 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12714 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12715 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12716 * cli-out.h (cli_display_match_list): Declare.
12717 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12718 (ELLIPSIS_LEN): Ditto.
12719 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12720 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12721 (gdb_fnprint, gdb_print_filename): Ditto.
12722 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12723 (gdb_display_match_list): Ditto.
12724 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12725 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12726 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12727 (match_list_displayer): New struct.
12728 (gdb_display_match_list): Declare.
12729 * top.c (init_main): Set rl_completion_display_matches_hook.
12730 * tui/tui-io.c: #include completer.h.
12731 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12732 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12733 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12734 (tui_mld_getc, tui_mld_read_key): Ditto.
12735 (tui_rl_display_match_list): Rewrite.
12736 (tui_handle_resize_during_io): New arg for_completion. All callers
12737 updated.
12738
12739 2015-01-31 Doug Evans <xdje42@gmail.com>
12740
12741 Add symbol lookup cache.
12742 * NEWS: Document new options and commands.
12743 * symtab.c (symbol_cache_key): New static global.
12744 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12745 (SYMBOL_LOOKUP_FAILED): New macro.
12746 (symbol_cache_slot_state): New enum.
12747 (block_symbol_cache): New struct.
12748 (symbol_cache): New struct.
12749 (new_symbol_cache_size, symbol_cache_size): New static globals.
12750 (hash_symbol_entry, eq_symbol_entry): New functions.
12751 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12752 (make_symbol_cache, free_symbol_cache): New functions.
12753 (get_symbol_cache, symbol_cache_cleanup): New function.
12754 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12755 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12756 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12757 (symbol_cache_flush, symbol_cache_dump): New functions.
12758 (maintenance_print_symbol_cache): New function.
12759 (maintenance_flush_symbol_cache): New function.
12760 (symbol_cache_stats): New function.
12761 (maintenance_print_symbol_cache_statistics): New function.
12762 (symtab_new_objfile_observer): New function.
12763 (symtab_free_objfile_observer): New function.
12764 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12765 (_initialize_symtab): Init symbol_cache_key. New parameter
12766 maint symbol-cache-size. New maint commands print symbol-cache,
12767 print symbol-cache-statistics, flush-symbol-cache.
12768 Install new_objfile, free_objfile observers.
12769
12770 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12771
12772 PR symtab/17855
12773 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12774 to end.
12775
12776 2015-01-31 Doug Evans <xdje42@gmail.com>
12777
12778 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12779 * auto-load.c: #include ctype.h.
12780 (struct auto_load_pspace_info): Replace member loaded_scripts with
12781 new members loaded_script_files, loaded_script_texts.
12782 (auto_load_pspace_data_cleanup): Update.
12783 (init_loaded_scripts_info): Update.
12784 (get_auto_load_pspace_data_for_loading): Update.
12785 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12786 updated.
12787 (maybe_add_script_text): New function.
12788 (clear_section_scripts): Update.
12789 (source_script_file, execute_script_contents): New functions.
12790 (source_section_scripts): Add support for
12791 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12792 (print_scripts): New function.
12793 (auto_load_info_scripts): Also print inlined scripts.
12794 (maybe_print_unsupported_script_warning): Renamed from
12795 unsupported_script_warning_print. All callers updated.
12796 (maybe_print_script_not_found_warning): Renamed from
12797 script_not_found_warning_print. All callers updated.
12798 * extension-priv.h (struct extension_language_script_ops): New member
12799 objfile_script_executor.
12800 * extension.c (ext_lang_objfile_script_executor): New function.
12801 * extension.h (objfile_script_executor_func): New typedef.
12802 (ext_lang_objfile_script_executor): Declare.
12803 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12804 * guile/guile.c (guile_extension_script_ops): Update.
12805 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12806 * python/python.c (python_extension_script_ops): Update.
12807 (gdbpy_execute_objfile_script): New function.
12808
12809 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12810
12811 * tui/tui-io.c (tui_expand_tabs): New function.
12812 (tui_puts, tui_redisplay_readline): Expand TABs into the
12813 appropriate number of spaces.
12814 * tui/tui-regs.c: Include tui-io.h.
12815 (tui_register_format): Call tui_expand_tabs to expand TABs into
12816 the appropriate number of spaces.
12817 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12818
12819 2015-01-30 Doug Evans <dje@google.com>
12820
12821 * NEWS: "info source" command now display producer string if present.
12822 * source.c (source_info): Print producer string if present.
12823
12824 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12825
12826 * varobj.c (varobj_delete): Fix comment.
12827
12828 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12829
12830 * varobj.c (create_child): Modify comment.
12831
12832 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12833
12834 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12835 parameter.
12836 (ada_name_of_variable): Same.
12837 (ada_path_expr_of_child): Same.
12838 (ada_value_of_variable): Same.
12839 (ada_value_is_changeable_p): Same.
12840 (ada_value_has_mutated): Same.
12841 * c-varobj.c (varobj_is_anonymous_child): Same.
12842 (c_is_path_expr_parent): Same.
12843 (c_number_of_children): Same.
12844 (c_name_of_variable): Same.
12845 (c_path_expr_of_child): Same.
12846 (get_type): Same.
12847 (c_value_of_variable): Same.
12848 (cplus_number_of_children): Same.
12849 (cplus_name_of_variable): Same.
12850 (cplus_path_expr_of_child): Same.
12851 (cplus_value_of_variable): Same.
12852 * jv-varobj.c (java_number_of_children): Same.
12853 (java_name_of_variable): Same.
12854 (java_path_expr_of_child): Same.
12855 (java_value_of_variable): Same.
12856 * varobj.c (number_of_children): Same.
12857 (name_of_variable): Same.
12858 (is_root_p): Same.
12859 (varobj_ensure_python_env): Same.
12860 (varobj_get_objname): Same.
12861 (varobj_get_expression): Same.
12862 (varobj_get_display_format): Same.
12863 (varobj_get_display_hint): Same.
12864 (varobj_has_more): Same.
12865 (varobj_get_thread_id): Same.
12866 (varobj_get_frozen): Same.
12867 (dynamic_varobj_has_child_method): Same.
12868 (varobj_get_gdb_type): Same.
12869 (is_path_expr_parent): Same.
12870 (varobj_default_is_path_expr_parent): Same.
12871 (varobj_get_language): Same.
12872 (varobj_get_attributes): Same.
12873 (varobj_is_dynamic_p): Same.
12874 (varobj_get_child_range): Same.
12875 (varobj_value_has_mutated): Same.
12876 (varobj_get_value_type): Same.
12877 (number_of_children): Same.
12878 (name_of_variable): Same.
12879 (check_scope): Same.
12880 (varobj_editable_p): Same.
12881 (varobj_value_is_changeable_p): Same.
12882 (varobj_floating_p): Same.
12883 (varobj_default_value_is_changeable_p): Same.
12884
12885 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12886
12887 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12888 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12889 child->path_expr.
12890 (cplus_path_expr_of_child): Same.
12891
12892 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12893
12894 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12895 result.
12896 (mi_cmd_var_info_expression): Same.
12897 * varobj.c (varobj_get_expression): Mention in the comment that
12898 the result must by freed by the caller.
12899
12900 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12901
12902 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12903 varobj_get_type.
12904 (varobj_update_one): Same.
12905 * varobj.c (update_type_if_necessary): Free curr_type_str and
12906 new_type_str.
12907 (varobj_get_type): Specify in comment that the result needs to be
12908 freed by the caller.
12909
12910 2015-01-29 Doug Evans <dje@google.com>
12911
12912 PR symtab/17890
12913 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12914
12915 2015-01-25 Mark Wielaard <mjw@redhat.com>
12916
12917 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12918 * utils.c (producer_is_gcc_ge_4): Likewise.
12919 (producer_is_gcc): New function.
12920 * utils.h (producer_is_gcc): New declaration.
12921
12922 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12923
12924 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12925 kind.
12926 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12927 parameter by "addr_stack" parameter.
12928 (resolve_dynamic_range): Replace "addr" parameter by
12929 "stack_addr" parameter. Update function documentation.
12930 Update code accordingly.
12931 (resolve_dynamic_array, resolve_dynamic_union)
12932 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12933 (resolve_dynamic_type): Update code, following the changes made
12934 to resolve_dynamic_type_internal's interface.
12935 * dwarf2loc.h (struct property_addr_info): New.
12936 (dwarf2_evaluate_property): Replace "address" parameter
12937 by "addr_stack" parameter. Adjust function documentation.
12938 (struct dwarf2_offset_baton): New.
12939 (struct dwarf2_property_baton): Update documentation of
12940 field "referenced_type" to be more general. New field
12941 "offset_info" in union data field.
12942 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12943 parameter by "addr_stack" parameter. Adjust code accordingly.
12944 Add support for PROP_ADDR_OFFSET properties.
12945 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12946 DW_AT_data_member_location attributes as well. Use case
12947 statements instead of if/else condition.
12948
12949 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12950
12951 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12952 Return zero if PARENT_VALUE is NULL and parent_type's
12953 range type is dynamic.
12954
12955 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12956
12957 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12958 nonzero if the type's subtype is dynamic.
12959 (resolve_dynamic_range): Also resolve the range's subtype.
12960
12961 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12962
12963 Pushed by Joel Brobecker <brobecker@adacore.com>.
12964 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12965
12966 2015-01-27 Doug Evans <dje@google.com>
12967
12968 * NEWS: Mention gdb.Objfile.username.
12969 * python/py-objfile.c (objfpy_get_username): New function.
12970 (objfile_getset): Add "username".
12971
12972 2015-01-24 Mark Wielaard <mjw@redhat.com>
12973
12974 * stack.c (return_command): Markup warning message with _.
12975
12976 2015-01-24 Doug Evans <xdje42@gmail.com>
12977
12978 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12979
12980 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12981
12982 Fix 100x slowdown regression on DWZ files.
12983 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12984 (struct line_header): Add offset and offset_in_dwz.
12985 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12986 (free_line_header_voidp): New declaration.
12987 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12988 functions.
12989 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12990 (handle_DW_AT_stmt_list): Use line_header_hash.
12991 (free_line_header_voidp): New function.
12992 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12993 (dwarf_decode_lines): New parameter decode_mapping, use it.
12994 (dwarf2_free_objfile): Free line_header_hash.
12995
12996 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12997
12998 PR gdb/17416
12999 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13000 value_ind.
13001
13002 2015-01-15 Mark Wielaard <mjw@redhat.com>
13003
13004 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13005 DW_AT_noreturn.
13006 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13007 calling_convention an 8 bit bit field.
13008 (TYPE_NO_RETURN): New macro.
13009 * infcmd.c (finish_command): Query if function does not return
13010 normally.
13011 * stack.c (return_command): Likewise.
13012
13013 2015-01-23 Pedro Alves <palves@redhat.com>
13014
13015 * linux-nat.c (linux_is_async_p): New macro.
13016 (linux_nat_is_async_p):
13017 (linux_nat_terminal_inferior): Check whether the target can async
13018 instead of whether it is already async.
13019 (linux_nat_terminal_ours): Don't check whether the target is
13020 async.
13021 (linux_async_pipe): Use linux_is_async_p.
13022
13023 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13024
13025 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13026 '-ascending'.
13027 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13028 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13029 Sort tp_array using tp_array_compar.
13030 (_initialize_thread): Extend thread_apply_all_command help.
13031
13032 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13033
13034 * corelow.c (core_open): Call also thread_command.
13035 * gdbthread.h (thread_command): New prototype moved from ...
13036 * thread.c (thread_command): ... here.
13037 (thread_command): Make it global.
13038
13039 2015-01-22 Pedro Alves <palves@redhat.com>
13040
13041 * configure.ac [*mingw32*]: Check $curses_found instead of
13042 $prefer_curses.
13043 * configure: Regenerate.
13044 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13045 HAVE_NCURSES_NCURSES_H checks.
13046
13047 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13048
13049 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13050 fails with the 1st arg NULL, try again with "unknown". Don't test
13051 the "cup" capability: it isn't supported by the Windows port of
13052 ncurses, but the Windows console driver is still capable of
13053 supporting TUI.
13054
13055 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13056
13057 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13058
13059 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13060
13061 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13062 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13063 reason that "make TAGS" is broken.
13064
13065 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13066
13067 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13068 and check additional store instructions.
13069
13070 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13071
13072 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13073
13074 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13075
13076 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13077 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13078 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13079 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13080 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13081 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13082 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13083 ppc_process_record_op19, ppc_process_record_op31,
13084 ppc_process_record_op59, ppc_process_record_op60,
13085 ppc_process_record_op63): Likewise.
13086
13087 2015-01-20 Joel Brobecker <brobecker@adacore.com>
13088
13089 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13090 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13091 strerror.
13092
13093 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
13094
13095 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13096 ppc_process_record_op31, ppc_process_record_op59,
13097 ppc_process_record_op60, ppc_process_record_op63,
13098 ppc_process_record): Fix -Wformat warning.
13099 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13100 Remove unused variables.
13101
13102 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13103
13104 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13105
13106 2015-01-19 Eli Zaretskii <eliz@gnu.org>
13107
13108 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13109 CONFIG_OBS if not building with a curses library.
13110 * configure: Regenerate.
13111
13112 * windows-termcap.c: Include defs.h. Make the whole body empty if
13113 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13114 HAVE_NCURSES_NCURSES_H is defined.
13115
13116 2015-01-19 Joel Brobecker <brobecker@adacore.com>
13117
13118 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13119 from end of line to start of next line.
13120
13121 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13122
13123 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13124 Scan PLT stub backward for reverse debugging.
13125 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13126
13127 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13128 Ulrich Weigand <uweigand@de.ibm.com>
13129
13130 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13131 gdb_target_obs.
13132 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13133 record.
13134 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13135 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13136 (ppc_linux_init_abi): Set process_record, process_record_signal.
13137 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13138 ppc_linux_record_tdep to gdbarch_tdep.
13139 (ppc_process_record): New declaration.
13140 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13141 ppc_process_record_op19, ppc_process_record_op31,
13142 ppc_process_record_op59, ppc_process_record_op60,
13143 ppc_process_record_op63, ppc_process_record): New functions.
13144
13145 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13146
13147 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13148 rs6000_in_function_epilogue_frame_p and add an argument
13149 for frame_info.
13150 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
13151 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
13152 New functions.
13153 (rs6000_epilogue_frame_unwind): New.
13154 (rs6000_gdbarch_init): Append epilogue unwinder.
13155
13156 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13157
13158 * nat/linux-personality.c: Replace "#ifndef
13159 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
13160 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
13161 systems.
13162
13163 2015-01-16 Eli Zaretskii <eliz@gnu.org>
13164
13165 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13166 functions.
13167 (_initialize_tui_win) <border-kind, border-mode>:
13168 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
13169 (tui_set_tab_width_command): Fix the commentary.
13170
13171 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13172
13173 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13174 Doc fix.
13175 (tui_set_tab_width_command): Delete and recreate the source and
13176 the disassembly windows, to show the effect of the changed tab
13177 size immediately.
13178
13179 * tui/tui-data.h (LINE_PREFIX): Make shorter
13180 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13181 "Thread NNNNN.XXXX" thread ID notation on Windows.
13182
13183 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13184
13185 Fix gcc-5 compilation.
13186 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13187
13188 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13189
13190 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13191 (linux-personality.o): New rule.
13192 * common/common-defs.h: Include <stdint.h>.
13193 * config/aarch64/linux.mh (NATDEPFILES): Include
13194 linux-personality.o.
13195 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13196 * config/arm/linux.mh (NATDEPFILES): Likewise.
13197 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13198 * config/i386/linux.mh (NATDEPFILES): Likewise.
13199 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13200 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13201 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13202 * config/mips/linux.mh (NATDEPFILES): Likewise.
13203 * config/pa/linux.mh (NATDEPFILES): Likewise.
13204 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13205 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13206 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13207 * config/s390/linux.mh (NATDEPFILES): Likewise.
13208 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13209 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13210 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13211 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13212 * defs.h: Remove #include <stdint.h> (moved to
13213 common/common-defs.h).
13214 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13215 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13216 nat/linux-personality.c).
13217 (linux_nat_create_inferior): Remove code to disable address space
13218 randomization (moved to nat/linux-personality.c). Create cleanup
13219 to disable address space randomization.
13220 * nat/linux-personality.c: New file.
13221 * nat/linux-personality.h: Likewise.
13222
13223 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13224
13225 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13226 common/posix-strerror.c.
13227 (posix-strerror.o): New rule.
13228 (mingw-strerror.o): Likewise.
13229 * common/common-utils.h (safe_strerror): Move prototype to here,
13230 from utils.h.
13231 * common/common.host: New file.
13232 * common/mingw-strerror.c: Likewise.
13233 * common/posix-strerror.c: Likewise.
13234 * configure: Regenerated.
13235 * configure.ac: Source common/common.host. Add variable
13236 common_host_obs to gdb_host_obs.
13237 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13238 gdb/common/posix-strerror.c when warning about the use of
13239 strerror.
13240 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13241 common/mingw-strerror.c.
13242 * posix-hdep.c (safe_strerror): Remove definition; move it to
13243 common/posix-hdep.c.
13244 * utils.h (safe_strerror): Remove prototype; move to
13245 common/common-utils.h.
13246
13247 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13248
13249 GDB 7.8.2 released.
13250
13251 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13252
13253 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13254 ___XA type if the array has already been fixed.
13255
13256 2015-01-14 Yao Qi <yao@codesourcery.com>
13257
13258 * Makefile.in (ppc-linux.o): New rule.
13259 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13260 * configure.ac: AC_CHECK_FUNCS(getauxval).
13261 * config.in: Re-generated.
13262 * configure: Re-generated.
13263 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13264 Declare.
13265 * nat/ppc-linux.c: New file.
13266 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13267 Call ppc64_64bit_inferior_p.
13268
13269 2015-01-14 Yao Qi <yao@codesourcery.com>
13270
13271 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13272 nat/ppc-linux.h.
13273 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13274 (PPC_FEATURE_HAS_DFP): Likewise.
13275 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13276 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13277 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13278 Include "nat/ppc-linux.h".
13279 * nat/ppc-linux.h: New file.
13280 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13281
13282 2015-01-14 Pedro Alves <palves@redhat.com>
13283
13284 PR gdb/17525
13285 * breakpoint.c: Include "interps.h".
13286 (bpstat_do_actions_1): Also check whether the interpreter is
13287 async.
13288
13289 2015-01-14 Pedro Alves <palves@redhat.com>
13290
13291 PR cli/17828
13292 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13293 reinstall if the interpreter is sync.
13294
13295 2015-01-13 Doug Evans <dje@google.com>
13296
13297 * objfiles.c (objfile_filename): New function.
13298 * objfiles.h (objfile_filename): Declare it.
13299 (objfile_name): Add function comment.
13300 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13301 bfd file name (which may be realpath'd), and the original name.
13302
13303 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13304
13305 * NEWS: Create a new section for the next release branch.
13306 Rename the section of the current branch, now that it has
13307 been cut.
13308
13309 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13310
13311 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13312 * version.in: Bump version to 7.9.50.DATE-cvs.
13313
13314 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13315
13316 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13317 Remove trailing new-line in argument of call to warning.
13318
13319 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13320
13321 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13322 new-line in argument of call to "warning".
13323
13324 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13325
13326 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13327 in static block, then try searching for primitive types.
13328
13329 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13330
13331 * top.h (gdb_add_history): Declare.
13332 * top.c (command_count): New variable.
13333 (gdb_add_history): New function.
13334 (gdb_safe_append_history): New static function.
13335 (quit_force): Call it.
13336 (command_line_input): Use gdb_add_history instead of
13337 add_history.
13338 * event-top.c (command_line_handler): Likewise.
13339
13340 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13341
13342 PR gdb/17046
13343 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13344 <setjmp.h> #include.
13345
13346 2015-01-11 Doug Evans <xdje42@gmail.com>
13347
13348 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13349
13350 2015-01-11 Doug Evans <xdje42@gmail.com>
13351
13352 PR gdb/15830
13353 * NEWS: The "maint demangle" command is renamed as "demangle".
13354 * demangle.c: #include cli/cli-utils.h, language.h.
13355 (demangle_command): New function.
13356 (_initialize_demangle): Add new command "demangle".
13357 * maint.c (maintenance_demangle): Stub out.
13358 (_initialize_maint_cmds): Update help text for "maint demangle",
13359 and mark as deprecated.
13360
13361 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13362
13363 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13364 inferior_thread is a function.
13365
13366 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13367
13368 * Makefile.in (.y.c): Don't munge yacc's #line
13369 directives.
13370
13371 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13372
13373 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13374 to prompt for input.
13375 * tui/tui-hooks.c (tui_query_hook): Remove.
13376 (tui_install_hooks): Don't set deprecated_query_hook.
13377 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13378 height calculation. Always update the command window's cur_line.
13379
13380 2015-01-09 Pedro Alves <palves@redhat.com>
13381
13382 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13383 function.
13384 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13385 declaration.
13386 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13387 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13388 stop_reason.
13389 (check_stopped_by_watchpoint): New function.
13390 (save_sigtrap): Reimplement.
13391 (linux_nat_stopped_by_watchpoint): Adjust.
13392 (linux_nat_lp_status_is_event): Delete.
13393 (stop_wait_callback): Only call save_sigtrap after storing the
13394 pending status.
13395 (status_callback): If the thread had been stopped for a breakpoint
13396 that has since been removed, discard the event and resume the LWP.
13397 (count_events_callback, select_event_lwp_callback): Use
13398 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13399 (cancel_breakpoint): Rename to ...
13400 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13401 stopped for a software breakpoint or hardware breakpoint.
13402 (select_event_lwp): Only give preference to the stepping LWP in
13403 all-stop mode. Adjust comments.
13404 (stop_and_resume_callback): Remove references to new_pending_p.
13405 (linux_nat_filter_event): Likewise. Leave exit events of the
13406 leader thread pending here. Handle signal short circuiting here.
13407 Only call save_sigtrap after storing the pending waitstatus.
13408 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13409 new_pending. Don't handle leaving events the caller is not
13410 interested in pending here, nor handle signal short-circuiting
13411 here. Also give equal priority to all LWPs that have had events
13412 in non-stop mode. If reporting a software breakpoint event,
13413 unadjust the LWP's PC.
13414 * linux-nat.h (enum lwp_stop_reason): New.
13415 (struct lwp_info) <stop_pc>: New field.
13416 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13417 (struct lwp_info) <stop_reason>: New field.
13418 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13419
13420 2015-01-09 Pedro Alves <palves@redhat.com>
13421
13422 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13423 Set the LWP's 'resumed' flag.
13424
13425 2015-01-09 Pedro Alves <palves@redhat.com>
13426
13427 * linux-nat.c (linux_resume_one_lwp): New function.
13428 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13429 (linux_nat_resume): Use lwp_status_pending_p and
13430 linux_resume_one_lwp.
13431 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13432 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13433 (status_callback, running_callback): Use lwp_status_pending_p.
13434 (lwp_status_pending_p): New function.
13435 (stop_and_resume_callback): Use lwp_status_pending_p.
13436 (linux_nat_filter_event): Use linux_resume_one_lwp.
13437 (linux_nat_wait_1): Always use status_callback to look for an LWP
13438 with a pending status. Use linux_resume_one_lwp.
13439 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13440 linux_resume_one_lwp.
13441
13442 2015-01-09 Pedro Alves <palves@redhat.com>
13443
13444 * breakpoint.c (bp_location_inserted_here_p): New function,
13445 factored out from ...
13446 (breakpoint_inserted_here_p): ... here. Use
13447 ALL_BP_LOCATIONS_AT_ADDR.
13448 (software_breakpoint_inserted_here_p): Use
13449 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13450
13451 2014-01-09 Pedro Alves <palves@redhat.com>
13452
13453 Skip enabling event reporting if the kernel supports
13454 PTRACE_EVENT_CLONE.
13455 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13456 (thread_db_use_events): New function.
13457 (try_thread_db_load_1): Check thread_db_use_events before enabling
13458 event reporting.
13459 (update_thread_state): New function.
13460 (attach_thread): Use it. Check thread_db_use_events before
13461 enabling event reporting.
13462 (thread_db_detach): Check thread_db_use_events before disabling
13463 event reporting.
13464 (find_new_threads_callback): Check thread_db_use_events before
13465 enabling event reporting. Update the thread's state if not using
13466 libthread_db events.
13467
13468 2015-01-09 Pedro Alves <palves@redhat.com>
13469
13470 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13471 about to wait for is > 0.
13472 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13473 the kernel thread ID is -1.
13474
13475 2015-01-09 Pedro Alves <palves@redhat.com>
13476
13477 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13478 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13479 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13480 ptrace option flags.
13481 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13482 field.
13483 * nat/linux-procfs.c: Include <dirent.h>.
13484 (linux_proc_get_int): New parameter "warn". Handle it.
13485 (linux_proc_get_tgid): Adjust.
13486 (linux_proc_get_tracerpid): Rename to ...
13487 (linux_proc_get_tracerpid_nowarn): ... this.
13488 (linux_proc_pid_get_state): New function, factored out from
13489 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13490 and handle it.
13491 (linux_proc_pid_is_gone): New function.
13492 (linux_proc_pid_is_stopped): Adjust.
13493 (linux_proc_pid_is_zombie_maybe_warn)
13494 (linux_proc_pid_is_zombie_nowarn): New functions.
13495 (linux_proc_pid_is_zombie): Use
13496 linux_proc_pid_is_zombie_maybe_warn.
13497 (linux_proc_attach_tgid_threads): New function.
13498 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13499 (linux_proc_get_tracerpid): Rename to ...
13500 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13501 (linux_proc_pid_is_gone): New declaration.
13502 (linux_proc_pid_is_zombie): Update comment.
13503 (linux_proc_pid_is_zombie_nowarn): New declaration.
13504 (linux_proc_attach_lwp_func): New typedef.
13505 (linux_proc_attach_tgid_threads): New declaration.
13506 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13507 use nowarn functions.
13508 (linux_ptrace_attach_fail_reason_string): Move here from
13509 gdbserver/linux-low.c and rename.
13510 (ptrace_supports_feature): If the current ptrace options are not
13511 known yet, check them now, instead of asserting.
13512 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13513 Declare.
13514
13515 2015-01-09 Pedro Alves <palves@redhat.com>
13516
13517 * linux-thread-db.c (thread_db_find_new_threads_silently)
13518 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13519 (find_new_threads_once): Print debug output on gdb_stdlog.
13520
13521 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13522 Pedro Alves <palves@redhat.com>
13523
13524 * compile/compile.c: Include "gdb_wait.h".
13525 (do_rmdir): Check return value, and free 'zap'.
13526
13527 2015-01-08 Pedro Alves <palves@redhat.com>
13528 Yao Qi <yao@codesourcery.com>
13529
13530 * dwarf2loc.c (indirect_pieced_value): Don't call
13531 gdb_sign_extend. Call extract_signed_integer instead.
13532 * utils.c (gdb_sign_extend): Remove.
13533 * utils.h (gdb_sign_extend): Remove declaration.
13534
13535 2015-01-07 Pierre Muller <muller@sourceware.org>
13536
13537 PR symtab/17811
13538 * stabsread.c (define_symbol): Set language for C++ special symbols.
13539
13540 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13541
13542 * inflow.c (initial_gdb_ttystate): Tweak comment.
13543
13544 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13545
13546 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13547 comment documenting function.
13548
13549 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13550
13551 * terminal.h (set_initial_gdb_ttystate): Declare.
13552 * inflow.c (initial_gdb_ttystate): New static variable.
13553 (set_initial_gdb_ttystate): New setter.
13554 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13555 instead of our current terminal state.
13556 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13557
13558 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13559
13560 * guile/scm-type.c (tyscm_array_1): Add comment.
13561 * python/py-type.c (typy_array_1): Add comment.
13562
13563 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13564
13565 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13566 error if N2 is equal to N1 - 1.
13567
13568 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13569
13570 * python/py-type.c (typy_array_1): Do not raise negative-length
13571 exception if N2 is equal to N1 - 1.
13572
13573 2015-01-03 Doug Evans <xdje42@gmail.com>
13574
13575 * c-exp.y: Whitespace cleanup.
13576 (classify_inner_name): Remove extra ;.
13577
13578 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13579
13580 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13581 offset signed.
13582
13583 2015-01-02 Doug Evans <dje@google.com>
13584
13585 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13586
13587 2015-01-02 Doug Evans <dje@google.com>
13588
13589 * symtab.h (struct symbol): Fix typo in comment.
13590
13591 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13592
13593 Update year range in copyright notice of all files.
13594
13595 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13596
13597 * top.c (print_gdb_version): Update copyright year to 2015.
13598
13599 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13600
13601 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13602
13603 For older changes see ChangeLog-2014.
13604 \f
13605 Local Variables:
13606 mode: change-log
13607 left-margin: 8
13608 fill-column: 74
13609 version-control: never
13610 coding: utf-8
13611 End:
This page took 0.453195 seconds and 4 git commands to generate.