[C++/mingw] Misc alloca casts
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-11-17 Pedro Alves <palves@redhat.com>
2
3 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
4 || __CYGWIN__]: Add casts.
5 * utils.c (gdb_filename_fnmatch): Add cast.
6 * windows-nat.c (windows_create_inferior): Add cast.
7
8 2015-11-17 Pedro Alves <palves@redhat.com>
9
10 * ser-mingw.c (CancelIo_ftype): New typedef.
11 (CancelIo): Use CancelIo_ftype.
12 (ser_windows_close, ser_windows_wait_handle)
13 (ser_windows_read_prim, stop_select_thread)
14 (console_select_thread, pipe_select_thread, file_select_thread)
15 (ser_console_wait_handle, ser_console_done_wait_handle)
16 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
17 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
18 (net_windows_socket_check_pending, net_windows_select_thread)
19 (net_windows_wait_handle, net_windows_done_wait_handle)
20 (net_windows_close): Add casts.
21 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
22 void*.
23
24 2015-11-17 Simon Marchi <simon.marchi@ericsson.com>
25
26 * c-exp.y (exp): Adjust, change enum c_string_type to
27 c_string_type.
28 (parse_string_or_char): Likewise.
29 * c-lang.c (charset_for_string_type): Likewise.
30 (classify_type): Likewise.
31 (c_printchar): Likewise.
32 (c_printstr): Likewise.
33 (evaluate_subexp_c): Likewise. And change cast to enum
34 c_string_type_values.
35 * c-lang.h: Include "common/enum_flags.h".
36 (enum c_string_type): Rename to...
37 (enum c_string_type_values): ...this.
38 (c_string_type): Define new enum flags type.
39
40 2015-11-17 Pedro Alves <palves@redhat.com>
41
42 * btrace.h: Include common/enum-flags.h.
43 (btrace_insn_flags): Define.
44 (struct btrace_insn) <flags>: Change type.
45 (btrace_function_flags): Define.
46 (struct btrace_function) <flags>: Change type.
47 (btrace_thread_flags): Define.
48 (struct btrace_thread_info) <flags>: Change type.
49 * c-exp.y (token_flags): Rename to ...
50 (token_flag): ... this.
51 (token_flags): Define.
52 (struct token) <flags>: Change type.
53 * common/enum-flags.h: New file.
54 * compile/compile-c-types.c (convert_qualified): Change type of
55 'quals' local.
56 * compile/compile-internal.h: Include "common/enum-flags.h".
57 (gcc_qualifiers_flags): Define.
58 * completer.c (enum reg_completer_targets): Rename to ...
59 (enum reg_completer_target): ... this.
60 (reg_completer_targets): Define.
61 (reg_or_group_completer_1): Change type of 'targets' parameter.
62 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
63 of 'psl_flags' local.
64 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
65 * infrun.c: Include "common/enum-flags.h".
66 (enum step_over_what): Rename to ...
67 (enum step_over_what_flag): ... this.
68 (step_over_what): Change type.
69 (start_step_over): Change type of 'step_what' local.
70 (thread_still_needs_step_over): Now returns a step_over_what.
71 Adjust.
72 (keep_going_pass_signal): Change type of 'step_what' local.
73 * linux-tdep.c: Include "common/enum-flags.h".
74 (enum filterflags): Rename to ...
75 (enum filter_flag): ... this.
76 (filter_flags): Define.
77 (dump_mapping_p): Change type of 'filterflags' parameter.
78 (linux_find_memory_regions_full): Change type of 'filterflags'
79 local.
80 (linux_find_memory_regions_full): Pass the address of an unsigned
81 int to sscanf instead of the address of an enum.
82 * record-btrace.c (btrace_print_lines): Change type of local
83 'psl_flags'.
84 (btrace_call_history): Replace 'flags' parameter
85 with 'int_flags' parameter. Adjust.
86 (record_btrace_call_history, record_btrace_call_history_range)
87 (record_btrace_call_history_from): Rename 'flags' parameter to
88 'int_flags'. Use record_print_flags.
89 * record.h: Include "common/enum-flags.h".
90 (record_print_flags): Define.
91 * source.c: Include "common/enum-flags.h".
92 (print_source_lines_base, print_source_lines): Change type of
93 flags parameter.
94 * symtab.h: Include "common/enum-flags.h".
95 (enum print_source_lines_flags): Rename to ...
96 (enum print_source_lines_flag): ... this.
97 (print_source_lines_flags): Define.
98 (print_source_lines): Change prototype.
99
100 2015-11-17 Pedro Alves <palves@redhat.com>
101
102 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
103 error instead of TARGET_XFER_E_IO.
104 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
105 memory_error.
106
107 2015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
108
109 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
110 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
111 value.
112 * dwarf2read.c (read_subrange_type): Likewise.
113
114 2015-11-16 Yao Qi <yao.qi@linaro.org>
115
116 * aarch64-tdep.c (aarch64_extract_return_value): Change array
117 buf's length to V_REGISTER_SIZE.
118
119 2015-11-16 Yao Qi <yao.qi@linaro.org>
120
121 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
122 from bfd_byte * to value *. Caller updated.
123 (pass_in_x): Likewise.
124 (pass_in_v_or_stack): Likewise.
125 (pass_on_stack): Likewise.
126
127 2015-11-16 Yao Qi <yao.qi@linaro.org>
128
129 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
130 instead of value_contents_writeable.
131 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
132
133 2015-11-16 Yao Qi <yao.qi@linaro.org>
134
135 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
136 to buf. Pass buf instead of val to push_stack_item.
137
138 2015-11-13 Yao Qi <yao.qi@linaro.org>
139
140 PR tdep/19051
141 * arm-tdep.c (arm_type_align): Return the right alignment
142 value for vector.
143 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
144 128-bit vector types.
145 (arm_return_in_memory): Handel vector type.
146
147 2015-11-13 Yao Qi <yao.qi@linaro.org>
148
149 * arm-tdep.c (arm_return_in_memory): Rewrite it.
150 (arm_return_value): Call arm_return_in_memory for
151 TYPE_CODE_COMPLEX.
152
153 2015-11-12 Yao Qi <yao.qi@linaro.org>
154
155 * arm-tdep.c (push_stack_item): Change contents type to
156 const gdb_byte *.
157
158 2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
159
160 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
161 cast to PTRACE_TYPE_RET *.
162 (inf_ptrace_store_register): Likewise.
163
164 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
167 info sub-commands.
168 * gnu-nat.c (add_task_commands): Likewise.
169 * macrocmd.c (_initialize_macrocmd): Likewise.
170
171 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
172
173 * cli/cli-decode.c (add_info): Switch to class_info.
174
175 2015-11-09 Joel Brobecker <brobecker@adacore.com>
176
177 * ada-lang.c (ada_is_wrapper_field): Add special handling
178 for fields called "RETVAL".
179
180 2015-11-09 Yao Qi <yao.qi@linaro.org>
181
182 * arm-tdep.c (arm_exidx_new_objfile): Use
183 ELF_STRING_ARM_unwind.
184
185 2015-11-09 Yao Qi <yao.qi@linaro.org>
186
187 * infrun.c (displaced_step_in_progress_thread): New function.
188 (handle_inferior_event_1): Call it.
189
190 2015-11-05 Yao Qi <yao.qi@linaro.org>
191
192 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
193 aarch64_decode_insn and decode instruction by aarch64_inst.
194
195 2015-11-05 Yao Qi <yao.qi@linaro.org>
196
197 * aarch64-tdep.c (extract_signed_bitfield): Remove.
198 (decode_masked_match): Remove.
199 (aarch64_decode_add_sub_imm): Remove.
200 (aarch64_decode_br): Remove.
201 (aarch64_decode_eret): Remove.
202 (aarch64_decode_movz): Remove.
203 (aarch64_decode_orr_shifted_register_x): Remove.
204 (aarch64_decode_ret): Remove.
205 (aarch64_decode_stp_offset): Remove.
206 (aarch64_decode_stur): Remove.
207 (aarch64_analyze_prologue): Call aarch64_decode_insn
208 and use aarch64_inst to decode instructions.
209
210 2015-11-05 Yao Qi <yao.qi@linaro.org>
211
212 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
213 wback.
214 (aarch64_decode_stp_offset_wb): Removed.
215 (aarch64_analyze_prologue): Don't use
216 aarch64_decode_stp_offset_wb.
217
218 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
219
220 PR/18376
221 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
222 (s390_software_single_step): New function.
223 (s390_displaced_step_hw_singlestep): New function.
224 (s390_gdbarch_init): Fill gdbarch slots with the above.
225
226 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
227
228 PR/18376
229 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
230 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
231 (s390_linux_record_tdep): New static global variable.
232 (s390x_linux_record_tdep): New static global variable.
233 (s390_all_but_pc_registers_record): New function.
234 (s390_canonicalize_syscall): New function.
235 (s390_linux_syscall_record): New function.
236 (s390_linux_record_signal): New function.
237 (s390_record_calc_disp_common): New function.
238 (s390_record_calc_disp): New function.
239 (s390_record_calc_disp_vsce): New function.
240 (s390_record_calc_rl): New function.
241 (s390_record_gpr_g): New function.
242 (s390_record_gpr_h): New function.
243 (s390_record_vr): New function.
244 (s390_process_record): New function.
245 (s390_init_linux_record_tdep): New function.
246 (s390_gdbarch_init): Fill record function slots.
247
248 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
249
250 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
251 memory storage.
252
253 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
254
255 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
256 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
257 (_initialize_record): Document the /s modifier.
258 * NEWS: Announce record instruction-history's new /s modifier.
259
260 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
261
262 * record-btrace.c (struct btrace_line_range): New.
263 (btrace_mk_line_range, btrace_line_range_add)
264 (btrace_line_range_is_empty, btrace_line_range_contains_range)
265 (btrace_find_line_range, btrace_print_lines): New.
266 (btrace_insn_history): Add source interleaving algorithm.
267
268 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
269
270 * disasm.h (DISASSEMBLY_SPECULATION): New.
271 (struct disasm_insn): New.
272 (gdb_pretty_print_insn): New.
273 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
274 Update users. Print instruction number and indicate speculative
275 execution, if requested.
276
277 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
278
279 * disasm.c (dump_insns): Split into this and ...
280 (gdb_pretty_print_insn): ... this.
281
282 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
285 (xtensa_linux_fetch_inferior_registers): Likewise.
286 (xtensa_linux_store_inferior_registers): Likewise.
287
288 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * arm-linux-nat.c (arm_linux_read_description): Add cast.
291
292 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
295 type of rw to enum target_hw_bp_type.
296 (ppc_linux_remove_mask_watchpoint): Likewise.
297 * target.c (target_insert_mask_watchpoint): Likewise.
298 (target_remove_mask_watchpoint): Likewise.
299 * target.h (target_insert_mask_watchpoint): Likewise.
300 (target_remove_mask_watchpoint): Likewise.
301 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
302 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
303 * target-delegates.c: Regenerate.
304
305 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
308 (get_sim_inferior_data): Likewise.
309 (sim_inferior_data_cleanup): Likewise.
310 (gdbsim_close_inferior): Likewise.
311 (gdbsim_resume_inferior): Likewise.
312 (gdbsim_wait): Likewise.
313 (simulator_command): Likewise.
314 (sim_command_completer): Likewise.
315
316 2015-11-03 Marcin Koƛcielnicki <koriakin@0x04.net>
317
318 * MAINTAINERS (Write After Approval): Add Marcin Koƛcielnicki.
319
320 2015-10-30 Pedro Alves <palves@redhat.com>
321
322 * breakpoint.c (breakpoint_in_range_p)
323 (breakpoint_location_address_range_overlap): New functions.
324 * breakpoint.h (breakpoint_in_range_p): New declaration.
325 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
326 in the scratch pad range, don't displaced step.
327
328 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
329
330 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
331 size_stack_t, size_size_t, size_iovec.
332
333 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
334
335 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
336 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
337 (amd64_x32_linux_init_abi): Fix size_termios.
338
339 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
340
341 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
342
343 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
344
345 * linux-record.c (record_linux_system_call): Fix old_select.
346
347 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
348
349 * linux-record.c (record_linux_system_call): Fix newstatat.
350
351 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
352
353 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
354
355 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
356
357 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
358 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
359 (amd64_x32_linux_init_abi): Add size_time_t.
360 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
361 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
362 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
363 handling.
364 * linux-record.h (struct linux_record_tdep): Add size_time_t.
365 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
366
367 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
368
369 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
370
371 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
372
373 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
374 size_dirent{,64}, add size_old_dirent.
375 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
376 add size_old_dirent.
377 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
378 size_old_dirent.
379 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
380 add size_old_dirent.
381 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
382 add size_old_dirent.
383 * linux-record.c (record_linux_system_call): Fix handling of readdir
384 and getdents{,64}.
385 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
386 add size_old_dirent.
387 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
388 size_dirent{,64}, add size_old_dirent.
389
390 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
391
392 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
393 size_sigset_t, size_old_sigaction, size_old_sigset_t.
394 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
395 size_sigset_t, size_old_sigaction, size_old_sigset_t.
396 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
397 size_old_sigaction, size_old_sigset_t.
398 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
399 size_old_sigaction, size_old_sigset_t.
400 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
401 size_old_sigaction, size_old_sigset_t.
402 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
403 size_sigset_t, size_old_sigaction, size_old_sigset_t.
404
405 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
406
407 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
408 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
409
410 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
411
412 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
413 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
414 (amd64_x32_linux_init_abi): Remove size_siginfo.
415 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
416 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
417 * linux-record.c (record_linux_system_call): Change size_siginfo
418 to size_siginfo_t.
419 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
420 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
421
422 2015-10-29 Pedro Alves <palves@redhat.com>
423
424 * mdebugread.c (add_data_symbol): New function, factored out from
425 ...
426 (parse_symbol): ... here. Delete 'theclass' local.
427
428 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
429
430 * jit.c (jit_target_read_impl): Add cast.
431
432 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * jit.c (jit_reader_load): Add cast.
435
436 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * dwarf2read.c (partial_die_full_name): Add cast.
439
440 2015-10-29 Pedro Alves <palves@redhat.com>
441
442 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
443
444 2015-10-29 Pedro Alves <palves@redhat.com>
445
446 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
447
448 2015-10-29 Eli Zaretskii <eliz@gnu.org>
449
450 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
451 in the environment.
452
453 2015-10-29 Pedro Alves <palves@redhat.com>
454
455 * gnu-v2-abi.c (gnuv2_is_destructor_name)
456 (gnuv2_is_constructor_name): Add casts.
457
458 2015-10-29 Pedro Alves <palves@redhat.com>
459
460 * common/common-exceptions.c (exception_none): Add cast.
461
462 2015-10-29 Pedro Alves <palves@redhat.com>
463
464 * compile/compile-c-types.c (struct type_map_instance)
465 <gcc_type>: Rename to gcc_type_handle.
466 (insert_type, convert_type): Adjust.
467
468 2015-10-29 Pedro Alves <palves@redhat.com>
469
470 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
471 assume that "break" breaks out of a TRY/CATCH.
472 * python/py-framefilter.c (py_print_single_arg): Don't assume
473 "continue" breaks out of a TRY/CATCH.
474 * python/py-value.c (valpy_binop_throw): New function, factored
475 out from ...
476 (valpy_binop): ... this.
477 (valpy_richcompare_throw): New function, factored
478 out from ...
479 (valpy_richcompare): ... this.
480 * solib.c (solib_read_symbols): Don't assume "break" breaks out
481 of a TRY/CATCH.
482 * common/common-exceptions.h [USE_RAW_CXX_TRY]
483 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
484
485 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
486
487 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
488 as move along with [d]addu.
489
490 2015-10-28 Yao Qi <yao.qi@linaro.org>
491
492 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
493 aarch64_decode_insn.
494
495 2015-10-27 Pedro Alves <palves@redhat.com>
496
497 * common/print-utils.c (host_address_to_string): Rename to ...
498 (host_address_to_string_1): ... this.
499 * common/print-utils.h (host_address_to_string): Reimplement as
500 wrapper around host_address_to_string_1.
501 * utils.c (gdb_print_host_address): Rename to ...
502 (gdb_print_host_address_1): ... this.
503 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
504 around host_address_to_string_1.
505
506 2015-10-27 Pedro Alves <palves@redhat.com>
507
508 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
509 memory_error. Rename local 'status' to 'res'.
510 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
511 memory_error.
512 * corefile.c (read_stack, read_code, write_memory): Always pass
513 TARGET_XFER_E_IO to memory_error.
514 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
515 memory_error. Rename parameter 'status' to 'err'.
516 (dump_insns): Rename local 'status' to 'err'.
517 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
518 to 'errp'. Rename local 'status' to 'err'. Always pass
519 TARGET_XFER_E_IO to memory_error.
520 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
521 * target.c (target_read_memory, target_read_raw_memory)
522 (target_read_stack, target_read_code, target_write_memory)
523 (target_write_raw_memory): Return -1 on error instead of
524 TARGET_XFER_E_IO.
525 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
526 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
527
528 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
529
530 * guile/guile-internal.h (gdbscm_with_guile): Change return
531 types to const char *.
532 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
533 (struct c_data) <func>: Likewise.
534 (struct c_data) <result>: Change type to const char *.
535 (scscm_eval_scheme_string): Change return type to
536 const char *.
537 (scscm_source_scheme_script): Likewise.
538 (gdbscm_safe_eval_string): Change type of result variable to
539 const char * and remove cast.
540 (gdbscm_safe_source_script): Likewise.
541 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
542 Change return type to const char *.
543 (gdbscm_disasm_read_memory): Change type of status to
544 const char *.
545
546 2015-10-27 Pedro Alves <palves@redhat.com>
547
548 * source.c (openp): New local 'last_errno'. Use it to
549 save/restore errno.
550
551 2015-10-27 Pedro Alves <palves@redhat.com>
552
553 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
554
555 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * ctf.c (SET_ENUM_FIELD): New macro.
558 (ctf_read_status): Use it.
559 (ctf_read_tp): Use it.
560
561 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
564 scm_t_dynwind_flags casts.
565 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
566 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
567 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
568
569 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * ax.h (ax_raw_byte): New declaration.
572 * ax-general.c (ax_raw_byte): New function.
573 (ax_simple): Use ax_raw_byte.
574 * ax-gdb.c (gen_printf): Likewise.
575
576 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * ada-lang.h (GROW_VECT): Add cast.
579
580 2015-10-26 Doug Evans <xdje42@gmail.com>
581
582 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
583
584 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
587 pointer.
588 (simple_search_memory): Cast return of memmem.
589
590 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
591
592 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
593
594 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
595
596 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
597 -1 on error.
598
599 2015-10-26 Doug Evans <dje@google.com>
600
601 PR symtab/17391
602 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
603 instead of gdbarch_dwarf2_reg_to_regnum.
604 (dwarf2_frame_cache): Ditto.
605 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
606 gdbarch_dwarf2_reg_to_regnum.
607 (get_reg_value): Ditto.
608 (dwarf2_fetch_cfa_info): Ditto.
609 (dwarf2_frame_prev_register): Ditto.
610 * dwarf2loc.c: #include "complaints.h".
611 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
612 instead of gdbarch_dwarf2_reg_to_regnum.
613 (dwarf_expr_get_reg_value): Ditto.
614 (read_pieced_value): Ditto.
615 (write_pieced_value): Ditto.
616 (dwarf2_evaluate_loc_desc_full): Ditto.
617 (dwarf_reg_to_regnum): New function.
618 (throw_bad_regnum_error): New function.
619 (dwarf_reg_to_regnum_or_error): Renamed from
620 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
621 All callers updated. Call throw_bad_regnum_error.
622 (locexpr_regname): Improve text of bad register number.
623 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
624 (dwarf_reg_to_regnum_or_error): Update prototype.
625 * dwarf2expr.c: #include "dwarf2loc.h".
626 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
627 gdbarch_dwarf2_reg_to_regnum.
628 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
629 * gdbarch.h: Regenerate.
630 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
631 register.
632 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
633 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
634 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
635 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
636 Remove warning for bad register.
637 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
638 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
639 i386_svr4_reg_to_regnum. Return -1 for bad registers.
640 (i386_svr4_reg_to_regnum): New function.
641 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
642 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
643 on bad registers, return -1.
644 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
645 Remove warning for bad register.
646 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
647 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
648 Remove warning for bad register. Return -1 for bad register.
649 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
650 for bad register, return -1.
651 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
652 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
653 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
654 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
655 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
656 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
657 for bad regs.
658 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
659 bad regs. Fix error result.
660 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
661 (reg_value_complaint): Update complaint text.
662 * mdebugread.c (reg_value_complaint): New function.
663 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
664
665 2015-10-26 Doug Evans <dje@google.com>
666
667 PR python/18938
668 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
669 All callers updated.
670
671 2015-10-26 Doug Evans <dje@google.com>
672
673 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
674 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
675 (maintenance_print_psymbols): Print address map.
676
677 2015-10-26 Doug Evans <dje@google.com>
678
679 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
680
681 2015-10-26 Doug Evans <dje@google.com>
682
683 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
684 gdbserver/linux-low.c.
685 (WSETSTOP): Simplify.
686
687 2015-10-26 Doug Evans <dje@google.com>
688
689 * linux-thread-db.c (find_new_threads_callback): Ditto.
690 (thread_db_pid_to_str): Ditto.
691
692 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
695 local char array to scm_mode_bits, use a cast instead.
696
697 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
698
699 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
700 result. Change type of element_block_ptr. Change allocation to
701 use XNEWVEC.
702
703 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
704
705 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
706 catch_errors call instead of NULL.
707
708 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
711 char pointer to scm_mode_bits.
712
713 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
714
715 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
716 cast.
717
718 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
721 "data" local variable and use it.
722
723 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
726 domain_enum cast.
727 (gdbscm_lookup_symbol): Likewise.
728
729 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
730
731 * d-exp.y: Remove an obsolete comment and propagate the block
732 information to the produced expression.
733
734 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
737 cast.
738 (tui_add_content_elements): Likewise.
739
740 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
741
742 * cli/cli-setshow.c (do_set_command): Constify p.
743
744 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
747 (void *) cast with (gdb_byte *).
748
749 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * proc-service.c (ps_pdread): Add cast.
752
753 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
756 valbuf.
757
758 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
761 (ia64_push_dummy_call): Remove cast and change type of "to" to
762 array of gdb_byte.
763
764 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
767
768 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
769
770 * observer.h (observer_${event}_notification_stub): Add cast.
771
772 2015-10-23 Yao Qi <yao.qi@linaro.org>
773
774 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
775 dsd.insn_count to zero.
776
777 2015-10-22 Pedro Alves <palves@redhat.com>
778
779 * infrun.c (stop_after_trap): Delete.
780 (clear_proceed_status, handle_signal_stop, struct
781 infcall_control_state, save_infcall_control_state)
782 (restore_infcall_control_state): Remove references to
783 stop_after_trap.
784
785 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
786
787 * python/python.c (_initialize_python): Add cast.
788
789 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
790
791 * nto-tdep.c (nto_inferior_data): Add cast.
792
793 2015-10-22 Pedro Alves <palves@redhat.com>
794
795 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
796 windows_wait and windows_resume directly instead of
797 wait_for_inferior and resume.
798
799 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * xtensa-tdep.h (XTREG): Add casts.
802 (XTREG_END): Likewise.
803
804 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
807
808 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
809
810 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
811
812 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
815 buf to gdb_byte*.
816 (supply_32bit_reg): Add cast.
817 (mips64_fill_gregset): Likewise.
818
819 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
820
821 PR python/18073
822 * python/py-type.c (typy_get_composite): Allow returning a
823 function type.
824
825 2015-10-21 Keven Boell <keven.boell@intel.com>
826
827 * dwarf2read.c (set_die_type): Add read of
828 DW_AT_allocated and DW_AT_associated.
829 * f-typeprint.c: New include of typeprint.h
830 (f_print_type): Add check for allocated/associated
831 status of type.
832 (f_type_print_varspec_suffix): Add check for
833 * gdbtypes.c (create_array_type_with_stride):
834 Add check for valid data location of type in
835 case allocated or associated attributes are set.
836 Length of an array should be only calculated if
837 allocated or associated is resolved as true.
838 (is_dynamic_type_internal): Add check for allocated/
839 associated.
840 (resolve_dynamic_array): Evaluate allocated/associated
841 properties.
842 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
843 <DYN_PROP_ASSOCIATED>: New enums.
844 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
845 (type_not_allocated): New function.
846 (type_not_associated): New function.
847 * valarith.c (value_subscripted_rvalue): Add check for
848 allocated/associated.
849 * valprint.c: New include of typeprint.h.
850 (valprint_check_validity): Add check for allocated/associated.
851 (value_check_printable): Add check for allocated/
852 associated.
853 * typeprint.h (val_print_not_allocated): New function.
854 (val_print_not_associated): New function.
855 * typeprint.c (val_print_not_allocated): New function.
856 (val_print_not_associated): New function.
857
858 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
859
860 * Makefile.in: Add arm.c/o.
861 * arch/arm.c: New file.
862 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
863 (MAKE_THUMB_ADDR): Likewise.
864 (UNMAKE_THUMB_ADDR): Likewise.
865 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
866 (IS_THUMB_ADDR): Move to arm.h.
867 (MAKE_THUMB_ADDR): Likewise.
868 (UNMAKE_THUMB_ADDR): Likewise.
869 * configure.tgt: Add arm.o to all ARM configs.
870
871 2015-10-21 Yao Qi <yao.qi@linaro.org>
872
873 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
874 Remove argument exp_vCont_s.
875 * gdb.base/range-stepping.exp: Callers updated.
876 * gdb.trace/range-stepping.exp: Likewise.
877
878 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
879
880 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
881 (nto_sniff_abi_note_section): New function.
882 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
883 binary.
884
885 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
886
887 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
888 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
889 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
890 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
891 New functions.
892 (_initialize_nto_tdep): New forward declaration, new function.
893 * nto-tdep.h (struct nto_inferior_data): New struct.
894 (nto_inferior_data): New function declaration.
895
896 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
897
898 * findvar.c (address_from_register): Check REGNUM validity.
899
900 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
901
902 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
903 (init_procfs_targets): Wire new function.
904
905 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
906
907 * nto-procfs.c (sys/auxv.h): Include.
908 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
909 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
910 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
911
912 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
913
914 * nto-procfs.c (nto_procfs_path): Rename to...
915 (nodestr): ... this, and change type.
916 (nto_node): Use new variable and logic accordingly.
917 (procfs_open_1): Use new variable name. Use local buffer to construct
918 procfrs path.
919 (procfs_pidlist): Use NODESTR to construct procfs path.
920 (procfs_files_info): Use NODESTR to output meaningful text.
921 (do_attach): Construct procfs using NODESTR.
922 (procfs_create_inferior): Compare pointer to NULL.
923
924 2015-10-19 Josh Stone <jistone@redhat.com>
925
926 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
927 return state, even when not actively catching syscalls at all.
928 (linux_handle_extended_wait): Mark syscall_state like an entry.
929 (wait_lwp): Set syscall_state ignored for other traps.
930 (linux_nat_filter_event): Likewise.
931
932 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
933
934 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
935 when handling 'E', 'T', 'S', 'X' and 'W' packets.
936 Do not set rs->waiting_for_stop_reply back to 1.
937
938 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
939
940 * nto-procfs.c (common/filestuff.h): Include.
941 (procfs_can_use_hw_breakpoint): Fix enum name.
942 (procfs_open_1): Fix compiler warning.
943 (procfs_pidlist): Make static.
944 (procfs_meminfo): Make static, fix type name, add missing argument.
945 (procfs_store_registers): Make static.
946 (procfs_thread_info): Remove unused function.
947 (_initialize_procfs): Forward declare.
948
949 2015-10-16 Yao Qi <yao.qi@arm.com>
950
951 * MAINTAINERS: Update my email address.
952
953 2015-10-15 Yao Qi <yao.qi@linaro.org>
954
955 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
956 Call gdbarch_breakpoint_from_pc to instruction length.
957 (aarch64_linux_remove_hw_breakpoint): Likewise.
958 * common/common-regcache.h (regcache_register_size): Declare.
959 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
960 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
961 the process is 32bit, otherwise set alignment to 4.
962 (aarch64_handle_breakpoint): Update comments.
963 * regcache.c (regcache_register_size): New function.
964
965 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
966
967 * gdbarch.sh (core_regset_section): Remove.
968 * gdbarch.h: Regenerate.
969
970 2015-10-14 Yao Qi <yao.qi@linaro.org>
971
972 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
973 out of it.
974 (enum aarch64_memory_operand_type): New.
975
976 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
977
978 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
979
980 2015-10-13 Pedro Alves <palves@redhat.com>
981
982 * ada-lang.c (ada_enum_name): Constify local.
983 * ada-typeprint.c (print_range_bound): Constify locals.
984 * c-varobj.c (c_describe_child): Likewise.
985 * cli/cli-setshow.c (do_set_command): Likewise.
986 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
987 * dwarf2read.c (find_file_and_directory): Likewise.
988 (anonymous_struct_prefix, dwarf2_name): Likewise.
989 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
990 * go-lang.c (unpack_mangled_go_symbol): Likewise.
991 * jv-typeprint.c (java_type_print_base): Likewise.
992 * ser-tcp.c (net_open): Likewise.
993 * symfile.c (deduce_language_from_filename): Likewise.
994 * symtab.c (gdb_mangle_name): Likewise.
995 * tui/tui-io.c (tui_redisplay_readline): Likewise.
996
997 2015-10-13 Pedro Alves <palves@redhat.com>
998
999 * infrun.c (restore_execution_direction): New function.
1000 (fetch_inferior_event): Use it instead of
1001 make_cleanup_restore_integer.
1002 (execution_direction): Change type to enum
1003 exec_direction_kind.
1004 * infrun.h (execution_direction): Likewise.
1005
1006 2015-10-13 Pedro Alves <palves@redhat.com>
1007
1008 * ada-lang.c (ada_value_primitive_packed_val): Constify
1009 locals. Use value_contents_writeable. Remove casts.
1010
1011 2015-10-13 Pedro Alves <palves@redhat.com>
1012
1013 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1014 and alloca calls.
1015
1016 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1019 write_memory with write_memory_unsigned_integer.
1020
1021 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * solib-dsbt.c (cmp_name): Constify arguments.
1024 * solib-frv.c (cmp_name): Likewise.
1025 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1026 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1027 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1028 (gdb_bfd_lookup_symbol): Likewise.
1029 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1030 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1031
1032 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * stack.c (parse_frame_specification): Remove message parameter,
1035 replace with fixed string in function body, update function
1036 comment.
1037 (frame_info): Remove message to parse_frame_specification.
1038 (select_frame_command): Likewise.
1039
1040 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * stack.c (parse_frame_specification): Delete.
1043 (parse_frame_specification_1): Rename to
1044 parse_frame_specification.
1045 (frame_info): Use parse_frame_specification.
1046 (select_frame_command): Likewise.
1047 (return_command): Use select_frame and print_stack_frame rather
1048 than frame_command and select_frame_command.
1049 (func_command): Use get_current_frame rather than
1050 parse_frame_specification.
1051
1052 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * stack.c (func_command): Return early when there is no ARG
1055 string.
1056
1057 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * stack.c: Include safe-ctype.h not ctype.h.
1060 (parse_frame_specification): Use ISSPACE not isspace.
1061 (backtrace_command): Use TOLOWER not tolower.
1062
1063 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1064
1065 * mep-tdep.c (current_me_module): Add cast.
1066 (mep_gdbarch_init): Likewise.
1067
1068 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1069
1070 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1071 (m32c_write_reg_t): ...this and...
1072 (m32c_read_reg_t): ...this.
1073 (struct m32c_reg): Update types of read and write.
1074 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1075 adjust definition.
1076 (m32c_banked_read): Likewise.
1077 (m32c_sb_read): Likewise.
1078 (m32c_part_read): Likewise.
1079 (m32c_cat_read): Likewise.
1080 (m32c_r3r2r1r0_read): Likewise.
1081 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1082 and adjust definition.
1083 (m32c_banked_write): Likewise.
1084 (m32c_sb_write): Likewise.
1085 (m32c_part_write): Likewise.
1086 (m32c_cat_write): Likewise.
1087 (m32c_r3r2r1r0_write): Likewise.
1088
1089 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1090
1091 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1092
1093 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1094
1095 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1096 gdb_sys_no_syscall instead of -1.
1097
1098 2015-10-12 Yao Qi <yao.qi@linaro.org>
1099
1100 * NEWS: Mention the change.
1101
1102 2015-10-12 Yao Qi <yao.qi@linaro.org>
1103
1104 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1105 (aarch64_emit_load_store): ... it. All callers updated.
1106
1107 2015-10-12 Yao Qi <yao.qi@linaro.org>
1108
1109 * arch/aarch64-insn.c (emit_insn): Rename to ...
1110 (aarch64_emit_insn): ... it. All callers updated.
1111
1112 2015-10-12 Yao Qi <yao.qi@linaro.org>
1113
1114 * aarch64-linux-tdep.c: Include arch-utils.h.
1115 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1116 set_gdbarch_displaced_step_copy_insn,
1117 set_gdbarch_displaced_step_fixup,
1118 set_gdbarch_displaced_step_free_closure,
1119 set_gdbarch_displaced_step_location,
1120 and set_gdbarch_displaced_step_hw_singlestep.
1121 * aarch64-tdep.c (struct displaced_step_closure): New.
1122 (struct aarch64_displaced_step_data): New.
1123 (aarch64_displaced_step_b): New function.
1124 (aarch64_displaced_step_b_cond): Likewise.
1125 (aarch64_register): Likewise.
1126 (aarch64_displaced_step_cb): Likewise.
1127 (aarch64_displaced_step_tb): Likewise.
1128 (aarch64_displaced_step_adr): Likewise.
1129 (aarch64_displaced_step_ldr_literal): Likewise.
1130 (aarch64_displaced_step_others): Likewise.
1131 (aarch64_displaced_step_copy_insn): Likewise.
1132 (aarch64_displaced_step_fixup): Likewise.
1133 (aarch64_displaced_step_hw_singlestep): Likewise.
1134 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1135 (aarch64_displaced_step_copy_insn): Declare.
1136 (aarch64_displaced_step_fixup): Declare.
1137 (aarch64_displaced_step_hw_singlestep): Declare.
1138 * arch/aarch64-insn.c (emit_insn): Moved from
1139 gdbserver/linux-aarch64-low.c.
1140 (emit_load_store): Likewise.
1141 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1142 gdbserver/linux-aarch64-low.c.
1143 (struct aarch64_register): Likewise.
1144 (struct aarch64_memory_operand): Likewise.
1145 (ENCODE): Likewise.
1146 (can_encode_int32): New macro.
1147 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1148 (emit_tb, emit_nop): Likewise.
1149 (emit_insn): Declare.
1150 (emit_load_store): Declare.
1151
1152 2015-10-12 Yao Qi <yao.qi@linaro.org>
1153
1154 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1155 gdbserver/linux-aarch64-low.c.
1156 (aarch64_relocate_instruction): Likewise.
1157 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
1158 (struct aarch64_insn_data): Moved from
1159 gdbserver/linux-aarch64-low.c.
1160 (struct aarch64_insn_visitor): Likewise.
1161 (aarch64_relocate_instruction): Declare.
1162
1163 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1164
1165 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
1166 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
1167 to the returned value.
1168
1169 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1170
1171 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
1172 is large enough for BIT_SIZE. Update function comment.
1173
1174 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1175
1176 * ada-lang.c (ada_value_primitive_packed_val): Move
1177 src_len variable to local block where used. Override
1178 BIT_SIZE if bigger than size of resolved type.
1179
1180 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1181
1182 * gdbtypes.h (is_scalar_type): Add extern declaration.
1183 * gdbtypes.c (is_scalar_type): Make non-static.
1184 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1185 to compute IS_SCALAR instead of doing it ourselves.
1186
1187 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1188
1189 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1190 of case where TYPE is dynamic.
1191
1192 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1193
1194 * ada-lang.c (ada_unpack_from_contents): New function,
1195 extracted from ada_value_primitive_packed_val.
1196 (ada_value_primitive_packed_val): Replace extracted out code
1197 by call to ada_unpack_from_contents.
1198
1199 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1200
1201 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1202 variable declarations.
1203
1204 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1205
1206 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1207 of local variables src and unpacked to "gdb_type *" instead of
1208 "unsigned char *".
1209
1210 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1211
1212 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1213 of various local variables more explicit and consistent.
1214 No real code change otherwise.
1215
1216 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1217
1218 * i386-tdep.h (struct gdbarch_tdep): Change type of
1219 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1220
1221 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1222
1223 * cris-tdep.c (struct instruction_environment): Change type of
1224 byte_order to enum bfd_endian.
1225
1226 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1227
1228 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1229 enum gdb_syscall casts.
1230
1231 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1232
1233 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1234 * arm-tdep.c (struct stack_item): Likewise.
1235 (push_stack_item): Add gdb_byte* cast.
1236 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1237 (push_stack_item): Add gdb_byte* cast.
1238 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1239 and add cast.
1240 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1241 (push_stack_item): Add gdb_byte* cast.
1242 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1243 add cast.
1244 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1245 gdb_byte*.
1246 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1247 gdb_byte* and remove unnecessary cast.
1248 (h8300h_extract_return_value): Likewise.
1249 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1250 (h8300h_store_return_value): Likewise.
1251 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1252 gdb_byte* and remove unnecessary cast.
1253 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1254 and add cast.
1255 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1256 gdb_byte* and remove unnecessary cast.
1257 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1258 valbuf.
1259 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1260 (mep_pseudo_cr64_read): Likewise.
1261 (mep_pseudo_csr_write): Likewise.
1262 (mep_pseudo_cr32_write): Likewise.
1263 (mep_pseudo_cr64_write): Likewise.
1264 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1265 gdb_byte* and add cast.
1266 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1267 gdb_byte* and remove unnecessary cast.
1268 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1269 valbuf.
1270 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1271 gdb_byte*.
1272 * printcmd.c (void): Likewise.
1273 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1274 gdb_byte* and add cast.
1275 (infpy_write_memory): Likewise.
1276 (infpy_search_memory): Likewise.
1277 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1278 and add cast.
1279 (regcache_raw_write_unsigned): Likewise.
1280 (regcache_cooked_write_signed): Likewise.
1281 (regcache_cooked_write_unsigned): Likewise.
1282 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1283 gdb_byte*.
1284
1285 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1286
1287 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1288 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1289
1290 2015-10-09 Eli Zaretskii <eliz@gnu.org>
1291
1292 * stack.c (print_stack_frame):
1293 * utils.c (printchar): Fix typos in commentary.
1294
1295 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1296
1297 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1298 (PostfixExpression): Support `expr.sizeof' expressions.
1299 (PrimaryExpression): Support `typeof(expr)' expressions.
1300
1301 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1302
1303 * MAINTAINERS: Update my email address.
1304
1305 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1306
1307 * record-btrace.c (record_btrace_resume): Fix void return.
1308
1309 2015-10-07 Yao Qi <yao.qi@linaro.org>
1310
1311 * aarch64-tdep.c: Include opcode/aarch64.h.
1312 (submask): Move it above.
1313 (bit): Likewise.
1314 (bits): Likewise.
1315 (aarch64_software_single_step): Call aarch64_decode_insn.
1316 Decode instruction by aarch64_inst instead of using
1317 aarch64_decode_bcond and decode_masked_match.
1318
1319 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1320
1321 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1322 only when the file is binary.
1323
1324 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1325
1326 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1327 subroutine handling.
1328
1329 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1330
1331 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1332
1333 2015-09-30 Doug Evans <dje@google.com>
1334
1335 * dwarf2read.c (setup_type_unit_groups): Add comment.
1336
1337 2015-09-30 Pedro Alves <palves@redhat.com>
1338
1339 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1340 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1341 (x86_linux_create_target): Don't install
1342 x86_linux_always_non_stop_p.
1343
1344 2015-09-30 Don Breazeal <donb@codesourcery.com>
1345
1346 * remote.c (remote_parse_stop_reply): Call strprefix instead
1347 of strncmp.
1348
1349 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1350
1351 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1352 * gdbarch.h: Regenerate.
1353 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1354 struct gdbarch_tdep_info *.
1355 * mips-tdep.c (mips_gdbarch_init): Likewise.
1356 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1357 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1358 * spu-multiarch.c (spu_gdbarch): Likewise.
1359
1360 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1361
1362 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1363 record a NULL value.
1364
1365 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1366
1367 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1368 and union arguments the same as pointer arguments when determining
1369 size of argument.
1370
1371 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1372
1373 * ft32-tdep.c: #include "opcode/ft32.h".
1374 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1375 (ft32_analyze_prologue): Use FT32_* macros.
1376
1377 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1378
1379 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1380 comment.
1381
1382 2015-09-28 Doug Evans <dje@google.com>
1383
1384 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1385
1386 2015-09-28 Doug Evans <dje@google.com>
1387
1388 * common/filestuff.c (make_cleanup_close): Update comment.
1389
1390 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1391
1392 * btrace.c (parse_xml_btrace_block): Fix cast of
1393 xml_find_attribute's return value.
1394 * memory-map.c (memory_map_start_memory): Likewise.
1395 * solib-svr4.c (library_list_start_library): Likewise.
1396 * solib-target.c (library_list_start_segment): Likewise.
1397 (library_list_start_section): Likewise.
1398 * tracepoint.c (traceframe_info_start_memory): Likewise.
1399
1400 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1401
1402 * d-namespace.c (d_lookup_symbol): New arg langdef.
1403 All callers updated. Support looking up symbol as a primitive type.
1404 (lookup_module_scope): New arg langdef. All callers updated.
1405 Call d_lookup_symbol directly for simple bare symbols.
1406
1407 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1408
1409 * macrocmd.c (print_macro_callback): Add cast(s).
1410 * macrotab.c (macro_bcache_str): Likewise.
1411 (new_macro_definition): Likewise.
1412 * main.c (captured_main): Likewise.
1413 * maint.c (print_bfd_section_info): Likewise.
1414 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1415 (basic_type): Likewise.
1416 * memattr.c (mem_region_cmp): Likewise.
1417 * memory-map.c (memory_map_start_memory): Likewise.
1418 (memory_map_end_memory): Likewise.
1419 (memory_map_start_property): Likewise.
1420 (memory_map_end_property): Likewise.
1421 (clear_result): Likewise.
1422 * memrange.c (compare_mem_ranges): Likewise.
1423 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1424 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1425 * mi/mi-console.c (mi_console_file_delete): Likewise.
1426 (mi_console_file_fputs): Likewise.
1427 (mi_console_raw_packet): Likewise.
1428 (mi_console_file_flush): Likewise.
1429 (mi_console_set_raw): Likewise.
1430 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1431 (mi_new_thread): Likewise.
1432 (mi_thread_exit): Likewise.
1433 (mi_record_changed): Likewise.
1434 (mi_inferior_added): Likewise.
1435 (mi_inferior_appeared): Likewise.
1436 (mi_inferior_exit): Likewise.
1437 (mi_inferior_removed): Likewise.
1438 (mi_interp_data): Likewise.
1439 (mi_on_normal_stop): Likewise.
1440 (mi_traceframe_changed): Likewise.
1441 (mi_tsv_created): Likewise.
1442 (mi_tsv_deleted): Likewise.
1443 (mi_tsv_modified): Likewise.
1444 (mi_breakpoint_created): Likewise.
1445 (mi_breakpoint_deleted): Likewise.
1446 (mi_breakpoint_modified): Likewise.
1447 (mi_output_running_pid): Likewise.
1448 (mi_inferior_count): Likewise.
1449 (mi_solib_loaded): Likewise.
1450 (mi_solib_unloaded): Likewise.
1451 (mi_command_param_changed): Likewise.
1452 (mi_memory_changed): Likewise.
1453 (report_initial_inferior): Likewise.
1454 (mi_ui_out): Likewise.
1455 (mi_set_logging): Likewise.
1456 * mi/mi-main.c (collect_cores): Likewise.
1457 (print_one_inferior): Likewise.
1458 (free_vector_of_ints): Likewise.
1459 (free_splay_tree): Likewise.
1460 (mi_execute_command): Likewise.
1461 * mi/mi-out.c (mi_table_body): Likewise.
1462 (mi_table_end): Likewise.
1463 (mi_table_header): Likewise.
1464 (mi_begin): Likewise.
1465 (mi_end): Likewise.
1466 (mi_field_int): Likewise.
1467 (mi_field_string): Likewise.
1468 (mi_field_fmt): Likewise.
1469 (mi_flush): Likewise.
1470 (mi_redirect): Likewise.
1471 (field_separator): Likewise.
1472 (mi_open): Likewise.
1473 (mi_close): Likewise.
1474 (mi_out_buffered): Likewise.
1475 (mi_out_rewind): Likewise.
1476 (mi_out_put): Likewise.
1477 (mi_version): Likewise.
1478 (mi_out_data_dtor): Likewise.
1479 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1480 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1481 * minidebug.c (lzma_open): Likewise.
1482 (lzma_pread): Likewise.
1483 (lzma_close): Likewise.
1484 (lzma_stat): Likewise.
1485 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1486 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1487 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1488 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1489 (mips_micro_frame_cache): Likewise.
1490 (mips_insn32_frame_cache): Likewise.
1491 (mips_stub_frame_cache): Likewise.
1492 (gdb_print_insn_mips): Likewise.
1493 (value_of_mips_user_reg): Likewise.
1494 (mips_gdbarch_init): Likewise.
1495 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1496 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1497 (mipsnbsd_supply_gregset): Likewise.
1498 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1499 (am33_collect_gregset_method): Likewise.
1500 (am33_collect_fpregset_method): Likewise.
1501 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1502 * moxie-tdep.c (moxie_frame_cache): Likewise.
1503 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1504 (msp430_analyze_frame_prologue): Likewise.
1505 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1506 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1507 (nios2_collect_gregset): Likewise.
1508 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1509 (nios2_stub_frame_cache): Likewise.
1510 * objc-lang.c (find_methods): Likewise.
1511 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1512 (get_objfile_pspace_data): Likewise.
1513 (get_objfile_bfd_data): Likewise.
1514 (objfile_bfd_data_free): Likewise.
1515 (add_to_objfile_sections): Likewise.
1516 (do_free_objfile_cleanup): Likewise.
1517 (resume_section_map_updates_cleanup): Likewise.
1518 * opencl-lang.c (builtin_opencl_type): Likewise.
1519 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1520 * osdata.c (osdata_start_osdata): Likewise.
1521 (osdata_start_item): Likewise.
1522 (osdata_start_column): Likewise.
1523 (osdata_end_column): Likewise.
1524 (clear_parsing_data): Likewise.
1525 (osdata_free_cleanup): Likewise.
1526 * parse.c (type_stack_cleanup): Likewise.
1527 (exp_uses_objfile_iter): Likewise.
1528 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1529 (ppc_linux_collect_gregset): Likewise.
1530 (ppu2spu_prev_arch): Likewise.
1531 (ppu2spu_this_id): Likewise.
1532 (ppu2spu_prev_register): Likewise.
1533 (ppu2spu_unwind_register): Likewise.
1534 (ppu2spu_sniffer): Likewise.
1535 (ppu2spu_dealloc_cache): Likewise.
1536 (ppc_linux_init_abi): Likewise.
1537 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1538 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1539 * progspace.c (restore_program_space): Likewise.
1540 * psymtab.c (find_pc_sect_psymtab): Likewise.
1541 (compare_psymbols): Likewise.
1542 (psymbol_bcache_full): Likewise.
1543 (allocate_psymtab): Likewise.
1544 (discard_psymtabs_upto): Likewise.
1545 * python/py-block.c (set_block): Likewise.
1546 (del_objfile_blocks): Likewise.
1547 * python/py-breakpoint.c (build_bp_list): Likewise.
1548 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1549 (build_inferior_list): Likewise.
1550 (py_free_inferior): Likewise.
1551 * python/py-objfile.c (py_free_objfile): Likewise.
1552 (objfile_to_objfile_object): Likewise.
1553 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1554 * python/py-progspace.c (py_free_pspace): Likewise.
1555 (pspace_to_pspace_object): Likewise.
1556 * python/py-symbol.c (set_symbol): Likewise.
1557 (del_objfile_symbols): Likewise.
1558 * python/py-symtab.c (set_sal): Likewise.
1559 (set_symtab): Likewise.
1560 (del_objfile_symtab): Likewise.
1561 (del_objfile_sal): Likewise.
1562 * python/py-type.c (save_objfile_types): Likewise.
1563 (set_type): Likewise.
1564 * python/py-unwind.c (pyuw_prev_register): Likewise.
1565 (pyuw_on_new_gdbarch): Likewise.
1566 * python/py-utils.c (py_decref): Likewise.
1567 (py_xdecref): Likewise.
1568 (gdb_py_generic_dict): Likewise.
1569 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1570 (gdbpy_clone_xmethod_worker_data): Likewise.
1571 (gdbpy_get_xmethod_arg_types): Likewise.
1572 (gdbpy_get_xmethod_result_type): Likewise.
1573 (gdbpy_invoke_xmethod): Likewise.
1574 * python/python.c (gdbpy_apply_type_printers): Likewise.
1575 (gdbpy_free_type_printers): Likewise.
1576 * record-btrace.c (record_btrace_disable_callback): Likewise.
1577 (bfcache_hash): Likewise.
1578 (bfcache_eq): Likewise.
1579 (btrace_get_frame_function): Likewise.
1580 (record_btrace_frame_unwind_stop_reason): Likewise.
1581 (record_btrace_frame_this_id): Likewise.
1582 (record_btrace_frame_prev_register): Likewise.
1583 (record_btrace_frame_dealloc_cache): Likewise.
1584 * record-full.c (record_full_message_wrapper): Likewise.
1585 (record_full_save_cleanups): Likewise.
1586 * regcache.c (regcache_descr): Likewise.
1587 (do_regcache_xfree): Likewise.
1588 (do_regcache_invalidate): Likewise.
1589 (do_cooked_read): Likewise.
1590 (regcache_transfer_regset): Likewise.
1591 * reggroups.c (reggroup_add): Likewise.
1592 (reggroup_next): Likewise.
1593 (reggroup_prev): Likewise.
1594 * remote-fileio.c (do_remote_fileio_request): Likewise.
1595 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1596 (do_notif_event_xfree): Likewise.
1597 * remote.c (get_remote_arch_state): Likewise.
1598 (remote_pspace_data_cleanup): Likewise.
1599 (get_remote_exec_file): Likewise.
1600 (set_pspace_remote_exec_file): Likewise.
1601 (compare_pnums): Likewise.
1602 (clear_threads_listing_context): Likewise.
1603 (remote_newthread_step): Likewise.
1604 (start_thread): Likewise.
1605 (end_thread): Likewise.
1606 (remove_child_of_pending_fork): Likewise.
1607 (remove_stop_reply_for_inferior): Likewise.
1608 (remove_stop_reply_of_remote_state): Likewise.
1609 (remote_notif_remove_once_on_match): Likewise.
1610 (stop_reply_match_ptid_and_ws): Likewise.
1611 (kill_child_of_pending_fork): Likewise.
1612 (register_remote_g_packet_guess): Likewise.
1613 (remote_read_description_p): Likewise.
1614 (remote_read_description): Likewise.
1615 (free_actions_list_cleanup_wrapper): Likewise.
1616 (remote_async_serial_handler): Likewise.
1617 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1618 (rl78_analyze_frame_prologue): Likewise.
1619 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1620 (ppc_supply_fpregset): Likewise.
1621 (ppc_supply_vsxregset): Likewise.
1622 (ppc_supply_vrregset): Likewise.
1623 (ppc_collect_gregset): Likewise.
1624 (ppc_collect_fpregset): Likewise.
1625 (ppc_collect_vsxregset): Likewise.
1626 (ppc_collect_vrregset): Likewise.
1627 (e500_move_ev_register): Likewise.
1628 (do_regcache_raw_write): Likewise.
1629 (rs6000_frame_cache): Likewise.
1630 (rs6000_epilogue_frame_cache): Likewise.
1631 (rs6000_gdbarch_init): Likewise.
1632 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1633 (rx_analyze_frame_prologue): Likewise.
1634 (rx_frame_type): Likewise.
1635 (rx_frame_sniffer_common): Likewise.
1636 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1637 (s390_frame_unwind_cache): Likewise.
1638 (s390_stub_frame_unwind_cache): Likewise.
1639 (s390_sigtramp_frame_unwind_cache): Likewise.
1640 * score-tdep.c (score_make_prologue_cache): Likewise.
1641 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1642 (sentinel_frame_prev_arch): Likewise.
1643 * ser-base.c (fd_event): Likewise.
1644 (push_event): Likewise.
1645 (ser_base_write): Likewise.
1646 * ser-pipe.c (pipe_close): Likewise.
1647 * serial.c (serial_write): Likewise.
1648 * sh-tdep.c (sh_frame_cache): Likewise.
1649 (sh_stub_this_id): Likewise.
1650 * sh64-tdep.c (sh64_frame_cache): Likewise.
1651 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1652 (library_list_start_library): Likewise.
1653 (library_list_start_list): Likewise.
1654 (solib_aix_free_library_list): Likewise.
1655 * solib-darwin.c (get_darwin_info): Likewise.
1656 * solib-dsbt.c (get_dsbt_info): Likewise.
1657 * solib-spu.c (append_ocl_sos): Likewise.
1658 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1659 (get_svr4_info): Likewise.
1660 (library_list_start_library): Likewise.
1661 (svr4_library_list_start_list): Likewise.
1662 (hash_probe_and_action): Likewise.
1663 (equal_probe_and_action): Likewise.
1664 (svr4_update_solib_event_breakpoint): Likewise.
1665 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1666 (svr4_fetch_link_map_offsets): Likewise.
1667 (svr4_have_link_map_offsets): Likewise.
1668 * solib-target.c (library_list_start_segment): Likewise.
1669 (library_list_start_section): Likewise.
1670 (library_list_start_library): Likewise.
1671 (library_list_end_library): Likewise.
1672 (library_list_start_list): Likewise.
1673 (solib_target_free_library_list): Likewise.
1674 * solib.c (solib_ops): Likewise.
1675 (set_solib_ops): Likewise.
1676 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1677 * sparc-tdep.c (sparc_frame_cache): Likewise.
1678 (sparc32_frame_cache): Likewise.
1679 (sparc32_supply_gregset): Likewise.
1680 (sparc32_collect_gregset): Likewise.
1681 (sparc32_supply_fpregset): Likewise.
1682 (sparc32_collect_fpregset): Likewise.
1683 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1684 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1685 (sparc64_collect_gregset): Likewise.
1686 (sparc64_supply_fpregset): Likewise.
1687 (sparc64_collect_fpregset): Likewise.
1688 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1689 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1690 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1691 (sparc64obsd_trapframe_cache): Likewise.
1692 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1693 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1694 * spu-multiarch.c (spu_gdbarch): Likewise.
1695 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1696 (spu2ppu_prev_arch): Likewise.
1697 (spu2ppu_this_id): Likewise.
1698 (spu2ppu_prev_register): Likewise.
1699 (spu2ppu_dealloc_cache): Likewise.
1700 (spu_dis_asm_print_address): Likewise.
1701 (gdb_print_insn_spu): Likewise.
1702 (spu_get_overlay_table): Likewise.
1703 * stabsread.c (rs6000_builtin_type): Likewise.
1704 * stack.c (do_print_variable_and_value): Likewise.
1705 * stap-probe.c (get_stap_base_address_1): Likewise.
1706 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1707 (debug_qf_find_last_source_symtab): Likewise.
1708 (debug_qf_forget_cached_source_info): Likewise.
1709 (debug_qf_map_symtabs_matching_filename): Likewise.
1710 (debug_qf_lookup_symbol): Likewise.
1711 (debug_qf_print_stats): Likewise.
1712 (debug_qf_dump): Likewise.
1713 (debug_qf_relocate): Likewise.
1714 (debug_qf_expand_symtabs_for_function): Likewise.
1715 (debug_qf_expand_all_symtabs): Likewise.
1716 (debug_qf_expand_symtabs_with_fullname): Likewise.
1717 (debug_qf_map_matching_symbols): Likewise.
1718 (debug_qf_expand_symtabs_matching): Likewise.
1719 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1720 (debug_qf_map_symbol_filenames): Likewise.
1721 (debug_sym_get_probes): Likewise.
1722 (debug_sym_new_init): Likewise.
1723 (debug_sym_init): Likewise.
1724 (debug_sym_read): Likewise.
1725 (debug_sym_read_psymbols): Likewise.
1726 (debug_sym_finish): Likewise.
1727 (debug_sym_offsets): Likewise.
1728 (debug_sym_read_linetable): Likewise.
1729 (debug_sym_relocate): Likewise.
1730 (uninstall_symfile_debug_logging): Likewise.
1731 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1732 * symfile.c (place_section): Likewise.
1733 (add_section_size_callback): Likewise.
1734 (load_progress): Likewise.
1735 (load_section_callback): Likewise.
1736 (clear_memory_write_data): Likewise.
1737 (allocate_symtab): Likewise.
1738 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1739 * symtab.c (lookup_symtab_callback): Likewise.
1740 (hash_demangled_name_entry): Likewise.
1741 (eq_demangled_name_entry): Likewise.
1742 (get_symbol_cache): Likewise.
1743 (symbol_cache_cleanup): Likewise.
1744 (set_symbol_cache_size): Likewise.
1745 (symbol_cache_flush): Likewise.
1746 (maintenance_print_symbol_cache): Likewise.
1747 (maintenance_print_symbol_cache_statistics): Likewise.
1748 (delete_filename_seen_cache): Likewise.
1749 (output_partial_symbol_filename): Likewise.
1750 (search_symbols_file_matches): Likewise.
1751 (search_symbols_name_matches): Likewise.
1752 (do_free_completion_list): Likewise.
1753 (maybe_add_partial_symtab_filename): Likewise.
1754 (get_main_info): Likewise.
1755 (main_info_cleanup): Likewise.
1756 * target-dcache.c (target_dcache_cleanup): Likewise.
1757 (target_dcache_init_p): Likewise.
1758 (target_dcache_invalidate): Likewise.
1759 (target_dcache_get): Likewise.
1760 (target_dcache_get_or_init): Likewise.
1761 * target-descriptions.c (target_find_description): Likewise.
1762 (tdesc_find_type): Likewise.
1763 (tdesc_data_cleanup): Likewise.
1764 (tdesc_find_arch_register): Likewise.
1765 (tdesc_register_name): Likewise.
1766 (tdesc_register_type): Likewise.
1767 (tdesc_register_reggroup_p): Likewise.
1768 (set_tdesc_pseudo_register_name): Likewise.
1769 (set_tdesc_pseudo_register_type): Likewise.
1770 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1771 (tdesc_use_registers): Likewise.
1772 (free_target_description): Likewise.
1773 * target-memory.c (compare_block_starting_address): Likewise.
1774 (cleanup_request_data): Likewise.
1775 (cleanup_write_requests_vector): Likewise.
1776 * target.c (open_target): Likewise.
1777 (cleanup_restore_target_terminal): Likewise.
1778 (free_memory_read_result_vector): Likewise.
1779 * thread.c (disable_thread_stack_temporaries): Likewise.
1780 (finish_thread_state_cleanup): Likewise.
1781 (do_restore_current_thread_cleanup): Likewise.
1782 (restore_current_thread_cleanup_dtor): Likewise.
1783 (set_thread_refcount): Likewise.
1784 (tp_array_compar): Likewise.
1785 (do_captured_thread_select): Likewise.
1786 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1787 (tic6x_stub_this_id): Likewise.
1788 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1789 * top.c (do_restore_instream_cleanup): Likewise.
1790 (gdb_readline_wrapper_cleanup): Likewise.
1791 (kill_or_detach): Likewise.
1792 (print_inferior_quit_action): Likewise.
1793 * tracefile-tfile.c (match_blocktype): Likewise.
1794 (build_traceframe_info): Likewise.
1795 * tracefile.c (trace_file_writer_xfree): Likewise.
1796 * tracepoint.c (memrange_cmp): Likewise.
1797 (do_collect_symbol): Likewise.
1798 (do_clear_collection_list): Likewise.
1799 (do_restore_current_traceframe_cleanup): Likewise.
1800 (restore_current_traceframe_cleanup_dtor): Likewise.
1801 (free_current_marker): Likewise.
1802 (traceframe_info_start_memory): Likewise.
1803 (traceframe_info_start_tvar): Likewise.
1804 (free_result): Likewise.
1805 * tramp-frame.c (tramp_frame_cache): Likewise.
1806 * tui/tui-file.c (tui_file_delete): Likewise.
1807 (tui_fileopen): Likewise.
1808 (tui_sfileopen): Likewise.
1809 (tui_file_isatty): Likewise.
1810 (tui_file_rewind): Likewise.
1811 (tui_file_put): Likewise.
1812 (tui_file_fputs): Likewise.
1813 (tui_file_get_strbuf): Likewise.
1814 (tui_file_adjust_strbuf): Likewise.
1815 (tui_file_flush): Likewise.
1816 * tui/tui-layout.c (make_command_window): Likewise.
1817 (make_data_window): Likewise.
1818 (show_source_disasm_command): Likewise.
1819 (show_data): Likewise.
1820 (make_source_or_disasm_window): Likewise.
1821 (show_source_or_disasm_and_command): Likewise.
1822 * tui/tui-out.c (tui_field_int): Likewise.
1823 (tui_field_string): Likewise.
1824 (tui_field_fmt): Likewise.
1825 (tui_text): Likewise.
1826 * typeprint.c (hash_typedef_field): Likewise.
1827 (eq_typedef_field): Likewise.
1828 (do_free_typedef_hash): Likewise.
1829 (copy_typedef_hash_element): Likewise.
1830 (do_free_global_table): Likewise.
1831 (find_global_typedef): Likewise.
1832 (find_typedef_in_hash): Likewise.
1833 * ui-file.c (ui_file_write_for_put): Likewise.
1834 (do_ui_file_xstrdup): Likewise.
1835 (mem_file_delete): Likewise.
1836 (mem_file_rewind): Likewise.
1837 (mem_file_put): Likewise.
1838 (mem_file_write): Likewise.
1839 (stdio_file_delete): Likewise.
1840 (stdio_file_flush): Likewise.
1841 (stdio_file_read): Likewise.
1842 (stdio_file_write): Likewise.
1843 (stdio_file_write_async_safe): Likewise.
1844 (stdio_file_fputs): Likewise.
1845 (stdio_file_isatty): Likewise.
1846 (stdio_file_fseek): Likewise.
1847 (tee_file_delete): Likewise.
1848 (tee_file_flush): Likewise.
1849 (tee_file_write): Likewise.
1850 (tee_file_fputs): Likewise.
1851 (tee_file_isatty): Likewise.
1852 * ui-out.c (do_cleanup_table_end): Likewise.
1853 (do_cleanup_end): Likewise.
1854 * user-regs.c (user_reg_add): Likewise.
1855 (user_reg_map_name_to_regnum): Likewise.
1856 (usernum_to_user_reg): Likewise.
1857 (maintenance_print_user_registers): Likewise.
1858 * utils.c (do_bfd_close_cleanup): Likewise.
1859 (do_fclose_cleanup): Likewise.
1860 (do_obstack_free): Likewise.
1861 (do_ui_file_delete): Likewise.
1862 (do_ui_out_redirect_pop): Likewise.
1863 (do_free_section_addr_info): Likewise.
1864 (restore_integer): Likewise.
1865 (do_unpush_target): Likewise.
1866 (do_htab_delete_cleanup): Likewise.
1867 (do_restore_ui_file): Likewise.
1868 (do_value_free): Likewise.
1869 (do_free_so): Likewise.
1870 (free_current_contents): Likewise.
1871 (do_regfree_cleanup): Likewise.
1872 (core_addr_hash): Likewise.
1873 (core_addr_eq): Likewise.
1874 (do_free_char_ptr_vec): Likewise.
1875 * v850-tdep.c (v850_frame_cache): Likewise.
1876 * varobj.c (do_free_variable_cleanup): Likewise.
1877 * vax-tdep.c (vax_supply_gregset): Likewise.
1878 (vax_frame_cache): Likewise.
1879 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1880 * xml-support.c (gdb_xml_body_text): Likewise.
1881 (gdb_xml_values_cleanup): Likewise.
1882 (gdb_xml_start_element): Likewise.
1883 (gdb_xml_start_element_wrapper): Likewise.
1884 (gdb_xml_end_element): Likewise.
1885 (gdb_xml_end_element_wrapper): Likewise.
1886 (gdb_xml_cleanup): Likewise.
1887 (gdb_xml_fetch_external_entity): Likewise.
1888 (gdb_xml_parse_attr_enum): Likewise.
1889 (xinclude_start_include): Likewise.
1890 (xinclude_end_include): Likewise.
1891 (xml_xinclude_default): Likewise.
1892 (xml_xinclude_start_doctype): Likewise.
1893 (xml_xinclude_end_doctype): Likewise.
1894 (xml_xinclude_cleanup): Likewise.
1895 (xml_fetch_content_from_file): Likewise.
1896 * xml-syscall.c (free_syscalls_info): Likewise.
1897 (syscall_start_syscall): Likewise.
1898 * xml-tdesc.c (tdesc_end_arch): Likewise.
1899 (tdesc_end_osabi): Likewise.
1900 (tdesc_end_compatible): Likewise.
1901 (tdesc_start_target): Likewise.
1902 (tdesc_start_feature): Likewise.
1903 (tdesc_start_reg): Likewise.
1904 (tdesc_start_union): Likewise.
1905 (tdesc_start_struct): Likewise.
1906 (tdesc_start_flags): Likewise.
1907 (tdesc_start_field): Likewise.
1908 (tdesc_start_vector): Likewise.
1909 (fetch_available_features_from_target): Likewise.
1910 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1911 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1912 (xtensa_frame_cache): Likewise.
1913 (xtensa_frame_prev_register): Likewise.
1914 (xtensa_extract_return_value): Likewise.
1915
1916 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1917
1918 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1919 (aarch64_make_stub_cache): Likewise.
1920 (value_of_aarch64_user_reg): Likewise.
1921 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1922 (get_ada_inferior_data): Likewise.
1923 (get_ada_pspace_data): Likewise.
1924 (ada_pspace_data_cleanup): Likewise.
1925 (ada_complete_symbol_matcher): Likewise.
1926 (ada_exc_search_name_matches): Likewise.
1927 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1928 (get_ada_tasks_inferior_data): Likewise.
1929 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1930 (splay_obstack_alloc): Likewise.
1931 (splay_obstack_free): Likewise.
1932 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1933 (alpha_linux_collect_gregset): Likewise.
1934 (alpha_linux_supply_fpregset): Likewise.
1935 (alpha_linux_collect_fpregset): Likewise.
1936 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1937 * alpha-tdep.c (alpha_lds): Likewise.
1938 (alpha_sts): Likewise.
1939 (alpha_sigtramp_frame_unwind_cache): Likewise.
1940 (alpha_heuristic_frame_unwind_cache): Likewise.
1941 (alpha_supply_int_regs): Likewise.
1942 (alpha_fill_int_regs): Likewise.
1943 (alpha_supply_fp_regs): Likewise.
1944 (alpha_fill_fp_regs): Likewise.
1945 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1946 (alphanbsd_aout_supply_gregset): Likewise.
1947 (alphanbsd_supply_gregset): Likewise.
1948 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1949 (amd64_x32_linux_init_abi): Likewise.
1950 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1951 (amd64_collect_native_gregset): Likewise.
1952 * amd64-tdep.c (amd64_frame_cache): Likewise.
1953 (amd64_sigtramp_frame_cache): Likewise.
1954 (amd64_epilogue_frame_cache): Likewise.
1955 (amd64_supply_fxsave): Likewise.
1956 (amd64_supply_xsave): Likewise.
1957 (amd64_collect_fxsave): Likewise.
1958 (amd64_collect_xsave): Likewise.
1959 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1960 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1961 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1962 (arm_linux_collect_gregset): Likewise.
1963 (arm_linux_supply_nwfpe): Likewise.
1964 (arm_linux_collect_nwfpe): Likewise.
1965 (arm_linux_supply_vfp): Likewise.
1966 (arm_linux_collect_vfp): Likewise.
1967 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1968 (arm_prologue_unwind_stop_reason): Likewise.
1969 (arm_prologue_this_id): Likewise.
1970 (arm_prologue_prev_register): Likewise.
1971 (arm_exidx_data_free): Likewise.
1972 (arm_find_exidx_entry): Likewise.
1973 (arm_stub_this_id): Likewise.
1974 (arm_m_exception_this_id): Likewise.
1975 (arm_m_exception_prev_register): Likewise.
1976 (arm_normal_frame_base): Likewise.
1977 (gdb_print_insn_arm): Likewise.
1978 (arm_objfile_data_free): Likewise.
1979 (arm_record_special_symbol): Likewise.
1980 (value_of_arm_user_reg): Likewise.
1981 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1982 (armbsd_supply_gregset): Likewise.
1983 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1984 (get_auto_load_pspace_data): Likewise.
1985 (hash_loaded_script_entry): Likewise.
1986 (eq_loaded_script_entry): Likewise.
1987 (clear_section_scripts): Likewise.
1988 (collect_matching_scripts): Likewise.
1989 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1990 (get_auxv_inferior_data): Likewise.
1991 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1992 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1993 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1994 (target_bfd_xclose): Likewise.
1995 (target_bfd_get_section_table): Likewise.
1996 * bfin-tdep.c (bfin_frame_cache): Likewise.
1997 * block.c (find_block_in_blockvector): Likewise.
1998 (call_site_for_pc): Likewise.
1999 (block_find_non_opaque_type_preferred): Likewise.
2000 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2001 (signal_catchpoint_remove_location): Likewise.
2002 (signal_catchpoint_breakpoint_hit): Likewise.
2003 (signal_catchpoint_print_one): Likewise.
2004 (signal_catchpoint_print_mention): Likewise.
2005 (signal_catchpoint_print_recreate): Likewise.
2006 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2007 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2008 (bp_location_compare_addrs): Likewise.
2009 (get_first_locp_gte_addr): Likewise.
2010 (check_tracepoint_command): Likewise.
2011 (do_map_commands_command): Likewise.
2012 (get_breakpoint_objfile_data): Likewise.
2013 (free_breakpoint_probes): Likewise.
2014 (do_captured_breakpoint_query): Likewise.
2015 (compare_breakpoints): Likewise.
2016 (bp_location_compare): Likewise.
2017 (bpstat_remove_breakpoint_callback): Likewise.
2018 (do_delete_breakpoint_cleanup): Likewise.
2019 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2020 (bsd_uthread_set_collect_uthread): Likewise.
2021 (bsd_uthread_activate): Likewise.
2022 (bsd_uthread_fetch_registers): Likewise.
2023 (bsd_uthread_store_registers): Likewise.
2024 * btrace.c (check_xml_btrace_version): Likewise.
2025 (parse_xml_btrace_block): Likewise.
2026 (parse_xml_btrace_pt_config_cpu): Likewise.
2027 (parse_xml_btrace_pt_raw): Likewise.
2028 (parse_xml_btrace_pt): Likewise.
2029 (parse_xml_btrace_conf_bts): Likewise.
2030 (parse_xml_btrace_conf_pt): Likewise.
2031 (do_btrace_data_cleanup): Likewise.
2032 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2033 * charset.c (cleanup_iconv): Likewise.
2034 (do_cleanup_iterator): Likewise.
2035 * cli-out.c (cli_uiout_dtor): Likewise.
2036 (cli_table_begin): Likewise.
2037 (cli_table_body): Likewise.
2038 (cli_table_end): Likewise.
2039 (cli_table_header): Likewise.
2040 (cli_begin): Likewise.
2041 (cli_end): Likewise.
2042 (cli_field_int): Likewise.
2043 (cli_field_skip): Likewise.
2044 (cli_field_string): Likewise.
2045 (cli_field_fmt): Likewise.
2046 (cli_spaces): Likewise.
2047 (cli_text): Likewise.
2048 (cli_message): Likewise.
2049 (cli_wrap_hint): Likewise.
2050 (cli_flush): Likewise.
2051 (cli_redirect): Likewise.
2052 (out_field_fmt): Likewise.
2053 (field_separator): Likewise.
2054 (cli_out_set_stream): Likewise.
2055 * cli/cli-cmds.c (compare_symtabs): Likewise.
2056 * cli/cli-dump.c (call_dump_func): Likewise.
2057 (restore_section_callback): Likewise.
2058 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2059 (do_restore_user_call_depth): Likewise.
2060 (do_free_command_lines_cleanup): Likewise.
2061 * coff-pe-read.c (get_section_vmas): Likewise.
2062 (pe_as16): Likewise.
2063 (pe_as32): Likewise.
2064 * coffread.c (coff_symfile_read): Likewise.
2065 * common/agent.c (agent_look_up_symbols): Likewise.
2066 * common/filestuff.c (do_close_cleanup): Likewise.
2067 * common/format.c (free_format_pieces_cleanup): Likewise.
2068 * common/vec.c (vec_o_reserve): Likewise.
2069 * compile/compile-c-support.c (print_one_macro): Likewise.
2070 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2071 (eq_symbol_error): Likewise.
2072 (del_symbol_error): Likewise.
2073 (error_symbol_once): Likewise.
2074 (gcc_convert_symbol): Likewise.
2075 (gcc_symbol_address): Likewise.
2076 (hash_symname): Likewise.
2077 (eq_symname): Likewise.
2078 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2079 (eq_type_map_instance): Likewise.
2080 (insert_type): Likewise.
2081 (convert_type): Likewise.
2082 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2083 (setup_sections): Likewise.
2084 (link_hash_table_free): Likewise.
2085 (copy_sections): Likewise.
2086 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2087 * compile/compile.c (compile_print_value): Likewise.
2088 (do_rmdir): Likewise.
2089 (cleanup_compile_instance): Likewise.
2090 (cleanup_unlink_file): Likewise.
2091 * completer.c (free_completion_tracker): Likewise.
2092 * corelow.c (add_to_spuid_list): Likewise.
2093 * cp-namespace.c (reset_directive_searched): Likewise.
2094 * cp-support.c (reset_directive_searched): Likewise.
2095 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2096 (cris_frame_unwind_cache): Likewise.
2097 * d-lang.c (builtin_d_type): Likewise.
2098 * d-namespace.c (reset_directive_searched): Likewise.
2099 * dbxread.c (dbx_free_symfile_info): Likewise.
2100 (do_free_bincl_list_cleanup): Likewise.
2101 * disasm.c (hash_dis_line_entry): Likewise.
2102 (eq_dis_line_entry): Likewise.
2103 (dis_asm_print_address): Likewise.
2104 (fprintf_disasm): Likewise.
2105 (do_ui_file_delete): Likewise.
2106 * doublest.c (convert_floatformat_to_doublest): Likewise.
2107 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2108 (dummy_frame_prev_register): Likewise.
2109 (dummy_frame_this_id): Likewise.
2110 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2111 (cache_eq): Likewise.
2112 (cache_find): Likewise.
2113 (tailcall_frame_this_id): Likewise.
2114 (dwarf2_tailcall_prev_register_first): Likewise.
2115 (tailcall_frame_prev_register): Likewise.
2116 (tailcall_frame_dealloc_cache): Likewise.
2117 (tailcall_frame_prev_arch): Likewise.
2118 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2119 (dwarf2_frame_set_init_reg): Likewise.
2120 (dwarf2_frame_init_reg): Likewise.
2121 (dwarf2_frame_set_signal_frame_p): Likewise.
2122 (dwarf2_frame_signal_frame_p): Likewise.
2123 (dwarf2_frame_set_adjust_regnum): Likewise.
2124 (dwarf2_frame_adjust_regnum): Likewise.
2125 (clear_pointer_cleanup): Likewise.
2126 (dwarf2_frame_cache): Likewise.
2127 (find_cie): Likewise.
2128 (dwarf2_frame_find_fde): Likewise.
2129 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2130 (free_dwarf_expr_context_cleanup): Likewise.
2131 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2132 (locexpr_get_frame_base): Likewise.
2133 (loclist_find_frame_base_location): Likewise.
2134 (loclist_get_frame_base): Likewise.
2135 (dwarf_expr_dwarf_call): Likewise.
2136 (dwarf_expr_get_base_type): Likewise.
2137 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2138 (dwarf_expr_get_obj_addr): Likewise.
2139 (entry_data_value_coerce_ref): Likewise.
2140 (entry_data_value_copy_closure): Likewise.
2141 (entry_data_value_free_closure): Likewise.
2142 (get_frame_address_in_block_wrapper): Likewise.
2143 (dwarf2_evaluate_property): Likewise.
2144 (dwarf2_compile_property_to_c): Likewise.
2145 (needs_frame_read_addr_from_reg): Likewise.
2146 (needs_frame_get_reg_value): Likewise.
2147 (needs_frame_frame_base): Likewise.
2148 (needs_frame_frame_cfa): Likewise.
2149 (needs_frame_tls_address): Likewise.
2150 (needs_frame_dwarf_call): Likewise.
2151 (needs_dwarf_reg_entry_value): Likewise.
2152 (get_ax_pc): Likewise.
2153 (locexpr_read_variable): Likewise.
2154 (locexpr_read_variable_at_entry): Likewise.
2155 (locexpr_read_needs_frame): Likewise.
2156 (locexpr_describe_location): Likewise.
2157 (locexpr_tracepoint_var_ref): Likewise.
2158 (locexpr_generate_c_location): Likewise.
2159 (loclist_read_variable): Likewise.
2160 (loclist_read_variable_at_entry): Likewise.
2161 (loclist_describe_location): Likewise.
2162 (loclist_tracepoint_var_ref): Likewise.
2163 (loclist_generate_c_location): Likewise.
2164 * dwarf2read.c (line_header_hash_voidp): Likewise.
2165 (line_header_eq_voidp): Likewise.
2166 (dwarf2_has_info): Likewise.
2167 (dwarf2_get_section_info): Likewise.
2168 (locate_dwz_sections): Likewise.
2169 (hash_file_name_entry): Likewise.
2170 (eq_file_name_entry): Likewise.
2171 (delete_file_name_entry): Likewise.
2172 (dw2_setup): Likewise.
2173 (dw2_get_file_names_reader): Likewise.
2174 (dw2_find_pc_sect_compunit_symtab): Likewise.
2175 (hash_signatured_type): Likewise.
2176 (eq_signatured_type): Likewise.
2177 (add_signatured_type_cu_to_table): Likewise.
2178 (create_debug_types_hash_table): Likewise.
2179 (lookup_dwo_signatured_type): Likewise.
2180 (lookup_dwp_signatured_type): Likewise.
2181 (lookup_signatured_type): Likewise.
2182 (hash_type_unit_group): Likewise.
2183 (eq_type_unit_group): Likewise.
2184 (get_type_unit_group): Likewise.
2185 (process_psymtab_comp_unit_reader): Likewise.
2186 (sort_tu_by_abbrev_offset): Likewise.
2187 (process_skeletonless_type_unit): Likewise.
2188 (psymtabs_addrmap_cleanup): Likewise.
2189 (dwarf2_read_symtab): Likewise.
2190 (psymtab_to_symtab_1): Likewise.
2191 (die_hash): Likewise.
2192 (die_eq): Likewise.
2193 (load_full_comp_unit_reader): Likewise.
2194 (reset_die_in_process): Likewise.
2195 (free_cu_line_header): Likewise.
2196 (handle_DW_AT_stmt_list): Likewise.
2197 (hash_dwo_file): Likewise.
2198 (eq_dwo_file): Likewise.
2199 (hash_dwo_unit): Likewise.
2200 (eq_dwo_unit): Likewise.
2201 (create_dwo_cu_reader): Likewise.
2202 (create_dwo_unit_in_dwp_v1): Likewise.
2203 (create_dwo_unit_in_dwp_v2): Likewise.
2204 (lookup_dwo_unit_in_dwp): Likewise.
2205 (dwarf2_locate_dwo_sections): Likewise.
2206 (dwarf2_locate_common_dwp_sections): Likewise.
2207 (dwarf2_locate_v2_dwp_sections): Likewise.
2208 (hash_dwp_loaded_cutus): Likewise.
2209 (eq_dwp_loaded_cutus): Likewise.
2210 (lookup_dwo_cutu): Likewise.
2211 (abbrev_table_free_cleanup): Likewise.
2212 (dwarf2_free_abbrev_table): Likewise.
2213 (find_partial_die_in_comp_unit): Likewise.
2214 (free_line_header_voidp): Likewise.
2215 (follow_die_offset): Likewise.
2216 (follow_die_sig_1): Likewise.
2217 (free_heap_comp_unit): Likewise.
2218 (free_stack_comp_unit): Likewise.
2219 (dwarf2_free_objfile): Likewise.
2220 (per_cu_offset_and_type_hash): Likewise.
2221 (per_cu_offset_and_type_eq): Likewise.
2222 (get_die_type_at_offset): Likewise.
2223 (partial_die_hash): Likewise.
2224 (partial_die_eq): Likewise.
2225 (dwarf2_per_objfile_free): Likewise.
2226 (hash_strtab_entry): Likewise.
2227 (eq_strtab_entry): Likewise.
2228 (add_string): Likewise.
2229 (hash_symtab_entry): Likewise.
2230 (eq_symtab_entry): Likewise.
2231 (delete_symtab_entry): Likewise.
2232 (cleanup_mapped_symtab): Likewise.
2233 (add_indices_to_cpool): Likewise.
2234 (hash_psymtab_cu_index): Likewise.
2235 (eq_psymtab_cu_index): Likewise.
2236 (add_address_entry_worker): Likewise.
2237 (unlink_if_set): Likewise.
2238 (write_one_signatured_type): Likewise.
2239 (save_gdb_index_command): Likewise.
2240 * elfread.c (elf_symtab_read): Likewise.
2241 (elf_gnu_ifunc_cache_hash): Likewise.
2242 (elf_gnu_ifunc_cache_eq): Likewise.
2243 (elf_gnu_ifunc_record_cache): Likewise.
2244 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2245 (elf_get_probes): Likewise.
2246 (probe_key_free): Likewise.
2247 * f-lang.c (builtin_f_type): Likewise.
2248 * frame-base.c (frame_base_append_sniffer): Likewise.
2249 (frame_base_set_default): Likewise.
2250 (frame_base_find_by_frame): Likewise.
2251 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2252 (frame_unwind_append_unwinder): Likewise.
2253 (frame_unwind_find_by_frame): Likewise.
2254 * frame.c (frame_addr_hash): Likewise.
2255 (frame_addr_hash_eq): Likewise.
2256 (frame_stash_find): Likewise.
2257 (do_frame_register_read): Likewise.
2258 (unwind_to_current_frame): Likewise.
2259 (frame_cleanup_after_sniffer): Likewise.
2260 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2261 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2262 * ft32-tdep.c (ft32_frame_cache): Likewise.
2263 * gcore.c (do_bfd_delete_cleanup): Likewise.
2264 (gcore_create_callback): Likewise.
2265 * gdb_bfd.c (hash_bfd): Likewise.
2266 (eq_bfd): Likewise.
2267 (gdb_bfd_open): Likewise.
2268 (free_one_bfd_section): Likewise.
2269 (gdb_bfd_ref): Likewise.
2270 (gdb_bfd_unref): Likewise.
2271 (get_section_descriptor): Likewise.
2272 (gdb_bfd_map_section): Likewise.
2273 (gdb_bfd_crc): Likewise.
2274 (gdb_bfd_mark_parent): Likewise.
2275 (gdb_bfd_record_inclusion): Likewise.
2276 (gdb_bfd_requires_relocations): Likewise.
2277 (print_one_bfd): Likewise.
2278 * gdbtypes.c (type_pair_hash): Likewise.
2279 (type_pair_eq): Likewise.
2280 (builtin_type): Likewise.
2281 (objfile_type): Likewise.
2282 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2283 (vtable_address_point_offset): Likewise.
2284 (gnuv3_get_vtable): Likewise.
2285 (hash_value_and_voffset): Likewise.
2286 (eq_value_and_voffset): Likewise.
2287 (compare_value_and_voffset): Likewise.
2288 (compute_vtable_size): Likewise.
2289 (gnuv3_get_typeid_type): Likewise.
2290 * go-lang.c (builtin_go_type): Likewise.
2291 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2292 (bkscm_eq_block_smob): Likewise.
2293 (bkscm_objfile_block_map): Likewise.
2294 (bkscm_del_objfile_blocks): Likewise.
2295 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2296 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2297 (gdbscm_disasm_print_address): Likewise.
2298 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2299 (frscm_eq_frame_smob): Likewise.
2300 (frscm_inferior_frame_map): Likewise.
2301 (frscm_del_inferior_frames): Likewise.
2302 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2303 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2304 (ofscm_objfile_smob_from_objfile): Likewise.
2305 * guile/scm-ports.c (ioscm_write): Likewise.
2306 (ioscm_file_port_delete): Likewise.
2307 (ioscm_file_port_rewind): Likewise.
2308 (ioscm_file_port_put): Likewise.
2309 (ioscm_file_port_write): Likewise.
2310 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2311 (psscm_pspace_smob_from_pspace): Likewise.
2312 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2313 (scscm_recording_unwind_handler): Likewise.
2314 (gdbscm_with_catch): Likewise.
2315 (scscm_call_0_body): Likewise.
2316 (scscm_call_1_body): Likewise.
2317 (scscm_call_2_body): Likewise.
2318 (scscm_call_3_body): Likewise.
2319 (scscm_call_4_body): Likewise.
2320 (scscm_apply_1_body): Likewise.
2321 (scscm_eval_scheme_string): Likewise.
2322 (gdbscm_safe_eval_string): Likewise.
2323 (scscm_source_scheme_script): Likewise.
2324 (gdbscm_safe_source_script): Likewise.
2325 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2326 (gdbscm_call_scm_from_stringn): Likewise.
2327 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2328 (syscm_eq_symbol_smob): Likewise.
2329 (syscm_get_symbol_map): Likewise.
2330 (syscm_del_objfile_symbols): Likewise.
2331 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2332 (stscm_eq_symtab_smob): Likewise.
2333 (stscm_objfile_symtab_map): Likewise.
2334 (stscm_del_objfile_symtabs): Likewise.
2335 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2336 (tyscm_eq_type_smob): Likewise.
2337 (tyscm_type_map): Likewise.
2338 (tyscm_copy_type_recursive): Likewise.
2339 (save_objfile_types): Likewise.
2340 * guile/scm-utils.c (extract_arg): Likewise.
2341 * h8300-tdep.c (h8300_frame_cache): Likewise.
2342 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2343 * hppa-tdep.c (compare_unwind_entries): Likewise.
2344 (find_unwind_entry): Likewise.
2345 (hppa_frame_cache): Likewise.
2346 (hppa_stub_frame_unwind_cache): Likewise.
2347 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2348 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2349 (hppaobsd_supply_fpregset): Likewise.
2350 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2351 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2352 * i386-tdep.c (i386_frame_cache): Likewise.
2353 (i386_epilogue_frame_cache): Likewise.
2354 (i386_sigtramp_frame_cache): Likewise.
2355 (i386_supply_gregset): Likewise.
2356 (i386_collect_gregset): Likewise.
2357 (i386_gdbarch_init): Likewise.
2358 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2359 (i386obsd_trapframe_cache): Likewise.
2360 * i387-tdep.c (i387_supply_fsave): Likewise.
2361 (i387_collect_fsave): Likewise.
2362 (i387_supply_fxsave): Likewise.
2363 (i387_collect_fxsave): Likewise.
2364 (i387_supply_xsave): Likewise.
2365 (i387_collect_xsave): Likewise.
2366 * ia64-tdep.c (ia64_frame_cache): Likewise.
2367 (ia64_sigtramp_frame_cache): Likewise.
2368 * infcmd.c (attach_command_continuation): Likewise.
2369 (attach_command_continuation_free_args): Likewise.
2370 * inferior.c (restore_inferior): Likewise.
2371 (delete_thread_of_inferior): Likewise.
2372 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2373 (get_inflow_inferior_data): Likewise.
2374 (inflow_inferior_exit): Likewise.
2375 * infrun.c (displaced_step_clear_cleanup): Likewise.
2376 (restore_current_uiout_cleanup): Likewise.
2377 (release_stop_context_cleanup): Likewise.
2378 (do_restore_infcall_suspend_state_cleanup): Likewise.
2379 (do_restore_infcall_control_state_cleanup): Likewise.
2380 (restore_inferior_ptid): Likewise.
2381 * inline-frame.c (block_starting_point_at): Likewise.
2382 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2383 * jit.c (get_jit_objfile_data): Likewise.
2384 (get_jit_program_space_data): Likewise.
2385 (jit_object_close_impl): Likewise.
2386 (jit_find_objf_with_entry_addr): Likewise.
2387 (jit_breakpoint_deleted): Likewise.
2388 (jit_unwind_reg_set_impl): Likewise.
2389 (jit_unwind_reg_get_impl): Likewise.
2390 (jit_dealloc_cache): Likewise.
2391 (jit_frame_sniffer): Likewise.
2392 (jit_frame_prev_register): Likewise.
2393 (jit_prepend_unwinder): Likewise.
2394 (jit_inferior_exit_hook): Likewise.
2395 (free_objfile_data): Likewise.
2396 * jv-lang.c (jv_per_objfile_free): Likewise.
2397 (get_dynamics_objfile): Likewise.
2398 (get_java_class_symtab): Likewise.
2399 (builtin_java_type): Likewise.
2400 * language.c (language_string_char_type): Likewise.
2401 (language_bool_type): Likewise.
2402 (language_lookup_primitive_type): Likewise.
2403 (language_lookup_primitive_type_as_symbol): Likewise.
2404 * linespec.c (hash_address_entry): Likewise.
2405 (eq_address_entry): Likewise.
2406 (iterate_inline_only): Likewise.
2407 (iterate_name_matcher): Likewise.
2408 (decode_line_2_compare_items): Likewise.
2409 (collect_one_symbol): Likewise.
2410 (compare_symbols): Likewise.
2411 (compare_msymbols): Likewise.
2412 (add_symtabs_to_list): Likewise.
2413 (collect_symbols): Likewise.
2414 (compare_msyms): Likewise.
2415 (add_minsym): Likewise.
2416 (cleanup_linespec_result): Likewise.
2417 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2418 * linux-nat.c (delete_lwp_cleanup): Likewise.
2419 (count_events_callback): Likewise.
2420 (select_event_lwp_callback): Likewise.
2421 (resume_stopped_resumed_lwps): Likewise.
2422 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2423 (invalidate_linux_cache_inf): Likewise.
2424 (get_linux_inferior_data): Likewise.
2425 (linux_find_memory_regions_thunk): Likewise.
2426 (linux_make_mappings_callback): Likewise.
2427 (linux_corefile_thread_callback): Likewise.
2428 (find_mapping_size): Likewise.
2429 * linux-thread-db.c (find_new_threads_callback): Likewise.
2430 * lm32-tdep.c (lm32_frame_cache): Likewise.
2431 * m2-lang.c (builtin_m2_type): Likewise.
2432 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2433 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2434 (m32r_linux_supply_gregset): Likewise.
2435 (m32r_linux_collect_gregset): Likewise.
2436 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2437 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2438 * m68k-tdep.c (m68k_frame_cache): Likewise.
2439 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2440 (m68kbsd_supply_gregset): Likewise.
2441 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2442 * m88k-tdep.c (m88k_frame_cache): Likewise.
2443 (m88k_supply_gregset): Likewise.
2444
2445 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2446
2447 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2448 to allocation result assignment.
2449 * ada-exp.y (write_object_renaming): Likewise.
2450 (write_ambiguous_var): Likewise.
2451 (ada_nget_field_index): Likewise.
2452 (write_var_or_type): Likewise.
2453 * ada-lang.c (ada_decode_symbol): Likewise.
2454 (ada_value_assign): Likewise.
2455 (value_pointer): Likewise.
2456 (cache_symbol): Likewise.
2457 (add_nonlocal_symbols): Likewise.
2458 (ada_name_for_lookup): Likewise.
2459 (symbol_completion_add): Likewise.
2460 (ada_to_fixed_type_1): Likewise.
2461 (ada_get_next_arg): Likewise.
2462 (defns_collected): Likewise.
2463 * ada-lex.l (processId): Likewise.
2464 (processString): Likewise.
2465 * ada-tasks.c (read_known_tasks_array): Likewise.
2466 (read_known_tasks_list): Likewise.
2467 * ada-typeprint.c (decoded_type_name): Likewise.
2468 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2469 * amd64-tdep.c (amd64_push_arguments): Likewise.
2470 (amd64_displaced_step_copy_insn): Likewise.
2471 (amd64_classify_insn_at): Likewise.
2472 (amd64_relocate_instruction): Likewise.
2473 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2474 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2475 (initialize_current_architecture): Likewise.
2476 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2477 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2478 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2479 (arm_push_dummy_call): Likewise.
2480 (extend_buffer_earlier): Likewise.
2481 (arm_adjust_breakpoint_address): Likewise.
2482 (arm_skip_stub): Likewise.
2483 * auto-load.c (filename_is_in_pattern): Likewise.
2484 (maybe_add_script_file): Likewise.
2485 (maybe_add_script_text): Likewise.
2486 (auto_load_objfile_script_1): Likewise.
2487 * auxv.c (ld_so_xfer_auxv): Likewise.
2488 * ax-general.c (new_agent_expr): Likewise.
2489 (grow_expr): Likewise.
2490 (ax_reg_mask): Likewise.
2491 * bcache.c (bcache_full): Likewise.
2492 * breakpoint.c (program_breakpoint_here_p): Likewise.
2493 * btrace.c (parse_xml_raw): Likewise.
2494 * build-id.c (build_id_to_debug_bfd): Likewise.
2495 * buildsym.c (end_symtab_with_blockvector): Likewise.
2496 * c-exp.y (string_exp): Likewise.
2497 (qualified_name): Likewise.
2498 (write_destructor_name): Likewise.
2499 (operator_stoken): Likewise.
2500 (parse_number): Likewise.
2501 (scan_macro_expansion): Likewise.
2502 (yylex): Likewise.
2503 (c_print_token): Likewise.
2504 * c-lang.c (c_get_string): Likewise.
2505 (emit_numeric_character): Likewise.
2506 * charset.c (wchar_iterate): Likewise.
2507 * cli/cli-cmds.c (complete_command): Likewise.
2508 (make_command): Likewise.
2509 * cli/cli-dump.c (restore_section_callback): Likewise.
2510 (restore_binary_file): Likewise.
2511 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2512 * cli/cli-script.c (execute_control_command): Likewise.
2513 * cli/cli-setshow.c (do_set_command): Likewise.
2514 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2515 (read_pe_exported_syms): Likewise.
2516 * coffread.c (coff_read_struct_type): Likewise.
2517 (coff_read_enum_type): Likewise.
2518 * common/btrace-common.c (btrace_data_append): Likewise.
2519 * common/buffer.c (buffer_grow): Likewise.
2520 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2521 * common/format.c (parse_format_string): Likewise.
2522 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2523 * common/xml-utils.c (xml_escape_text): Likewise.
2524 * compile/compile-object-load.c (copy_sections): Likewise.
2525 (compile_object_load): Likewise.
2526 * compile/compile-object-run.c (compile_object_run): Likewise.
2527 * completer.c (filename_completer): Likewise.
2528 * corefile.c (read_memory_typed_address): Likewise.
2529 (write_memory_unsigned_integer): Likewise.
2530 (write_memory_signed_integer): Likewise.
2531 (complete_set_gnutarget): Likewise.
2532 * corelow.c (get_core_register_section): Likewise.
2533 * cp-name-parser.y (d_grab): Likewise.
2534 (allocate_info): Likewise.
2535 (cp_new_demangle_parse_info): Likewise.
2536 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2537 (cp_lookup_symbol_in_namespace): Likewise.
2538 (lookup_namespace_scope): Likewise.
2539 (find_symbol_in_baseclass): Likewise.
2540 (cp_lookup_nested_symbol): Likewise.
2541 (cp_lookup_transparent_type_loop): Likewise.
2542 * cp-support.c (copy_string_to_obstack): Likewise.
2543 (make_symbol_overload_list): Likewise.
2544 (make_symbol_overload_list_namespace): Likewise.
2545 (make_symbol_overload_list_adl_namespace): Likewise.
2546 (first_component_command): Likewise.
2547 * cp-valprint.c (cp_print_value): Likewise.
2548 * ctf.c (ctf_xfer_partial): Likewise.
2549 * d-exp.y (StringExp): Likewise.
2550 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2551 (lookup_module_scope): Likewise.
2552 (find_symbol_in_baseclass): Likewise.
2553 (d_lookup_nested_symbol): Likewise.
2554 * dbxread.c (find_stab_function_addr): Likewise.
2555 (read_dbx_symtab): Likewise.
2556 (dbx_end_psymtab): Likewise.
2557 (cp_set_block_scope): Likewise.
2558 * dcache.c (dcache_alloc): Likewise.
2559 * demangle.c (_initialize_demangler): Likewise.
2560 * dicos-tdep.c (dicos_load_module_p): Likewise.
2561 * dictionary.c (dict_create_hashed_expandable): Likewise.
2562 (dict_create_linear_expandable): Likewise.
2563 (expand_hashtable): Likewise.
2564 (add_symbol_linear_expandable): Likewise.
2565 * dwarf2-frame.c (add_cie): Likewise.
2566 (add_fde): Likewise.
2567 (dwarf2_build_frame_info): Likewise.
2568 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2569 (dwarf_expr_fetch_address): Likewise.
2570 (add_piece): Likewise.
2571 (execute_stack_op): Likewise.
2572 * dwarf2loc.c (chain_candidate): Likewise.
2573 (dwarf_entry_parameter_to_value): Likewise.
2574 (read_pieced_value): Likewise.
2575 (write_pieced_value): Likewise.
2576 * dwarf2read.c (dwarf2_read_section): Likewise.
2577 (add_type_unit): Likewise.
2578 (read_comp_units_from_section): Likewise.
2579 (fixup_go_packaging): Likewise.
2580 (dwarf2_compute_name): Likewise.
2581 (dwarf2_physname): Likewise.
2582 (create_dwo_unit_in_dwp_v1): Likewise.
2583 (create_dwo_unit_in_dwp_v2): Likewise.
2584 (read_func_scope): Likewise.
2585 (read_call_site_scope): Likewise.
2586 (dwarf2_attach_fields_to_type): Likewise.
2587 (process_structure_scope): Likewise.
2588 (mark_common_block_symbol_computed): Likewise.
2589 (read_common_block): Likewise.
2590 (abbrev_table_read_table): Likewise.
2591 (guess_partial_die_structure_name): Likewise.
2592 (fixup_partial_die): Likewise.
2593 (add_file_name): Likewise.
2594 (dwarf2_const_value_data): Likewise.
2595 (dwarf2_const_value_attr): Likewise.
2596 (build_error_marker_type): Likewise.
2597 (guess_full_die_structure_name): Likewise.
2598 (anonymous_struct_prefix): Likewise.
2599 (typename_concat): Likewise.
2600 (dwarf2_canonicalize_name): Likewise.
2601 (dwarf2_name): Likewise.
2602 (write_constant_as_bytes): Likewise.
2603 (dwarf2_fetch_constant_bytes): Likewise.
2604 (copy_string): Likewise.
2605 (parse_macro_definition): Likewise.
2606 * elfread.c (elf_symfile_segments): Likewise.
2607 (elf_rel_plt_read): Likewise.
2608 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2609 (elf_gnu_ifunc_resolve_by_got): Likewise.
2610 (elf_read_minimal_symbols): Likewise.
2611 (elf_gnu_ifunc_record_cache): Likewise.
2612 * event-top.c (top_level_prompt): Likewise.
2613 (command_line_handler): Likewise.
2614 * exec.c (resize_section_table): Likewise.
2615 * expprint.c (print_subexp_standard): Likewise.
2616 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2617 * findcmd.c (parse_find_args): Likewise.
2618 * findvar.c (address_from_register): Likewise.
2619 * frame.c (get_prev_frame_always): Likewise.
2620 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2621 (get_section_descriptor): Likewise.
2622 * gdb_obstack.c (obconcat): Likewise.
2623 (obstack_strdup): Likewise.
2624 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2625 (create_set_type): Likewise.
2626 (lookup_unsigned_typename): Likewise.
2627 (lookup_signed_typename): Likewise.
2628 (resolve_dynamic_union): Likewise.
2629 (resolve_dynamic_struct): Likewise.
2630 (add_dyn_prop): Likewise.
2631 (copy_dynamic_prop_list): Likewise.
2632 (arch_flags_type): Likewise.
2633 (append_composite_type_field_raw): Likewise.
2634 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2635 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2636 * go-exp.y (string_exp): Likewise.
2637 * go-lang.c (go_demangle): Likewise.
2638 * guile/guile.c (compute_scheme_string): Likewise.
2639 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2640 (gdbscm_canonicalize_command_name): Likewise.
2641 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2642 (ioscm_init_memory_port): Likewise.
2643 (ioscm_reinit_memory_port): Likewise.
2644 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2645 (gdbscm_gc_dup_argv): Likewise.
2646 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2647 * hppa-tdep.c (internalize_unwinds): Likewise.
2648 (read_unwind_info): Likewise.
2649 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2650 (windows_core_xfer_shared_libraries): Likewise.
2651 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2652 (i386_stap_parse_special_token_triplet): Likewise.
2653 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2654 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2655 * inf-child.c (inf_child_fileio_readlink): Likewise.
2656 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2657 (inf_ptrace_store_register): Likewise.
2658 * infrun.c (follow_exec): Likewise.
2659 (displaced_step_prepare_throw): Likewise.
2660 (save_stop_context): Likewise.
2661 (save_infcall_suspend_state): Likewise.
2662 * jit.c (jit_read_descriptor): Likewise.
2663 (jit_read_code_entry): Likewise.
2664 (jit_symtab_line_mapping_add_impl): Likewise.
2665 (finalize_symtab): Likewise.
2666 (jit_unwind_reg_get_impl): Likewise.
2667 * jv-exp.y (QualifiedName): Likewise.
2668 * jv-lang.c (get_java_utf8_name): Likewise.
2669 (type_from_class): Likewise.
2670 (java_demangle_type_signature): Likewise.
2671 (java_class_name_from_physname): Likewise.
2672 * jv-typeprint.c (java_type_print_base): Likewise.
2673 * jv-valprint.c (java_value_print): Likewise.
2674 * language.c (add_language): Likewise.
2675 * linespec.c (add_sal_to_sals_basic): Likewise.
2676 (add_sal_to_sals): Likewise.
2677 (decode_objc): Likewise.
2678 (find_linespec_symbols): Likewise.
2679 * linux-fork.c (fork_save_infrun_state): Likewise.
2680 * linux-nat.c (linux_nat_detach): Likewise.
2681 (linux_nat_fileio_readlink): Likewise.
2682 * linux-record.c (record_linux_sockaddr): Likewise.
2683 (record_linux_msghdr): Likewise.
2684 (Do): Likewise.
2685 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2686 (linux_collect_regset_section_cb): Likewise.
2687 (linux_get_siginfo_data): Likewise.
2688 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2689 (try_thread_db_load_from_dir): Likewise.
2690 (thread_db_load_search): Likewise.
2691 (info_auto_load_libthread_db): Likewise.
2692 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2693 (m32c_m16c_pointer_to_address): Likewise.
2694 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2695 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2696 * machoread.c (macho_check_dsym): Likewise.
2697 * macroexp.c (resize_buffer): Likewise.
2698 (gather_arguments): Likewise.
2699 (maybe_expand): Likewise.
2700 * macrotab.c (new_macro_key): Likewise.
2701 (new_source_file): Likewise.
2702 (new_macro_definition): Likewise.
2703 * mdebugread.c (parse_symbol): Likewise.
2704 (parse_type): Likewise.
2705 (parse_partial_symbols): Likewise.
2706 (psymtab_to_symtab_1): Likewise.
2707 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2708 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2709 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2710 (mi_cmd_data_read_memory_bytes): Likewise.
2711 (mi_cmd_data_write_memory_bytes): Likewise.
2712 (mi_cmd_trace_frame_collected): Likewise.
2713 * mi/mi-parse.c (mi_parse_argv): Likewise.
2714 (mi_parse): Likewise.
2715 * minidebug.c (lzma_open): Likewise.
2716 (lzma_pread): Likewise.
2717 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2718 (mips_print_fp_register): Likewise.
2719 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2720 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2721 * mt-tdep.c (mt_register_name): Likewise.
2722 (mt_registers_info): Likewise.
2723 (mt_push_dummy_call): Likewise.
2724 * namespace.c (add_using_directive): Likewise.
2725 * nat/linux-btrace.c (perf_event_read): Likewise.
2726 (linux_enable_bts): Likewise.
2727 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2728 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2729 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2730 (nto_parse_redirection): Likewise.
2731 * objc-lang.c (objc_demangle): Likewise.
2732 (find_methods): Likewise.
2733 * objfiles.c (get_objfile_bfd_data): Likewise.
2734 (set_objfile_main_name): Likewise.
2735 (allocate_objfile): Likewise.
2736 (objfile_relocate): Likewise.
2737 (update_section_map): Likewise.
2738 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2739 * p-exp.y (exp): Likewise.
2740 (yylex): Likewise.
2741 * p-valprint.c (pascal_object_print_value): Likewise.
2742 * parse.c (initialize_expout): Likewise.
2743 (mark_completion_tag): Likewise.
2744 (copy_name): Likewise.
2745 (parse_float): Likewise.
2746 (type_stack_reserve): Likewise.
2747 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2748 (ppu2spu_prev_register): Likewise.
2749 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2750 * printcmd.c (printf_wide_c_string): Likewise.
2751 (printf_pointer): Likewise.
2752 * probe.c (parse_probes): Likewise.
2753 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2754 (cmdpy_init): Likewise.
2755 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2756 * python/py-symtab.c (set_sal): Likewise.
2757 * python/py-unwind.c (pyuw_sniffer): Likewise.
2758 * python/python.c (python_interactive_command): Likewise.
2759 (compute_python_string): Likewise.
2760 * ravenscar-thread.c (get_running_thread_id): Likewise.
2761 * record-full.c (record_full_exec_insn): Likewise.
2762 (record_full_core_open_1): Likewise.
2763 * regcache.c (regcache_raw_read_signed): Likewise.
2764 (regcache_raw_read_unsigned): Likewise.
2765 (regcache_cooked_read_signed): Likewise.
2766 (regcache_cooked_read_unsigned): Likewise.
2767 * remote-fileio.c (remote_fileio_func_open): Likewise.
2768 (remote_fileio_func_rename): Likewise.
2769 (remote_fileio_func_unlink): Likewise.
2770 (remote_fileio_func_stat): Likewise.
2771 (remote_fileio_func_system): Likewise.
2772 * remote-mips.c (mips_xfer_memory): Likewise.
2773 (mips_load_srec): Likewise.
2774 (pmon_end_download): Likewise.
2775 * remote.c (new_remote_state): Likewise.
2776 (map_regcache_remote_table): Likewise.
2777 (remote_register_number_and_offset): Likewise.
2778 (init_remote_state): Likewise.
2779 (get_memory_packet_size): Likewise.
2780 (remote_pass_signals): Likewise.
2781 (remote_program_signals): Likewise.
2782 (remote_start_remote): Likewise.
2783 (remote_check_symbols): Likewise.
2784 (remote_query_supported): Likewise.
2785 (extended_remote_attach): Likewise.
2786 (process_g_packet): Likewise.
2787 (store_registers_using_G): Likewise.
2788 (putpkt_binary): Likewise.
2789 (read_frame): Likewise.
2790 (compare_sections_command): Likewise.
2791 (remote_hostio_pread): Likewise.
2792 (remote_hostio_readlink): Likewise.
2793 (remote_file_put): Likewise.
2794 (remote_file_get): Likewise.
2795 (remote_pid_to_exec_file): Likewise.
2796 (_initialize_remote): Likewise.
2797 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2798 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2799 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2800 (bfd_uses_spe_extensions): Likewise.
2801 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2802 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2803 * solib-dsbt.c (decode_loadmap): Likewise.
2804 (fetch_loadmap): Likewise.
2805 (scan_dyntag): Likewise.
2806 (enable_break): Likewise.
2807 (dsbt_relocate_main_executable): Likewise.
2808 * solib-frv.c (fetch_loadmap): Likewise.
2809 (enable_break2): Likewise.
2810 (frv_relocate_main_executable): Likewise.
2811 * solib-spu.c (spu_relocate_main_executable): Likewise.
2812 (spu_bfd_open): Likewise.
2813 * solib-svr4.c (lm_info_read): Likewise.
2814 (read_program_header): Likewise.
2815 (find_program_interpreter): Likewise.
2816 (scan_dyntag): Likewise.
2817 (elf_locate_base): Likewise.
2818 (open_symbol_file_object): Likewise.
2819 (read_program_headers_from_bfd): Likewise.
2820 (svr4_relocate_main_executable): Likewise.
2821 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2822 * solib.c (solib_find_1): Likewise.
2823 (exec_file_find): Likewise.
2824 (solib_find): Likewise.
2825 * source.c (openp): Likewise.
2826 (print_source_lines_base): Likewise.
2827 (forward_search_command): Likewise.
2828 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2829 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2830 (spu_get_overlay_table): Likewise.
2831 * stabsread.c (patch_block_stabs): Likewise.
2832 (define_symbol): Likewise.
2833 (again:): Likewise.
2834 (read_member_functions): Likewise.
2835 (read_one_struct_field): Likewise.
2836 (read_enum_type): Likewise.
2837 (common_block_start): Likewise.
2838 * stack.c (read_frame_arg): Likewise.
2839 (backtrace_command): Likewise.
2840 * stap-probe.c (stap_parse_register_operand): Likewise.
2841 * symfile.c (syms_from_objfile_1): Likewise.
2842 (find_separate_debug_file): Likewise.
2843 (load_command): Likewise.
2844 (load_progress): Likewise.
2845 (load_section_callback): Likewise.
2846 (reread_symbols): Likewise.
2847 (add_filename_language): Likewise.
2848 (allocate_compunit_symtab): Likewise.
2849 (read_target_long_array): Likewise.
2850 (simple_read_overlay_table): Likewise.
2851 * symtab.c (symbol_set_names): Likewise.
2852 (resize_symbol_cache): Likewise.
2853 (rbreak_command): Likewise.
2854 (completion_list_add_name): Likewise.
2855 (completion_list_objc_symbol): Likewise.
2856 (add_filename_to_list): Likewise.
2857 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2858 * target-memory.c (target_write_memory_blocks): Likewise.
2859 * target.c (target_read_string): Likewise.
2860 (read_whatever_is_readable): Likewise.
2861 (target_read_alloc_1): Likewise.
2862 (simple_search_memory): Likewise.
2863 (target_fileio_read_alloc_1): Likewise.
2864 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2865 * top.c (command_line_input): Likewise.
2866 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2867 * tracefile.c (tracefile_fetch_registers): Likewise.
2868 * tracepoint.c (add_memrange): Likewise.
2869 (init_collection_list): Likewise.
2870 (add_aexpr): Likewise.
2871 (trace_dump_actions): Likewise.
2872 (parse_trace_status): Likewise.
2873 (parse_tracepoint_definition): Likewise.
2874 (parse_tsv_definition): Likewise.
2875 (parse_static_tracepoint_marker_definition): Likewise.
2876 * tui/tui-file.c (tui_sfileopen): Likewise.
2877 (tui_file_adjust_strbuf): Likewise.
2878 * tui/tui-io.c (tui_expand_tabs): Likewise.
2879 * tui/tui-source.c (tui_set_source_content): Likewise.
2880 * typeprint.c (find_global_typedef): Likewise.
2881 * ui-file.c (do_ui_file_xstrdup): Likewise.
2882 (ui_file_obsavestring): Likewise.
2883 (mem_file_write): Likewise.
2884 * utils.c (make_hex_string): Likewise.
2885 (get_regcomp_error): Likewise.
2886 (puts_filtered_tabular): Likewise.
2887 (gdb_realpath_keepfile): Likewise.
2888 (ldirname): Likewise.
2889 (gdb_bfd_errmsg): Likewise.
2890 (substitute_path_component): Likewise.
2891 * valops.c (search_struct_method): Likewise.
2892 (find_oload_champ_namespace_loop): Likewise.
2893 * valprint.c (print_decimal_chars): Likewise.
2894 (read_string): Likewise.
2895 (generic_emit_char): Likewise.
2896 * varobj.c (varobj_delete): Likewise.
2897 (varobj_value_get_print_value): Likewise.
2898 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2899 * windows-tdep.c (display_one_tib): Likewise.
2900 * xcoffread.c (read_xcoff_symtab): Likewise.
2901 (process_xcoff_symbol): Likewise.
2902 (swap_sym): Likewise.
2903 (scan_xcoff_symtab): Likewise.
2904 (xcoff_initial_scan): Likewise.
2905 * xml-support.c (gdb_xml_end_element): Likewise.
2906 (xml_process_xincludes): Likewise.
2907 (xml_fetch_content_from_file): Likewise.
2908 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2909 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2910
2911 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2912
2913 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2914 instead of builtin_func_ptr.
2915 (ft32_pointer_to_address): New function.
2916 (ft32_address_class_type_flags): New function.
2917 (ft32_address_class_type_flags_to_name): New function.
2918 (ft32_address_class_name_to_type_flags): New function.
2919 (ft32_gdbarch_init): Set tdep->pc_type. Call
2920 set_gdbarch_pointer_to_address,
2921 set_gdbarch_address_class_type_flags
2922 set_gdbarch_address_class_name_to_type_flags,
2923 and set_gdbarch_address_class_type_flags_to_name.
2924 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2925
2926 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2927
2928 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2929 value is a reference, actually dereference it in order to get
2930 the underlying value.
2931
2932 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2933
2934 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2935
2936 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2937
2938 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2939 * linespec.c (linespec_lexer_lex_string): Same.
2940
2941 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2942
2943 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2944
2945 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2946
2947 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2948 variable. Call aarch64_decode_adr instead of
2949 aarch64_decode_adrp.
2950 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2951 (aarch64_decode_adr): New function declaration.
2952 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2953 (aarch64_decode_adr): New function, factored out from
2954 aarch64_decode_adrp to decode both adr and adrp instructions.
2955
2956 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2957
2958 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2959 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2960 (aarch64-insn.o): New rule.
2961 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2962 (aarch64*-*-linux*): Likewise.
2963 * arch/aarch64-insn.c: New file.
2964 * arch/aarch64-insn.h: New file.
2965 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2966 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2967 arch/aarch64-insn.h.
2968 (decode_add_sub_imm): Rename to ...
2969 (aarch64_decode_add_sub_imm): ... this.
2970 (decode_adrp): Rename to ...
2971 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2972 Declare in arch/aarch64-insn.h.
2973 (decode_b): Rename to ...
2974 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2975 Declare in arch/aarch64-insn.h.
2976 (decode_bcond): Rename to ...
2977 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2978 Declare in arch/aarch64-insn.h.
2979 (decode_br): Rename to ...
2980 (aarch64_decode_br): ... this.
2981 (decode_cb): Rename to ...
2982 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2983 Declare in arch/aarch64-insn.h.
2984 (decode_eret): Rename to ...
2985 (aarch64_decode_eret): ... this.
2986 (decode_movz): Rename to ...
2987 (aarch64_decode_movz): ... this.
2988 (decode_orr_shifted_register_x): Rename to ...
2989 (aarch64_decode_orr_shifted_register_x): ... this.
2990 (decode_ret): Rename to ...
2991 (aarch64_decode_ret): ... this.
2992 (decode_stp_offset): Rename to ...
2993 (aarch64_decode_stp_offset): ... this.
2994 (decode_stp_offset_wb): Rename to ...
2995 (aarch64_decode_stp_offset_wb): ... this.
2996 (decode_stur): Rename to ...
2997 (aarch64_decode_stur): ... this.
2998 (decode_tb): Rename to ...
2999 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3000 Declare in arch/aarch64-insn.h.
3001 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3002
3003 2015-09-20 Doug Evans <xdje42@gmail.com>
3004
3005 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3006
3007 2015-09-20 Doug Evans <xdje42@gmail.com>
3008
3009 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3010 variable name that collides with a parameter.
3011
3012 2015-09-20 Joel Brobecker <brobecker@adacore.com>
3013
3014 * dwarf2loc.c (locexpr_get_frame_base): Renames
3015 block_op_get_frame_base.
3016 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3017 block_op_get_frame_base by reference to locexpr_get_frame_base.
3018 (loclist_get_frame_base): New function, near identical copy of
3019 locexpr_get_frame_base.
3020 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3021 block_op_get_frame_base by reference to loclist_get_frame_base.
3022
3023 2015-09-19 Doug Evans <xdje42@gmail.com>
3024
3025 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3026 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3027
3028 2015-09-18 Doug Evans <xdje42@gmail.com>
3029
3030 * linux-thread-db.c (record_thread): Return the created thread.
3031 (thread_from_lwp): Likewise.
3032 (thread_db_get_thread_local_address): Update.
3033
3034 2015-09-18 Doug Evans <xdje42@gmail.com>
3035
3036 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3037 move only member demangled_name up. All uses updated.
3038
3039 2015-09-18 Doug Evans <xdje42@gmail.com>
3040
3041 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3042 kind of minimal symbol in the error message.
3043 * objfiles.c (objfile_flavour_name): New function.
3044 * objfiles.h (objfile_flavour_name): Declare.
3045
3046 2015-09-18 Yao Qi <yao.qi@linaro.org>
3047
3048 * nat/aarch64-linux.c: Include elf/common.h,
3049 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3050 (aarch64_ps_get_thread_area): New function.
3051 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3052 (aarch64_ps_get_thread_area): Declare.
3053 * aarch64-linux-nat.c (ps_get_thread_area): Call
3054 aarch64_ps_get_thread_area.
3055
3056 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3057
3058 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3059
3060 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3061
3062 * NEWS: Announce new scheduler-locking mode.
3063 * infrun.c (schedlock_replay): New.
3064 (scheduler_enums): Add schedlock_replay.
3065 (scheduler_mode): Change default to schedlock_replay.
3066 (user_visible_resume_ptid): Handle schedlock_replay.
3067 (clear_proceed_status_thread): Stop replaying if resumed thread is
3068 not replaying.
3069 (schedlock_applies): Handle schedlock_replay.
3070 (_initialize_infrun): Document new scheduler-locking mode.
3071 * record-btrace.c (record_btrace_resume): Remove code to stop other
3072 threads when not replaying the resumed thread.
3073
3074 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3075
3076 * record-btrace.c ((record_btrace_will_replay): New.
3077 (init_record_btrace_ops): Initialize to_record_will_replay.
3078 * record-full.c ((record_full_will_replay): New.
3079 (init_record_full_ops): Initialize to_record_will_replay.
3080 * target-delegates.c: Regenerated.
3081 * target.c (target_record_will_replay): New.
3082 * target.h (struct target_ops) <to_record_will_replay>: New.
3083 (target_record_will_replay): New.
3084
3085 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3086
3087 * record-btrace.c (record_btrace_resume): Call
3088 target_record_stop_replaying.
3089 (record_btrace_stop_replaying_all): New.
3090 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3091 * record-full.c (record_full_stop_replaying): New.
3092 (init_record_full_ops ): Initialize to_record_stop_replaying.
3093 * target-delegates.c: Regenerated.
3094 * target.c (target_record_stop_replaying): New.
3095 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3096 (target_record_stop_replaying): New.
3097
3098 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3099
3100 * record-btrace.c (record_btrace_xfer_partial)
3101 (record_btrace_store_registers, record_btrace_prepare_to_store):
3102 Call record_btrace_is_replaying with inferior_ptid instead of
3103 minus_one_ptid.
3104 (record_btrace_store_registers): Change error message.
3105
3106 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3107
3108 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3109 Update users to pass minus_one_ptid.
3110 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3111 * record.c (cmd_record_delete): Pass inferior_ptid to
3112 target_record_is_replaying.
3113 * target-delegates.c: Regenerated.
3114 * target.c (target_record_is_replaying): Add ptid argument.
3115 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3116 argument.
3117 (target_record_is_replaying): Add ptid argument.
3118
3119 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3120
3121 * record-btrace.c (record_btrace_open): Remove non_stop check.
3122 * NEWS: Announce that record btrace supports non-stop mode.
3123
3124 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3125
3126 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3127 in the TARKET_WAITKIND_NO_HISTORY case.
3128
3129 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3130
3131 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3132 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3133
3134 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3135
3136 * record-btrace.c (get_thread_current_frame): New.
3137 (record_btrace_start_replaying): Call get_thread_current_frame.
3138
3139 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3140
3141 * record-btrace.c (record_btrace_resume_thread): A move request
3142 overwrites a previous move request.
3143 (record_btrace_find_resume_thread): Removed.
3144 (record_btrace_resume): Resume all requested threads.
3145
3146 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3147
3148 * record-btrace.c: Include vec.h.
3149 (record_btrace_find_thread_to_move): Removed.
3150 (btrace_step_no_resumed, btrace_step_again)
3151 (record_btrace_stop_replaying_at_end): New.
3152 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3153 (record_btrace_single_step_forward): Remove calls to
3154 record_btrace_stop_replaying.
3155 (record_btrace_step_thread): Do only one step for BTHR_CONT and
3156 BTHR_RCONT. Keep threads at the end of their history moving.
3157 (record_btrace_wait): Call record_btrace_step_thread for all threads
3158 until one reports an event. Call record_btrace_stop_replaying_at_end
3159 for the eventing thread.
3160
3161 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3162
3163 * record-btrace.c (record_btrace_single_step_forward): Return
3164 NO_HISTORY if a step brings us to the end of the execution history.
3165
3166 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3167
3168 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
3169 to ...
3170 (record_btrace_single_step_forward): ... here and
3171 (record_btrace_single_step_backward): ... here.
3172
3173 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3174
3175 * record-btrace.c (btrace_step_spurious)
3176 (record_btrace_single_step_forward)
3177 (record_btrace_single_step_backward): New.
3178 (record_btrace_step_thread): Call record_btrace_single_step_forward
3179 and record_btrace_single_step_backward.
3180
3181 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3182
3183 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3184 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3185
3186 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3187
3188 * record-btrace.c (btrace_thread_flag_to_str)
3189 (record_btrace_cancel_resume): New.
3190 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3191 (record_btrace_resume): Print execution direction.
3192 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3193 (record_btrace_wait): Call record_btrace_cancel_resume.
3194
3195 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3196
3197 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3198 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3199 (record_btrace_find_thread_to_move): Also accept threads that have
3200 BTHR_STOP set.
3201 (btrace_step_stopped_on_request, record_btrace_stop): New.
3202 (record_btrace_step_thread): Support BTHR_STOP.
3203 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3204 (init_record_btrace_ops): Initialize to_stop.
3205
3206 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3207
3208 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3209 target_is_non_stop_p ().
3210
3211 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3212
3213 * ada-typeprint.c (print_array_type): Do not describe arrays as
3214 packed when they embed dynamic elements.
3215
3216 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3217
3218 * symtab.h (address_class): Document that TLS variables
3219 are handled by LOC_UNRESOLVED.
3220 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3221 * printcmd.c (address_info): Don't relocate TLS variables.
3222
3223 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3224
3225 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3226 (decode_adrp): Likewise.
3227 (decode_b): Likewise.
3228 (decode_bcond): Likewise.
3229 (decode_br): Likewise.
3230 (decode_cb): Likewise.
3231 (decode_eret): Likewise.
3232 (decode_movz): Likewise.
3233 (decode_orr_shifted_register_x): Likewise.
3234 (decode_ret): Likewise.
3235 (decode_stp_offset): Likewise.
3236 (decode_stp_offset_wb): Likewise.
3237 (decode_stur): Likewise.
3238 (decode_tb): Likewise.
3239 (aarch64_analyze_prologue): Likewise.
3240 (pass_in_x): Likewise.
3241 (pass_in_v): Likewise.
3242 (pass_on_stack): Likewise.
3243 (aarch64_push_dummy_call): Likewise.
3244 (aarch64_extract_return_value): Likewise.
3245 (aarch64_store_return_value): Likewise.
3246 (aarch64_return_value): Likewise.
3247 (aarch64_record_asimd_load_store): Likewise.
3248 (aarch64_record_load_store): Likewise.
3249 (aarch64_record_data_proc_simd_fp): Likewise.
3250
3251 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3252
3253 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3254 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3255 (ppc64_skip_trampoline_code_1): ... here.
3256 (ppc64_skip_trampoline_code): New wrapper function.
3257 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3258
3259 2015-09-15 Yao Qi <yao.qi@linaro.org>
3260
3261 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3262 function.
3263 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3264 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3265 if target_can_do_single_step returns 1.
3266 * remote.c (struct vCont_action_support) <s, S>: New fields.
3267 (PACKET_vContSupported): New enum.
3268 (remote_protocol_features): New element for vContSupported.
3269 (remote_query_supported): Append "vContSupported+".
3270 (remote_vcont_probe): Remove support_s and support_S, use
3271 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3272 vCont packet if c and C actions are not supported.
3273 (remote_can_do_single_step): New function.
3274 (init_remote_ops): Install it to to_can_do_single_step.
3275 (_initialize_remote): Call add_packet_config_cmd.
3276 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3277 (target_can_do_single_step): New macro.
3278 * target-delegates.c: Re-generated.
3279
3280 2015-09-15 Yao Qi <yao.qi@linaro.org>
3281
3282 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3283 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3284 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3285 New function.
3286 (aarch64_siginfo_from_compat_siginfo): New function.
3287 * nat/aarch64-linux.h: Include signal.h.
3288 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3289 (compat_timer_t, compat_clock_t): Likewise.
3290 (struct compat_timeval): New.
3291 (union compat_sigval): New.
3292 (struct compat_siginfo): New.
3293 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3294 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3295 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3296 (cpt_si_band, cpt_si_fd): Likewise.
3297
3298 2015-09-14 Pedro Alves <palves@redhat.com>
3299
3300 * infrun.c (current_stop_id): New global.
3301 (get_stop_id, new_stop_id): New functions.
3302 (fetch_inferior_event): Handle normal_stop proceeding the target.
3303 (struct stop_context): New.
3304 (save_stop_context, release_stop_context_cleanup)
3305 (stop_context_changed): New functions.
3306 (normal_stop): Return true if the hook-stop changes the stop
3307 context.
3308 * infrun.h (get_stop_id): Declare.
3309 (normal_stop): Now returns int. Add documentation.
3310
3311 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3312
3313 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3314 comment. Handle packed arrays.
3315
3316 2015-09-14 Pedro Alves <palves@redhat.com>
3317
3318 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3319 mention of maint set/show target-non-stop.
3320
3321 2015-09-11 Don Breazeal <donb@codesourcery.com>
3322
3323 * NEWS: Announce new remote packets for the exec-events
3324 feature and the exec-events feature and associated commands.
3325
3326 2015-09-11 Don Breazeal <donb@codesourcery.com>
3327
3328 * remote.c (remote_exec_event_p): New function.
3329 (remote_insert_exec_catchpoint): New function.
3330 (remote_remove_exec_catchpoint): New function.
3331 (init_extended_remote_ops): Initialize extended_remote_ops
3332 members to_insert_exec_catchpoint and
3333 to_remove_exec_catchpoint.
3334
3335 2015-09-11 Don Breazeal <donb@codesourcery.com>
3336 Luis Machado <lgustavo@codesourcery.com>
3337
3338 * infrun.c (follow_exec): Use process-style ptid for
3339 exec message. Call add_inferior_with_spaces and
3340 target_follow_exec.
3341 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3342 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3343 * remote.c (remote_pspace_data): New static variable.
3344 (remote_pspace_data_cleanup): New function.
3345 (get_remote_exec_file): New function.
3346 (set_remote_exec_file_1): New function.
3347 (set_remote_exec_file): New function.
3348 (show_remote_exec_file): New function.
3349 (remote_exec_file): Delete static variable.
3350 (anonymous enum) <PACKET_exec_event_feature>: New
3351 enumeration constant.
3352 (remote_protocol_features): Add entry for exec-events feature.
3353 (remote_query_supported): Add client side of qSupported query
3354 for exec-events feature.
3355 (remote_follow_exec): New function.
3356 (remote_parse_stop_reply): Handle 'exec' stop reason.
3357 (extended_remote_run, extended_remote_create_inferior): Call
3358 get_remote_exec_file and set_remote_exec_file_1.
3359 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3360 member.
3361 (_initialize_remote): Call
3362 register_program_space_data_with_cleanup. Call
3363 add_packet_config_cmd for remote exec-events feature.
3364 Modify call to add_setshow_string_noescape_cmd for exec-file
3365 to use new functions set_remote_exec_file and
3366 show_remote_exec_file.
3367 * target-debug.h, target-delegates.c: Regenerated.
3368 * target.c (target_follow_exec): New function.
3369 * target.h (struct target_ops) <to_follow_exec>: New member.
3370 (target_follow_exec): Declare new function.
3371
3372 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3373
3374 * aarch64-tdep.c (decode_cb): Move up comment describing the
3375 encoding.
3376 (decode_tb): Fix a typo in comment above the function. Move up
3377 comment describing the encoding.
3378
3379 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3380
3381 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3382
3383 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3384
3385 PR gdb/18947
3386 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3387 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3388
3389 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3390
3391 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3392 operations.
3393
3394 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3395
3396 * ada-lang.c (ada_search_struct_field): Constify parameters
3397 and/or variables..
3398 (xget_renaming_scope): Likewise.
3399 (ada_is_redundant_range_encoding): Likewise.
3400 (scan_discrim_bound): Likewise.
3401 (to_fixed_range_type): Likewise.
3402
3403 2015-09-10 Yao Qi <yao.qi@linaro.org>
3404
3405 * breakpoint.c (download_tracepoint_locations): New local
3406 can_download_tracepoint. Check the result of
3407 target_can_download_tracepoint and save it in
3408 can_download_tracepoint if there are tracepoints to download.
3409 * linux-nat.h (enum tribool): Move it to ...
3410 * common/common-types.h: ... here.
3411
3412 2015-09-09 Pedro Alves <palves@redhat.com>
3413
3414 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3415 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3416
3417 2015-09-09 Pedro Alves <palves@redhat.com>
3418
3419 * continuations.c (add_continuation, restore_thread_cleanup)
3420 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3421 (do_all_continuations_thread, do_all_continuations)
3422 (discard_all_continuations_thread_callback)
3423 (discard_all_continuations_thread, discard_all_continuations)
3424 (add_intermediate_continuation)
3425 (do_all_intermediate_continuations_thread_callback)
3426 (do_all_intermediate_continuations_thread)
3427 (do_all_intermediate_continuations)
3428 (discard_all_intermediate_continuations_thread_callback)
3429 (discard_all_intermediate_continuations_thread)
3430 (discard_all_intermediate_continuations): Delete.
3431 * continuations.h (add_continuation, do_all_continuations)
3432 (do_all_continuations_thread, discard_all_continuations)
3433 (discard_all_continuations_thread, add_intermediate_continuation)
3434 (do_all_intermediate_continuations)
3435 (do_all_intermediate_continuations_thread)
3436 (discard_all_intermediate_continuations)
3437 (discard_all_intermediate_continuations_thread): Delete
3438 declarations.
3439 * event-top.c (stdin_event_handler): Delete references to
3440 continuations.
3441 * gdbthread.h (struct thread_info): Delete continuations and
3442 intermediate_continuations fields.
3443 * inf-loop.c (inferior_event_handler): Remove references to
3444 continuations.
3445 * infrun.c (infrun_thread_stop_requested_callback): Remove
3446 references to continuations.
3447 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3448 * thread.c: Don't include "continuations.h".
3449 (clear_thread_inferior_resources): Remove references to
3450 continuations.
3451
3452 2015-09-09 Pedro Alves <palves@redhat.com>
3453
3454 * infcall.c (struct dummy_frame_context_saver): Delete.
3455 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3456 (dummy_frame_context_saver_drop)
3457 (dummy_frame_context_saver_cleanup)
3458 (dummy_frame_context_saver_get_regs)
3459 (dummy_frame_context_saver_setup): Delete.
3460 * infcall.h (dummy_frame_context_saver_drop)
3461 (dummy_frame_context_saver_cleanup)
3462 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3463 Delete.
3464 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3465 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3466 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3467
3468 2015-09-09 Pedro Alves <palves@redhat.com>
3469
3470 * breakpoint.c: Include "thread-fsm.h".
3471 (struct until_break_command_continuation_args): Delete.
3472 (struct until_break_fsm): New.
3473 (until_break_fsm_ops): New global.
3474 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3475 (until_break_command_continuation): Delete.
3476 (until_break_fsm_clean_up): New function.
3477 (until_break_fsm_async_reply_reason): New function.
3478 (until_break_command): Adjust to create an until_break_fsm instead
3479 of a continuation.
3480 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3481 here.
3482 * infcmd.c (struct until_next_fsm): New.
3483 (until_next_fsm_ops): New global.
3484 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3485 (until_next_continuation): Delete.
3486 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3487 functions.
3488 (until_next_command): Adjust to create a new until_next_fsm
3489 instead of a continuation.
3490
3491 2015-09-09 Pedro Alves <palves@redhat.com>
3492
3493 * infcall.c: Include thread_fsm.h.
3494 (struct call_return_meta_info): New.
3495 (get_call_return_value): New function, factored out from
3496 call_function_by_hand_dummy.
3497 (struct call_thread_fsm): New.
3498 (call_thread_fsm_ops): New global.
3499 (new_call_thread_fsm, call_thread_fsm_should_stop)
3500 (call_thread_fsm_should_notify_stop): New functions.
3501 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3502 the thread.
3503 (call_function_by_hand_dummy): Create a new call_thread_fsm
3504 instance, associate it with the thread, and wait for the FSM to
3505 finish. If finished successfully, fetch the function's result
3506 value out of the FSM.
3507 * infrun.c (fetch_inferior_event): If the FSM says the stop
3508 shouldn't be notified, don't call normal_stop.
3509 (maybe_remove_breakpoints): New function, factored out from ...
3510 (normal_stop): ... here. Simplify.
3511 * infrun.h (maybe_remove_breakpoints): Declare.
3512 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3513 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3514 (thread_fsm_should_notify_stop): Declare.
3515
3516 2015-09-09 Pedro Alves <palves@redhat.com>
3517
3518 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3519 * breakpoint.c (handle_jit_event): Print debug output.
3520 (bpstat_what): Split event callback handling to ...
3521 (bpstat_run_callbacks): ... this new function.
3522 (momentary_bkpt_print_it): No longer handle bp_finish here.
3523 * breakpoint.h (bpstat_run_callbacks): Declare.
3524 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3525 <thread_fsm>: New field.
3526 (thread_cancel_execution_command): Declare.
3527 * infcmd.c: Include thread-fsm.h.
3528 (struct step_command_fsm): New.
3529 (step_command_fsm_ops): New global.
3530 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3531 (step_1): Adjust to use step_command_fsm_prepare and
3532 prepare_one_step.
3533 (struct step_1_continuation_args): Delete.
3534 (step_1_continuation): Delete.
3535 (step_command_fsm_should_stop): New function.
3536 (step_once): Delete.
3537 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3538 (prepare_one_step): New function, based on step_once.
3539 (until_next_command): Remove step_multi reference.
3540 (struct return_value_info): New.
3541 (print_return_value): Rename to ...
3542 (print_return_value_1): ... this. New struct return_value_info
3543 parameter. Adjust.
3544 (print_return_value): Reimplement as wrapper around
3545 print_return_value_1.
3546 (struct finish_command_fsm): New.
3547 (finish_command_continuation): Delete.
3548 (finish_command_fsm_ops): New global.
3549 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3550 functions.
3551 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3552 New.
3553 (finish_command_continuation_free_arg): Delete.
3554 (finish_command_fsm_async_reply_reason): New.
3555 (finish_backward, finish_forward): Change symbol parameter to a
3556 finish_command_fsm. Adjust.
3557 (finish_command): Create a finish_command_fsm. Adjust.
3558 * infrun.c: Include "thread-fsm.h".
3559 (clear_proceed_status_thread): Delete the thread's FSM.
3560 (infrun_thread_stop_requested_callback): Cancel the thread's
3561 execution command.
3562 (clean_up_just_stopped_threads_fsms): New function.
3563 (fetch_inferior_event): Handle the event_thread's should_stop
3564 method saying the command isn't done yet.
3565 (process_event_stop_test): Run breakpoint callbacks here.
3566 (print_stop_event): Rename to ...
3567 (print_stop_location): ... this.
3568 (restore_current_uiout_cleanup): New function.
3569 (print_stop_event): Reimplement.
3570 (normal_stop): No longer notify the end_stepping_range observers
3571 here handle "step N" nor "finish" here. No longer call
3572 print_stop_event here.
3573 * infrun.h (struct return_value_info): Forward declare.
3574 (print_return_value): Declare.
3575 (print_stop_event): Change prototype.
3576 * thread-fsm.c: New file.
3577 * thread-fsm.h: New file.
3578 * thread.c: Include "thread-fsm.h".
3579 (thread_cancel_execution_command): New function.
3580 (clear_thread_inferior_resources): Call it.
3581 * cli/cli-interp.c (cli_on_normal_stop): New function.
3582 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3583 observer.
3584 * mi/mi-interp.c: Include "thread-fsm.h".
3585 (restore_current_uiout_cleanup): Delete.
3586 (mi_on_normal_stop): If the thread has an FSM associated, and it
3587 finished, ask it for the async-reply-reason to print. Always call
3588 print_stop_event here, regardless of the top-level interpreter.
3589 Check bpstat_what to tell whether an asynchronous breakpoint hit
3590 triggered.
3591 * tui/tui-interp.c (tui_on_normal_stop): New function.
3592 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3593
3594 2015-09-09 Pedro Alves <palves@redhat.com>
3595
3596 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3597 check whether the target can async.
3598 * inf-loop.c (inferior_event_handler): Only call target_async if
3599 the target can async.
3600 * infcall.c: Include top.h and interps.h.
3601 (run_inferior_call): For the interpreter to sync mode while
3602 running the infcall. Call wait_sync_command_done instead of
3603 wait_for_inferior plus normal_stop.
3604 * infcmd.c (prepare_execution_command): Don't check whether the
3605 target can async when running in the foreground.
3606 (step_1): Delete synchronous case handling.
3607 (step_once): Always install a continuation, even in sync mode.
3608 (until_next_command, finish_forward): Don't check whether the
3609 target can async.
3610 (attach_command_post_wait, notice_new_inferior): Always install a
3611 continuation, even in sync mode.
3612 * infrun.c (mark_infrun_async_event_handler): New function.
3613 (proceed): In sync mode, mark infrun's event source instead of
3614 waiting for events here.
3615 (fetch_inferior_event): If the target can't async, do a blocking
3616 wait.
3617 (prepare_to_wait): In sync mode, mark infrun's event source.
3618 (infrun_async_inferior_event_handler): No longer bail out if the
3619 target can't async.
3620 * infrun.h (mark_infrun_async_event_handler): New declaration.
3621 * linux-nat.c (linux_nat_wait_1): Remove calls to
3622 set_sigint_trap/clear_sigint_trap.
3623 (linux_nat_terminal_inferior): No longer check whether the target
3624 can async.
3625 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3626 comment.
3627 (mi_execute_command_input_handler): No longer check whether the
3628 target is async. Update and simplify comment.
3629 * target.c (default_target_wait): New function.
3630 * target.h (struct target_ops) <to_wait>: Now defaults to
3631 default_target_wait.
3632 (default_target_wait): Declare.
3633 * top.c (wait_sync_command_done): New function, factored out from
3634 ...
3635 (maybe_wait_sync_command_done): ... this.
3636 * top.h (wait_sync_command_done): Declare.
3637 * target-delegates.c: Regenerate.
3638
3639 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3640
3641 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3642 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3643 Remove include of sys/utsname.h.
3644 (linux_determine_kernel_ptr_bits): Remove.
3645 (linux_determine_kernel_start): New.
3646 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3647 Update check.
3648 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3649 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3650 initialization.
3651 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3652 assignment.
3653
3654 2015-09-07 Pedro Alves <palves@redhat.com>
3655
3656 * guile/guile-internal.h (as_a_scm_t_subr): New.
3657 * guile/guile.c (misc_guile_functions): Use it.
3658 * guile/scm-arch.c (arch_functions): Use it.
3659 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3660 Use it.
3661 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3662 * guile/scm-cmd.c (command_functions): Use it.
3663 * guile/scm-disasm.c (disasm_functions): Use it.
3664 * guile/scm-exception.c (exception_functions)
3665 (private_exception_functions): Use it.
3666 * guile/scm-frame.c (frame_functions)
3667 * guile/scm-gsmob.c (gsmob_functions): Use it.
3668 * guile/scm-iterator.c (iterator_functions): Use it.
3669 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3670 * guile/scm-math.c (math_functions): Use it.
3671 * guile/scm-objfile.c (objfile_functions): Use it.
3672 * guile/scm-param.c (parameter_functions): Use it.
3673 * guile/scm-ports.c (port_functions, private_port_functions): Use
3674 it.
3675 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3676 * guile/scm-progspace.c (pspace_functions): Use it.
3677 * guile/scm-string.c (string_functions): Use it.
3678 * guile/scm-symbol.c (symbol_functions): Use it.
3679 * guile/scm-symtab.c (symtab_functions): Use it.
3680 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3681 it.
3682 * guile/scm-value.c (value_functions): Use it.
3683
3684 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3687 (tui_next_win): Likewise.
3688 (tui_prev_win): Likewise.
3689 (tui_partial_win_by_name): Likewise.
3690 (tui_init_generic_part): Likewise.
3691 (init_content_element): Likewise.
3692 (tui_del_window): Likewise.
3693 (tui_free_window): Likewise.
3694 (tui_del_data_windows): Likewise.
3695 (tui_free_data_content): Likewise.
3696 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3697 * tui/tui-regs.c (tui_show_register_group): Likewise.
3698 * tui/tui-win.c (tui_resize_all): Likewise.
3699 (tui_set_focus): Likewise.
3700 (tui_set_win_height): Likewise.
3701 (make_invisible_and_set_new_height): Likewise.
3702 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3703 * tui/tui-wingeneral.c (make_visible): Likewise.
3704
3705 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3706
3707 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3708
3709 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3712 pointer.
3713 * dbxread.c (dbx_end_psymtab): Likewise.
3714 * gnu-nat.c (gnu_write_inferior): Likewise.
3715 * mdebugread.c (cross_ref): Likewise.
3716 * p-valprint.c (pascal_val_print): Likewise.
3717 * xcoffread.c (xcoff_end_psymtab): Likewise.
3718
3719 2015-09-04 Yao Qi <yao.qi@linaro.org>
3720
3721 * NEWS: Mention the aarch64 multi-arch debugging support.
3722
3723 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3724
3725 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3726 type instead of a TYPE_CODE_INT one for the string_char_type
3727 and the ada_primitive_type_char types.
3728
3729 2015-09-03 Yao Qi <yao.qi@linaro.org>
3730
3731 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3732 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3733 aarch64_linux_region_ok_for_watchpoint.
3734 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3735 New function.
3736 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3737 Declare it.
3738
3739 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3740
3741 * gdb_obstack.h (obstack_strdup): Declare.
3742 * gdb_obstack.c (obstack_strdup): Define.
3743 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3744 * gdbarch.c: Regenerate.
3745 * gdbarch.h: Regenerate.
3746 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3747
3748 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3749
3750 * gdbtypes.c (copy_type_recursive): Update documentation.
3751
3752 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3753
3754 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3755 as zero.
3756
3757 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3758
3759 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3760
3761 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3762
3763 * solib-svr4.c (solib_event_probe_action): Call
3764 get_probe_argument_count using TRY...CATCH.
3765 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3766
3767 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3768
3769 * probe.h (struct probe_ops) <get_probe_argument_count,
3770 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3771 the comment that the function can throw an exception.
3772 (get_probe_argument_count): Likewise.
3773 (evaluate_probe_argument): Likewise.
3774 * stap-probe.c (stap_get_opcode): Call error instead of
3775 internal_error.
3776 (stap_get_expected_argument_type): Likewise. Add argument
3777 'probe'. Improve error message by mentioning the probe's name.
3778 (stap_parse_probe_arguments): Adjust call to
3779 stap_get_expected_argument_type.
3780 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3781 not zero. Call internal_error if GDB requests an argument but the
3782 probe has no arguments.
3783
3784 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3785
3786 * ada-lang.c (ada_resolve_function): Do not ask the user what
3787 match to use when in completion mode.
3788
3789 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3790
3791 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3792 cast of NULL.
3793
3794 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3795
3796 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3797 call_abi using XSHAL_ABI macro.
3798
3799 2015-08-29 Doug Evans <xdje42@gmail.com>
3800
3801 * symtab.h (struct symbol): Tweak comment.
3802
3803 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3804
3805 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3806 gdbarch obstack instead of on the heap. Update commentary
3807 accordingly.
3808
3809 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3810
3811 GDB 7.10 released.
3812
3813 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3814
3815 * NEWS: Update entry about non-8-bits addressable memory.
3816
3817 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3818
3819 Revert:
3820 2014-11-06 Doug Evans <xdje42@gmail.com>
3821 * solib.c (solib_global_lookup): Fetch arch from objfile,
3822 not target_gdbarch.
3823
3824 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3825
3826 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3827 attempt to relocate a TLS variable offset.
3828
3829 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3830
3831 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3832 registered yet. Set inferior_ptid while calling target_read_memory.
3833
3834 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3835
3836 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3837 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3838 * linux-nat.c (check_stopped_by_breakpoint): Use
3839 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3840
3841 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3842
3843 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3844 thread was not yet discovered, use thread_from_lwp instead of
3845 calling thread_db_find_new_threads_1.
3846
3847 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3848
3849 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3850 statements.
3851
3852 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3853
3854 * NEWS: Document support for non-8-bits addressable memory.
3855
3856 2015-08-27 Pedro Alves <palves@redhat.com>
3857
3858 * configure.ac: Remove AC_TYPE_SIGNAL call.
3859 * configure, config.in: Regenerate.
3860
3861 2015-08-27 Pedro Alves <palves@redhat.com>
3862
3863 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3864 * extension-priv.h: Include signal.h.
3865 (struct signal_handler) <handler>: Change type to sighandler_t.
3866 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3867 * inflow.c (sigint_ours, sigquit_ours): Change type to
3868 sighandler_t.
3869 (child_terminal_inferior): Remove casts.
3870 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3871 (osig): Change type to sighandler_t.
3872 * nto-procfs.c (ofunc): Change type to sighandler_t.
3873 (procfs_wait): Remove casts.
3874 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3875 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3876 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3877
3878 2015-08-27 Pedro Alves <palves@redhat.com>
3879
3880 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3881 * gnulib/aclocal.m4: Renegerate.
3882 * gnulib/config.in: Renegerate.
3883 * gnulib/configure: Renegerate.
3884 * gnulib/import/Makefile.am: Update.
3885 * gnulib/import/Makefile.in: Regenerate.
3886 * gnulib/import/m4/gnulib-cache.m4: Update.
3887 * gnulib/import/m4/gnulib-comp.m4: Update.
3888 * gnulib/import/m4/signal_h.m4: New file.
3889 * gnulib/import/signal.in.h: New file.
3890
3891 2015-08-27 Pedro Alves <palves@redhat.com>
3892
3893 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3894 (MIN_MEMORY_PACKET_SIZE): New.
3895 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3896 (get_memory_packet_size): Adjust. No longer limit the max packet
3897 size.
3898 (set_memory_packet_size): Adjust, and remove dead code.
3899 (remote_check_symbols): Use xmalloc and a cleanup instead of
3900 alloca.
3901 (remote_packet_size): No longer cap the packet size.
3902 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3903
3904 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3905
3906 * compile/compile.c (compile_to_object): Mention language in
3907 error message.
3908
3909 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3910
3911 * target.c (target_pre_inferior): Unset attach_flag.
3912
3913 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3914
3915 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3916 * gdbarch.c: Re-generate.
3917
3918 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3919
3920 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3921 function with the XNEW-family equivalent.
3922 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3923 * ada-exp.y (write_ambiguous_var): Likewise.
3924 * ada-lang.c (resolve_subexp): Likewise.
3925 (user_select_syms): Likewise.
3926 (assign_aggregate): Likewise.
3927 (ada_evaluate_subexp): Likewise.
3928 (cache_symbol): Likewise.
3929 * addrmap.c (allocate_key): Likewise.
3930 (addrmap_create_mutable): Likewise.
3931 * aix-thread.c (sync_threadlists): Likewise.
3932 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3933 (alpha_gdbarch_init): Likewise.
3934 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3935 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3936 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3937 * arm-tdep.c (push_stack_item): Likewise.
3938 (arm_displaced_step_copy_insn): Likewise.
3939 (arm_gdbarch_init): Likewise.
3940 (_initialize_arm_tdep): Likewise.
3941 * avr-tdep.c (push_stack_item): Likewise.
3942 * ax-general.c (new_agent_expr): Likewise.
3943 * block.c (block_initialize_namespace): Likewise.
3944 * breakpoint.c (alloc_counted_command_line): Likewise.
3945 (update_dprintf_command_list): Likewise.
3946 (parse_breakpoint_sals): Likewise.
3947 (decode_static_tracepoint_spec): Likewise.
3948 (until_break_command): Likewise.
3949 (clear_command): Likewise.
3950 (update_global_location_list): Likewise.
3951 (get_breakpoint_objfile_data) Likewise.
3952 * btrace.c (ftrace_new_function): Likewise.
3953 (btrace_set_insn_history): Likewise.
3954 (btrace_set_call_history): Likewise.
3955 * buildsym.c (add_symbol_to_list): Likewise.
3956 (record_pending_block): Likewise.
3957 (start_subfile): Likewise.
3958 (start_buildsym_compunit): Likewise.
3959 (push_subfile): Likewise.
3960 (end_symtab_get_static_block): Likewise.
3961 (buildsym_init): Likewise.
3962 * cli/cli-cmds.c (source_command): Likewise.
3963 * cli/cli-decode.c (add_cmd): Likewise.
3964 * cli/cli-script.c (build_command_line): Likewise.
3965 (setup_user_args): Likewise.
3966 (realloc_body_list): Likewise.
3967 (process_next_line): Likewise.
3968 (copy_command_lines): Likewise.
3969 * cli/cli-setshow.c (do_set_command): Likewise.
3970 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3971 * coffread.c (coff_locate_sections): Likewise.
3972 (coff_symtab_read): Likewise.
3973 (coff_read_struct_type): Likewise.
3974 * common/cleanups.c (make_my_cleanup2): Likewise.
3975 * common/common-exceptions.c (throw_it): Likewise.
3976 * common/filestuff.c (make_cleanup_close): Likewise.
3977 * common/format.c (parse_format_string): Likewise.
3978 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3979 * compile/compile-object-load.c (munmap_list_add): Likewise.
3980 (compile_object_load): Likewise.
3981 * compile/compile-object-run.c (compile_object_run): Likewise.
3982 * compile/compile.c (append_args): Likewise.
3983 * corefile.c (specify_exec_file_hook): Likewise.
3984 * cp-support.c (make_symbol_overload_list): Likewise.
3985 * cris-tdep.c (push_stack_item): Likewise.
3986 (cris_gdbarch_init): Likewise.
3987 * ctf.c (ctf_trace_file_writer_new): Likewise.
3988 * dbxread.c (init_header_files): Likewise.
3989 (add_new_header_file): Likewise.
3990 (init_bincl_list): Likewise.
3991 (dbx_end_psymtab): Likewise.
3992 (start_psymtab): Likewise.
3993 (dbx_end_psymtab): Likewise.
3994 * dcache.c (dcache_init): Likewise.
3995 * dictionary.c (dict_create_hashed): Likewise.
3996 (dict_create_hashed_expandable): Likewise.
3997 (dict_create_linear): Likewise.
3998 (dict_create_linear_expandable): Likewise.
3999 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4000 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4001 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4002 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4003 (decode_frame_entry_1): Likewise.
4004 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4005 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4006 * dwarf2read.c (dwarf2_has_info): Likewise.
4007 (create_signatured_type_table_from_index): Likewise.
4008 (dwarf2_read_index): Likewise.
4009 (dw2_get_file_names_reader): Likewise.
4010 (create_all_type_units): Likewise.
4011 (read_cutu_die_from_dwo): Likewise.
4012 (init_tu_and_read_dwo_dies): Likewise.
4013 (init_cutu_and_read_dies): Likewise.
4014 (create_all_comp_units): Likewise.
4015 (queue_comp_unit): Likewise.
4016 (inherit_abstract_dies): Likewise.
4017 (read_call_site_scope): Likewise.
4018 (dwarf2_add_field): Likewise.
4019 (dwarf2_add_typedef): Likewise.
4020 (dwarf2_add_member_fn): Likewise.
4021 (attr_to_dynamic_prop): Likewise.
4022 (abbrev_table_alloc_abbrev): Likewise.
4023 (abbrev_table_read_table): Likewise.
4024 (add_include_dir): Likewise.
4025 (add_file_name): Likewise.
4026 (dwarf_decode_line_header): Likewise.
4027 (dwarf2_const_value_attr): Likewise.
4028 (dwarf_alloc_block): Likewise.
4029 (parse_macro_definition): Likewise.
4030 (set_die_type): Likewise.
4031 (write_psymtabs_to_index): Likewise.
4032 (create_cus_from_index): Likewise.
4033 (dwarf2_create_include_psymtab): Likewise.
4034 (process_psymtab_comp_unit_reader): Likewise.
4035 (build_type_psymtab_dependencies): Likewise.
4036 (read_comp_units_from_section): Likewise.
4037 (compute_compunit_symtab_includes): Likewise.
4038 (create_dwo_unit_in_dwp_v1): Likewise.
4039 (create_dwo_unit_in_dwp_v2): Likewise.
4040 (read_func_scope): Likewise.
4041 (process_structure_scope): Likewise.
4042 (mark_common_block_symbol_computed): Likewise.
4043 (load_partial_dies): Likewise.
4044 (dwarf2_symbol_mark_computed): Likewise.
4045 * elfread.c (elf_symfile_segments): Likewise.
4046 (elf_read_minimal_symbols): Likewise.
4047 * environ.c (make_environ): Likewise.
4048 * eval.c (evaluate_subexp_standard): Likewise.
4049 * event-loop.c (create_file_handler): Likewise.
4050 (create_async_signal_handler): Likewise.
4051 (create_async_event_handler): Likewise.
4052 (create_timer): Likewise.
4053 * exec.c (build_section_table): Likewise.
4054 * fbsd-nat.c (fbsd_remember_child): Likewise.
4055 * fork-child.c (fork_inferior): Likewise.
4056 * frv-tdep.c (new_variant): Likewise.
4057 * gdbarch.sh (gdbarch_alloc): Likewise.
4058 (append_name): Likewise.
4059 * gdbtypes.c (rank_function): Likewise.
4060 (copy_type_recursive): Likewise.
4061 (add_dyn_prop): Likewise.
4062 * gnu-nat.c (make_proc): Likewise.
4063 (make_inf): Likewise.
4064 (gnu_write_inferior): Likewise.
4065 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4066 (build_std_type_info_type): Likewise.
4067 * guile/scm-param.c (compute_enum_list): Likewise.
4068 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4069 * guile/scm-value.c (gdbscm_value_call): Likewise.
4070 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4071 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4072 (read_unwind_info): Likewise.
4073 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4074 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4075 (call_function_by_hand_dummy): Likewise.
4076 * infcmd.c (step_once): Likewise.
4077 (finish_forward): Likewise.
4078 (attach_command): Likewise.
4079 (notice_new_inferior): Likewise.
4080 * inferior.c (add_inferior_silent): Likewise.
4081 * infrun.c (add_displaced_stepping_state): Likewise.
4082 (save_infcall_control_state): Likewise.
4083 (save_inferior_ptid): Likewise.
4084 (_initialize_infrun): Likewise.
4085 * jit.c (bfd_open_from_target_memory): Likewise.
4086 (jit_gdbarch_data_init): Likewise.
4087 * language.c (add_language): Likewise.
4088 * linespec.c (decode_line_2): Likewise.
4089 * linux-nat.c (add_to_pid_list): Likewise.
4090 (add_initial_lwp): Likewise.
4091 * linux-thread-db.c (add_thread_db_info): Likewise.
4092 (record_thread): Likewise.
4093 (info_auto_load_libthread_db): Likewise.
4094 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4096 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4097 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4098 * macrocmd.c (macro_define_command): Likewise.
4099 * macroexp.c (gather_arguments): Likewise.
4100 * macroscope.c (sal_macro_scope): Likewise.
4101 * macrotab.c (new_macro_table): Likewise.
4102 * mdebugread.c (push_parse_stack): Likewise.
4103 (parse_partial_symbols): Likewise.
4104 (parse_symbol): Likewise.
4105 (psymtab_to_symtab_1): Likewise.
4106 (new_block): Likewise.
4107 (new_psymtab): Likewise.
4108 (mdebug_build_psymtabs): Likewise.
4109 (add_pending): Likewise.
4110 (elfmdebug_build_psymtabs): Likewise.
4111 * mep-tdep.c (mep_gdbarch_init): Likewise.
4112 * mi/mi-main.c (mi_execute_command): Likewise.
4113 * mi/mi-parse.c (mi_parse_argv): Likewise.
4114 * minidebug.c (lzma_open): Likewise.
4115 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4116 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4117 * mips-tdep.c (mips_gdbarch_init): Likewise.
4118 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4119 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4120 * mt-tdep.c (mt_registers_info): Likewise.
4121 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4122 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4123 (linux_enable_pt): Likewise.
4124 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4125 (linux_xfer_osdata_processgroups): Likewise.
4126 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4127 * nto-procfs.c (procfs_meminfo): Likewise.
4128 * objc-lang.c (start_msglist): Likewise.
4129 (selectors_info): Likewise.
4130 (classes_info): Likewise.
4131 (find_methods): Likewise.
4132 * objfiles.c (allocate_objfile): Likewise.
4133 (update_section_map): Likewise.
4134 * osabi.c (gdbarch_register_osabi): Likewise.
4135 (gdbarch_register_osabi_sniffer): Likewise.
4136 * parse.c (start_arglist): Likewise.
4137 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4138 (hwdebug_insert_point): Likewise.
4139 * printcmd.c (display_command): Likewise.
4140 (ui_printf): Likewise.
4141 * procfs.c (create_procinfo): Likewise.
4142 (load_syscalls): Likewise.
4143 (proc_get_LDT_entry): Likewise.
4144 (proc_update_threads): Likewise.
4145 * prologue-value.c (make_pv_area): Likewise.
4146 (pv_area_store): Likewise.
4147 * psymtab.c (extend_psymbol_list): Likewise.
4148 (init_psymbol_list): Likewise.
4149 (allocate_psymtab): Likewise.
4150 * python/py-inferior.c (add_thread_object): Likewise.
4151 * python/py-param.c (compute_enum_values): Likewise.
4152 * python/py-value.c (valpy_call): Likewise.
4153 * python/py-varobj.c (py_varobj_iter_next): Likewise.
4154 * python/python.c (ensure_python_env): Likewise.
4155 * record-btrace.c (record_btrace_start_replaying): Likewise.
4156 * record-full.c (record_full_reg_alloc): Likewise.
4157 (record_full_mem_alloc): Likewise.
4158 (record_full_end_alloc): Likewise.
4159 (record_full_core_xfer_partial): Likewise.
4160 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
4161 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
4162 * remote-notif.c (remote_notif_state_allocate): Likewise.
4163 * remote.c (demand_private_info): Likewise.
4164 (remote_notif_stop_alloc_reply): Likewise.
4165 (remote_enable_btrace): Likewise.
4166 * reverse.c (save_bookmark_command): Likewise.
4167 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4168 * rx-tdep.c (rx_gdbarch_init): Likewise.
4169 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4170 * ser-go32.c (dos_get_tty_state): Likewise.
4171 (dos_copy_tty_state): Likewise.
4172 * ser-mingw.c (ser_windows_open): Likewise.
4173 (ser_console_wait_handle): Likewise.
4174 (ser_console_get_tty_state): Likewise.
4175 (make_pipe_state): Likewise.
4176 (net_windows_open): Likewise.
4177 * ser-unix.c (hardwire_get_tty_state): Likewise.
4178 (hardwire_copy_tty_state): Likewise.
4179 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4180 * solib-dsbt.c (dsbt_current_sos): Likewise.
4181 (dsbt_relocate_main_executable): Likewise.
4182 * solib-frv.c (frv_current_sos): Likewise.
4183 (frv_relocate_main_executable): Likewise.
4184 * solib-spu.c (spu_bfd_fopen): Likewise.
4185 * solib-svr4.c (lm_info_read): Likewise.
4186 (svr4_copy_library_list): Likewise.
4187 (svr4_default_sos): Likewise.
4188 * source.c (find_source_lines): Likewise.
4189 (line_info): Likewise.
4190 (add_substitute_path_rule): Likewise.
4191 * spu-linux-nat.c (spu_bfd_open): Likewise.
4192 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4193 * stabsread.c (dbx_lookup_type): Likewise.
4194 (read_type): Likewise.
4195 (read_member_functions): Likewise.
4196 (read_struct_fields): Likewise.
4197 (read_baseclasses): Likewise.
4198 (read_args): Likewise.
4199 (_initialize_stabsread): Likewise.
4200 * stack.c (func_command): Likewise.
4201 * stap-probe.c (handle_stap_probe): Likewise.
4202 * symfile.c (addrs_section_sort): Likewise.
4203 (addr_info_make_relative): Likewise.
4204 (load_section_callback): Likewise.
4205 (add_symbol_file_command): Likewise.
4206 (init_filename_language_table): Likewise.
4207 * symtab.c (create_filename_seen_cache): Likewise.
4208 (sort_search_symbols_remove_dups): Likewise.
4209 (search_symbols): Likewise.
4210 * target.c (make_cleanup_restore_target_terminal): Likewise.
4211 * thread.c (new_thread): Likewise.
4212 (enable_thread_stack_temporaries): Likewise.
4213 (make_cleanup_restore_current_thread): Likewise.
4214 (thread_apply_all_command): Likewise.
4215 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4216 * top.c (gdb_readline_wrapper): Likewise.
4217 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4218 * tracepoint.c (trace_find_line_command): Likewise.
4219 (all_tracepoint_actions_and_cleanup): Likewise.
4220 (make_cleanup_restore_current_traceframe): Likewise.
4221 (get_uploaded_tp): Likewise.
4222 (get_uploaded_tsv): Likewise.
4223 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4224 (tui_alloc_win_info): Likewise.
4225 (tui_alloc_content): Likewise.
4226 (tui_add_content_elements): Likewise.
4227 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4228 (tui_set_disassem_content): Likewise.
4229 * ui-file.c (ui_file_new): Likewise.
4230 (stdio_file_new): Likewise.
4231 (tee_file_new): Likewise.
4232 * utils.c (make_cleanup_restore_integer): Likewise.
4233 (add_internal_problem_command): Likewise.
4234 * v850-tdep.c (v850_gdbarch_init): Likewise.
4235 * valops.c (find_oload_champ): Likewise.
4236 * value.c (allocate_value_lazy): Likewise.
4237 (record_latest_value): Likewise.
4238 (create_internalvar): Likewise.
4239 * varobj.c (install_variable): Likewise.
4240 (new_variable): Likewise.
4241 (new_root_variable): Likewise.
4242 (cppush): Likewise.
4243 (_initialize_varobj): Likewise.
4244 * windows-nat.c (windows_make_so): Likewise.
4245 * x86-nat.c (x86_add_process): Likewise.
4246 * xcoffread.c (arrange_linetable): Likewise.
4247 (allocate_include_entry): Likewise.
4248 (process_linenos): Likewise.
4249 (SYMBOL_DUP): Likewise.
4250 (xcoff_start_psymtab): Likewise.
4251 (xcoff_end_psymtab): Likewise.
4252 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4253 * xtensa-tdep.c (xtensa_register_type): Likewise.
4254 * gdbarch.c: Regenerate.
4255 * gdbarch.h: Regenerate.
4256
4257 2015-08-25 Don Breazeal <donb@codesourcery.com>
4258
4259 * infrun.c (follow_exec): Re-order operations for
4260 handling follow-exec-mode "new".
4261 (handle_inferior_event_1): Assign ecs->event_thread
4262 to the current thread.
4263 * remote.c (get_remote_arch_state): Add an assertion.
4264
4265 2015-08-26 Pedro Alves <palves@redhat.com>
4266
4267 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4268
4269 2015-08-25 Pedro Alves <palves@redhat.com>
4270
4271 PR gdb/18804
4272 * defs.h (maybe_quit): Declare.
4273 (QUIT): Now calls maybe_quit.
4274 * event-loop.c (clear_async_signal_handler)
4275 (async_signal_handler_is_marked): New functions.
4276 * event-loop.h (async_signal_handler_is_marked)
4277 (clear_async_signal_handler): New declarations.
4278 * remote.c (remote_check_pending_interrupt): New function.
4279 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4280 longer check whether the target is async. If waiting for a stop
4281 reply, and a Ctrl-C as been sent to the target, offer to
4282 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4283 Otherwise do not disconnect and throw a quit.
4284 (_initialize_remote): Install remote_check_pending_interrupt as
4285 to_check_pending_interrupt.
4286 * target.c (target_check_pending_interrupt): New function.
4287 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4288 field.
4289 (target_check_pending_interrupt): New declaration.
4290 * utils.c (maybe_quit): New function.
4291 * target-delegates.c: Regenerate.
4292
4293 2015-08-25 Yao Qi <yao.qi@linaro.org>
4294
4295 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4296 Rename local variable pid to tid, and get lwpid of lwp. Update
4297 debug output.
4298
4299 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4300
4301 * ada-lang.c (ada_read_var_value): Add a var_block argument
4302 and pass it to default_read_var_value.
4303 * block.c (block_static_link): New accessor.
4304 * block.h (block_static_link): Declare it.
4305 * buildsym.c (finish_block_internal): Add a static_link
4306 argument. If there is a static link, associate it to the new
4307 block.
4308 (finish_block): Add a static link argument and pass it to
4309 finish_block_internal.
4310 (end_symtab_get_static_block): Update calls to finish_block and
4311 to finish_block_internal.
4312 (end_symtab_with_blockvector): Update call to
4313 finish_block_internal.
4314 * buildsym.h: Forward-declare struct dynamic_prop.
4315 (struct context_stack): Add a static_link field.
4316 (finish_block): Add a static link argument.
4317 * c-exp.y: Remove an obsolete comment (evaluation of variables
4318 already start from the selected frame, and now they climb *up*
4319 the call stack) and propagate the block information to the
4320 produced expression.
4321 * d-exp.y: Likewise.
4322 * f-exp.y: Likewise.
4323 * go-exp.y: Likewise.
4324 * jv-exp.y: Likewise.
4325 * m2-exp.y: Likewise.
4326 * p-exp.y: Likewise.
4327 * coffread.c (coff_symtab_read): Update calls to finish_block.
4328 * dbxread.c (process_one_symbol): Likewise.
4329 * xcoffread.c (read_xcoff_symtab): Likewise.
4330 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4331 "sym" parameter to struct block_symbol, update its uses and pass
4332 its block to calls to read_var_value.
4333 (convert_symbol_sym): Update the calls to convert_one_symbol.
4334 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4335 call to read_var_value.
4336 * dwarf2loc.c (block_op_get_frame_base): New.
4337 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4338 get_frame_base method.
4339 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4340 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4341 instead of the selected frame in order to evaluate the
4342 expression.
4343 (dwarf2_evaluate_property): Add a frame argument. Update call
4344 to dwarf2_locexpr_baton_eval to provide a frame in available and
4345 to handle the absence of address stack.
4346 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4347 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4348 declaration.
4349 (read_func_scope): Record any available static link description.
4350 Update call to finish_block.
4351 (read_lexical_block_scope): Update call to finish_block.
4352 * findvar.c (follow_static_link): New.
4353 (get_hosting_frame): New.
4354 (default_read_var_value): Add a var_block argument. Use
4355 get_hosting_frame to handle non-local references.
4356 (read_var_value): Add a var_block argument and pass it to the
4357 LA_READ_VAR_VALUE method.
4358 * gdbtypes.c (resolve_dynamic_range): Update calls to
4359 dwarf2_evaluate_property.
4360 (resolve_dynamic_type_internal): Likewise.
4361 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4362 read_var_value, passing it the block coming from symbol lookup.
4363 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4364 read_var_value (TODO).
4365 * infcmd.c (finish_command_continuation): Update call to
4366 read_var_value, passing it the block coming from symbol lookup.
4367 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4368 * language.h (struct language_defn): Add a var_block argument to
4369 the LA_READ_VAR_VALUE method.
4370 * objfiles.c (struct static_link_htab_entry): New.
4371 (static_link_htab_entry_hash): New.
4372 (static_link_htab_entry_eq): New.
4373 (objfile_register_static_link): New.
4374 (objfile_lookup_static_link): New.
4375 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4376 * objfiles.h: Include hashtab.h.
4377 (struct objfile): Add a static_links field.
4378 (objfile_register_static_link): New.
4379 (objfile_lookup_static_link): New.
4380 * printcmd.c (print_variable_and_value): Update call to
4381 read_var_value.
4382 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4383 * python/py-frame.c (frapy_read_var): Update call to
4384 read_var_value, passing it the block coming from symbol lookup.
4385 * python/py-framefilter.c (extract_sym): Add a sym_block
4386 parameter and set the pointed value to NULL (TODO).
4387 (enumerate_args): Update call to extract_sym.
4388 (enumerate_locals): Update calls to extract_sym and to
4389 read_var_value.
4390 * python/py-symbol.c (sympy_value): Update call to
4391 read_var_value (TODO).
4392 * stack.c (read_frame_local): Update call to read_var_value.
4393 (read_frame_arg): Likewise.
4394 (return_command): Likewise.
4395 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4396 method.
4397 (struct symbol): Add a block field.
4398 (SYMBOL_BLOCK): New accessor.
4399 * valops.c (value_of_variable): Remove frame/block handling and
4400 pass the block argument to read_var_value, which does this job
4401 now.
4402 (value_struct_elt_for_reference): Update calls to
4403 read_var_value.
4404 (value_of_this): Pass the block found to read_var_value.
4405 * value.h (read_var_value): Add a var_block argument.
4406 (default_read_var_value): Likewise.
4407
4408 2015-08-25 Yao Qi <yao.qi@linaro.org>
4409
4410 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4411 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4412 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4413
4414 2015-08-25 Yao Qi <yao.qi@linaro.org>
4415
4416 * Makefile.in (aarch64-liunx.o): New rule.
4417 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4418 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4419 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4420 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4421 extern.
4422 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4423 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4424 * nat/aarch64-linux.c: New file.
4425 * nat/aarch64-linux.h: New file.
4426
4427 2015-08-25 Yao Qi <yao.qi@linaro.org>
4428
4429 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4430 lwp_arch_private_info and ptid_of_lwp.
4431
4432 2015-08-25 Yao Qi <yao.qi@linaro.org>
4433
4434 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4435 Move it to nat/aarch64-linux-hw-point.c.
4436 (debug_reg_change_callback): Likewise.
4437 (aarch64_notify_debug_reg_change): :Likewise.
4438 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4439 (aarch64_dr_update_callback_param): New.
4440 (debug_reg_change_callback): New function.
4441 (aarch64_notify_debug_reg_change): Likewise.
4442 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4443 Remove the declaration.
4444
4445 2015-08-25 Yao Qi <yao.qi@linaro.org>
4446
4447 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4448 Call current_lwp_ptid.
4449
4450 2015-08-25 Yao Qi <yao.qi@linaro.org>
4451
4452 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4453 debug_printf.
4454
4455 2015-08-25 Yao Qi <yao.qi@linaro.org>
4456
4457 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4458 ptid_get_pid rather than ptid_get_lwp.
4459
4460 2015-08-24 Pedro Alves <palves@redhat.com>
4461
4462 * NEWS (New commands): Mention set/show remote
4463 multiprocess-extensions-packet.
4464 * remote.c (remote_query_supported): Only tell the server to use
4465 the multiprocess extensions if the user hasn't force-disabled them
4466 with "set remote multiprocess-extensions-packet off".
4467
4468 2015-08-24 Pedro Alves <palves@redhat.com>
4469
4470 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4471 1029a8112290f6eee9d7878a391c49db42c999bd.
4472 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4473 Regenerate.
4474 * gnulib/import/Makefile.am: Update.
4475 * gnulib/import/Makefile.in: Update.
4476 * gnulib/import/alloca.in.h: Update.
4477 * gnulib/import/basename-lgpl.c: Update.
4478 * gnulib/import/canonicalize-lgpl.c: Update.
4479 * gnulib/import/config.charset: Update.
4480 * gnulib/import/dirent.in.h: Update.
4481 * gnulib/import/dirfd.c: Update.
4482 * gnulib/import/dirname-lgpl.c: Update.
4483 * gnulib/import/dirname.h: Update.
4484 * gnulib/import/dosname.h: Update.
4485 * gnulib/import/errno.in.h: Update.
4486 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4487 * gnulib/import/extra/snippet/c++defs.h: Update.
4488 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4489 * gnulib/import/extra/update-copyright: Update.
4490 * gnulib/import/float+.h: Update.
4491 * gnulib/import/float.c: Update.
4492 * gnulib/import/float.in.h: Update.
4493 * gnulib/import/fnmatch.c: Update.
4494 * gnulib/import/fnmatch.in.h: Update.
4495 * gnulib/import/fnmatch_loop.c: Update.
4496 * gnulib/import/fpucw.h: Update.
4497 * gnulib/import/frexp.c: Update.
4498 * gnulib/import/frexpl.c: Update.
4499 * gnulib/import/gettimeofday.c: Update.
4500 * gnulib/import/inttypes.in.h: Update.
4501 * gnulib/import/isnan.c: Update.
4502 * gnulib/import/isnand-nolibm.h: Update.
4503 * gnulib/import/isnand.c: Update.
4504 * gnulib/import/isnanl-nolibm.h: Update.
4505 * gnulib/import/isnanl.c: Update.
4506 * gnulib/import/itold.c: Update.
4507 * gnulib/import/localcharset.c: Update.
4508 * gnulib/import/localcharset.h: Update.
4509 * gnulib/import/lstat.c: Update.
4510 * gnulib/import/m4/00gnulib.m4: Update.
4511 * gnulib/import/m4/absolute-header.m4: Update.
4512 * gnulib/import/m4/alloca.m4: Update.
4513 * gnulib/import/m4/canonicalize.m4: Update.
4514 * gnulib/import/m4/codeset.m4: Update.
4515 * gnulib/import/m4/configmake.m4: Update.
4516 * gnulib/import/m4/dirent_h.m4: Update.
4517 * gnulib/import/m4/dirfd.m4: Update.
4518 * gnulib/import/m4/dirname.m4: Update.
4519 * gnulib/import/m4/double-slash-root.m4: Update.
4520 * gnulib/import/m4/eealloc.m4: Update.
4521 * gnulib/import/m4/errno_h.m4: Update.
4522 * gnulib/import/m4/exponentd.m4: Update.
4523 * gnulib/import/m4/exponentl.m4: Update.
4524 * gnulib/import/m4/extensions.m4: Update.
4525 * gnulib/import/m4/extern-inline.m4: Update.
4526 * gnulib/import/m4/fcntl-o.m4: Update.
4527 * gnulib/import/m4/float_h.m4: Update.
4528 * gnulib/import/m4/fnmatch.m4: Update.
4529 * gnulib/import/m4/fpieee.m4: Update.
4530 * gnulib/import/m4/frexp.m4: Update.
4531 * gnulib/import/m4/frexpl.m4: Update.
4532 * gnulib/import/m4/gettimeofday.m4: Update.
4533 * gnulib/import/m4/glibc21.m4: Update.
4534 * gnulib/import/m4/gnulib-cache.m4: Update.
4535 * gnulib/import/m4/gnulib-common.m4: Update.
4536 * gnulib/import/m4/gnulib-comp.m4: Update.
4537 * gnulib/import/m4/gnulib-tool.m4: Update.
4538 * gnulib/import/m4/include_next.m4: Update.
4539 * gnulib/import/m4/inttypes-pri.m4: Update.
4540 * gnulib/import/m4/inttypes.m4: Update.
4541 * gnulib/import/m4/isnand.m4: Update.
4542 * gnulib/import/m4/isnanl.m4: Update.
4543 * gnulib/import/m4/largefile.m4: Update.
4544 * gnulib/import/m4/localcharset.m4: Update.
4545 * gnulib/import/m4/locale-fr.m4: Update.
4546 * gnulib/import/m4/locale-ja.m4: Update.
4547 * gnulib/import/m4/locale-zh.m4: Update.
4548 * gnulib/import/m4/longlong.m4: Update.
4549 * gnulib/import/m4/lstat.m4: Update.
4550 * gnulib/import/m4/malloc.m4: Update.
4551 * gnulib/import/m4/malloca.m4: Update.
4552 * gnulib/import/m4/math_h.m4: Update.
4553 * gnulib/import/m4/mbrtowc.m4: Update.
4554 * gnulib/import/m4/mbsinit.m4: Update.
4555 * gnulib/import/m4/mbsrtowcs.m4: Update.
4556 * gnulib/import/m4/mbstate_t.m4: Update.
4557 * gnulib/import/m4/memchr.m4: Update.
4558 * gnulib/import/m4/memmem.m4: Update.
4559 * gnulib/import/m4/mmap-anon.m4: Update.
4560 * gnulib/import/m4/multiarch.m4: Update.
4561 * gnulib/import/m4/nocrash.m4: Update.
4562 * gnulib/import/m4/off_t.m4: Update.
4563 * gnulib/import/m4/pathmax.m4: Update.
4564 * gnulib/import/m4/readlink.m4: Update.
4565 * gnulib/import/m4/rename.m4: Update.
4566 * gnulib/import/m4/rmdir.m4: Update.
4567 * gnulib/import/m4/ssize_t.m4: Update.
4568 * gnulib/import/m4/stat.m4: Update.
4569 * gnulib/import/m4/stdbool.m4: Update.
4570 * gnulib/import/m4/stddef_h.m4: Update.
4571 * gnulib/import/m4/stdint.m4: Update.
4572 * gnulib/import/m4/stdio_h.m4: Update.
4573 * gnulib/import/m4/stdlib_h.m4: Update.
4574 * gnulib/import/m4/string_h.m4: Update.
4575 * gnulib/import/m4/strstr.m4: Update.
4576 * gnulib/import/m4/strtok_r.m4: Update.
4577 * gnulib/import/m4/sys_socket_h.m4: Update.
4578 * gnulib/import/m4/sys_stat_h.m4: Update.
4579 * gnulib/import/m4/sys_time_h.m4: Update.
4580 * gnulib/import/m4/sys_types_h.m4: Update.
4581 * gnulib/import/m4/time_h.m4: Update.
4582 * gnulib/import/m4/unistd_h.m4: Update.
4583 * gnulib/import/m4/warn-on-use.m4: Update.
4584 * gnulib/import/m4/wchar_h.m4: Update.
4585 * gnulib/import/m4/wchar_t.m4: Update.
4586 * gnulib/import/m4/wctype_h.m4: Update.
4587 * gnulib/import/m4/wint_t.m4: Update.
4588 * gnulib/import/malloc.c: Update.
4589 * gnulib/import/malloca.c: Update.
4590 * gnulib/import/malloca.h: Update.
4591 * gnulib/import/math.in.h: Update.
4592 * gnulib/import/mbrtowc.c: Update.
4593 * gnulib/import/mbsinit.c: Update.
4594 * gnulib/import/mbsrtowcs-impl.h: Update.
4595 * gnulib/import/mbsrtowcs-state.c: Update.
4596 * gnulib/import/mbsrtowcs.c: Update.
4597 * gnulib/import/memchr.c: Update.
4598 * gnulib/import/memmem.c: Update.
4599 * gnulib/import/pathmax.h: Update.
4600 * gnulib/import/readlink.c: Update.
4601 * gnulib/import/ref-add.sin: Update.
4602 * gnulib/import/ref-del.sin: Update.
4603 * gnulib/import/rename.c: Update.
4604 * gnulib/import/rmdir.c: Update.
4605 * gnulib/import/same-inode.h: Update.
4606 * gnulib/import/stat.c: Update.
4607 * gnulib/import/stdbool.in.h: Update.
4608 * gnulib/import/stddef.in.h: Update.
4609 * gnulib/import/stdint.in.h: Update.
4610 * gnulib/import/stdio.c: Update.
4611 * gnulib/import/stdio.in.h: Update.
4612 * gnulib/import/stdlib.in.h: Update.
4613 * gnulib/import/str-two-way.h: Update.
4614 * gnulib/import/streq.h: Update.
4615 * gnulib/import/string.in.h: Update.
4616 * gnulib/import/stripslash.c: Update.
4617 * gnulib/import/strnlen1.c: Update.
4618 * gnulib/import/strnlen1.h: Update.
4619 * gnulib/import/strstr.c: Update.
4620 * gnulib/import/strtok_r.c: Update.
4621 * gnulib/import/sys_stat.in.h: Update.
4622 * gnulib/import/sys_time.in.h: Update.
4623 * gnulib/import/sys_types.in.h: Update.
4624 * gnulib/import/time.in.h: Update.
4625 * gnulib/import/unistd.in.h: Update.
4626 * gnulib/import/verify.h: Update.
4627 * gnulib/import/wchar.in.h: Update.
4628 * gnulib/import/wctype.in.h: Update.
4629 * gnulib/import/gettimeofday.c: New file.
4630 * gnulib/import/m4/absolute-header.m4: New file.
4631 * gnulib/import/m4/gettimeofday.m4: New file.
4632 * gnulib/import/m4/sys_socket_h.m4: New file.
4633 * gnulib/import/m4/sys_time_h.m4: New file.
4634 * gnulib/import/stdio.c: Delete file.
4635 * gnulib/import/sys_time.in.h: New file.
4636
4637 2015-08-24 Pedro Alves <palves@redhat.com>
4638
4639 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4640 * common/gdb_sys_time.h: New file.
4641 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4642 * gdb_select.h: Likewise.
4643 * gdb_usleep.c: Likewise.
4644 * maint.c: Likewise.
4645 * mi/mi-main.c: Likewise.
4646 * mi/mi-parse.h: Likewise.
4647 * remote-fileio.c: Likewise.
4648 * remote-m32r-sdi.c: Likewise.
4649 * remote.c: Likewise.
4650 * ser-base.c: Likewise.
4651 * ser-pipe.c: Likewise.
4652 * ser-tcp.c: Likewise.
4653 * ser-unix.c: Likewise.
4654 * symfile.c: Likewise.
4655 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4656 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4657 * utils.c: Likewise.
4658
4659 2015-08-24 Pedro Alves <palves@redhat.com>
4660
4661 * NEWS: Mention removed support for the various ROM monitors.
4662 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4663 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4664 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4665 gdb_target_obs.
4666 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4667 gdb_target_obs.
4668 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4669 dsrec.o from gdb_target_obs.
4670 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4671 from gdb_target_obs.
4672 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4673 gdb_target_obs.
4674 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4675 dink32-rom.o from gdb_target_obs.
4676 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4677 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4678 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4679 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4680
4681 2015-08-21 Pedro Alves <palves@redhat.com>
4682
4683 * frame.c (null_frame_id): Explicitly zero-initialize.
4684
4685 2015-08-21 Tom Tromey <tromey@redhat.com>
4686
4687 * dwarf2read.c (struct dwarf2_section_info): Rename field
4688 'asection' to 'section'.
4689 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4690 (dwarf2_locate_sections, dwarf2_locate_sections)
4691 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4692 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4693 (dwarf2_locate_v2_dwp_sections): Adjust.
4694
4695 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4696
4697 * top.h (gdb_in_secondary_prompt_p): Declare.
4698 * top.c (gdb_secondary_prompt_depth): Define.
4699 (gdb_in_secondary_prompt_p): Define.
4700 (gdb_readline_wrapper_cleanup): Decrement
4701 gdb_secondary_prompt_depth.
4702 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4703 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4704 are in a secondary prompt.
4705
4706 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4707
4708 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4709 emit the newline.
4710
4711 2015-08-21 Gary Benson <gbenson@redhat.com>
4712
4713 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4714
4715 2015-08-21 Gary Benson <gbenson@redhat.com>
4716
4717 * target.h (struct target_ops) <to_fileio_open>: New argument
4718 warn_if_slow. Update comment. All implementations updated.
4719 (target_fileio_open_warn_if_slow): New declaration.
4720 * target.c (target_fileio_open): Renamed as...
4721 (target_fileio_open_1): ...this. New argument warn_if_slow.
4722 Pass warn_if_slow to implementation. Update debug printing.
4723 (target_fileio_open): New function.
4724 (target_fileio_open_warn_if_slow): Likewise.
4725 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4726 target_fileio_open_warn_if_slow.
4727
4728 2015-08-21 Gary Benson <gbenson@redhat.com>
4729
4730 * nat/linux-namespaces.c (linux_mntns_access_fs):
4731 Do not overwrite old_chain.
4732
4733 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4734
4735 * arch/xtensa.h: New file.
4736 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4737 (ps_get_thread_area): New function.
4738 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4739 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4740 * xtensa-tdep.c (osabi.h): New #include.
4741 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4742 xtensa-specific hooks.
4743 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4744 member and move the structure to arch/xtensa.h.
4745
4746 2015-08-21 Pedro Alves <palves@redhat.com>
4747
4748 * remote.c (struct readahead_cache): New.
4749 (struct remote_state) <readahead_cache>: New field.
4750 (remote_open_1): Invalidate the cache.
4751 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4752 functions.
4753 (remote_hostio_pwrite): Invalidate the readahead cache.
4754 (remote_hostio_pread): Rename to ...
4755 (remote_hostio_pread_vFile): ... this.
4756 (remote_hostio_pread_from_cache): New function.
4757 (remote_hostio_pread): Reimplement.
4758 (remote_hostio_close): Invalidate the readahead cache.
4759
4760 2015-08-21 Marcin Cieƛlak <saper@saper.info> (tiny patch)
4761
4762 PR build/18843
4763 * procfs.c: Include "filestuff.h".
4764
4765 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4766
4767 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4768 curch.
4769 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4770 cur_line or curch, instead call wmove().
4771 (init_win_info) [CMD_WIN]: Likewise.
4772 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4773 instead call getcury().
4774 (tui_redisplay_readline): Don't set cur_line or curch.
4775 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4776 getcury().
4777 (tui_cont_sig): Remove call to wmove.
4778 (tui_getc): Don't read cur_line or curch, instead call getcury()
4779 or getyx(). Don't set curch.
4780 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4781 set cur_line or curch. Always move cursor to (0,0).
4782
4783 2015-08-20 Pedro Alves <palves@redhat.com>
4784
4785 * infrun.c (print_target_wait_results): Make extern.
4786 * infrun.h (print_target_wait_results): Declare.
4787 * remote.c (set_stop_requested_callback): Delete.
4788 (process_initial_stop_replies): New function.
4789 (remote_start_remote): Use it.
4790 (stop_reply_queue_length): New function.
4791
4792 2015-08-20 Pedro Alves <palves@redhat.com>
4793
4794 * dwarf2read.c (process_full_comp_unit): To tell whether
4795 start_subfile managed to deduce a language, test for
4796 language_unknown instead of language_c.
4797
4798 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4799
4800 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4801 matches attributes.
4802
4803 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4804
4805 * dwarf2read.c (dwarf2_string_attr): New function.
4806 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4807 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4808 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4809 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4810 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4811
4812 2015-08-18 Doug Evans <dje@google.com>
4813 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4814
4815 PR mi/18833
4816 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4817 if MI-like.
4818 * mi/mi-out.c: #include "vec.h".
4819 (ui_filep): New type.
4820 (DEV_VEC_P (ui_filep)): New type.
4821 (struct ui_out_data) <buffer, original_buffer>: Delete.
4822 (struct ui_out_data) <streams>: New member.
4823 (mi_ui_out_impl): Add data_destroy field.
4824 (mi_field_string, mi_field_fmt): Update.
4825 (mi_flush, mi_redirect, field_separator): Update.
4826 (mi_open, mi_close): Update.
4827 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4828 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4829 (mi_out_new): Call mi_out_data_ctor.
4830
4831 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4832
4833 * remote.c (strprefix): New.
4834 (remote_parse_stop_reply): Use strprefix instead of strncmp
4835 to ensure exact match of keyword.
4836
4837 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4838
4839 * gdb_bfd.c (debug_bfd_cache): New variable.
4840 (show_bfd_cache_debug): New function.
4841 (gdb_bfd_open): Add debug logging.
4842 (gdb_bfd_ref): Likewise.
4843 (gdb_bfd_unref): Likewise.
4844 (_initialize_gdb_bfd): Add new set/show command.
4845 * NEWS: Mention new command.
4846
4847 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4848
4849 * gdb_bfd.c (bfd_sharing): New variable.
4850 (show_bfd_sharing): New function.
4851 (gdb_bfd_open): Check bfd_sharing variable.
4852 (_initialize_gdb_bfd): Add new set/show command.
4853 * NEWS: Mention new command.
4854
4855 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4856
4857 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4858 field.
4859 (struct gdb_bfd_cache_search): Likewise.
4860 (eq_bfd): Compare the size, inode, and device id fields.
4861 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4862 (gdb_bfd_ref): Likewise.
4863 (gdb_bfd_unref): Likewise.
4864
4865 2015-08-18 Pedro Alves <palves@redhat.com>
4866
4867 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4868 target implements to_always_non_stop_p, call it.
4869 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4870 (x86_linux_create_target): Install it as to_always_non_stop_p
4871 method.
4872
4873 2015-08-17 Doug Evans <dje@google.com>
4874
4875 * ui-out.c (default_ui_out_impl): Add comment.
4876
4877 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4878
4879 * d-exp.y (type_aggregate_p): New function.
4880 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4881 (classify_inner_name): Likewise.
4882 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4883
4884 2015-08-15 Doug Evans <xdje42@gmail.com>
4885
4886 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4887 updated.
4888 (add_psymbol_to_list): Ditto.
4889
4890 2015-08-15 Doug Evans <xdje42@gmail.com>
4891
4892 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4893 updated. Call end_psymtab_common.
4894 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4895 end_psymtab_common.
4896 (build_type_psymtabs_reader): Ditto.
4897 * psympriv.h (sort_pst_symbols): Delete.
4898 (end_psymtab_common): Declare.
4899 * psymtab.c (sort_pst_symbols): Make static.
4900 (end_psymtab_common): New function.
4901 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4902
4903 2015-08-15 Doug Evans <xdje42@gmail.com>
4904
4905 * defs.h (LANGUAGE_BITS): Define.
4906 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4907 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4908 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4909 (minimal_symbol_type): Add nr_minsym_types.
4910 (MINSYM_TYPE_BITS): Define.
4911 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4912 (domain_enum_tag): Add NR_DOMAINS.
4913 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4914 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4915
4916 2015-08-15 Doug Evans <xdje42@gmail.com>
4917
4918 * objfiles.h: Whitespace cleanup.
4919 * psympriv.h: Whitespace cleanup.
4920 * psymtab.c: Whitespace/coding convention cleanup.
4921
4922 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4923
4924 * inferior.c (detach_inferior_command): Don't call
4925 any_thread_of_process when pid is 0.
4926 (kill_inferior_command): Likewise.
4927
4928 2015-08-14 Doug Evans <xdje42@gmail.com>
4929
4930 PR gdb/11833
4931 * NEWS: Document new /s modifier for the disassemble command.
4932 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4933 (_initialize_cli_cmds): Update online docs of disassemble command.
4934 * disasm.c: #include "source.h".
4935 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4936 All uses updated.
4937 (dis_line_entry): New struct.
4938 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4939 (allocate_dis_line_table): New functions.
4940 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4941 (dump_insns): New arg end_pc. All callers updated.
4942 (do_mixed_source_and_assembly_deprecated): Renamed from
4943 do_mixed_source_and_assembly. All callers updated.
4944 (do_mixed_source_and_assembly): New function.
4945 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4946 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4947 DISASSEMBLY_SOURCE. All uses updated.
4948 (DISASSEMBLY_SOURCE): New macro.
4949 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4950
4951 2015-08-14 Keith Seitz <keiths@redhat.com>
4952
4953 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4954 `typename' to `type_name' to avoid C++ reserved word.
4955
4956 2015-08-14 Keith Seitz <keiths@redhat.com>
4957
4958 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4959 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4960 silence ARI errors.
4961
4962 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4963
4964 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4965 xstrprintf instead of malloc and sprintf.
4966 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4967 (lex_one_token): Likewise.
4968
4969 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4970
4971 * solib-svr4.c (read_program_header): Add base_addr argument to
4972 report the runtime address of the segment.
4973 (find_program_interpreter): Update read_program_header call to pass
4974 a NULL pointer for the new argument.
4975 (scan_dyntag): Add ptr_addr argument to report the runtime address
4976 of the tag payload.
4977 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4978 read_program_header to get the base address of the dynamic segment.
4979 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4980 read_program_header.
4981 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4982
4983 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4984
4985 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4986
4987 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4988
4989 * d-exp.y (%union): Add voidval.
4990 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4991 name in the lexing stage.
4992 (PostfixExpression): Move symbol completion handling in grammar here
4993 from PrimaryExpression.
4994 (PrimaryExpression): Move routines to handle resolving identifier
4995 tokens in the grammar here from push_expression_name.
4996 (IdentifierExp): Remove the handling of alternating '.' and identifier
4997 tokens.
4998 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4999 (BasicType): Remove C-style typename rules.
5000 (d_type_from_name, d_module_from_name, push_variable)
5001 (push_fieldnames, push_type_name, push_module_name)
5002 (push_expression_name): Remove.
5003 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5004 (token_and_value): New type.
5005 (token_fifo, popping, name_obstack): New globals.
5006 (classify_name): New function.
5007 (classify_inner_name): Likewise.
5008 (yylex): Likewise.
5009 (d_parse): Initialize token_fifo, popping and name_obstack.
5010
5011 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5012
5013 * Makefile.in (SFILES): Add d-namespace.c.
5014 (COMMON_OBS): Add d-namespace.o.
5015 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5016 la_lookup_symbol_nonlocal callback function pointer.
5017 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5018 (d_lookup_nested_symbol): New declaration.
5019 * d-namespace.c: New file.
5020
5021 2015-08-13 Pedro Alves <palves@redhat.com>
5022
5023 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5024 cleanup after the decref cleanup, not before.
5025
5026 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5027
5028 * ada-lang.c: Include namespace.h
5029 (aux_add_nonlocal_symbols): Fix a function name in comment.
5030 (ada_add_block_renamings): New.
5031 (add_nonlocal_symbols): Add global renamings handling.
5032 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5033 to...
5034 (ada_add_all_symbols): ... this new function.
5035 (ada_add_block_symbols): Try to match the input name against the
5036 "using directives list", perform a recursive symbol lookup on
5037 the matched declarations.
5038 * block.h (struct block): Move the_namespace to top-level as
5039 namespace_info. Remove the language_specific field.
5040 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5041 * buildsym.h (using_directives): Rename into...
5042 (local_using_directives): ... this.
5043 (global_using_directives): New.
5044 (struct context_stack): Rename the using_directives field into
5045 local_using_directives.
5046 * buildsym.c (finish_block_internal): Deal with the proper
5047 using directives repository (local or global).
5048 (prepare_for_building): Reset local_using_directives. Assert
5049 that there is no pending global using directive.
5050 (reset_symtab_globals): Reset global_using_directives and
5051 local_using_directives.
5052 (end_symtab_get_static_block): Don't ignore symtabs that have
5053 only using directives.
5054 (push_context): Update references to local_using_directives.
5055 (buildsym_init): Do not reset using_directives.
5056 * cp-support.c: Include namespace.h.
5057 * cp-support.h (struct using_direct): Move to namespace.h.
5058 (cp_add_using_directives): Move to namespace.h.
5059 * cp-namespace.c: Include namespace.h
5060 (cp_add_using_directive): Move to namespace.c, rename it to
5061 add_using_directive, add a "using_directives" argument and use
5062 it as the pending using directives repository. All callers
5063 updated.
5064 * dwarf2read.c (using_directives): New.
5065 (read_import_statement): Call using_directives.
5066 (read_func_scope): Update references to local_using_directives.
5067 (read_lexical_block_scope): Likewise.
5068 (read_namespace): Update the heading comment, call
5069 using_directives.
5070 * namespace.h: New file.
5071 * namespace.c: New file.
5072 * Makefile.in (SFILES): Add namespace.c.
5073 (COMMON_OBS): Add namespace.o
5074
5075 2015-08-12 Joel Brobecker <brobecker@adacore.com>
5076
5077 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5078 compute RETADDR.
5079
5080 2015-08-12 Keith Seitz <keiths@redhat.com>
5081
5082 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5083 reserved C++ keyword "explicit" to "explicit_loc".
5084 * breakpoint.c (create_overlay_event_breakpoint)
5085 (create_longjmp_master_breakpoint)
5086 (create_std_terminate_master_breakpoint)
5087 (create_exception_master_breakpoint, update_static_tracepoint):
5088 Rename reserved C++ keyword "explicit" to "explicit_loc".
5089 * completer.c (collect_explicit_location_matches)
5090 (explicit_location_completer): Rename reserved C++ keyword
5091 "explicit" to "explicit_loc".
5092 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5093 (canonicalize_linespec, create_sals_line_offset)
5094 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5095 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5096 "explicit" to "explicit_loc".
5097 * location.c (struct event_location) <explicit>: Rename to
5098 "explicit_loc".
5099 (initialize_explicit_location, new_explicit_location)
5100 (explicit_location_to_string_internal, explicit_location_to_linespec):
5101 Rename reserved C++ keyword "explicit" to "explicit_loc".
5102 * location.h (explicit_location_to_string)
5103 (explicit_location_to_linespec, initialize_explicit_location)
5104 (new_explicit_location): Rename reserved C++ keyword "explicit"
5105 to "explicit_loc".
5106 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5107 keyword "explicit" to "explicit_loc".
5108
5109 2015-08-12 Keith Seitz <keiths@redhat.com>
5110
5111 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5112 and only call decode_line_1 when it is non-NULL.
5113
5114 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
5115
5116 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5117 location address is not meaningful.
5118 (breakpoint_address_is_meaningful): Update comment.
5119
5120 2015-08-11 Keith Seitz <keiths@redhat.com>
5121
5122 * NEWS: Mention explicit locations.
5123 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5124 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5125 (_initialize_breakpoint): Update documentation for
5126 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5127
5128 2015-08-11 Keith Seitz <keiths@redhat.com>
5129
5130 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5131 explicit locations, options "--source", "--function",
5132 "--label", and "--line".
5133
5134 2015-08-11 Keith Seitz <keiths@redhat.com>
5135
5136 * completer.c: Include location.h.
5137 (enum match_type): New enum.
5138 (location_completer): Rename to ...
5139 (linespec_completer): ... this.
5140 (collect_explicit_location_matches, backup_text_ptr)
5141 (explicit_location_completer): New functions.
5142 (location_completer): "New" function; handle linespec
5143 and explicit location completions.
5144 (complete_line_internal): Remove all location completer-specific
5145 handling.
5146 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5147 (find_toplevel_char): Export.
5148 (linespec_parse_line_offset): Export.
5149 Issue error if STRING is not numerical.
5150 (gdb_get_linespec_parser_quote_characters): New function.
5151 * linespec.h (linespec_parse_line_offset): Declare.
5152 (get_gdb_linespec_parser_quote_characters): Declare.
5153 (is_ada_operator): Declare.
5154 (find_toplevel_char): Declare.
5155 (linespec_lexer_lex_keyword): Declare.
5156 * location.c (explicit_to_event_location): New function.
5157 (explicit_location_lex_one): New function.
5158 (string_to_explicit_location): New function.
5159 (string_to_event_location): Handle explicit locations.
5160 * location.h (explicit_to_event_location): Declare.
5161 (string_to_explicit_location): Declare.
5162
5163 2015-08-11 Keith Seitz <keiths@redhat.com>
5164
5165 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5166 linespec into explicit location.
5167 * breakpoint.c (create_overlay_breakpoint)
5168 (create_longjmp_master_breakpoint)
5169 (create_std_terminate_master_breakpoint)
5170 (create_exception_master_breakpoint): Convert linespec into explicit
5171 location.
5172 (update_static_tracepoint): Convert linespec into explicit location.
5173 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5174 location.h.
5175 (struct linespec) <expression, expr_pc, source_filename>
5176 <function_name, label_name, line_offset>: Replace with ...
5177 <explicit>: ... this.
5178 <is_linespec>: New member.
5179 (PARSER_EXPLICIT): New accessor macro.
5180 (undefined_label_error): New function.
5181 (source_file_not_found_error): New function.
5182 (linespec_parse_basic): The parser result is now an explicit location.
5183 Use PARSER_EXPLICIT to access it.
5184 Use undefined_label_error.
5185 (canonicalize_linespec): Convert canonical linespec into explicit
5186 location.
5187 Move string representation of location to explicit_location_to_linespec
5188 and use it and explicit_location_to_string to save string
5189 representations of the canonical location.
5190 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5191 explicit location. Update all references.
5192 (convert_explicit_location_to_sals): New function.
5193 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5194 result's explicit location.
5195 (linespec_state_constructor): Initialize is_linespec.
5196 Use PARSER_EXPLICIT.
5197 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5198 result.
5199 (event_location_to_sals): For linespec locations, set is_linespec.
5200 Handle explicit locations.
5201 (decode_objc): 'ls' contains an explicit location now. Update all
5202 references.
5203 (symtabs_from_filename): Use source_file_not_found_error.
5204 * location.c (struct event_location.u) <explicit>: New member.
5205 (initialize_explicit_location): New function.
5206 (initialize_event_location): Initialize explicit locations.
5207 (new_explicit_location, get_explicit_location)
5208 (get_explicit_location_const): New functions.
5209 (explicit_to_string_internal): New function; most of contents moved
5210 from canonicalize_linespec.
5211 (explicit_location_to_string): New function.
5212 (explicit_location_to_linespec): New function.
5213 (copy_event_location, delete_event_location)
5214 (event_location_to_string_const, event_location_empty_p): Handle
5215 explicit locations.
5216 * location.h (enum offset_relative_sign, struct line_offset): Move
5217 here from linespec.h.
5218 (enum event_location_type): Add EXPLICIT_LOCATION.
5219 (struct explicit_location): New structure.
5220 (explicit_location_to_string): Declare.
5221 (explicit_location_to_linespec): Declare.
5222 (new_explicit_location, get_explicit_locationp
5223 (get_explicit_location_const, initialize_explicit_location): Declare.
5224
5225 2015-08-11 Keith Seitz <keiths@redhat.com>
5226
5227 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5228 linespec for stap probe to probe location.
5229 * breakpoint.c (create_longjmp_master_breakpoint)
5230 (create_exception_master_breakpoint): Likewise.
5231 (break_command_1): Remove local variable `arg_cp'.
5232 Check location type to set appropriate breakpoint ops methods.
5233 (trace_command): Likewise.
5234 * linespec.c (event_location_to_sals): Assert on probe locations.
5235 * location.c (EL_PROBE): Add macro definition.
5236 (new_probe_location, get_probe_location): New functions.
5237 (copy_event_location, delete_event_location, event_location_to_string)
5238 (string_to_event_location, event_location_empty_p): Handle probe
5239 locations.
5240 * location.h (enum event_location_type): Add PROBE_LOCATION.
5241 (new_probe_location, get_probe_location): Declare.
5242 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5243 Convert linespec into probe location.
5244
5245 2015-08-11 Keith Seitz <keiths@redhat.com>
5246
5247 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5248 Convert linespec to address location.
5249 * linespec.c (canonicalize_linespec): Do not handle address
5250 locations here.
5251 (convert_address_location_to_sals): New function; contents moved
5252 from ...
5253 (convert_linespc_to_sals): ... here.
5254 (parse_linespec): Remove address locations from linespec grammar.
5255 Remove handling of address locations.
5256 (linespec_lex_to_end): Remove handling of address linespecs.
5257 (event_location_to_sals): Handle ADDRESS_LOCATION.
5258 (linespec_expression_to_pc): Export.
5259 * linespec.h (linespec_expression_to_pc): Add declaration.
5260 * location.c (struct event_location.u) <address>: New member.
5261 (new_address_location, get_address_location): New functions.
5262 (copy_event_location, delete_event_location, event_location_to_string)
5263 (string_to_event_location, event_location_empty_p): Handle address
5264 locations.
5265 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5266 (new_address_location, get_address_location): Declare.
5267 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5268 to address location.
5269 * spu-tdep.c (spu_catch_start): Likewise.
5270
5271 2015-08-11 Keith Seitz <keiths@redhat.com>
5272
5273 * ax-gdb.c: Include location.h.
5274 (agent_command_1) Use linespec location instead of address
5275 string.
5276 * break-catch-throw.c: Include location.h.
5277 (re_set_exception_catchpoint): Use linespec locations instead
5278 of address strings.
5279 * breakpoint.c: Include location.h.
5280 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5281 (create_std_terminate_master_breakpoint)
5282 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5283 Use linespec location instead of address string.
5284 (print_breakpoint_location): Use locations and
5285 event_location_to_string.
5286 Print extra_string for pending locations for non-MI streams.
5287 (print_one_breakpoint_location): Use locations and
5288 event_location_to_string.
5289 (init_raw_breakpoint_without_location): Initialize b->location.
5290 (create_thread_event_breakpoint): Use linespec location instead of
5291 address string.
5292 (init_breakpoint_sal): Likewise.
5293 Only save extra_string if it is non-NULL and not the empty string.
5294 Use event_location_to_string instead of `addr_string'.
5295 Constify `p' and `endp'.
5296 Use skip_spaces_const/skip_space_const instead of non-const versions.
5297 Copy the location into the breakpoint.
5298 If LOCATION is NULL, save the breakpoint address as a linespec location
5299 instead of an address string.
5300 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5301 event_location. All uses updated.
5302 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5303 (parse_breakpoint_sals): Use locations instead of address strings.
5304 Remove check for empty linespec with conditional.
5305 Refactor.
5306 (decode_static_tracepoint_spec): Make argument const and update
5307 function.
5308 (create_breakpoint): Change `arg' to a struct event_location and
5309 rename.
5310 Remove `copy_arg' and `addr_start'.
5311 If EXTRA_STRING is empty, set it to NULL.
5312 Don't populate `canonical' for pending breakpoints.
5313 Pass `extra_string' to find_condition_and_thread.
5314 Clear `extra_string' if `rest' was NULL.
5315 Do not error with "garbage after location" if setting a dprintf
5316 breakpoint.
5317 Copy the location into the breakpoint instead of an address string.
5318 (break_command_1): Use string_to_event_location and pass this to
5319 create_breakpoint instead of an address string.
5320 Check against `arg_cp' for a probe linespec.
5321 (dprintf_command): Use string_to_event_location and pass this to
5322 create_breakpoint instead of an address string.
5323 Throw an exception if no format string was specified.
5324 (print_recreate_ranged_breakpoint): Use event_location_to_string
5325 instead of address strings.
5326 (break_range_command, until_break_command)
5327 (init_ada_exception_breakpoint): Use locations instead
5328 of address strings.
5329 (say_where): Print out extra_string for pending locations.
5330 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5331 the breakpoint.
5332 (base_breakpoint_create_sals_from_location): Use struct event_location
5333 instead of address string.
5334 Remove `addr_start' and `copy_arg' parameters.
5335 (base_breakpoint_decode_location): Use struct event_location instead of
5336 address string.
5337 (bkpt_re_set): Use locations instead of address strings.
5338 Use event_location_empty_p to check for unset location.
5339 (bkpt_print_recreate): Use event_location_to_string instead of
5340 an address string.
5341 Print out extra_string for pending locations.
5342 (bkpt_create_sals_from_location, bkpt_decode_location)
5343 (bkpt_probe_create_sals_from_location): Use struct event_location
5344 instead of address string.
5345 (bkpt_probe_decode_location): Use struct event_location instead of
5346 address string.
5347 (tracepoint_print_recreate): Use event_location_to_string to
5348 recreate the tracepoint.
5349 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5350 (tracepoint_probe_create_sals_from_location)
5351 (tracepoint_probe_decode_location): Use struct event_location
5352 instead of address string.
5353 (dprintf_print_recreate): Use event_location_to_string to recreate
5354 the dprintf.
5355 (dprintf_re_set): Remove check for valid/missing format string.
5356 (strace_marker_create_sals_from_location)
5357 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5358 (update_static_tracepoint): Use struct event_location instead of
5359 address string.
5360 (location_to_sals): Likewise.
5361 Pass `extra_string' to find_condition_and_thread.
5362 For newly resolved pending breakpoint locations, clear the location's
5363 string representation.
5364 Assert that the breakpoint's condition string is NULL when
5365 condition_not_parsed.
5366 (breakpoint_re_set_default, create_sals_from_location_default)
5367 (decode_location_default, trace_command, ftrace_command)
5368 (strace_command, create_tracepoint_from_upload): Use locations
5369 instead of address strings.
5370 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5371 Use struct event_location instead of address string.
5372 Update all uses.
5373 <decode_location>: Likewise.
5374 (struct breakpoint) <addr_string>: Change to struct event_location
5375 and rename `location'.
5376 <addr_string_range_end>: Change to struct event_location and rename
5377 `location_range_end'.
5378 (create_breakpoint): Use struct event_location instead of address
5379 string.
5380 * cli/cli-cmds.c: Include location.h.
5381 (edit_command, list_command): Use locations instead of address strings.
5382 * elfread.c: Include location.h.
5383 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5384 * guile/scm-breakpoint.c: Include location.h.
5385 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5386 (gdbscm_register_breakpoint): Use locations instead of address
5387 strings.
5388 * linespec.c: Include location.h.
5389 (struct ls_parser) <stream>: Change to const char *.
5390 (PARSER_STREAM): Update.
5391 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5392 keywords must be followed by whitespace.
5393 (canonicalize_linespec): Save a linespec location into `canonical'.
5394 Save a canonical linespec into `canonical'.
5395 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5396 All uses updated.
5397 Update function description.
5398 (linespec_parser_new): Initialize `parser'.
5399 Update initialization of parsing stream.
5400 (event_location_to_sals): New function.
5401 (decode_line_full): Change `argptr' to a struct event_location and
5402 rename it `location'.
5403 Use locations instead of address strings.
5404 Call event_location_to_sals instead of parse_linespec.
5405 (decode_line_1): Likewise.
5406 (decode_line_with_current_source, decode_line_with_last_displayed)
5407 Use locations instead of address strings.
5408 (decode_objc): Likewise.
5409 Change `argptr' to const char * and rename `arg'.
5410 (destroy_linespec_result): Delete the linespec result's location
5411 instead of freeing the address string.
5412 * linespec.h (struct linespec_result) <addr_string>: Change to
5413 struct event_location and rename to ...
5414 <location>: ... this.
5415 (decode_line_1, decode_line_full): Change `argptr' to struct
5416 event_location. All callers updated.
5417 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5418 (mi_cmd_break_insert_1): Use locations instead of address strings.
5419 Throw an error if there was "garbage" at the end of the specified
5420 linespec.
5421 * probe.c: Include location.h.
5422 (parse_probes): Change `argptr' to struct event_location.
5423 Use event locations instead of address strings.
5424 * probe.h (parse_probes): Change `argptr' to struct event_location.
5425 * python/py-breakpoint.c: Include location.h.
5426 (bppy_get_location): Constify local variable `str'.
5427 Use event_location_to_string.
5428 (bppy_init): Use locations instead of address strings.
5429 * python/py-finishbreakpoint.c: Include location.h.
5430 (bpfinishpy_init): Remove local variable `addr_str'.
5431 Use locations instead of address strings.
5432 * python/python.c: Include location.h.
5433 (gdbpy_decode_line): Use locations instead of address strings.
5434 * remote.c: Include location.h.
5435 (remote_download_tracepoint): Use locations instead of address
5436 strings.
5437 * spu-tdep.c: Include location.h.
5438 (spu_catch_start): Remove local variable `buf'.
5439 Use locations instead of address strings.
5440 * tracepoint.c: Include location.h.
5441 (scope_info): Use locations instead of address strings.
5442 (encode_source_string): Constify parameter `src'.
5443 * tracepoint.h (encode_source_string): Likewise.
5444
5445 2015-08-11 Keith Seitz <keiths@redhat.com>
5446
5447 * Makefile.in (SFILES): Add location.c.
5448 (HFILES_NO_SRCDIR): Add location.h.
5449 (COMMON_OBS): Add location.o.
5450 * linespec.c (linespec_lex_to_end): New function.
5451 * linespec.h (linespec_lex_to_end): Declare.
5452 * location.c: New file.
5453 * location.h: New file.
5454
5455 2015-08-11 Keith Seitz <keiths@redhat.com>
5456
5457 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5458 Renamed to create_sals_from_location.
5459 <decode_linespec>: Renamed to decode_location.
5460 Update all callers.
5461 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5462 (create_sals_from_location_default): ... this.
5463 (addr_string_to_sals): Renamed to ...
5464 (location_to_sals): ... this.
5465 (decode_linespec_default): Renamed to ...
5466 (decode_location_default): ... this.
5467 (base_breakpoint_create_sals_from_address): Renamed to ...
5468 (base_breakpoint_create_sals_from_location): ... this.
5469 (bkpt_create_sals_from_address): Renamed to ...
5470 (bkpt_create_sals_from_location): ... this.
5471 (bkpt_decode_linespec): Renamed to ...
5472 (bkpt_decode_location): ... this.
5473 (bkpt_probe_create_sals_from_address): Renamed to ...
5474 (bkpt_probe_create_sals_from_location): ... this.
5475 (tracepoint_create_sals_from_address): Renamed to ...
5476 (tracepoint_create_sals_from_location): ... this.
5477 (tracepoint_decode_linespec): Renamed to ...
5478 (tracepoint_decode_location): ... this.
5479 (tracepoint_probe_create_sals_from_address): Renamed to ...
5480 (tracepoint_probe_create_sals_from_location): ... this.
5481 (tracepoint_probe_decode_linespec): Renamed to ...
5482 (tracepoint_probe_decode_location): ... this.
5483 (strace_marker_create_sals_from_address): Renamed to ...
5484 (strace_marker_create_sals_from_location): ... this.
5485 (decode_linespec_default): Renamed to ...
5486 (decode_location_default): ... this.
5487
5488 2015-08-10 Doug Evans <dje@google.com>
5489 Keith Seitz <keiths@redhat.com>
5490
5491 PR gdb/17960
5492 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5493 make_file_symbol_completion_list and made static.
5494 (make_file_symbol_completion_list): New function.
5495
5496 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5497
5498 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5499 trailing new-line at end of warning message.
5500 (proceed): Add i18n marker to error messages.
5501
5502 2015-08-07 Pedro Alves <palves@redhat.com>
5503
5504 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5505
5506 2015-08-07 Pedro Alves <palves@redhat.com>
5507
5508 * s390-linux-tdep.c (is_non_branch_ril)
5509 (s390_displaced_step_copy_insn): New functions.
5510 (s390_displaced_step_fixup): Update comment.
5511 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5512 gdbarch_displaced_step_copy_insn hook.
5513
5514 2015-08-07 Pedro Alves <palves@redhat.com>
5515
5516 * infrun.c (displaced_step_prepare_throw): Return -1 if
5517 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5518 comment.
5519 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5520 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5521 in file.
5522 (ppc_displaced_step_copy_insn): New function.
5523 (ppc_displaced_step_fixup): Update comment.
5524 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5525 gdbarch_displaced_step_copy_insn hook.
5526 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5527 NULL return.
5528 * gdbarch.h: Regenerate.
5529
5530 2015-08-07 Pedro Alves <palves@redhat.com>
5531
5532 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5533 field.
5534 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5535 Return false if dispaced stepping failed before.
5536 (resume): Pass the current inferior to
5537 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5538 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5539 displaced_stepping_failed flag, and fall back to an in-line
5540 step-over.
5541
5542 2015-08-07 Pedro Alves <palves@redhat.com>
5543
5544 * darwin-nat.c (darwin_stop): Rename to ...
5545 (darwin_interrupt): ... this.
5546 (_initialize_darwin_inferior): Adjust.
5547 * gnu-nat.c (gnu_stop): Delete.
5548 (gnu_target): Don't install gnu_stop.
5549 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5550 (inf_ptrace_interrupt): ... this.
5551 (inf_ptrace_target): Adjust.
5552 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5553 target_stop.
5554 * linux-nat (linux_nat_stop): Rename to ...
5555 (linux_nat_interrupt): ... this.
5556 (linux_nat_stop): Reimplement.
5557 (linux_nat_add_target): Install linux_nat_interrupt.
5558 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5559 (nto_handle_sigint_twice): ... this.
5560 (nto_interrupt): Rename to ...
5561 (nto_handle_sigint): ... this. Call target_interrupt instead of
5562 target_stop.
5563 (procfs_wait): Adjust.
5564 (procfs_stop): Rename to ...
5565 (procfs_interrupt): ... this.
5566 (init_procfs_targets): Adjust.
5567 * procfs.c (procfs_stop): Rename to ...
5568 (procfs_interrupt): ... this.
5569 (procfs_target): Adjust.
5570 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5571 (m32r_interrupt): ... this.
5572 (init_m32r_ops): Adjust.
5573 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5574 (gdbsim_interrupt_inferior): ... this.
5575 (gdbsim_stop): Rename to ...
5576 (gdbsim_interrupt): ... this.
5577 (gdbsim_cntrl_c): Adjust.
5578 (init_gdbsim_ops): Adjust.
5579 * remote.c (sync_remote_interrupt): Adjust comments.
5580 (remote_stop_as): Rename to ...
5581 (remote_interrupt_as): ... this.
5582 (remote_stop): Adjust comment.
5583 (remote_interrupt): New function.
5584 (init_remote_ops): Install remote_interrupt.
5585 * target.c (target_interrupt): New function.
5586 * target.h (struct target_ops) <to_interrupt>: New field.
5587 (target_interrupt): New declaration.
5588 * windows-nat.c (windows_stop): Rename to ...
5589 (windows_interrupt): ... this.
5590 * target-delegates.c: Regenerate.
5591
5592 2015-08-07 Pedro Alves <palves@redhat.com>
5593
5594 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5595 threads" as alternative to "switching back to stepped thread".
5596
5597 2015-08-07 Pedro Alves <palves@redhat.com>
5598
5599 * NEWS: Mention "maint set/show target-non-stop".
5600 * breakpoint.c (update_global_location_list): Check
5601 target_is_non_stop_p instead of non_stop.
5602 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5603 * infrun.c (show_can_use_displaced_stepping)
5604 (can_use_displaced_stepping_p, start_step_over_inferior):
5605 Likewise.
5606 (internal_resume_ptid): New function.
5607 (resume): Use it.
5608 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5609 all-stop mode but the target is always in non-stop mode, start all
5610 the other threads that are implicitly resumed too.
5611 (for_each_just_stopped_thread, fetch_inferior_event)
5612 (adjust_pc_after_break, stop_all_threads): Check
5613 target_is_non_stop_p instead of non_stop.
5614 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5615 with the target always in non-stop mode.
5616 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5617 instead of non_stop.
5618 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5619 instead of non_stop.
5620 (keep_going_stepped_thread): Use internal_resume_ptid.
5621 (stop_waiting): If in all-stop mode, and the target is in non-stop
5622 mode, stop all threads.
5623 (keep_going_pass): Likewise, when starting a new in-line step-over
5624 sequence.
5625 * linux-nat.c (get_pending_status, select_event_lwp)
5626 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5627 target_is_non_stop_p instead of non_stop.
5628 (linux_nat_always_non_stop_p): New function.
5629 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5630 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5631 * target-delegates.c: Regenerate.
5632 * target.c (target_is_non_stop_p): New function.
5633 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5634 (maint_set_target_non_stop_command)
5635 (maint_show_target_non_stop_command): New functions.
5636 (_initilize_target): Install "maint set/show target-non-stop"
5637 commands.
5638 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5639 (target_non_stop_enabled): New declaration.
5640 (target_is_non_stop_p): New declaration.
5641
5642 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5643
5644 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5645 has a pending status, return true.
5646 * gdbthread.h: Include target/waitstatus.h.
5647 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5648 stop_pc>: New fields.
5649 (struct thread_info) <resumed>: New field.
5650 (set_resumed): Declare.
5651 * infrun.c: Include "event-loop.h".
5652 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5653 (infrun_async): New function.
5654 (clear_step_over_info): Add debug output.
5655 (displaced_step_in_progress_any_inferior): New function.
5656 (displaced_step_fixup): New returns int.
5657 (start_step_over): Handle in-line step-overs too. Assert the
5658 thread is marked resumed.
5659 (resume_cleanups): Clear the thread's resumed flag.
5660 (resume): Set the thread's resumed flag. Return early if the
5661 thread has a pending status. Allow stepping a breakpoint with no
5662 signal.
5663 (proceed): Adjust to check 'resumed' instead of 'executing'.
5664 (clear_proceed_status_thread): If the thread has a pending status,
5665 and that status is a finished step, discard the pending status.
5666 (clear_proceed_status): Don't clear step_over_info here.
5667 (random_pending_event_thread, do_target_wait): New functions.
5668 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5669 do_target_wait.
5670 (wait_one): New function.
5671 (THREAD_STOPPED_BY): New macro.
5672 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5673 (thread_stopped_by_hw_breakpoint): New functions.
5674 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5675 functions.
5676 (handle_inferior_event): Also call set_resumed(false) on all
5677 threads implicitly stopped by the event.
5678 (restart_threads, resumed_thread_with_pending_status): New
5679 functions.
5680 (finish_step_over): If we were doing an in-line step-over before,
5681 and no longer are after trying to start a new step-over, restart
5682 all threads. If we have multiple threads with pending events,
5683 save the current event and go through the event loop again.
5684 (handle_signal_stop): Return early if finish_step_over returns
5685 false.
5686 <random signal>: If we get a signal while stepping over a
5687 breakpoint in-line in non-stop mode, restart all threads. Clear
5688 step_over_info before delivering the signal.
5689 (keep_going_stepped_thread): Use internal_error instead of
5690 gdb_assert. Mark the thread as resumed.
5691 (keep_going_pass_signal): Assert the thread isn't already resumed.
5692 If some other thread is doing an in-line step-over, defer the
5693 resume. If we just started a new in-line step-over, stop all
5694 threads. Don't clear step_over_info.
5695 (infrun_async_inferior_event_handler): New function.
5696 (_initialize_infrun): Create async event handler with
5697 infrun_async_inferior_event_handler as callback.
5698 (infrun_async): New declaration.
5699 * target.c (target_async): New function.
5700 * target.h (target_async): Declare macro and readd as function
5701 declaration.
5702 * target/waitstatus.h (enum target_stop_reason)
5703 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5704 * thread.c (new_thread): Clear the new waitstatus field.
5705 (set_resumed): New function.
5706
5707 2015-08-07 Pedro Alves <palves@redhat.com>
5708
5709 * infrun.c (keep_going_stepped_thread): New function, factored out
5710 from ...
5711 (switch_back_to_stepped_thread): ... here.
5712
5713 2015-08-07 Pedro Alves <palves@redhat.com>
5714
5715 * infrun.c (currently_stepping): Extend intro comment.
5716 * target.h (target_resume): Extend intro comment.
5717
5718 2015-08-07 Pedro Alves <palves@redhat.com>
5719
5720 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5721 of inferior_ptid. If the stepped thread vanished, return 0
5722 instead of resuming here. Use reset_ecs. Print the prev_pc and
5723 the current stop_pc in log message. Clear trap_expected if the
5724 thread advanced. Don't pass currently_stepping to
5725 do_target_resume.
5726
5727 2015-08-07 Pedro Alves <palves@redhat.com>
5728
5729 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5730 * infrun.c (struct execution_control_state): Move higher up in the
5731 file.
5732 (reset_ecs): New function.
5733 (start_step_over): Now returns int. Rewrite to use
5734 keep_going_pass_signal instead of manually starting a displaced step.
5735 (resume): Don't call set_running here. If displaced stepping
5736 can't start now, clear trap_expected.
5737 (find_thread_needs_step_over): Delete function.
5738 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5739 If the current thread needs a step over, push it in the step-over
5740 chain. Don't set insert breakpoints nor call resume directly
5741 here. Instead rewrite to use start_step_over and
5742 keep_going_pass_signal.
5743 (finish_step_over): New function.
5744 (handle_signal_stop): Call finish_step_over instead of
5745 start_step_over.
5746 (switch_back_to_stepped_thread): If the event thread needs another
5747 step-over do that first. Use start_step_over.
5748 (keep_going_pass_signal): New function, factored out from ...
5749 (keep_going): ... here.
5750 (_initialize_infrun): Comment moved here.
5751 * thread.c (set_running_thread): New function.
5752 (set_running, finish_thread_state): Use set_running_thread.
5753
5754 2015-08-07 Pedro Alves <palves@redhat.com>
5755
5756 * gdbthread.h (struct thread_info) <step_over_prev,
5757 step_over_next>: New fields.
5758 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5759 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5760 declarations.
5761 * infrun.c (struct displaced_step_request): Delete.
5762 (struct displaced_step_inferior_state) <step_request_queue>:
5763 Delete field.
5764 (displaced_step_prepare): Assert that trap_expected is set. Use
5765 thread_step_over_chain_enqueue. Split starting a new displaced
5766 step to ...
5767 (start_step_over): ... this new function.
5768 (resume): Assert the thread isn't waiting for a step over already.
5769 (proceed): Assert the thread isn't waiting for a step over
5770 already.
5771 (infrun_thread_stop_requested): Adjust to remove threads from the
5772 embedded step-over chain.
5773 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5774 displaced_step_fixup.
5775 (handle_signal_stop): Call start_step_over after
5776 displaced_step_fixup.
5777 * infrun.h (step_over_queue_head): New declaration.
5778 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5779 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5780 (thread_step_over_chain_enqueue)
5781 (thread_step_over_chain_remove): New functions.
5782 (delete_thread_1): Remove thread from the step-over chain.
5783
5784 2015-08-07 Pedro Alves <palves@redhat.com>
5785
5786 * infrun.c (thread_still_needs_step_over): Rename to ...
5787 (thread_still_needs_step_over_bp): ... this.
5788 (enum step_over_what): New.
5789 (thread_still_needs_step_over): Reimplement.
5790
5791 2015-08-07 Pedro Alves <palves@redhat.com>
5792
5793 * remote.c (remote_wait_as): If not waiting for a stop reply,
5794 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5795 requested, don't block waiting forever.
5796
5797 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5798
5799 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5800 waitstatus pointers instead of an ecs. Adjust.
5801 (handle_inferior_event): Adjust caller.
5802
5803 2015-08-07 Pedro Alves <palves@redhat.com>
5804
5805 * infrun.c (handle_inferior_event): If we get
5806 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5807 mode, mark all threads of the exiting process as not-executing.
5808 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5809 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5810 exiting process, if inferior_ptid still points at a process.
5811 * thread.c (struct current_thread_cleanup) <next>: New field.
5812 (current_thread_cleanup_chain): New global.
5813 (restore_current_thread_ptid_changed): New function.
5814 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5815 current_thread_cleanup_chain list.
5816 (make_cleanup_restore_current_thread): Add the cleanup data to the
5817 current_thread_cleanup_chain list.
5818 (_initialize_thread): Install restore_current_thread_ptid_changed
5819 as thread_ptid_changed observer.
5820
5821 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5822
5823 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5824 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5825 smaller than expected.
5826
5827 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * stack.c (get_frame_language): Moved ...
5830 * frame.c (get_frame_language): ... to here.
5831 * language.h (get_frame_language): Declaration moved to frame.h.
5832 * frame.h: Add language.h include, for language enum.
5833 (get_frame_language): Declaration moved from language.h.
5834 * language.c: Add frame.h include.
5835 * top.c: Add frame.h include.
5836 * symtab.h (struct obj_section): Declare.
5837 (struct cmd_list_element): Declare.
5838
5839 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * language.c (show_language_command): Find selected frame before
5842 asking for the language of that frame.
5843 (set_language_command): Likewise.
5844 * language.h (get_frame_language): Add frame parameter.
5845 * stack.c (get_frame_language): Add frame parameter, assert
5846 parameter is not NULL, update comment and reindent.
5847 * top.c (check_frame_language_change): Pass the selected frame
5848 into get_frame_language.
5849
5850 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5851
5852 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5853 (pt_btrace_insn_flags): New.
5854 (ftrace_add_pt): Call pt_btrace_insn_flags.
5855 * btrace.h (btrace_insn_flag): New.
5856 (btrace_insn) <flags>: New.
5857 * record-btrace.c (btrace_insn_history): Print insn prefix.
5858 * NEWS: Announce it.
5859
5860 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5861
5862 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5863 * configure: Regenerate.
5864
5865 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5866
5867 * Makefile.in (LIBICONV): Define.
5868 (CLIBS): Add LIBICONV.
5869 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5870 * configure: Regenerate.
5871
5872 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5873 Pedro Alves <palves@redhat.com>
5874
5875 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5876 (arm_set_abi): Likewise.
5877 * ax-general.c (ax_print): Likewise.
5878 * c-exp.y (exp : string_exp): Likewise.
5879 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5880 (do_compile_dwarf_expr_to_c): Likewise.
5881 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5882 Likewise.
5883 * dwarf2expr.c (execute_stack_op): Likewise.
5884 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5885 (disassemble_dwarf_expression): Likewise.
5886 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5887 (read_array_order): Likewise.
5888 (abbrev_table_read_table): Likewise.
5889 (read_attribute_value): Likewise.
5890 (skip_unknown_opcode): Likewise.
5891 (dwarf_decode_macro_bytes): Likewise.
5892 (dwarf_decode_macros): Likewise.
5893 * eval.c (value_f90_subarray): Likewise.
5894 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5895 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5896 * infrun.c (handle_command): Likewise.
5897 * memory-map.c (memory_map_start_memory): Likewise.
5898 * osabi.c (set_osabi): Likewise.
5899 * parse.c (operator_length_standard): Likewise.
5900 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5901 single return point.
5902 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5903 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5904 (gdbpy_lookup_global_symbol): Likewise.
5905 * record-full.c (record_full_restore): Likewise.
5906 * regcache.c (regcache_register_status): Likewise.
5907 (regcache_raw_read): Likewise.
5908 (regcache_cooked_read): Likewise.
5909 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5910 * symtab.c (initialize_ordinary_address_classes): Likewise.
5911 * target-debug.h (target_debug_print_signals): Likewise.
5912 * utils.c (do_restore_current_language): Likewise.
5913
5914 2015-08-06 Clem Dickey <clemd@acm.org>
5915
5916 PR python/17136
5917 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5918
5919 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5920
5921 * complaints.c (enum complaint_series): Add newlines and remove
5922 out of date comment.
5923 (struct complaints) <series>: Change type to enum
5924 complaint_series and remove out of date comment.
5925 (symfile_complaint_hook): Use equivalent enum value
5926 ISOLATED_MESSAGE instead of 0.
5927
5928 2015-08-06 Pedro Alves <palves@redhat.com>
5929
5930 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5931 returned > 0.
5932
5933 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5934
5935 * common/agent.c (symbol_list) <required>: Remove.
5936
5937 2015-08-06 Pedro Alves <palves@redhat.com>
5938
5939 * target/waitstatus.h (enum target_stop_reason)
5940 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5941
5942 2015-08-05 Pedro Alves <palves@redhat.com>
5943 Joel Brobecker <brobecker@adacore.com>
5944
5945 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5946 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5947 case where BS->STOP is not set.
5948
5949 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5950
5951 * nat/gdb_thread_db.h: Add copyright header.
5952 Protect against multiple inclusion.
5953
5954 2015-08-05 Yao Qi <yao.qi@linaro.org>
5955
5956 * aarch64-linux-nat.c (get_thread_id): Remove.
5957 (debug_reg_change_callback): Call ptid_get_lwp instead of
5958 get_thread_id.
5959 (fetch_gregs_from_thread): Likewise.
5960 (store_gregs_to_thread): Likewise.
5961 (fetch_fpregs_from_thread): Likewise.
5962 (store_fpregs_to_thread): Likewise.
5963 (aarch64_linux_get_debug_reg_capacity): Likewise.
5964 * arm-linux-nat.c (get_thread_id): Remove.
5965 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5966 * xtensa-linux-nat.c (get_thread_id): Remove.
5967 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5968 * arm-linux-nat.c (get_thread_id): Remove.
5969 (GET_THREAD_ID): Remove.
5970 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5971 (store_fpregs, fetch_regs, store_regs): Likewise.
5972 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5973 (fetch_vfp_regs, store_vfp_regs): Likewise.
5974 (arm_linux_read_description): Likewise.
5975 (arm_linux_get_hwbp_cap): Likewise.
5976 * xtensa-linux-nat.c (get_thread_id): Remove.
5977 (GET_THREAD_ID): Remove.
5978 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5979 GET_THREAD_ID.
5980
5981 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5982
5983 * python/py-linetable.c: Fix case of Linetable to LineTable
5984 in docstrings and code comments.
5985 * python/py-symtab.c: Same.
5986
5987 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5988
5989 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5990
5991 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5992
5993 PR gdb/18767
5994 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5995 use.
5996
5997 2015-08-04 Pedro Alves <palves@redhat.com>
5998
5999 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6000 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6001 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6002 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6003 (td_thr_validate_ftype, td_thr_get_info_ftype)
6004 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6005 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6006 New typedefs.
6007 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6008 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6009 local macros and use them instead of verbose_dlsym and dlsym
6010 calls.
6011
6012 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6013
6014 * nios2-tdep.h: Include opcode/nios2.h here.
6015 (NIOS2_CDX_OPCODE_SIZE): New.
6016 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6017 * nios2-tdep.c: Don't include opcode/nios2.h here.
6018 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6019 4-byte read fails.
6020 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6021 (nios2_match_addi, nios2_match_orhi): Likewise.
6022 (nios2_match_stw, nios2_match_ldw): Likewise.
6023 (nios2_match_rdctl): Likewise.
6024 (nios2_match_stwm, nios2_match_ldwm): New.
6025 (nios2_match_branch): Add cases for R2 encodings.
6026 (nios2_match_jmpi, nios2_match_calli): Likewise.
6027 (nios2_match_jmpr, nios2_match_callr): Likewise.
6028 (nios2_match_break, nios2_match_trap): Likewise.
6029 (nios2_in_epilogue_p): Add R2 support.
6030 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6031 prologues.
6032 (nios2_breakpoint_from_pc): Handle R2 instructions.
6033 (nios2_get_next_pc): Likewise. Adjust call to
6034 tdep->syscall_next_pc.
6035 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6036 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6037 instruction field macros instead of literal hex values.
6038 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6039 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6040 Use size field from OP instead of assuming all instructions
6041 are the same size.
6042 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6043
6044 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6045
6046 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6047 variable warning with some compilers.
6048
6049 2015-08-03 Yao Qi <yao.qi@linaro.org>
6050
6051 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6052 in comment. Replace "rw" with "type".
6053 (arm_linux_remove_watchpoint): Change type of "rw" to
6054 "enum target_hw_bp_type".
6055
6056 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6057
6058 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6059 lookup_symbol.
6060 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6061 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6062 * mt-tdep.c (mt_skip_prologue): Likewise.
6063 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6064
6065 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6066
6067 * ada-exp.y (write_object_renaming): Replace struct
6068 ada_symbol_info with struct block_symbol. Update field
6069 references accordingly.
6070 (block_lookup, select_possible_type_sym): Likewise.
6071 (find_primitive_type): Likewise. Also update call to
6072 ada_lookup_symbol to extract the symbol itself.
6073 (write_var_or_type, write_name_assoc): Likewise.
6074 * ada-lang.h (struct ada_symbol_info): Remove.
6075 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6076 struct block_symbol.
6077 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6078 (ada_lookup_symbol): Return struct block_symbol instead of a
6079 mere symbol.
6080 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6081 with struct block_symbol.
6082 (resolve_subexp, ada_resolve_function, sort_choices,
6083 user_select_syms, is_nonfunction, add_defn_to_vec,
6084 num_defns_collected, defns_collected,
6085 symbols_are_identical_enums, remove_extra_symbols,
6086 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6087 ada_lookup_symbol_list, ada_iterate_over_symbols,
6088 ada_lookup_encoded_symbol, get_var_value): Likewise.
6089 (ada_lookup_symbol): Return a block_symbol instead of a mere
6090 symbol. Replace struct ada_symbol_info with struct
6091 block_symbol.
6092 (ada_lookup_symbol_nonlocal): Likewise.
6093 (standard_lookup): Make block passing explicit through
6094 lookup_symbol_in_language.
6095 * ada-tasks.c (get_tcb_types_info): Update the calls to
6096 lookup_symbol_in_language to extract the mere symbol out of the
6097 returned value.
6098 (ada_tasks_inferior_data_sniffer): Likewise.
6099 * ax-gdb.c (gen_static_field): Likewise for the call to
6100 lookup_symbol.
6101 (gen_maybe_namespace_elt): Deal with struct block_symbol from
6102 lookup functions.
6103 (gen_expr): Likewise.
6104 * c-exp.y: Likewise. Remove uses of block_found.
6105 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6106 (classify_name): Likewise. Rename the "sym" local variable to
6107 "bsym".
6108 * c-valprint.c (print_unpacked_pointer): Likewise.
6109 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6110 "sym" parameter from struct symbol * to struct block_symbol.
6111 Use it to remove uses of block_found. Deal with struct
6112 block_symbol from lookup functions.
6113 (gcc_convert_symbol): Likewise. Update the call to
6114 convert_symbol_sym.
6115 * compile/compile-object-load.c (compile_object_load): Deal with
6116 struct block_symbol from lookup functions.
6117 * cp-namespace.c (cp_lookup_nested_symbol_1,
6118 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6119 cp_search_static_and_baseclasses,
6120 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6121 cp_lookup_symbol_imports_or_template,
6122 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6123 lookup_namespace_scope, cp_lookup_nonlocal,
6124 find_symbol_in_baseclass): Return struct block_symbol instead of
6125 mere symbols and deal with struct block_symbol from lookup
6126 functions.
6127 * cp-support.c (inspect_type, replace_typedefs,
6128 cp_lookup_rtti_type): Deal with struct block_symbol from
6129 lookup functions.
6130 * cp-support.h (cp_lookup_symbol_nonlocal,
6131 cp_lookup_symbol_from_namespace,
6132 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
6133 Return struct block_symbol instead of mere symbols.
6134 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6135 push_module_name):
6136 Deal with struct block_symbol from lookup functions. Remove
6137 uses of block_found.
6138 * eval.c (evaluate_subexp_standard): Update call to
6139 cp_lookup_symbol_namespace.
6140 * f-exp.y: Deal with struct block_symbol from lookup functions.
6141 Remove uses of block_found.
6142 (yylex): Likewise.
6143 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6144 lookup_enum, lookup_template_type, check_typedef): Deal with
6145 struct block_symbol from lookup functions.
6146 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6147 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6148 (gdbscm_lookup_global_symbol): Likewise.
6149 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6150 * go-exp.y: Likewise. Remove uses of block_found.
6151 (package_name_p, classify_packaged_name, classify_name):
6152 Likewise.
6153 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6154 * jv-exp.y (push_variable): Likewise.
6155 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6156 * language.c (language_bool_type): Likewise.
6157 * language.h (struct language_defn): Update
6158 la_lookup_symbol_nonlocal to return a struct block_symbol rather
6159 than a mere symbol.
6160 * linespec.c (find_label_symbols): Deal with struct block_symbol
6161 from lookup functions.
6162 * m2-exp.y: Likewise. Remove uses of block_found.
6163 (yylex): Likewise.
6164 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6165 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
6166 * p-exp.y: Likewise. Remove uses of block_found.
6167 (yylex): Likewise.
6168 * p-valprint.c (pascal_val_print): Likewise.
6169 * parse.c (write_dollar_variable): Likewise. Remove uses of
6170 block_found.
6171 * parser-defs.h (struct symtoken): Turn the SYM field into a
6172 struct block_symbol.
6173 * printcmd.c (address_info): Deal with struct block_symbol from
6174 lookup functions.
6175 * python/py-frame.c (frapy_read_var): Likewise.
6176 * python/py-symbol.c (gdbpy_lookup_symbol,
6177 gdbpy_lookup_global_symbol): Likewise.
6178 * skip.c (skip_function_command): Likewise.
6179 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
6180 block_symbol instead of a mere symbol.
6181 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6182 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6183 * solib.c (solib_global_lookup): Likewise.
6184 * solist.h (solib_global_lookup): Likewise.
6185 (struct target_so_ops): Update lookup_lib_global_symbol to
6186 return a struct block_symbol rather than a mere symbol.
6187 * source.c (select_source_symtab): Deal with struct block_symbol
6188 from lookup functions.
6189 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6190 Likewise.
6191 * symfile.c (set_initial_language): Likewise.
6192 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
6193 block_symbol.
6194 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6195 (struct symbol_cache_slot): Turn the FOUND field into a struct
6196 block_symbol.
6197 (block_found): Remove.
6198 (eq_symbol_entry): Update to deal with struct block_symbol in
6199 cache slots.
6200 (symbol_cache_lookup): Return a struct block_symbol rather than
6201 a mere symbol.
6202 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6203 appropriately the cache slots. Update callers.
6204 (symbol_cache_dump): Update cache slots handling to the type
6205 change.
6206 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6207 lookup_symbol_aux, lookup_local_symbol,
6208 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6209 lookup_symbol_in_objfile_symtabs,
6210 lookup_symbol_in_objfile_from_linkage_name,
6211 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6212 lookup_symbol_in_static_block, lookup_static_symbol,
6213 lookup_global_symbol):
6214 Return a struct block_symbol rather than a mere symbol. Deal
6215 with struct block_symbol from other lookup functions. Remove
6216 uses of block_found.
6217 (lookup_symbol_in_block): Remove uses of block_found.
6218 (struct global_sym_lookup_data): Turn the RESULT field into a
6219 struct block_symbol.
6220 (lookup_symbol_global_iterator_cb): Update references to the
6221 RESULT field.
6222 (search_symbols): Deal with struct block_symbol from lookup
6223 functions.
6224 * symtab.h (struct block_symbol): New structure.
6225 (block_found): Remove.
6226 (lookup_symbol_in_language, lookup_symbol,
6227 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6228 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6229 lookup_global_symbol_from_objfile): Return a struct block_symbol
6230 rather than just a mere symbol. Update comments to remove
6231 mentions of block_found.
6232 * valops.c (find_function_in_inferior,
6233 value_struct_elt_for_reference, value_maybe_namespace_elt,
6234 value_of_this): Deal with struct block_symbol from lookup
6235 functions.
6236 * value.c (value_static_field, value_fn_field): Likewise.
6237
6238 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6239
6240 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6241 instead of integer.
6242
6243 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6244 Pedro Alves <palves@redhat.com>
6245
6246 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6247 type or value instead of integer.
6248 (aarch64_linux_insert_watchpoint): Likewise.
6249 (aarch64_linux_remove_watchpoint): Likewise.
6250 * ada-lang.c (ada_op_print_tab): Likewise.
6251 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6252 (amd64_linux_syscall_record_common): Likewise.
6253 * arch-utils.c (target_byte_order_user): Likewise.
6254 (default_byte_order): Likewise.
6255 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6256 (arm_linux_get_hwbp_type): Likewise.
6257 (arm_linux_hw_watchpoint_initialize): Likewise.
6258 (arm_linux_insert_watchpoint): Likewise.
6259 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6260 (arm_linux_syscall_record): Likewise.
6261 * breakpoint.c (update_watchpoint): Likewise.
6262 (breakpoint_here_p): Likewise.
6263 (bpstat_print): Likewise.
6264 (enable_breakpoint_disp): Likewise.
6265 * c-lang.c (c_op_print_tab): Likewise.
6266 * cli/cli-decode.c (add_info_alias): Likewise.
6267 * d-lang.c (d_op_print_tab): Likewise.
6268 * eval.c (evaluate_subexp_standard): Likewise.
6269 * f-exp.y (dot_ops): Likewise.
6270 (f77_keywords): Likewise.
6271 * f-lang.c (f_op_print_tab): Likewise.
6272 * go-lang.c (go_op_print_tab): Likewise.
6273 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6274 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6275 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6276 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6277 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6278 (struct scm_from_stringn_data): Likewise.
6279 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6280 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6281 (ia64_linux_remove_watchpoint): Likewise.
6282 (ia64_linux_can_use_hw_breakpoint): Likewise.
6283 * infrun.c (print_stop_event): Likewise.
6284 * jv-lang.c (java_op_print_tab): Likewise.
6285 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6286 * linux-nat.h (struct lwp_info): Likewise.
6287 * linux-thread-db.c (enable_thread_event): Likewise.
6288 * m2-lang.c (m2_op_print_tab): Likewise.
6289 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6290 (mi_cmd_stack_list_variables): Likewise.
6291 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6292 * mi/mi-out.c (mi_table_begin): Likewise.
6293 (mi_table_header): Likewise.
6294 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6295 (mips_linux_insert_watchpoint): Likewise.
6296 (mips_linux_remove_watchpoint): Likewise.
6297 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6298 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6299 (mips_linux_watch_type_to_irw): Likewise.
6300 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6301 (procfs_insert_hw_watchpoint): Likewise.
6302 (procfs_remove_hw_watchpoint): Likewise.
6303 (procfs_hw_watchpoint): Likewise.
6304 (procfs_can_use_hw_breakpoint): Likewise.
6305 (procfs_remove_hw_watchpoint): Likewise.
6306 (procfs_insert_hw_watchpoint): Likewise.
6307 * p-lang.c (pascal_op_print_tab): Likewise.
6308 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6309 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6310 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6311 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6312 (procfs_insert_watchpoint): Likewise.
6313 (procfs_remove_watchpoint): Likewise.
6314 * psymtab.c (recursively_search_psymtabs): Likewise.
6315 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6316 (m32r_insert_watchpoint): Likewise.
6317 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6318 (mips_insert_watchpoint): Likewise.
6319 (mips_remove_watchpoint): Likewise.
6320 * remote.c (watchpoint_to_Z_packet): Likewise.
6321 (remote_insert_watchpoint): Likewise.
6322 (remote_remove_watchpoint): Likewise.
6323 (remote_check_watch_resources): Likewise.
6324 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6325 (s390_remove_watchpoint): Likewise.
6326 (s390_can_use_hw_breakpoint): Likewise.
6327 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6328 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6329 * target.h (struct target_ops): Likewise.
6330 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6331 * ui-out.c (struct ui_out_hdr): Likewise.
6332 (append_header_to_list): Likewise.
6333 (get_next_header): Likewise.
6334 (verify_field): Likewise.
6335 (ui_out_begin): Likewise.
6336 (ui_out_field_int): Likewise.
6337 (ui_out_field_fmt_int): Likewise.
6338 (ui_out_field_skip): Likewise.
6339 (ui_out_field_string): Likewise.
6340 (ui_out_field_fmt): Likewise.
6341 * varobj.c (new_variable): Likewise.
6342 * x86-nat.c (x86_insert_watchpoint): Likewise.
6343 (x86_remove_watchpoint): Likewise.
6344 (x86_can_use_hw_breakpoint): Likewise.
6345 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6346 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6347 previously anonymous enumeration type..
6348 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6349 value.
6350 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6351 (target_debug_print_enum_bptype): New.
6352 * target-delegates.c: Regenerate.
6353
6354 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6355
6356 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6357 already says and disallow non-stack memory writes in the prologue.
6358
6359 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6360
6361 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6362 reflect how current GCC emits stack overflow checks. Match
6363 both trap and break instructions for backward compatbility.
6364 Disallow other trap and break instructions in the prologue.
6365
6366 2015-07-30 Pedro Alves <palves@redhat.com>
6367
6368 PR threads/18600
6369 * linux-nat.c (wait_lwp): Report to the core when thread group
6370 leader exits.
6371
6372 2015-07-30 Pedro Alves <palves@redhat.com>
6373 Simon Marchi <simon.marchi@ericsson.com>
6374
6375 PR threads/18600
6376 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6377 mark the new thread as resumed. Remove STOPPING parameter.
6378 (wait_lwp): Adjust call to linux_handle_extended_wait.
6379 (linux_nat_filter_event): Adjust call to
6380 linux_handle_extended_wait.
6381 (resume_stopped_resumed_lwps): Add debug output.
6382
6383 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6384
6385 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6386 isize argument.
6387 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6388 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6389 gdbarch_fast_tracepoint_valid_at.
6390 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6391 * gdbarch.h: Regenerate.
6392 * gdbarch.c: Regenerate.
6393 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6394 argument. Do not set it.
6395 * remote.c (remote_download_tracepoint): Adjust call to
6396 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6397 the instruction length.
6398
6399 2015-07-30 Yao Qi <yao.qi@linaro.org>
6400
6401 * arm-tdep.h (enum gdb_regnum): Move it to ...
6402 * arch/arm.h: ... here. New file.
6403 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6404
6405 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6406
6407 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6408 Change its type to int *.
6409 (decode_br): Rename link argument to is_blr. Change its type to
6410 int *.
6411 (decode_cb): Rename op argument to is_cbnz. Change its type to
6412 int *.
6413 (decode_tb): Rename op argument to is_tbnz. Change its type to
6414 int *. Set is_tbnz to either 1 or 0.
6415 (aarch64_analyze_prologue): Change type of is_link to int. Add
6416 new variables is_cbnz and is_tbnz. Adjust call to
6417 aarch64_decode_cb and aarch64_decode_tb.
6418
6419 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6422 parameter.
6423 (mips_linux_new_thread): Likewise.
6424 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6425
6426 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6427
6428 * top.c: Include "tui/tui.h".
6429 (undo_terminal_modifications_before_exit): New static function.
6430 (quit_force): Use it.
6431
6432 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6433
6434 * target.c (terminal_state): Initialize to terminal_is_ours.
6435
6436 2015-07-29 Yao Qi <yao.qi@linaro.org>
6437
6438 PR record/18691
6439 * dcache.c (dcache_read_memory_partial): Call
6440 raw_memory_xfer_partial.
6441 * target.c (raw_memory_xfer_partial): Make it non-static.
6442 * target.h (raw_memory_xfer_partial): Declare.
6443
6444 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6445
6446 * c-valprint.c (c_val_print_array): Consider addressable memory
6447 unit size.
6448 (c_val_print_ptr): Likewise.
6449 (c_val_print_int): Likewise.
6450 * findvar.c (read_frame_register_value): Likewise.
6451 * valarith.c (find_size_for_pointer_math): Likewise.
6452 (value_ptrdiff): Likewise.
6453 (value_subscripted_rvalue): Likewise.
6454 * valops.c (read_value_memory): Likewise (and rename variables).
6455 (value_assign): Likewise.
6456 (value_repeat): Likewise.
6457 (value_array): Likewise.
6458 (value_slice): Likewise.
6459 * valprint.c (generic_val_print_ptr): Likewise.
6460 (generic_val_print_enum): Likewise.
6461 (generic_val_print_bool): Likewise.
6462 (generic_val_print_int): Likewise.
6463 (generic_val_print_char): Likewise.
6464 (generic_val_print_float): Likewise.
6465 (generic_val_print_decfloat): Likewise.
6466 (generic_val_print_complex): Likewise.
6467 (val_print_scalar_formatted): Likewise.
6468 (val_print_array_elements): Likewise.
6469 * value.c (set_value_parent): Likewise.
6470 (value_contents_copy_raw): Likewise.
6471 (set_internalvar_component): Likewise.
6472 (value_primitive_field): Likewise.
6473 (value_fetch_lazy): Likewise.
6474 * value.h (read_value_memory): Update comment.
6475
6476 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6477
6478 * value.c (get_value_arch): New function.
6479 * value.h (get_value_arch): New declaration.
6480
6481 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6482
6483 * value.c (struct value): Update comments.
6484
6485 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6486
6487 * gdbtypes.c (type_length_units): New function.
6488 * gdbtypes.h (type_length_units): New declaration.
6489 (struct type) <length>: Update comment.
6490
6491 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6492
6493 * valprint.c (generic_val_print): Factor out complex
6494 printing code to ...
6495 (generic_val_print_complex): ... this new function.
6496
6497 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6498
6499 * valprint.c (generic_val_print): Factor out decfloat
6500 printing code to ...
6501 (generic_val_print_decfloat): ... this new function.
6502
6503 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 * valprint.c (generic_val_print): Factor out float
6506 printing code to ...
6507 (generic_val_print_float): ... this new function.
6508
6509 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * valprint.c (generic_val_print): Factor out char
6512 printing code to ...
6513 (generic_val_print_char): ... this new function.
6514
6515 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6516
6517 * valprint.c (generic_val_print): Factor out integer
6518 printing code to ...
6519 (generic_val_print_int): ... this new function.
6520
6521 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6522
6523 * valprint.c (generic_val_print): Factor out bool
6524 printing code to ...
6525 (generic_val_print_bool): ... this new function.
6526
6527 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6528
6529 * valprint.c (generic_val_print): Factor out function/method
6530 printing code to ...
6531 (generic_val_print_func): ... this new function.
6532
6533 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6534
6535 * valprint.c (generic_val_print): Factor out flags
6536 printing code to ...
6537 (generic_val_print_flags): ... this new function.
6538
6539 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6540
6541 * valprint.c (generic_val_print): Factor out enum
6542 printing code to ...
6543 (generic_val_print_enum): ... this new function.
6544
6545 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6546
6547 * valprint.c (generic_val_print): Factor out reference
6548 printing code to ...
6549 (generic_val_print_ref): ... this new function.
6550
6551 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6552
6553 * valprint.c (generic_val_print): Factor out memberptr
6554 printing code to ...
6555 (generic_val_print_memberptr): ... this new function.
6556
6557 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6558
6559 * valprint.c (generic_val_print): Factor out pointer
6560 printing code to ...
6561 (generic_val_print_ptr): ... this new function.
6562
6563 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6564
6565 * valprint.c (generic_val_print): Factor out array
6566 printing code to ...
6567 (generic_val_print_array): ... this new function.
6568
6569 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6570
6571 * valprint.c (generic_val_print): Factor out
6572 print_unpacked_pointer code to ...
6573 (print_unpacked_pointer): ... this new function.
6574
6575 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6576
6577 * event-top.c (handle_sigterm): Don't inspect
6578 target_can_async_p. Always set the quit flag and always mark
6579 the async signal handler.
6580
6581 2015-07-27 Yao Qi <yao.qi@linaro.org>
6582
6583 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6584
6585 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6586
6587 * remote.c (read_ptid): Return null_ptid when no thread id
6588 is found.
6589 (remote_current_thread): Add log warning for malformed
6590 qC reply.
6591 (remote_start_remote): Add log warning when current thread
6592 not found.
6593
6594 2015-07-24 Pedro Alves <palves@redhat.com>
6595
6596 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6597 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6598 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6599
6600 2015-07-24 Pedro Alves <palves@redhat.com>
6601
6602 PR gdb/18717
6603 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6604 is resumed, and extend the debug log.
6605
6606 2015-07-24 Pedro Alves <palves@redhat.com>
6607
6608 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6609
6610 2015-07-24 Pedro Alves <palves@redhat.com>
6611
6612 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6613 sys/ptrace.h.
6614 * alpha-linux-nat.c: Likewise.
6615 * amd64-linux-nat.c: Likewise.
6616 * arm-linux-nat.c: Likewise.
6617 * hppa-linux-nat.c: Likewise.
6618 * i386-linux-nat.c: Likewise.
6619 * ia64-linux-nat.c: Likewise.
6620 * linux-fork.c: Likewise.
6621 * linux-nat.c: Likewise.
6622 * m32r-linux-nat.c: Likewise.
6623 * m68klinux-nat.c: Likewise.
6624 * mips-linux-nat.c: Likewise.
6625 * nat/linux-btrace.c: Likewise.
6626 * nat/linux-ptrace.c: Likewise.
6627 * nat/linux-ptrace.h
6628 * nat/mips-linux-watch.c: Likewise.
6629 * nat/x86-linux-dregs.c: Likewise.
6630 * ppc-linux-nat.c: Likewise.
6631 * s390-linux-nat.c: Likewise.
6632 * spu-linux-nat.c: Likewise.
6633 * tilegx-linux-nat.c: Likewise.
6634 * x86-linux-nat.c: Likewise.
6635 * xtensa-linux-nat.c: Likewise.
6636
6637 2015-07-24 Pedro Alves <palves@redhat.com>
6638
6639 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6640 __ptrace_request as first parameter type instead of int.
6641 (PTRACE_TYPE_ARG1): Define.
6642 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6643 that casts first argument to PTRACE_TYPE_ARG1.
6644 * config.in: Regenerate.
6645 * configure: Regenerate.
6646
6647 2015-07-24 Pedro Alves <palves@redhat.com>
6648
6649 * gdb_ptrace.h: Move ...
6650 * nat/gdb_ptrace.h: ... here.
6651 * inf-ptrace.c: Adjust.
6652
6653 2015-07-24 Pedro Alves <palves@redhat.com>
6654
6655 * acinclude.m4: Include ptrace.m4.
6656 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6657 * ptrace.m4: ... to this new file.
6658
6659 2015-07-23 Doug Evans <dje@google.com>
6660
6661 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6662 (load_cu): Handle dummy CUs.
6663 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6664 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6665
6666 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6667
6668 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6669 documentation to say that it returns a list rather than
6670 a FrozenSet.
6671 (linetable_object_methods): Update the docstring of the
6672 "source_line" entry.
6673
6674 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6675
6676 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6677 type to the recursive call instead of the original (maybe
6678 TYPE_CODE_TYPEDEF) type.
6679
6680 2015-07-23 Yao Qi <yao.qi@linaro.org>
6681
6682 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6683 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6684 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6685
6686 2015-07-21 Yao Qi <yao.qi@linaro.org>
6687
6688 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6689 Move it to nat/aarch64-linux-hw-point.c.
6690 (aarch64_linux_child_post_startup_inferior): Update.
6691 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6692 New function.
6693 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6694 Declare it.
6695
6696 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6697
6698 * common/btrace-common.c (btrace_data_append): Change case label.
6699
6700 2015-07-20 Yao Qi <yao.qi@linaro.org>
6701
6702 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6703 Re-indent the code.
6704 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6705 "unsigned long long".
6706
6707 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6708
6709 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6710 to be set for SEC_ALLOC sections too.
6711
6712 2015-07-17 Yao Qi <yao.qi@linaro.org>
6713
6714 * Makefile.in (HFILES_NO_SRCDIR): Add
6715 nat/aarch64-linux-hw-point.h.
6716 (aarch64-linux-hw-point.o): New rule.
6717 * nat/aarch64-linux-hw-point.h: New file.
6718 * nat/aarch64-linux-hw-point.c: New file.
6719 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6720 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6721 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6722 (AARCH64_HWP_ALIGNMENT): Likewise.
6723 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6724 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6725 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6726 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6727 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6728 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6729 (struct aarch64_debug_reg_state): Likewise.
6730 (struct arch_lwp_info): Likewise.
6731 (aarch64_linux_set_debug_regs): Likewise.
6732 (aarch64_notify_debug_reg_change): Remove static.
6733 (aarch64_align_watchpoint): Likewise.
6734 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6735 (aarch64_watchpoint_length): Likewise.
6736 (aarch64_point_encode_ctrl_reg): Likewise
6737 (aarch64_point_is_aligned): Likewise.
6738 (aarch64_dr_state_insert_one_point): Likewise.
6739 (aarch64_dr_state_remove_one_point): Likewise.
6740 (aarch64_handle_breakpoint): Likewise.
6741 (aarch64_handle_aligned_watchpoint): Likewise.
6742 (aarch64_handle_unaligned_watchpoint): Likewise.
6743 (aarch64_handle_watchpoint): Likewise.
6744 * config/aarch64/linux.mh (NAT_FILE): Add
6745 aarch64-linux-hw-point.o.
6746
6747 2015-07-17 Yao Qi <yao.qi@linaro.org>
6748
6749 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6750 state and don't call aarch64_get_debug_reg_state. All callers
6751 update.
6752 (aarch64_linux_insert_hw_breakpoint): Call
6753 aarch64_get_debug_reg_state earlier.
6754 (aarch64_linux_remove_hw_breakpoint): Likewise.
6755 (aarch64_handle_aligned_watchpoint): Add argument state and
6756 don't call aarch64_get_debug_reg_state. All callers update.
6757 (aarch64_handle_unaligned_watchpoint): Likewise.
6758 (aarch64_handle_watchpoint): Add argument state.
6759 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6760 earlier.
6761 (aarch64_linux_remove_watchpoint): Likewise.
6762
6763 2015-07-17 Yao Qi <yao.qi@linaro.org>
6764
6765 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6766 debug_printf.
6767 (aarch64_handle_unaligned_watchpoint): Likewise.
6768
6769 2015-07-17 Yao Qi <yao.qi@linaro.org>
6770
6771 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6772 argument type's type to 'enum target_hw_bp_type'.
6773 (aarch64_dr_state_remove_one_point): Likewise.
6774 (aarch64_handle_breakpoint): Likewise.
6775 (aarch64_linux_insert_hw_breakpoint): Likewise.
6776 (aarch64_linux_remove_hw_breakpoint): Likewise.
6777 (aarch64_handle_aligned_watchpoint): Likewise.
6778
6779 2015-07-17 Yao Qi <yao.qi@linaro.org>
6780
6781 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6782 ptid_get_pid instead of get_thread_id.
6783
6784 2015-07-17 Yao Qi <yao.qi@linaro.org>
6785
6786 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6787 (add_current_inferior_and_thread): Don't initialise ptid.
6788
6789 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6790
6791 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6792 unavailable if invalid.
6793
6794 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6795
6796 Revert the previous 6 commits:
6797 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6798 Move gdb_regex* to common/
6799 Prepare linux_find_memory_regions_full & co. for move
6800 Move linux_find_memory_regions_full & co.
6801 gdbserver build-id attribute generator
6802 Validate symbol file using build-id
6803
6804 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6805 Jan Kratochvil <jan.kratochvil@redhat.com>
6806
6807 Validate symbol file using build-id.
6808 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6809 and 'show validate-build-id'. Add build-id attribute.
6810 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6811 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6812 * solib-frv.c (_initialize_frv_solib): Ditto.
6813 * solib-spu.c (set_spu_solib_ops): Ditto.
6814 * solib-svr4.c: Include rsp-low.h.
6815 (NOTE_GNU_BUILD_ID_NAME): New define.
6816 (svr4_validate): New function.
6817 (svr4_copy_library_list): Duplicate field build_id.
6818 (library_list_start_library): Parse 'build-id' attribute.
6819 (svr4_library_attributes): Add 'build-id' attribute.
6820 (_initialize_svr4_solib): Assign validate value.
6821 * solib-target.c (solib.h): Include.
6822 (_initialize_solib_target): Assign validate value.
6823 * solib.c (validate_build_id, show_validate_build_id): New.
6824 (solib_map_sections): Use ops->validate.
6825 (clear_so): Free build_id.
6826 (default_solib_validate): New function.
6827 (_initialize_solib): Add "validate-build-id".
6828 * solib.h (default_solib_validate): New declaration.
6829 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6830 (target_so_ops): New field 'validate'.
6831
6832 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6833 Jan Kratochvil <jan.kratochvil@redhat.com>
6834
6835 gdbserver build-id attribute generator.
6836 * features/library-list-svr4.dtd (library-list-svr4): New
6837 'build-id' attribute.
6838
6839 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6840 Jan Kratochvil <jan.kratochvil@redhat.com>
6841
6842 Move linux_find_memory_regions_full & co.
6843 * linux-tdep.c (nat/linux-maps.h): Include.
6844 (gdb_regex.h): Remove the include.
6845 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6846 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6847 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6848 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6849 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6850 and target/target.h.
6851 (struct smaps_vmflags, read_mapping, decode_vmflags)
6852 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6853 (linux_find_memory_regions_full): Move from linux-tdep.c.
6854 * nat/linux-maps.h (read_mapping): New declaration.
6855 (linux_find_memory_region_ftype, enum filterflags): Moved from
6856 linux-tdep.c.
6857 (linux_find_memory_regions_full): New declaration.
6858 * target.c (target/target-utils.h): Include.
6859 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6860 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6861 definitions to target/target-utils.c.
6862 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6863 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6864 from target.c.
6865 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6866 (read_alloc): New declaration.
6867 (read_stralloc_func_ftype): New typedef.
6868 (read_stralloc): New declaration.
6869 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6870
6871 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6872 Jan Kratochvil <jan.kratochvil@redhat.com>
6873
6874 Prepare linux_find_memory_regions_full & co. for move.
6875 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6876 (linux_find_memory_regions_full): Change signature and prepare
6877 for moving to linux-maps.
6878 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6879 (linux_find_memory_regions_thunk): New.
6880 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6881 (linux_find_memory_regions_gdb): New.
6882 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6883 (linux_make_mappings_corefile_notes): Use
6884 linux_find_memory_regions_gdb.
6885 * target.c (read_alloc_pread_ftype): New typedef.
6886 (target_fileio_read_alloc_1_pread): New function.
6887 (read_alloc): Refactor from target_fileio_read_alloc_1.
6888 (read_stralloc_func_ftype): New typedef.
6889 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6890 (read_stralloc): Refactored from target_fileio_read_stralloc.
6891 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6892
6893 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6896 common/gdb_regex.h.
6897 (COMMON_OBS): Add gdb_regex.o.
6898 (gdb_regex.o): New.
6899 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6900 --without-included-regex and USE_INCLUDED_REGEX.
6901 * common/gdb_regex.c: New file from utils.c functions.
6902 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6903 file wrapping define name.
6904 * configure: Rebuilt.
6905 * configure.ac (gdb_use_included_regex, --without-included-regex)
6906 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6907 * gdb_regex.h: Move it to common/gdb_regex.h.
6908 * utils.c: Remove include gdb_regex.h.
6909 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6910 (compile_rx_or_error): Move them to common/gdb_regex.c.
6911
6912 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6913 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6916 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6917 common/target-utils.h.
6918 (COMMON_OBS): Add target-utils.o.
6919 (linux-maps.o, target-utils.o): New.
6920 * target/target-utils.c: New file.
6921 * target/target-utils.h: New file.
6922 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6923 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6924 * nat/linux-maps.c: New file.
6925 * nat/linux-maps.h: New file.
6926
6927 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6928 Pedro Alves <palves@redhat.com>
6929
6930 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6931 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6932 (perf_event_read_bts): Change the type of SIZE and READ.
6933 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6934 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6935 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6936 mmap page.
6937 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6938 buffer size to UINT_MAX.
6939 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6940 DATA_TAIL.
6941 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6942 <last_head>: Change type.
6943 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6944 * common/btrace-common.c (btrace_data_append): Change the type of
6945 SIZE.
6946 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6947 check.
6948
6949 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6950
6951 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6952 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6953 with check_typedef.
6954 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6955 (ada_array_length): Likewise.
6956 (find_parallel_type_by_descriptive_type): Likewise.
6957 (ada_check_typedef): Likewise.
6958 * arm-tdep.c (arm_return_in_memory): Likewise.
6959 * ax-gdb.c (gen_trace_static_fields): Likewise.
6960 (gen_struct_ref_recursive): Likewise.
6961 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6962 (variable: block COLONCOLON name): Likewise.
6963 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6964 * c-lang.c (classify_type): Likewise.
6965 * c-typeprint.c (c_print_type): Likewise.
6966 (c_print_typedef): Likewise.
6967 (c_type_print_base): Likewise.
6968 * c-valprint.c (c_val_print): Likewise.
6969 * compile/compile-c-types.c (convert_type): Likewise.
6970 * compile/compile-object-load.c (get_out_value_type): Likewise.
6971 * completer.c (add_struct_fields): Likewise.
6972 (expression_completer): Likewise.
6973 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6974 (cp_lookup_nested_symbol_1): Likewise.
6975 (cp_lookup_nested_symbol): Likewise.
6976 * cp-valprint.c (cp_print_value_fields): Likewise.
6977 (cp_print_static_field): Likewise.
6978 * d-valprint.c (d_val_print): Likewise.
6979 * eval.c (evaluate_subexp_standard): Likewise.
6980 (evaluate_subexp_for_sizeof): Likewise.
6981 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6982 * f-typeprint.c (f_type_print_base): Likewise.
6983 * f-valprint.c (f_val_print): Likewise.
6984 * gdbtypes.c (get_discrete_bounds): Likewise.
6985 (create_array_type_with_stride): Likewise.
6986 (type_name_no_tag_or_error): Likewise.
6987 (lookup_struct_elt_type): Likewise.
6988 (get_unsigned_type_max): Likewise.
6989 (internal_type_vptr_fieldno): Likewise.
6990 (set_type_vptr_fieldno): Likewise.
6991 (internal_type_vptr_basetype): Likewise.
6992 (set_type_vptr_basetype): Likewise.
6993 (get_vptr_fieldno): Likewise.
6994 (is_integral_type): Likewise.
6995 (is_scalar_type): Likewise.
6996 (is_scalar_type_recursive): Likewise.
6997 (distance_to_ancestor): Likewise.
6998 (is_unique_ancestor_worker): Likewise.
6999 (check_types_equal): Likewise.
7000 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7001
7002 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7003
7004 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7005 also test for language_d.
7006 (dwarf2_compute_name): Likewise.
7007 (read_func_scope): Likewise.
7008 (read_structure_type): Likewise.
7009 (new_symbol_full): Likewise.
7010 (determine_prefix): Likewise.
7011 (read_import_statement): Use dot as the separator for language_d.
7012 (typename_concat): Likewise, but don't prefix the D main function.
7013
7014 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7015
7016 * nat/linux-namespaces.c (setns): Rename from this ...
7017 (do_setns): ... to this. Support calling setns if it exists.
7018 (mnsh_handle_setns): Call do_setns.
7019
7020 2015-07-13 Yao Qi <yao.qi@linaro.org>
7021
7022 * exec.c (exec_file_attach): Add period at the end of error
7023 message.
7024
7025 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7026
7027 * tui/tui-win.c (window_name_completer): New function.
7028 (focus_completer): Call window_name_completer. All old content
7029 moved into window_name_completer.
7030 (winheight_completer): New function.
7031 (_initialize_tui_win): Rename variable. Add completer to
7032 winheight command. Update doc string on winheight.
7033
7034 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7035
7036 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7037 all nios2 mach variants.
7038
7039 2015-07-10 Kevin Buettner <kevinb@redhat.com>
7040
7041 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7042 of target_read_memory.
7043
7044 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7047 string copy.
7048 (parse_scrolling_args): Likewise.
7049
7050 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7053 names in this function.
7054
7055 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7058 (CMD_NAME): Likewise.
7059 (DATA_NAME): Likewise.
7060 (DISASSEM_NAME): Likewise.
7061 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7062 (tui_set_win_height): Likewise.
7063 (parse_scrolling_args): Likewise.
7064
7065 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7066
7067 * record-btrace.c (record_btrace_goto_begin)
7068 (record_btrace_goto_end, record_btrace_goto): Move call to
7069 print_stack_frame ...
7070 (record_btrace_set_replay): ... here. Set stop_pc.
7071 * record-full.c (record_full_goto_entry): Set stop_pc.
7072
7073 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7074
7075 * NEWS: Mention support for tracepoints on aarch64-linux.
7076
7077 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7078
7079 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7080 function. Return 1.
7081 (the_low_target): Install it.
7082
7083 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7084
7085 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7086 * gdb.trace/collection.exp: Likewise.
7087 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7088 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7089 * gdb.trace/report.exp: Likewise.
7090 * gdb.trace/trace-break.exp: Likewise.
7091 * gdb.trace/unavailable.exp: Likewise.
7092 * gdb.trace/while-dyn.exp: Likewise.
7093
7094 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7095
7096 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7097 (aarch64_gen_return_address): New function.
7098 (aarch64_gdbarch_init): Hook it.
7099
7100 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7101
7102 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7103 swallow NOT_AVAILABLE_ERROR.
7104 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7105 available_p is not set.
7106 (aarch64_stub_frame_unwind_stop_reason): New function.
7107 (aarch64_stub_unwind): Install it.
7108
7109 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7110
7111 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7112 field.
7113 (aarch64_make_prologue_cache_1): New function, factored out from
7114 aarch64_make_prologue_cache. Do not allocate cache. Set
7115 available_p.
7116 (aarch64_make_prologue_cache): Reimplement wrapping
7117 aarch64_make_prologue_cache_1, and swallowing
7118 NOT_AVAILABLE_ERROR.
7119 (aarch64_prologue_frame_unwind_stop_reason): New function.
7120 Return UNWIND_UNAVAILABLE if available_p is not set.
7121 (aarch64_prologue_unwind): Install it.
7122 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7123 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7124 frame_id_build_unavailable_stack if available_p is not set.
7125
7126 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7127
7128 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7129 fields.
7130 (aarch64_scan_prologue): Set prev_pc.
7131 (aarch64_make_prologue_cache): Set func.
7132 (aarch64_make_stub_cache): Set prev_pc.
7133 (aarch64_prologue_this_id): Remove local variables id, pc and
7134 func. Read prev_pc and func from cache.
7135 (aarch64_stub_this_id): Read prev_pc from cache.
7136
7137 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7138
7139 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7140 argument this_cache. Remove unused local variables reg and
7141 unwound_fp. Return early if this_cache is already set. Set
7142 this_cache.
7143 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7144
7145 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7146
7147 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7148 New argument this_cache. Return early if this_cache is already
7149 set. Set this_cache.
7150 (aarch64_prologue_this_id): Update call to
7151 aarch64_make_prologue_cache.
7152 (aarch64_prologue_prev_register): Likewise.
7153 (aarch64_normal_frame_base): Likewise.
7154
7155 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 * c-valprint.c (c_val_print): Factor out memberptr printing code
7158 from c_val_print to ...
7159 (c_val_print_memberptr): ... this new function.
7160
7161 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7162
7163 * c-valprint.c (c_val_print): Factor out int printing code to ...
7164 (c_val_print_int): ... this new function.
7165
7166 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7167
7168 * c-valprint.c (c_val_print): Factor out struct and union
7169 printing code to ...
7170 (c_val_print_struct): ... this new function ...
7171 (c_val_print_union): ... and this new function.
7172
7173 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7174
7175 * c-valprint.c (c_val_print): Factor out pointer printing code
7176 to ...
7177 (c_val_print_ptr): ... this new function.
7178
7179 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7180
7181 * c-valprint.c (c_valprint): Factor our array printing code from
7182 c_val_print to ...
7183 (c_val_print_array): ... this new function.
7184
7185 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7186
7187 * c-valprint.c (c_val_print): Factor out pointer printing code
7188 to ...
7189 (print_unpacked_pointer): ... this new function.
7190
7191 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7192
7193 * c-valprint.c (c_val_print): Remove an assignment to i and move
7194 its declaration.
7195
7196 2015-07-09 Yao Qi <yao.qi@linaro.org>
7197
7198 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7199 argument ptid. Update comments. Caller update.
7200
7201 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7202
7203 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7204 mnt packets.
7205
7206 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7207
7208 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7209
7210 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7211
7212 * progspace.c (delete_program_space): Add missing spaces.
7213
7214 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7215
7216 * inferior.c (delete_inferior_1): Rename to ...
7217 (delete_inferior): ..., remove 'silent' parameter, delete
7218 program space when unused and remove call to prune_program_spaces.
7219 Remove the old, unused, delete_inferior.
7220 (delete_inferior_silent): Remove.
7221 (prune_inferiors): Change call from delete_inferior_1 to
7222 delete_inferior and remove 'silent' parameter. Remove call to
7223 prune_program_spaces.
7224 (remove_inferior_command): Idem.
7225 * inferior.h (delete_inferior_1): Rename to...
7226 (delete_inferior): ..., remove 'silent' parameter and remove the
7227 original delete_inferior.
7228 (delete_inferior_silent): Remove.
7229 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7230 delete_inferior_1 to delete_inferior and remove 'silent'
7231 parameter.
7232 * progspace.c (prune_program_spaces): Remove.
7233 (pspace_empty_p): Rename to...
7234 (program_space_empty_p): ... and make non-static.
7235 (delete_program_space): New.
7236 * progspace.h (prune_program_spaces): Remove declaration.
7237 (program_space_empty_p): New declaration.
7238 (delete_program_space): New declaration.
7239 * monitor.c (monitor_close): Replace call to
7240 delete_thread_silent and delete_inferior_silent with
7241 discard_all_inferiors.
7242
7243 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7244
7245 * defs.h (deprecated_register_changed_hook): Remove prototype.
7246 * interps.c (clear_iterpreter_hooks): Remove reference to
7247 deprecated_register_changed_hook.
7248 * top.c (deprecated_register_changed_hook): Remove prototype.
7249 * valops.c (value_assign): Remove reference to
7250 deprecated_register_changed_hook.
7251 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7252 Add comment documenting the function.
7253 (tui_register_changed_observer): Define.
7254 (tui_install_hooks): Remove reference to
7255 deprecated_register_changed_hook. Set
7256 tui_register_changed_observer.
7257 (tui_remove_hooks): Remove reference to
7258 deprecated_register_changed_hook. Unset
7259 tui_register_changed_observer.
7260
7261 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7262
7263 PR compile/18484
7264 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7265
7266 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
7267
7268 PR exp/18617
7269 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7270
7271 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7272
7273 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7274
7275 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7276
7277 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7278 Use safe_strerror() instead of strerror().
7279
7280 2015-07-07 Yao Qi <yao.qi@linaro.org>
7281
7282 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7283 * features/arm-with-m-fpa-layout.c: Regenerated.
7284 * features/arm-with-m-vfp-d16.xml: Likewise.
7285 * features/arm-with-m-vfp-d16.c: Regenerated.
7286 * features/arm-with-m.xml: Likewise.
7287 * features/arm-with-m.c: Regenerated.
7288 * features/arm-with-neon.xml: Likewise.
7289 * features/arm-with-neon.c: Regenerated.
7290 * features/arm-with-vfpv2.xml: Likewise.
7291 * features/arm-with-vfpv2.c: Regenerated.
7292 * features/arm-with-vfpv3.xml: Likewise.
7293 * features/arm-with-vfpv3.c: Regenerated.
7294
7295 2015-07-07 Yao Qi <yao.qi@linaro.org>
7296
7297 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7298 arm-linux-nat.c.
7299 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7300 elf/external.h.
7301 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7302 if target is 32-bit.
7303 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7304 if target is 32-bit.
7305 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7306 if target is 32-bit.
7307 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7308 if target is 32-bit.
7309 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7310 (aarch64_linux_read_description): Return the right target
7311 description.
7312 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7313 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7314 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7315 arm-linux-tdep.o.
7316
7317 2015-07-07 Yao Qi <yao.qi@linaro.org>
7318
7319 * aarch32-linux-nat.c: New file.
7320 * aarch32-linux-nat.h: New file.
7321 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7322 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7323 aarch32_gp_regcache_supply.
7324 (store_regs): Move code to aarch32-linux-nat.c. Call
7325 aarch32_gp_regcache_collect.
7326 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7327 aarch32_vfp_regcache_supply.
7328 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7329 aarch32_vfp_regcache_collect.
7330 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7331
7332 2015-07-07 Yao Qi <yao.qi@linaro.org>
7333
7334 * arm-linux-nat.c (store_fpregister): Remove.
7335 (store_register): Likewise.
7336 (fetch_fpregister): Likewise.
7337 (fetch_register): Likewise.
7338 (arm_linux_store_inferior_registers): Call store_regs and
7339 store_fpregs instead.
7340 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7341 fetch_regs instead.
7342
7343 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7344
7345 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7346 and focus commands.
7347
7348 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7349
7350 * NEWS: Create a new section for the next release branch.
7351 Rename the section of the current branch, now that it has
7352 been cut.
7353
7354 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7355
7356 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7357 * version.in: Bump version to 7.10.50.DATE-cvs.
7358
7359 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7360
7361 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7362 breakpoints in a special way.
7363 (remove_breakpoint): Likewise.
7364 (mark_breakpoints_out): Likewise.
7365
7366 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7367
7368 * doc/gdb.texinfo (TUI): Add comma after @xref.
7369
7370 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7371
7372 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7373 instead of casting the structure type.
7374
7375 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7376
7377 * valops.c (search_struct_field): Remove OFFSET parameter.
7378 (value_cast_structs): Adjust calls to search_struct_field.
7379 (value_struct_elt): Same.
7380 (find_overload_match): Same.
7381
7382 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7383
7384 * value.c (value_fetch_lazy): Update comment, change return
7385 value to void.
7386 * value.h (value_fetch_lazy): Change return value to void.
7387
7388 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7389
7390 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7391 (tui_win_name): Make parameter and result const.
7392 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7393
7394 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7395
7396 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7397 use printf_unfiltered.
7398 (set_mpx_cmd): Add missing trailing space to command string
7399 literal.
7400 (_initialize_i386_tdep): Give the "mpx" prefix command its
7401 correct name.
7402
7403 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7404
7405 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7406 (enum rx_frame_type): New.
7407 (struct rx_prologue): Add new field `frame_type'.
7408 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7409 parameter in the prologue struct. Add code for recording
7410 locations of PC and PSW for fast interrupt and exception frames.
7411 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7412 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7413 (rx_frame_type): New function.
7414 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7415 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7416 `this_cache'.
7417 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7418 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7419 RX_FRAME_TYPE_FAST_INTERRUPT.
7420 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7421 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7422 (rx_frame_unwind): Use rx_frame_sniffer instead of
7423 default_frame_sniffer.
7424 (rx_frame_unwind): New unwinder.
7425 (rx_gdbarch_init): Register new unwinder.
7426
7427 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7428
7429 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7430 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7431 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7432 and RX_FPSW_REGNUM.
7433 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7434
7435 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7436
7437 Fix GCC false warning.
7438 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7439
7440 2015-07-02 Yao Qi <yao.qi@linaro.org>
7441
7442 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7443 typo in the debugging message.
7444
7445 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7446
7447 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7448 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7449 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7450 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7451 (btrace_maint_clear): New.
7452 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7453 (pt_print_packet, btrace_maint_decode_pt)
7454 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7455 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7456 (maint_btrace_packet_history_cmd)
7457 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7458 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7459 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7460 (maint_info_btrace_cmd, _initialize_btrace): New.
7461 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7462 (btrace_maint_packet_history, btrace_maint_info): New.
7463 (btrace_thread_info) <maint>: New.
7464 * NEWS: Announce it.
7465
7466 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7467
7468 * btrace.c (btrace_fetch): Append the new trace data.
7469 (btrace_clear): Clear the stored trace data.
7470 * btrace.h (btrace_thread_info) <data>: New.
7471 * common/btrace-common.h (btrace_data_clear)
7472 (btrace_data_append): New.
7473 * common/btrace-common.c (btrace_data_clear)
7474 (btrace_data_append): New.
7475
7476 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7477
7478 * nat/linux-btrace.c (linux_enable_bts): Check for
7479 PERF_ATTR_SIZE_VER5.
7480 Check for data_offset and data_size fields. Use them.
7481
7482 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7483
7484 * NEWS: Announce new commands "record btrace pt" and "record pt".
7485 Announce new options "set|show record btrace pt buffer-size".
7486 * btrace.c: Include "rsp-low.h".
7487 Include "inttypes.h".
7488 (btrace_add_pc): Add forward declaration.
7489 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7490 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7491 (btrace_compute_ftrace_pt): New.
7492 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7493 (check_xml_btrace_version): Update version check.
7494 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7495 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7496 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7497 (btrace_pt_children): New.
7498 (btrace_children): Add support for "pt".
7499 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7500 (btrace_conf_children): Add support for "pt".
7501 * btrace.h: Include "intel-pt.h".
7502 (btrace_pt_error): New.
7503 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7504 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7505 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7506 (struct btrace_config_pt): New.
7507 (struct btrace_config)<pt>: New.
7508 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7509 (struct btrace_data)<pt>: New.
7510 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7511 (pt): New.
7512 * features/btrace.dtd (btrace)<pt>: New.
7513 (pt, pt-config, cpu): New.
7514 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7515 (perf_event_pt_event_type, kernel_supports_pt)
7516 (linux_supports_pt): New.
7517 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7518 (linux_enable_bts): Free tinfo on error.
7519 (linux_enable_pt): New.
7520 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7521 (linux_disable_pt): New.
7522 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7523 (linux_fill_btrace_pt_config, linux_read_pt): New.
7524 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7525 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7526 (struct btrace_target_info)<pt>: New.
7527 * record-btrace.c (set_record_btrace_pt_cmdlist)
7528 (show_record_btrace_pt_cmdlist): New.
7529 (record_btrace_print_pt_conf): New.
7530 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7531 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7532 (cmd_record_btrace_pt_start): New.
7533 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7534 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7535 (_initialize_record_btrace): Add new commands.
7536 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7537 (remote_protocol_features): Add "Qbtrace:pt".
7538 Add "Qbtrace-conf:pt:size".
7539 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7540 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7541 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7542 (_initialize_remote): Add new commands.
7543
7544 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7545
7546 * configure.ac: check for libipt
7547 * configure: Regenerate.
7548 * config.in: Regenerate.
7549 * Makefile.in (LIBIPT): New.
7550 (CLIBS): Add $LIBIPT.
7551 * NEWS: document new configure options
7552
7553 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7554
7555 * compile/compile-object-load.c (compile_object_load): Replace debug
7556 message "lookup undefined ELF symbol" by 3 more specific messages.
7557
7558 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7559
7560 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7561 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7562 (rl78_gdbarch_init): Initialize rl78_psw_type.
7563
7564 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7565
7566 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7567 Update commentary. Always refresh the registers when frame
7568 information has changed.
7569 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7570 Change return type to int. Return 1 if frame information has
7571 changed, 0 otherwise.
7572 (tui_before_prompt): Update commentary.
7573 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7574 int.
7575
7576 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7577
7578 PR tui/13378
7579 * frame.c (select_frame): Remove reference to
7580 deprecated_selected_frame_level_changed_hook.
7581 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7582 declaration.
7583 * stack.c (deprecated_selected_frame_level_changed_hook):
7584 Likewise.
7585 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7586 Rename to ...
7587 (tui_refresh_frame_and_register_information): ... this. Bail
7588 out if there is no stack. Don't update register information
7589 unless registers_too_p is true.
7590 (tui_print_frame_info_listing_hook): Rename to ...
7591 (tui_dummy_print_frame_info_listing_hook): ... this.
7592 (tui_before_prompt): New function.
7593 (tui_normal_stop): New function.
7594 (tui_before_prompt_observer): New observer.
7595 (tui_normal_stop_observer): New observer.
7596 (tui_install_hooks): Set
7597 deprecated_print_frame_info_listing_hook to
7598 tui_dummy_print_frame_info_listing_hook. Register
7599 tui_before_prompt_observer to call tui_before_prompt and
7600 tui_normal_stop_observer to call tui_normal_stop. Remove
7601 reference to deprecated_selected_frame_level_changed_hook.
7602 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7603 and tui_normal_stop_observer. Remove reference to
7604 deprecated_selected_frame_level_changed_hook.
7605
7606 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7607
7608 PR tui/13378
7609 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7610 return an int instead of void. Return whether the locator
7611 window has changed.
7612 (tui_show_frame_info): If the locator info has not changed, then
7613 bail out early to avoid refreshing the windows.
7614
7615 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7616
7617 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7618 LOCATOR_WIN to tui_alloc_content.
7619
7620 2015-06-30 Yao Qi <yao.qi@linaro.org>
7621
7622 PR tdep/18605
7623 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7624 instructions.
7625
7626 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7627
7628 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7629 (rx_dwarf_reg_to_regnum): New function.
7630 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7631 unwinding.
7632
7633 2015-06-29 Pedro Alves <palves@redhat.com>
7634
7635 PR threads/18127
7636 * infcall.c (run_inferior_call): On infcall success, if the thread
7637 was marked stopped before, reset it back to stopped.
7638 * infrun.c (resume): Don't suppress the set_running calls when
7639 doing an infcall.
7640 (normal_stop): Only discard the finish_thread_state cleanup if the
7641 infcall succeeded.
7642
7643 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7644
7645 * MAINTAINERS (Write After Approval): Update my email address.
7646
7647 2015-06-26 Keith Seitz <keiths@redhat.com>
7648 Doug Evans <dje@google.com>
7649
7650 PR 16253
7651 * block.c (block_lookup_symbol): For non-function blocks,
7652 continue to search for a symbol with an exact domain match
7653 Otherwise, return any previously found "best domain" symbol.
7654 (block_lookup_symbol_primary): Likewise.
7655
7656 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7657
7658 * NEWS: Mention the new option "history remove-duplicates".
7659 * top.c (history_remove_duplicates): New static variable.
7660 (show_history_remove_duplicates): New static function.
7661 (gdb_add_history): Conditionally remove duplicate history
7662 entries.
7663 (init_main): Add "history remove-duplicates" option.
7664
7665 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7666
7667 * tui/tui-win.c (focus_completer): New static function.
7668 (_initialize_tui_win): Set the completion function of the
7669 "focus" command to focus_completer.
7670
7671 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7672
7673 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7674 and language_asm..
7675 * symtab.c (find_function_start_sal): Likewise.
7676
7677 2015-06-25 Gary Benson <gbenson@redhat.com>
7678
7679 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7680 it is the empty string after trailing slashes have been stripped.
7681
7682 2015-06-25 Gary Benson <gbenson@redhat.com>
7683
7684 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7685 * infrun.c (follow_exec): Likewise.
7686 * remote.c (remote_filesystem_is_local): Likewise.
7687 * solib.c (solib_find_1): Likewise.
7688
7689 2015-06-24 Keith Seitz <keiths@redhat.com>
7690
7691 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7692 return value from lrealpath.
7693
7694 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7695
7696 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7697
7698 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7699
7700 * remote-sim.c: Include gdb_bfd.h.
7701 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7702 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7703
7704 2015-06-24 Yao Qi <yao.qi@linaro.org>
7705
7706 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7707 set_gdbarch_get_siginfo_type.
7708 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7709 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7710 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7711 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7712 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7713 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7714 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7715 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7716 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7717 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7718
7719 2015-06-24 Gary Benson <gbenson@redhat.com>
7720
7721 * common/buffer.c (stdint.h): Do not include.
7722 * common/print-utils.c (stdint.h): Likewise.
7723 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7724 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7725 * ft32-tdep.c (gdb_assert.h): Likewise.
7726 * guile/scm-utils.c (stdint.h): Likewise.
7727 * i386-linux-tdep.c (stdint.h): Likewise.
7728 * i386-tdep.c (stdint.h): Likewise.
7729 * nat/linux-btrace.c (stdint.h): Likewise.
7730 * nat/linux-btrace.h (stdint.h): Likewise.
7731 * nat/linux-ptrace.c (stdint.h): Likewise.
7732 * nat/mips-linux-watch.h (stdint.h): Likewise.
7733 * ppc-linux-nat.c (stdint.h): Likewise.
7734 * python/python-internal.h (stdint.h): Likewise.
7735 * stub-termcap.c (stdlib.h): Likewise.
7736 * target/target.h (stdint.h): Likewise.
7737 * xtensa-linux-nat.c (stdint.h): Likewise.
7738
7739 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7740
7741 * top.c (init_history): Look at errno after calling strtol to
7742 properly map large GDBHISTSIZE values to infinity.
7743
7744 2015-06-23 Doug Evans <dje@google.com>
7745
7746 * inferior.h (struct inferior_suspend_state): Delete, unused.
7747 All references deleted.
7748
7749 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7750
7751 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7752 (microblaze_push_dummy_call): Likewise.
7753 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7754 and set_gdbarch_push_dummy_call.
7755
7756 2015-06-23 Yao Qi <yao.qi@linaro.org>
7757
7758 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7759 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7760 (amd64_linux_store_inferior_registers): Likewise.
7761 * arm-linux-nat.c (fetch_fpregister): Likewise.
7762 (fetch_fpregs, store_fpregister): Likewise.
7763 (store_fpregister, store_fpregs): Likewise.
7764 (fetch_register, fetch_regs): Likewise.
7765 (store_register, store_regs): Likewise.
7766 (fetch_vfp_regs, store_vfp_regs): Likewise.
7767 (arm_linux_read_description): Check have_ptrace_getregset is
7768 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7769 or TRIBOOL_FALSE.
7770 * i386-linux-nat.c (fetch_xstateregs): Check
7771 have_ptrace_getregset is not TRIBOOL_TRUE.
7772 (store_xstateregs): Likewise.
7773 * linux-nat.c (have_ptrace_getregset): Change its type to
7774 enum tribool.
7775 * linux-nat.h (tribool): New enum.
7776 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7777 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7778
7779 2015-06-19 Doug Evans <dje@google.com>
7780
7781 * NEWS: Mention Sun's version of stabs is no longer supported.
7782 * elfread.c (free_elfinfo): Delete. All uses updated.
7783 (elfstab_offset_sections): Delete. All uses updated.
7784 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7785 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7786 All uses updated.
7787 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7788 All callers updated.
7789
7790 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7791
7792 * common/rsp-low.c (needs_escaping): New.
7793 (remote_escape_output): Add unit_size parameter. Refactor to
7794 support multi-byte addressable units. Rename parameters.
7795 * common/rsp-low.h (remote_escape_output): Add unit_size
7796 parameter and rename others. Update doc.
7797 * remote.c (align_for_efficient_write): New.
7798 (remote_write_bytes_aux): Add unit_size parameter and use it.
7799 Rename some variables. Update doc.
7800 (remote_xfer_partial): Get unit size and use it.
7801 (remote_read_bytes_1): Add unit_size parameter and use it.
7802 Rename some variables. Update doc.
7803 (remote_write_bytes): Same.
7804 (remote_xfer_live_readonly_partial): Same.
7805 (remote_read_bytes): Same.
7806 (remote_flash_write): Update call to remote_write_bytes_aux.
7807 (remote_write_qxfer): Update call to remote_escape_output.
7808 (remote_search_memory): Same.
7809 (remote_hostio_pwrite): Same.
7810
7811 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7812
7813 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7814 locations as inserted.
7815 Update and expand comment about permanent locations.
7816 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7817 Move comment to add_location_to_breakpoint.
7818 (update_global_location_list): Don't error out if a permanent
7819 breakpoint is not marked inserted.
7820 Don't error out if a non-permanent breakpoint location is inserted on
7821 top of a permanent breakpoint.
7822
7823 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7824
7825 * breakpoint.c (make_breakpoint_permanent): Remove unused
7826 function.
7827 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7828
7829 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7830
7831 PR gdb/16999
7832 * NEWS: Mention new GDBHISTSIZE behavior.
7833 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7834 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7835
7836 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7837
7838 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7839 * top.c (init_history): Read from GDBHISTSIZE instead of
7840 HISTSIZE.
7841 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7842
7843 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7844
7845 * top.c (gdb_safe_append_history): Do not call
7846 history_truncate_file if the history is not stifled.
7847
7848 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7849
7850 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7851 * syscalls/s390x-linux.xml: Likewise.
7852
7853 2015-06-16 Michael Eager <eager@eagercon.com>
7854
7855 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7856
7857 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7858
7859 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7860 target_terminal_ours_for_output() before calling
7861 tui_show_frame_info(), and restore the original terminal
7862 settings afterwards.
7863
7864 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7865
7866 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7867
7868 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7869
7870 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7871 memory unit size.
7872 (mi_cmd_data_write_memory_bytes): Same.
7873
7874 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7875
7876 * corefile.c (write_memory): Update doc.
7877 * gdbcore.h (write_memory): Same.
7878
7879 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7880
7881 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7882 (dump_mapping_p): Use it for parameter filterflags.
7883 (linux_find_memory_regions_full): Use it for variable filterflags.
7884
7885 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7886 Jan Kratochvil <jan.kratochvil@redhat.com>
7887
7888 Merge multiple hex conversions.
7889 * monitor.c: Include rsp-low.h.
7890 (fromhex): Remove definition.
7891
7892 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7893 Jan Kratochvil <jan.kratochvil@redhat.com>
7894
7895 Move utility functions to common/.
7896 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7897 Move defs to common/common-utils.c.
7898 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7899 (skip_to_space_const): Move decls to common/common-utils.h.
7900 * common/common-defs.h: Move include of common-types.h before
7901 common-utils.h.
7902 * common/common-utils.c: Include host-defs.h and ctype.h.
7903 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7904 from utils.c.
7905 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7906 cli/cli-utils.c.
7907 * common/common-utils.h (strtoulst): Move decl from utils.h.
7908 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7909 Move from cli/cli-utils.h.
7910 * common/host-defs.h: Include limits.h.
7911 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7912 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7913 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7914 common/common-utils.h.
7915 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7916 (strtoulst): Move to common/common-utils.c.
7917 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7918
7919 2015-06-15 Yao Qi <yao.qi@linaro.org>
7920
7921 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7922
7923 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7924
7925 * build-id.c: Don't include elf-bfd.h.
7926 (build_id_bfd_get): Use bfd_build_id.
7927 (build_id_verify): Ditto.
7928 * build-id.h: Ditto.
7929 (find_separate_debug_file_by_buildid): Ditto.
7930 * python/py-objfile.c: Don't include elf-bfd.h.
7931 (objfpy_get_build_id) Use bfd_build_id.
7932 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7933 * coffread.c: Include build-id.h.
7934 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7935
7936 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7937
7938 * windows-nat.c (do_windows_fetch_inferior_registers)
7939 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7940 conditional with __CYGWIN__.
7941
7942 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7943
7944 * completer.c: Add arch-utils.h include.
7945 (enum reg_completer_targets): New enum.
7946 (reg_or_group_completer_1): New function containing old
7947 reg_or_group_completer, add and use new parameter to control what
7948 is completed on. Use get_current_arch rather than architecture of
7949 currently selected frame.
7950 (reg_or_group_completer): Call new reg_or_group_completer_1.
7951 (reggroup_completer): Call new reg_or_group_completer_1.
7952 * completer.h (reggroup_completer): Add declaration.
7953 * tui/tui-regs.c: Add 'completer.h' include.
7954 (tui_reg_next_command): Renamed to...
7955 (tui_reg_next): ...this. Adjust parameters and return rather than
7956 display new group.
7957 (tui_reg_prev_command): Renamed to...
7958 (tui_reg_prev): ...this. Adjust parameters and return rather than
7959 display new group.
7960 (tui_reg_float_command): Delete.
7961 (tui_reg_general_command): Delete.
7962 (tui_reg_system_command): Delete.
7963 (tui_reg_command): Rewrite to perform switching of register group.
7964 Add header comment.
7965 (tuireglist): Remove.
7966 (tui_reggroup_completer): New function.
7967 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7968 creation of 'tui reg' command.
7969 * NEWS: Add comment about 'tui reg' changes.
7970
7971 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7972
7973 * target.c (target_read): Consider addressable unit size when
7974 reading from a memory object.
7975 (read_memory_robust): Same.
7976 (read_whatever_is_readable): Same.
7977 (target_write_with_progress): Consider addressable unit size
7978 when writing to a memory object.
7979 * target.h (target_read): Update documentation.
7980 (target_write): Add documentation.
7981
7982 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7983
7984 * arch-utils.h (default_addressable_memory_unit_size): New.
7985 * arch-utils.c (default_addressable_memory_unit_size): New.
7986 * gdbarch.sh (addressable_memory_unit_size): New.
7987 * gdbarch.h: Re-generate.
7988 * gdbarch.c: Re-generate.
7989
7990 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7991
7992 * target.c (target_read): Rename variables and use
7993 TARGET_XFER_E_IO.
7994 (target_read_with_progress): Same.
7995 (read_memory_robust): Constify parameters and rename
7996 variables.
7997 (read_whatever_is_readable): Constify parameters,
7998 rename variables, adjust formatting.
7999 * target.h (read_memory_robust): Constify parameters.
8000
8001 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
8002
8003 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8004 synthetic (non-AltiVec) vector types.
8005 (ppc64_sysv_abi_return_value): Likewise.
8006
8007 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8008
8009 PR breakpoints/16465
8010 * breakpoint.c (create_breakpoint): Save extra_string for
8011 pending breakpoints.
8012
8013 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8014
8015 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8016 and bt_mask to CORE_ADDR.
8017
8018 2015-06-11 Gary Benson <gbenson@redhat.com>
8019
8020 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8021 (mnsh_recv_message): Likewise.
8022
8023 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8024
8025 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8026 long long int and plongest instead of %ll.
8027
8028 2015-06-11 Gary Benson <gbenson@redhat.com>
8029
8030 * nat/linux-namespaces.c (gdb_wait.h): New include.
8031 (sys/wait.h): Do not include.
8032
8033 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8034
8035 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8036 end_sequence is true.
8037
8038 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8039
8040 Code cleanup.
8041 * solib-target.c (library_list_start_list): Use explicit NULL
8042 comparison.
8043
8044 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8045
8046 * solib-target.c (library_list_start_list): Do not dereference
8047 variable version in its initialization. Make the VERSION check handle
8048 NULL.
8049 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8050
8051 2015-06-10 Gary Benson <gbenson@redhat.com>
8052
8053 * NEWS: Announce support for direct access of executable and
8054 shared library files when attaching to inferiors in containers
8055 on GNU/Linux systems.
8056
8057 2015-06-10 Gary Benson <gbenson@redhat.com>
8058
8059 * remote.c (struct remote_state) <fs_pid>: New field.
8060 (new_remote_state): Initialize the above.
8061 (PACKET_vFile_setfs): New enum value.
8062 (remote_hostio_set_filesystem): New function.
8063 (remote_hostio_open): Call the above.
8064 (remote_hostio_unlink): Likewise.
8065 (remote_hostio_readlink): Likewise.
8066 (_initialize_remote): Register new "set/show remote
8067 hostio-setfs-packet" command.
8068 * NEWS: Announce new vFile:setfs packet.
8069
8070 2015-06-10 Gary Benson <gbenson@redhat.com>
8071
8072 * linux-nat.c (nat/linux-namespaces.h): New include.
8073 (fileio.h): Likewise.
8074 (linux_nat_filesystem_is_local): New function.
8075 (linux_nat_fileio_pid_of): Likewise.
8076 (linux_nat_fileio_open): Likewise.
8077 (linux_nat_fileio_readlink): Likewise.
8078 (linux_nat_fileio_unlink): Likewise.
8079 (linux_nat_add_target): Initialize to_filesystem_is_local,
8080 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8081 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8082 commands.
8083 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8084
8085 2015-06-10 Gary Benson <gbenson@redhat.com>
8086
8087 * target.h (struct inferior): New forward declaration.
8088 (struct target_ops) <to_filesystem_is_local>: Update comment.
8089 (struct target_ops) <to_fileio_open>: New argument inf.
8090 Update comment. All implementations updated.
8091 (struct target_ops) <to_fileio_unlink>: Likewise.
8092 (struct target_ops) <to_fileio_readlink>: Likewise.
8093 (target_filesystem_is_local): Update comment.
8094 (target_fileio_open): New argument inf. Update comment.
8095 (target_fileio_unlink): Likewise.
8096 (target_fileio_readlink): Likewise.
8097 (target_fileio_read_alloc): Likewise.
8098 (target_fileio_read_stralloc): Likewise.
8099 * target.c (target_fileio_open): New argument inf.
8100 Pass inf to implementation. Update debug printing.
8101 (target_fileio_unlink): Likewise.
8102 (target_fileio_readlink): Likewise.
8103 (target_fileio_read_alloc_1): New argument inf. Pass inf
8104 to target_fileio_open.
8105 (target_fileio_read_alloc): New argument inf. Pass inf to
8106 target_fileio_read_alloc_1.
8107 (target_fileio_read_stralloc): Likewise.
8108 * gdb_bfd.c (inferior.h): New include.
8109 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8110 argument with new argument "inferior". Pass inferior to
8111 target_fileio_open.
8112 (gdb_bfd_open): Supply inferior argument to
8113 gdb_bfd_iovec_fileio_open.
8114 * linux-tdep.c (linux_info_proc): Supply inf argument to
8115 relevant target_fileio calls.
8116 (linux_find_memory_regions_full): Likewise.
8117 (linux_fill_prpsinfo): Likewise.
8118 * remote.c (remote_filesystem_is_local): Supply inf
8119 argument to remote_hostio_open.
8120 (remote_file_put): Likewise.
8121 (remote_file_get): Likewise.
8122 (remote_file_delete): Supply inf argument to
8123 remote_hostio_unlink.
8124
8125 2015-06-10 Gary Benson <gbenson@redhat.com>
8126
8127 * inf-child.c (inf_child_fileio_open): Replace comment.
8128 (inf_child_fileio_pwrite): Likewise.
8129 (inf_child_fileio_pread): Likewise.
8130 (inf_child_fileio_fstat): Insert blank line before comment.
8131 (inf_child_fileio_close): Replace comment.
8132 (inf_child_fileio_unlink): Likewise.
8133 (inf_child_fileio_readlink): Likewise.
8134 * remote.c (remote_hostio_open): Likewise.
8135 (remote_hostio_pread): Likewise.
8136 (remote_hostio_pwrite): Likewise.
8137 (remote_hostio_close): Likewise.
8138 (remote_hostio_unlink): Likewise.
8139 (remote_hostio_readlink): Likewise.
8140 (remote_hostio_fstat): Likewise.
8141 (remote_filesystem_is_local): Likewise.
8142 * target.c (target_fileio_open): Likewise.
8143 (target_fileio_pwrite): Likewise.
8144 (target_fileio_pread): Likewise.
8145 (target_fileio_fstat): Insert blank line before comment.
8146 (target_fileio_close): Replace comment.
8147 (target_fileio_unlink): Likewise.
8148 (target_fileio_readlink): Likewise.
8149 (target_fileio_read_alloc): Likewise.
8150 (target_fileio_read_stralloc): Likewise.
8151
8152 2015-06-10 Gary Benson <gbenson@redhat.com>
8153
8154 * linux-thread-db.c (nat/linux-namespaces.h): New include.
8155 (check_pid_namespace_match): Use linux_ns_same rather than
8156 linux_proc_pid_get_ns to spot PID namespace mismatches.
8157 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
8158 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
8159
8160 2015-06-10 Gary Benson <gbenson@redhat.com>
8161
8162 * configure.ac (AC_CHECK_FUNCS): Add setns.
8163 * config.in: Regenerate.
8164 * configure: Likewise.
8165 * nat/linux-namespaces.h: New file.
8166 * nat/linux-namespaces.c: Likewise.
8167 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
8168 (linux-namespaces.o): New rule.
8169 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
8170 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8171 * config/arm/linux.mh (NATDEPFILES): Likewise.
8172 * config/i386/linux.mh (NATDEPFILES): Likewise.
8173 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8174 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8175 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8176 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8177 * config/mips/linux.mh (NATDEPFILES): Likewise.
8178 * config/pa/linux.mh (NATDEPFILES): Likewise.
8179 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8180 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8181 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8182 * config/s390/linux.mh (NATDEPFILES): Likewise.
8183 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8184 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8185 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8186 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8187
8188 2015-06-10 Gary Benson <gbenson@redhat.com>
8189
8190 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8191 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8192 (make_cleanup_close): Likewise.
8193 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8194 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8195 (make_cleanup_close): Likewise.
8196
8197 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8198
8199 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8200 from SuspendThread().
8201
8202 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8203
8204 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8205 from OutputDebugString.
8206
8207 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8208 Mircea Gherzan <mircea.gherzan@intel.com>
8209
8210 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8211 MPX_BT_MASK_32): New macros.
8212 (i386_mpx_set_bounds): New function that implements
8213 the command "set-mpx-bound".
8214 (i386_mpx_enabled): Helper function to test MPX availability.
8215 (i386_mpx_bd_base): Helper function to calculate the base directory
8216 address.
8217 (i386_mpx_get_bt_entry): Helper function to access a bound
8218 table entry.
8219 (i386_mpx_print_bounds): Effectively display bound information.
8220 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8221 "show mpx".
8222 (_initialize_i386_tdep):
8223 Add "bound" to the commands "show mpx" and "set mpx" commands.
8224 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8225 and "show mpx" commands.
8226 * NEWS: List new commands for MPX support.
8227
8228 2015-06-09 Gary Benson <gbenson@redhat.com>
8229
8230 * common/fileio.h (fileio_to_host_mode): New declaration.
8231 * common/fileio.c (fileio_to_host_mode): New Function.
8232 * inf-child.c (inf_child_fileio_open): Process mode argument
8233 with fileio_to_host_mode.
8234
8235 2015-06-09 Gary Benson <gbenson@redhat.com>
8236
8237 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8238 conditional.
8239
8240 2015-06-05 Gary Benson <gbenson@redhat.com>
8241
8242 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8243 * remote.c (remote_filesystem_is_local): ...here.
8244
8245 2015-06-04 Yao Qi <yao.qi@linaro.org>
8246
8247 * gdbarch.c: Regenerate it.
8248
8249 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8250
8251 * arch-utils.c (default_infcall_munmap): New.
8252 * arch-utils.h (default_infcall_munmap): New declaration.
8253 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8254 (munmap_list_free, munmap_listp_free_cleanup): New.
8255 (struct setup_sections_data): Add field munmap_list_headp.
8256 (setup_sections): Call munmap_list_add.
8257 (compile_object_load): New variable munmap_list_head, initialize
8258 setup_sections_data.munmap_list_headp, return munmap_list_head.
8259 * compile/compile-object-load.h (struct munmap_list): New declaration.
8260 (struct compile_module): Add field munmap_list_head.
8261 (munmap_list_free): New declaration.
8262 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8263 munmap_list_head.
8264 (do_module_cleanup): Call munmap_list_free.
8265 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8266 * gdbarch.c: Regenerate.
8267 * gdbarch.h: Regenerate.
8268 * gdbarch.sh (infcall_munmap): New.
8269 * linux-tdep.c (linux_infcall_munmap): New.
8270 (linux_init_abi): Install it.
8271
8272 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8273
8274 PR gdb/15564
8275 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8276
8277 2015-06-02 Yao Qi <yao.qi@linaro.org>
8278
8279 * i386-linux-nat.c: Include linux-nat.h.
8280
8281 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8282 Jan Kratochvil <jan.kratochvil@redhat.com>
8283
8284 PR symtab/18392
8285 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8286 assertion.
8287 * dwarf2loc.c (chain_candidate): Likewise.
8288
8289 2015-06-01 Yao Qi <yao.qi@linaro.org>
8290
8291 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8292 (store_vfp_regs): Use PTRACE_SETREGSET.
8293
8294 2015-06-01 Yao Qi <yao.qi@linaro.org>
8295
8296 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8297 (fetch_fpregs): Likewise.
8298 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8299 (store_fpregs): Likewise.
8300
8301 2015-06-01 Yao Qi <yao.qi@linaro.org>
8302
8303 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8304 (fetch_regs): Likewise.
8305 (store_regs): Use PTRACE_SETREGSET.
8306 (store_register): Likewise.
8307
8308 2015-06-01 Yao Qi <yao.qi@linaro.org>
8309
8310 * arm-linux-nat.c (arm_linux_read_description): Check whether
8311 kernel supports PTRACE_GETREGSET.
8312
8313 2015-06-01 Yao Qi <yao.qi@linaro.org>
8314
8315 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8316 * linux-nat.c: ... here.
8317 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8318 to ...
8319 * linux-nat.h: ... here.
8320
8321 2015-06-01 Yao Qi <yao.qi@linaro.org>
8322
8323 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8324 * i386-linux-nat.c: Likewise.
8325 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8326 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8327 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8328 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8329 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8330
8331 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8332
8333 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8334 compatible to what read_child and write_child return. This
8335 unbreaks that DJGPP build of GDB which was broken since v7.7.
8336
8337 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8338
8339 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8340
8341 2015-05-29 Roland McGrath <mcgrathr@google.com>
8342
8343 PR gdb/18464
8344 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8345 rather than internal_error for an unrecognized value.
8346
8347 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8348
8349 * xtensa-tdep.c (xtensa_pseudo_register_read)
8350 (xtensa_pseudo_register_write): Don't alias last pseudo register
8351 to a1.
8352
8353 2015-05-28 Don Breazeal <donb@codesourcery.com>
8354
8355 * infrun.c (follow_fork_inferior): Ensure the use of
8356 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8357 messages.
8358
8359 2015-05-28 Doug Evans <dje@google.com>
8360
8361 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8362
8363 2015-05-28 Yao Qi <yao.qi@linaro.org>
8364
8365 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8366 (arm_linux_fetch_inferior_registers): Use
8367 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8368 (arm_linux_store_inferior_registers): Likewise.
8369 (arm_linux_read_description): Don't set
8370 arm_linux_has_wmmx_registers.
8371 * arm-tdep.c (arm_gdbarch_init): Set
8372 tdep->have_wmmx_registers according target descriptions.
8373 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8374 field.
8375
8376 2015-05-28 Yao Qi <yao.qi@linaro.org>
8377
8378 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8379 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8380 instead of arm_linux_vfp_register_count.
8381 (store_vfp_regs): Likewise.
8382 (arm_linux_fetch_inferior_registers): Likewise.
8383 (arm_linux_store_inferior_registers): Likewise.
8384 (arm_linux_read_description): Don't set
8385 arm_linux_vfp_register_count.
8386 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8387 Adjust.
8388 * arm-tdep.c (arm_gdbarch_init): Add assert on
8389 vfp_register_count.
8390 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8391 field to vfp_register_count. All users updated.
8392
8393 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8394
8395 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8396 ELFOSABI_GNU binaries.
8397
8398 2015-05-27 Doug Evans <dje@google.com>
8399
8400 * dwarf2read.c (lnp_state_machine): New typedef.
8401 (lnp_reader_state): New typedef.
8402 (dwarf_record_line_1): Renamed from dwarf_record_line.
8403 All callers updated.
8404 (dwarf_record_line): New function.
8405 (init_lnp_state_machine): New function.
8406 (check_line_address): Replace p_record_line parameter with state.
8407 All callers updated.
8408 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8409 Update to record state in lnp_state_machine.
8410
8411 2015-05-27 Doug Evans <dje@google.com>
8412
8413 * dwarf2read.c (record_line_ftype): New typedef.
8414 (check_line_address): New function.
8415 (dwarf_decode_lines_1): Call it.
8416
8417 2015-05-27 Doug Evans <dje@google.com>
8418
8419 * NEWS: Mention "set debug dwarf-line".
8420 * dwarf2read.c (dwarf_line_debug): New static global.
8421 (add_include_dir): Add debug dwarf-line support.
8422 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8423 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8424
8425 2015-05-27 Doug Evans <dje@google.com>
8426
8427 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8428 All callers updated.
8429 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8430 * cp-support.h (cp_lookup_nested_symbol): Update.
8431
8432 2015-05-27 Doug Evans <dje@google.com>
8433
8434 PR symtab/18258
8435 * block.c (block_find_symbol): New function.
8436 (block_find_non_opaque_type): Ditto.
8437 (block_find_non_opaque_type_preferred): Ditto.
8438 * block.h (block_symbol_matcher_ftype): New typedef.
8439 (block_find_symbol): Declare.
8440 (block_find_non_opaque_type): Ditto.
8441 (block_find_non_opaque_type_preferred): Ditto.
8442 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8443 * psymtab.c (psym_lookup_symbol): Ditto.
8444 * symtab.c (basic_lookup_transparent_type_1): New function.
8445 (basic_lookup_transparent_type): Call it.
8446
8447 2015-05-27 Yao Qi <yao.qi@linaro.org>
8448
8449 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8450 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8451
8452 2015-05-27 Yao Qi <yao.qi@linaro.org>
8453
8454 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8455 before operator &&.
8456 (aarch64_record_load_store): Likewise.
8457
8458 2015-05-26 Doug Evans <dje@google.com>
8459
8460 PR c++/18141, c++/18417.
8461 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8462 a typedef.
8463
8464 2015-05-26 Doug Evans <dje@google.com>
8465
8466 * NEWS: Add entries for command renamings.
8467 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8468 All uses updated.
8469 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8470 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8471 All uses updated.
8472 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8473 All callers updated. Fix spelling of DWARF in help text.
8474 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8475 All uses updated.
8476 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8477 All uses updated.
8478 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8479 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8480 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8481 All uses updated.
8482 (show_dwarf_always_disassemble): Renamed from
8483 show_dwarf2_always_disassemble. All callers updated.
8484 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8485 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8486 "set/show dwarf max-cache-age". Rename
8487 "set/show dwarf2 always-disassemble" to
8488 "set/show dwarf always-disassemble". Rename
8489 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8490 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8491
8492 2015-05-26 Doug Evans <dje@google.com>
8493
8494 PR python/18438
8495 * python/py-lazy-string.c (stpy_convert_to_value): Use
8496 gdbpy_gdb_memory_error not PyExc_MemoryError.
8497 (gdbpy_create_lazy_string_object): Ditto.
8498
8499 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8502
8503 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * tui/tui-regs.c (tui_reg_prev_command): New function.
8506 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8507 * reggroups.c (reggroup_prev): New function.
8508 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8509
8510 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8511 Yao Qi <yao.qi@linaro.org>
8512
8513 * aarch64-linux-tdep.c: Include linux-record.h and
8514 record-full.h.
8515 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8516 (aarch64_syscall): New enum.
8517 (aarch64_canonicalize_syscall): New function.
8518 (aarch64_all_but_pc_registers_record): New function.
8519 (aarch64_linux_syscall_record): New function.
8520 (aarch64_linux_init_abi): Install AArch64 process record
8521 handler. Update to handle syscall recording.
8522 * aarch64-tdep.c: Include record.h and record-full.h.
8523 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8524 (struct aarch64_mem_r): Define.
8525 (aarch64_record_result): New enum.
8526 (struct insn_decode_record): Define.
8527 (insn_decode_record): New typedef.
8528 (aarch64_record_data_proc_reg): New function.
8529 (aarch64_record_data_proc_imm): New function.
8530 (aarch64_record_branch_except_sys): New function.
8531 (aarch64_record_load_store): New function.
8532 (aarch64_record_data_proc_simd_fp): New function.
8533 (aarch64_record_asimd_load_store): New function.
8534 (aarch64_record_decode_insn_handler): New function.
8535 (deallocate_reg_mem): New function.
8536 (aarch64_process_record): New function.
8537 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8538 New field.
8539 (aarch64_process_record): New extern declaration.
8540 * configure.tgt: Add linux-record.o to gdb_target_obs.
8541 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8542
8543 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8544
8545 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8546 targets.
8547
8548 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8549
8550 * amd64-tdep.c: Replace in_function_epilogue_p with
8551 stack_frame_destroyed_p throughout.
8552 * arch-utils.c: Ditto.
8553 * arch-utils.h: Ditto.
8554 * arm-tdep.c: Ditto.
8555 * breakpoint.c: Ditto.
8556 * gdbarch.sh: Ditto.
8557 * hppa-tdep.c: Ditto.
8558 * i386-tdep.c: Ditto.
8559 * mips-tdep.c: Ditto.
8560 * nios2-tdep.c: Ditto.
8561 * rs6000-tdep.c: Ditto.
8562 * s390-linux-tdep.c: Ditto.
8563 * score-tdep.c: Ditto.
8564 * sh-tdep.c: Ditto.
8565 * sparc-tdep.c: Ditto.
8566 * sparc-tdep.h: Ditto.
8567 * sparc64-tdep.c: Ditto.
8568 * spu-tdep.c: Ditto.
8569 * tic6x-tdep.c: Ditto.
8570 * tilegx-tdep.c: Ditto.
8571 * xstormy16-tdep.c: Ditto.
8572 * gdbarch.c, gdbarch.h: Re-generated.
8573
8574 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8575
8576 * NEWS: Mention 'tui enable' and 'tui disable'.
8577 * tui/tui.c (tui_enable_command): New function.
8578 (tui_disable_command): New function.
8579 (_initialize_tui): New function.
8580
8581 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8582
8583 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8584
8585 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8588 buf_ptr is freed.
8589
8590 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8591
8592 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8593 into ...
8594 (tui_set_layout_for_display_command): ...here, before calling
8595 tui_set_layout. Only set the layout if gdb has not already
8596 entered the TUI_FAILURE state.
8597
8598 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8599
8600 * tui/tui-layout.c (layout_completer): New function.
8601 (_initialize_tui_layout): Set completer on layout command.
8602
8603 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * tui/tui-layout.c (tui_set_layout): Remove
8606 tui_register_display_type parameter. Remove all checking of this
8607 parameter, and reindent function. Update header comment.
8608 (tui_set_layout_for_display_command): Rename to...
8609 (tui_set_layout_by_name): ...this, and don't check for different
8610 register class types, don't pass a tui_register_display_type to
8611 tui_set_layout. Update header comment.
8612 (layout_names): Remove register set specific names.
8613 * tui/tui-layout.h (tui_set_layout): Remove
8614 tui_register_display_type parameter.
8615 * tui/tui.c (tui_rl_change_windows): Don't pass a
8616 tui_register_display_type to tui_set_layout.
8617 (tui_rl_delete_other_windows): Likewise.
8618 (tui_enable): Likewise.
8619 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8620 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8621 (TUI_GENERAL_REGS_NAME): Remove.
8622 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8623 (TUI_SPECIAL_REGS_NAME): Remove.
8624 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8625 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8626 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8627 (enum tui_register_display_type): Remove.
8628 (struct tui_layout_def): Remove regs_display_type and
8629 float_regs_display_type fields.
8630 (struct tui_data_info): Remove regs_display_type field.
8631 (tui_layout_command): Use new name for
8632 tui_set_layout_for_display_command.
8633 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8634 (tui_clear_win_detail): Don't initialise removed fields of
8635 win_info.
8636 * tui/tui-regs.c (tui_show_registers): Use new name for
8637 tui_set_layout_for_display_command.
8638 * tui/tui.h (tui_set_layout_for_display_command): Rename
8639 declaration to...
8640 (tui_set_layout_by_name): ...this.
8641 * printcmd.c (display_command): Remove tui related layout call,
8642 and reindent.
8643
8644 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8645
8646 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8647 (handle_inferior_event): New function.
8648
8649 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8650
8651 * ada-lang.c (to_fixed_array_type): Rename local variable
8652 typename into type_name.
8653
8654 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8655
8656 Fix ASAN crash for gdb.compile/compile.exp.
8657 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8658
8659 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8660
8661 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8662 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8663 * compile/compile-object-load.c (setup_sections, compile_object_load):
8664 Likewise.
8665 * compile/compile.c (compile_to_object): Likewise.
8666
8667 2015-05-16 Doug Evans <xdje42@gmail.com>
8668
8669 * NEWS: Mention support for unbuffered Guile memory ports.
8670 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8671 (ioscm_lseek_address): Improve overflow calculation.
8672 (gdbscm_memory_port_fill_input): Add assert.
8673 (gdbscm_memory_port_write): Handle unbuffered ports.
8674 Handle large writes identical to Guile's fport_write.
8675 (gdbscm_memory_port_seek): Fix seeking past end check.
8676 (gdbscm_memory_port_close): Handle closing unbuffered port.
8677 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8678 (ioscm_init_memory_port): Handle unbuffered ports.
8679 (ioscm_reinit_memory_port): Ditto.
8680 (ioscm_init_memory_port): Update size calculation.
8681 (gdbscm_open_memory): Support zero sized ports.
8682
8683 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8684
8685 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8686 variable compiler warnings.
8687
8688 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8689
8690 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8691
8692 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8693 Phil Muldoon <pmuldoon@redhat.com>
8694
8695 * NEWS (Changes since GDB 7.9): Add compile print.
8696 * compile/compile-c-support.c (add_code_header, add_code_footer)
8697 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8698 COMPILE_I_PRINT_VALUE_SCOPE.
8699 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8700 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8701 New.
8702 * compile/compile-object-load.c: Include block.h.
8703 (get_out_value_type): New function.
8704 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8705 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8706 OUT_VALUE_TYPE.
8707 * compile/compile-object-load.h (struct compile_module): Add fields
8708 out_value_addr and out_value_type.
8709 * compile/compile-object-run.c: Include valprint.h and compile.h.
8710 (struct do_module_cleanup): Add fields out_value_addr and
8711 out_value_type.
8712 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8713 COMPILE_I_PRINT_VALUE_SCOPE.
8714 (compile_object_run): Propagate out_value_addr and out_value_type.
8715 Pass OUT_VALUE_ADDR.
8716 * compile/compile.c: Include valprint.h.
8717 (compile_print_value, compile_print_command): New functions.
8718 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8719 (_initialize_compile): Update compile code help text. Install
8720 compile_print_command.
8721 * compile/compile.h (compile_print_value): New prototype.
8722 * defs.h (enum compile_i_scope_types): Add
8723 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8724
8725 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8726
8727 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8728 Rely on its parameter count.
8729 (compile_object_load): Replace lookup_minimal_symbol_text by
8730 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8731 return value.
8732 * compile/compile-object-load.h (struct compile_module): Replace
8733 func_addr by func_sym.
8734 * compile/compile-object-run.c: Include block.h.
8735 (compile_object_run): Reset module variable after it is freed. Use
8736 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8737
8738 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8739
8740 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8741 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8742 (c_compute_program): Call generate_register_struct after typedefs.
8743 * compile/compile-loc2c.c (push, pushf_register_address)
8744 (pushf_register): Cast to GCC_UINTPTR.
8745 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8746 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8747 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8748 * compile/compile.c (_initialize_compile): Enable warnings for
8749 COMPILE_ARGS.
8750
8751 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8752
8753 * cli/cli-script.c (execute_control_command): Update
8754 eval_compile_command caller.
8755 * compile/compile-object-load.c (compile_object_load): Add parameters
8756 scope and scope_data. Set them.
8757 * compile/compile-object-load.h (struct compile_module): Add fields
8758 scope and scope_data.
8759 (compile_object_load): Add parameters scope and scope_data.
8760 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8761 scope and scope_data.
8762 (compile_object_run): Propagate the fields scope and scope_data.
8763 * compile/compile.c (compile_file_command, compile_code_command):
8764 Update eval_compile_command callers.
8765 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8766 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8767 * defs.h (struct command_line): Add field scope_data.
8768
8769 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8770
8771 * printcmd.c (struct format_data): Move it to valprint.h.
8772 (print_command_parse_format, print_value): New functions from ...
8773 (print_command_1): ... here. Call them.
8774 * valprint.h (struct format_data): Move it here from printcmd.c.
8775 (print_command_parse_format, print_value): New declarations.
8776
8777 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8778
8779 * compile/compile-object-load.c (compile_object_load): Add
8780 COMPILE_DEBUG message.
8781
8782 2015-05-15 Jerome Guitton <guitton@adacore.com>
8783
8784 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8785 index to get element instead of enum value.
8786 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8787 of index to compute length, but enum values to compute bounds.
8788 (ada_array_length): Use enum position of index instead of enum value.
8789 (pos_atr): Move position computation to...
8790 (ada_evaluate_subexp): Use enum values to compute bounds.
8791 * gdbtypes.c (discrete_position): ...this new function.
8792 * gdbtypes.h (discrete_position): New function declaration.
8793 * valprint.c (val_print_array_elements): Call discrete_position
8794 to handle array indexed by non-contiguous enumeration types.
8795
8796 2015-05-15 Jerome Guitton <guitton@adacore.com>
8797
8798 * ada-lang.c (find_parallel_type_by_descriptive_type):
8799 Go through typedefs during lookup.
8800 (to_fixed_array_type): Add support for non-bit packed arrays
8801 as variable-length fields.
8802
8803 2015-05-15 Pedro Alves <palves@redhat.com>
8804 Simon Marchi <simon.marchi@ericsson.com>
8805
8806 * event-loop.c (gdb_notifier) <next_file_handler,
8807 next_poll_fds_index>: New fields.
8808 (get_next_file_handler_to_handle_and_advance): New function.
8809 (delete_file_handler): If deleting the next file handler to
8810 handle, advance to the next file handler.
8811 (gdb_wait_for_event): Bail early if no event fired. Poll file
8812 handlers in round-robin fashion.
8813
8814 2015-05-15 Pedro Alves <palves@redhat.com>
8815
8816 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8817 'private' to 'priv'.
8818
8819 2015-05-15 Pedro Alves <palves@redhat.com>
8820
8821 * nat/linux-nat.h: Include "target/waitstatus.h".
8822
8823 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8824
8825 * python/py-unwind.c (struct reg_info): Move out of ...
8826 (struct cached_frame_info): ... this scope.
8827 (pending_frame_object_type, unwind_info_object_type): Make extern.
8828
8829 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8830
8831 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8832 accumSize is never negative.
8833
8834 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8835
8836 * tui/tui-command.c: Remove include of <ctype.h>.
8837 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8838
8839 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8840
8841 * dwarf2read.c (die_needs_namespace): Return 1 for
8842 DW_TAG_inlined_subroutine.
8843
8844 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8845
8846 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8847 (regcache_cpy_no_passthrough): Make it static, add function comment.
8848 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8849 (regcache_cpy_no_passthrough): Remove declaration.
8850
8851 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8852
8853 * gdbthread.h (struct thread_control_state): Update comment for
8854 proceed_to_finish.
8855 * infcall.c (run_inferior_call): Update comment about
8856 proceed_to_finish.
8857 * infcmd.c (get_return_value): Update comment about stop_registers.
8858 (finish_forward): Update comment about proceed_to_finish.
8859 * infrun.c (stop_registers): Remove.
8860 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8861 * infrun.h (stop_registers): Remove.
8862
8863 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8864
8865 * infcall.c (struct dummy_frame_context_saver)
8866 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8867 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8868 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8869 New.
8870 (call_function_by_hand_dummy): Move discard_cleanups of
8871 inf_status_cleanup before dummy_frame_push. Call
8872 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8873 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8874 * infcall.h (struct dummy_frame_context_saver)
8875 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8876 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8877 New declarations.
8878 * infcmd.c: Include infcall.h.
8879 (get_return_value): Add parameter ctx_saver, use it instead of
8880 stop_registers.
8881 (print_return_value): Add parameter ctx_saver, pass it.
8882 (struct finish_command_continuation_args): Add field ctx_saver.
8883 (finish_command_continuation): Update print_return_value caller.
8884 (finish_command_continuation_free_arg): Free also ctx_saver.
8885 (finish_forward): Call dummy_frame_context_saver_setup.
8886 * inferior.h (struct dummy_frame_context_saver): New declaration.
8887 (get_return_value): Add parameter ctx_saver.
8888 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8889 get_return_value caller.
8890
8891 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8892
8893 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8894 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8895 (remove_dummy_frame): Process dtor_list.
8896 (pop_dummy_frame): Process dtor_list.
8897 (register_dummy_frame_dtor): Maintain dtor_list.
8898 (find_dummy_frame_dtor): Handle dtor_list.
8899 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8900 Update comments.
8901
8902 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8903
8904 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8905 registers_valid.
8906 (compile_object_run): Update do_module_cleanup caller.
8907 * dummy-frame.c: Include infcall.h.
8908 (struct dummy_frame): Update dtor comment.
8909 (remove_dummy_frame): Call dtor.
8910 (pop_dummy_frame): Update dtor caller.
8911 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8912 registers_valid.
8913
8914 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8915
8916 GDB 7.9.1 released.
8917
8918 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8919
8920 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8921 Xmethods now being able to specify a result type to that new
8922 sectioin.
8923
8924 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8925
8926 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8927 first before resizing the window.
8928 * tui/tui.c (tui_enable): Likewise.
8929
8930 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8931
8932 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8933 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8934 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8935 dummy_dtor parameter.
8936 * infcall.h: Include dummy-frame.h.
8937 (call_function_by_hand_dummy_dtor_ftype): Remove.
8938 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8939 parameter.
8940
8941 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8942
8943 PR gdb/17820
8944 * top.c (history_size_setshow_var): Change type to signed.
8945 Initialize to -2. Update documentation.
8946 (set_readline_history_size): Define.
8947 (set_history_size_command): Use it. Remove logic for handling
8948 out-of-range sizes.
8949 (init_history): Use set_readline_history_size(). Test for a
8950 value of -2 instead of 0 when determining whether to set a
8951 default history size.
8952 (init_main): Decode the argument of the "size" command as a
8953 zuinteger_unlimited.
8954
8955 2015-05-12 Doug Evans <dje@google.com>
8956
8957 * dwarf2read.c (struct file_entry): Tweak comments.
8958 (get_debug_line_section): Tweak comments.
8959
8960 2015-05-12 Don Breazeal <donb@codesourcery.com>
8961
8962 * NEWS: Announce fork support in the RSP and support
8963 for fork debugging in extended mode.
8964
8965 2015-05-12 Don Breazeal <donb@codesourcery.com>
8966
8967 * remote.c (remote_insert_fork_catchpoint): New function.
8968 (remote_remove_fork_catchpoint): New function.
8969 (remote_insert_vfork_catchpoint): New function.
8970 (remote_remove_vfork_catchpoint): New function.
8971 (pending_fork_parent_callback): New function.
8972 (remove_new_fork_child): New function.
8973 (remote_update_thread_list): Call remote_notif_get_pending_events
8974 and remove_new_fork_child.
8975 (extended_remote_kill): Kill fork child when killing the
8976 parent before follow_fork completes.
8977 (init_extended_remote_ops): Initialize target vector with
8978 new fork catchpoint functions.
8979
8980 2015-05-12 Don Breazeal <donb@codesourcery.com>
8981
8982 * remote.c (remove_vfork_event_p): New function.
8983 (remote_follow_fork): Add vfork event type to event checking.
8984 (remote_parse_stop_reply): New stop reasons "vfork" and
8985 "vforkdone" for RSP 'T' Stop Reply Packet.
8986
8987 2015-05-12 Don Breazeal <donb@codesourcery.com>
8988
8989 * linux-nat.c (linux_nat_ptrace_options): New function.
8990 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8991 Call linux_nat_ptrace_options and use different argument to
8992 linux_enable_event_reporting.
8993 (_initialize_linux_nat): Delete call to
8994 linux_ptrace_set_additional_flags.
8995 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8996 supported_ptrace_options.
8997 (additional_flags): Delete variable.
8998 (linux_check_ptrace_features): Use supported_ptrace_options.
8999 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9000 Likewise, and remove additional_flags check.
9001 (linux_enable_event_reporting): Change 'attached' argument to
9002 'options'. Use supported_ptrace_options.
9003 (ptrace_supports_feature): Change comment. Use
9004 supported_ptrace_options.
9005 (linux_ptrace_set_additional_flags): Delete function.
9006 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9007 Delete function prototype.
9008 * remote.c (remote_fork_event_p): New function.
9009 (remote_detach_pid): New function.
9010 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9011 if doing detach-on-fork.
9012 (remote_follow_fork): New function.
9013 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9014 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9015 (init_extended_remote_ops): Initialize to_follow_fork.
9016
9017 2015-05-12 Don Breazeal <donb@codesourcery.com>
9018
9019 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9020 from static to extern.
9021 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9022 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9023 * PACKET_vfork_event_feature>: New enumeration constants.
9024 (remote_protocol_features): Add table entries for new packets.
9025 (remote_query_supported): Add new feature queries to qSupported
9026 packet.
9027
9028 2015-05-12 Gary Benson <gbenson@redhat.com>
9029
9030 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9031 for fake PIDs as well as real ones.
9032 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9033
9034 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9035
9036 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9037 * python/py-value.c (valpy_reference_value): New function.
9038 (valpy_const_value): Likewise.
9039 (value_object_methods): Add new methods.
9040 * value.c (make_cv_value): New function.
9041 * value.h (make_cv_value): Declare.
9042
9043 2015-05-08 Yao Qi <yao@codesourcery.com>
9044 Sandra Loosemore <sandra@codesourcery.com>
9045
9046 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9047 to 'lh->include_dirs' before accessing to it.
9048 (psymtab_include_file_name): Likewise.
9049 (dwarf_decode_lines_1): Likewise.
9050 (dwarf_decode_lines): Likewise.
9051 (file_file_name): Likewise.
9052
9053 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9054
9055 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9056 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9057 (nios2_linux_rt_sigreturn_init): Adjust base address of
9058 register save area.
9059
9060 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9061
9062 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9063 "trap 31" as the breakpoint instruction on all targets.
9064
9065 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9066
9067 * infcmd.c (print_return_value): Remove unused declaration.
9068
9069 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9070
9071 * dwarf2read.c (attr_to_dynamic_prop)
9072 <DW_AT_data_member_location>: Use read_type_die isntead of
9073 get_die_type.
9074
9075 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9076
9077 * ada-lang.c (ada_convert_actual): Add handling of formals
9078 passed inside an aligner type.
9079
9080 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9081
9082 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9083
9084 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9085
9086 PR python/18291
9087 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9088 Print xmethod matcher status.
9089
9090 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9091
9092 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9093 register in the regcache when treating the PSWM register, and vice
9094 versa.
9095
9096 2015-05-07 Gary Benson <gbenson@redhat.com>
9097
9098 * linux-thread-db.c (struct thread_db_info)
9099 <td_ta_map_id2thr_p>: Remove field.
9100 (try_thread_db_load_1): Remove initialization for the above.
9101
9102 2015-05-07 Gary Benson <gbenson@redhat.com>
9103
9104 * linux-thread-db.c (struct thread_db_info)
9105 <td_thr_validate_p>: Remove field.
9106 (try_thread_db_load_1): Remove initialization for the above.
9107
9108 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9109
9110 * compile/compile-object-load.c (compile_object_load): Support
9111 mst_text_gnu_ifunc.
9112
9113 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9114
9115 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9116 const. Use new variables for the const compatibility.
9117 (eval_compile_command): Make the cmd_string parameter const.
9118 * compile/compile.h (eval_compile_command): Make the cmd_string
9119 parameter const.
9120
9121 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9122
9123 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9124 comment.
9125 * top.c (deprecated_init_ui_hook): Delete.
9126 (gdb_init): Remove handling of deprecated_init_ui_hook.
9127 * interps.c (clear_interpreter_hooks): Remove handling of
9128 deprecated_init_ui_hook.
9129 * main.c (captured_main): Update comment.
9130
9131 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9132
9133 * solib.c (_initialize_solib): Add "info dll" alias creation.
9134 * windows-nat.c (set_windows_aliases): Delete.
9135 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9136 assignment.
9137 * NEWS: Add news entry about "info dll" now being available
9138 on all platforms.
9139
9140 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9141
9142 * ada-lang.c (value_assign_to_component): Reformat and improve
9143 documentation. Remove all trailing spaces.
9144
9145 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9146
9147 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9148 Stop counting inlined frames as soon as an out-of-line function
9149 is found.
9150
9151 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9152
9153 * dwarf2read.c (inherit_abstract_dies): Skip
9154 DW_TAG_GNU_call_site dies while inheriting children of an
9155 abstract DIE into a scope.
9156 (read_lexical_block_scope): Inherit abstract DIE's for
9157 lexical scopes.
9158
9159 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9160
9161 * ada-valprint.c (val_print_packed_array_elements): Delete
9162 variable "len". Add a type-length check when comparing two
9163 consecutive elements of the array. Use the element's actual
9164 length in call to value_contents_eq.
9165 * ada-lang.c (ada_value_primitive_packed_val): Always return
9166 a value whose type has been resolved.
9167
9168 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9169
9170 * ada-lang.c (ada_value_primitive_packed_val): Recompute
9171 BIT_SIZE and LEN if the size of the resolved type is smaller
9172 than BIT_SIZE * HOST_CHAR_BIT.
9173
9174 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9175
9176 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9177 correct address in call to value_at. Adjust call to
9178 value_address accordingly.
9179
9180 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9181
9182 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9183 to print it.
9184
9185 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9186
9187 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9188 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9189 pinfo->valaddr.
9190 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9191 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9192 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9193 Add handling of addr_stack->valaddr.
9194 (resolve_dynamic_type): Add "valaddr" parameter.
9195 Set pinfo.valaddr field.
9196 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9197 resolve_dynamic_type.
9198 (ada_discrete_type_low_bound): Likewise.
9199 * findvar.c (default_read_var_value): Likewise.
9200 * value.c (value_from_contents_and_address): Likewise.
9201
9202 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9203
9204 * gdbtypes.c (resolve_dynamic_array): Use
9205 create_array_type_with_stride instead of create_array_type.
9206
9207 2015-04-30 DJ Delorie <dj@redhat.com>
9208
9209 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9210 rl78_decode_opcode
9211
9212 2015-04-29 Doug Evans <dje@google.com>
9213
9214 PR python/18285
9215 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9216 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9217 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9218 * extension-priv.h (struct extension_language_ops)
9219 <get_xmethod_result_type>: New member.
9220 * extension.c (get_xmethod_result_type): New function.
9221 * extension.h (get_xmethod_result_type): Declare.
9222 * python/py-xmethods.c (get_result_type_method_name): New static
9223 global.
9224 (py_get_result_type_method_name): Ditto.
9225 (gdbpy_get_xmethod_result_type): New function.
9226 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9227 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9228 * python/python.c (python_extension_ops): Add
9229 gdbpy_get_xmethod_result_type.
9230 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9231 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9232 xmethods.
9233 (value_x_unop): Ditto.
9234 * value.c (result_type_of_xmethod): New function.
9235 * value.h (result_type_of_xmethod): Declare.
9236
9237 2015-04-29 Gary Benson <gbenson@redhat.com>
9238
9239 * solib.c (solib_find_1): Allow fd argument to be NULL.
9240 (exec_file_find): Update comment.
9241 (solib_find): Likewise.
9242 * exec.c (exec_file_locate_attach): Use NULL as fd
9243 argument to exec_file_find to avoid having to close
9244 the opened file.
9245 * infrun.c (follow_exec): Likewise.
9246
9247 2015-04-28 Doug Evans <dje@google.com>
9248
9249 PR python/18299
9250 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9251 name or __name__ attributes. Handle gdb module as first argument.
9252
9253 2015-04-28 Doug Evans <dje@google.com>
9254
9255 PR python/18089
9256 * python/py-prettyprint.c (print_children): Verify result of children
9257 iterator. Provide better error message.
9258 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9259 * python/python.c (gdbpy_print_python_errors_p): New function.
9260
9261 2015-04-28 Doug Evans <dje@google.com>
9262
9263 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9264
9265 2015-04-28 Sasha Smundak <asmundak@google.com>
9266
9267 * NEWS: Mention gdb.Type.optimized_out method.
9268 * python/py-type.c (typy_optimized_out): New function.
9269
9270 2015-04-28 John Baldwin <jhb@FreeBSD.org>
9271
9272 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9273
9274 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9275
9276 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9277 (initialize_utils): Move call of init_page_info() to ...
9278 * top.c (gdb_init): ... here.
9279
9280 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9281
9282 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9283 (tui_sigwinch_handler): Still update our idea of
9284 the terminal's width and height even when TUI is not active.
9285
9286 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9287
9288 * utils.h (set_screen_width_and_height): Declare.
9289 * utils.c (set_screen_width_and_height): Define.
9290 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9291
9292 2015-04-28 Gary Benson <gbenson@redhat.com>
9293
9294 * infrun.c (solist.h): New include.
9295 (follow_exec): Use exec_file_find to prefix execd_pathname
9296 with gdb_sysroot.
9297
9298 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9299
9300 * tui/tui-source.c (tui_set_source_content): Avoid calling
9301 strcpy() when offset is 0.
9302
9303 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9304
9305 PR gdb/18155
9306 * tui/tui-data.c (tui_free_window): Don't free the locator
9307 window when passed an SRC_WIN or a DISASSEM_WIN.
9308
9309 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9310
9311 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9312 (tui_win_content): Move declaration.
9313 (struct tui_gen_win_info): Give 'content' field the
9314 type tui_win_content.
9315 * tui/tui-data.c (init_content_element): Remove redundant and
9316 erroneous casts.
9317 (tui_add_content_elements): Remove erroneous cast.
9318 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9319 casts.
9320 (tui_get_begin_asm_address): Likewise.
9321 * tui/tui-regs.c (tui_show_registers): Likewise.
9322 (tui_show_register_group): Likewise.
9323 (tui_display_registers_from): Likewise.
9324 (tui_check_register_values): Likewise.
9325 * tui/tui-source.c (tui_set_source_content): Likewise.
9326 (tui_set_source_content_nil): Likewise.
9327 (tui_source_is_displayed): Likewise.
9328 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9329 (tui_set_locator_fullname): Likewise.
9330 (tui_set_locator_info): Likewise.
9331 (tui_show_frame_info): Likewise.
9332 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9333 (tui_show_source_line): Likewise.
9334 (tui_horizontal_source_scroll): Likewise.
9335 (tui_update_breakpoint_info): Likewise.
9336 (tui_set_exec_info_content): Likewise.
9337 (tui_show_exec_info_content): Likewise.
9338 (tui_alloc_source_buffer): Likewise.
9339 (tui_line_is_displayed): Likewise.
9340 (tui_addr_is_displayed): Likewise.
9341
9342 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9343
9344 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9345 event if PL_FLAG_EXEC is set.
9346 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9347 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9348 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9349 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9350 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9351
9352 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9353
9354 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9355 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9356 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9357 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9358 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9359 [PT_LWPINFO] (fbsd_wait): New function.
9360 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9361 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9362 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9363 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9364 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9365 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9366 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9367 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9368 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9369 "fbsd_wait".
9370 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9371 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9372 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9373 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9374 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9375 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9376 Set "to_post_attach" to "fbsd_post_attach".
9377
9378 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9379
9380 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9381 (fbsd_find_memory_regions): Mark static.
9382 (fbsd_nat_add_target): New function.
9383 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9384 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9385 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9386 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9387 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9388 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9389
9390 2015-04-27 Gary Benson <gbenson@redhat.com>
9391
9392 * objfiles.c (allocate_objfile): Do not attempt to expand name
9393 if name is a "target:" filename.
9394 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9395 to load auto-load scripts for objfiles with "target:" filenames.
9396
9397 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9398
9399 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9400 (enum s390_vector_abi_kind): New enum.
9401 (struct gdbarch_tdep)<vector_abi>: New field.
9402 (s390_effective_inner_type): Add parameter min_size. Stop
9403 unwrapping if the inner type is smaller than min_size.
9404 (s390_function_arg_float): Adjust call to
9405 s390_effective_inner_type.
9406 (s390_function_arg_vector): New function.
9407 (s390_function_arg_integer): Adjust comment.
9408 (struct s390_arg_state)<vr>: New field.
9409 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9410 arguments according to vector ABI when appropriate.
9411 (s390_push_dummy_call): Initialize the argument state's field
9412 'vr'. Adjust calls to s390_handle_arg.
9413 (s390_register_return_value): Handle vector return values.
9414 (s390_return_value): Apply the "register" return value convention
9415 to a vector when appropriate.
9416 (s390_gdbarch_init): Initialize tdep->vector_abi.
9417 * NEWS: Announce S390 vector ABI support.
9418
9419 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9420
9421 * s390-linux-tdep.c (s390_return_value_convention): Remove
9422 function. Inline its logic...
9423 (s390_return_value): ...here. Instead, move the handling of the
9424 "register" return value convention...
9425 (s390_register_return_value): ...here. New function.
9426
9427 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9428
9429 * s390-linux-tdep.c
9430 (is_float_singleton): Remove function. Move the "singleton" part
9431 of the logic...
9432 (s390_effective_inner_type): ...here. New function.
9433 (is_float_like): Remove function. Inline its logic...
9434 (s390_function_arg_float): ...here.
9435 (is_pointer_like, is_integer_like, is_struct_like): Remove
9436 functions. Inline their logic...
9437 (s390_function_arg_integer): ...here.
9438 (s390_function_arg_pass_by_reference): Remove function.
9439 (extend_simple_arg): Remove function.
9440 (alignment_of): Remove function.
9441 (struct s390_arg_state): New structure.
9442 (s390_handle_arg): New function.
9443 (s390_push_dummy_call): Move parameter placement logic to the new
9444 function s390_handle_arg. Call it for calculating the stack area
9445 sizes first, and again for actually writing the parameters.
9446
9447 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9448
9449 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9450 false if the argument is zero.
9451
9452 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9453
9454 * ada-lang.c (template_to_static_fixed_type): Return input type
9455 when it is already fixed. Cache the input type itself when not
9456 creating a static fixed copy. Make it explicit that we never
9457 molestate the input type.
9458 * gdbtypes.c (resolve_dynamic_struct): Reset the
9459 TYPE_TARGET_TYPE field for resolved copies.
9460
9461 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9462
9463 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9464 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9465 (template_to_static_fixed_type): Call ada_check_typedef only
9466 when necessary.
9467
9468 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9469
9470 * cli/cli-dump.c (srec_dump_command): Add internationalization
9471 mark ups.
9472 (ihex_dump_command): Likewise.
9473 (tekhex_dump_command): Likewise.
9474 (binary_dump_command): Likewise.
9475 (binary_append_command): Likewise.
9476
9477 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9478
9479 * cli/cli-dump.c (verilog_cmdlist): New variable.
9480 (dump_verilog_memory): New function.
9481 (dump_verilog_value): New function.
9482 (verilog_dump_command): New function.
9483 (_initialize_cli_dump): Add new commands to support verilog dump
9484 format.
9485 * NEWS: Add entry for "dump verilog".
9486
9487 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9488
9489 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9490 descriptive type when there is none.
9491
9492 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9493
9494 * tui/tui-win.c (tui_async_resize_screen): Call
9495 rl_resize_terminal().
9496
9497 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9498
9499 * windows-nat.c (handle_output_debug_string): Don't change
9500 current_event.dwThreadId.
9501 (get_windows_debug_event): Use thread_id, rather than relying on
9502 current_event.dwThreadId being changed.
9503
9504 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9505
9506 * windows-nat.c (windows_continue): Report an error if
9507 ContinueDebugEvent() fails.
9508
9509 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9510
9511 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9512
9513 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9514
9515 * windows-nat.c (get_windows_debug_event): Replace retval with
9516 thread_id throughout. Update stale comment.
9517
9518 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9519
9520 * windows-nat.c (get_windows_debug_event): Don't use ternary
9521 conditional operator.
9522
9523 2015-04-21 Pierre Muller <muller@sourceware.org>
9524
9525 PR pascal/17815
9526 p-exp.y (yylex): Reorganize code to return the matched pattern
9527 for a field of this.
9528
9529 2015-04-21 Gary Benson <gbenson@redhat.com>
9530
9531 * common/fileio.h (fileio_to_host_openflags): New declaration.
9532 * common/fileio.c (fcntl.h): New include.
9533 (fileio_to_host_openflags): New function, factored out from...
9534 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9535 Single use updated.
9536
9537 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9538
9539 * rl78-tdep.c (RL78_SP_ADDR): Define.
9540 (opc_reg_to_gdb_regnum): New static function.
9541 (rl78_analyze_prologue): Recognize instructions forming slightly
9542 more interesting prologues.
9543
9544 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9545
9546 Revert:
9547 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9548 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9549 TYPE_CODE_REF types so that they are not considered as dynamic
9550 depending on the referenced type.
9551 (resolve_dynamic_type_internal): Likewise.
9552
9553 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9554
9555 Revert:
9556 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9557 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9558 "top_level" parameter.
9559 (resolve_dynamic_type_internal): Remove the unused "top_level"
9560 parameter. Update call to is_dynamic_type_internal.
9561 (is_dynamic_type): Update call to is_dynamic_type_internal.
9562 (resolve_dynamic_range): Update call to
9563 resolve_dynamic_type_internal.
9564 (resolve_dynamic_union): Likewise.
9565 (resolve_dynamic_struct): Likewise.
9566 (resolve_dynamic_type): Likewise.
9567
9568 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9569
9570 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9571 xmalloc.
9572
9573 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9574
9575 * reply_mig_hack.awk: Robustify parsing.
9576
9577 * reply_mig_hack.awk: Don't bother to declare an intermediate
9578 function pointer variable.
9579
9580 2015-04-17 Doug Evans <dje@google.com>
9581
9582 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9583 to "exec_displacement" to avoid confusion with inner use of the name.
9584
9585 2015-04-17 Pedro Alves <palves@redhat.com>
9586
9587 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9588 if HW point of TYPE isn't supported.
9589
9590 2015-04-17 Yao Qi <yao.qi@linaro.org>
9591 Pedro Alves <palves@redhat.com>
9592
9593 * target.h (target_can_use_hardware_watchpoint): Update comments.
9594 Remove trailing ";".
9595
9596 2015-04-17 Gary Benson <gbenson@redhat.com>
9597
9598 * remote.c (remote_add_inferior): New argument try_open_exec.
9599 If nonzero, attempt to open the inferior's executable file as
9600 the main executable if no main executable is open already.
9601 All callers updated.
9602 * NEWS: Mention that GDB now supports automatic location and
9603 retrieval of executable + files from remote targets.
9604
9605 2015-04-17 Gary Benson <gbenson@redhat.com>
9606
9607 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9608 * remote.c (PACKET_qXfer_exec_file): Likewise.
9609 (remote_protocol_features): Register the
9610 "qXfer:exec-file:read" feature.
9611 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9612 (remote_pid_to_exec_file): New function.
9613 (init_remote_ops): Initialize to_pid_to_exec_file.
9614 (_initialize_remote): Register new "set/show remote
9615 pid-to-exec-file-packet" command.
9616 * NEWS: Announce new qXfer:exec-file:read packet.
9617
9618 2015-04-17 Gary Benson <gbenson@redhat.com>
9619
9620 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9621 New declaration.
9622 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9623 New function, factored out from...
9624 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9625
9626 2015-04-17 Gary Benson <gbenson@redhat.com>
9627
9628 * exec.c (solist.h): New include.
9629 (exec_file_locate_attach): Prefix absolute executable
9630 paths with gdb_sysroot if set.
9631 * NEWS: Mention that executable paths may be prepended
9632 with sysroot.
9633
9634 2015-04-17 Gary Benson <gbenson@redhat.com>
9635
9636 * solist.h (exec_file_find): New declaration.
9637 * solib.c (solib_find_1): New function, factored out from...
9638 (solib_find): ...here.
9639 (exec_file_find): New function.
9640
9641 2015-04-17 Gary Benson <gbenson@redhat.com>
9642
9643 * gdbcore.h (exec_file_locate_attach): New declaration.
9644 * exec.c (exec_file_locate_attach): New function, factored
9645 out from...
9646 * infcmd.c (attach_command_post_wait): ...here.
9647
9648 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9649
9650 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9651
9652 2015-04-16 Yao Qi <yao.qi@linaro.org>
9653
9654 * infrun.c (maybe_software_singlestep): Declare.
9655 (displaced_step_fixup): Call maybe_software_singlestep.
9656
9657 2015-04-15 Doug Evans <dje@google.com>
9658
9659 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9660
9661 2015-04-15 Doug Evans <dje@google.com>
9662
9663 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9664
9665 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9666
9667 * python/lib/gdb/command/unwinders.py: Add parentheses.
9668
9669 2015-04-15 Yao Qi <yao.qi@linaro.org>
9670
9671 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9672
9673 2015-04-15 Yao Qi <yao.qi@linaro.org>
9674
9675 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9676
9677 2015-04-15 Yao Qi <yao.qi@linaro.org>
9678
9679 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9680 dsc->insn_size instead of 4.
9681
9682 2015-04-14 Gary Benson <gbenson@redhat.com>
9683
9684 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9685 * minidebug.c (lzma_stat): Likewise.
9686 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9687 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9688
9689 2015-04-13 Stan Shebs <stanshebs@google.com>
9690
9691 * MAINTAINERS: Update my email address.
9692
9693 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9694
9695 * amd64-tdep.c (amd64_target_description): New function.
9696 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9697 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9698 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9699 x86 extended save area.
9700 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9701 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9702 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9703 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9704 "amd64fbsd_read_description".
9705 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9706 (amd64fbsd_supply_xstateregset): New function.
9707 (amd64fbsd_collect_xstateregset): New function.
9708 Add "amd64fbsd_xstateregset".
9709 (amd64fbsd_iterate_over_regset_sections): New function.
9710 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9711 "I386_FBSD_XSAVE_XCR0_OFFSET".
9712 Add "iterate_over_regset_sections" gdbarch method.
9713 Add "core_read_description" gdbarch method.
9714 * i386-tdep.c (i386_target_description): New function.
9715 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9716 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9717 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9718 x86 extended save area.
9719 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9720 * i386bsd-nat.h: Export i386bsd_xsave_len.
9721 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9722 (_initialize_i386fbsd_nat): Set "to_read_description" to
9723 "i386fbsd_read_description".
9724 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9725 (i386fbsd_core_read_description): New function.
9726 (i386fbsd_supply_xstateregset): New function.
9727 (i386fbsd_collect_xstateregset): New function.
9728 Add "i386fbsd_xstateregset".
9729 (i386fbsd_iterate_over_regset_sections): New function.
9730 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9731 "I386_FBSD_XSAVE_XCR0_OFFSET".
9732 Add "iterate_over_regset_sections" gdbarch method.
9733 Add "core_read_description" gdbarch method.
9734 * i386fbsd-tdep.h: New file.
9735
9736 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9737
9738 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9739 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9740 conditional.
9741 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9742 and lb.
9743 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9744 va.
9745 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9746 conditional.
9747 * defs.h (xdb_commands): Remove declaration.
9748 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9749 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9750 * infcmd.c (run_no_args_command, go_command): Remove.
9751 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9752 * infrun.c (xdb_handle_command): Remove.
9753 (_initialize_infrun): Remove xdb_commands for lz and z.
9754 * main.c (xdb_commands): Remove variable.
9755 (captured_main): Remove "xdb" from long_options.
9756 (print_gdb_help): Remove --xdb from help.
9757 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9758 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9759 * stack.c (backtrace_full_command, args_plus_locals_info)
9760 (current_frame_command): Remove.
9761 (_initialize_stack): Remove xdb_commands for t, T and l.
9762 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9763 * thread.c (_initialize_thread): Remove xdb_commands condition.
9764 * tui/tui-layout.c (tui_toggle_layout_command)
9765 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9766 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9767 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9768 (tui_scroll_regs_backward_command): Remove.
9769 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9770 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9771 (_initialize_tui_win): Remove xdb_commands for U and w.
9772 * utils.c (pagination_on_command, pagination_off_command): Remove.
9773 (initialize_utils): Remove xdb_commands for am and sm.
9774
9775 2015-04-10 Pedro Alves <palves@redhat.com>
9776
9777 * infrun.c (displaced_step_fixup): Switch to the event ptid
9778 earlier. If the thread stopped for a watchpoint and the
9779 target/arch has non-continuable watchpoints, cancel the displaced
9780 step.
9781 (resume): Don't start a displaced step if in-line step-over info
9782 is valid.
9783
9784 2015-04-10 Pedro Alves <palves@redhat.com>
9785
9786 * infrun.c (displaced_step_in_progress): New function.
9787 (do_target_resume): Advise target to report all signals if
9788 displaced stepping.
9789
9790 2015-04-10 Pedro Alves <palves@redhat.com>
9791
9792 PR gdb/18216
9793 * infrun.c (process_event_stop_test): Don't assume a step-resume
9794 is set if tp->stepped_breakpoint is true.
9795
9796 2015-04-10 Yao Qi <yao.qi@linaro.org>
9797
9798 * arm-tdep.c (install_alu_reg): Update comment.
9799 (thumb_copy_alu_reg): Remove local variable rn. Update
9800 debugging message. Use r2 instead of r1 in the modified
9801 instruction.
9802
9803 2015-04-10 Pedro Alves <palves@redhat.com>
9804
9805 PR gdb/13858
9806 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9807 linux_displaced_step_location as gdbarch_displaced_step_location
9808 hook.
9809 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9810 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9811 * linux-tdep.c (linux_displaced_step_location): New function,
9812 based on ppc_linux_displaced_step_location.
9813 * linux-tdep.h (linux_displaced_step_location): New declaration.
9814 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9815 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9816 Delete.
9817 (ppc_linux_init_abi): Install linux_displaced_step_location as
9818 gdbarch_displaced_step_location hook, even without Cell/B.E..
9819 (_initialize_ppc_linux_tdep): Don't install
9820 ppc_linux_inferior_created as inferior_created observer.
9821 * s390-linux-tdep.c (s390_gdbarch_init): Install
9822 linux_displaced_step_location as gdbarch_displaced_step_location
9823 hook.
9824
9825 2015-04-09 Gary Benson <gbenson@redhat.com>
9826
9827 * common/common-remote-fileio.h: Rename to...
9828 * common/fileio.h: ...this. Update all references.
9829 (remote_fileio_to_fio_error): Rename to...
9830 (host_to_fileio_error): ...this.
9831 (remote_fileio_to_be): Rename to...
9832 (host_to_bigendian): ...this. Update all callers.
9833 (remote_fileio_to_fio_uint): Rename to...
9834 (host_to_fileio_uint): ...this. Update all callers.
9835 (remote_fileio_to_fio_time): Rename to...
9836 (host_to_fileio_time): ...this. Update all callers.
9837 (remote_fileio_to_fio_stat): Rename to...
9838 (host_to_fileio_stat): ...this.
9839 Update all references.
9840 * common/common-remote-fileio.c: Rename to...
9841 * common/fileio.c: ...this. Update all references.
9842 (remote_fileio_to_fio_error): Rename to...
9843 (host_to_fileio_error): ...this. Update all callers.
9844 (remote_fileio_mode_to_target): Rename to...
9845 (fileio_mode_pack): ...this. Update all callers.
9846 (remote_fileio_to_fio_mode): Rename to...
9847 (host_to_fileio_mode): ...this. Update all callers.
9848 (remote_fileio_to_fio_ulong): Rename to...
9849 (host_to_fileio_ulong): ...this. Update all callers.
9850 (remote_fileio_to_fio_stat): Rename to...
9851 (host_to_fileio_stat): ...this. Update all callers.
9852
9853 2015-04-09 Andy Wingo <wingo@igalia.com>
9854
9855 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9856 (frame_functions): Bind gdbscm_frame_read_register to
9857 frame-read-register.
9858 * guile/lib/gdb.scm (frame-read-register): Export.
9859
9860 2015-04-09 Gary Benson <gbenson@redhat.com>
9861
9862 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9863 New declaration.
9864 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9865 New function, factored out the named functions below.
9866 * inf-child.c (gdb/fileio.h): Remove include.
9867 (common-remote-fileio.h): New include.
9868 (inf_child_errno_to_fileio_error): Remove function. Update
9869 all callers to use remote_fileio_to_fio_error.
9870 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9871
9872 2015-04-09 Andy Wingo <wingo@igalia.com>
9873
9874 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9875
9876 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9877
9878 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9879 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9880 * configure: Regenerated.
9881
9882 2015-04-09 Pedro Alves <palves@redhat.com>
9883
9884 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9885 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9886 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9887 * gnulib/import/Makefile.am: Update.
9888 * gnulib/import/Makefile.in: Update.
9889 * gnulib/import/m4/gnulib-cache.m4: Update.
9890 * gnulib/import/m4/gnulib-comp.m4: Update.
9891 * gnulib/import/m4/strtok_r.m4: New file.
9892 * gnulib/import/strtok_r.c: New file.
9893
9894 2015-04-09 Pedro Alves <palves@redhat.com>
9895
9896 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9897 "called too early to check prototype".
9898
9899 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9900
9901 PR python/16699
9902 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9903 use a caching mechanism. Adjust comments and code to reflect
9904 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9905 (cmdpy_completer_handle_brkchars): Adjust call to
9906 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9907 (cmdpy_completer): Likewise.
9908
9909 2015-04-08 Yao Qi <yao.qi@linaro.org>
9910
9911 * spu-tdep.c (spu_gdbarch_init): Don't call
9912 set_gdbarch_cannot_step_breakpoint.
9913
9914 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9915
9916 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9917
9918 2015-04-07 Pedro Alves <palves@redhat.com>
9919
9920 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9921 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9922 (delete_exited_threads): New declaration.
9923 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9924 * linux-nat.c (linux_nat_update_thread_list): New function.
9925 (linux_nat_add_target): Install it.
9926 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9927 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9928 (delete_exited_threads): New function.
9929
9930 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9931
9932 * infrun.c (resume) <displaced stepping debug output>: Get the
9933 leader thread's regcache, not resume_ptid's.
9934
9935 2015-04-06 Doug Evans <xdje42@gmail.com>
9936
9937 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9938 VAR_DOMAIN.
9939 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9940 Include symbol domain in debugging output.
9941
9942 2015-04-06 Pedro Alves <palves@redhat.com>
9943 Bernd Edlinger <bernd.edlinger@hotmail.de>
9944
9945 * configure.ac: Remove the mingw32-specific stub-termcap.o
9946 fallback, and instead fallback to the stub termcap on all hosts.
9947 * configure: Regenerate.
9948 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9949 symbols.
9950
9951 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9952
9953 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9954 "top_level" parameter.
9955 (resolve_dynamic_type_internal): Remove the unused "top_level"
9956 parameter. Update call to is_dynamic_type_internal.
9957 (is_dynamic_type): Update call to is_dynamic_type_internal.
9958 (resolve_dynamic_range): Update call to
9959 resolve_dynamic_type_internal.
9960 (resolve_dynamic_union): Likewise.
9961 (resolve_dynamic_struct): Likewise.
9962 (resolve_dynamic_type): Likewise.
9963
9964 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9965
9966 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9967 TYPE_CODE_REF types so that they are not considered as dynamic
9968 depending on the referenced type.
9969 (resolve_dynamic_type_internal): Likewise.
9970
9971 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9972
9973 * Makefile.in (top_srcdir): New.
9974 * configure: Regenerated.
9975
9976 2015-04-02 Gary Benson <gbenson@redhat.com>
9977
9978 * NEWS: Announce the new default sysroot of "target:".
9979
9980 2015-04-02 Gary Benson <gbenson@redhat.com>
9981
9982 * main.c (captured_main): Set gdb_sysroot to "target:"
9983 if not otherwise set.
9984
9985 2015-04-02 Gary Benson <gbenson@redhat.com>
9986
9987 * exec.c (exec_file_attach): Support "target:" filenames.
9988
9989 2015-04-02 Gary Benson <gbenson@redhat.com>
9990
9991 * solib.c (solib_find): Strip "target:" prefix from sysroot
9992 if accessing local files.
9993
9994 2015-04-02 Gary Benson <gbenson@redhat.com>
9995
9996 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9997 checks and error messages.
9998
9999 2015-04-02 Gary Benson <gbenson@redhat.com>
10000
10001 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10002 (remote_filename_p): Remove declaration.
10003 (remote_bfd_open): Likewise.
10004 * remote.c (remote_bfd_iovec_open): Remove function.
10005 (remote_bfd_iovec_close): Likewise.
10006 (remote_bfd_iovec_pread): Likewise.
10007 (remote_bfd_iovec_stat): Likewise.
10008 (remote_filename_p): Likewise.
10009 (remote_bfd_open): Likewise.
10010 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10011 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10012 (gdb_bfd_open_maybe_remote): Remove function.
10013 (symfile_bfd_open): Replace remote filename check with
10014 target filename check.
10015 (reread_symbols): Use gdb_bfd_open.
10016 * build-id.c (gdbcore.h): New include.
10017 (build_id_to_debug_bfd): Use gdb_bfd_open.
10018 * infcmd.c (attach_command_post_wait): Remove remote filename
10019 check.
10020 * solib.c (solib_find): Replace remote-specific handling with
10021 target-specific handling. Update comments where necessary.
10022 (solib_bfd_open): Replace remote-specific handling with
10023 target-specific handling.
10024 (gdb_sysroot_changed): New function.
10025 (_initialize_solib): Call the above when gdb_sysroot changes.
10026 * windows-tdep.c (gdbcore.h): New include.
10027 (windows_xfer_shared_library): Use gdb_bfd_open.
10028
10029 2015-04-02 Gary Benson <gbenson@redhat.com>
10030
10031 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10032 (is_target_filename): New declaration.
10033 (gdb_bfd_has_target_filename): Likewise.
10034 (gdb_bfd_open): Update documentation comment.
10035 * gdb_bfd.c (target.h): New include.
10036 (gdb/fileio.h): Likewise.
10037 (is_target_filename): New function.
10038 (gdb_bfd_has_target_filename): Likewise.
10039 (fileio_errno_to_host): Likewise.
10040 (gdb_bfd_iovec_fileio_open): Likewise.
10041 (gdb_bfd_iovec_fileio_pread): Likewise.
10042 (gdb_bfd_iovec_fileio_close): Likewise.
10043 (gdb_bfd_iovec_fileio_fstat): Likewise.
10044 (gdb_bfd_open): Use target fileio to access paths prefixed
10045 with "target:" where necessary.
10046
10047 2015-04-02 Gary Benson <gbenson@redhat.com>
10048
10049 * target.h (struct target_ops) <to_filesystem_is_local>:
10050 New field.
10051 (target_filesystem_is_local): New macro.
10052 * target-delegates.c: Regenerate.
10053 * remote.c (remote_filesystem_is_local): New function.
10054 (init_remote_ops): Initialize to_filesystem_is_local.
10055
10056 2015-04-02 Gary Benson <gbenson@redhat.com>
10057
10058 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10059 (target_fileio_fstat): New declaration.
10060 * target.c (target_fileio_fstat): New function.
10061 * inf-child.c (inf_child_fileio_fstat): Likewise.
10062 (inf_child_target): Initialize to_fileio_fstat.
10063 * remote.c (init_remote_ops): Likewise.
10064
10065 2015-04-01 Sasha Smundak <asmundak@google.com>
10066
10067 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10068 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10069 (py-unwind.o): New recipe.
10070 * NEWS: mention Python frame unwinding.
10071 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10072 gdb/unwinder.py and gdb/command/unwinder.py
10073 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10074 list.
10075 (execute_unwinders): New function.
10076 * python/lib/gdb/command/unwinders.py: New file.
10077 * python/lib/gdb/unwinder.py: New file.
10078 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10079 (objfpy_dealloc): Decrement frame_unwinders reference count.
10080 (objfpy_initialize): Create frame_unwinders list.
10081 (objfpy_get_frame_unwinders): New function.
10082 (objfpy_set_frame_unwinders): Ditto.
10083 (objfile_getset): Add frame_unwinders attribute to Objfile.
10084 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10085 (pspy_dealloc): Decrement frame_unwinders reference count.
10086 (pspy_initialize): Create frame_unwinders list.
10087 (pspy_get_frame_unwinders): New function.
10088 (pspy_set_frame_unwinders): Ditto.
10089 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10090 * python/py-unwind.c: New file.
10091 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10092 (objpy_get_frame_unwinders): New prototype.
10093 (gdbpy_initialize_unwind): New prototype.
10094 * python/python.c (gdbpy_apply_type_printers): Call
10095 gdbpy_initialize_unwind.
10096
10097 2015-04-01 Pedro Alves <palves@redhat.com>
10098
10099 * infrun.c (resume): Check currently_stepping after clearing
10100 stepped_breakpoint, not before.
10101
10102 2015-04-01 Pedro Alves <palves@redhat.com>
10103
10104 * infrun.c (print_target_wait_results): Print all the ptid
10105 elements.
10106
10107 2015-04-01 Pedro Alves <palves@redhat.com>
10108
10109 * infrun.c (keep_going): Also discard cleanups if inserting
10110 breakpoints fails.
10111
10112 2015-04-01 Pedro Alves <palves@redhat.com>
10113
10114 * infrun.c (wait_for_inferior): Install the
10115 finish_thread_state_cleanup cleanup across the whole function, not
10116 just around handle_inferior_event.
10117
10118 2015-04-01 Pedro Alves <palves@redhat.com>
10119
10120 * infrun.c (resume) <step past permanent breakpoint>: Use
10121 do_target_resume.
10122
10123 2015-04-01 Pedro Alves <palves@redhat.com>
10124
10125 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10126
10127 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10128
10129 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10130
10131 2015-04-01 Pedro Alves <palves@redhat.com>
10132
10133 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10134 list if it was marked exited.
10135
10136 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10137
10138 * configure: Regenerated.
10139
10140 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10141 Jan Kratochvil <jan.kratochvil@redhat.com>
10142 Oleg Nesterov <oleg@redhat.com>
10143
10144 PR corefiles/16092
10145 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10146 New enum identifying the various options of the coredump_filter
10147 file.
10148 (struct smaps_vmflags): New struct.
10149 (use_coredump_filter): New variable.
10150 (decode_vmflags): New function.
10151 (mapping_is_anonymous_p): Likewise.
10152 (dump_mapping_p): Likewise.
10153 (linux_find_memory_regions_full): New variables
10154 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10155 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
10156 parsing of its information. Implement memory mapping filtering
10157 based on its contents.
10158 (show_use_coredump_filter): New function.
10159 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
10160 * NEWS: Mention the possibility of using the
10161 '/proc/PID/coredump_filter' file when generating a corefile.
10162 Mention new command 'set use-coredump-filter'.
10163
10164 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10165
10166 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
10167 read_memory_unsigned_integer.
10168
10169 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
10170
10171 * Makefile.in (ZLIB): New.
10172 (ZLIBINC): Likewise.
10173 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10174 (CLIBS): Add $(ZLIB).
10175 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10176 Add -lz to LIBS.
10177 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10178 * top.c (print_gdb_configuration): Remove --with-zlib and
10179 --without-zlib.
10180 * config.in: Regenerated.
10181 * configure: Likewise.
10182
10183 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10184
10185 * NEWS: Mention info os cpus support.
10186 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10187 (struct osdata_type): Add cpus entry, reorder the entries in
10188 alphabetical order.
10189
10190 2015-03-31 Matthias Klose <doko@ubuntu.com>
10191
10192 * compile/compile.c (compile_to_object): Allow triplets with or
10193 without vendor set.
10194
10195 2015-03-30 Doug Evans <dje@google.com>
10196
10197 PR c++/18141
10198 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10199 klass in VAR_DOMAIN.
10200
10201 2015-03-30 Gary Benson <gbenson@redhat.com>
10202
10203 * remote.c (remote_mourn_1): Remove function. Update all callers
10204 to use remote_mourn.
10205 (extended_remote_mourn_1): Remove function. Update all callers
10206 to use extended_remote_mourn.
10207 (extended_remote_attach_1): Remove function. Update all callers
10208 to use extended_remote_attach.
10209
10210 2015-03-28 James Bowman <james.bowman@ftdichip.com>
10211
10212 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10213 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10214 (ALLDEPFILES): Add ft32-tdep.c.
10215 * configure.tgt: Add FT32 entry.
10216 * ft32-tdep.c: New file, FT32 target-dependent code.
10217 * ft32-tdep.h: New file, FT32 target-dependent code.
10218
10219 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10220
10221 Revert:
10222 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10223 Code cleanup.
10224 * printcmd.c (print_command_1): Move expr variable scope.
10225
10226 2015-03-27 Joel Brobecker <brobecker@adacore.com>
10227
10228 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10229
10230 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10231
10232 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10233 sections.
10234
10235 2015-03-26 Joel Brobecker <brobecker@adacore.com>
10236
10237 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10238 exception raised while parsing the probe arguments.
10239 Force parsing to be done using the C language parser.
10240 * expression.h (parse_expression_with_language): Declare.
10241 * parse.c (parse_expression_with_language): New function.
10242
10243 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10244
10245 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10246
10247 2015-03-26 Andy Wingo <wingo@igalia.com>
10248
10249 PR symtab/18148
10250 * dwarf2read.c (struct partial_die_info): Add has_const_value
10251 member.
10252 (add_partial_symbol): Don't punt on symbols that have const_value
10253 attributes.
10254 (read_partial_die): Detect DW_AT_const_value.
10255
10256 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10257
10258 Code cleanup.
10259 * printcmd.c (print_command_1): Move expr variable scope.
10260
10261 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10262
10263 Code cleanup.
10264 * printcmd.c (validate_format): Make the parameter cmdname const.
10265
10266 2015-03-26 Don Breazeal <donb@codesourcery.com>
10267
10268 * remote.c (_initialize_remote): Update comment.
10269
10270 2015-03-26 Pedro Alves <palves@redhat.com>
10271 Jon TURNEY <jon.turney@dronecode.org.uk>
10272
10273 * coffread.c (coff_symfile_read): When constructing the name of an
10274 import stub symbol from import symbol for amd64, only skip the
10275 char after _imp_ if the target is underscored (like i386) and the
10276 char is indeed the target's leading char.
10277
10278 2015-03-25 Pedro Alves <palves@redhat.com>
10279
10280 * target.h <to_async>: Replace 'callback' and 'context' parameters
10281 with boolean 'enable' parameter.
10282 (target_async): Replace CALLBACK and CONTEXT parameters with
10283 boolean ENABLE parameter.
10284 * inf-loop.c (inferior_event_handler): Adjust.
10285 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10286 (linux_nat_resume): Adjust.
10287 (async_client_callback, async_client_context): Delete.
10288 (handle_target_event): Call inferior_event_handler directly.
10289 (linux_nat_async): Replace 'callback' and 'context' parameters
10290 with boolean 'enable' parameter. Adjust. Remove references to
10291 async_client_callback and async_client_context.
10292 (linux_nat_close): Adjust.
10293 * record-btrace.c (record_btrace_async): Replace 'callback' and
10294 'context' parameters with boolean 'enable' parameter. Adjust.
10295 (record_btrace_resume): Adjust.
10296 * record-full.c (record_full_async): Replace 'callback' and
10297 'context' parameters with boolean 'enable' parameter. Adjust.
10298 (record_full_resume, record_full_core_resume): Adjust.
10299 * remote.c (struct remote_state) <async_client_callback,
10300 async_client_context>: Delete fields.
10301 (remote_start_remote, extended_remote_attach_1, remote_resume)
10302 (extended_remote_create_inferior): Adjust.
10303 (remote_async_serial_handler): Call inferior_event_handler
10304 directly.
10305 (remote_async): Replace 'callback' and 'context' parameters with
10306 boolean 'enable' parameter. Adjust.
10307 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10308 Adjust.
10309 * target-delegates.c: Regenerate.
10310
10311 2015-03-25 Gary Benson <gbenson@redhat.com>
10312 Pedro Alves <palves@redhat.com>
10313
10314 * target.c (fileio_ft_t): New typedef, define object vector.
10315 (fileio_fhandles): New static variable.
10316 (is_closed_fileio_fh): New macro.
10317 (lowest_closed_fd): New static variable.
10318 (acquire_fileio_fd): New function.
10319 (release_fileio_fd): Likewise.
10320 (fileio_fd_to_fh): New macro.
10321 (target_fileio_open): Wrap the file descriptor on success.
10322 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10323 (target_fileio_pread): Likewise.
10324 (target_fileio_close): Likewise.
10325
10326 2015-03-24 Pedro Alves <palves@redhat.com>
10327
10328 * thread.c (thread_apply_all_command): Take exited threads into
10329 account.
10330
10331 2015-03-24 Pedro Alves <palves@redhat.com>
10332
10333 * infrun.c (resume, proceed): Mention
10334 switch_back_to_stepped_thread, not switch_back_to_stepping.
10335
10336 2015-03-24 Pedro Alves <palves@redhat.com>
10337
10338 * infrun.c (user_visible_resume_ptid): Rewrite going from
10339 most-locked to unlocked instead of the opposite. Move comment ...
10340 * infrun.h (user_visible_resume_ptid): ... here.
10341
10342 2015-03-24 Pedro Alves <palves@redhat.com>
10343
10344 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10345 to resume the event lwp. Use the lwp's ptid instead of the passed
10346 in (maybe wildcard) ptid.
10347 (stop_wait_callback): Tweak debug log output.
10348 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10349 TRAP_TRACE.
10350 (linux_nat_filter_event): In debug output, distinguish a
10351 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10352 before trying to resume the lwp.
10353
10354 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10355
10356 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10357 pointer indirection.
10358 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10359 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10360
10361 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10362
10363 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10364 Renames DYN_ATTR_DATA_LOCATION.
10365 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10366 DYN_ATTR_DATA_LOCATION.
10367 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10368 instead of DYN_ATTR_DATA_LOCATION.
10369
10370 2015-03-24 Pedro Alves <palves@redhat.com>
10371
10372 * breakpoint.c (until_break_command): Adjust call to proceed.
10373 * gdbthread.h (struct thread_control_state) <stepping_command>:
10374 New field.
10375 * infcall.c (run_inferior_call): Adjust call to proceed.
10376 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10377 Adjust calls to proceed.
10378 (set_step_frame): Set the current thread's step_start_function
10379 here.
10380 (step_once): Adjust calls to proceed.
10381 (jump_command, signal_command, until_next_command)
10382 (finish_backward, finish_forward, proceed_after_attach_callback)
10383 (attach_command_post_wait): Adjust calls to proceed.
10384 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10385 (do_target_resume): New function, factored out from ...
10386 (resume): ... here. Remove 'step' parameter. Instead, check
10387 currently_stepping to determine whether the thread should be
10388 single-stepped.
10389 (proceed): Remove 'step' parameter and don't set the thread's
10390 step_start_function here. Adjust call to 'resume'.
10391 (handle_inferior_event): Adjust calls to 'resume'.
10392 (switch_back_to_stepped_thread): Use do_target_resume instead of
10393 'resume'.
10394 (keep_going): Adjust calls to 'resume'.
10395 * infrun.h (proceed): Remove 'step' parameter.
10396 (resume): Likewise.
10397 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10398 'resume'.
10399 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10400
10401 2015-03-24 Pedro Alves <palves@redhat.com>
10402
10403 * gdbthread.h (struct thread_control_state) <stepping_command>:
10404 New field.
10405 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10406 the thread's stepping_command field.
10407 * infrun.c (resume): Check the thread's stepping_command flag to
10408 determine which threads should be resumed. Rename 'entry_step'
10409 local to user_step.
10410 (clear_proceed_status_thread): Clear 'stepping_command'.
10411 (schedlock_applies): Change parameter type to struct thread_info
10412 pointer. Adjust.
10413 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10414 (switch_back_to_stepped_thread): Adjust calls to
10415 'schedlock_applies'.
10416 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10417
10418 2015-03-24 Pedro Alves <palves@redhat.com>
10419
10420 * infrun.c (step_start_function): Delete and ...
10421 * gdbthread.h (struct thread_control_state) <step_start_function>:
10422 ... now a field here.
10423 * infrun.c (clear_proceed_status_thread): Clear the thread's
10424 step_start_function.
10425 (proceed, process_event_stop_test, print_stop_event): Adjust.
10426
10427 2015-03-24 Pedro Alves <palves@redhat.com>
10428
10429 * infrun.c (proceed): No longer handle negative step.
10430
10431 2015-03-24 Gary Benson <gbenson@redhat.com>
10432
10433 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10434 (x86_linux_prepare_to_resume): Likewise.
10435 * x86-linux-nat.c (x86_linux_new_thread):
10436 Moved to nat/x86-linux.c.
10437 (x86_linux_prepare_to_resume): Likewise.
10438 * nat/x86-linux.c (x86_linux_new_thread): New function.
10439 (x86_linux_prepare_to_resume): Likewise.
10440
10441 2015-03-24 Gary Benson <gbenson@redhat.com>
10442
10443 * nat/x86-linux-dregs.h: New file.
10444 * nat/x86-linux-dregs.c: Likewise.
10445 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10446 (x86-linux-dregs.o): New rule.
10447 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10448 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10449 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10450 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10451 (x86_linux_dr_get): Likewise.
10452 (x86_linux_dr_set): Likewise.
10453 (x86_linux_dr_get_addr): Likewise.
10454 (x86_linux_dr_get_control): Likewise.
10455 (x86_linux_dr_get_status): Likewise.
10456 (update_debug_registers_callback): Likewise.
10457 (x86_linux_dr_set_control): Likewise.
10458 (x86_linux_dr_set_addr): Likewise.
10459 (x86_linux_update_debug_registers): Likewise.
10460
10461 2015-03-24 Gary Benson <gbenson@redhat.com>
10462
10463 * x86-linux-nat.c (x86_linux_update_debug_registers):
10464 New function, factored out from...
10465 (x86_linux_prepare_to_resume): ...this.
10466
10467 2015-03-24 Gary Benson <gbenson@redhat.com>
10468
10469 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10470 (x86_linux_dr_set): Likewise.
10471 (x86_linux_dr_get_addr): Likewise.
10472 (x86_linux_dr_get_control): Likewise.
10473 (x86_linux_dr_get_status): Likewise.
10474 (update_debug_registers_callback): Likewise.
10475 (x86_linux_dr_set_control): Likewise.
10476 (x86_linux_dr_set_addr): Likewise.
10477 (x86_linux_prepare_to_resume): Likewise.
10478 (x86_linux_new_thread): Likewise.
10479
10480 2015-03-24 Gary Benson <gbenson@redhat.com>
10481
10482 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10483 (x86_linux_new_thread): Rename argument.
10484
10485 2015-03-24 Gary Benson <gbenson@redhat.com>
10486
10487 * nat/x86-linux.h: New file.
10488 * nat/x86-linux.c: Likewise.
10489 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10490 (x86-linux.o): New rule.
10491 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10492 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10493 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10494 (lwp_set_arch_private_info): New declaration.
10495 (lwp_arch_private_info): Likewise.
10496 * linux-nat.c (lwp_set_arch_private_info): New function.
10497 (lwp_arch_private_info): Likewise.
10498 * x86-linux-nat.c: Include nat/x86-linux.h.
10499 (arch_lwp_info): Removed structure.
10500 (update_debug_registers_callback):
10501 Use lwp_set_debug_registers_changed.
10502 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10503 and lwp_set_debug_registers_changed.
10504 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10505
10506 2015-03-24 Gary Benson <gbenson@redhat.com>
10507
10508 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10509 (lwp_is_stopped): Likewise.
10510 (lwp_stop_reason): Likewise.
10511 * linux-nat.c (ptid_of_lwp): New function.
10512 (lwp_is_stopped): Likewise.
10513 (lwp_is_stopped_by_watchpoint): Likewise.
10514 * x86-linux-nat.c (update_debug_registers_callback):
10515 Use lwp_is_stopped.
10516 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10517 lwp_stop_reason.
10518
10519 2015-03-24 Gary Benson <gbenson@redhat.com>
10520
10521 * linux-nat.h (linux_stop_lwp): Move declaration to...
10522 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10523
10524 2015-03-24 Gary Benson <gbenson@redhat.com>
10525
10526 * linux-nat.h: Include nat/linux-nat.h.
10527 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10528 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10529 (iterate_over_lwps_ftype): New typedef.
10530 (iterate_over_lwps): New declaration.
10531 * linux-nat.h (iterate_over_lwps): Update comment. Use
10532 iterate_over_lwps_ftype. Update callback return value check.
10533
10534 2015-03-24 Gary Benson <gbenson@redhat.com>
10535
10536 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10537 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10538
10539 2015-03-24 Gary Benson <gbenson@redhat.com>
10540
10541 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10542 * linux-nat.c (current_lwp_ptid): New function.
10543 * x86-linux-nat.c: Include nat/linux-nat.h.
10544 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10545 (x86_linux_dr_get_control): Likewise.
10546 (x86_linux_dr_get_status): Likewise.
10547 (x86_linux_dr_set_control): Likewise.
10548 (x86_linux_dr_set_addr): Likewise.
10549
10550 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10551
10552 PR breakpoints/16466
10553 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10554
10555 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10556
10557 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10558 * ser-unix.c (hardwire_setparity): Likewise.
10559
10560 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10561
10562 * NEWS: Mention set/show serial parity command.
10563 * monitor.c (monitor_open): Call serial_setparity.
10564 * remote.c (remote_open_1): Likewise.
10565 * ser-base.c (ser_base_serparity): New function.
10566 * ser-base.h (ser_base_setparity): Add declaration.
10567 * ser-go32.c (dos_ops): Set "setparity" field.
10568 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10569 state.Parity.
10570 (ser_windows_setparity): New function.
10571 (hardwire_ops): Add ser_windows_setparity.
10572 (tty_ops): Add NULL for setparity field.
10573 (pipe_ops): Add ser_base_setparity.
10574 (tcp_ops): Likewise.
10575 * ser-pipe.c (pipe_ops): Likewise.
10576 * ser-tcp.c (tcp_ops): Likewise.
10577 * ser-unix.c (hardwire_setparity): Add declaration.
10578 (hardwire_raw): Don't reset PARENB flag.
10579 (hardwire_setparity): New function.
10580 (hardwire_ops): Add hardwire_setparity.
10581 * serial.c (serial_setparity): New function.
10582 (serial_parity): New global.
10583 (parity_none, parity_odd, parity_even, parity_enums, parity):
10584 New static globals.
10585 (set_parity): New function.
10586 (_initialize_serial): Add set/show serial parity commands.
10587 * serial.h (GDBPARITY_NONE): Define.
10588 (GDBPARITY_ODD): Define.
10589 (GDBPARITY_EVEN): Define.
10590 (serial_setparity) Add declaration.
10591 (struct serial_ops): Add setparity field.
10592 * target.h (serial_parity): Add declaration.
10593
10594 2015-03-23 Keith Seitz <keiths@redhat.com>
10595
10596 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10597
10598 2015-03-23 Keith Seitz <keiths@redhat.com>
10599
10600 * breakpoint.c (parse_breakpoint_sals): Use
10601 linespec_lexer_lex_keyword to ascertain if the user specified
10602 a NULL location.
10603 * linespec.c [IF_KEYWORD_INDEX]: Define.
10604 (linespec_lexer_lex_keyword): Export.
10605 (struct ls_parser) <keyword_ok>: Remove.
10606 A keyword is only a keyword if not followed by another keyword.
10607 (linespec_lexer_lex_one): Remove keyword_ok handling.
10608 Add comment explaining why the parsing stream is not advanced
10609 when a keyword is seen.
10610 (parse_linespec): Remove parser->keyword_ok.
10611 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10612
10613 2015-03-23 Keith Seitz <keiths@redhat.com>
10614
10615 PR gdb/18021
10616 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10617 if we find a static method with DW_AT_vtable_elem_location.
10618
10619 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10620
10621 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10622 before the second loop, to avoid undefined behavior. Reported by
10623 Anton Blanchard <anton@samba.org>.
10624
10625 2015-03-20 Keven Boell <keven.boell@intel.com>
10626
10627 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10628 data_location usage to linked list.
10629 (resolve_dynamic_type_internal): Adapt data_location to
10630 linked list.
10631 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10632 (copy_type_recursive, copy_type): Add copy of linked list.
10633 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10634 (struct dynamic_prop_list): New struct.
10635 * dwarf2read.c (set_die_type): Set data_location data.
10636
10637 2015-03-20 Pedro Alves <palves@redhat.com>
10638
10639 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10640 inner block and make it const.
10641 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10642
10643 2015-03-20 Pedro Alves <palves@redhat.com>
10644
10645 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10646 * breakpoint.h (set_breakpoint_condition): Update declaration.
10647
10648 2015-03-20 Pedro Alves <palves@redhat.com>
10649
10650 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10651
10652 2015-03-20 Pedro Alves <palves@redhat.com>
10653
10654 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10655
10656 2015-03-20 Pedro Alves <palves@redhat.com>
10657
10658 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10659
10660 2015-03-20 Pedro Alves <palves@redhat.com>
10661
10662 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10663 (nto_init_solib_absolute_prefix): Likewise.
10664
10665 2015-03-20 Pedro Alves <palves@redhat.com>
10666
10667 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10668 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10669
10670 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10671
10672 * config/djgpp/README: Remove gdb.hp.
10673
10674 2015-03-20 Yao Qi <yao.qi@linaro.org>
10675
10676 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10677 set_gdbarch_cannot_step_breakpoint.
10678
10679 2015-03-19 Pedro Alves <palves@redhat.com>
10680
10681 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10682 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10683 instead call perror_with_name.
10684 (check_ptrace_stopped_lwp_gone): New function.
10685 (linux_resume_one_lwp): Reimplement as wrapper around
10686 linux_resume_one_lwp_throw that swallows errors if the LWP is
10687 gone.
10688 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10689 swallows errors if the LWP is gone. Use
10690 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10691
10692 2015-03-19 Pedro Alves <palves@redhat.com>
10693
10694 * linux-nat.c (status_callback): Return early if the LWP has no
10695 status pending.
10696
10697 2015-03-19 Pedro Alves <palves@redhat.com>
10698
10699 * linux-nat.c (select_event_lwp_callback): Update comment to no
10700 longer mention SIGTRAP.
10701
10702 2015-03-18 Tristan Gingold <gingold@adacore.com>
10703
10704 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10705 redirection code to ...
10706 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10707 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10708
10709 2015-03-18 Gary Benson <gbenson@redhat.com>
10710
10711 (remote_protocol_features): Remove the "vFile:fstat" feature.
10712 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10713
10714 2015-03-11 Yao Qi <yao.qi@linaro.org>
10715
10716 PR tdep/18107
10717 * aarch64-linux-tdep.c: Include xml-syscall.h
10718 (aarch64_linux_get_syscall_number): New function.
10719 (aarch64_linux_init_abi): Call
10720 set_gdbarch_get_syscall_number.
10721 * syscalls/aarch64-linux.xml: New file.
10722
10723 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10724
10725 * ser-base.h (ser_base_setstopbits): Change second argument name
10726 from "rate" to "num".
10727
10728 2015-03-17 Gary Benson <gbenson@redhat.com>
10729 Luke Allardyce <lukeallardyce@gmail.com>
10730
10731 PR gdb/18131
10732 * common/common-remote-fileio.h (sys/stat.h): New include.
10733 (stuct stat): Remove forward declaration.
10734
10735 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10736
10737 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10738 before writing core register notes.
10739
10740 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10741 Pedro Alves <palves@redhat.com>
10742
10743 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10744 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10745 (tgoto): Wrap with extern "C".
10746
10747 2015-03-16 Pedro Alves <palves@redhat.com>
10748 Yuanhui Zhang <asmwarrior@gmail.com>
10749
10750 * stub-termcap.c (tputs): Change prototype.
10751
10752 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10753 Pedro Alves <palves@redhat.com>
10754
10755 * windows-nat.c (struct thread_info_struct): Rename to ...
10756 (struct windows_thread_info_struct): ... this.
10757 (thread_info): Rename to ...
10758 (windows_thread_info): ... this.
10759 All users updated.
10760
10761 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10762 Pedro Alves <palves@redhat.com>
10763
10764 * NEWS: New Removed targets and native configurations.
10765
10766 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10767
10768 Remove HPUX.
10769 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10770 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10771 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10772 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10773 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10774 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10775 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10776 hppa-hpux-tdep.c.
10777 * config/ia64/hpux.mh: Remove file.
10778 * config/pa/hpux.mh: Remove file.
10779 * configure: Rebuilt.
10780 * configure.ac (dlgetmodinfo, somread.o): Remove.
10781 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10782 (ia64-*-hpux*): Remove its float format exception.
10783 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10784 * hppa-hpux-nat.c: Remove file.
10785 * hppa-hpux-tdep.c: Remove file.
10786 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10787 Move them here from hppa-tdep.h
10788 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10789 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10790 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10791 Move them to hppa-tdep.c.
10792 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10793 declarations.
10794 * ia64-hpux-nat.c: Remove file.
10795 * ia64-hpux-tdep.c: Remove file.
10796 * ia64-hpux-tdep.h: Remove file.
10797 * inf-ttrace.c: Remove file.
10798 * inf-ttrace.h: Remove file.
10799 * solib-ia64-hpux.c: Remove file.
10800 * solib-ia64-hpux.h: Remove file.
10801 * solib-pa64.c: Remove file.
10802 * solib-pa64.h: Remove file.
10803 * solib-som.c: Remove file.
10804 * solib-som.h: Remove file.
10805 * somread.c: Remove file.
10806
10807 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10808
10809 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10810 * config.in: Regenerate.
10811 * configure: Regenerate.
10812 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10813 define.
10814 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10815 enumerate memory regions if present.
10816
10817 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10818
10819 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10820 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10821 expressions.
10822 (i386fbsd_sigtramp_p): Likewise.
10823
10824 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10825
10826 * MAINTAINERS (Write After Approval): Add John Baldwin.
10827
10828 2015-03-12 Gary Benson <gbenson@redhat.com>
10829
10830 * solib.c (_initialize_solib): Make "set/show sysroot" use
10831 add_setshow_optional_filename_cmd so it can be restored to
10832 empty after being set.
10833
10834 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10835
10836 * Makefile.in (SFILES): New source break-catch-syscall.c.
10837 (COMMON_OBS): New object break-catch-syscall.o.
10838 * break-catch-syscall.c: New file.
10839 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10840 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10841 (struct syscall_catchpoint): Likewise.
10842 (dtor_catch_syscall): Likewise.
10843 (catch_syscall_inferior_data): Likewise.
10844 (struct catch_syscall_inferior_data): Likewise.
10845 (get_catch_syscall_inferior_data): Likewise.
10846 (catch_syscall_inferior_data_cleanup): Likewise.
10847 (insert_catch_syscall): Likewise.
10848 (remove_catch_syscall): Likewise.
10849 (breakpoint_hit_catch_syscall): Likewise.
10850 (print_it_catch_syscall): Likewise.
10851 (print_one_catch_syscall): Likewise.
10852 (print_mention_catch_syscall): Likewise.
10853 (print_recreate_catch_syscall): Likewise.
10854 (catch_syscall_breakpoint_ops): Likewise.
10855 (syscall_catchpoint_p): Likewise.
10856 (create_syscall_event_catchpoint): Likewise.
10857 (catch_syscall_split_args): Likewise.
10858 (catch_syscall_command_1): Likewise.
10859 (is_syscall_catchpoint_enabled): Likewise.
10860 (catch_syscall_enabled): Likewise.
10861 (catching_syscall_number): Likewise.
10862 (catch_syscall_completer): Likewise.
10863 (clear_syscall_counts): Likewise.
10864 (initialize_breakpoint_ops): Move initialization of syscall
10865 catchpoints to break-catch-syscall.c.
10866 (_initialize_breakpoint): Move code related to syscall catchpoints
10867 to break-catch-syscall.c.
10868
10869 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10870
10871 * breakpoint.c (breakpoint_find_if): New function.
10872 * breakpoint.h (breakpoint_find_if): New prototype.
10873
10874 2015-03-11 Gary Benson <gbenson@redhat.com>
10875
10876 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10877 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10878 (remote_fileio_to_host_ulong): Likewise.
10879 (remote_fileio_to_host_mode): Likewise.
10880 (remote_fileio_to_host_time): Likewise.
10881 (remote_fileio_to_host_stat): Likewise.
10882 * remote.c (PACKET_vFile_fstat): New enum value.
10883 (remote_protocol_features): Register the "vFile:fstat" feature.
10884 (remote_hostio_fstat): New function.
10885 (remote_bfd_iovec_stat): Use the above.
10886 (_initialize_remote): Register new "set/show remote
10887 hostio-fstat-packet" command.
10888 * symfile.c (separate_debug_file_exists): Update comment.
10889 * NEWS: Announce new vFile:fstat packet.
10890
10891 2015-03-11 Gary Benson <gbenson@redhat.com>
10892
10893 * common/common-remote-fileio.h: New file.
10894 * common/common-remote-fileio.c: Likewise.
10895 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10896 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10897 (COMMON_OBS): Add common-remote-fileio.o.
10898 (common-remote-fileio.o): New rule.
10899 * remote-fileio.h (common-remote-fileio.h): New include.
10900 * remote-fileio.c (gdb/fileio.h): Do not include.
10901 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10902 (remote_fileio_to_fio_uint): Likewise.
10903 (remote_fileio_to_fio_time): Likewise.
10904 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10905 (remote_fileio_to_fio_mode): Likewise.
10906 (remote_fileio_to_fio_ulong): Likewise.
10907 (remote_fileio_to_fio_stat): Likewise.
10908
10909 2015-03-11 Andy Wingo <wingo@igalia.com>
10910
10911 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10912 we were checking the cached type, not the cached dynamic type.
10913
10914 2015-03-11 Andy Wingo <wingo@igalia.com>
10915
10916 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10917 other strings, as these are on the GC'd heap, and will be
10918 collected along with the smob.
10919
10920 2015-03-11 Andy Wingo <wingo@igalia.com>
10921
10922 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10923 (objfile_functions): Bind gdbscm_objfile_progspace to
10924 objfile-progspace.
10925 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10926
10927 2015-03-11 Andy Wingo <wingo@igalia.com>
10928
10929 * guile/guile.c (_initialize_guile): Disable automatic
10930 finalization, if Guile offers us that possibility.
10931 * guile/guile.c (call_initialize_gdb_module):
10932 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10933 finalizers in appropriate places.
10934 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10935 scm_set_automatic_finalization_enabled.
10936 * configure: Regenerated.
10937
10938 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10939
10940 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10941 SAL, if possible.
10942
10943 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10944
10945 * s390-linux-nat.c (struct arch_lwp_info): New.
10946 (s390_fix_watch_points): Rename to...
10947 (s390_prepare_to_resume): ...this. Skip the PER info update
10948 unless the watch points have changed.
10949 (s390_refresh_per_info, s390_new_thread): New functions.
10950 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10951 s390_fix_watch_points.
10952 (s390_remove_watchpoint): Likewise.
10953 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10954 Register s390_prepare_to_resume.
10955
10956 2015-03-09 Pedro Alves <palves@redhat.com>
10957
10958 Revert:
10959 2015-03-07 Pedro Alves <palves@redhat.com>
10960 * common/gdb_socket.h: New file.
10961 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10962 sys/socket.h.
10963 (net_open): Use union gdb_sockaddr_u.
10964
10965 2015-03-07 Pedro Alves <palves@redhat.com>
10966
10967 * configure.ac (build_warnings): Move -Wmissing-prototypes
10968 -Wdeclaration-after-statement -Wmissing-parameter-type
10969 -Wold-style-declaration -Wold-style-definition to the C-specific
10970 set.
10971 * configure: Regenerate.
10972
10973 2015-03-07 Pedro Alves <palves@redhat.com>
10974
10975 * common/gdb_socket.h: New file.
10976 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10977 sys/socket.h.
10978 (net_open): Use union gdb_sockaddr_u.
10979
10980 2015-03-07 Pedro Alves <palves@redhat.com>
10981
10982 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10983 (exceptions_state_mc_action_iter)
10984 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10985 Don't define.
10986 [__cplusplus] (try_scope_depth): New global.
10987 [__cplusplus] (exception_try_scope_entry)
10988 (exception_try_scope_exit, gdb_exception_sliced_copy)
10989 (exception_rethrow): New functions.
10990 (throw_exception): In C++ mode, throw
10991 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10992 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10993 (throw_it): In C++ mode, use try_scope_depth.
10994 * common/common-exceptions.h [!__cplusplus]
10995 (exceptions_state_mc_action_iter)
10996 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10997 Don't declare.
10998 [__cplusplus] (exception_try_scope_entry)
10999 (exception_try_scope_exit, exception_rethrow): Declare.
11000 [__cplusplus] (struct exception_try_scope): New struct.
11001 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11002 C++ exceptions.
11003 (struct gdb_exception_RETURN_MASK_ALL)
11004 (struct gdb_exception_RETURN_MASK_ERROR)
11005 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11006
11007 2015-03-07 Pedro Alves <palves@redhat.com>
11008
11009 * main.c (handle_command_errors): Remove volatile qualifier from
11010 parameter.
11011
11012 2015-03-07 Pedro Alves <palves@redhat.com>
11013
11014 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11015 TRY and CATCH.
11016 * gdbtypes.c (safe_parse_type): Remove empty line.
11017 (types_deeply_equal):
11018 * guile/scm-frame.c (gdbscm_frame_name):
11019 * linux-thread-db.c (find_new_threads_once):
11020 * python/py-breakpoint.c (bppy_get_commands):
11021 * record-btrace.c (record_btrace_insert_breakpoint)
11022 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11023 (record_btrace_start_replaying): Adjust to avoid code between TRY
11024 and CATCH.
11025
11026 2015-03-07 Pedro Alves <palves@redhat.com>
11027
11028 * common/common-exceptions.c (struct catcher) <exception>: No
11029 longer a pointer to volatile exception. Now an exception value.
11030 <mask>: Delete field.
11031 (exceptions_state_mc_init): Remove all parameters. Adjust.
11032 (exceptions_state_mc): No longer pop the catcher here.
11033 (exceptions_state_mc_catch): New function.
11034 (throw_exception): Adjust.
11035 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11036 all parameters.
11037 (exceptions_state_mc_catch): Declare.
11038 (TRY_CATCH): Rename to ...
11039 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11040 (CATCH, END_CATCH): New.
11041 All callers adjusted.
11042
11043 2015-03-07 Tom Tromey <tromey@redhat.com>
11044
11045 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11046
11047 2015-03-07 Pedro Alves <palves@redhat.com>
11048
11049 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11050 (amd64_epilogue_frame_cache): Normal exception handling code.
11051 * break-catch-throw.c (check_status_exception_catchpoint)
11052 (re_set_exception_catchpoint): Ditto.
11053 * cli/cli-interp.c (safe_execute_command):
11054 * cli/cli-script.c (script_from_file): Ditto.
11055 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11056 Ditto.
11057 * compile/compile-object-run.c (compile_object_run): Ditto.
11058 * cp-abi.c (baseclass_offset): Ditto.
11059 * cp-valprint.c (cp_print_value): Ditto.
11060 * exceptions.c (catch_exceptions_with_msg):
11061 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11062 * frame.c (get_frame_address_in_block_if_available): Ditto.
11063 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11064 (i386_sigtramp_frame_cache): Ditto.
11065 * infcmd.c (post_create_inferior): Ditto.
11066 * linespec.c (parse_linespec, find_linespec_symbols):
11067 * p-valprint.c (pascal_object_print_value): Ditto.
11068 * parse.c (parse_expression_for_completion): Ditto.
11069 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11070 * remote.c (remote_get_noisy_reply): Ditto.
11071 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11072 * solib-svr4.c (solib_svr4_r_map): Ditto.
11073
11074 2015-03-06 Gary Benson <gbenson@redhat.com>
11075
11076 * common/common-utils.h (startswith): New inline function.
11077 All places where this logic was used updated to use the above.
11078
11079 2015-03-05 Pedro Alves <palves@redhat.com>
11080
11081 PR gdb/18002
11082 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11083 after reading the breakpoint's shadow memory.
11084
11085 2015-03-05 Mark Kettenis <kettenis@gnu.org>
11086
11087 * hppabsd-nat.c: Remove file.
11088 * hppaobsd-nat.c: New file.
11089 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11090 hppaobsd-nat.c.
11091 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11092 hppaobsd-nat.o.
11093
11094 2015-03-04 Pedro Alves <palves@redhat.com>
11095
11096 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11097 (target_decr_pc_after_break): Delete declaration.
11098 * target.c (default_target_decr_pc_after_break)
11099 (target_decr_pc_after_break): Delete.
11100 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11101 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11102 * linux-thread-db.c (check_event): Likewise.
11103 * infrun.c (adjust_pc_after_break): Likewise.
11104 * darwin-nat.c (cancel_breakpoint): Likewise.
11105 * aix-thread.c (aix_thread_wait): Likewise.
11106 * target-delegates.c: Regenerate.
11107
11108 2015-03-04 Pedro Alves <palves@redhat.com>
11109
11110 * linux-nat.c (save_sigtrap): Check for breakpoints before
11111 checking watchpoints.
11112 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11113 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11114 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11115 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11116 (linux_nat_stopped_by_sw_breakpoint)
11117 (linux_nat_supports_stopped_by_sw_breakpoint)
11118 (linux_nat_stopped_by_hw_breakpoint)
11119 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11120 (linux_nat_wait_1): Don't re-increment the PC if relying on
11121 SIGTRAP's siginfo->si_code.
11122 (linux_nat_add_target): Install new target methods.
11123 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11124 offset if the target already adjusted the PC.
11125 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11126 (GDB_ARCH_TRAP_BRKPT): New.
11127 (TRAP_HWBKPT): Define if not already defined.
11128
11129 2015-03-04 Pedro Alves <palves@redhat.com>
11130
11131 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11132 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11133 Delete field.
11134 <stop_reason>: New field.
11135 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11136 (packet_set_cmd_state): New function.
11137 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11138 features.
11139 (remote_query_supported): If not disabled with the corresponding
11140 "set remote foo-packet" command, report support for the swbreak
11141 and hwbreak features.
11142 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11143 field.
11144 <stop_reason>: New field.
11145 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11146 (remote_wait_as): Adjust.
11147 (remote_stopped_by_sw_breakpoint)
11148 (remote_supports_stopped_by_sw_breakpoint)
11149 (remote_stopped_by_hw_breakpoint)
11150 (remote_supports_stopped_by_hw_breakpoint): New functions.
11151 (remote_stopped_by_watchpoint): New function.
11152 (init_remote_ops): Install them.
11153 (_initialize_remote): Register new "set/show remote
11154 swbreak-feature-packet" and "set/show remote
11155 swbreak-feature-packet" commands.
11156
11157 2015-03-04 Pedro Alves <palves@redhat.com>
11158
11159 * btrace.h: Include target/waitstatus.h.
11160 (struct btrace_thread_info) <stop_reason>: New field.
11161 * record-btrace.c (record_btrace_step_thread): Use
11162 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11163 (record_btrace_decr_pc_after_break): Delete.
11164 (record_btrace_stopped_by_sw_breakpoint)
11165 (record_btrace_supports_stopped_by_sw_breakpoint)
11166 (record_btrace_stopped_by_hw_breakpoint)
11167 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
11168 (init_record_btrace_ops): Install them.
11169 * record-full.c (record_full_hw_watchpoint): Delete and replace
11170 with ...
11171 (record_full_stop_reason): ... this throughout.
11172 (record_full_exec_insn): Adjust.
11173 (record_full_wait_1): Adjust. No longer re-increment the PC.
11174 (record_full_wait_1): Adjust. Use
11175 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11176 (record_full_stopped_by_watchpoint): Adjust.
11177 (record_full_stopped_by_sw_breakpoint)
11178 (record_full_supports_stopped_by_sw_breakpoint)
11179 (record_full_supports_stopped_by_sw_breakpoint)
11180 (record_full_stopped_by_hw_breakpoint)
11181 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11182 (init_record_full_ops, init_record_full_core_ops): Install them.
11183 * record.c (record_check_stopped_by_breakpoint): New function.
11184 * record.h: Include target/waitstatus.h.
11185 (record_check_stopped_by_breakpoint): New declaration.
11186
11187 2015-03-04 Pedro Alves <palves@redhat.com>
11188
11189 enum lwp_stop_reason -> enum target_stop_reason
11190 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11191 (linux_nat_stopped_by_watchpoint, status_callback)
11192 (linux_nat_wait_1): Adjust.
11193 * linux-nat.h (enum lwp_stop_reason): Delete.
11194 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11195 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11196 * target/waitstatus.h (enum target_stop_reason): New.
11197
11198 2015-03-04 Pedro Alves <palves@redhat.com>
11199
11200 * breakpoint.c (need_moribund_for_location_type): New function.
11201 (bpstat_stop_status): Don't skipping checking moribund locations
11202 of breakpoint types which the target tell caused a stop.
11203 (program_breakpoint_here_p): New function, factored out from ...
11204 (bp_loc_is_permanent): ... this.
11205 (update_global_location_list): Don't create a moribund location if
11206 the target supports reporting stops of the type of the removed
11207 breakpoint.
11208 * breakpoint.h (program_breakpoint_here_p): New declaration.
11209 * infrun.c (adjust_pc_after_break): Return early if the target has
11210 already adjusted the PC. Add comments.
11211 (handle_signal_stop): If nothing explains a signal, and the target
11212 tells us the stop was caused by a software breakpoint, check if
11213 there's a breakpoint instruction in the memory. If so, adjust the
11214 PC before presenting the stop to the user. Otherwise, ignore the
11215 trap. If nothing explains a signal, and the target tells us the
11216 stop was caused by a hardware breakpoint, ignore the trap.
11217 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11218 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11219 to_supports_stopped_by_hw_breakpoint>: New fields.
11220 (target_stopped_by_sw_breakpoint)
11221 (target_supports_stopped_by_sw_breakpoint)
11222 (target_stopped_by_hw_breakpoint)
11223 (target_supports_stopped_by_hw_breakpoint): Define.
11224 * target-delegates.c: Regenerate.
11225
11226 2015-03-04 Pedro Alves <palves@redhat.com>
11227
11228 * infrun.c (follow_fork_inferior): Use the whole of the
11229 inferior_ptid and pending_follow.related_pid ptids instead of
11230 building ptids from the process components. Adjust verbose output
11231 to use target_pid_to_str.
11232 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11233 inferior_ptid and pending_follow.related_pid ptids instead of
11234 building ptids from the process components.
11235
11236 2015-03-04 Mark Kettenis <kettenis@gnu.org>
11237
11238 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11239 (inf_ptrace_insert_fork_catchpoint): New function.
11240 (inf_ptrace_remove_fork_catchpoint): New function.
11241 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11242
11243 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11244
11245 * s390-linux-tdep.c (s390_register_name): Return empty string
11246 instead of NULL for registers that shouldn't be visible.
11247
11248 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11249
11250 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11251 XML file for 64-bit targets.
11252
11253 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11254
11255 * target.h (find_default_create_inferior): Remove declaration.
11256 (find_default_attach): Likewise.
11257
11258 2015-03-03 Pedro Alves <palves@redhat.com>
11259
11260 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11261 Use ptid_get_pid to get the overall process id when resuming all
11262 threads.
11263
11264 2015-03-03 Pedro Alves <palves@redhat.com>
11265
11266 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11267 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11268 * inf-ptrace.c (get_ptrace_pid): New function.
11269 (inf_ptrace_resume): Use it.
11270 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11271 to the lower layer.
11272
11273 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11274
11275 * nat/linux-btrace.c: Include sys/utsname.h.
11276 (linux_determine_kernel_ptr_bits): New.
11277 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11278 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11279 ptr_bits.
11280
11281 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11282
11283 * btrace.c (ftrace_update_function): Treat return as tailcall for
11284 "_dl_runtime_resolve".
11285
11286 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11287
11288 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11289 * btrace.c (ftrace_debug): Do not print the line range.
11290 (ftrace_skip_file, ftrace_update_lines): Remove.
11291 (ftrace_new_function): Remove lbegin and lend initialization.
11292 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11293 * record-btrace.c (btrace_compute_src_line_range): New.
11294 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11295
11296 2015-03-02 Pedro Alves <palves@redhat.com>
11297
11298 * infrun.c (follow_exec): Delete all threads of the process except
11299 the event thread. Extended comments.
11300
11301 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11302
11303 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11304
11305 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11306
11307 * utils.h: Remove <stdbool.h> #include.
11308 (producer_is_gcc): Change return type to "int".
11309 * utils.c (producer_is_gcc): Change return type to int.
11310 Return 1 instead of true, and 0 instead of false.
11311 Adjust function documentation accordingly.
11312
11313 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11314
11315 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11316 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11317 present.
11318 (s390_linux_store_inferior_registers): Likewise.
11319 (s390_get_hwcap): Remove function. Embed its logic...
11320 (s390_read_description): ...here. Yield a target description with
11321 vector registers if applicable.
11322 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11323 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11324 "features/s390x-tevx-linux64.c".
11325 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11326 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11327 for "GNU/Linux-specific registers".
11328 (s390_dwarf_reg_r0l): New enum value.
11329 (s390_dwarf_reg_to_regnum): Support vector registers.
11330 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11331 of GPR lower halves.
11332 (regnum_is_vxr_full): New function.
11333 (s390_register_name): New function.
11334 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11335 f0-f15 and v0l-v15l.
11336 (s390_pseudo_register_type): Likewise.
11337 (s390_pseudo_register_read): Likewise.
11338 (s390_pseudo_register_write): Likewise.
11339 (s390_value_from_register): Account for the fact that values are
11340 placed left-justified in vector registers.
11341 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11342 the vector reggroup and omit them from the general reggroup.
11343 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11344 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11345 (s390_iterate_over_regset_sections): Add iterations for the two
11346 new vector regsets.
11347 (s390_core_read_description): Yield a target description with
11348 vector registers if applicable.
11349 (s390_gdbarch_init): Handle target descriptions with vector
11350 registers. Add "register_name" gdbarch method.
11351 (_initialize_s390_tdep): Call new tdesc initialization functions.
11352 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11353 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11354 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11355 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11356 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11357 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11358 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11359 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11360 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11361 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11362 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11363 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11364 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11365 (S390_NUM_REGS): Adjust value.
11366 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11367 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11368 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11369 * NEWS: Announce S/390 vector register support.
11370
11371 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11372
11373 * features/s390-tevx-linux64.xml: New file.
11374 * features/s390-vx-linux64.xml: New file.
11375 * features/s390-vx.xml: New file.
11376 * features/s390x-tevx-linux64.xml: New file.
11377 * features/s390x-vx-linux64.xml: New file.
11378 * features/Makefile (WHICH): Add s390-vx-linux64,
11379 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11380 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11381 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11382 macros.
11383 * features/s390-tevx-linux64.c: New generated file.
11384 * features/s390-vx-linux64.c: Likewise.
11385 * features/s390x-tevx-linux64.c: Likewise.
11386 * features/s390x-vx-linux64.c: Likewise.
11387 * regformats/s390-tevx-linux64.dat: Likewise.
11388 * regformats/s390-vx-linux64.dat: Likewise.
11389 * regformats/s390x-tevx-linux64.dat: Likewise.
11390 * regformats/s390x-vx-linux64.dat: Likewise.
11391
11392 2015-02-28 Doug Evans <xdje42@gmail.com>
11393
11394 * symtab.h (struct symtab) <next>: Fix comment.
11395
11396 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11397
11398 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11399 python_GdbMethods.
11400
11401 2015-02-27 Pedro Alves <palves@redhat.com>
11402
11403 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11404
11405 2015-02-27 Pedro Alves <palves@redhat.com>
11406
11407 * common/common-exceptions.h (exception_none): Declare.
11408 * common/common-exceptions.c (exception_none): Moved from
11409 exceptions.c.
11410 (exceptions_state_mc_init): Use exception_none.
11411 * exceptions.c (exception_none): Move to
11412 common/common-exceptions.c.
11413 * exceptions.h (exception_none): Move to
11414 common/common-exceptions.h.
11415
11416 2015-02-27 Pedro Alves <palves@redhat.com>
11417
11418 * main.c (catch_command_errors, catch_command_errors_const):
11419 Remove 'mask' argument. Adjust.
11420 (captured_main): Adjust callers.
11421
11422 2015-02-27 Pedro Alves <palves@redhat.com>
11423
11424 * python/python-internal.h: Include "extension-priv.h".
11425
11426 2015-02-27 Pedro Alves <palves@redhat.com>
11427
11428 * breakpoint.h (enum print_stop_action): Move further up in the
11429 file.
11430
11431 2015-02-27 Pedro Alves <palves@redhat.com>
11432
11433 * gdbarch.sh: Include regcache.h.
11434 * gdbarch.h: Regenerate.
11435
11436 2015-02-27 Pedro Alves <palves@redhat.com>
11437
11438 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11439 Remove duplicate const.
11440 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11441 duplicate const.
11442
11443 2015-02-27 Pedro Alves <palves@redhat.com>
11444
11445 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11446 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11447 * features/feature_to_c.sh: Tag the generated xml_builtin array
11448 with extern const in C++ mode.
11449
11450 2015-02-27 Tom Tromey <tromey@redhat.com>
11451
11452 * minidebug.c (struct lzma_stream): Rename to ...
11453 (struct gdb_lzma_stream): ... this.
11454 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11455
11456 2015-02-27 Pedro Alves <palves@redhat.com>
11457
11458 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11459 function.
11460 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11461 (mi_cmd_stack_list_variables): Use it.
11462
11463 2015-02-27 Pedro Alves <palves@redhat.com>
11464
11465 * x86-linux-nat.c (u_debugreg_offset): New function.
11466 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11467
11468 2015-02-27 Pedro Alves <palves@redhat.com>
11469
11470 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11471 declaration.
11472 Include break-common.h.
11473
11474 2015-02-27 Tom Tromey <tromey@redhat.com>
11475 Pedro Alves <palves@redhat.com>
11476
11477 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11478 local used to iterate over enums.
11479 * completer.c (signal_completer): Likewise.
11480 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11481 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11482 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11483 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11484 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11485 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11486 * tui-wingeneral.c (tui_refresh_all): Likewise.
11487
11488 2015-02-27 Pedro Alves <palves@redhat.com>
11489
11490 * target.h: Include "infrun.h".
11491
11492 2015-02-27 Pedro Alves <palves@redhat.com>
11493
11494 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11495
11496 2015-02-27 Pedro Alves <palves@redhat.com>
11497
11498 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11499 (IPA_SYM): Use it.
11500 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11501
11502 2015-02-27 Pedro Alves <palves@redhat.com>
11503
11504 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11505 cli_mld_erase_entire_line, and make it extern "C".
11506 * common/common-defs.h (EXTERN_C): New.
11507 * completer.c (_rl_completion_prefix_display_length)
11508 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11509 out of gdb_display_match_list_1.
11510 (_rl_qsort_string_compare): Move declaration out of
11511 gdb_display_match_list_1, and make it extern "C".
11512 * defs.h (re_comp): Use EXTERN_C.
11513 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11514 and make it extern "C".
11515 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11516 and make it extern "C".
11517 (main): Move declaration out of maintenance_set_profile_cmd.
11518 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11519 EXTERN_C.
11520
11521 2015-02-27 Pedro Alves <palves@redhat.com>
11522
11523 * python/python.c (GdbMethods): Rename to ...
11524 (python_GdbMethods): ... this and make extern.
11525 (GdbModuleDef): Rename to ...
11526 (python_GdbModuleDef): ... this and make extern.
11527
11528 2015-02-27 Pedro Alves <palves@redhat.com>
11529
11530 * record-btrace.c (set_record_btrace_cmdlist)
11531 (show_record_btrace_cmdlist): Remove redefinitions.
11532
11533 2015-02-27 Tom Tromey <tromey@redhat.com>
11534 Pedro Alves <palves@redhat.com>
11535
11536 * dwarf2-frame.c (enum cfa_how_kind, struct
11537 dwarf2_frame_state_reg_info): Move out of struct
11538 dwarf2_frame_state.
11539 * dwarf2read.c (struct tu_stats): Move out of struct
11540 dwarf2_per_objfile.
11541 (struct file_entry): Move out of struct line_header.
11542 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11543 typedef_field_list): Move out of struct field_info.
11544 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11545 Move out of struct dynamic_prop.
11546 (union type_owner, union field_location, struct field, struct
11547 range_bounds, union type_specific): Move out of struct main_type.
11548 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11549 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11550 (struct call_site_target, union call_site_parameter_u, struct
11551 call_site_parameter): Move out of struct call_site.
11552 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11553 m32c_prologue.
11554 (enum srcdest_kind): Move out of struct srcdest.
11555 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11556 * prologue-value.h (enum prologue_value_kind): Move out of struct
11557 prologue_value.
11558 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11559 gdbarch_tdep.
11560 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11561 out of struct field_info.
11562 * symfile.h (struct other_sections): Move out of struct
11563 section_addr_info.
11564 * symtab.c (struct symbol_cache_slot): Move out struct
11565 block_symbol_cache.
11566 * target-descriptions.c (enum tdesc_type_kind): Move out of
11567 typedef struct tdesc_type.
11568 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11569 struct tui_line_or_address.
11570 * value.c (enum internalvar_kind, union internalvar_data): Move
11571 out of struct internalvar.
11572 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11573 gdbarch_tdep.
11574
11575 2015-02-27 Tom Tromey <tromey@redhat.com>
11576 Pedro Alves <palves@redhat.com>
11577
11578 Rename symbols whose names are reserved C++ keywords throughout.
11579
11580 2015-02-27 Pedro Alves <palves@redhat.com>
11581
11582 * Makefile.in (COMPILER): New, get it from autoconf.
11583 (COMPILE.pre, CC_LD): Use COMPILER.
11584 (CXX): Get from autoconf instead.
11585 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11586 * acinclude.m4: Include build-with-cxx.m4.
11587 * build-with-cxx.m4: New file.
11588 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11589 Disable -Werror by default if building in C++ mode.
11590 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11591 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11592 Run supported-warning-flags tests with the C++ compiler.
11593 Save/restore CXXFLAGS too.
11594 * configure: Regenerate.
11595
11596 2015-02-27 Pedro Alves <palves@redhat.com>
11597
11598 * libiberty.m4: New file.
11599 * acinclude.m4: Include libiberty.m4.
11600 * configure.ac: Call libiberty_INIT.
11601 * config.in, configure: Regenerate.
11602
11603 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11604
11605 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11606 31-bit targets, but 64-bit targets as well.
11607 (s390_gnu_triplet_regexp): New function.
11608 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11609 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11610 method.
11611
11612 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11613
11614 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11615 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11616 from CONTEXT_DEBUGGER.
11617
11618 2015-02-26 Doug Evans <dje@google.com>
11619
11620 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11621 CHECK_TYPEDEF.
11622 (set_type_vptr_fieldno): Ditto.
11623 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11624 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11625
11626 2015-02-26 Pedro Alves <palves@redhat.com>
11627
11628 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11629 * complaints.c (vcomplaint): Pass argument FMT directly to
11630 printf-like functions instead of complaint->fmt.
11631 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11632 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11633 * compile/compile-loc2c.c (pushf, unary, binary): Add
11634 ATTRIBUTE_PRINTF.
11635 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11636 to pushf.
11637 (BINARY): Pass string literal as format string to 'binary'.
11638 * compile/compile-object-load.c (link_callbacks_einfo): Add
11639 ATTRIBUTE_PRINTF.
11640 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11641
11642 2015-02-26 Pedro Alves <palves@redhat.com>
11643
11644 * windows-termcap.c: Rename to ...
11645 * stub-termcap.c: ... this. Adjust header line.
11646 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11647 windows-termcap.c.
11648 * configure: Regenerate.
11649 * configure.ac: Refer to stub-termcap.o instead of
11650 windows-termcap.o.
11651 * gdb_curses.h: Mention stub-termcap.c instead of
11652 windows-termcap.c.
11653
11654 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11655
11656 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11657 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11658
11659 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11660
11661 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11662
11663 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11664
11665 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11666 bfd_canonicalize_symtab.
11667
11668 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11669
11670 * amd64fbsd-nat.c: Include sys/user.h.
11671 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11672 instead of KERN_PS_STRINGS to locate the signal trampoline.
11673 * i386fbsd-nat.c: Include sys/user.h.
11674 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11675 instead of KERN_PS_STRINGS to locate the signal trampoline.
11676 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11677 (amd64fbsd_sigtramp_p): New.
11678 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11679 longer set default values.
11680 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11681 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11682 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11683 (i386fbsd_freebsd4_sigtramp_start)
11684 (i386fbsd_freebsd4_sigtramp_middle)
11685 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11686 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11687 (i386fbsd_sigtramp_p): New.
11688 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11689 longer set default values.
11690 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11691
11692 2015-02-25 John Baldwin <jhb@freebsd.org>
11693
11694 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11695 get_frame_register instead of frame_unwind_register_unsigned.
11696
11697 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11698
11699 PR build/18033
11700 * compile/compile-c-support.c (c_compute_program): Change // comment.
11701 * compile/compile-object-load.c (setup_sections): Change // comment.
11702
11703 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11704
11705 PR build/18033:
11706 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11707
11708 2015-02-23 Pedro Alves <palves@redhat.com>
11709
11710 * remote.c (skip_to_semicolon): New function.
11711 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11712 special case the stop reasons that look like hex numbers
11713 upfront. Instead handle real register numbers after matching
11714 all the known stop reasons.
11715
11716 2015-02-21 Doug Evans <dje@google.com>
11717
11718 PR c++/17976, symtab/17821
11719 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11720 is_in_anonymous. All callers updated.
11721 (find_symbol_in_baseclass): Ditto.
11722 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11723 for symbols in an anonymous namespace.
11724 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11725 DW_AT_name directly.
11726 (dwarf2_name): Convert missing namespace name to
11727 CP_ANONYMOUS_NAMESPACE_STR.
11728
11729 2015-02-20 Pedro Alves <palves@redhat.com>
11730
11731 * linux-nat.c (linux_handle_extended_wait): Call
11732 thread_db_notice_clone whenever a new clone LWP is detected.
11733 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11734 functions.
11735 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11736 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11737 (linux_unstop_all_lwps): Declare.
11738 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11739 (thread_get_info_callback): Delete.
11740 (thread_from_lwp): Use td_thr_get_info and record_thread.
11741 (thread_db_attach_lwp): Delete.
11742 (thread_db_notice_clone): New function.
11743 (try_thread_db_load_1): If /proc is mounted and shows the
11744 process'es task list, walk over all LWPs and call thread_from_lwp
11745 instead of relying on td_ta_thr_iter.
11746 (attach_thread): Don't call check_thread_signals here. Split the
11747 tail part of the function (which adds the thread to the core GDB
11748 thread list) to ...
11749 (record_thread): ... this function. Call check_thread_signals
11750 here.
11751 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11752 call thread_from_lwp.
11753 (thread_db_update_thread_list): Rename to ...
11754 (thread_db_update_thread_list_org): ... this.
11755 (thread_db_update_thread_list): New function.
11756 (thread_db_find_thread_from_tid): Delete.
11757 (thread_db_get_ada_task_ptid): Simplify.
11758 * nat/linux-procfs.c: Include <sys/stat.h>.
11759 (linux_proc_task_list_dir_exists): New function.
11760 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11761
11762 2015-02-20 Pedro Alves <palves@redhat.com>
11763
11764 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11765 main LWP. Handle the case of waitpid returning 0 if we're already
11766 attached to the LWP. Don't set the LWP's last_resume_kind to
11767 resume_stop if we already knew about the LWP.
11768 (linux_nat_filter_event): Add debug logs.
11769
11770 2015-02-20 Pedro Alves <palves@redhat.com>
11771
11772 * target.h (forward_target_decr_pc_after_break): Delete
11773 declaration.
11774
11775 2015-02-20 Pedro Alves <palves@redhat.com>
11776
11777 PR threads/18006
11778 * linux-thread-db.c (thread_get_info_callback): Return early if
11779 the thread's lwp id is -1.
11780
11781 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11782
11783 GDB 7.9 released.
11784
11785 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11786
11787 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11788 (dtrace_get_probes) Change type of variable 'dof'.
11789
11790 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11791
11792 PR breakpoints/16812
11793 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11794 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11795 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11796
11797 2015-02-19 David Taylor <dtaylor@emc.com>
11798
11799 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11800
11801 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11802
11803 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11804 function.
11805 (tui_putc): Don't call tui_handle_resize_during_io.
11806 (tui_getc): Likewise.
11807 (tui_mld_getc): Likewise.
11808 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11809 (tui_sigwinch_token): New static variable.
11810 (tui_initialize_win): Adjust documentation. Set
11811 tui_sigwinch_token.
11812 (tui_async_resize_screen): New asynchronous callback.
11813 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11814 invoke tui_async_resize_screen.
11815
11816 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11817
11818 * configure: Regenerated.
11819 * configure.ac: Use GDB_AC_TRANSFORM.
11820 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11821 * acinclude.m4: sinclude transform.m4.
11822 * transform.m4: New file.
11823 (GDB_AC_TRANSFORM): New macro.
11824
11825 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11826
11827 * NEWS: Announce the support for DTrace SDT probes.
11828
11829 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11830
11831 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11832 (amd64_dtrace_parse_probe_argument): New function.
11833 (amd64_dtrace_probe_is_enabled): Likewise.
11834 (amd64_dtrace_enable_probe): Likewise.
11835 (amd64_dtrace_disable_probe): Likewise.
11836 (amd64_linux_init_abi): Register the
11837 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11838 `gdbarch_dtrace_disable_probe' and
11839 `gdbarch_dtrace_probe_is_enabled' hooks.
11840 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11841 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11842 (amd64_dtrace_enable_probe_sequence): Likewise.
11843 (amd64_dtrace_disable_probe_sequence): Likewise.
11844
11845 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11846
11847 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11848 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11849 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11850 handle ELF files.
11851 * Makefile.in (SFILES): dtrace-probe.c added.
11852 * configure: Regenerate.
11853 * dtrace-probe.c: New file.
11854 (SHT_SUNW_dof): New constant.
11855 (dtrace_probe_type): New enum.
11856 (dtrace_probe_arg): New struct.
11857 (dtrace_probe_arg_s): New typedef.
11858 (struct dtrace_probe_enabler): New struct.
11859 (dtrace_probe_enabler_s): New typedef.
11860 (dtrace_probe): New struct.
11861 (dtrace_probe_is_linespec): New function.
11862 (dtrace_dof_sect_type): New enum.
11863 (dtrace_dof_dofh_ident): Likewise.
11864 (dtrace_dof_encoding): Likewise.
11865 (DTRACE_DOF_ENCODE_LSB): Likewise.
11866 (DTRACE_DOF_ENCODE_MSB): Likewise.
11867 (dtrace_dof_hdr): New struct.
11868 (dtrace_dof_sect): Likewise.
11869 (dtrace_dof_provider): Likewise.
11870 (dtrace_dof_probe): Likewise.
11871 (DOF_UINT): New macro.
11872 (DTRACE_DOF_PTR): Likewise.
11873 (DTRACE_DOF_SECT): Likewise.
11874 (dtrace_process_dof_probe): New function.
11875 (dtrace_process_dof): Likewise.
11876 (dtrace_build_arg_exprs): Likewise.
11877 (dtrace_get_arg): Likewise.
11878 (dtrace_get_probes): Likewise.
11879 (dtrace_get_probe_argument_count): Likewise.
11880 (dtrace_can_evaluate_probe_arguments): Likewise.
11881 (dtrace_evaluate_probe_argument): Likewise.
11882 (dtrace_compile_to_ax): Likewise.
11883 (dtrace_probe_destroy): Likewise.
11884 (dtrace_gen_info_probes_table_header): Likewise.
11885 (dtrace_gen_info_probes_table_values): Likewise.
11886 (dtrace_probe_is_enabled): Likewise.
11887 (dtrace_probe_ops): New variable.
11888 (info_probes_dtrace_command): New function.
11889 (_initialize_dtrace_probe): Likewise.
11890 (dtrace_type_name): Likewise.
11891
11892 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11893
11894 * gdbarch.sh (dtrace_parse_probe_argument): New.
11895 (dtrace_probe_is_enabled): Likewise.
11896 (dtrace_enable_probe): Likewise.
11897 (dtrace_disable_probe): Likewise.
11898 * gdbarch.c: Regenerate.
11899 * gdbarch.h: Regenerate.
11900
11901 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11902
11903 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11904 stap_probe_ops for `enable_probe' and `disable_probe'.
11905 * probe.c (enable_probes_command): New function.
11906 (disable_probes_command): Likewise.
11907 (_initialize_probe): Define the cli commands `enable probe' and
11908 `disable probe'.
11909 (parse_probe_linespec): New function.
11910 (info_probes_for_ops): Use parse_probe_linespec.
11911 * probe.h (probe_ops): New hooks `enable_probe' and
11912 `disable_probe'.
11913
11914 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11915
11916 * probe.c (compute_probe_arg): Moved from stap-probe.c
11917 (compile_probe_arg): Likewise.
11918 (probe_funcs): Likewise.
11919 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11920 (compile_probe_arg): Likewise.
11921 (probe_funcs): Likewise.
11922
11923 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11924
11925 * probe.c (print_ui_out_not_applicables): New function.
11926 (exists_probe_with_pops): Likewise.
11927 (info_probes_for_ops): Do not include column headers for probe
11928 types for which no probe has been actually found on any object.
11929 Also invoke `print_ui_out_not_applicables' in order to match the
11930 column rows with the header when probes of several types are
11931 listed.
11932 Print the "Type" column.
11933 * probe.h (probe_ops): Added a new probe operation `type_name'.
11934 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11935 (stap_type_name): New function.
11936
11937 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11938
11939 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11940 (key_is_command_char): Delete.
11941
11942 2015-02-17 Pedro Alves <palves@redhat.com>
11943
11944 * tui/tui.c (tui_enable): Resize windows before anything
11945 might show a window.
11946
11947 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11948
11949 PR gdb/17984
11950 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11951 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11952 call.
11953 * aarch64-tdep.h (tdesc_aarch64): Declare.
11954
11955 2015-02-12 Mark Wielaard <mjw@redhat.com>
11956
11957 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11958
11959 2015-02-13 Doug Evans <dje@google.com>
11960
11961 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11962 anonymous_namespace to is_in_anonymous for consistency with the rest
11963 of the file.
11964 (cp_lookup_bare_symbol): Fix typo in comment.
11965 (cp_search_static_and_baseclasses): Ditto.
11966 (search_symbol_list): Use vertical space in comment better.
11967 (reset_directive_searched): Ditto. Fix typo.
11968 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11969
11970 2015-02-13 Yao Qi <yao.qi@arm.com>
11971
11972 * MAINTAINERS: Update my email address.
11973
11974 2015-02-12 Doug Evans <dje@google.com>
11975
11976 * symtab.c (completion_list_add_name): Fix memory leak.
11977
11978 2015-02-12 Doug Evans <dje@google.com>
11979
11980 * completer.c (complete_line): Remove incorrect comment.
11981
11982 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11983
11984 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11985 (py_print_frame): Use RETURN_MASK_ERROR.
11986
11987 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11988
11989 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11990 function comment. Wrap all function that can throw in cleanups.
11991 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11992 cleanups.
11993
11994 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11995
11996 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11997 Remove the error label.
11998
11999 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12000
12001 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12002 with goto first, indent the former else codepath left. Put variable
12003 'elided' to a new inner block.
12004
12005 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12006
12007 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12008
12009 2015-02-11 Pedro Alves <palves@redhat.com>
12010
12011 * xcoffread.c (within_function): Delete.
12012
12013 2015-02-11 Tom Tromey <tromey@redhat.com>
12014 Pedro Alves <palves@redhat.com>
12015
12016 * breakpoint.c (base_breakpoint_ops): Delete.
12017 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12018 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12019 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12020 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12021 * python/py-arch.c (arch_object_type): Make extern.
12022 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12023 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12024 * python/py-cmd.c (cmdpy_object_type): Make extern.
12025 * python/py-continueevent.c (continue_event_object_type)
12026 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12027 parameter. Update all callers.
12028 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12029 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12030 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12031 * python/py-function.c (fnpy_object_type): Make extern.
12032 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12033 * python/py-infevents.c (call_pre_event_object_type)
12034 (inferior_call_post_event_object_type).
12035 (memory_changed_event_object_type): Make extern.
12036 * python/py-infthread.c (thread_object_type): Make extern.
12037 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12038 * python/py-linetable.c (linetable_entry_object_type)
12039 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12040 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12041 (clear_objfiles_event_object_type): Make extern.
12042 * python/py-objfile.c (objfile_object_type): Make extern.
12043 * python/py-param.c (parmpy_object_type): Make extern.
12044 * python/py-progspace.c (pspace_object_type): Make extern.
12045 * python/py-signalevent.c (signal_event_object_type): Make extern.
12046 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12047 * python/py-type.c (type_object_type, field_object_type)
12048 (type_iterator_object_type): Make extern.
12049 * python/python.c (python_extension_script_ops)
12050 (python_extension_ops): Make extern.
12051 * stap-probe.c (stap_probe_ops): Make extern.
12052
12053 2015-02-11 Pedro Alves <pedro@codesourcery.com>
12054
12055 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12056 because the event thread is not the current thread.
12057
12058 2015-02-11 Doug Evans <xdje42@gmail.com>
12059
12060 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12061 been initialized yet, return NULL.
12062
12063 2015-02-11 Doug Evans <dje@google.com>
12064
12065 * symfile.h (new_symfile_objfile): Delete.
12066 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12067 All callers updated.
12068
12069 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12070
12071 * tui/tui-io.c (tui_handle_resize_during_io): Call
12072 tui_update_gdb_sizes() after resizing the screen.
12073 * tui/tui.c (tui_enable): Resize the terminal before
12074 calling tui_update_gdb_sizes().
12075
12076 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12077
12078 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12079 line before printing a newline.
12080
12081 2015-02-11 Mark Wielaard <mjw@redhat.com>
12082
12083 * utils.c (producer_is_gcc): Return true or false.
12084
12085 2015-02-10 Mark Wielaard <mjw@redhat.com>
12086
12087 * utils.h (producer_is_gcc): Change return type to bool. Add major
12088 argument.
12089 * utils.c (producer_is_gcc): Likewise.
12090 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12091 * dwarf2read.c (check_producer): Likewise.
12092
12093 2015-02-10 Pedro Alves <palves@redhat.com>
12094
12095 * infrun.c (displaced_step_fixup): Switch to the event thread
12096 before calling gdbarch_displaced_step_fixup.
12097
12098 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12099
12100 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12101
12102 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12103
12104 * ada-varobj.c (ada_name_of_child): Constify parent.
12105 (ada_path_expr_of_child): Same.
12106 (ada_value_of_child): Same.
12107 (ada_type_of_child): Same.
12108 * c-varobj.c (c_is_path_expr_parent): Same.
12109 (c_describe_child): Same.
12110 (c_name_of_child): Same.
12111 (c_value_of_child): Same.
12112 (c_type_of_child): Same.
12113 (cplus_number_of_children): Same.
12114 (cplus_describe_child): Constify var.
12115 (cplus_name_of_child): Constify parent.
12116 (cplus_value_of_child): Same.
12117 (cplus_type_of_child): Same.
12118 * jv-varobj.c (java_name_of_child): Same.
12119 (java_value_of_child): Same.
12120 (java_type_of_child): Same.
12121 * varobj.c (value_of_child): Same.
12122 (varobj_default_is_path_expr_parent): Constify var, parent and return
12123 value.
12124 (varobj_get_path_expr): Constify var, modify path_expr through
12125 mutable_var.
12126 (install_new_value): Constify parent.
12127 (value_of_child): Constify parent.
12128 * varobj.h (struct varobj): Constify parent.
12129 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12130 type_of_child.
12131 (varobj_get_path_expr): Constify var.
12132 (varobj_get_path_expr_parent): Constify var and return value.
12133
12134 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
12135
12136 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12137 (arm_prologue_this_id): Move PC and SP limit checks to
12138 arm_prologue_unwind_stop_reason.
12139 (arm_prologue_unwind) <stop_reason> : Set to
12140 arm_prologue_unwind_stop_reason.
12141
12142 2015-02-09 Mark Wielaard <mjw@redhat.com>
12143
12144 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12145 DW_LANG_Fortran08 as language_fortran.
12146
12147 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12148
12149 PR remote/17946
12150 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12151 of pointer against char.
12152
12153 2015-02-09 Mark Wielaard <mjw@redhat.com>
12154
12155 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12156 (c_type_print_modifier): Likewise.
12157 * dwarf2read.c (read_tag_atomic_type): New function.
12158 (read_type_die_1): Handle DW_TAG_atomic_type.
12159 * gdbtypes.c (make_atomic_type): New function.
12160 (recursive_dump_type): Handle TYPE_ATOMIC.
12161 * gdbtypes.h (enum type_flag_values): Renumber.
12162 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
12163 (TYPE_ATOMIC): New macro.
12164 (make_atomic_type): Declare.
12165
12166 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12167
12168 * btrace.c (ftrace_find_call): Skip gaps.
12169 (ftrace_new_function): Initialize level.
12170 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
12171 (ftrace_new_switch): Update
12172 level computation.
12173 (ftrace_new_gap): New.
12174 (ftrace_update_function): Create new function after gap.
12175 (btrace_compute_ftrace_bts): Create gap on error.
12176 (btrace_stitch_bts): Update parameters. Clear trace if it
12177 becomes empty.
12178 (btrace_stitch_trace): Update parameters. Update callers.
12179 (btrace_clear): Reset the number of gaps.
12180 (btrace_insn_get): Return NULL if the iterator points to a gap.
12181 (btrace_insn_number): Return zero if the iterator points to a gap.
12182 (btrace_insn_end): Allow gaps at the end.
12183 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12184 (btrace_find_insn_by_number): Assert that the found iterator does
12185 not point to a gap.
12186 (btrace_call_next, btrace_call_prev): Assert that the last function
12187 is not a gap.
12188 * btrace.h (btrace_bts_error): New.
12189 (btrace_function): Update comment.
12190 (btrace_function) <insn, insn_offset, number>: Update comment.
12191 (btrace_function) <errcode>: New.
12192 (btrace_thread_info) <ngaps>: New.
12193 (btrace_thread_info) <replay>: Update comment.
12194 (btrace_insn_get): Update comment.
12195 * record-btrace.c (btrace_ui_out_decode_error): New.
12196 (record_btrace_info): Print number of gaps.
12197 (btrace_insn_history, btrace_call_history): Call
12198 btrace_ui_out_decode_error for gaps.
12199 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12200
12201 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12202
12203 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12204 * nat/linux-btrace.c: (btrace_this_cpu): New.
12205 (cpu_supports_bts): Call btrace_this_cpu.
12206 (intel_supports_bts): Add cpu parameter.
12207
12208 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12209
12210 * btrace.h (btrace_insn_class): New.
12211 (btrace_insn) <size, iclass>: New.
12212 * btrace.c (ftrace_find_call): Update parameters. Update users.
12213 Use instruction classification.
12214 (ftrace_new_return): Update parameters. Update users.
12215 (ftrace_update_function): Update parameters. Update users. Use
12216 instruction classification.
12217 (ftrace_update_insns): Update parameters. Update users.
12218 (ftrace_classify_insn): New.
12219 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12220 TRY_CATCH around call to gdb_insn_length.
12221
12222 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12223
12224 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12225 Update parameters. Update users.
12226
12227 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12228
12229 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12230 (btrace_conf_bts_attributes): New.
12231 (btrace_conf_children): Add attributes.
12232 * common/btrace-common.h (btrace_config_bts): New.
12233 (btrace_config)<bts>: New.
12234 (btrace_config): Update comment.
12235 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12236 Use config.
12237 * features/btrace-conf.dtd: Increment version. Add size
12238 attribute to bts element.
12239 * record-btrace.c (set_record_btrace_bts_cmdlist,
12240 show_record_btrace_bts_cmdlist): New.
12241 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12242 record_btrace_print_conf, cmd_set_record_btrace_bts,
12243 cmd_show_record_btrace_bts): New.
12244 (record_btrace_info): Call record_btrace_print_conf.
12245 (_initialize_record_btrace): Add commands.
12246 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12247 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12248 (btrace_sync_conf): Synchronize bts size.
12249 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12250 * NEWS: Announce new commands and new packets.
12251
12252 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12253
12254 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12255 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12256 (x86_linux_btrace_conf): New.
12257 (x86_linux_create_target): Initialize to_btrace_conf.
12258 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12259 Check format. Split into this and ...
12260 (linux_enable_bts): ... this.
12261 (linux_btrace_conf): New.
12262 (perf_event_skip_record): Renamed into ...
12263 (perf_event_skip_bts_record): ... this. Updated users.
12264 (linux_disable_btrace): Split into this and ...
12265 (linux_disable_bts): ... this.
12266 (linux_read_btrace): Check format.
12267 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12268 (linux_btrace_conf): New.
12269 (btrace_target_info)<ptid>: Moved.
12270 (btrace_target_info)<conf>: New.
12271 (btrace_target_info): Split into this and ...
12272 (btrace_tinfo_bts): ... this. Updated users.
12273 * btrace.c (btrace_enable): Update parameters.
12274 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12275 (btrace_conf_children, btrace_conf_attributes)
12276 (btrace_conf_elements): New.
12277 * btrace.h (btrace_enable): Update parameters.
12278 (btrace_conf, parse_xml_btrace_conf): New.
12279 * common/btrace-common.h (btrace_config): New.
12280 * feature/btrace-conf.dtd: New.
12281 * record-btrace.c (record_btrace_conf): New.
12282 (record_btrace_cmdlist): New.
12283 (record_btrace_enable_warn, record_btrace_open): Pass
12284 &record_btrace_conf.
12285 (record_btrace_info): Print recording format.
12286 (cmd_record_btrace_bts_start): New.
12287 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12288 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12289 Add "record bts" alias command.
12290 * remote.c (remote_state)<btrace_config>: New.
12291 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12292 (remote_protocol_features): Add qXfer:btrace-conf:read.
12293 (remote_open_1): Call remote_btrace_reset.
12294 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12295 (btrace_target_info)<conf>: New.
12296 (btrace_sync_conf, btrace_read_config): New.
12297 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12298 btrace_read_conf.
12299 (remote_btrace_conf): New.
12300 (init_remote_ops): Initialize to_btrace_conf.
12301 (_initialize_remote): Add qXfer:btrace-conf packet.
12302 * target.c (target_enable_btrace): Update parameters.
12303 (target_btrace_conf): New.
12304 * target.h (target_enable_btrace): Update parameters.
12305 (target_btrace_conf): New.
12306 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12307 (target_ops)<to_enable_btrace>: Update parameters and comment.
12308 (target_ops)<to_btrace_conf>: New.
12309 * target-delegates: Regenerate.
12310 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12311 (target_debug_print_const_struct_btrace_target_info_p): New.
12312 * NEWS: Announce new command and new packet.
12313
12314 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12315
12316 * nat/linux-btrace.h (perf_event_buffer): New.
12317 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12318 <bts>: ... this.
12319 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12320 (perf_event_buffer_size, perf_event_buffer_begin)
12321 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12322 Updated users.
12323 (perf_event_new_data): New.
12324
12325 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12326
12327 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12328 * record-btrace.c (record_btrace_open): Remove call to
12329 target_supports_btrace.
12330 * remote.c (remote_supports_btrace): Update parameters.
12331 * target.c (target_supports_btrace): Update parameters.
12332 * target.h (to_supports_btrace, target_supports_btrace): Update
12333 parameters.
12334 * target-delegates.c: Regenerate.
12335 * target-debug.h (target_debug_print_enum_btrace_format): New.
12336 * nat/linux-btrace.c
12337 (kernel_supports_btrace): Rename into ...
12338 (kernel_supports_bts): ... this. Update users. Update warning text.
12339 (intel_supports_btrace): Rename into ...
12340 (intel_supports_bts): ... this. Update users.
12341 (cpu_supports_btrace): Rename into ...
12342 (cpu_supports_bts): ... this. Update users.
12343 (linux_supports_btrace): Update parameters. Split into this and ...
12344 (linux_supports_bts): ... this.
12345 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12346
12347 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12348
12349 * Makefile.in (SFILES): Add common/btrace-common.c.
12350 (COMMON_OBS): Add common/btrace-common.o.
12351 (btrace-common.o): Add build rules.
12352 * btrace.c (parse_xml_btrace): Update parameters.
12353 (parse_xml_btrace_block): Set format field.
12354 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12355 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12356 (btrace_compute_ftrace): Split into this and...
12357 (btrace_compute_ftrace_bts): ...this.
12358 (btrace_stitch_trace): Split into this and...
12359 (btrace_stitch_bts): ...this.
12360 * btrace.h (parse_xml_btrace): Update parameters.
12361 (make_cleanup_btrace_data): New.
12362 * common/btrace-common.c: New.
12363 * common/btrace-common.h: Include common-defs.h.
12364 (btrace_block_s): Update comment.
12365 (btrace_format): New.
12366 (btrace_format_string): New.
12367 (btrace_data_bts): New.
12368 (btrace_data): New.
12369 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12370 * remote.c (remote_read_btrace): Update parameters.
12371 * target.c (target_read_btrace): Update parameters.
12372 * target.h (target_read_btrace): Update parameters.
12373 (target_ops)<to_read_btrace>: Update parameters.
12374 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12375 * target-delegates.c: Regenerate.
12376 * target-debug (target_debug_print_struct_btrace_data_p): New.
12377 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12378 (linux_read_bts): ...this.
12379 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12380
12381 2015-02-06 Doug Evans <dje@google.com>
12382
12383 * remote-m32r-sdi.c: Include symfile.h.
12384
12385 2015-02-06 Doug Evans <dje@google.com>
12386
12387 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12388 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12389 to here.
12390
12391 2015-02-06 Pedro Alves <palves@redhat.com>
12392
12393 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12394
12395 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12396
12397 PR gdb/15678
12398 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12399 (enable_count_command): Check args for NULL value.
12400
12401 2015-02-05 Doug Evans <xdje42@gmail.com>
12402
12403 * guile/scm-frame.c: Fix spelling errors in a comment.
12404
12405 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12406
12407 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12408 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12409 return type.
12410
12411 2015-02-04 Pedro Alves <palves@redhat.com>
12412
12413 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12414 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12415 returns true.
12416 (resume_stopped_resumed_lwps): Don't check whether the thread is
12417 marked as executing.
12418 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12419
12420 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12421
12422 * regset.h (struct regset): Add flags field.
12423 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12424 * corelow.c (get_core_register_section): Add warning if the size
12425 exceeds the requested size and the regset does not have the
12426 REGSET_VARIABLE_SIZE flag set.
12427 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12428 flag.
12429 * armbsd-tdep.c (armbsd_gregset): Likewise.
12430 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12431 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12432 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12433 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12434
12435 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12436
12437 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12438 For ".reg-xstate", explicitly specify the requested section size
12439 via X86_XSTATE_SIZE instead of just 0 on input and
12440 X86_XSTATE_MAX_SIZE on output.
12441 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12442 Likewise.
12443
12444 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12445
12446 PR corefiles/17808:
12447 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12448 function type, particularly its SIZE parameter.
12449 * gdbarch.h: Regenerate.
12450 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12451 actual against required size using ">=" instead of "==".
12452 (amd64_collect_fpregset): Likewise.
12453 * i386-tdep.c (i386_supply_gregset): Likewise.
12454 (i386_collect_gregset): Likewise.
12455 (i386_supply_fpregset): Likewise.
12456 (i386_collect_fpregset): Likewise.
12457 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12458 (mips_fill_gregset_wrapper): Likewise.
12459 (mips_supply_fpregset_wrapper): Likewise.
12460 (mips_fill_fpregset_wrapper): Likewise.
12461 (mips64_supply_gregset_wrapper): Likewise.
12462 (mips64_fill_gregset_wrapper): Likewise.
12463 (mips64_supply_fpregset_wrapper): Likewise.
12464 (mips64_fill_fpregset_wrapper): Likewise.
12465 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12466 (am33_supply_fpregset_method): Likewise.
12467 (am33_collect_gregset_method): Likewise.
12468 (am33_collect_fpregset_method): Likewise.
12469
12470 2015-02-04 Doug Evans <dje@google.com>
12471 Pedro Alves <palves@redhat.com>
12472 Eli Zaretskii <eliz@gnu.org>
12473
12474 PR tui/17810
12475 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12476 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12477 * tui/tui-file.c: #include tui/tui-command.h.
12478 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12479 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12480 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12481
12482 2015-02-04 Pedro Alves <palves@redhat.com>
12483
12484 Fix build breakage.
12485 * event-loop.c (gdb_do_one_event): Add default switch case.
12486
12487 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12488
12489 Filter out inferior gcc option -fpreprocessed.
12490 * compile/compile.c (filter_args): New function.
12491 (get_args): Use it.
12492
12493 2015-02-03 Pedro Alves <palves@redhat.com>
12494
12495 * event-loop.c: Don't declare nor define a queue type for
12496 gdb_event_p.
12497 (event_queue): Delete.
12498 (create_event, create_file_event, gdb_event_xfree)
12499 (initialize_event_loop, process_event): Delete.
12500 (gdb_do_one_event): Return as soon as one event is handled.
12501 (handle_file_event): Change prototype. Used the passed in
12502 file_handler pointer and ready_mask instead of looping over all
12503 file handlers.
12504 (gdb_wait_for_event): Update the poll/select timeouts before
12505 blocking. Run event handlers directly instead of queueing events.
12506 Return as soon as one event is handled.
12507 (struct async_event_handler_data): Delete.
12508 (invoke_async_event_handler): Delete.
12509 (check_async_event_handlers): Change return type to int. Run
12510 event handlers directly instead of queueing events. Return as
12511 soon as one event is handled.
12512 (handle_timer_event): Delete.
12513 (update_wait_timeout): New function, factored out from
12514 poll_timers.
12515 (poll_timers): Reimplement.
12516 * event-loop.h (initialize_event_loop): Delete declaration.
12517 * top.c (gdb_init): Don't call initialize_event_loop.
12518
12519 2015-02-03 Pedro Alves <palves@redhat.com>
12520
12521 * event-loop.c (clear_async_event_handler): New function.
12522 * event-loop.h (clear_async_event_handler): New declaration.
12523 * record-btrace.c (record_btrace_async): New function.
12524 (init_record_btrace_ops): Install record_btrace_async.
12525 * record-full.c (record_full_async): New function.
12526 (record_full_resume): Don't mark the async event source here.
12527 (init_record_full_ops): Install record_full_async.
12528 (record_full_core_resume): Don't mark the async event source here.
12529 (init_record_full_core_ops): Install record_full_async.
12530 * remote.c (remote_async): Mark and clear the async stop reply
12531 queue event-loop token as appropriate.
12532
12533 2015-02-03 Pedro Alves <palves@redhat.com>
12534
12535 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12536 target_is_async_p instead of target_can_async.
12537 (linux_nat_wait): Use target_is_async_p instead of
12538 target_can_async. Don't enable async here.
12539 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12540 target_is_async_p instead of target_can_async.
12541
12542 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12543
12544 * varobj.h (lang_varobj_ops): Mention which return values need
12545 to be freed.
12546
12547 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12548
12549 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12550
12551 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12552
12553 PR gdb/17856:
12554 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12555 results found in the cache.
12556
12557 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12558
12559 PR gdb/17854:
12560 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12561 when allocating a new one.
12562
12563 2015-02-01 Tom Tromey <tom@tromey.com>
12564
12565 * MAINTAINERS: Remove myself.
12566
12567 2015-01-31 Doug Evans <xdje42@gmail.com>
12568
12569 * dwarf2read.c (process_structure_scope): Update setting of
12570 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12571 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12572 (set_type_vptr_fieldno): New function.
12573 (internal_type_vptr_basetype): New function.
12574 (set_type_vptr_basetype): New function.
12575 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12576 TYPE_VPTR_BASETYPE.
12577 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12578 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12579 (print_cplus_stuff): ... moved here.
12580 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12581 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12582 moved to ...
12583 (struct cplus_struct_type): ... here. All uses updated.
12584 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12585 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12586 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12587 * stabsread.c (read_tilde_fields): Update setting of
12588 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12589
12590 2015-01-31 Doug Evans <xdje42@gmail.com>
12591
12592 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12593 to self_p.
12594 (cp_print_class_member): Rename local domain to self_type.
12595 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12596 domain_type to self_type.
12597 (set_die_type) <need_gnat_info>: Handle
12598 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12599 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12600 TYPE_SPECIFIC_SELF_TYPE.
12601 * gdbtypes.c (internal_type_self_type): New function.
12602 (set_type_self_type): New function.
12603 (smash_to_memberptr_type): Rename parameter domain to self_type.
12604 Update setting of TYPE_SELF_TYPE.
12605 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12606 (smash_to_method_type): Rename parameter domain to self_type.
12607 Update setting of TYPE_SELF_TYPE.
12608 (check_stub_method): Call smash_to_method_type.
12609 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12610 (copy_type_recursive): Ditto.
12611 * gdbtypes.h (enum type_specific_kind): New value
12612 TYPE_SPECIFIC_SELF_TYPE.
12613 (struct main_type) <type_specific>: New member self_type.
12614 (struct cplus_struct_type) <fn_field.type>: Update comment.
12615 (TYPE_SELF_TYPE): Rewrite.
12616 (internal_type_self_type, set_type_self_type): Declare.
12617 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12618 self_type.
12619 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12620 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12621 TYPE_TARGET_TYPE.
12622 * stabsread.c (read_member_functions): Mark methods with
12623 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12624 TYPE_SELF_TYPE.
12625
12626 2015-01-31 Doug Evans <xdje42@gmail.com>
12627
12628 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12629 All uses updated.
12630
12631 2015-01-31 Doug Evans <xdje42@gmail.com>
12632
12633 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12634 or unions. Return zero if union.
12635 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12636 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12637 gnuv3_get_vtable.
12638 (compute_vtable_size): Assert only passed structs.
12639 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12640
12641 2015-01-31 Doug Evans <xdje42@gmail.com>
12642
12643 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12644 kinds.
12645
12646 2015-01-31 Gary Benson <gbenson@redhat.com>
12647 Doug Evans <dje@google.com>
12648
12649 PR cli/9007
12650 PR cli/11920
12651 PR cli/15548
12652 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12653 reached.
12654 * common/common-exceptions.h (enum errors)
12655 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12656 * completer.h (get_max_completions_reached_message): New declaration.
12657 (max_completions): Likewise.
12658 (completion_tracker_t): New typedef.
12659 (new_completion_tracker): New declaration.
12660 (make_cleanup_free_completion_tracker): Likewise.
12661 (maybe_add_completion_enum): New enum.
12662 (maybe_add_completion): New declaration.
12663 (throw_max_completions_reached_error): Likewise.
12664 * completer.c (max_completions): New global variable.
12665 (new_completion_tracker): New function.
12666 (free_completion_tracker): Likewise.
12667 (make_cleanup_free_completion_tracker): Likewise.
12668 (maybe_add_completions): Likewise.
12669 (throw_max_completions_reached_error): Likewise.
12670 (complete_line): Remove duplicates and limit result to max_completions
12671 entries.
12672 (get_max_completions_reached_message): New function.
12673 (gdb_display_match_list): Handle max_completions.
12674 (_initialize_completer): New declaration and function.
12675 * symtab.c: Include completer.h.
12676 (completion_tracker): New static variable.
12677 (completion_list_add_name): Call maybe_add_completion.
12678 (default_make_symbol_completion_list_break_on_1): Renamed from
12679 default_make_symbol_completion_list_break_on. Maintain
12680 completion_tracker across calls to completion_list_add_name.
12681 (default_make_symbol_completion_list_break_on): New function.
12682 * top.c (init_main): Set rl_completion_display_matches_hook.
12683 * tui/tui-io.c: Include completer.h.
12684 (tui_old_rl_display_matches_hook): New static global.
12685 (tui_rl_display_match_list): Notify user if max-completions reached.
12686 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12687 * NEWS (New Options): Mention set/show max-completions.
12688
12689 2015-01-31 Gary Benson <gbenson@redhat.com>
12690
12691 * symtab.c (struct add_name_data) <code>: New field.
12692 Updated comments.
12693 (add_symtab_completions): New function.
12694 (symtab_expansion_callback): Likewise.
12695 (default_make_symbol_completion_list_break_on): Set datum.code.
12696 Move minimal symbol scan before calling expand_symtabs_matching.
12697 Scan known primary symtabs for externs and statics before calling
12698 expand_symtabs_matching. Pass symtab_expansion_callback as
12699 expansion_notify argument to expand_symtabs_matching. Do not scan
12700 primary symtabs for externs and statics after calling
12701 expand_symtabs_matching.
12702
12703 2015-01-31 Gary Benson <gbenson@redhat.com>
12704
12705 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12706 (struct quick_symbol_functions) <expand_symtabs_matching>:
12707 New argument expansion_notify. All uses updated.
12708 (expand_symtabs_matching): New argument expansion_notify.
12709 All uses updated.
12710 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12711 Also print expansion notify.
12712 * symtab.c (expand_symtabs_matching_via_partial): Call
12713 expansion_notify whenever a partial symbol table is expanded.
12714 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12715 expansion_notify whenever a symbol table is instantiated.
12716
12717 2015-01-31 Doug Evans <xdje42@gmail.com>
12718
12719 * cli-out.c: #include completer.h, readline/readline.h.
12720 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12721 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12722 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12723 * cli-out.h (cli_display_match_list): Declare.
12724 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12725 (ELLIPSIS_LEN): Ditto.
12726 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12727 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12728 (gdb_fnprint, gdb_print_filename): Ditto.
12729 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12730 (gdb_display_match_list): Ditto.
12731 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12732 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12733 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12734 (match_list_displayer): New struct.
12735 (gdb_display_match_list): Declare.
12736 * top.c (init_main): Set rl_completion_display_matches_hook.
12737 * tui/tui-io.c: #include completer.h.
12738 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12739 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12740 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12741 (tui_mld_getc, tui_mld_read_key): Ditto.
12742 (tui_rl_display_match_list): Rewrite.
12743 (tui_handle_resize_during_io): New arg for_completion. All callers
12744 updated.
12745
12746 2015-01-31 Doug Evans <xdje42@gmail.com>
12747
12748 Add symbol lookup cache.
12749 * NEWS: Document new options and commands.
12750 * symtab.c (symbol_cache_key): New static global.
12751 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12752 (SYMBOL_LOOKUP_FAILED): New macro.
12753 (symbol_cache_slot_state): New enum.
12754 (block_symbol_cache): New struct.
12755 (symbol_cache): New struct.
12756 (new_symbol_cache_size, symbol_cache_size): New static globals.
12757 (hash_symbol_entry, eq_symbol_entry): New functions.
12758 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12759 (make_symbol_cache, free_symbol_cache): New functions.
12760 (get_symbol_cache, symbol_cache_cleanup): New function.
12761 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12762 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12763 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12764 (symbol_cache_flush, symbol_cache_dump): New functions.
12765 (maintenance_print_symbol_cache): New function.
12766 (maintenance_flush_symbol_cache): New function.
12767 (symbol_cache_stats): New function.
12768 (maintenance_print_symbol_cache_statistics): New function.
12769 (symtab_new_objfile_observer): New function.
12770 (symtab_free_objfile_observer): New function.
12771 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12772 (_initialize_symtab): Init symbol_cache_key. New parameter
12773 maint symbol-cache-size. New maint commands print symbol-cache,
12774 print symbol-cache-statistics, flush-symbol-cache.
12775 Install new_objfile, free_objfile observers.
12776
12777 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12778
12779 PR symtab/17855
12780 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12781 to end.
12782
12783 2015-01-31 Doug Evans <xdje42@gmail.com>
12784
12785 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12786 * auto-load.c: #include ctype.h.
12787 (struct auto_load_pspace_info): Replace member loaded_scripts with
12788 new members loaded_script_files, loaded_script_texts.
12789 (auto_load_pspace_data_cleanup): Update.
12790 (init_loaded_scripts_info): Update.
12791 (get_auto_load_pspace_data_for_loading): Update.
12792 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12793 updated.
12794 (maybe_add_script_text): New function.
12795 (clear_section_scripts): Update.
12796 (source_script_file, execute_script_contents): New functions.
12797 (source_section_scripts): Add support for
12798 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12799 (print_scripts): New function.
12800 (auto_load_info_scripts): Also print inlined scripts.
12801 (maybe_print_unsupported_script_warning): Renamed from
12802 unsupported_script_warning_print. All callers updated.
12803 (maybe_print_script_not_found_warning): Renamed from
12804 script_not_found_warning_print. All callers updated.
12805 * extension-priv.h (struct extension_language_script_ops): New member
12806 objfile_script_executor.
12807 * extension.c (ext_lang_objfile_script_executor): New function.
12808 * extension.h (objfile_script_executor_func): New typedef.
12809 (ext_lang_objfile_script_executor): Declare.
12810 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12811 * guile/guile.c (guile_extension_script_ops): Update.
12812 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12813 * python/python.c (python_extension_script_ops): Update.
12814 (gdbpy_execute_objfile_script): New function.
12815
12816 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12817
12818 * tui/tui-io.c (tui_expand_tabs): New function.
12819 (tui_puts, tui_redisplay_readline): Expand TABs into the
12820 appropriate number of spaces.
12821 * tui/tui-regs.c: Include tui-io.h.
12822 (tui_register_format): Call tui_expand_tabs to expand TABs into
12823 the appropriate number of spaces.
12824 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12825
12826 2015-01-30 Doug Evans <dje@google.com>
12827
12828 * NEWS: "info source" command now display producer string if present.
12829 * source.c (source_info): Print producer string if present.
12830
12831 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12832
12833 * varobj.c (varobj_delete): Fix comment.
12834
12835 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12836
12837 * varobj.c (create_child): Modify comment.
12838
12839 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12840
12841 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12842 parameter.
12843 (ada_name_of_variable): Same.
12844 (ada_path_expr_of_child): Same.
12845 (ada_value_of_variable): Same.
12846 (ada_value_is_changeable_p): Same.
12847 (ada_value_has_mutated): Same.
12848 * c-varobj.c (varobj_is_anonymous_child): Same.
12849 (c_is_path_expr_parent): Same.
12850 (c_number_of_children): Same.
12851 (c_name_of_variable): Same.
12852 (c_path_expr_of_child): Same.
12853 (get_type): Same.
12854 (c_value_of_variable): Same.
12855 (cplus_number_of_children): Same.
12856 (cplus_name_of_variable): Same.
12857 (cplus_path_expr_of_child): Same.
12858 (cplus_value_of_variable): Same.
12859 * jv-varobj.c (java_number_of_children): Same.
12860 (java_name_of_variable): Same.
12861 (java_path_expr_of_child): Same.
12862 (java_value_of_variable): Same.
12863 * varobj.c (number_of_children): Same.
12864 (name_of_variable): Same.
12865 (is_root_p): Same.
12866 (varobj_ensure_python_env): Same.
12867 (varobj_get_objname): Same.
12868 (varobj_get_expression): Same.
12869 (varobj_get_display_format): Same.
12870 (varobj_get_display_hint): Same.
12871 (varobj_has_more): Same.
12872 (varobj_get_thread_id): Same.
12873 (varobj_get_frozen): Same.
12874 (dynamic_varobj_has_child_method): Same.
12875 (varobj_get_gdb_type): Same.
12876 (is_path_expr_parent): Same.
12877 (varobj_default_is_path_expr_parent): Same.
12878 (varobj_get_language): Same.
12879 (varobj_get_attributes): Same.
12880 (varobj_is_dynamic_p): Same.
12881 (varobj_get_child_range): Same.
12882 (varobj_value_has_mutated): Same.
12883 (varobj_get_value_type): Same.
12884 (number_of_children): Same.
12885 (name_of_variable): Same.
12886 (check_scope): Same.
12887 (varobj_editable_p): Same.
12888 (varobj_value_is_changeable_p): Same.
12889 (varobj_floating_p): Same.
12890 (varobj_default_value_is_changeable_p): Same.
12891
12892 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12893
12894 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12895 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12896 child->path_expr.
12897 (cplus_path_expr_of_child): Same.
12898
12899 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12900
12901 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12902 result.
12903 (mi_cmd_var_info_expression): Same.
12904 * varobj.c (varobj_get_expression): Mention in the comment that
12905 the result must by freed by the caller.
12906
12907 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12908
12909 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12910 varobj_get_type.
12911 (varobj_update_one): Same.
12912 * varobj.c (update_type_if_necessary): Free curr_type_str and
12913 new_type_str.
12914 (varobj_get_type): Specify in comment that the result needs to be
12915 freed by the caller.
12916
12917 2015-01-29 Doug Evans <dje@google.com>
12918
12919 PR symtab/17890
12920 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12921
12922 2015-01-25 Mark Wielaard <mjw@redhat.com>
12923
12924 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12925 * utils.c (producer_is_gcc_ge_4): Likewise.
12926 (producer_is_gcc): New function.
12927 * utils.h (producer_is_gcc): New declaration.
12928
12929 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12930
12931 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12932 kind.
12933 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12934 parameter by "addr_stack" parameter.
12935 (resolve_dynamic_range): Replace "addr" parameter by
12936 "stack_addr" parameter. Update function documentation.
12937 Update code accordingly.
12938 (resolve_dynamic_array, resolve_dynamic_union)
12939 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12940 (resolve_dynamic_type): Update code, following the changes made
12941 to resolve_dynamic_type_internal's interface.
12942 * dwarf2loc.h (struct property_addr_info): New.
12943 (dwarf2_evaluate_property): Replace "address" parameter
12944 by "addr_stack" parameter. Adjust function documentation.
12945 (struct dwarf2_offset_baton): New.
12946 (struct dwarf2_property_baton): Update documentation of
12947 field "referenced_type" to be more general. New field
12948 "offset_info" in union data field.
12949 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12950 parameter by "addr_stack" parameter. Adjust code accordingly.
12951 Add support for PROP_ADDR_OFFSET properties.
12952 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12953 DW_AT_data_member_location attributes as well. Use case
12954 statements instead of if/else condition.
12955
12956 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12957
12958 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12959 Return zero if PARENT_VALUE is NULL and parent_type's
12960 range type is dynamic.
12961
12962 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12963
12964 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12965 nonzero if the type's subtype is dynamic.
12966 (resolve_dynamic_range): Also resolve the range's subtype.
12967
12968 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12969
12970 Pushed by Joel Brobecker <brobecker@adacore.com>.
12971 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12972
12973 2015-01-27 Doug Evans <dje@google.com>
12974
12975 * NEWS: Mention gdb.Objfile.username.
12976 * python/py-objfile.c (objfpy_get_username): New function.
12977 (objfile_getset): Add "username".
12978
12979 2015-01-24 Mark Wielaard <mjw@redhat.com>
12980
12981 * stack.c (return_command): Markup warning message with _.
12982
12983 2015-01-24 Doug Evans <xdje42@gmail.com>
12984
12985 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12986
12987 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12988
12989 Fix 100x slowdown regression on DWZ files.
12990 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12991 (struct line_header): Add offset and offset_in_dwz.
12992 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12993 (free_line_header_voidp): New declaration.
12994 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12995 functions.
12996 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12997 (handle_DW_AT_stmt_list): Use line_header_hash.
12998 (free_line_header_voidp): New function.
12999 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13000 (dwarf_decode_lines): New parameter decode_mapping, use it.
13001 (dwarf2_free_objfile): Free line_header_hash.
13002
13003 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13004
13005 PR gdb/17416
13006 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13007 value_ind.
13008
13009 2015-01-15 Mark Wielaard <mjw@redhat.com>
13010
13011 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13012 DW_AT_noreturn.
13013 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13014 calling_convention an 8 bit bit field.
13015 (TYPE_NO_RETURN): New macro.
13016 * infcmd.c (finish_command): Query if function does not return
13017 normally.
13018 * stack.c (return_command): Likewise.
13019
13020 2015-01-23 Pedro Alves <palves@redhat.com>
13021
13022 * linux-nat.c (linux_is_async_p): New macro.
13023 (linux_nat_is_async_p):
13024 (linux_nat_terminal_inferior): Check whether the target can async
13025 instead of whether it is already async.
13026 (linux_nat_terminal_ours): Don't check whether the target is
13027 async.
13028 (linux_async_pipe): Use linux_is_async_p.
13029
13030 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13031
13032 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13033 '-ascending'.
13034 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13035 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13036 Sort tp_array using tp_array_compar.
13037 (_initialize_thread): Extend thread_apply_all_command help.
13038
13039 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13040
13041 * corelow.c (core_open): Call also thread_command.
13042 * gdbthread.h (thread_command): New prototype moved from ...
13043 * thread.c (thread_command): ... here.
13044 (thread_command): Make it global.
13045
13046 2015-01-22 Pedro Alves <palves@redhat.com>
13047
13048 * configure.ac [*mingw32*]: Check $curses_found instead of
13049 $prefer_curses.
13050 * configure: Regenerate.
13051 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13052 HAVE_NCURSES_NCURSES_H checks.
13053
13054 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13055
13056 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13057 fails with the 1st arg NULL, try again with "unknown". Don't test
13058 the "cup" capability: it isn't supported by the Windows port of
13059 ncurses, but the Windows console driver is still capable of
13060 supporting TUI.
13061
13062 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13063
13064 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13065
13066 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13067
13068 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13069 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13070 reason that "make TAGS" is broken.
13071
13072 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13073
13074 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13075 and check additional store instructions.
13076
13077 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13078
13079 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13080
13081 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13082
13083 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13084 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13085 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13086 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13087 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13088 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13089 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13090 ppc_process_record_op19, ppc_process_record_op31,
13091 ppc_process_record_op59, ppc_process_record_op60,
13092 ppc_process_record_op63): Likewise.
13093
13094 2015-01-20 Joel Brobecker <brobecker@adacore.com>
13095
13096 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13097 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13098 strerror.
13099
13100 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
13101
13102 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13103 ppc_process_record_op31, ppc_process_record_op59,
13104 ppc_process_record_op60, ppc_process_record_op63,
13105 ppc_process_record): Fix -Wformat warning.
13106 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13107 Remove unused variables.
13108
13109 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13110
13111 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13112
13113 2015-01-19 Eli Zaretskii <eliz@gnu.org>
13114
13115 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13116 CONFIG_OBS if not building with a curses library.
13117 * configure: Regenerate.
13118
13119 * windows-termcap.c: Include defs.h. Make the whole body empty if
13120 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13121 HAVE_NCURSES_NCURSES_H is defined.
13122
13123 2015-01-19 Joel Brobecker <brobecker@adacore.com>
13124
13125 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13126 from end of line to start of next line.
13127
13128 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13129
13130 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13131 Scan PLT stub backward for reverse debugging.
13132 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13133
13134 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13135 Ulrich Weigand <uweigand@de.ibm.com>
13136
13137 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13138 gdb_target_obs.
13139 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13140 record.
13141 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13142 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13143 (ppc_linux_init_abi): Set process_record, process_record_signal.
13144 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13145 ppc_linux_record_tdep to gdbarch_tdep.
13146 (ppc_process_record): New declaration.
13147 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13148 ppc_process_record_op19, ppc_process_record_op31,
13149 ppc_process_record_op59, ppc_process_record_op60,
13150 ppc_process_record_op63, ppc_process_record): New functions.
13151
13152 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13153
13154 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13155 rs6000_in_function_epilogue_frame_p and add an argument
13156 for frame_info.
13157 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
13158 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
13159 New functions.
13160 (rs6000_epilogue_frame_unwind): New.
13161 (rs6000_gdbarch_init): Append epilogue unwinder.
13162
13163 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13164
13165 * nat/linux-personality.c: Replace "#ifndef
13166 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
13167 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
13168 systems.
13169
13170 2015-01-16 Eli Zaretskii <eliz@gnu.org>
13171
13172 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13173 functions.
13174 (_initialize_tui_win) <border-kind, border-mode>:
13175 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
13176 (tui_set_tab_width_command): Fix the commentary.
13177
13178 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13179
13180 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13181 Doc fix.
13182 (tui_set_tab_width_command): Delete and recreate the source and
13183 the disassembly windows, to show the effect of the changed tab
13184 size immediately.
13185
13186 * tui/tui-data.h (LINE_PREFIX): Make shorter
13187 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13188 "Thread NNNNN.XXXX" thread ID notation on Windows.
13189
13190 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13191
13192 Fix gcc-5 compilation.
13193 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13194
13195 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13196
13197 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13198 (linux-personality.o): New rule.
13199 * common/common-defs.h: Include <stdint.h>.
13200 * config/aarch64/linux.mh (NATDEPFILES): Include
13201 linux-personality.o.
13202 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13203 * config/arm/linux.mh (NATDEPFILES): Likewise.
13204 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13205 * config/i386/linux.mh (NATDEPFILES): Likewise.
13206 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13207 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13208 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13209 * config/mips/linux.mh (NATDEPFILES): Likewise.
13210 * config/pa/linux.mh (NATDEPFILES): Likewise.
13211 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13212 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13213 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13214 * config/s390/linux.mh (NATDEPFILES): Likewise.
13215 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13216 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13217 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13218 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13219 * defs.h: Remove #include <stdint.h> (moved to
13220 common/common-defs.h).
13221 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13222 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13223 nat/linux-personality.c).
13224 (linux_nat_create_inferior): Remove code to disable address space
13225 randomization (moved to nat/linux-personality.c). Create cleanup
13226 to disable address space randomization.
13227 * nat/linux-personality.c: New file.
13228 * nat/linux-personality.h: Likewise.
13229
13230 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13231
13232 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13233 common/posix-strerror.c.
13234 (posix-strerror.o): New rule.
13235 (mingw-strerror.o): Likewise.
13236 * common/common-utils.h (safe_strerror): Move prototype to here,
13237 from utils.h.
13238 * common/common.host: New file.
13239 * common/mingw-strerror.c: Likewise.
13240 * common/posix-strerror.c: Likewise.
13241 * configure: Regenerated.
13242 * configure.ac: Source common/common.host. Add variable
13243 common_host_obs to gdb_host_obs.
13244 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13245 gdb/common/posix-strerror.c when warning about the use of
13246 strerror.
13247 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13248 common/mingw-strerror.c.
13249 * posix-hdep.c (safe_strerror): Remove definition; move it to
13250 common/posix-hdep.c.
13251 * utils.h (safe_strerror): Remove prototype; move to
13252 common/common-utils.h.
13253
13254 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13255
13256 GDB 7.8.2 released.
13257
13258 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13259
13260 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13261 ___XA type if the array has already been fixed.
13262
13263 2015-01-14 Yao Qi <yao@codesourcery.com>
13264
13265 * Makefile.in (ppc-linux.o): New rule.
13266 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13267 * configure.ac: AC_CHECK_FUNCS(getauxval).
13268 * config.in: Re-generated.
13269 * configure: Re-generated.
13270 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13271 Declare.
13272 * nat/ppc-linux.c: New file.
13273 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13274 Call ppc64_64bit_inferior_p.
13275
13276 2015-01-14 Yao Qi <yao@codesourcery.com>
13277
13278 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13279 nat/ppc-linux.h.
13280 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13281 (PPC_FEATURE_HAS_DFP): Likewise.
13282 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13283 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13284 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13285 Include "nat/ppc-linux.h".
13286 * nat/ppc-linux.h: New file.
13287 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13288
13289 2015-01-14 Pedro Alves <palves@redhat.com>
13290
13291 PR gdb/17525
13292 * breakpoint.c: Include "interps.h".
13293 (bpstat_do_actions_1): Also check whether the interpreter is
13294 async.
13295
13296 2015-01-14 Pedro Alves <palves@redhat.com>
13297
13298 PR cli/17828
13299 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13300 reinstall if the interpreter is sync.
13301
13302 2015-01-13 Doug Evans <dje@google.com>
13303
13304 * objfiles.c (objfile_filename): New function.
13305 * objfiles.h (objfile_filename): Declare it.
13306 (objfile_name): Add function comment.
13307 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13308 bfd file name (which may be realpath'd), and the original name.
13309
13310 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13311
13312 * NEWS: Create a new section for the next release branch.
13313 Rename the section of the current branch, now that it has
13314 been cut.
13315
13316 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13317
13318 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13319 * version.in: Bump version to 7.9.50.DATE-cvs.
13320
13321 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13322
13323 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13324 Remove trailing new-line in argument of call to warning.
13325
13326 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13327
13328 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13329 new-line in argument of call to "warning".
13330
13331 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13332
13333 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13334 in static block, then try searching for primitive types.
13335
13336 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13337
13338 * top.h (gdb_add_history): Declare.
13339 * top.c (command_count): New variable.
13340 (gdb_add_history): New function.
13341 (gdb_safe_append_history): New static function.
13342 (quit_force): Call it.
13343 (command_line_input): Use gdb_add_history instead of
13344 add_history.
13345 * event-top.c (command_line_handler): Likewise.
13346
13347 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13348
13349 PR gdb/17046
13350 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13351 <setjmp.h> #include.
13352
13353 2015-01-11 Doug Evans <xdje42@gmail.com>
13354
13355 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13356
13357 2015-01-11 Doug Evans <xdje42@gmail.com>
13358
13359 PR gdb/15830
13360 * NEWS: The "maint demangle" command is renamed as "demangle".
13361 * demangle.c: #include cli/cli-utils.h, language.h.
13362 (demangle_command): New function.
13363 (_initialize_demangle): Add new command "demangle".
13364 * maint.c (maintenance_demangle): Stub out.
13365 (_initialize_maint_cmds): Update help text for "maint demangle",
13366 and mark as deprecated.
13367
13368 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13369
13370 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13371 inferior_thread is a function.
13372
13373 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13374
13375 * Makefile.in (.y.c): Don't munge yacc's #line
13376 directives.
13377
13378 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13379
13380 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13381 to prompt for input.
13382 * tui/tui-hooks.c (tui_query_hook): Remove.
13383 (tui_install_hooks): Don't set deprecated_query_hook.
13384 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13385 height calculation. Always update the command window's cur_line.
13386
13387 2015-01-09 Pedro Alves <palves@redhat.com>
13388
13389 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13390 function.
13391 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13392 declaration.
13393 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13394 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13395 stop_reason.
13396 (check_stopped_by_watchpoint): New function.
13397 (save_sigtrap): Reimplement.
13398 (linux_nat_stopped_by_watchpoint): Adjust.
13399 (linux_nat_lp_status_is_event): Delete.
13400 (stop_wait_callback): Only call save_sigtrap after storing the
13401 pending status.
13402 (status_callback): If the thread had been stopped for a breakpoint
13403 that has since been removed, discard the event and resume the LWP.
13404 (count_events_callback, select_event_lwp_callback): Use
13405 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13406 (cancel_breakpoint): Rename to ...
13407 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13408 stopped for a software breakpoint or hardware breakpoint.
13409 (select_event_lwp): Only give preference to the stepping LWP in
13410 all-stop mode. Adjust comments.
13411 (stop_and_resume_callback): Remove references to new_pending_p.
13412 (linux_nat_filter_event): Likewise. Leave exit events of the
13413 leader thread pending here. Handle signal short circuiting here.
13414 Only call save_sigtrap after storing the pending waitstatus.
13415 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13416 new_pending. Don't handle leaving events the caller is not
13417 interested in pending here, nor handle signal short-circuiting
13418 here. Also give equal priority to all LWPs that have had events
13419 in non-stop mode. If reporting a software breakpoint event,
13420 unadjust the LWP's PC.
13421 * linux-nat.h (enum lwp_stop_reason): New.
13422 (struct lwp_info) <stop_pc>: New field.
13423 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13424 (struct lwp_info) <stop_reason>: New field.
13425 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13426
13427 2015-01-09 Pedro Alves <palves@redhat.com>
13428
13429 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13430 Set the LWP's 'resumed' flag.
13431
13432 2015-01-09 Pedro Alves <palves@redhat.com>
13433
13434 * linux-nat.c (linux_resume_one_lwp): New function.
13435 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13436 (linux_nat_resume): Use lwp_status_pending_p and
13437 linux_resume_one_lwp.
13438 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13439 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13440 (status_callback, running_callback): Use lwp_status_pending_p.
13441 (lwp_status_pending_p): New function.
13442 (stop_and_resume_callback): Use lwp_status_pending_p.
13443 (linux_nat_filter_event): Use linux_resume_one_lwp.
13444 (linux_nat_wait_1): Always use status_callback to look for an LWP
13445 with a pending status. Use linux_resume_one_lwp.
13446 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13447 linux_resume_one_lwp.
13448
13449 2015-01-09 Pedro Alves <palves@redhat.com>
13450
13451 * breakpoint.c (bp_location_inserted_here_p): New function,
13452 factored out from ...
13453 (breakpoint_inserted_here_p): ... here. Use
13454 ALL_BP_LOCATIONS_AT_ADDR.
13455 (software_breakpoint_inserted_here_p): Use
13456 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13457
13458 2014-01-09 Pedro Alves <palves@redhat.com>
13459
13460 Skip enabling event reporting if the kernel supports
13461 PTRACE_EVENT_CLONE.
13462 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13463 (thread_db_use_events): New function.
13464 (try_thread_db_load_1): Check thread_db_use_events before enabling
13465 event reporting.
13466 (update_thread_state): New function.
13467 (attach_thread): Use it. Check thread_db_use_events before
13468 enabling event reporting.
13469 (thread_db_detach): Check thread_db_use_events before disabling
13470 event reporting.
13471 (find_new_threads_callback): Check thread_db_use_events before
13472 enabling event reporting. Update the thread's state if not using
13473 libthread_db events.
13474
13475 2015-01-09 Pedro Alves <palves@redhat.com>
13476
13477 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13478 about to wait for is > 0.
13479 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13480 the kernel thread ID is -1.
13481
13482 2015-01-09 Pedro Alves <palves@redhat.com>
13483
13484 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13485 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13486 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13487 ptrace option flags.
13488 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13489 field.
13490 * nat/linux-procfs.c: Include <dirent.h>.
13491 (linux_proc_get_int): New parameter "warn". Handle it.
13492 (linux_proc_get_tgid): Adjust.
13493 (linux_proc_get_tracerpid): Rename to ...
13494 (linux_proc_get_tracerpid_nowarn): ... this.
13495 (linux_proc_pid_get_state): New function, factored out from
13496 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13497 and handle it.
13498 (linux_proc_pid_is_gone): New function.
13499 (linux_proc_pid_is_stopped): Adjust.
13500 (linux_proc_pid_is_zombie_maybe_warn)
13501 (linux_proc_pid_is_zombie_nowarn): New functions.
13502 (linux_proc_pid_is_zombie): Use
13503 linux_proc_pid_is_zombie_maybe_warn.
13504 (linux_proc_attach_tgid_threads): New function.
13505 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13506 (linux_proc_get_tracerpid): Rename to ...
13507 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13508 (linux_proc_pid_is_gone): New declaration.
13509 (linux_proc_pid_is_zombie): Update comment.
13510 (linux_proc_pid_is_zombie_nowarn): New declaration.
13511 (linux_proc_attach_lwp_func): New typedef.
13512 (linux_proc_attach_tgid_threads): New declaration.
13513 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13514 use nowarn functions.
13515 (linux_ptrace_attach_fail_reason_string): Move here from
13516 gdbserver/linux-low.c and rename.
13517 (ptrace_supports_feature): If the current ptrace options are not
13518 known yet, check them now, instead of asserting.
13519 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13520 Declare.
13521
13522 2015-01-09 Pedro Alves <palves@redhat.com>
13523
13524 * linux-thread-db.c (thread_db_find_new_threads_silently)
13525 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13526 (find_new_threads_once): Print debug output on gdb_stdlog.
13527
13528 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13529 Pedro Alves <palves@redhat.com>
13530
13531 * compile/compile.c: Include "gdb_wait.h".
13532 (do_rmdir): Check return value, and free 'zap'.
13533
13534 2015-01-08 Pedro Alves <palves@redhat.com>
13535 Yao Qi <yao@codesourcery.com>
13536
13537 * dwarf2loc.c (indirect_pieced_value): Don't call
13538 gdb_sign_extend. Call extract_signed_integer instead.
13539 * utils.c (gdb_sign_extend): Remove.
13540 * utils.h (gdb_sign_extend): Remove declaration.
13541
13542 2015-01-07 Pierre Muller <muller@sourceware.org>
13543
13544 PR symtab/17811
13545 * stabsread.c (define_symbol): Set language for C++ special symbols.
13546
13547 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13548
13549 * inflow.c (initial_gdb_ttystate): Tweak comment.
13550
13551 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13552
13553 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13554 comment documenting function.
13555
13556 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13557
13558 * terminal.h (set_initial_gdb_ttystate): Declare.
13559 * inflow.c (initial_gdb_ttystate): New static variable.
13560 (set_initial_gdb_ttystate): New setter.
13561 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13562 instead of our current terminal state.
13563 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13564
13565 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13566
13567 * guile/scm-type.c (tyscm_array_1): Add comment.
13568 * python/py-type.c (typy_array_1): Add comment.
13569
13570 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13571
13572 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13573 error if N2 is equal to N1 - 1.
13574
13575 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13576
13577 * python/py-type.c (typy_array_1): Do not raise negative-length
13578 exception if N2 is equal to N1 - 1.
13579
13580 2015-01-03 Doug Evans <xdje42@gmail.com>
13581
13582 * c-exp.y: Whitespace cleanup.
13583 (classify_inner_name): Remove extra ;.
13584
13585 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13586
13587 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13588 offset signed.
13589
13590 2015-01-02 Doug Evans <dje@google.com>
13591
13592 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13593
13594 2015-01-02 Doug Evans <dje@google.com>
13595
13596 * symtab.h (struct symbol): Fix typo in comment.
13597
13598 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13599
13600 Update year range in copyright notice of all files.
13601
13602 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13603
13604 * top.c (print_gdb_version): Update copyright year to 2015.
13605
13606 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13607
13608 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13609
13610 For older changes see ChangeLog-2014.
13611 \f
13612 Local Variables:
13613 mode: change-log
13614 left-margin: 8
13615 fill-column: 74
13616 version-control: never
13617 coding: utf-8
13618 End:
This page took 0.333438 seconds and 4 git commands to generate.