Introduce null_block_symbol
[binutils-gdb.git] / gdb / ChangeLog
1 2015-11-17 Pedro Alves <palves@redhat.com>
2
3 * cp-namespace.c (cp_lookup_bare_symbol)
4 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
5 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
6 (cp_lookup_nested_symbol): Use null_block_symbol.
7 * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
8 (d_lookup_symbol_imports, d_lookup_symbol_module): Use
9 null_block_symbol.
10 * symtab.c (null_block_symbol): New global.
11 * symtab.h (null_block_symbol): Declare.
12
13 2015-11-17 Pedro Alves <palves@redhat.com>
14
15 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
16 (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
17 Replace __cplusplus checks with GDB_XCPT checks throughout.
18 * common/common-exceptions.c: Replace __cplusplus checks with
19 GDB_XCPT checks throughout.
20
21 2015-11-17 Pedro Alves <palves@redhat.com>
22
23 * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
24 _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
25
26 2015-11-17 Pedro Alves <palves@redhat.com>
27
28 * common/common-defs.h (__STDC_CONSTANT_MACROS)
29 (__STDC_LIMIT_MACROS): Define before including stdint.h.
30
31 2015-11-17 Pedro Alves <palves@redhat.com>
32
33 * windows-nat.c (handle_exception): Return 0 for first chance
34 exceptions.
35 (get_windows_debug_event): Adjust.
36
37 2015-11-17 Pedro Alves <palves@redhat.com>
38
39 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
40 signal number for terminator.
41
42 2015-11-17 Pedro Alves <palves@redhat.com>
43
44 * ser-tcp.c (net_open) : Cast getsockopt argument to char *
45 instead of void *. Update comment.
46 (net_read_prim): Cast recv argument to char * instead of void *.
47 (net_write_prim): Cast send argument to char *. Add comment.
48
49 2015-11-17 Pedro Alves <palves@redhat.com>
50
51 * win32-i386-low.c (update_debug_registers_callback)
52 (win32_get_current_dr): Add cast.
53 * win32-low.c (thread_rec, delete_thread_info)
54 (continue_one_thread): Add casts.
55 (strwinerror): Cast FormatMessage argument to LPTSTR instead of
56 LPVOID.
57 (win32_create_inferior, suspend_one_thread): Add casts.
58
59 2015-11-17 Pedro Alves <palves@redhat.com>
60
61 * windows-nat.c (AdjustTokenPrivileges_ftype)
62 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
63 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
64 (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
65 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
66 (GetConsoleFontSize_ftype): New typedefs.
67 (AdjustTokenPrivileges, DebugActiveProcessStop)
68 (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
69 (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
70 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
71 Adjust.
72 (GetModuleFileNameEx_ftype): New typedef.
73 (GetModuleFileNameEx): Use it.
74 (_initialize_loadable): Define GPA macro and use it.
75
76 2015-11-17 Pedro Alves <palves@redhat.com>
77
78 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
79 HMODULE.
80
81 2015-11-17 Pedro Alves <palves@redhat.com>
82
83 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
84 || __CYGWIN__]: Add casts.
85 * utils.c (gdb_filename_fnmatch): Add cast.
86 * windows-nat.c (windows_create_inferior): Add cast.
87
88 2015-11-17 Pedro Alves <palves@redhat.com>
89
90 * ser-mingw.c (CancelIo_ftype): New typedef.
91 (CancelIo): Use CancelIo_ftype.
92 (ser_windows_close, ser_windows_wait_handle)
93 (ser_windows_read_prim, stop_select_thread)
94 (console_select_thread, pipe_select_thread, file_select_thread)
95 (ser_console_wait_handle, ser_console_done_wait_handle)
96 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
97 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
98 (net_windows_socket_check_pending, net_windows_select_thread)
99 (net_windows_wait_handle, net_windows_done_wait_handle)
100 (net_windows_close): Add casts.
101 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
102 void*.
103
104 2015-11-17 Simon Marchi <simon.marchi@ericsson.com>
105
106 * c-exp.y (exp): Adjust, change enum c_string_type to
107 c_string_type.
108 (parse_string_or_char): Likewise.
109 * c-lang.c (charset_for_string_type): Likewise.
110 (classify_type): Likewise.
111 (c_printchar): Likewise.
112 (c_printstr): Likewise.
113 (evaluate_subexp_c): Likewise. And change cast to enum
114 c_string_type_values.
115 * c-lang.h: Include "common/enum_flags.h".
116 (enum c_string_type): Rename to...
117 (enum c_string_type_values): ...this.
118 (c_string_type): Define new enum flags type.
119
120 2015-11-17 Pedro Alves <palves@redhat.com>
121
122 * btrace.h: Include common/enum-flags.h.
123 (btrace_insn_flags): Define.
124 (struct btrace_insn) <flags>: Change type.
125 (btrace_function_flags): Define.
126 (struct btrace_function) <flags>: Change type.
127 (btrace_thread_flags): Define.
128 (struct btrace_thread_info) <flags>: Change type.
129 * c-exp.y (token_flags): Rename to ...
130 (token_flag): ... this.
131 (token_flags): Define.
132 (struct token) <flags>: Change type.
133 * common/enum-flags.h: New file.
134 * compile/compile-c-types.c (convert_qualified): Change type of
135 'quals' local.
136 * compile/compile-internal.h: Include "common/enum-flags.h".
137 (gcc_qualifiers_flags): Define.
138 * completer.c (enum reg_completer_targets): Rename to ...
139 (enum reg_completer_target): ... this.
140 (reg_completer_targets): Define.
141 (reg_or_group_completer_1): Change type of 'targets' parameter.
142 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
143 of 'psl_flags' local.
144 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
145 * infrun.c: Include "common/enum-flags.h".
146 (enum step_over_what): Rename to ...
147 (enum step_over_what_flag): ... this.
148 (step_over_what): Change type.
149 (start_step_over): Change type of 'step_what' local.
150 (thread_still_needs_step_over): Now returns a step_over_what.
151 Adjust.
152 (keep_going_pass_signal): Change type of 'step_what' local.
153 * linux-tdep.c: Include "common/enum-flags.h".
154 (enum filterflags): Rename to ...
155 (enum filter_flag): ... this.
156 (filter_flags): Define.
157 (dump_mapping_p): Change type of 'filterflags' parameter.
158 (linux_find_memory_regions_full): Change type of 'filterflags'
159 local.
160 (linux_find_memory_regions_full): Pass the address of an unsigned
161 int to sscanf instead of the address of an enum.
162 * record-btrace.c (btrace_print_lines): Change type of local
163 'psl_flags'.
164 (btrace_call_history): Replace 'flags' parameter
165 with 'int_flags' parameter. Adjust.
166 (record_btrace_call_history, record_btrace_call_history_range)
167 (record_btrace_call_history_from): Rename 'flags' parameter to
168 'int_flags'. Use record_print_flags.
169 * record.h: Include "common/enum-flags.h".
170 (record_print_flags): Define.
171 * source.c: Include "common/enum-flags.h".
172 (print_source_lines_base, print_source_lines): Change type of
173 flags parameter.
174 * symtab.h: Include "common/enum-flags.h".
175 (enum print_source_lines_flags): Rename to ...
176 (enum print_source_lines_flag): ... this.
177 (print_source_lines_flags): Define.
178 (print_source_lines): Change prototype.
179
180 2015-11-17 Pedro Alves <palves@redhat.com>
181
182 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
183 error instead of TARGET_XFER_E_IO.
184 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
185 memory_error.
186
187 2015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
188
189 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
190 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
191 value.
192 * dwarf2read.c (read_subrange_type): Likewise.
193
194 2015-11-16 Yao Qi <yao.qi@linaro.org>
195
196 * aarch64-tdep.c (aarch64_extract_return_value): Change array
197 buf's length to V_REGISTER_SIZE.
198
199 2015-11-16 Yao Qi <yao.qi@linaro.org>
200
201 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
202 from bfd_byte * to value *. Caller updated.
203 (pass_in_x): Likewise.
204 (pass_in_v_or_stack): Likewise.
205 (pass_on_stack): Likewise.
206
207 2015-11-16 Yao Qi <yao.qi@linaro.org>
208
209 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
210 instead of value_contents_writeable.
211 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
212
213 2015-11-16 Yao Qi <yao.qi@linaro.org>
214
215 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
216 to buf. Pass buf instead of val to push_stack_item.
217
218 2015-11-13 Yao Qi <yao.qi@linaro.org>
219
220 PR tdep/19051
221 * arm-tdep.c (arm_type_align): Return the right alignment
222 value for vector.
223 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
224 128-bit vector types.
225 (arm_return_in_memory): Handel vector type.
226
227 2015-11-13 Yao Qi <yao.qi@linaro.org>
228
229 * arm-tdep.c (arm_return_in_memory): Rewrite it.
230 (arm_return_value): Call arm_return_in_memory for
231 TYPE_CODE_COMPLEX.
232
233 2015-11-12 Yao Qi <yao.qi@linaro.org>
234
235 * arm-tdep.c (push_stack_item): Change contents type to
236 const gdb_byte *.
237
238 2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
239
240 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
241 cast to PTRACE_TYPE_RET *.
242 (inf_ptrace_store_register): Likewise.
243
244 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
245
246 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
247 info sub-commands.
248 * gnu-nat.c (add_task_commands): Likewise.
249 * macrocmd.c (_initialize_macrocmd): Likewise.
250
251 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * cli/cli-decode.c (add_info): Switch to class_info.
254
255 2015-11-09 Joel Brobecker <brobecker@adacore.com>
256
257 * ada-lang.c (ada_is_wrapper_field): Add special handling
258 for fields called "RETVAL".
259
260 2015-11-09 Yao Qi <yao.qi@linaro.org>
261
262 * arm-tdep.c (arm_exidx_new_objfile): Use
263 ELF_STRING_ARM_unwind.
264
265 2015-11-09 Yao Qi <yao.qi@linaro.org>
266
267 * infrun.c (displaced_step_in_progress_thread): New function.
268 (handle_inferior_event_1): Call it.
269
270 2015-11-05 Yao Qi <yao.qi@linaro.org>
271
272 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
273 aarch64_decode_insn and decode instruction by aarch64_inst.
274
275 2015-11-05 Yao Qi <yao.qi@linaro.org>
276
277 * aarch64-tdep.c (extract_signed_bitfield): Remove.
278 (decode_masked_match): Remove.
279 (aarch64_decode_add_sub_imm): Remove.
280 (aarch64_decode_br): Remove.
281 (aarch64_decode_eret): Remove.
282 (aarch64_decode_movz): Remove.
283 (aarch64_decode_orr_shifted_register_x): Remove.
284 (aarch64_decode_ret): Remove.
285 (aarch64_decode_stp_offset): Remove.
286 (aarch64_decode_stur): Remove.
287 (aarch64_analyze_prologue): Call aarch64_decode_insn
288 and use aarch64_inst to decode instructions.
289
290 2015-11-05 Yao Qi <yao.qi@linaro.org>
291
292 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
293 wback.
294 (aarch64_decode_stp_offset_wb): Removed.
295 (aarch64_analyze_prologue): Don't use
296 aarch64_decode_stp_offset_wb.
297
298 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
299
300 PR/18376
301 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
302 (s390_software_single_step): New function.
303 (s390_displaced_step_hw_singlestep): New function.
304 (s390_gdbarch_init): Fill gdbarch slots with the above.
305
306 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
307
308 PR/18376
309 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
310 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
311 (s390_linux_record_tdep): New static global variable.
312 (s390x_linux_record_tdep): New static global variable.
313 (s390_all_but_pc_registers_record): New function.
314 (s390_canonicalize_syscall): New function.
315 (s390_linux_syscall_record): New function.
316 (s390_linux_record_signal): New function.
317 (s390_record_calc_disp_common): New function.
318 (s390_record_calc_disp): New function.
319 (s390_record_calc_disp_vsce): New function.
320 (s390_record_calc_rl): New function.
321 (s390_record_gpr_g): New function.
322 (s390_record_gpr_h): New function.
323 (s390_record_vr): New function.
324 (s390_process_record): New function.
325 (s390_init_linux_record_tdep): New function.
326 (s390_gdbarch_init): Fill record function slots.
327
328 2015-11-04 Marcin Koƛcielnicki <koriakin@0x04.net>
329
330 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
331 memory storage.
332
333 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
334
335 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
336 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
337 (_initialize_record): Document the /s modifier.
338 * NEWS: Announce record instruction-history's new /s modifier.
339
340 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
341
342 * record-btrace.c (struct btrace_line_range): New.
343 (btrace_mk_line_range, btrace_line_range_add)
344 (btrace_line_range_is_empty, btrace_line_range_contains_range)
345 (btrace_find_line_range, btrace_print_lines): New.
346 (btrace_insn_history): Add source interleaving algorithm.
347
348 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
349
350 * disasm.h (DISASSEMBLY_SPECULATION): New.
351 (struct disasm_insn): New.
352 (gdb_pretty_print_insn): New.
353 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
354 Update users. Print instruction number and indicate speculative
355 execution, if requested.
356
357 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
358
359 * disasm.c (dump_insns): Split into this and ...
360 (gdb_pretty_print_insn): ... this.
361
362 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
365 (xtensa_linux_fetch_inferior_registers): Likewise.
366 (xtensa_linux_store_inferior_registers): Likewise.
367
368 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * arm-linux-nat.c (arm_linux_read_description): Add cast.
371
372 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
373
374 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
375 type of rw to enum target_hw_bp_type.
376 (ppc_linux_remove_mask_watchpoint): Likewise.
377 * target.c (target_insert_mask_watchpoint): Likewise.
378 (target_remove_mask_watchpoint): Likewise.
379 * target.h (target_insert_mask_watchpoint): Likewise.
380 (target_remove_mask_watchpoint): Likewise.
381 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
382 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
383 * target-delegates.c: Regenerate.
384
385 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
386
387 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
388 (get_sim_inferior_data): Likewise.
389 (sim_inferior_data_cleanup): Likewise.
390 (gdbsim_close_inferior): Likewise.
391 (gdbsim_resume_inferior): Likewise.
392 (gdbsim_wait): Likewise.
393 (simulator_command): Likewise.
394 (sim_command_completer): Likewise.
395
396 2015-11-03 Marcin Koƛcielnicki <koriakin@0x04.net>
397
398 * MAINTAINERS (Write After Approval): Add Marcin Koƛcielnicki.
399
400 2015-10-30 Pedro Alves <palves@redhat.com>
401
402 * breakpoint.c (breakpoint_in_range_p)
403 (breakpoint_location_address_range_overlap): New functions.
404 * breakpoint.h (breakpoint_in_range_p): New declaration.
405 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
406 in the scratch pad range, don't displaced step.
407
408 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
409
410 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
411 size_stack_t, size_size_t, size_iovec.
412
413 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
414
415 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
416 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
417 (amd64_x32_linux_init_abi): Fix size_termios.
418
419 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
420
421 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
422
423 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
424
425 * linux-record.c (record_linux_system_call): Fix old_select.
426
427 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
428
429 * linux-record.c (record_linux_system_call): Fix newstatat.
430
431 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
432
433 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
434
435 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
436
437 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
438 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
439 (amd64_x32_linux_init_abi): Add size_time_t.
440 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
441 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
442 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
443 handling.
444 * linux-record.h (struct linux_record_tdep): Add size_time_t.
445 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
446
447 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
448
449 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
450
451 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
452
453 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
454 size_dirent{,64}, add size_old_dirent.
455 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
456 add size_old_dirent.
457 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
458 size_old_dirent.
459 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
460 add size_old_dirent.
461 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
462 add size_old_dirent.
463 * linux-record.c (record_linux_system_call): Fix handling of readdir
464 and getdents{,64}.
465 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
466 add size_old_dirent.
467 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
468 size_dirent{,64}, add size_old_dirent.
469
470 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
471
472 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
473 size_sigset_t, size_old_sigaction, size_old_sigset_t.
474 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
475 size_sigset_t, size_old_sigaction, size_old_sigset_t.
476 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
477 size_old_sigaction, size_old_sigset_t.
478 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
479 size_old_sigaction, size_old_sigset_t.
480 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
481 size_old_sigaction, size_old_sigset_t.
482 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
483 size_sigset_t, size_old_sigaction, size_old_sigset_t.
484
485 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
486
487 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
488 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
489
490 2015-10-30 Marcin Koƛcielnicki <koriakin@0x04.net>
491
492 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
493 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
494 (amd64_x32_linux_init_abi): Remove size_siginfo.
495 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
496 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
497 * linux-record.c (record_linux_system_call): Change size_siginfo
498 to size_siginfo_t.
499 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
500 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
501
502 2015-10-29 Pedro Alves <palves@redhat.com>
503
504 * mdebugread.c (add_data_symbol): New function, factored out from
505 ...
506 (parse_symbol): ... here. Delete 'theclass' local.
507
508 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * jit.c (jit_target_read_impl): Add cast.
511
512 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * jit.c (jit_reader_load): Add cast.
515
516 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * dwarf2read.c (partial_die_full_name): Add cast.
519
520 2015-10-29 Pedro Alves <palves@redhat.com>
521
522 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
523
524 2015-10-29 Pedro Alves <palves@redhat.com>
525
526 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
527
528 2015-10-29 Eli Zaretskii <eliz@gnu.org>
529
530 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
531 in the environment.
532
533 2015-10-29 Pedro Alves <palves@redhat.com>
534
535 * gnu-v2-abi.c (gnuv2_is_destructor_name)
536 (gnuv2_is_constructor_name): Add casts.
537
538 2015-10-29 Pedro Alves <palves@redhat.com>
539
540 * common/common-exceptions.c (exception_none): Add cast.
541
542 2015-10-29 Pedro Alves <palves@redhat.com>
543
544 * compile/compile-c-types.c (struct type_map_instance)
545 <gcc_type>: Rename to gcc_type_handle.
546 (insert_type, convert_type): Adjust.
547
548 2015-10-29 Pedro Alves <palves@redhat.com>
549
550 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
551 assume that "break" breaks out of a TRY/CATCH.
552 * python/py-framefilter.c (py_print_single_arg): Don't assume
553 "continue" breaks out of a TRY/CATCH.
554 * python/py-value.c (valpy_binop_throw): New function, factored
555 out from ...
556 (valpy_binop): ... this.
557 (valpy_richcompare_throw): New function, factored
558 out from ...
559 (valpy_richcompare): ... this.
560 * solib.c (solib_read_symbols): Don't assume "break" breaks out
561 of a TRY/CATCH.
562 * common/common-exceptions.h [USE_RAW_CXX_TRY]
563 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
564
565 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
566
567 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
568 as move along with [d]addu.
569
570 2015-10-28 Yao Qi <yao.qi@linaro.org>
571
572 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
573 aarch64_decode_insn.
574
575 2015-10-27 Pedro Alves <palves@redhat.com>
576
577 * common/print-utils.c (host_address_to_string): Rename to ...
578 (host_address_to_string_1): ... this.
579 * common/print-utils.h (host_address_to_string): Reimplement as
580 wrapper around host_address_to_string_1.
581 * utils.c (gdb_print_host_address): Rename to ...
582 (gdb_print_host_address_1): ... this.
583 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
584 around host_address_to_string_1.
585
586 2015-10-27 Pedro Alves <palves@redhat.com>
587
588 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
589 memory_error. Rename local 'status' to 'res'.
590 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
591 memory_error.
592 * corefile.c (read_stack, read_code, write_memory): Always pass
593 TARGET_XFER_E_IO to memory_error.
594 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
595 memory_error. Rename parameter 'status' to 'err'.
596 (dump_insns): Rename local 'status' to 'err'.
597 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
598 to 'errp'. Rename local 'status' to 'err'. Always pass
599 TARGET_XFER_E_IO to memory_error.
600 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
601 * target.c (target_read_memory, target_read_raw_memory)
602 (target_read_stack, target_read_code, target_write_memory)
603 (target_write_raw_memory): Return -1 on error instead of
604 TARGET_XFER_E_IO.
605 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
606 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
607
608 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
609
610 * guile/guile-internal.h (gdbscm_with_guile): Change return
611 types to const char *.
612 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
613 (struct c_data) <func>: Likewise.
614 (struct c_data) <result>: Change type to const char *.
615 (scscm_eval_scheme_string): Change return type to
616 const char *.
617 (scscm_source_scheme_script): Likewise.
618 (gdbscm_safe_eval_string): Change type of result variable to
619 const char * and remove cast.
620 (gdbscm_safe_source_script): Likewise.
621 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
622 Change return type to const char *.
623 (gdbscm_disasm_read_memory): Change type of status to
624 const char *.
625
626 2015-10-27 Pedro Alves <palves@redhat.com>
627
628 * source.c (openp): New local 'last_errno'. Use it to
629 save/restore errno.
630
631 2015-10-27 Pedro Alves <palves@redhat.com>
632
633 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
634
635 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
636
637 * ctf.c (SET_ENUM_FIELD): New macro.
638 (ctf_read_status): Use it.
639 (ctf_read_tp): Use it.
640
641 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
642
643 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
644 scm_t_dynwind_flags casts.
645 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
646 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
647 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
648
649 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
650
651 * ax.h (ax_raw_byte): New declaration.
652 * ax-general.c (ax_raw_byte): New function.
653 (ax_simple): Use ax_raw_byte.
654 * ax-gdb.c (gen_printf): Likewise.
655
656 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
657
658 * ada-lang.h (GROW_VECT): Add cast.
659
660 2015-10-26 Doug Evans <xdje42@gmail.com>
661
662 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
663
664 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
667 pointer.
668 (simple_search_memory): Cast return of memmem.
669
670 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
671
672 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
673
674 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
675
676 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
677 -1 on error.
678
679 2015-10-26 Doug Evans <dje@google.com>
680
681 PR symtab/17391
682 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
683 instead of gdbarch_dwarf2_reg_to_regnum.
684 (dwarf2_frame_cache): Ditto.
685 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
686 gdbarch_dwarf2_reg_to_regnum.
687 (get_reg_value): Ditto.
688 (dwarf2_fetch_cfa_info): Ditto.
689 (dwarf2_frame_prev_register): Ditto.
690 * dwarf2loc.c: #include "complaints.h".
691 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
692 instead of gdbarch_dwarf2_reg_to_regnum.
693 (dwarf_expr_get_reg_value): Ditto.
694 (read_pieced_value): Ditto.
695 (write_pieced_value): Ditto.
696 (dwarf2_evaluate_loc_desc_full): Ditto.
697 (dwarf_reg_to_regnum): New function.
698 (throw_bad_regnum_error): New function.
699 (dwarf_reg_to_regnum_or_error): Renamed from
700 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
701 All callers updated. Call throw_bad_regnum_error.
702 (locexpr_regname): Improve text of bad register number.
703 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
704 (dwarf_reg_to_regnum_or_error): Update prototype.
705 * dwarf2expr.c: #include "dwarf2loc.h".
706 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
707 gdbarch_dwarf2_reg_to_regnum.
708 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
709 * gdbarch.h: Regenerate.
710 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
711 register.
712 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
713 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
714 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
715 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
716 Remove warning for bad register.
717 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
718 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
719 i386_svr4_reg_to_regnum. Return -1 for bad registers.
720 (i386_svr4_reg_to_regnum): New function.
721 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
722 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
723 on bad registers, return -1.
724 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
725 Remove warning for bad register.
726 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
727 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
728 Remove warning for bad register. Return -1 for bad register.
729 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
730 for bad register, return -1.
731 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
732 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
733 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
734 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
735 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
736 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
737 for bad regs.
738 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
739 bad regs. Fix error result.
740 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
741 (reg_value_complaint): Update complaint text.
742 * mdebugread.c (reg_value_complaint): New function.
743 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
744
745 2015-10-26 Doug Evans <dje@google.com>
746
747 PR python/18938
748 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
749 All callers updated.
750
751 2015-10-26 Doug Evans <dje@google.com>
752
753 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
754 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
755 (maintenance_print_psymbols): Print address map.
756
757 2015-10-26 Doug Evans <dje@google.com>
758
759 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
760
761 2015-10-26 Doug Evans <dje@google.com>
762
763 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
764 gdbserver/linux-low.c.
765 (WSETSTOP): Simplify.
766
767 2015-10-26 Doug Evans <dje@google.com>
768
769 * linux-thread-db.c (find_new_threads_callback): Ditto.
770 (thread_db_pid_to_str): Ditto.
771
772 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
773
774 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
775 local char array to scm_mode_bits, use a cast instead.
776
777 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
778
779 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
780 result. Change type of element_block_ptr. Change allocation to
781 use XNEWVEC.
782
783 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
784
785 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
786 catch_errors call instead of NULL.
787
788 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
791 char pointer to scm_mode_bits.
792
793 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
794
795 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
796 cast.
797
798 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
801 "data" local variable and use it.
802
803 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
806 domain_enum cast.
807 (gdbscm_lookup_symbol): Likewise.
808
809 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
810
811 * d-exp.y: Remove an obsolete comment and propagate the block
812 information to the produced expression.
813
814 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
815
816 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
817 cast.
818 (tui_add_content_elements): Likewise.
819
820 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
821
822 * cli/cli-setshow.c (do_set_command): Constify p.
823
824 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
825
826 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
827 (void *) cast with (gdb_byte *).
828
829 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
830
831 * proc-service.c (ps_pdread): Add cast.
832
833 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
834
835 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
836 valbuf.
837
838 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
839
840 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
841 (ia64_push_dummy_call): Remove cast and change type of "to" to
842 array of gdb_byte.
843
844 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
847
848 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
849
850 * observer.h (observer_${event}_notification_stub): Add cast.
851
852 2015-10-23 Yao Qi <yao.qi@linaro.org>
853
854 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
855 dsd.insn_count to zero.
856
857 2015-10-22 Pedro Alves <palves@redhat.com>
858
859 * infrun.c (stop_after_trap): Delete.
860 (clear_proceed_status, handle_signal_stop, struct
861 infcall_control_state, save_infcall_control_state)
862 (restore_infcall_control_state): Remove references to
863 stop_after_trap.
864
865 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
866
867 * python/python.c (_initialize_python): Add cast.
868
869 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
870
871 * nto-tdep.c (nto_inferior_data): Add cast.
872
873 2015-10-22 Pedro Alves <palves@redhat.com>
874
875 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
876 windows_wait and windows_resume directly instead of
877 wait_for_inferior and resume.
878
879 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
880
881 * xtensa-tdep.h (XTREG): Add casts.
882 (XTREG_END): Likewise.
883
884 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
885
886 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
887
888 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
889
890 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
891
892 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
893
894 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
895 buf to gdb_byte*.
896 (supply_32bit_reg): Add cast.
897 (mips64_fill_gregset): Likewise.
898
899 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
900
901 PR python/18073
902 * python/py-type.c (typy_get_composite): Allow returning a
903 function type.
904
905 2015-10-21 Keven Boell <keven.boell@intel.com>
906
907 * dwarf2read.c (set_die_type): Add read of
908 DW_AT_allocated and DW_AT_associated.
909 * f-typeprint.c: New include of typeprint.h
910 (f_print_type): Add check for allocated/associated
911 status of type.
912 (f_type_print_varspec_suffix): Add check for
913 * gdbtypes.c (create_array_type_with_stride):
914 Add check for valid data location of type in
915 case allocated or associated attributes are set.
916 Length of an array should be only calculated if
917 allocated or associated is resolved as true.
918 (is_dynamic_type_internal): Add check for allocated/
919 associated.
920 (resolve_dynamic_array): Evaluate allocated/associated
921 properties.
922 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
923 <DYN_PROP_ASSOCIATED>: New enums.
924 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
925 (type_not_allocated): New function.
926 (type_not_associated): New function.
927 * valarith.c (value_subscripted_rvalue): Add check for
928 allocated/associated.
929 * valprint.c: New include of typeprint.h.
930 (valprint_check_validity): Add check for allocated/associated.
931 (value_check_printable): Add check for allocated/
932 associated.
933 * typeprint.h (val_print_not_allocated): New function.
934 (val_print_not_associated): New function.
935 * typeprint.c (val_print_not_allocated): New function.
936 (val_print_not_associated): New function.
937
938 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
939
940 * Makefile.in: Add arm.c/o.
941 * arch/arm.c: New file.
942 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
943 (MAKE_THUMB_ADDR): Likewise.
944 (UNMAKE_THUMB_ADDR): Likewise.
945 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
946 (IS_THUMB_ADDR): Move to arm.h.
947 (MAKE_THUMB_ADDR): Likewise.
948 (UNMAKE_THUMB_ADDR): Likewise.
949 * configure.tgt: Add arm.o to all ARM configs.
950
951 2015-10-21 Yao Qi <yao.qi@linaro.org>
952
953 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
954 Remove argument exp_vCont_s.
955 * gdb.base/range-stepping.exp: Callers updated.
956 * gdb.trace/range-stepping.exp: Likewise.
957
958 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
959
960 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
961 (nto_sniff_abi_note_section): New function.
962 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
963 binary.
964
965 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
966
967 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
968 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
969 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
970 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
971 New functions.
972 (_initialize_nto_tdep): New forward declaration, new function.
973 * nto-tdep.h (struct nto_inferior_data): New struct.
974 (nto_inferior_data): New function declaration.
975
976 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
977
978 * findvar.c (address_from_register): Check REGNUM validity.
979
980 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
981
982 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
983 (init_procfs_targets): Wire new function.
984
985 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
986
987 * nto-procfs.c (sys/auxv.h): Include.
988 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
989 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
990 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
991
992 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
993
994 * nto-procfs.c (nto_procfs_path): Rename to...
995 (nodestr): ... this, and change type.
996 (nto_node): Use new variable and logic accordingly.
997 (procfs_open_1): Use new variable name. Use local buffer to construct
998 procfrs path.
999 (procfs_pidlist): Use NODESTR to construct procfs path.
1000 (procfs_files_info): Use NODESTR to output meaningful text.
1001 (do_attach): Construct procfs using NODESTR.
1002 (procfs_create_inferior): Compare pointer to NULL.
1003
1004 2015-10-19 Josh Stone <jistone@redhat.com>
1005
1006 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1007 return state, even when not actively catching syscalls at all.
1008 (linux_handle_extended_wait): Mark syscall_state like an entry.
1009 (wait_lwp): Set syscall_state ignored for other traps.
1010 (linux_nat_filter_event): Likewise.
1011
1012 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
1013
1014 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1015 when handling 'E', 'T', 'S', 'X' and 'W' packets.
1016 Do not set rs->waiting_for_stop_reply back to 1.
1017
1018 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
1019
1020 * nto-procfs.c (common/filestuff.h): Include.
1021 (procfs_can_use_hw_breakpoint): Fix enum name.
1022 (procfs_open_1): Fix compiler warning.
1023 (procfs_pidlist): Make static.
1024 (procfs_meminfo): Make static, fix type name, add missing argument.
1025 (procfs_store_registers): Make static.
1026 (procfs_thread_info): Remove unused function.
1027 (_initialize_procfs): Forward declare.
1028
1029 2015-10-16 Yao Qi <yao.qi@arm.com>
1030
1031 * MAINTAINERS: Update my email address.
1032
1033 2015-10-15 Yao Qi <yao.qi@linaro.org>
1034
1035 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1036 Call gdbarch_breakpoint_from_pc to instruction length.
1037 (aarch64_linux_remove_hw_breakpoint): Likewise.
1038 * common/common-regcache.h (regcache_register_size): Declare.
1039 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1040 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1041 the process is 32bit, otherwise set alignment to 4.
1042 (aarch64_handle_breakpoint): Update comments.
1043 * regcache.c (regcache_register_size): New function.
1044
1045 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1046
1047 * gdbarch.sh (core_regset_section): Remove.
1048 * gdbarch.h: Regenerate.
1049
1050 2015-10-14 Yao Qi <yao.qi@linaro.org>
1051
1052 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1053 out of it.
1054 (enum aarch64_memory_operand_type): New.
1055
1056 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
1057
1058 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1059
1060 2015-10-13 Pedro Alves <palves@redhat.com>
1061
1062 * ada-lang.c (ada_enum_name): Constify local.
1063 * ada-typeprint.c (print_range_bound): Constify locals.
1064 * c-varobj.c (c_describe_child): Likewise.
1065 * cli/cli-setshow.c (do_set_command): Likewise.
1066 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1067 * dwarf2read.c (find_file_and_directory): Likewise.
1068 (anonymous_struct_prefix, dwarf2_name): Likewise.
1069 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1070 * go-lang.c (unpack_mangled_go_symbol): Likewise.
1071 * jv-typeprint.c (java_type_print_base): Likewise.
1072 * ser-tcp.c (net_open): Likewise.
1073 * symfile.c (deduce_language_from_filename): Likewise.
1074 * symtab.c (gdb_mangle_name): Likewise.
1075 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1076
1077 2015-10-13 Pedro Alves <palves@redhat.com>
1078
1079 * infrun.c (restore_execution_direction): New function.
1080 (fetch_inferior_event): Use it instead of
1081 make_cleanup_restore_integer.
1082 (execution_direction): Change type to enum
1083 exec_direction_kind.
1084 * infrun.h (execution_direction): Likewise.
1085
1086 2015-10-13 Pedro Alves <palves@redhat.com>
1087
1088 * ada-lang.c (ada_value_primitive_packed_val): Constify
1089 locals. Use value_contents_writeable. Remove casts.
1090
1091 2015-10-13 Pedro Alves <palves@redhat.com>
1092
1093 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1094 and alloca calls.
1095
1096 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1099 write_memory with write_memory_unsigned_integer.
1100
1101 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * solib-dsbt.c (cmp_name): Constify arguments.
1104 * solib-frv.c (cmp_name): Likewise.
1105 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1106 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1107 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1108 (gdb_bfd_lookup_symbol): Likewise.
1109 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1110 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1111
1112 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 * stack.c (parse_frame_specification): Remove message parameter,
1115 replace with fixed string in function body, update function
1116 comment.
1117 (frame_info): Remove message to parse_frame_specification.
1118 (select_frame_command): Likewise.
1119
1120 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * stack.c (parse_frame_specification): Delete.
1123 (parse_frame_specification_1): Rename to
1124 parse_frame_specification.
1125 (frame_info): Use parse_frame_specification.
1126 (select_frame_command): Likewise.
1127 (return_command): Use select_frame and print_stack_frame rather
1128 than frame_command and select_frame_command.
1129 (func_command): Use get_current_frame rather than
1130 parse_frame_specification.
1131
1132 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1133
1134 * stack.c (func_command): Return early when there is no ARG
1135 string.
1136
1137 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * stack.c: Include safe-ctype.h not ctype.h.
1140 (parse_frame_specification): Use ISSPACE not isspace.
1141 (backtrace_command): Use TOLOWER not tolower.
1142
1143 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * mep-tdep.c (current_me_module): Add cast.
1146 (mep_gdbarch_init): Likewise.
1147
1148 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1149
1150 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1151 (m32c_write_reg_t): ...this and...
1152 (m32c_read_reg_t): ...this.
1153 (struct m32c_reg): Update types of read and write.
1154 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1155 adjust definition.
1156 (m32c_banked_read): Likewise.
1157 (m32c_sb_read): Likewise.
1158 (m32c_part_read): Likewise.
1159 (m32c_cat_read): Likewise.
1160 (m32c_r3r2r1r0_read): Likewise.
1161 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1162 and adjust definition.
1163 (m32c_banked_write): Likewise.
1164 (m32c_sb_write): Likewise.
1165 (m32c_part_write): Likewise.
1166 (m32c_cat_write): Likewise.
1167 (m32c_r3r2r1r0_write): Likewise.
1168
1169 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1172
1173 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1174
1175 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1176 gdb_sys_no_syscall instead of -1.
1177
1178 2015-10-12 Yao Qi <yao.qi@linaro.org>
1179
1180 * NEWS: Mention the change.
1181
1182 2015-10-12 Yao Qi <yao.qi@linaro.org>
1183
1184 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1185 (aarch64_emit_load_store): ... it. All callers updated.
1186
1187 2015-10-12 Yao Qi <yao.qi@linaro.org>
1188
1189 * arch/aarch64-insn.c (emit_insn): Rename to ...
1190 (aarch64_emit_insn): ... it. All callers updated.
1191
1192 2015-10-12 Yao Qi <yao.qi@linaro.org>
1193
1194 * aarch64-linux-tdep.c: Include arch-utils.h.
1195 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1196 set_gdbarch_displaced_step_copy_insn,
1197 set_gdbarch_displaced_step_fixup,
1198 set_gdbarch_displaced_step_free_closure,
1199 set_gdbarch_displaced_step_location,
1200 and set_gdbarch_displaced_step_hw_singlestep.
1201 * aarch64-tdep.c (struct displaced_step_closure): New.
1202 (struct aarch64_displaced_step_data): New.
1203 (aarch64_displaced_step_b): New function.
1204 (aarch64_displaced_step_b_cond): Likewise.
1205 (aarch64_register): Likewise.
1206 (aarch64_displaced_step_cb): Likewise.
1207 (aarch64_displaced_step_tb): Likewise.
1208 (aarch64_displaced_step_adr): Likewise.
1209 (aarch64_displaced_step_ldr_literal): Likewise.
1210 (aarch64_displaced_step_others): Likewise.
1211 (aarch64_displaced_step_copy_insn): Likewise.
1212 (aarch64_displaced_step_fixup): Likewise.
1213 (aarch64_displaced_step_hw_singlestep): Likewise.
1214 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1215 (aarch64_displaced_step_copy_insn): Declare.
1216 (aarch64_displaced_step_fixup): Declare.
1217 (aarch64_displaced_step_hw_singlestep): Declare.
1218 * arch/aarch64-insn.c (emit_insn): Moved from
1219 gdbserver/linux-aarch64-low.c.
1220 (emit_load_store): Likewise.
1221 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1222 gdbserver/linux-aarch64-low.c.
1223 (struct aarch64_register): Likewise.
1224 (struct aarch64_memory_operand): Likewise.
1225 (ENCODE): Likewise.
1226 (can_encode_int32): New macro.
1227 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1228 (emit_tb, emit_nop): Likewise.
1229 (emit_insn): Declare.
1230 (emit_load_store): Declare.
1231
1232 2015-10-12 Yao Qi <yao.qi@linaro.org>
1233
1234 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1235 gdbserver/linux-aarch64-low.c.
1236 (aarch64_relocate_instruction): Likewise.
1237 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
1238 (struct aarch64_insn_data): Moved from
1239 gdbserver/linux-aarch64-low.c.
1240 (struct aarch64_insn_visitor): Likewise.
1241 (aarch64_relocate_instruction): Declare.
1242
1243 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1244
1245 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
1246 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
1247 to the returned value.
1248
1249 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1250
1251 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
1252 is large enough for BIT_SIZE. Update function comment.
1253
1254 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1255
1256 * ada-lang.c (ada_value_primitive_packed_val): Move
1257 src_len variable to local block where used. Override
1258 BIT_SIZE if bigger than size of resolved type.
1259
1260 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1261
1262 * gdbtypes.h (is_scalar_type): Add extern declaration.
1263 * gdbtypes.c (is_scalar_type): Make non-static.
1264 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1265 to compute IS_SCALAR instead of doing it ourselves.
1266
1267 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1268
1269 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1270 of case where TYPE is dynamic.
1271
1272 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1273
1274 * ada-lang.c (ada_unpack_from_contents): New function,
1275 extracted from ada_value_primitive_packed_val.
1276 (ada_value_primitive_packed_val): Replace extracted out code
1277 by call to ada_unpack_from_contents.
1278
1279 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1280
1281 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1282 variable declarations.
1283
1284 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1285
1286 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1287 of local variables src and unpacked to "gdb_type *" instead of
1288 "unsigned char *".
1289
1290 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1291
1292 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1293 of various local variables more explicit and consistent.
1294 No real code change otherwise.
1295
1296 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1297
1298 * i386-tdep.h (struct gdbarch_tdep): Change type of
1299 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1300
1301 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1302
1303 * cris-tdep.c (struct instruction_environment): Change type of
1304 byte_order to enum bfd_endian.
1305
1306 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1307
1308 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1309 enum gdb_syscall casts.
1310
1311 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1312
1313 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1314 * arm-tdep.c (struct stack_item): Likewise.
1315 (push_stack_item): Add gdb_byte* cast.
1316 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1317 (push_stack_item): Add gdb_byte* cast.
1318 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1319 and add cast.
1320 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1321 (push_stack_item): Add gdb_byte* cast.
1322 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1323 add cast.
1324 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1325 gdb_byte*.
1326 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1327 gdb_byte* and remove unnecessary cast.
1328 (h8300h_extract_return_value): Likewise.
1329 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1330 (h8300h_store_return_value): Likewise.
1331 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1332 gdb_byte* and remove unnecessary cast.
1333 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1334 and add cast.
1335 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1336 gdb_byte* and remove unnecessary cast.
1337 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1338 valbuf.
1339 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1340 (mep_pseudo_cr64_read): Likewise.
1341 (mep_pseudo_csr_write): Likewise.
1342 (mep_pseudo_cr32_write): Likewise.
1343 (mep_pseudo_cr64_write): Likewise.
1344 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1345 gdb_byte* and add cast.
1346 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1347 gdb_byte* and remove unnecessary cast.
1348 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1349 valbuf.
1350 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1351 gdb_byte*.
1352 * printcmd.c (void): Likewise.
1353 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1354 gdb_byte* and add cast.
1355 (infpy_write_memory): Likewise.
1356 (infpy_search_memory): Likewise.
1357 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1358 and add cast.
1359 (regcache_raw_write_unsigned): Likewise.
1360 (regcache_cooked_write_signed): Likewise.
1361 (regcache_cooked_write_unsigned): Likewise.
1362 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1363 gdb_byte*.
1364
1365 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1366
1367 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1368 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1369
1370 2015-10-09 Eli Zaretskii <eliz@gnu.org>
1371
1372 * stack.c (print_stack_frame):
1373 * utils.c (printchar): Fix typos in commentary.
1374
1375 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1376
1377 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1378 (PostfixExpression): Support `expr.sizeof' expressions.
1379 (PrimaryExpression): Support `typeof(expr)' expressions.
1380
1381 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1382
1383 * MAINTAINERS: Update my email address.
1384
1385 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1386
1387 * record-btrace.c (record_btrace_resume): Fix void return.
1388
1389 2015-10-07 Yao Qi <yao.qi@linaro.org>
1390
1391 * aarch64-tdep.c: Include opcode/aarch64.h.
1392 (submask): Move it above.
1393 (bit): Likewise.
1394 (bits): Likewise.
1395 (aarch64_software_single_step): Call aarch64_decode_insn.
1396 Decode instruction by aarch64_inst instead of using
1397 aarch64_decode_bcond and decode_masked_match.
1398
1399 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1400
1401 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1402 only when the file is binary.
1403
1404 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1405
1406 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1407 subroutine handling.
1408
1409 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1410
1411 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1412
1413 2015-09-30 Doug Evans <dje@google.com>
1414
1415 * dwarf2read.c (setup_type_unit_groups): Add comment.
1416
1417 2015-09-30 Pedro Alves <palves@redhat.com>
1418
1419 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1420 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1421 (x86_linux_create_target): Don't install
1422 x86_linux_always_non_stop_p.
1423
1424 2015-09-30 Don Breazeal <donb@codesourcery.com>
1425
1426 * remote.c (remote_parse_stop_reply): Call strprefix instead
1427 of strncmp.
1428
1429 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1430
1431 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1432 * gdbarch.h: Regenerate.
1433 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1434 struct gdbarch_tdep_info *.
1435 * mips-tdep.c (mips_gdbarch_init): Likewise.
1436 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1437 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1438 * spu-multiarch.c (spu_gdbarch): Likewise.
1439
1440 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1441
1442 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1443 record a NULL value.
1444
1445 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1446
1447 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1448 and union arguments the same as pointer arguments when determining
1449 size of argument.
1450
1451 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1452
1453 * ft32-tdep.c: #include "opcode/ft32.h".
1454 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1455 (ft32_analyze_prologue): Use FT32_* macros.
1456
1457 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1458
1459 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1460 comment.
1461
1462 2015-09-28 Doug Evans <dje@google.com>
1463
1464 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1465
1466 2015-09-28 Doug Evans <dje@google.com>
1467
1468 * common/filestuff.c (make_cleanup_close): Update comment.
1469
1470 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1471
1472 * btrace.c (parse_xml_btrace_block): Fix cast of
1473 xml_find_attribute's return value.
1474 * memory-map.c (memory_map_start_memory): Likewise.
1475 * solib-svr4.c (library_list_start_library): Likewise.
1476 * solib-target.c (library_list_start_segment): Likewise.
1477 (library_list_start_section): Likewise.
1478 * tracepoint.c (traceframe_info_start_memory): Likewise.
1479
1480 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1481
1482 * d-namespace.c (d_lookup_symbol): New arg langdef.
1483 All callers updated. Support looking up symbol as a primitive type.
1484 (lookup_module_scope): New arg langdef. All callers updated.
1485 Call d_lookup_symbol directly for simple bare symbols.
1486
1487 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1488
1489 * macrocmd.c (print_macro_callback): Add cast(s).
1490 * macrotab.c (macro_bcache_str): Likewise.
1491 (new_macro_definition): Likewise.
1492 * main.c (captured_main): Likewise.
1493 * maint.c (print_bfd_section_info): Likewise.
1494 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1495 (basic_type): Likewise.
1496 * memattr.c (mem_region_cmp): Likewise.
1497 * memory-map.c (memory_map_start_memory): Likewise.
1498 (memory_map_end_memory): Likewise.
1499 (memory_map_start_property): Likewise.
1500 (memory_map_end_property): Likewise.
1501 (clear_result): Likewise.
1502 * memrange.c (compare_mem_ranges): Likewise.
1503 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1504 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1505 * mi/mi-console.c (mi_console_file_delete): Likewise.
1506 (mi_console_file_fputs): Likewise.
1507 (mi_console_raw_packet): Likewise.
1508 (mi_console_file_flush): Likewise.
1509 (mi_console_set_raw): Likewise.
1510 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1511 (mi_new_thread): Likewise.
1512 (mi_thread_exit): Likewise.
1513 (mi_record_changed): Likewise.
1514 (mi_inferior_added): Likewise.
1515 (mi_inferior_appeared): Likewise.
1516 (mi_inferior_exit): Likewise.
1517 (mi_inferior_removed): Likewise.
1518 (mi_interp_data): Likewise.
1519 (mi_on_normal_stop): Likewise.
1520 (mi_traceframe_changed): Likewise.
1521 (mi_tsv_created): Likewise.
1522 (mi_tsv_deleted): Likewise.
1523 (mi_tsv_modified): Likewise.
1524 (mi_breakpoint_created): Likewise.
1525 (mi_breakpoint_deleted): Likewise.
1526 (mi_breakpoint_modified): Likewise.
1527 (mi_output_running_pid): Likewise.
1528 (mi_inferior_count): Likewise.
1529 (mi_solib_loaded): Likewise.
1530 (mi_solib_unloaded): Likewise.
1531 (mi_command_param_changed): Likewise.
1532 (mi_memory_changed): Likewise.
1533 (report_initial_inferior): Likewise.
1534 (mi_ui_out): Likewise.
1535 (mi_set_logging): Likewise.
1536 * mi/mi-main.c (collect_cores): Likewise.
1537 (print_one_inferior): Likewise.
1538 (free_vector_of_ints): Likewise.
1539 (free_splay_tree): Likewise.
1540 (mi_execute_command): Likewise.
1541 * mi/mi-out.c (mi_table_body): Likewise.
1542 (mi_table_end): Likewise.
1543 (mi_table_header): Likewise.
1544 (mi_begin): Likewise.
1545 (mi_end): Likewise.
1546 (mi_field_int): Likewise.
1547 (mi_field_string): Likewise.
1548 (mi_field_fmt): Likewise.
1549 (mi_flush): Likewise.
1550 (mi_redirect): Likewise.
1551 (field_separator): Likewise.
1552 (mi_open): Likewise.
1553 (mi_close): Likewise.
1554 (mi_out_buffered): Likewise.
1555 (mi_out_rewind): Likewise.
1556 (mi_out_put): Likewise.
1557 (mi_version): Likewise.
1558 (mi_out_data_dtor): Likewise.
1559 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1560 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1561 * minidebug.c (lzma_open): Likewise.
1562 (lzma_pread): Likewise.
1563 (lzma_close): Likewise.
1564 (lzma_stat): Likewise.
1565 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1566 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1567 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1568 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1569 (mips_micro_frame_cache): Likewise.
1570 (mips_insn32_frame_cache): Likewise.
1571 (mips_stub_frame_cache): Likewise.
1572 (gdb_print_insn_mips): Likewise.
1573 (value_of_mips_user_reg): Likewise.
1574 (mips_gdbarch_init): Likewise.
1575 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1576 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1577 (mipsnbsd_supply_gregset): Likewise.
1578 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1579 (am33_collect_gregset_method): Likewise.
1580 (am33_collect_fpregset_method): Likewise.
1581 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1582 * moxie-tdep.c (moxie_frame_cache): Likewise.
1583 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1584 (msp430_analyze_frame_prologue): Likewise.
1585 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1586 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1587 (nios2_collect_gregset): Likewise.
1588 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1589 (nios2_stub_frame_cache): Likewise.
1590 * objc-lang.c (find_methods): Likewise.
1591 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1592 (get_objfile_pspace_data): Likewise.
1593 (get_objfile_bfd_data): Likewise.
1594 (objfile_bfd_data_free): Likewise.
1595 (add_to_objfile_sections): Likewise.
1596 (do_free_objfile_cleanup): Likewise.
1597 (resume_section_map_updates_cleanup): Likewise.
1598 * opencl-lang.c (builtin_opencl_type): Likewise.
1599 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1600 * osdata.c (osdata_start_osdata): Likewise.
1601 (osdata_start_item): Likewise.
1602 (osdata_start_column): Likewise.
1603 (osdata_end_column): Likewise.
1604 (clear_parsing_data): Likewise.
1605 (osdata_free_cleanup): Likewise.
1606 * parse.c (type_stack_cleanup): Likewise.
1607 (exp_uses_objfile_iter): Likewise.
1608 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1609 (ppc_linux_collect_gregset): Likewise.
1610 (ppu2spu_prev_arch): Likewise.
1611 (ppu2spu_this_id): Likewise.
1612 (ppu2spu_prev_register): Likewise.
1613 (ppu2spu_unwind_register): Likewise.
1614 (ppu2spu_sniffer): Likewise.
1615 (ppu2spu_dealloc_cache): Likewise.
1616 (ppc_linux_init_abi): Likewise.
1617 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1618 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1619 * progspace.c (restore_program_space): Likewise.
1620 * psymtab.c (find_pc_sect_psymtab): Likewise.
1621 (compare_psymbols): Likewise.
1622 (psymbol_bcache_full): Likewise.
1623 (allocate_psymtab): Likewise.
1624 (discard_psymtabs_upto): Likewise.
1625 * python/py-block.c (set_block): Likewise.
1626 (del_objfile_blocks): Likewise.
1627 * python/py-breakpoint.c (build_bp_list): Likewise.
1628 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1629 (build_inferior_list): Likewise.
1630 (py_free_inferior): Likewise.
1631 * python/py-objfile.c (py_free_objfile): Likewise.
1632 (objfile_to_objfile_object): Likewise.
1633 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1634 * python/py-progspace.c (py_free_pspace): Likewise.
1635 (pspace_to_pspace_object): Likewise.
1636 * python/py-symbol.c (set_symbol): Likewise.
1637 (del_objfile_symbols): Likewise.
1638 * python/py-symtab.c (set_sal): Likewise.
1639 (set_symtab): Likewise.
1640 (del_objfile_symtab): Likewise.
1641 (del_objfile_sal): Likewise.
1642 * python/py-type.c (save_objfile_types): Likewise.
1643 (set_type): Likewise.
1644 * python/py-unwind.c (pyuw_prev_register): Likewise.
1645 (pyuw_on_new_gdbarch): Likewise.
1646 * python/py-utils.c (py_decref): Likewise.
1647 (py_xdecref): Likewise.
1648 (gdb_py_generic_dict): Likewise.
1649 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1650 (gdbpy_clone_xmethod_worker_data): Likewise.
1651 (gdbpy_get_xmethod_arg_types): Likewise.
1652 (gdbpy_get_xmethod_result_type): Likewise.
1653 (gdbpy_invoke_xmethod): Likewise.
1654 * python/python.c (gdbpy_apply_type_printers): Likewise.
1655 (gdbpy_free_type_printers): Likewise.
1656 * record-btrace.c (record_btrace_disable_callback): Likewise.
1657 (bfcache_hash): Likewise.
1658 (bfcache_eq): Likewise.
1659 (btrace_get_frame_function): Likewise.
1660 (record_btrace_frame_unwind_stop_reason): Likewise.
1661 (record_btrace_frame_this_id): Likewise.
1662 (record_btrace_frame_prev_register): Likewise.
1663 (record_btrace_frame_dealloc_cache): Likewise.
1664 * record-full.c (record_full_message_wrapper): Likewise.
1665 (record_full_save_cleanups): Likewise.
1666 * regcache.c (regcache_descr): Likewise.
1667 (do_regcache_xfree): Likewise.
1668 (do_regcache_invalidate): Likewise.
1669 (do_cooked_read): Likewise.
1670 (regcache_transfer_regset): Likewise.
1671 * reggroups.c (reggroup_add): Likewise.
1672 (reggroup_next): Likewise.
1673 (reggroup_prev): Likewise.
1674 * remote-fileio.c (do_remote_fileio_request): Likewise.
1675 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1676 (do_notif_event_xfree): Likewise.
1677 * remote.c (get_remote_arch_state): Likewise.
1678 (remote_pspace_data_cleanup): Likewise.
1679 (get_remote_exec_file): Likewise.
1680 (set_pspace_remote_exec_file): Likewise.
1681 (compare_pnums): Likewise.
1682 (clear_threads_listing_context): Likewise.
1683 (remote_newthread_step): Likewise.
1684 (start_thread): Likewise.
1685 (end_thread): Likewise.
1686 (remove_child_of_pending_fork): Likewise.
1687 (remove_stop_reply_for_inferior): Likewise.
1688 (remove_stop_reply_of_remote_state): Likewise.
1689 (remote_notif_remove_once_on_match): Likewise.
1690 (stop_reply_match_ptid_and_ws): Likewise.
1691 (kill_child_of_pending_fork): Likewise.
1692 (register_remote_g_packet_guess): Likewise.
1693 (remote_read_description_p): Likewise.
1694 (remote_read_description): Likewise.
1695 (free_actions_list_cleanup_wrapper): Likewise.
1696 (remote_async_serial_handler): Likewise.
1697 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1698 (rl78_analyze_frame_prologue): Likewise.
1699 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1700 (ppc_supply_fpregset): Likewise.
1701 (ppc_supply_vsxregset): Likewise.
1702 (ppc_supply_vrregset): Likewise.
1703 (ppc_collect_gregset): Likewise.
1704 (ppc_collect_fpregset): Likewise.
1705 (ppc_collect_vsxregset): Likewise.
1706 (ppc_collect_vrregset): Likewise.
1707 (e500_move_ev_register): Likewise.
1708 (do_regcache_raw_write): Likewise.
1709 (rs6000_frame_cache): Likewise.
1710 (rs6000_epilogue_frame_cache): Likewise.
1711 (rs6000_gdbarch_init): Likewise.
1712 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1713 (rx_analyze_frame_prologue): Likewise.
1714 (rx_frame_type): Likewise.
1715 (rx_frame_sniffer_common): Likewise.
1716 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1717 (s390_frame_unwind_cache): Likewise.
1718 (s390_stub_frame_unwind_cache): Likewise.
1719 (s390_sigtramp_frame_unwind_cache): Likewise.
1720 * score-tdep.c (score_make_prologue_cache): Likewise.
1721 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1722 (sentinel_frame_prev_arch): Likewise.
1723 * ser-base.c (fd_event): Likewise.
1724 (push_event): Likewise.
1725 (ser_base_write): Likewise.
1726 * ser-pipe.c (pipe_close): Likewise.
1727 * serial.c (serial_write): Likewise.
1728 * sh-tdep.c (sh_frame_cache): Likewise.
1729 (sh_stub_this_id): Likewise.
1730 * sh64-tdep.c (sh64_frame_cache): Likewise.
1731 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1732 (library_list_start_library): Likewise.
1733 (library_list_start_list): Likewise.
1734 (solib_aix_free_library_list): Likewise.
1735 * solib-darwin.c (get_darwin_info): Likewise.
1736 * solib-dsbt.c (get_dsbt_info): Likewise.
1737 * solib-spu.c (append_ocl_sos): Likewise.
1738 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1739 (get_svr4_info): Likewise.
1740 (library_list_start_library): Likewise.
1741 (svr4_library_list_start_list): Likewise.
1742 (hash_probe_and_action): Likewise.
1743 (equal_probe_and_action): Likewise.
1744 (svr4_update_solib_event_breakpoint): Likewise.
1745 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1746 (svr4_fetch_link_map_offsets): Likewise.
1747 (svr4_have_link_map_offsets): Likewise.
1748 * solib-target.c (library_list_start_segment): Likewise.
1749 (library_list_start_section): Likewise.
1750 (library_list_start_library): Likewise.
1751 (library_list_end_library): Likewise.
1752 (library_list_start_list): Likewise.
1753 (solib_target_free_library_list): Likewise.
1754 * solib.c (solib_ops): Likewise.
1755 (set_solib_ops): Likewise.
1756 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1757 * sparc-tdep.c (sparc_frame_cache): Likewise.
1758 (sparc32_frame_cache): Likewise.
1759 (sparc32_supply_gregset): Likewise.
1760 (sparc32_collect_gregset): Likewise.
1761 (sparc32_supply_fpregset): Likewise.
1762 (sparc32_collect_fpregset): Likewise.
1763 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1764 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1765 (sparc64_collect_gregset): Likewise.
1766 (sparc64_supply_fpregset): Likewise.
1767 (sparc64_collect_fpregset): Likewise.
1768 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1769 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1770 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1771 (sparc64obsd_trapframe_cache): Likewise.
1772 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1773 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1774 * spu-multiarch.c (spu_gdbarch): Likewise.
1775 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1776 (spu2ppu_prev_arch): Likewise.
1777 (spu2ppu_this_id): Likewise.
1778 (spu2ppu_prev_register): Likewise.
1779 (spu2ppu_dealloc_cache): Likewise.
1780 (spu_dis_asm_print_address): Likewise.
1781 (gdb_print_insn_spu): Likewise.
1782 (spu_get_overlay_table): Likewise.
1783 * stabsread.c (rs6000_builtin_type): Likewise.
1784 * stack.c (do_print_variable_and_value): Likewise.
1785 * stap-probe.c (get_stap_base_address_1): Likewise.
1786 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1787 (debug_qf_find_last_source_symtab): Likewise.
1788 (debug_qf_forget_cached_source_info): Likewise.
1789 (debug_qf_map_symtabs_matching_filename): Likewise.
1790 (debug_qf_lookup_symbol): Likewise.
1791 (debug_qf_print_stats): Likewise.
1792 (debug_qf_dump): Likewise.
1793 (debug_qf_relocate): Likewise.
1794 (debug_qf_expand_symtabs_for_function): Likewise.
1795 (debug_qf_expand_all_symtabs): Likewise.
1796 (debug_qf_expand_symtabs_with_fullname): Likewise.
1797 (debug_qf_map_matching_symbols): Likewise.
1798 (debug_qf_expand_symtabs_matching): Likewise.
1799 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1800 (debug_qf_map_symbol_filenames): Likewise.
1801 (debug_sym_get_probes): Likewise.
1802 (debug_sym_new_init): Likewise.
1803 (debug_sym_init): Likewise.
1804 (debug_sym_read): Likewise.
1805 (debug_sym_read_psymbols): Likewise.
1806 (debug_sym_finish): Likewise.
1807 (debug_sym_offsets): Likewise.
1808 (debug_sym_read_linetable): Likewise.
1809 (debug_sym_relocate): Likewise.
1810 (uninstall_symfile_debug_logging): Likewise.
1811 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1812 * symfile.c (place_section): Likewise.
1813 (add_section_size_callback): Likewise.
1814 (load_progress): Likewise.
1815 (load_section_callback): Likewise.
1816 (clear_memory_write_data): Likewise.
1817 (allocate_symtab): Likewise.
1818 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1819 * symtab.c (lookup_symtab_callback): Likewise.
1820 (hash_demangled_name_entry): Likewise.
1821 (eq_demangled_name_entry): Likewise.
1822 (get_symbol_cache): Likewise.
1823 (symbol_cache_cleanup): Likewise.
1824 (set_symbol_cache_size): Likewise.
1825 (symbol_cache_flush): Likewise.
1826 (maintenance_print_symbol_cache): Likewise.
1827 (maintenance_print_symbol_cache_statistics): Likewise.
1828 (delete_filename_seen_cache): Likewise.
1829 (output_partial_symbol_filename): Likewise.
1830 (search_symbols_file_matches): Likewise.
1831 (search_symbols_name_matches): Likewise.
1832 (do_free_completion_list): Likewise.
1833 (maybe_add_partial_symtab_filename): Likewise.
1834 (get_main_info): Likewise.
1835 (main_info_cleanup): Likewise.
1836 * target-dcache.c (target_dcache_cleanup): Likewise.
1837 (target_dcache_init_p): Likewise.
1838 (target_dcache_invalidate): Likewise.
1839 (target_dcache_get): Likewise.
1840 (target_dcache_get_or_init): Likewise.
1841 * target-descriptions.c (target_find_description): Likewise.
1842 (tdesc_find_type): Likewise.
1843 (tdesc_data_cleanup): Likewise.
1844 (tdesc_find_arch_register): Likewise.
1845 (tdesc_register_name): Likewise.
1846 (tdesc_register_type): Likewise.
1847 (tdesc_register_reggroup_p): Likewise.
1848 (set_tdesc_pseudo_register_name): Likewise.
1849 (set_tdesc_pseudo_register_type): Likewise.
1850 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1851 (tdesc_use_registers): Likewise.
1852 (free_target_description): Likewise.
1853 * target-memory.c (compare_block_starting_address): Likewise.
1854 (cleanup_request_data): Likewise.
1855 (cleanup_write_requests_vector): Likewise.
1856 * target.c (open_target): Likewise.
1857 (cleanup_restore_target_terminal): Likewise.
1858 (free_memory_read_result_vector): Likewise.
1859 * thread.c (disable_thread_stack_temporaries): Likewise.
1860 (finish_thread_state_cleanup): Likewise.
1861 (do_restore_current_thread_cleanup): Likewise.
1862 (restore_current_thread_cleanup_dtor): Likewise.
1863 (set_thread_refcount): Likewise.
1864 (tp_array_compar): Likewise.
1865 (do_captured_thread_select): Likewise.
1866 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1867 (tic6x_stub_this_id): Likewise.
1868 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1869 * top.c (do_restore_instream_cleanup): Likewise.
1870 (gdb_readline_wrapper_cleanup): Likewise.
1871 (kill_or_detach): Likewise.
1872 (print_inferior_quit_action): Likewise.
1873 * tracefile-tfile.c (match_blocktype): Likewise.
1874 (build_traceframe_info): Likewise.
1875 * tracefile.c (trace_file_writer_xfree): Likewise.
1876 * tracepoint.c (memrange_cmp): Likewise.
1877 (do_collect_symbol): Likewise.
1878 (do_clear_collection_list): Likewise.
1879 (do_restore_current_traceframe_cleanup): Likewise.
1880 (restore_current_traceframe_cleanup_dtor): Likewise.
1881 (free_current_marker): Likewise.
1882 (traceframe_info_start_memory): Likewise.
1883 (traceframe_info_start_tvar): Likewise.
1884 (free_result): Likewise.
1885 * tramp-frame.c (tramp_frame_cache): Likewise.
1886 * tui/tui-file.c (tui_file_delete): Likewise.
1887 (tui_fileopen): Likewise.
1888 (tui_sfileopen): Likewise.
1889 (tui_file_isatty): Likewise.
1890 (tui_file_rewind): Likewise.
1891 (tui_file_put): Likewise.
1892 (tui_file_fputs): Likewise.
1893 (tui_file_get_strbuf): Likewise.
1894 (tui_file_adjust_strbuf): Likewise.
1895 (tui_file_flush): Likewise.
1896 * tui/tui-layout.c (make_command_window): Likewise.
1897 (make_data_window): Likewise.
1898 (show_source_disasm_command): Likewise.
1899 (show_data): Likewise.
1900 (make_source_or_disasm_window): Likewise.
1901 (show_source_or_disasm_and_command): Likewise.
1902 * tui/tui-out.c (tui_field_int): Likewise.
1903 (tui_field_string): Likewise.
1904 (tui_field_fmt): Likewise.
1905 (tui_text): Likewise.
1906 * typeprint.c (hash_typedef_field): Likewise.
1907 (eq_typedef_field): Likewise.
1908 (do_free_typedef_hash): Likewise.
1909 (copy_typedef_hash_element): Likewise.
1910 (do_free_global_table): Likewise.
1911 (find_global_typedef): Likewise.
1912 (find_typedef_in_hash): Likewise.
1913 * ui-file.c (ui_file_write_for_put): Likewise.
1914 (do_ui_file_xstrdup): Likewise.
1915 (mem_file_delete): Likewise.
1916 (mem_file_rewind): Likewise.
1917 (mem_file_put): Likewise.
1918 (mem_file_write): Likewise.
1919 (stdio_file_delete): Likewise.
1920 (stdio_file_flush): Likewise.
1921 (stdio_file_read): Likewise.
1922 (stdio_file_write): Likewise.
1923 (stdio_file_write_async_safe): Likewise.
1924 (stdio_file_fputs): Likewise.
1925 (stdio_file_isatty): Likewise.
1926 (stdio_file_fseek): Likewise.
1927 (tee_file_delete): Likewise.
1928 (tee_file_flush): Likewise.
1929 (tee_file_write): Likewise.
1930 (tee_file_fputs): Likewise.
1931 (tee_file_isatty): Likewise.
1932 * ui-out.c (do_cleanup_table_end): Likewise.
1933 (do_cleanup_end): Likewise.
1934 * user-regs.c (user_reg_add): Likewise.
1935 (user_reg_map_name_to_regnum): Likewise.
1936 (usernum_to_user_reg): Likewise.
1937 (maintenance_print_user_registers): Likewise.
1938 * utils.c (do_bfd_close_cleanup): Likewise.
1939 (do_fclose_cleanup): Likewise.
1940 (do_obstack_free): Likewise.
1941 (do_ui_file_delete): Likewise.
1942 (do_ui_out_redirect_pop): Likewise.
1943 (do_free_section_addr_info): Likewise.
1944 (restore_integer): Likewise.
1945 (do_unpush_target): Likewise.
1946 (do_htab_delete_cleanup): Likewise.
1947 (do_restore_ui_file): Likewise.
1948 (do_value_free): Likewise.
1949 (do_free_so): Likewise.
1950 (free_current_contents): Likewise.
1951 (do_regfree_cleanup): Likewise.
1952 (core_addr_hash): Likewise.
1953 (core_addr_eq): Likewise.
1954 (do_free_char_ptr_vec): Likewise.
1955 * v850-tdep.c (v850_frame_cache): Likewise.
1956 * varobj.c (do_free_variable_cleanup): Likewise.
1957 * vax-tdep.c (vax_supply_gregset): Likewise.
1958 (vax_frame_cache): Likewise.
1959 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1960 * xml-support.c (gdb_xml_body_text): Likewise.
1961 (gdb_xml_values_cleanup): Likewise.
1962 (gdb_xml_start_element): Likewise.
1963 (gdb_xml_start_element_wrapper): Likewise.
1964 (gdb_xml_end_element): Likewise.
1965 (gdb_xml_end_element_wrapper): Likewise.
1966 (gdb_xml_cleanup): Likewise.
1967 (gdb_xml_fetch_external_entity): Likewise.
1968 (gdb_xml_parse_attr_enum): Likewise.
1969 (xinclude_start_include): Likewise.
1970 (xinclude_end_include): Likewise.
1971 (xml_xinclude_default): Likewise.
1972 (xml_xinclude_start_doctype): Likewise.
1973 (xml_xinclude_end_doctype): Likewise.
1974 (xml_xinclude_cleanup): Likewise.
1975 (xml_fetch_content_from_file): Likewise.
1976 * xml-syscall.c (free_syscalls_info): Likewise.
1977 (syscall_start_syscall): Likewise.
1978 * xml-tdesc.c (tdesc_end_arch): Likewise.
1979 (tdesc_end_osabi): Likewise.
1980 (tdesc_end_compatible): Likewise.
1981 (tdesc_start_target): Likewise.
1982 (tdesc_start_feature): Likewise.
1983 (tdesc_start_reg): Likewise.
1984 (tdesc_start_union): Likewise.
1985 (tdesc_start_struct): Likewise.
1986 (tdesc_start_flags): Likewise.
1987 (tdesc_start_field): Likewise.
1988 (tdesc_start_vector): Likewise.
1989 (fetch_available_features_from_target): Likewise.
1990 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1991 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1992 (xtensa_frame_cache): Likewise.
1993 (xtensa_frame_prev_register): Likewise.
1994 (xtensa_extract_return_value): Likewise.
1995
1996 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1997
1998 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1999 (aarch64_make_stub_cache): Likewise.
2000 (value_of_aarch64_user_reg): Likewise.
2001 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2002 (get_ada_inferior_data): Likewise.
2003 (get_ada_pspace_data): Likewise.
2004 (ada_pspace_data_cleanup): Likewise.
2005 (ada_complete_symbol_matcher): Likewise.
2006 (ada_exc_search_name_matches): Likewise.
2007 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2008 (get_ada_tasks_inferior_data): Likewise.
2009 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2010 (splay_obstack_alloc): Likewise.
2011 (splay_obstack_free): Likewise.
2012 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2013 (alpha_linux_collect_gregset): Likewise.
2014 (alpha_linux_supply_fpregset): Likewise.
2015 (alpha_linux_collect_fpregset): Likewise.
2016 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2017 * alpha-tdep.c (alpha_lds): Likewise.
2018 (alpha_sts): Likewise.
2019 (alpha_sigtramp_frame_unwind_cache): Likewise.
2020 (alpha_heuristic_frame_unwind_cache): Likewise.
2021 (alpha_supply_int_regs): Likewise.
2022 (alpha_fill_int_regs): Likewise.
2023 (alpha_supply_fp_regs): Likewise.
2024 (alpha_fill_fp_regs): Likewise.
2025 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2026 (alphanbsd_aout_supply_gregset): Likewise.
2027 (alphanbsd_supply_gregset): Likewise.
2028 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2029 (amd64_x32_linux_init_abi): Likewise.
2030 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2031 (amd64_collect_native_gregset): Likewise.
2032 * amd64-tdep.c (amd64_frame_cache): Likewise.
2033 (amd64_sigtramp_frame_cache): Likewise.
2034 (amd64_epilogue_frame_cache): Likewise.
2035 (amd64_supply_fxsave): Likewise.
2036 (amd64_supply_xsave): Likewise.
2037 (amd64_collect_fxsave): Likewise.
2038 (amd64_collect_xsave): Likewise.
2039 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2040 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2041 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2042 (arm_linux_collect_gregset): Likewise.
2043 (arm_linux_supply_nwfpe): Likewise.
2044 (arm_linux_collect_nwfpe): Likewise.
2045 (arm_linux_supply_vfp): Likewise.
2046 (arm_linux_collect_vfp): Likewise.
2047 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2048 (arm_prologue_unwind_stop_reason): Likewise.
2049 (arm_prologue_this_id): Likewise.
2050 (arm_prologue_prev_register): Likewise.
2051 (arm_exidx_data_free): Likewise.
2052 (arm_find_exidx_entry): Likewise.
2053 (arm_stub_this_id): Likewise.
2054 (arm_m_exception_this_id): Likewise.
2055 (arm_m_exception_prev_register): Likewise.
2056 (arm_normal_frame_base): Likewise.
2057 (gdb_print_insn_arm): Likewise.
2058 (arm_objfile_data_free): Likewise.
2059 (arm_record_special_symbol): Likewise.
2060 (value_of_arm_user_reg): Likewise.
2061 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2062 (armbsd_supply_gregset): Likewise.
2063 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2064 (get_auto_load_pspace_data): Likewise.
2065 (hash_loaded_script_entry): Likewise.
2066 (eq_loaded_script_entry): Likewise.
2067 (clear_section_scripts): Likewise.
2068 (collect_matching_scripts): Likewise.
2069 * auxv.c (auxv_inferior_data_cleanup): Likewise.
2070 (get_auxv_inferior_data): Likewise.
2071 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2072 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2073 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2074 (target_bfd_xclose): Likewise.
2075 (target_bfd_get_section_table): Likewise.
2076 * bfin-tdep.c (bfin_frame_cache): Likewise.
2077 * block.c (find_block_in_blockvector): Likewise.
2078 (call_site_for_pc): Likewise.
2079 (block_find_non_opaque_type_preferred): Likewise.
2080 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2081 (signal_catchpoint_remove_location): Likewise.
2082 (signal_catchpoint_breakpoint_hit): Likewise.
2083 (signal_catchpoint_print_one): Likewise.
2084 (signal_catchpoint_print_mention): Likewise.
2085 (signal_catchpoint_print_recreate): Likewise.
2086 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2087 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2088 (bp_location_compare_addrs): Likewise.
2089 (get_first_locp_gte_addr): Likewise.
2090 (check_tracepoint_command): Likewise.
2091 (do_map_commands_command): Likewise.
2092 (get_breakpoint_objfile_data): Likewise.
2093 (free_breakpoint_probes): Likewise.
2094 (do_captured_breakpoint_query): Likewise.
2095 (compare_breakpoints): Likewise.
2096 (bp_location_compare): Likewise.
2097 (bpstat_remove_breakpoint_callback): Likewise.
2098 (do_delete_breakpoint_cleanup): Likewise.
2099 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2100 (bsd_uthread_set_collect_uthread): Likewise.
2101 (bsd_uthread_activate): Likewise.
2102 (bsd_uthread_fetch_registers): Likewise.
2103 (bsd_uthread_store_registers): Likewise.
2104 * btrace.c (check_xml_btrace_version): Likewise.
2105 (parse_xml_btrace_block): Likewise.
2106 (parse_xml_btrace_pt_config_cpu): Likewise.
2107 (parse_xml_btrace_pt_raw): Likewise.
2108 (parse_xml_btrace_pt): Likewise.
2109 (parse_xml_btrace_conf_bts): Likewise.
2110 (parse_xml_btrace_conf_pt): Likewise.
2111 (do_btrace_data_cleanup): Likewise.
2112 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2113 * charset.c (cleanup_iconv): Likewise.
2114 (do_cleanup_iterator): Likewise.
2115 * cli-out.c (cli_uiout_dtor): Likewise.
2116 (cli_table_begin): Likewise.
2117 (cli_table_body): Likewise.
2118 (cli_table_end): Likewise.
2119 (cli_table_header): Likewise.
2120 (cli_begin): Likewise.
2121 (cli_end): Likewise.
2122 (cli_field_int): Likewise.
2123 (cli_field_skip): Likewise.
2124 (cli_field_string): Likewise.
2125 (cli_field_fmt): Likewise.
2126 (cli_spaces): Likewise.
2127 (cli_text): Likewise.
2128 (cli_message): Likewise.
2129 (cli_wrap_hint): Likewise.
2130 (cli_flush): Likewise.
2131 (cli_redirect): Likewise.
2132 (out_field_fmt): Likewise.
2133 (field_separator): Likewise.
2134 (cli_out_set_stream): Likewise.
2135 * cli/cli-cmds.c (compare_symtabs): Likewise.
2136 * cli/cli-dump.c (call_dump_func): Likewise.
2137 (restore_section_callback): Likewise.
2138 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2139 (do_restore_user_call_depth): Likewise.
2140 (do_free_command_lines_cleanup): Likewise.
2141 * coff-pe-read.c (get_section_vmas): Likewise.
2142 (pe_as16): Likewise.
2143 (pe_as32): Likewise.
2144 * coffread.c (coff_symfile_read): Likewise.
2145 * common/agent.c (agent_look_up_symbols): Likewise.
2146 * common/filestuff.c (do_close_cleanup): Likewise.
2147 * common/format.c (free_format_pieces_cleanup): Likewise.
2148 * common/vec.c (vec_o_reserve): Likewise.
2149 * compile/compile-c-support.c (print_one_macro): Likewise.
2150 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2151 (eq_symbol_error): Likewise.
2152 (del_symbol_error): Likewise.
2153 (error_symbol_once): Likewise.
2154 (gcc_convert_symbol): Likewise.
2155 (gcc_symbol_address): Likewise.
2156 (hash_symname): Likewise.
2157 (eq_symname): Likewise.
2158 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2159 (eq_type_map_instance): Likewise.
2160 (insert_type): Likewise.
2161 (convert_type): Likewise.
2162 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2163 (setup_sections): Likewise.
2164 (link_hash_table_free): Likewise.
2165 (copy_sections): Likewise.
2166 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2167 * compile/compile.c (compile_print_value): Likewise.
2168 (do_rmdir): Likewise.
2169 (cleanup_compile_instance): Likewise.
2170 (cleanup_unlink_file): Likewise.
2171 * completer.c (free_completion_tracker): Likewise.
2172 * corelow.c (add_to_spuid_list): Likewise.
2173 * cp-namespace.c (reset_directive_searched): Likewise.
2174 * cp-support.c (reset_directive_searched): Likewise.
2175 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2176 (cris_frame_unwind_cache): Likewise.
2177 * d-lang.c (builtin_d_type): Likewise.
2178 * d-namespace.c (reset_directive_searched): Likewise.
2179 * dbxread.c (dbx_free_symfile_info): Likewise.
2180 (do_free_bincl_list_cleanup): Likewise.
2181 * disasm.c (hash_dis_line_entry): Likewise.
2182 (eq_dis_line_entry): Likewise.
2183 (dis_asm_print_address): Likewise.
2184 (fprintf_disasm): Likewise.
2185 (do_ui_file_delete): Likewise.
2186 * doublest.c (convert_floatformat_to_doublest): Likewise.
2187 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2188 (dummy_frame_prev_register): Likewise.
2189 (dummy_frame_this_id): Likewise.
2190 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2191 (cache_eq): Likewise.
2192 (cache_find): Likewise.
2193 (tailcall_frame_this_id): Likewise.
2194 (dwarf2_tailcall_prev_register_first): Likewise.
2195 (tailcall_frame_prev_register): Likewise.
2196 (tailcall_frame_dealloc_cache): Likewise.
2197 (tailcall_frame_prev_arch): Likewise.
2198 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2199 (dwarf2_frame_set_init_reg): Likewise.
2200 (dwarf2_frame_init_reg): Likewise.
2201 (dwarf2_frame_set_signal_frame_p): Likewise.
2202 (dwarf2_frame_signal_frame_p): Likewise.
2203 (dwarf2_frame_set_adjust_regnum): Likewise.
2204 (dwarf2_frame_adjust_regnum): Likewise.
2205 (clear_pointer_cleanup): Likewise.
2206 (dwarf2_frame_cache): Likewise.
2207 (find_cie): Likewise.
2208 (dwarf2_frame_find_fde): Likewise.
2209 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2210 (free_dwarf_expr_context_cleanup): Likewise.
2211 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2212 (locexpr_get_frame_base): Likewise.
2213 (loclist_find_frame_base_location): Likewise.
2214 (loclist_get_frame_base): Likewise.
2215 (dwarf_expr_dwarf_call): Likewise.
2216 (dwarf_expr_get_base_type): Likewise.
2217 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2218 (dwarf_expr_get_obj_addr): Likewise.
2219 (entry_data_value_coerce_ref): Likewise.
2220 (entry_data_value_copy_closure): Likewise.
2221 (entry_data_value_free_closure): Likewise.
2222 (get_frame_address_in_block_wrapper): Likewise.
2223 (dwarf2_evaluate_property): Likewise.
2224 (dwarf2_compile_property_to_c): Likewise.
2225 (needs_frame_read_addr_from_reg): Likewise.
2226 (needs_frame_get_reg_value): Likewise.
2227 (needs_frame_frame_base): Likewise.
2228 (needs_frame_frame_cfa): Likewise.
2229 (needs_frame_tls_address): Likewise.
2230 (needs_frame_dwarf_call): Likewise.
2231 (needs_dwarf_reg_entry_value): Likewise.
2232 (get_ax_pc): Likewise.
2233 (locexpr_read_variable): Likewise.
2234 (locexpr_read_variable_at_entry): Likewise.
2235 (locexpr_read_needs_frame): Likewise.
2236 (locexpr_describe_location): Likewise.
2237 (locexpr_tracepoint_var_ref): Likewise.
2238 (locexpr_generate_c_location): Likewise.
2239 (loclist_read_variable): Likewise.
2240 (loclist_read_variable_at_entry): Likewise.
2241 (loclist_describe_location): Likewise.
2242 (loclist_tracepoint_var_ref): Likewise.
2243 (loclist_generate_c_location): Likewise.
2244 * dwarf2read.c (line_header_hash_voidp): Likewise.
2245 (line_header_eq_voidp): Likewise.
2246 (dwarf2_has_info): Likewise.
2247 (dwarf2_get_section_info): Likewise.
2248 (locate_dwz_sections): Likewise.
2249 (hash_file_name_entry): Likewise.
2250 (eq_file_name_entry): Likewise.
2251 (delete_file_name_entry): Likewise.
2252 (dw2_setup): Likewise.
2253 (dw2_get_file_names_reader): Likewise.
2254 (dw2_find_pc_sect_compunit_symtab): Likewise.
2255 (hash_signatured_type): Likewise.
2256 (eq_signatured_type): Likewise.
2257 (add_signatured_type_cu_to_table): Likewise.
2258 (create_debug_types_hash_table): Likewise.
2259 (lookup_dwo_signatured_type): Likewise.
2260 (lookup_dwp_signatured_type): Likewise.
2261 (lookup_signatured_type): Likewise.
2262 (hash_type_unit_group): Likewise.
2263 (eq_type_unit_group): Likewise.
2264 (get_type_unit_group): Likewise.
2265 (process_psymtab_comp_unit_reader): Likewise.
2266 (sort_tu_by_abbrev_offset): Likewise.
2267 (process_skeletonless_type_unit): Likewise.
2268 (psymtabs_addrmap_cleanup): Likewise.
2269 (dwarf2_read_symtab): Likewise.
2270 (psymtab_to_symtab_1): Likewise.
2271 (die_hash): Likewise.
2272 (die_eq): Likewise.
2273 (load_full_comp_unit_reader): Likewise.
2274 (reset_die_in_process): Likewise.
2275 (free_cu_line_header): Likewise.
2276 (handle_DW_AT_stmt_list): Likewise.
2277 (hash_dwo_file): Likewise.
2278 (eq_dwo_file): Likewise.
2279 (hash_dwo_unit): Likewise.
2280 (eq_dwo_unit): Likewise.
2281 (create_dwo_cu_reader): Likewise.
2282 (create_dwo_unit_in_dwp_v1): Likewise.
2283 (create_dwo_unit_in_dwp_v2): Likewise.
2284 (lookup_dwo_unit_in_dwp): Likewise.
2285 (dwarf2_locate_dwo_sections): Likewise.
2286 (dwarf2_locate_common_dwp_sections): Likewise.
2287 (dwarf2_locate_v2_dwp_sections): Likewise.
2288 (hash_dwp_loaded_cutus): Likewise.
2289 (eq_dwp_loaded_cutus): Likewise.
2290 (lookup_dwo_cutu): Likewise.
2291 (abbrev_table_free_cleanup): Likewise.
2292 (dwarf2_free_abbrev_table): Likewise.
2293 (find_partial_die_in_comp_unit): Likewise.
2294 (free_line_header_voidp): Likewise.
2295 (follow_die_offset): Likewise.
2296 (follow_die_sig_1): Likewise.
2297 (free_heap_comp_unit): Likewise.
2298 (free_stack_comp_unit): Likewise.
2299 (dwarf2_free_objfile): Likewise.
2300 (per_cu_offset_and_type_hash): Likewise.
2301 (per_cu_offset_and_type_eq): Likewise.
2302 (get_die_type_at_offset): Likewise.
2303 (partial_die_hash): Likewise.
2304 (partial_die_eq): Likewise.
2305 (dwarf2_per_objfile_free): Likewise.
2306 (hash_strtab_entry): Likewise.
2307 (eq_strtab_entry): Likewise.
2308 (add_string): Likewise.
2309 (hash_symtab_entry): Likewise.
2310 (eq_symtab_entry): Likewise.
2311 (delete_symtab_entry): Likewise.
2312 (cleanup_mapped_symtab): Likewise.
2313 (add_indices_to_cpool): Likewise.
2314 (hash_psymtab_cu_index): Likewise.
2315 (eq_psymtab_cu_index): Likewise.
2316 (add_address_entry_worker): Likewise.
2317 (unlink_if_set): Likewise.
2318 (write_one_signatured_type): Likewise.
2319 (save_gdb_index_command): Likewise.
2320 * elfread.c (elf_symtab_read): Likewise.
2321 (elf_gnu_ifunc_cache_hash): Likewise.
2322 (elf_gnu_ifunc_cache_eq): Likewise.
2323 (elf_gnu_ifunc_record_cache): Likewise.
2324 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2325 (elf_get_probes): Likewise.
2326 (probe_key_free): Likewise.
2327 * f-lang.c (builtin_f_type): Likewise.
2328 * frame-base.c (frame_base_append_sniffer): Likewise.
2329 (frame_base_set_default): Likewise.
2330 (frame_base_find_by_frame): Likewise.
2331 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2332 (frame_unwind_append_unwinder): Likewise.
2333 (frame_unwind_find_by_frame): Likewise.
2334 * frame.c (frame_addr_hash): Likewise.
2335 (frame_addr_hash_eq): Likewise.
2336 (frame_stash_find): Likewise.
2337 (do_frame_register_read): Likewise.
2338 (unwind_to_current_frame): Likewise.
2339 (frame_cleanup_after_sniffer): Likewise.
2340 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2341 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2342 * ft32-tdep.c (ft32_frame_cache): Likewise.
2343 * gcore.c (do_bfd_delete_cleanup): Likewise.
2344 (gcore_create_callback): Likewise.
2345 * gdb_bfd.c (hash_bfd): Likewise.
2346 (eq_bfd): Likewise.
2347 (gdb_bfd_open): Likewise.
2348 (free_one_bfd_section): Likewise.
2349 (gdb_bfd_ref): Likewise.
2350 (gdb_bfd_unref): Likewise.
2351 (get_section_descriptor): Likewise.
2352 (gdb_bfd_map_section): Likewise.
2353 (gdb_bfd_crc): Likewise.
2354 (gdb_bfd_mark_parent): Likewise.
2355 (gdb_bfd_record_inclusion): Likewise.
2356 (gdb_bfd_requires_relocations): Likewise.
2357 (print_one_bfd): Likewise.
2358 * gdbtypes.c (type_pair_hash): Likewise.
2359 (type_pair_eq): Likewise.
2360 (builtin_type): Likewise.
2361 (objfile_type): Likewise.
2362 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2363 (vtable_address_point_offset): Likewise.
2364 (gnuv3_get_vtable): Likewise.
2365 (hash_value_and_voffset): Likewise.
2366 (eq_value_and_voffset): Likewise.
2367 (compare_value_and_voffset): Likewise.
2368 (compute_vtable_size): Likewise.
2369 (gnuv3_get_typeid_type): Likewise.
2370 * go-lang.c (builtin_go_type): Likewise.
2371 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2372 (bkscm_eq_block_smob): Likewise.
2373 (bkscm_objfile_block_map): Likewise.
2374 (bkscm_del_objfile_blocks): Likewise.
2375 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2376 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2377 (gdbscm_disasm_print_address): Likewise.
2378 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2379 (frscm_eq_frame_smob): Likewise.
2380 (frscm_inferior_frame_map): Likewise.
2381 (frscm_del_inferior_frames): Likewise.
2382 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2383 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2384 (ofscm_objfile_smob_from_objfile): Likewise.
2385 * guile/scm-ports.c (ioscm_write): Likewise.
2386 (ioscm_file_port_delete): Likewise.
2387 (ioscm_file_port_rewind): Likewise.
2388 (ioscm_file_port_put): Likewise.
2389 (ioscm_file_port_write): Likewise.
2390 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2391 (psscm_pspace_smob_from_pspace): Likewise.
2392 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2393 (scscm_recording_unwind_handler): Likewise.
2394 (gdbscm_with_catch): Likewise.
2395 (scscm_call_0_body): Likewise.
2396 (scscm_call_1_body): Likewise.
2397 (scscm_call_2_body): Likewise.
2398 (scscm_call_3_body): Likewise.
2399 (scscm_call_4_body): Likewise.
2400 (scscm_apply_1_body): Likewise.
2401 (scscm_eval_scheme_string): Likewise.
2402 (gdbscm_safe_eval_string): Likewise.
2403 (scscm_source_scheme_script): Likewise.
2404 (gdbscm_safe_source_script): Likewise.
2405 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2406 (gdbscm_call_scm_from_stringn): Likewise.
2407 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2408 (syscm_eq_symbol_smob): Likewise.
2409 (syscm_get_symbol_map): Likewise.
2410 (syscm_del_objfile_symbols): Likewise.
2411 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2412 (stscm_eq_symtab_smob): Likewise.
2413 (stscm_objfile_symtab_map): Likewise.
2414 (stscm_del_objfile_symtabs): Likewise.
2415 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2416 (tyscm_eq_type_smob): Likewise.
2417 (tyscm_type_map): Likewise.
2418 (tyscm_copy_type_recursive): Likewise.
2419 (save_objfile_types): Likewise.
2420 * guile/scm-utils.c (extract_arg): Likewise.
2421 * h8300-tdep.c (h8300_frame_cache): Likewise.
2422 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2423 * hppa-tdep.c (compare_unwind_entries): Likewise.
2424 (find_unwind_entry): Likewise.
2425 (hppa_frame_cache): Likewise.
2426 (hppa_stub_frame_unwind_cache): Likewise.
2427 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2428 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2429 (hppaobsd_supply_fpregset): Likewise.
2430 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2431 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2432 * i386-tdep.c (i386_frame_cache): Likewise.
2433 (i386_epilogue_frame_cache): Likewise.
2434 (i386_sigtramp_frame_cache): Likewise.
2435 (i386_supply_gregset): Likewise.
2436 (i386_collect_gregset): Likewise.
2437 (i386_gdbarch_init): Likewise.
2438 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2439 (i386obsd_trapframe_cache): Likewise.
2440 * i387-tdep.c (i387_supply_fsave): Likewise.
2441 (i387_collect_fsave): Likewise.
2442 (i387_supply_fxsave): Likewise.
2443 (i387_collect_fxsave): Likewise.
2444 (i387_supply_xsave): Likewise.
2445 (i387_collect_xsave): Likewise.
2446 * ia64-tdep.c (ia64_frame_cache): Likewise.
2447 (ia64_sigtramp_frame_cache): Likewise.
2448 * infcmd.c (attach_command_continuation): Likewise.
2449 (attach_command_continuation_free_args): Likewise.
2450 * inferior.c (restore_inferior): Likewise.
2451 (delete_thread_of_inferior): Likewise.
2452 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2453 (get_inflow_inferior_data): Likewise.
2454 (inflow_inferior_exit): Likewise.
2455 * infrun.c (displaced_step_clear_cleanup): Likewise.
2456 (restore_current_uiout_cleanup): Likewise.
2457 (release_stop_context_cleanup): Likewise.
2458 (do_restore_infcall_suspend_state_cleanup): Likewise.
2459 (do_restore_infcall_control_state_cleanup): Likewise.
2460 (restore_inferior_ptid): Likewise.
2461 * inline-frame.c (block_starting_point_at): Likewise.
2462 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2463 * jit.c (get_jit_objfile_data): Likewise.
2464 (get_jit_program_space_data): Likewise.
2465 (jit_object_close_impl): Likewise.
2466 (jit_find_objf_with_entry_addr): Likewise.
2467 (jit_breakpoint_deleted): Likewise.
2468 (jit_unwind_reg_set_impl): Likewise.
2469 (jit_unwind_reg_get_impl): Likewise.
2470 (jit_dealloc_cache): Likewise.
2471 (jit_frame_sniffer): Likewise.
2472 (jit_frame_prev_register): Likewise.
2473 (jit_prepend_unwinder): Likewise.
2474 (jit_inferior_exit_hook): Likewise.
2475 (free_objfile_data): Likewise.
2476 * jv-lang.c (jv_per_objfile_free): Likewise.
2477 (get_dynamics_objfile): Likewise.
2478 (get_java_class_symtab): Likewise.
2479 (builtin_java_type): Likewise.
2480 * language.c (language_string_char_type): Likewise.
2481 (language_bool_type): Likewise.
2482 (language_lookup_primitive_type): Likewise.
2483 (language_lookup_primitive_type_as_symbol): Likewise.
2484 * linespec.c (hash_address_entry): Likewise.
2485 (eq_address_entry): Likewise.
2486 (iterate_inline_only): Likewise.
2487 (iterate_name_matcher): Likewise.
2488 (decode_line_2_compare_items): Likewise.
2489 (collect_one_symbol): Likewise.
2490 (compare_symbols): Likewise.
2491 (compare_msymbols): Likewise.
2492 (add_symtabs_to_list): Likewise.
2493 (collect_symbols): Likewise.
2494 (compare_msyms): Likewise.
2495 (add_minsym): Likewise.
2496 (cleanup_linespec_result): Likewise.
2497 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2498 * linux-nat.c (delete_lwp_cleanup): Likewise.
2499 (count_events_callback): Likewise.
2500 (select_event_lwp_callback): Likewise.
2501 (resume_stopped_resumed_lwps): Likewise.
2502 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2503 (invalidate_linux_cache_inf): Likewise.
2504 (get_linux_inferior_data): Likewise.
2505 (linux_find_memory_regions_thunk): Likewise.
2506 (linux_make_mappings_callback): Likewise.
2507 (linux_corefile_thread_callback): Likewise.
2508 (find_mapping_size): Likewise.
2509 * linux-thread-db.c (find_new_threads_callback): Likewise.
2510 * lm32-tdep.c (lm32_frame_cache): Likewise.
2511 * m2-lang.c (builtin_m2_type): Likewise.
2512 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2513 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2514 (m32r_linux_supply_gregset): Likewise.
2515 (m32r_linux_collect_gregset): Likewise.
2516 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2517 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2518 * m68k-tdep.c (m68k_frame_cache): Likewise.
2519 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2520 (m68kbsd_supply_gregset): Likewise.
2521 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2522 * m88k-tdep.c (m88k_frame_cache): Likewise.
2523 (m88k_supply_gregset): Likewise.
2524
2525 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2526
2527 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2528 to allocation result assignment.
2529 * ada-exp.y (write_object_renaming): Likewise.
2530 (write_ambiguous_var): Likewise.
2531 (ada_nget_field_index): Likewise.
2532 (write_var_or_type): Likewise.
2533 * ada-lang.c (ada_decode_symbol): Likewise.
2534 (ada_value_assign): Likewise.
2535 (value_pointer): Likewise.
2536 (cache_symbol): Likewise.
2537 (add_nonlocal_symbols): Likewise.
2538 (ada_name_for_lookup): Likewise.
2539 (symbol_completion_add): Likewise.
2540 (ada_to_fixed_type_1): Likewise.
2541 (ada_get_next_arg): Likewise.
2542 (defns_collected): Likewise.
2543 * ada-lex.l (processId): Likewise.
2544 (processString): Likewise.
2545 * ada-tasks.c (read_known_tasks_array): Likewise.
2546 (read_known_tasks_list): Likewise.
2547 * ada-typeprint.c (decoded_type_name): Likewise.
2548 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2549 * amd64-tdep.c (amd64_push_arguments): Likewise.
2550 (amd64_displaced_step_copy_insn): Likewise.
2551 (amd64_classify_insn_at): Likewise.
2552 (amd64_relocate_instruction): Likewise.
2553 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2554 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2555 (initialize_current_architecture): Likewise.
2556 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2557 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2558 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2559 (arm_push_dummy_call): Likewise.
2560 (extend_buffer_earlier): Likewise.
2561 (arm_adjust_breakpoint_address): Likewise.
2562 (arm_skip_stub): Likewise.
2563 * auto-load.c (filename_is_in_pattern): Likewise.
2564 (maybe_add_script_file): Likewise.
2565 (maybe_add_script_text): Likewise.
2566 (auto_load_objfile_script_1): Likewise.
2567 * auxv.c (ld_so_xfer_auxv): Likewise.
2568 * ax-general.c (new_agent_expr): Likewise.
2569 (grow_expr): Likewise.
2570 (ax_reg_mask): Likewise.
2571 * bcache.c (bcache_full): Likewise.
2572 * breakpoint.c (program_breakpoint_here_p): Likewise.
2573 * btrace.c (parse_xml_raw): Likewise.
2574 * build-id.c (build_id_to_debug_bfd): Likewise.
2575 * buildsym.c (end_symtab_with_blockvector): Likewise.
2576 * c-exp.y (string_exp): Likewise.
2577 (qualified_name): Likewise.
2578 (write_destructor_name): Likewise.
2579 (operator_stoken): Likewise.
2580 (parse_number): Likewise.
2581 (scan_macro_expansion): Likewise.
2582 (yylex): Likewise.
2583 (c_print_token): Likewise.
2584 * c-lang.c (c_get_string): Likewise.
2585 (emit_numeric_character): Likewise.
2586 * charset.c (wchar_iterate): Likewise.
2587 * cli/cli-cmds.c (complete_command): Likewise.
2588 (make_command): Likewise.
2589 * cli/cli-dump.c (restore_section_callback): Likewise.
2590 (restore_binary_file): Likewise.
2591 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2592 * cli/cli-script.c (execute_control_command): Likewise.
2593 * cli/cli-setshow.c (do_set_command): Likewise.
2594 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2595 (read_pe_exported_syms): Likewise.
2596 * coffread.c (coff_read_struct_type): Likewise.
2597 (coff_read_enum_type): Likewise.
2598 * common/btrace-common.c (btrace_data_append): Likewise.
2599 * common/buffer.c (buffer_grow): Likewise.
2600 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2601 * common/format.c (parse_format_string): Likewise.
2602 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2603 * common/xml-utils.c (xml_escape_text): Likewise.
2604 * compile/compile-object-load.c (copy_sections): Likewise.
2605 (compile_object_load): Likewise.
2606 * compile/compile-object-run.c (compile_object_run): Likewise.
2607 * completer.c (filename_completer): Likewise.
2608 * corefile.c (read_memory_typed_address): Likewise.
2609 (write_memory_unsigned_integer): Likewise.
2610 (write_memory_signed_integer): Likewise.
2611 (complete_set_gnutarget): Likewise.
2612 * corelow.c (get_core_register_section): Likewise.
2613 * cp-name-parser.y (d_grab): Likewise.
2614 (allocate_info): Likewise.
2615 (cp_new_demangle_parse_info): Likewise.
2616 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2617 (cp_lookup_symbol_in_namespace): Likewise.
2618 (lookup_namespace_scope): Likewise.
2619 (find_symbol_in_baseclass): Likewise.
2620 (cp_lookup_nested_symbol): Likewise.
2621 (cp_lookup_transparent_type_loop): Likewise.
2622 * cp-support.c (copy_string_to_obstack): Likewise.
2623 (make_symbol_overload_list): Likewise.
2624 (make_symbol_overload_list_namespace): Likewise.
2625 (make_symbol_overload_list_adl_namespace): Likewise.
2626 (first_component_command): Likewise.
2627 * cp-valprint.c (cp_print_value): Likewise.
2628 * ctf.c (ctf_xfer_partial): Likewise.
2629 * d-exp.y (StringExp): Likewise.
2630 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2631 (lookup_module_scope): Likewise.
2632 (find_symbol_in_baseclass): Likewise.
2633 (d_lookup_nested_symbol): Likewise.
2634 * dbxread.c (find_stab_function_addr): Likewise.
2635 (read_dbx_symtab): Likewise.
2636 (dbx_end_psymtab): Likewise.
2637 (cp_set_block_scope): Likewise.
2638 * dcache.c (dcache_alloc): Likewise.
2639 * demangle.c (_initialize_demangler): Likewise.
2640 * dicos-tdep.c (dicos_load_module_p): Likewise.
2641 * dictionary.c (dict_create_hashed_expandable): Likewise.
2642 (dict_create_linear_expandable): Likewise.
2643 (expand_hashtable): Likewise.
2644 (add_symbol_linear_expandable): Likewise.
2645 * dwarf2-frame.c (add_cie): Likewise.
2646 (add_fde): Likewise.
2647 (dwarf2_build_frame_info): Likewise.
2648 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2649 (dwarf_expr_fetch_address): Likewise.
2650 (add_piece): Likewise.
2651 (execute_stack_op): Likewise.
2652 * dwarf2loc.c (chain_candidate): Likewise.
2653 (dwarf_entry_parameter_to_value): Likewise.
2654 (read_pieced_value): Likewise.
2655 (write_pieced_value): Likewise.
2656 * dwarf2read.c (dwarf2_read_section): Likewise.
2657 (add_type_unit): Likewise.
2658 (read_comp_units_from_section): Likewise.
2659 (fixup_go_packaging): Likewise.
2660 (dwarf2_compute_name): Likewise.
2661 (dwarf2_physname): Likewise.
2662 (create_dwo_unit_in_dwp_v1): Likewise.
2663 (create_dwo_unit_in_dwp_v2): Likewise.
2664 (read_func_scope): Likewise.
2665 (read_call_site_scope): Likewise.
2666 (dwarf2_attach_fields_to_type): Likewise.
2667 (process_structure_scope): Likewise.
2668 (mark_common_block_symbol_computed): Likewise.
2669 (read_common_block): Likewise.
2670 (abbrev_table_read_table): Likewise.
2671 (guess_partial_die_structure_name): Likewise.
2672 (fixup_partial_die): Likewise.
2673 (add_file_name): Likewise.
2674 (dwarf2_const_value_data): Likewise.
2675 (dwarf2_const_value_attr): Likewise.
2676 (build_error_marker_type): Likewise.
2677 (guess_full_die_structure_name): Likewise.
2678 (anonymous_struct_prefix): Likewise.
2679 (typename_concat): Likewise.
2680 (dwarf2_canonicalize_name): Likewise.
2681 (dwarf2_name): Likewise.
2682 (write_constant_as_bytes): Likewise.
2683 (dwarf2_fetch_constant_bytes): Likewise.
2684 (copy_string): Likewise.
2685 (parse_macro_definition): Likewise.
2686 * elfread.c (elf_symfile_segments): Likewise.
2687 (elf_rel_plt_read): Likewise.
2688 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2689 (elf_gnu_ifunc_resolve_by_got): Likewise.
2690 (elf_read_minimal_symbols): Likewise.
2691 (elf_gnu_ifunc_record_cache): Likewise.
2692 * event-top.c (top_level_prompt): Likewise.
2693 (command_line_handler): Likewise.
2694 * exec.c (resize_section_table): Likewise.
2695 * expprint.c (print_subexp_standard): Likewise.
2696 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2697 * findcmd.c (parse_find_args): Likewise.
2698 * findvar.c (address_from_register): Likewise.
2699 * frame.c (get_prev_frame_always): Likewise.
2700 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2701 (get_section_descriptor): Likewise.
2702 * gdb_obstack.c (obconcat): Likewise.
2703 (obstack_strdup): Likewise.
2704 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2705 (create_set_type): Likewise.
2706 (lookup_unsigned_typename): Likewise.
2707 (lookup_signed_typename): Likewise.
2708 (resolve_dynamic_union): Likewise.
2709 (resolve_dynamic_struct): Likewise.
2710 (add_dyn_prop): Likewise.
2711 (copy_dynamic_prop_list): Likewise.
2712 (arch_flags_type): Likewise.
2713 (append_composite_type_field_raw): Likewise.
2714 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2715 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2716 * go-exp.y (string_exp): Likewise.
2717 * go-lang.c (go_demangle): Likewise.
2718 * guile/guile.c (compute_scheme_string): Likewise.
2719 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2720 (gdbscm_canonicalize_command_name): Likewise.
2721 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2722 (ioscm_init_memory_port): Likewise.
2723 (ioscm_reinit_memory_port): Likewise.
2724 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2725 (gdbscm_gc_dup_argv): Likewise.
2726 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2727 * hppa-tdep.c (internalize_unwinds): Likewise.
2728 (read_unwind_info): Likewise.
2729 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2730 (windows_core_xfer_shared_libraries): Likewise.
2731 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2732 (i386_stap_parse_special_token_triplet): Likewise.
2733 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2734 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2735 * inf-child.c (inf_child_fileio_readlink): Likewise.
2736 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2737 (inf_ptrace_store_register): Likewise.
2738 * infrun.c (follow_exec): Likewise.
2739 (displaced_step_prepare_throw): Likewise.
2740 (save_stop_context): Likewise.
2741 (save_infcall_suspend_state): Likewise.
2742 * jit.c (jit_read_descriptor): Likewise.
2743 (jit_read_code_entry): Likewise.
2744 (jit_symtab_line_mapping_add_impl): Likewise.
2745 (finalize_symtab): Likewise.
2746 (jit_unwind_reg_get_impl): Likewise.
2747 * jv-exp.y (QualifiedName): Likewise.
2748 * jv-lang.c (get_java_utf8_name): Likewise.
2749 (type_from_class): Likewise.
2750 (java_demangle_type_signature): Likewise.
2751 (java_class_name_from_physname): Likewise.
2752 * jv-typeprint.c (java_type_print_base): Likewise.
2753 * jv-valprint.c (java_value_print): Likewise.
2754 * language.c (add_language): Likewise.
2755 * linespec.c (add_sal_to_sals_basic): Likewise.
2756 (add_sal_to_sals): Likewise.
2757 (decode_objc): Likewise.
2758 (find_linespec_symbols): Likewise.
2759 * linux-fork.c (fork_save_infrun_state): Likewise.
2760 * linux-nat.c (linux_nat_detach): Likewise.
2761 (linux_nat_fileio_readlink): Likewise.
2762 * linux-record.c (record_linux_sockaddr): Likewise.
2763 (record_linux_msghdr): Likewise.
2764 (Do): Likewise.
2765 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2766 (linux_collect_regset_section_cb): Likewise.
2767 (linux_get_siginfo_data): Likewise.
2768 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2769 (try_thread_db_load_from_dir): Likewise.
2770 (thread_db_load_search): Likewise.
2771 (info_auto_load_libthread_db): Likewise.
2772 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2773 (m32c_m16c_pointer_to_address): Likewise.
2774 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2775 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2776 * machoread.c (macho_check_dsym): Likewise.
2777 * macroexp.c (resize_buffer): Likewise.
2778 (gather_arguments): Likewise.
2779 (maybe_expand): Likewise.
2780 * macrotab.c (new_macro_key): Likewise.
2781 (new_source_file): Likewise.
2782 (new_macro_definition): Likewise.
2783 * mdebugread.c (parse_symbol): Likewise.
2784 (parse_type): Likewise.
2785 (parse_partial_symbols): Likewise.
2786 (psymtab_to_symtab_1): Likewise.
2787 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2788 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2789 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2790 (mi_cmd_data_read_memory_bytes): Likewise.
2791 (mi_cmd_data_write_memory_bytes): Likewise.
2792 (mi_cmd_trace_frame_collected): Likewise.
2793 * mi/mi-parse.c (mi_parse_argv): Likewise.
2794 (mi_parse): Likewise.
2795 * minidebug.c (lzma_open): Likewise.
2796 (lzma_pread): Likewise.
2797 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2798 (mips_print_fp_register): Likewise.
2799 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2800 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2801 * mt-tdep.c (mt_register_name): Likewise.
2802 (mt_registers_info): Likewise.
2803 (mt_push_dummy_call): Likewise.
2804 * namespace.c (add_using_directive): Likewise.
2805 * nat/linux-btrace.c (perf_event_read): Likewise.
2806 (linux_enable_bts): Likewise.
2807 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2808 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2809 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2810 (nto_parse_redirection): Likewise.
2811 * objc-lang.c (objc_demangle): Likewise.
2812 (find_methods): Likewise.
2813 * objfiles.c (get_objfile_bfd_data): Likewise.
2814 (set_objfile_main_name): Likewise.
2815 (allocate_objfile): Likewise.
2816 (objfile_relocate): Likewise.
2817 (update_section_map): Likewise.
2818 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2819 * p-exp.y (exp): Likewise.
2820 (yylex): Likewise.
2821 * p-valprint.c (pascal_object_print_value): Likewise.
2822 * parse.c (initialize_expout): Likewise.
2823 (mark_completion_tag): Likewise.
2824 (copy_name): Likewise.
2825 (parse_float): Likewise.
2826 (type_stack_reserve): Likewise.
2827 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2828 (ppu2spu_prev_register): Likewise.
2829 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2830 * printcmd.c (printf_wide_c_string): Likewise.
2831 (printf_pointer): Likewise.
2832 * probe.c (parse_probes): Likewise.
2833 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2834 (cmdpy_init): Likewise.
2835 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2836 * python/py-symtab.c (set_sal): Likewise.
2837 * python/py-unwind.c (pyuw_sniffer): Likewise.
2838 * python/python.c (python_interactive_command): Likewise.
2839 (compute_python_string): Likewise.
2840 * ravenscar-thread.c (get_running_thread_id): Likewise.
2841 * record-full.c (record_full_exec_insn): Likewise.
2842 (record_full_core_open_1): Likewise.
2843 * regcache.c (regcache_raw_read_signed): Likewise.
2844 (regcache_raw_read_unsigned): Likewise.
2845 (regcache_cooked_read_signed): Likewise.
2846 (regcache_cooked_read_unsigned): Likewise.
2847 * remote-fileio.c (remote_fileio_func_open): Likewise.
2848 (remote_fileio_func_rename): Likewise.
2849 (remote_fileio_func_unlink): Likewise.
2850 (remote_fileio_func_stat): Likewise.
2851 (remote_fileio_func_system): Likewise.
2852 * remote-mips.c (mips_xfer_memory): Likewise.
2853 (mips_load_srec): Likewise.
2854 (pmon_end_download): Likewise.
2855 * remote.c (new_remote_state): Likewise.
2856 (map_regcache_remote_table): Likewise.
2857 (remote_register_number_and_offset): Likewise.
2858 (init_remote_state): Likewise.
2859 (get_memory_packet_size): Likewise.
2860 (remote_pass_signals): Likewise.
2861 (remote_program_signals): Likewise.
2862 (remote_start_remote): Likewise.
2863 (remote_check_symbols): Likewise.
2864 (remote_query_supported): Likewise.
2865 (extended_remote_attach): Likewise.
2866 (process_g_packet): Likewise.
2867 (store_registers_using_G): Likewise.
2868 (putpkt_binary): Likewise.
2869 (read_frame): Likewise.
2870 (compare_sections_command): Likewise.
2871 (remote_hostio_pread): Likewise.
2872 (remote_hostio_readlink): Likewise.
2873 (remote_file_put): Likewise.
2874 (remote_file_get): Likewise.
2875 (remote_pid_to_exec_file): Likewise.
2876 (_initialize_remote): Likewise.
2877 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2878 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2879 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2880 (bfd_uses_spe_extensions): Likewise.
2881 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2882 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2883 * solib-dsbt.c (decode_loadmap): Likewise.
2884 (fetch_loadmap): Likewise.
2885 (scan_dyntag): Likewise.
2886 (enable_break): Likewise.
2887 (dsbt_relocate_main_executable): Likewise.
2888 * solib-frv.c (fetch_loadmap): Likewise.
2889 (enable_break2): Likewise.
2890 (frv_relocate_main_executable): Likewise.
2891 * solib-spu.c (spu_relocate_main_executable): Likewise.
2892 (spu_bfd_open): Likewise.
2893 * solib-svr4.c (lm_info_read): Likewise.
2894 (read_program_header): Likewise.
2895 (find_program_interpreter): Likewise.
2896 (scan_dyntag): Likewise.
2897 (elf_locate_base): Likewise.
2898 (open_symbol_file_object): Likewise.
2899 (read_program_headers_from_bfd): Likewise.
2900 (svr4_relocate_main_executable): Likewise.
2901 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2902 * solib.c (solib_find_1): Likewise.
2903 (exec_file_find): Likewise.
2904 (solib_find): Likewise.
2905 * source.c (openp): Likewise.
2906 (print_source_lines_base): Likewise.
2907 (forward_search_command): Likewise.
2908 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2909 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2910 (spu_get_overlay_table): Likewise.
2911 * stabsread.c (patch_block_stabs): Likewise.
2912 (define_symbol): Likewise.
2913 (again:): Likewise.
2914 (read_member_functions): Likewise.
2915 (read_one_struct_field): Likewise.
2916 (read_enum_type): Likewise.
2917 (common_block_start): Likewise.
2918 * stack.c (read_frame_arg): Likewise.
2919 (backtrace_command): Likewise.
2920 * stap-probe.c (stap_parse_register_operand): Likewise.
2921 * symfile.c (syms_from_objfile_1): Likewise.
2922 (find_separate_debug_file): Likewise.
2923 (load_command): Likewise.
2924 (load_progress): Likewise.
2925 (load_section_callback): Likewise.
2926 (reread_symbols): Likewise.
2927 (add_filename_language): Likewise.
2928 (allocate_compunit_symtab): Likewise.
2929 (read_target_long_array): Likewise.
2930 (simple_read_overlay_table): Likewise.
2931 * symtab.c (symbol_set_names): Likewise.
2932 (resize_symbol_cache): Likewise.
2933 (rbreak_command): Likewise.
2934 (completion_list_add_name): Likewise.
2935 (completion_list_objc_symbol): Likewise.
2936 (add_filename_to_list): Likewise.
2937 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2938 * target-memory.c (target_write_memory_blocks): Likewise.
2939 * target.c (target_read_string): Likewise.
2940 (read_whatever_is_readable): Likewise.
2941 (target_read_alloc_1): Likewise.
2942 (simple_search_memory): Likewise.
2943 (target_fileio_read_alloc_1): Likewise.
2944 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2945 * top.c (command_line_input): Likewise.
2946 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2947 * tracefile.c (tracefile_fetch_registers): Likewise.
2948 * tracepoint.c (add_memrange): Likewise.
2949 (init_collection_list): Likewise.
2950 (add_aexpr): Likewise.
2951 (trace_dump_actions): Likewise.
2952 (parse_trace_status): Likewise.
2953 (parse_tracepoint_definition): Likewise.
2954 (parse_tsv_definition): Likewise.
2955 (parse_static_tracepoint_marker_definition): Likewise.
2956 * tui/tui-file.c (tui_sfileopen): Likewise.
2957 (tui_file_adjust_strbuf): Likewise.
2958 * tui/tui-io.c (tui_expand_tabs): Likewise.
2959 * tui/tui-source.c (tui_set_source_content): Likewise.
2960 * typeprint.c (find_global_typedef): Likewise.
2961 * ui-file.c (do_ui_file_xstrdup): Likewise.
2962 (ui_file_obsavestring): Likewise.
2963 (mem_file_write): Likewise.
2964 * utils.c (make_hex_string): Likewise.
2965 (get_regcomp_error): Likewise.
2966 (puts_filtered_tabular): Likewise.
2967 (gdb_realpath_keepfile): Likewise.
2968 (ldirname): Likewise.
2969 (gdb_bfd_errmsg): Likewise.
2970 (substitute_path_component): Likewise.
2971 * valops.c (search_struct_method): Likewise.
2972 (find_oload_champ_namespace_loop): Likewise.
2973 * valprint.c (print_decimal_chars): Likewise.
2974 (read_string): Likewise.
2975 (generic_emit_char): Likewise.
2976 * varobj.c (varobj_delete): Likewise.
2977 (varobj_value_get_print_value): Likewise.
2978 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2979 * windows-tdep.c (display_one_tib): Likewise.
2980 * xcoffread.c (read_xcoff_symtab): Likewise.
2981 (process_xcoff_symbol): Likewise.
2982 (swap_sym): Likewise.
2983 (scan_xcoff_symtab): Likewise.
2984 (xcoff_initial_scan): Likewise.
2985 * xml-support.c (gdb_xml_end_element): Likewise.
2986 (xml_process_xincludes): Likewise.
2987 (xml_fetch_content_from_file): Likewise.
2988 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2989 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2990
2991 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2992
2993 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2994 instead of builtin_func_ptr.
2995 (ft32_pointer_to_address): New function.
2996 (ft32_address_class_type_flags): New function.
2997 (ft32_address_class_type_flags_to_name): New function.
2998 (ft32_address_class_name_to_type_flags): New function.
2999 (ft32_gdbarch_init): Set tdep->pc_type. Call
3000 set_gdbarch_pointer_to_address,
3001 set_gdbarch_address_class_type_flags
3002 set_gdbarch_address_class_name_to_type_flags,
3003 and set_gdbarch_address_class_type_flags_to_name.
3004 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3005
3006 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
3007
3008 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3009 value is a reference, actually dereference it in order to get
3010 the underlying value.
3011
3012 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
3013
3014 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3015
3016 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3017
3018 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3019 * linespec.c (linespec_lexer_lex_string): Same.
3020
3021 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3022
3023 * NEWS: Mention support for fast tracepoints on aarch64-linux.
3024
3025 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3026
3027 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3028 variable. Call aarch64_decode_adr instead of
3029 aarch64_decode_adrp.
3030 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3031 (aarch64_decode_adr): New function declaration.
3032 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3033 (aarch64_decode_adr): New function, factored out from
3034 aarch64_decode_adrp to decode both adr and adrp instructions.
3035
3036 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3037
3038 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3039 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3040 (aarch64-insn.o): New rule.
3041 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3042 (aarch64*-*-linux*): Likewise.
3043 * arch/aarch64-insn.c: New file.
3044 * arch/aarch64-insn.h: New file.
3045 * aarch64-tdep.c: Include arch/aarch64-insn.h.
3046 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
3047 arch/aarch64-insn.h.
3048 (decode_add_sub_imm): Rename to ...
3049 (aarch64_decode_add_sub_imm): ... this.
3050 (decode_adrp): Rename to ...
3051 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
3052 Declare in arch/aarch64-insn.h.
3053 (decode_b): Rename to ...
3054 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
3055 Declare in arch/aarch64-insn.h.
3056 (decode_bcond): Rename to ...
3057 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
3058 Declare in arch/aarch64-insn.h.
3059 (decode_br): Rename to ...
3060 (aarch64_decode_br): ... this.
3061 (decode_cb): Rename to ...
3062 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
3063 Declare in arch/aarch64-insn.h.
3064 (decode_eret): Rename to ...
3065 (aarch64_decode_eret): ... this.
3066 (decode_movz): Rename to ...
3067 (aarch64_decode_movz): ... this.
3068 (decode_orr_shifted_register_x): Rename to ...
3069 (aarch64_decode_orr_shifted_register_x): ... this.
3070 (decode_ret): Rename to ...
3071 (aarch64_decode_ret): ... this.
3072 (decode_stp_offset): Rename to ...
3073 (aarch64_decode_stp_offset): ... this.
3074 (decode_stp_offset_wb): Rename to ...
3075 (aarch64_decode_stp_offset_wb): ... this.
3076 (decode_stur): Rename to ...
3077 (aarch64_decode_stur): ... this.
3078 (decode_tb): Rename to ...
3079 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3080 Declare in arch/aarch64-insn.h.
3081 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3082
3083 2015-09-20 Doug Evans <xdje42@gmail.com>
3084
3085 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3086
3087 2015-09-20 Doug Evans <xdje42@gmail.com>
3088
3089 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3090 variable name that collides with a parameter.
3091
3092 2015-09-20 Joel Brobecker <brobecker@adacore.com>
3093
3094 * dwarf2loc.c (locexpr_get_frame_base): Renames
3095 block_op_get_frame_base.
3096 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3097 block_op_get_frame_base by reference to locexpr_get_frame_base.
3098 (loclist_get_frame_base): New function, near identical copy of
3099 locexpr_get_frame_base.
3100 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3101 block_op_get_frame_base by reference to loclist_get_frame_base.
3102
3103 2015-09-19 Doug Evans <xdje42@gmail.com>
3104
3105 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3106 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3107
3108 2015-09-18 Doug Evans <xdje42@gmail.com>
3109
3110 * linux-thread-db.c (record_thread): Return the created thread.
3111 (thread_from_lwp): Likewise.
3112 (thread_db_get_thread_local_address): Update.
3113
3114 2015-09-18 Doug Evans <xdje42@gmail.com>
3115
3116 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3117 move only member demangled_name up. All uses updated.
3118
3119 2015-09-18 Doug Evans <xdje42@gmail.com>
3120
3121 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3122 kind of minimal symbol in the error message.
3123 * objfiles.c (objfile_flavour_name): New function.
3124 * objfiles.h (objfile_flavour_name): Declare.
3125
3126 2015-09-18 Yao Qi <yao.qi@linaro.org>
3127
3128 * nat/aarch64-linux.c: Include elf/common.h,
3129 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3130 (aarch64_ps_get_thread_area): New function.
3131 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3132 (aarch64_ps_get_thread_area): Declare.
3133 * aarch64-linux-nat.c (ps_get_thread_area): Call
3134 aarch64_ps_get_thread_area.
3135
3136 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3137
3138 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3139
3140 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3141
3142 * NEWS: Announce new scheduler-locking mode.
3143 * infrun.c (schedlock_replay): New.
3144 (scheduler_enums): Add schedlock_replay.
3145 (scheduler_mode): Change default to schedlock_replay.
3146 (user_visible_resume_ptid): Handle schedlock_replay.
3147 (clear_proceed_status_thread): Stop replaying if resumed thread is
3148 not replaying.
3149 (schedlock_applies): Handle schedlock_replay.
3150 (_initialize_infrun): Document new scheduler-locking mode.
3151 * record-btrace.c (record_btrace_resume): Remove code to stop other
3152 threads when not replaying the resumed thread.
3153
3154 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3155
3156 * record-btrace.c ((record_btrace_will_replay): New.
3157 (init_record_btrace_ops): Initialize to_record_will_replay.
3158 * record-full.c ((record_full_will_replay): New.
3159 (init_record_full_ops): Initialize to_record_will_replay.
3160 * target-delegates.c: Regenerated.
3161 * target.c (target_record_will_replay): New.
3162 * target.h (struct target_ops) <to_record_will_replay>: New.
3163 (target_record_will_replay): New.
3164
3165 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3166
3167 * record-btrace.c (record_btrace_resume): Call
3168 target_record_stop_replaying.
3169 (record_btrace_stop_replaying_all): New.
3170 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3171 * record-full.c (record_full_stop_replaying): New.
3172 (init_record_full_ops ): Initialize to_record_stop_replaying.
3173 * target-delegates.c: Regenerated.
3174 * target.c (target_record_stop_replaying): New.
3175 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3176 (target_record_stop_replaying): New.
3177
3178 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3179
3180 * record-btrace.c (record_btrace_xfer_partial)
3181 (record_btrace_store_registers, record_btrace_prepare_to_store):
3182 Call record_btrace_is_replaying with inferior_ptid instead of
3183 minus_one_ptid.
3184 (record_btrace_store_registers): Change error message.
3185
3186 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3187
3188 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3189 Update users to pass minus_one_ptid.
3190 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3191 * record.c (cmd_record_delete): Pass inferior_ptid to
3192 target_record_is_replaying.
3193 * target-delegates.c: Regenerated.
3194 * target.c (target_record_is_replaying): Add ptid argument.
3195 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3196 argument.
3197 (target_record_is_replaying): Add ptid argument.
3198
3199 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3200
3201 * record-btrace.c (record_btrace_open): Remove non_stop check.
3202 * NEWS: Announce that record btrace supports non-stop mode.
3203
3204 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3205
3206 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3207 in the TARKET_WAITKIND_NO_HISTORY case.
3208
3209 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3210
3211 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3212 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3213
3214 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3215
3216 * record-btrace.c (get_thread_current_frame): New.
3217 (record_btrace_start_replaying): Call get_thread_current_frame.
3218
3219 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3220
3221 * record-btrace.c (record_btrace_resume_thread): A move request
3222 overwrites a previous move request.
3223 (record_btrace_find_resume_thread): Removed.
3224 (record_btrace_resume): Resume all requested threads.
3225
3226 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3227
3228 * record-btrace.c: Include vec.h.
3229 (record_btrace_find_thread_to_move): Removed.
3230 (btrace_step_no_resumed, btrace_step_again)
3231 (record_btrace_stop_replaying_at_end): New.
3232 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3233 (record_btrace_single_step_forward): Remove calls to
3234 record_btrace_stop_replaying.
3235 (record_btrace_step_thread): Do only one step for BTHR_CONT and
3236 BTHR_RCONT. Keep threads at the end of their history moving.
3237 (record_btrace_wait): Call record_btrace_step_thread for all threads
3238 until one reports an event. Call record_btrace_stop_replaying_at_end
3239 for the eventing thread.
3240
3241 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3242
3243 * record-btrace.c (record_btrace_single_step_forward): Return
3244 NO_HISTORY if a step brings us to the end of the execution history.
3245
3246 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3247
3248 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
3249 to ...
3250 (record_btrace_single_step_forward): ... here and
3251 (record_btrace_single_step_backward): ... here.
3252
3253 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3254
3255 * record-btrace.c (btrace_step_spurious)
3256 (record_btrace_single_step_forward)
3257 (record_btrace_single_step_backward): New.
3258 (record_btrace_step_thread): Call record_btrace_single_step_forward
3259 and record_btrace_single_step_backward.
3260
3261 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3262
3263 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3264 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3265
3266 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3267
3268 * record-btrace.c (btrace_thread_flag_to_str)
3269 (record_btrace_cancel_resume): New.
3270 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3271 (record_btrace_resume): Print execution direction.
3272 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3273 (record_btrace_wait): Call record_btrace_cancel_resume.
3274
3275 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3276
3277 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3278 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3279 (record_btrace_find_thread_to_move): Also accept threads that have
3280 BTHR_STOP set.
3281 (btrace_step_stopped_on_request, record_btrace_stop): New.
3282 (record_btrace_step_thread): Support BTHR_STOP.
3283 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3284 (init_record_btrace_ops): Initialize to_stop.
3285
3286 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3287
3288 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3289 target_is_non_stop_p ().
3290
3291 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3292
3293 * ada-typeprint.c (print_array_type): Do not describe arrays as
3294 packed when they embed dynamic elements.
3295
3296 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3297
3298 * symtab.h (address_class): Document that TLS variables
3299 are handled by LOC_UNRESOLVED.
3300 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3301 * printcmd.c (address_info): Don't relocate TLS variables.
3302
3303 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3304
3305 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3306 (decode_adrp): Likewise.
3307 (decode_b): Likewise.
3308 (decode_bcond): Likewise.
3309 (decode_br): Likewise.
3310 (decode_cb): Likewise.
3311 (decode_eret): Likewise.
3312 (decode_movz): Likewise.
3313 (decode_orr_shifted_register_x): Likewise.
3314 (decode_ret): Likewise.
3315 (decode_stp_offset): Likewise.
3316 (decode_stp_offset_wb): Likewise.
3317 (decode_stur): Likewise.
3318 (decode_tb): Likewise.
3319 (aarch64_analyze_prologue): Likewise.
3320 (pass_in_x): Likewise.
3321 (pass_in_v): Likewise.
3322 (pass_on_stack): Likewise.
3323 (aarch64_push_dummy_call): Likewise.
3324 (aarch64_extract_return_value): Likewise.
3325 (aarch64_store_return_value): Likewise.
3326 (aarch64_return_value): Likewise.
3327 (aarch64_record_asimd_load_store): Likewise.
3328 (aarch64_record_load_store): Likewise.
3329 (aarch64_record_data_proc_simd_fp): Likewise.
3330
3331 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3332
3333 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3334 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3335 (ppc64_skip_trampoline_code_1): ... here.
3336 (ppc64_skip_trampoline_code): New wrapper function.
3337 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3338
3339 2015-09-15 Yao Qi <yao.qi@linaro.org>
3340
3341 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3342 function.
3343 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3344 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3345 if target_can_do_single_step returns 1.
3346 * remote.c (struct vCont_action_support) <s, S>: New fields.
3347 (PACKET_vContSupported): New enum.
3348 (remote_protocol_features): New element for vContSupported.
3349 (remote_query_supported): Append "vContSupported+".
3350 (remote_vcont_probe): Remove support_s and support_S, use
3351 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3352 vCont packet if c and C actions are not supported.
3353 (remote_can_do_single_step): New function.
3354 (init_remote_ops): Install it to to_can_do_single_step.
3355 (_initialize_remote): Call add_packet_config_cmd.
3356 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3357 (target_can_do_single_step): New macro.
3358 * target-delegates.c: Re-generated.
3359
3360 2015-09-15 Yao Qi <yao.qi@linaro.org>
3361
3362 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3363 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3364 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3365 New function.
3366 (aarch64_siginfo_from_compat_siginfo): New function.
3367 * nat/aarch64-linux.h: Include signal.h.
3368 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3369 (compat_timer_t, compat_clock_t): Likewise.
3370 (struct compat_timeval): New.
3371 (union compat_sigval): New.
3372 (struct compat_siginfo): New.
3373 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3374 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3375 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3376 (cpt_si_band, cpt_si_fd): Likewise.
3377
3378 2015-09-14 Pedro Alves <palves@redhat.com>
3379
3380 * infrun.c (current_stop_id): New global.
3381 (get_stop_id, new_stop_id): New functions.
3382 (fetch_inferior_event): Handle normal_stop proceeding the target.
3383 (struct stop_context): New.
3384 (save_stop_context, release_stop_context_cleanup)
3385 (stop_context_changed): New functions.
3386 (normal_stop): Return true if the hook-stop changes the stop
3387 context.
3388 * infrun.h (get_stop_id): Declare.
3389 (normal_stop): Now returns int. Add documentation.
3390
3391 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3392
3393 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3394 comment. Handle packed arrays.
3395
3396 2015-09-14 Pedro Alves <palves@redhat.com>
3397
3398 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3399 mention of maint set/show target-non-stop.
3400
3401 2015-09-11 Don Breazeal <donb@codesourcery.com>
3402
3403 * NEWS: Announce new remote packets for the exec-events
3404 feature and the exec-events feature and associated commands.
3405
3406 2015-09-11 Don Breazeal <donb@codesourcery.com>
3407
3408 * remote.c (remote_exec_event_p): New function.
3409 (remote_insert_exec_catchpoint): New function.
3410 (remote_remove_exec_catchpoint): New function.
3411 (init_extended_remote_ops): Initialize extended_remote_ops
3412 members to_insert_exec_catchpoint and
3413 to_remove_exec_catchpoint.
3414
3415 2015-09-11 Don Breazeal <donb@codesourcery.com>
3416 Luis Machado <lgustavo@codesourcery.com>
3417
3418 * infrun.c (follow_exec): Use process-style ptid for
3419 exec message. Call add_inferior_with_spaces and
3420 target_follow_exec.
3421 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3422 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3423 * remote.c (remote_pspace_data): New static variable.
3424 (remote_pspace_data_cleanup): New function.
3425 (get_remote_exec_file): New function.
3426 (set_remote_exec_file_1): New function.
3427 (set_remote_exec_file): New function.
3428 (show_remote_exec_file): New function.
3429 (remote_exec_file): Delete static variable.
3430 (anonymous enum) <PACKET_exec_event_feature>: New
3431 enumeration constant.
3432 (remote_protocol_features): Add entry for exec-events feature.
3433 (remote_query_supported): Add client side of qSupported query
3434 for exec-events feature.
3435 (remote_follow_exec): New function.
3436 (remote_parse_stop_reply): Handle 'exec' stop reason.
3437 (extended_remote_run, extended_remote_create_inferior): Call
3438 get_remote_exec_file and set_remote_exec_file_1.
3439 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3440 member.
3441 (_initialize_remote): Call
3442 register_program_space_data_with_cleanup. Call
3443 add_packet_config_cmd for remote exec-events feature.
3444 Modify call to add_setshow_string_noescape_cmd for exec-file
3445 to use new functions set_remote_exec_file and
3446 show_remote_exec_file.
3447 * target-debug.h, target-delegates.c: Regenerated.
3448 * target.c (target_follow_exec): New function.
3449 * target.h (struct target_ops) <to_follow_exec>: New member.
3450 (target_follow_exec): Declare new function.
3451
3452 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3453
3454 * aarch64-tdep.c (decode_cb): Move up comment describing the
3455 encoding.
3456 (decode_tb): Fix a typo in comment above the function. Move up
3457 comment describing the encoding.
3458
3459 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3460
3461 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3462
3463 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3464
3465 PR gdb/18947
3466 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3467 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3468
3469 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3470
3471 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3472 operations.
3473
3474 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3475
3476 * ada-lang.c (ada_search_struct_field): Constify parameters
3477 and/or variables..
3478 (xget_renaming_scope): Likewise.
3479 (ada_is_redundant_range_encoding): Likewise.
3480 (scan_discrim_bound): Likewise.
3481 (to_fixed_range_type): Likewise.
3482
3483 2015-09-10 Yao Qi <yao.qi@linaro.org>
3484
3485 * breakpoint.c (download_tracepoint_locations): New local
3486 can_download_tracepoint. Check the result of
3487 target_can_download_tracepoint and save it in
3488 can_download_tracepoint if there are tracepoints to download.
3489 * linux-nat.h (enum tribool): Move it to ...
3490 * common/common-types.h: ... here.
3491
3492 2015-09-09 Pedro Alves <palves@redhat.com>
3493
3494 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3495 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3496
3497 2015-09-09 Pedro Alves <palves@redhat.com>
3498
3499 * continuations.c (add_continuation, restore_thread_cleanup)
3500 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3501 (do_all_continuations_thread, do_all_continuations)
3502 (discard_all_continuations_thread_callback)
3503 (discard_all_continuations_thread, discard_all_continuations)
3504 (add_intermediate_continuation)
3505 (do_all_intermediate_continuations_thread_callback)
3506 (do_all_intermediate_continuations_thread)
3507 (do_all_intermediate_continuations)
3508 (discard_all_intermediate_continuations_thread_callback)
3509 (discard_all_intermediate_continuations_thread)
3510 (discard_all_intermediate_continuations): Delete.
3511 * continuations.h (add_continuation, do_all_continuations)
3512 (do_all_continuations_thread, discard_all_continuations)
3513 (discard_all_continuations_thread, add_intermediate_continuation)
3514 (do_all_intermediate_continuations)
3515 (do_all_intermediate_continuations_thread)
3516 (discard_all_intermediate_continuations)
3517 (discard_all_intermediate_continuations_thread): Delete
3518 declarations.
3519 * event-top.c (stdin_event_handler): Delete references to
3520 continuations.
3521 * gdbthread.h (struct thread_info): Delete continuations and
3522 intermediate_continuations fields.
3523 * inf-loop.c (inferior_event_handler): Remove references to
3524 continuations.
3525 * infrun.c (infrun_thread_stop_requested_callback): Remove
3526 references to continuations.
3527 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3528 * thread.c: Don't include "continuations.h".
3529 (clear_thread_inferior_resources): Remove references to
3530 continuations.
3531
3532 2015-09-09 Pedro Alves <palves@redhat.com>
3533
3534 * infcall.c (struct dummy_frame_context_saver): Delete.
3535 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3536 (dummy_frame_context_saver_drop)
3537 (dummy_frame_context_saver_cleanup)
3538 (dummy_frame_context_saver_get_regs)
3539 (dummy_frame_context_saver_setup): Delete.
3540 * infcall.h (dummy_frame_context_saver_drop)
3541 (dummy_frame_context_saver_cleanup)
3542 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3543 Delete.
3544 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3545 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3546 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3547
3548 2015-09-09 Pedro Alves <palves@redhat.com>
3549
3550 * breakpoint.c: Include "thread-fsm.h".
3551 (struct until_break_command_continuation_args): Delete.
3552 (struct until_break_fsm): New.
3553 (until_break_fsm_ops): New global.
3554 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3555 (until_break_command_continuation): Delete.
3556 (until_break_fsm_clean_up): New function.
3557 (until_break_fsm_async_reply_reason): New function.
3558 (until_break_command): Adjust to create an until_break_fsm instead
3559 of a continuation.
3560 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3561 here.
3562 * infcmd.c (struct until_next_fsm): New.
3563 (until_next_fsm_ops): New global.
3564 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3565 (until_next_continuation): Delete.
3566 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3567 functions.
3568 (until_next_command): Adjust to create a new until_next_fsm
3569 instead of a continuation.
3570
3571 2015-09-09 Pedro Alves <palves@redhat.com>
3572
3573 * infcall.c: Include thread_fsm.h.
3574 (struct call_return_meta_info): New.
3575 (get_call_return_value): New function, factored out from
3576 call_function_by_hand_dummy.
3577 (struct call_thread_fsm): New.
3578 (call_thread_fsm_ops): New global.
3579 (new_call_thread_fsm, call_thread_fsm_should_stop)
3580 (call_thread_fsm_should_notify_stop): New functions.
3581 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3582 the thread.
3583 (call_function_by_hand_dummy): Create a new call_thread_fsm
3584 instance, associate it with the thread, and wait for the FSM to
3585 finish. If finished successfully, fetch the function's result
3586 value out of the FSM.
3587 * infrun.c (fetch_inferior_event): If the FSM says the stop
3588 shouldn't be notified, don't call normal_stop.
3589 (maybe_remove_breakpoints): New function, factored out from ...
3590 (normal_stop): ... here. Simplify.
3591 * infrun.h (maybe_remove_breakpoints): Declare.
3592 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3593 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3594 (thread_fsm_should_notify_stop): Declare.
3595
3596 2015-09-09 Pedro Alves <palves@redhat.com>
3597
3598 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3599 * breakpoint.c (handle_jit_event): Print debug output.
3600 (bpstat_what): Split event callback handling to ...
3601 (bpstat_run_callbacks): ... this new function.
3602 (momentary_bkpt_print_it): No longer handle bp_finish here.
3603 * breakpoint.h (bpstat_run_callbacks): Declare.
3604 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3605 <thread_fsm>: New field.
3606 (thread_cancel_execution_command): Declare.
3607 * infcmd.c: Include thread-fsm.h.
3608 (struct step_command_fsm): New.
3609 (step_command_fsm_ops): New global.
3610 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3611 (step_1): Adjust to use step_command_fsm_prepare and
3612 prepare_one_step.
3613 (struct step_1_continuation_args): Delete.
3614 (step_1_continuation): Delete.
3615 (step_command_fsm_should_stop): New function.
3616 (step_once): Delete.
3617 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3618 (prepare_one_step): New function, based on step_once.
3619 (until_next_command): Remove step_multi reference.
3620 (struct return_value_info): New.
3621 (print_return_value): Rename to ...
3622 (print_return_value_1): ... this. New struct return_value_info
3623 parameter. Adjust.
3624 (print_return_value): Reimplement as wrapper around
3625 print_return_value_1.
3626 (struct finish_command_fsm): New.
3627 (finish_command_continuation): Delete.
3628 (finish_command_fsm_ops): New global.
3629 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3630 functions.
3631 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3632 New.
3633 (finish_command_continuation_free_arg): Delete.
3634 (finish_command_fsm_async_reply_reason): New.
3635 (finish_backward, finish_forward): Change symbol parameter to a
3636 finish_command_fsm. Adjust.
3637 (finish_command): Create a finish_command_fsm. Adjust.
3638 * infrun.c: Include "thread-fsm.h".
3639 (clear_proceed_status_thread): Delete the thread's FSM.
3640 (infrun_thread_stop_requested_callback): Cancel the thread's
3641 execution command.
3642 (clean_up_just_stopped_threads_fsms): New function.
3643 (fetch_inferior_event): Handle the event_thread's should_stop
3644 method saying the command isn't done yet.
3645 (process_event_stop_test): Run breakpoint callbacks here.
3646 (print_stop_event): Rename to ...
3647 (print_stop_location): ... this.
3648 (restore_current_uiout_cleanup): New function.
3649 (print_stop_event): Reimplement.
3650 (normal_stop): No longer notify the end_stepping_range observers
3651 here handle "step N" nor "finish" here. No longer call
3652 print_stop_event here.
3653 * infrun.h (struct return_value_info): Forward declare.
3654 (print_return_value): Declare.
3655 (print_stop_event): Change prototype.
3656 * thread-fsm.c: New file.
3657 * thread-fsm.h: New file.
3658 * thread.c: Include "thread-fsm.h".
3659 (thread_cancel_execution_command): New function.
3660 (clear_thread_inferior_resources): Call it.
3661 * cli/cli-interp.c (cli_on_normal_stop): New function.
3662 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3663 observer.
3664 * mi/mi-interp.c: Include "thread-fsm.h".
3665 (restore_current_uiout_cleanup): Delete.
3666 (mi_on_normal_stop): If the thread has an FSM associated, and it
3667 finished, ask it for the async-reply-reason to print. Always call
3668 print_stop_event here, regardless of the top-level interpreter.
3669 Check bpstat_what to tell whether an asynchronous breakpoint hit
3670 triggered.
3671 * tui/tui-interp.c (tui_on_normal_stop): New function.
3672 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3673
3674 2015-09-09 Pedro Alves <palves@redhat.com>
3675
3676 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3677 check whether the target can async.
3678 * inf-loop.c (inferior_event_handler): Only call target_async if
3679 the target can async.
3680 * infcall.c: Include top.h and interps.h.
3681 (run_inferior_call): For the interpreter to sync mode while
3682 running the infcall. Call wait_sync_command_done instead of
3683 wait_for_inferior plus normal_stop.
3684 * infcmd.c (prepare_execution_command): Don't check whether the
3685 target can async when running in the foreground.
3686 (step_1): Delete synchronous case handling.
3687 (step_once): Always install a continuation, even in sync mode.
3688 (until_next_command, finish_forward): Don't check whether the
3689 target can async.
3690 (attach_command_post_wait, notice_new_inferior): Always install a
3691 continuation, even in sync mode.
3692 * infrun.c (mark_infrun_async_event_handler): New function.
3693 (proceed): In sync mode, mark infrun's event source instead of
3694 waiting for events here.
3695 (fetch_inferior_event): If the target can't async, do a blocking
3696 wait.
3697 (prepare_to_wait): In sync mode, mark infrun's event source.
3698 (infrun_async_inferior_event_handler): No longer bail out if the
3699 target can't async.
3700 * infrun.h (mark_infrun_async_event_handler): New declaration.
3701 * linux-nat.c (linux_nat_wait_1): Remove calls to
3702 set_sigint_trap/clear_sigint_trap.
3703 (linux_nat_terminal_inferior): No longer check whether the target
3704 can async.
3705 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3706 comment.
3707 (mi_execute_command_input_handler): No longer check whether the
3708 target is async. Update and simplify comment.
3709 * target.c (default_target_wait): New function.
3710 * target.h (struct target_ops) <to_wait>: Now defaults to
3711 default_target_wait.
3712 (default_target_wait): Declare.
3713 * top.c (wait_sync_command_done): New function, factored out from
3714 ...
3715 (maybe_wait_sync_command_done): ... this.
3716 * top.h (wait_sync_command_done): Declare.
3717 * target-delegates.c: Regenerate.
3718
3719 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3720
3721 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3722 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3723 Remove include of sys/utsname.h.
3724 (linux_determine_kernel_ptr_bits): Remove.
3725 (linux_determine_kernel_start): New.
3726 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3727 Update check.
3728 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3729 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3730 initialization.
3731 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3732 assignment.
3733
3734 2015-09-07 Pedro Alves <palves@redhat.com>
3735
3736 * guile/guile-internal.h (as_a_scm_t_subr): New.
3737 * guile/guile.c (misc_guile_functions): Use it.
3738 * guile/scm-arch.c (arch_functions): Use it.
3739 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3740 Use it.
3741 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3742 * guile/scm-cmd.c (command_functions): Use it.
3743 * guile/scm-disasm.c (disasm_functions): Use it.
3744 * guile/scm-exception.c (exception_functions)
3745 (private_exception_functions): Use it.
3746 * guile/scm-frame.c (frame_functions)
3747 * guile/scm-gsmob.c (gsmob_functions): Use it.
3748 * guile/scm-iterator.c (iterator_functions): Use it.
3749 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3750 * guile/scm-math.c (math_functions): Use it.
3751 * guile/scm-objfile.c (objfile_functions): Use it.
3752 * guile/scm-param.c (parameter_functions): Use it.
3753 * guile/scm-ports.c (port_functions, private_port_functions): Use
3754 it.
3755 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3756 * guile/scm-progspace.c (pspace_functions): Use it.
3757 * guile/scm-string.c (string_functions): Use it.
3758 * guile/scm-symbol.c (symbol_functions): Use it.
3759 * guile/scm-symtab.c (symtab_functions): Use it.
3760 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3761 it.
3762 * guile/scm-value.c (value_functions): Use it.
3763
3764 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3767 (tui_next_win): Likewise.
3768 (tui_prev_win): Likewise.
3769 (tui_partial_win_by_name): Likewise.
3770 (tui_init_generic_part): Likewise.
3771 (init_content_element): Likewise.
3772 (tui_del_window): Likewise.
3773 (tui_free_window): Likewise.
3774 (tui_del_data_windows): Likewise.
3775 (tui_free_data_content): Likewise.
3776 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3777 * tui/tui-regs.c (tui_show_register_group): Likewise.
3778 * tui/tui-win.c (tui_resize_all): Likewise.
3779 (tui_set_focus): Likewise.
3780 (tui_set_win_height): Likewise.
3781 (make_invisible_and_set_new_height): Likewise.
3782 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3783 * tui/tui-wingeneral.c (make_visible): Likewise.
3784
3785 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3788
3789 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3790
3791 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3792 pointer.
3793 * dbxread.c (dbx_end_psymtab): Likewise.
3794 * gnu-nat.c (gnu_write_inferior): Likewise.
3795 * mdebugread.c (cross_ref): Likewise.
3796 * p-valprint.c (pascal_val_print): Likewise.
3797 * xcoffread.c (xcoff_end_psymtab): Likewise.
3798
3799 2015-09-04 Yao Qi <yao.qi@linaro.org>
3800
3801 * NEWS: Mention the aarch64 multi-arch debugging support.
3802
3803 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3804
3805 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3806 type instead of a TYPE_CODE_INT one for the string_char_type
3807 and the ada_primitive_type_char types.
3808
3809 2015-09-03 Yao Qi <yao.qi@linaro.org>
3810
3811 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3812 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3813 aarch64_linux_region_ok_for_watchpoint.
3814 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3815 New function.
3816 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3817 Declare it.
3818
3819 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3820
3821 * gdb_obstack.h (obstack_strdup): Declare.
3822 * gdb_obstack.c (obstack_strdup): Define.
3823 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3824 * gdbarch.c: Regenerate.
3825 * gdbarch.h: Regenerate.
3826 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3827
3828 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3829
3830 * gdbtypes.c (copy_type_recursive): Update documentation.
3831
3832 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3833
3834 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3835 as zero.
3836
3837 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3838
3839 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3840
3841 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3842
3843 * solib-svr4.c (solib_event_probe_action): Call
3844 get_probe_argument_count using TRY...CATCH.
3845 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3846
3847 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3848
3849 * probe.h (struct probe_ops) <get_probe_argument_count,
3850 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3851 the comment that the function can throw an exception.
3852 (get_probe_argument_count): Likewise.
3853 (evaluate_probe_argument): Likewise.
3854 * stap-probe.c (stap_get_opcode): Call error instead of
3855 internal_error.
3856 (stap_get_expected_argument_type): Likewise. Add argument
3857 'probe'. Improve error message by mentioning the probe's name.
3858 (stap_parse_probe_arguments): Adjust call to
3859 stap_get_expected_argument_type.
3860 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3861 not zero. Call internal_error if GDB requests an argument but the
3862 probe has no arguments.
3863
3864 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3865
3866 * ada-lang.c (ada_resolve_function): Do not ask the user what
3867 match to use when in completion mode.
3868
3869 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3872 cast of NULL.
3873
3874 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3875
3876 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3877 call_abi using XSHAL_ABI macro.
3878
3879 2015-08-29 Doug Evans <xdje42@gmail.com>
3880
3881 * symtab.h (struct symbol): Tweak comment.
3882
3883 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3884
3885 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3886 gdbarch obstack instead of on the heap. Update commentary
3887 accordingly.
3888
3889 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3890
3891 GDB 7.10 released.
3892
3893 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3894
3895 * NEWS: Update entry about non-8-bits addressable memory.
3896
3897 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3898
3899 Revert:
3900 2014-11-06 Doug Evans <xdje42@gmail.com>
3901 * solib.c (solib_global_lookup): Fetch arch from objfile,
3902 not target_gdbarch.
3903
3904 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3905
3906 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3907 attempt to relocate a TLS variable offset.
3908
3909 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3910
3911 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3912 registered yet. Set inferior_ptid while calling target_read_memory.
3913
3914 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3915
3916 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3917 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3918 * linux-nat.c (check_stopped_by_breakpoint): Use
3919 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3920
3921 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3922
3923 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3924 thread was not yet discovered, use thread_from_lwp instead of
3925 calling thread_db_find_new_threads_1.
3926
3927 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3928
3929 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3930 statements.
3931
3932 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3933
3934 * NEWS: Document support for non-8-bits addressable memory.
3935
3936 2015-08-27 Pedro Alves <palves@redhat.com>
3937
3938 * configure.ac: Remove AC_TYPE_SIGNAL call.
3939 * configure, config.in: Regenerate.
3940
3941 2015-08-27 Pedro Alves <palves@redhat.com>
3942
3943 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3944 * extension-priv.h: Include signal.h.
3945 (struct signal_handler) <handler>: Change type to sighandler_t.
3946 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3947 * inflow.c (sigint_ours, sigquit_ours): Change type to
3948 sighandler_t.
3949 (child_terminal_inferior): Remove casts.
3950 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3951 (osig): Change type to sighandler_t.
3952 * nto-procfs.c (ofunc): Change type to sighandler_t.
3953 (procfs_wait): Remove casts.
3954 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3955 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3956 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3957
3958 2015-08-27 Pedro Alves <palves@redhat.com>
3959
3960 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3961 * gnulib/aclocal.m4: Renegerate.
3962 * gnulib/config.in: Renegerate.
3963 * gnulib/configure: Renegerate.
3964 * gnulib/import/Makefile.am: Update.
3965 * gnulib/import/Makefile.in: Regenerate.
3966 * gnulib/import/m4/gnulib-cache.m4: Update.
3967 * gnulib/import/m4/gnulib-comp.m4: Update.
3968 * gnulib/import/m4/signal_h.m4: New file.
3969 * gnulib/import/signal.in.h: New file.
3970
3971 2015-08-27 Pedro Alves <palves@redhat.com>
3972
3973 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3974 (MIN_MEMORY_PACKET_SIZE): New.
3975 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3976 (get_memory_packet_size): Adjust. No longer limit the max packet
3977 size.
3978 (set_memory_packet_size): Adjust, and remove dead code.
3979 (remote_check_symbols): Use xmalloc and a cleanup instead of
3980 alloca.
3981 (remote_packet_size): No longer cap the packet size.
3982 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3983
3984 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3985
3986 * compile/compile.c (compile_to_object): Mention language in
3987 error message.
3988
3989 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3990
3991 * target.c (target_pre_inferior): Unset attach_flag.
3992
3993 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3994
3995 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3996 * gdbarch.c: Re-generate.
3997
3998 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3999
4000 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4001 function with the XNEW-family equivalent.
4002 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4003 * ada-exp.y (write_ambiguous_var): Likewise.
4004 * ada-lang.c (resolve_subexp): Likewise.
4005 (user_select_syms): Likewise.
4006 (assign_aggregate): Likewise.
4007 (ada_evaluate_subexp): Likewise.
4008 (cache_symbol): Likewise.
4009 * addrmap.c (allocate_key): Likewise.
4010 (addrmap_create_mutable): Likewise.
4011 * aix-thread.c (sync_threadlists): Likewise.
4012 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4013 (alpha_gdbarch_init): Likewise.
4014 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4015 * arm-linux-nat.c (arm_linux_add_process): Likewise.
4016 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4017 * arm-tdep.c (push_stack_item): Likewise.
4018 (arm_displaced_step_copy_insn): Likewise.
4019 (arm_gdbarch_init): Likewise.
4020 (_initialize_arm_tdep): Likewise.
4021 * avr-tdep.c (push_stack_item): Likewise.
4022 * ax-general.c (new_agent_expr): Likewise.
4023 * block.c (block_initialize_namespace): Likewise.
4024 * breakpoint.c (alloc_counted_command_line): Likewise.
4025 (update_dprintf_command_list): Likewise.
4026 (parse_breakpoint_sals): Likewise.
4027 (decode_static_tracepoint_spec): Likewise.
4028 (until_break_command): Likewise.
4029 (clear_command): Likewise.
4030 (update_global_location_list): Likewise.
4031 (get_breakpoint_objfile_data) Likewise.
4032 * btrace.c (ftrace_new_function): Likewise.
4033 (btrace_set_insn_history): Likewise.
4034 (btrace_set_call_history): Likewise.
4035 * buildsym.c (add_symbol_to_list): Likewise.
4036 (record_pending_block): Likewise.
4037 (start_subfile): Likewise.
4038 (start_buildsym_compunit): Likewise.
4039 (push_subfile): Likewise.
4040 (end_symtab_get_static_block): Likewise.
4041 (buildsym_init): Likewise.
4042 * cli/cli-cmds.c (source_command): Likewise.
4043 * cli/cli-decode.c (add_cmd): Likewise.
4044 * cli/cli-script.c (build_command_line): Likewise.
4045 (setup_user_args): Likewise.
4046 (realloc_body_list): Likewise.
4047 (process_next_line): Likewise.
4048 (copy_command_lines): Likewise.
4049 * cli/cli-setshow.c (do_set_command): Likewise.
4050 * coff-pe-read.c (read_pe_exported_syms): Likewise.
4051 * coffread.c (coff_locate_sections): Likewise.
4052 (coff_symtab_read): Likewise.
4053 (coff_read_struct_type): Likewise.
4054 * common/cleanups.c (make_my_cleanup2): Likewise.
4055 * common/common-exceptions.c (throw_it): Likewise.
4056 * common/filestuff.c (make_cleanup_close): Likewise.
4057 * common/format.c (parse_format_string): Likewise.
4058 * common/queue.h (DEFINE_QUEUE_P): Likewise.
4059 * compile/compile-object-load.c (munmap_list_add): Likewise.
4060 (compile_object_load): Likewise.
4061 * compile/compile-object-run.c (compile_object_run): Likewise.
4062 * compile/compile.c (append_args): Likewise.
4063 * corefile.c (specify_exec_file_hook): Likewise.
4064 * cp-support.c (make_symbol_overload_list): Likewise.
4065 * cris-tdep.c (push_stack_item): Likewise.
4066 (cris_gdbarch_init): Likewise.
4067 * ctf.c (ctf_trace_file_writer_new): Likewise.
4068 * dbxread.c (init_header_files): Likewise.
4069 (add_new_header_file): Likewise.
4070 (init_bincl_list): Likewise.
4071 (dbx_end_psymtab): Likewise.
4072 (start_psymtab): Likewise.
4073 (dbx_end_psymtab): Likewise.
4074 * dcache.c (dcache_init): Likewise.
4075 * dictionary.c (dict_create_hashed): Likewise.
4076 (dict_create_hashed_expandable): Likewise.
4077 (dict_create_linear): Likewise.
4078 (dict_create_linear_expandable): Likewise.
4079 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4080 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4081 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4082 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4083 (decode_frame_entry_1): Likewise.
4084 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4085 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4086 * dwarf2read.c (dwarf2_has_info): Likewise.
4087 (create_signatured_type_table_from_index): Likewise.
4088 (dwarf2_read_index): Likewise.
4089 (dw2_get_file_names_reader): Likewise.
4090 (create_all_type_units): Likewise.
4091 (read_cutu_die_from_dwo): Likewise.
4092 (init_tu_and_read_dwo_dies): Likewise.
4093 (init_cutu_and_read_dies): Likewise.
4094 (create_all_comp_units): Likewise.
4095 (queue_comp_unit): Likewise.
4096 (inherit_abstract_dies): Likewise.
4097 (read_call_site_scope): Likewise.
4098 (dwarf2_add_field): Likewise.
4099 (dwarf2_add_typedef): Likewise.
4100 (dwarf2_add_member_fn): Likewise.
4101 (attr_to_dynamic_prop): Likewise.
4102 (abbrev_table_alloc_abbrev): Likewise.
4103 (abbrev_table_read_table): Likewise.
4104 (add_include_dir): Likewise.
4105 (add_file_name): Likewise.
4106 (dwarf_decode_line_header): Likewise.
4107 (dwarf2_const_value_attr): Likewise.
4108 (dwarf_alloc_block): Likewise.
4109 (parse_macro_definition): Likewise.
4110 (set_die_type): Likewise.
4111 (write_psymtabs_to_index): Likewise.
4112 (create_cus_from_index): Likewise.
4113 (dwarf2_create_include_psymtab): Likewise.
4114 (process_psymtab_comp_unit_reader): Likewise.
4115 (build_type_psymtab_dependencies): Likewise.
4116 (read_comp_units_from_section): Likewise.
4117 (compute_compunit_symtab_includes): Likewise.
4118 (create_dwo_unit_in_dwp_v1): Likewise.
4119 (create_dwo_unit_in_dwp_v2): Likewise.
4120 (read_func_scope): Likewise.
4121 (process_structure_scope): Likewise.
4122 (mark_common_block_symbol_computed): Likewise.
4123 (load_partial_dies): Likewise.
4124 (dwarf2_symbol_mark_computed): Likewise.
4125 * elfread.c (elf_symfile_segments): Likewise.
4126 (elf_read_minimal_symbols): Likewise.
4127 * environ.c (make_environ): Likewise.
4128 * eval.c (evaluate_subexp_standard): Likewise.
4129 * event-loop.c (create_file_handler): Likewise.
4130 (create_async_signal_handler): Likewise.
4131 (create_async_event_handler): Likewise.
4132 (create_timer): Likewise.
4133 * exec.c (build_section_table): Likewise.
4134 * fbsd-nat.c (fbsd_remember_child): Likewise.
4135 * fork-child.c (fork_inferior): Likewise.
4136 * frv-tdep.c (new_variant): Likewise.
4137 * gdbarch.sh (gdbarch_alloc): Likewise.
4138 (append_name): Likewise.
4139 * gdbtypes.c (rank_function): Likewise.
4140 (copy_type_recursive): Likewise.
4141 (add_dyn_prop): Likewise.
4142 * gnu-nat.c (make_proc): Likewise.
4143 (make_inf): Likewise.
4144 (gnu_write_inferior): Likewise.
4145 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4146 (build_std_type_info_type): Likewise.
4147 * guile/scm-param.c (compute_enum_list): Likewise.
4148 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4149 * guile/scm-value.c (gdbscm_value_call): Likewise.
4150 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4151 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4152 (read_unwind_info): Likewise.
4153 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4154 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4155 (call_function_by_hand_dummy): Likewise.
4156 * infcmd.c (step_once): Likewise.
4157 (finish_forward): Likewise.
4158 (attach_command): Likewise.
4159 (notice_new_inferior): Likewise.
4160 * inferior.c (add_inferior_silent): Likewise.
4161 * infrun.c (add_displaced_stepping_state): Likewise.
4162 (save_infcall_control_state): Likewise.
4163 (save_inferior_ptid): Likewise.
4164 (_initialize_infrun): Likewise.
4165 * jit.c (bfd_open_from_target_memory): Likewise.
4166 (jit_gdbarch_data_init): Likewise.
4167 * language.c (add_language): Likewise.
4168 * linespec.c (decode_line_2): Likewise.
4169 * linux-nat.c (add_to_pid_list): Likewise.
4170 (add_initial_lwp): Likewise.
4171 * linux-thread-db.c (add_thread_db_info): Likewise.
4172 (record_thread): Likewise.
4173 (info_auto_load_libthread_db): Likewise.
4174 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4176 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4177 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4178 * macrocmd.c (macro_define_command): Likewise.
4179 * macroexp.c (gather_arguments): Likewise.
4180 * macroscope.c (sal_macro_scope): Likewise.
4181 * macrotab.c (new_macro_table): Likewise.
4182 * mdebugread.c (push_parse_stack): Likewise.
4183 (parse_partial_symbols): Likewise.
4184 (parse_symbol): Likewise.
4185 (psymtab_to_symtab_1): Likewise.
4186 (new_block): Likewise.
4187 (new_psymtab): Likewise.
4188 (mdebug_build_psymtabs): Likewise.
4189 (add_pending): Likewise.
4190 (elfmdebug_build_psymtabs): Likewise.
4191 * mep-tdep.c (mep_gdbarch_init): Likewise.
4192 * mi/mi-main.c (mi_execute_command): Likewise.
4193 * mi/mi-parse.c (mi_parse_argv): Likewise.
4194 * minidebug.c (lzma_open): Likewise.
4195 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4196 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4197 * mips-tdep.c (mips_gdbarch_init): Likewise.
4198 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4199 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4200 * mt-tdep.c (mt_registers_info): Likewise.
4201 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4202 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4203 (linux_enable_pt): Likewise.
4204 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4205 (linux_xfer_osdata_processgroups): Likewise.
4206 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4207 * nto-procfs.c (procfs_meminfo): Likewise.
4208 * objc-lang.c (start_msglist): Likewise.
4209 (selectors_info): Likewise.
4210 (classes_info): Likewise.
4211 (find_methods): Likewise.
4212 * objfiles.c (allocate_objfile): Likewise.
4213 (update_section_map): Likewise.
4214 * osabi.c (gdbarch_register_osabi): Likewise.
4215 (gdbarch_register_osabi_sniffer): Likewise.
4216 * parse.c (start_arglist): Likewise.
4217 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4218 (hwdebug_insert_point): Likewise.
4219 * printcmd.c (display_command): Likewise.
4220 (ui_printf): Likewise.
4221 * procfs.c (create_procinfo): Likewise.
4222 (load_syscalls): Likewise.
4223 (proc_get_LDT_entry): Likewise.
4224 (proc_update_threads): Likewise.
4225 * prologue-value.c (make_pv_area): Likewise.
4226 (pv_area_store): Likewise.
4227 * psymtab.c (extend_psymbol_list): Likewise.
4228 (init_psymbol_list): Likewise.
4229 (allocate_psymtab): Likewise.
4230 * python/py-inferior.c (add_thread_object): Likewise.
4231 * python/py-param.c (compute_enum_values): Likewise.
4232 * python/py-value.c (valpy_call): Likewise.
4233 * python/py-varobj.c (py_varobj_iter_next): Likewise.
4234 * python/python.c (ensure_python_env): Likewise.
4235 * record-btrace.c (record_btrace_start_replaying): Likewise.
4236 * record-full.c (record_full_reg_alloc): Likewise.
4237 (record_full_mem_alloc): Likewise.
4238 (record_full_end_alloc): Likewise.
4239 (record_full_core_xfer_partial): Likewise.
4240 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
4241 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
4242 * remote-notif.c (remote_notif_state_allocate): Likewise.
4243 * remote.c (demand_private_info): Likewise.
4244 (remote_notif_stop_alloc_reply): Likewise.
4245 (remote_enable_btrace): Likewise.
4246 * reverse.c (save_bookmark_command): Likewise.
4247 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4248 * rx-tdep.c (rx_gdbarch_init): Likewise.
4249 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4250 * ser-go32.c (dos_get_tty_state): Likewise.
4251 (dos_copy_tty_state): Likewise.
4252 * ser-mingw.c (ser_windows_open): Likewise.
4253 (ser_console_wait_handle): Likewise.
4254 (ser_console_get_tty_state): Likewise.
4255 (make_pipe_state): Likewise.
4256 (net_windows_open): Likewise.
4257 * ser-unix.c (hardwire_get_tty_state): Likewise.
4258 (hardwire_copy_tty_state): Likewise.
4259 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4260 * solib-dsbt.c (dsbt_current_sos): Likewise.
4261 (dsbt_relocate_main_executable): Likewise.
4262 * solib-frv.c (frv_current_sos): Likewise.
4263 (frv_relocate_main_executable): Likewise.
4264 * solib-spu.c (spu_bfd_fopen): Likewise.
4265 * solib-svr4.c (lm_info_read): Likewise.
4266 (svr4_copy_library_list): Likewise.
4267 (svr4_default_sos): Likewise.
4268 * source.c (find_source_lines): Likewise.
4269 (line_info): Likewise.
4270 (add_substitute_path_rule): Likewise.
4271 * spu-linux-nat.c (spu_bfd_open): Likewise.
4272 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4273 * stabsread.c (dbx_lookup_type): Likewise.
4274 (read_type): Likewise.
4275 (read_member_functions): Likewise.
4276 (read_struct_fields): Likewise.
4277 (read_baseclasses): Likewise.
4278 (read_args): Likewise.
4279 (_initialize_stabsread): Likewise.
4280 * stack.c (func_command): Likewise.
4281 * stap-probe.c (handle_stap_probe): Likewise.
4282 * symfile.c (addrs_section_sort): Likewise.
4283 (addr_info_make_relative): Likewise.
4284 (load_section_callback): Likewise.
4285 (add_symbol_file_command): Likewise.
4286 (init_filename_language_table): Likewise.
4287 * symtab.c (create_filename_seen_cache): Likewise.
4288 (sort_search_symbols_remove_dups): Likewise.
4289 (search_symbols): Likewise.
4290 * target.c (make_cleanup_restore_target_terminal): Likewise.
4291 * thread.c (new_thread): Likewise.
4292 (enable_thread_stack_temporaries): Likewise.
4293 (make_cleanup_restore_current_thread): Likewise.
4294 (thread_apply_all_command): Likewise.
4295 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4296 * top.c (gdb_readline_wrapper): Likewise.
4297 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4298 * tracepoint.c (trace_find_line_command): Likewise.
4299 (all_tracepoint_actions_and_cleanup): Likewise.
4300 (make_cleanup_restore_current_traceframe): Likewise.
4301 (get_uploaded_tp): Likewise.
4302 (get_uploaded_tsv): Likewise.
4303 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4304 (tui_alloc_win_info): Likewise.
4305 (tui_alloc_content): Likewise.
4306 (tui_add_content_elements): Likewise.
4307 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4308 (tui_set_disassem_content): Likewise.
4309 * ui-file.c (ui_file_new): Likewise.
4310 (stdio_file_new): Likewise.
4311 (tee_file_new): Likewise.
4312 * utils.c (make_cleanup_restore_integer): Likewise.
4313 (add_internal_problem_command): Likewise.
4314 * v850-tdep.c (v850_gdbarch_init): Likewise.
4315 * valops.c (find_oload_champ): Likewise.
4316 * value.c (allocate_value_lazy): Likewise.
4317 (record_latest_value): Likewise.
4318 (create_internalvar): Likewise.
4319 * varobj.c (install_variable): Likewise.
4320 (new_variable): Likewise.
4321 (new_root_variable): Likewise.
4322 (cppush): Likewise.
4323 (_initialize_varobj): Likewise.
4324 * windows-nat.c (windows_make_so): Likewise.
4325 * x86-nat.c (x86_add_process): Likewise.
4326 * xcoffread.c (arrange_linetable): Likewise.
4327 (allocate_include_entry): Likewise.
4328 (process_linenos): Likewise.
4329 (SYMBOL_DUP): Likewise.
4330 (xcoff_start_psymtab): Likewise.
4331 (xcoff_end_psymtab): Likewise.
4332 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4333 * xtensa-tdep.c (xtensa_register_type): Likewise.
4334 * gdbarch.c: Regenerate.
4335 * gdbarch.h: Regenerate.
4336
4337 2015-08-25 Don Breazeal <donb@codesourcery.com>
4338
4339 * infrun.c (follow_exec): Re-order operations for
4340 handling follow-exec-mode "new".
4341 (handle_inferior_event_1): Assign ecs->event_thread
4342 to the current thread.
4343 * remote.c (get_remote_arch_state): Add an assertion.
4344
4345 2015-08-26 Pedro Alves <palves@redhat.com>
4346
4347 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4348
4349 2015-08-25 Pedro Alves <palves@redhat.com>
4350
4351 PR gdb/18804
4352 * defs.h (maybe_quit): Declare.
4353 (QUIT): Now calls maybe_quit.
4354 * event-loop.c (clear_async_signal_handler)
4355 (async_signal_handler_is_marked): New functions.
4356 * event-loop.h (async_signal_handler_is_marked)
4357 (clear_async_signal_handler): New declarations.
4358 * remote.c (remote_check_pending_interrupt): New function.
4359 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4360 longer check whether the target is async. If waiting for a stop
4361 reply, and a Ctrl-C as been sent to the target, offer to
4362 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4363 Otherwise do not disconnect and throw a quit.
4364 (_initialize_remote): Install remote_check_pending_interrupt as
4365 to_check_pending_interrupt.
4366 * target.c (target_check_pending_interrupt): New function.
4367 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4368 field.
4369 (target_check_pending_interrupt): New declaration.
4370 * utils.c (maybe_quit): New function.
4371 * target-delegates.c: Regenerate.
4372
4373 2015-08-25 Yao Qi <yao.qi@linaro.org>
4374
4375 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4376 Rename local variable pid to tid, and get lwpid of lwp. Update
4377 debug output.
4378
4379 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4380
4381 * ada-lang.c (ada_read_var_value): Add a var_block argument
4382 and pass it to default_read_var_value.
4383 * block.c (block_static_link): New accessor.
4384 * block.h (block_static_link): Declare it.
4385 * buildsym.c (finish_block_internal): Add a static_link
4386 argument. If there is a static link, associate it to the new
4387 block.
4388 (finish_block): Add a static link argument and pass it to
4389 finish_block_internal.
4390 (end_symtab_get_static_block): Update calls to finish_block and
4391 to finish_block_internal.
4392 (end_symtab_with_blockvector): Update call to
4393 finish_block_internal.
4394 * buildsym.h: Forward-declare struct dynamic_prop.
4395 (struct context_stack): Add a static_link field.
4396 (finish_block): Add a static link argument.
4397 * c-exp.y: Remove an obsolete comment (evaluation of variables
4398 already start from the selected frame, and now they climb *up*
4399 the call stack) and propagate the block information to the
4400 produced expression.
4401 * d-exp.y: Likewise.
4402 * f-exp.y: Likewise.
4403 * go-exp.y: Likewise.
4404 * jv-exp.y: Likewise.
4405 * m2-exp.y: Likewise.
4406 * p-exp.y: Likewise.
4407 * coffread.c (coff_symtab_read): Update calls to finish_block.
4408 * dbxread.c (process_one_symbol): Likewise.
4409 * xcoffread.c (read_xcoff_symtab): Likewise.
4410 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4411 "sym" parameter to struct block_symbol, update its uses and pass
4412 its block to calls to read_var_value.
4413 (convert_symbol_sym): Update the calls to convert_one_symbol.
4414 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4415 call to read_var_value.
4416 * dwarf2loc.c (block_op_get_frame_base): New.
4417 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4418 get_frame_base method.
4419 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4420 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4421 instead of the selected frame in order to evaluate the
4422 expression.
4423 (dwarf2_evaluate_property): Add a frame argument. Update call
4424 to dwarf2_locexpr_baton_eval to provide a frame in available and
4425 to handle the absence of address stack.
4426 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4427 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4428 declaration.
4429 (read_func_scope): Record any available static link description.
4430 Update call to finish_block.
4431 (read_lexical_block_scope): Update call to finish_block.
4432 * findvar.c (follow_static_link): New.
4433 (get_hosting_frame): New.
4434 (default_read_var_value): Add a var_block argument. Use
4435 get_hosting_frame to handle non-local references.
4436 (read_var_value): Add a var_block argument and pass it to the
4437 LA_READ_VAR_VALUE method.
4438 * gdbtypes.c (resolve_dynamic_range): Update calls to
4439 dwarf2_evaluate_property.
4440 (resolve_dynamic_type_internal): Likewise.
4441 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4442 read_var_value, passing it the block coming from symbol lookup.
4443 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4444 read_var_value (TODO).
4445 * infcmd.c (finish_command_continuation): Update call to
4446 read_var_value, passing it the block coming from symbol lookup.
4447 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4448 * language.h (struct language_defn): Add a var_block argument to
4449 the LA_READ_VAR_VALUE method.
4450 * objfiles.c (struct static_link_htab_entry): New.
4451 (static_link_htab_entry_hash): New.
4452 (static_link_htab_entry_eq): New.
4453 (objfile_register_static_link): New.
4454 (objfile_lookup_static_link): New.
4455 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4456 * objfiles.h: Include hashtab.h.
4457 (struct objfile): Add a static_links field.
4458 (objfile_register_static_link): New.
4459 (objfile_lookup_static_link): New.
4460 * printcmd.c (print_variable_and_value): Update call to
4461 read_var_value.
4462 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4463 * python/py-frame.c (frapy_read_var): Update call to
4464 read_var_value, passing it the block coming from symbol lookup.
4465 * python/py-framefilter.c (extract_sym): Add a sym_block
4466 parameter and set the pointed value to NULL (TODO).
4467 (enumerate_args): Update call to extract_sym.
4468 (enumerate_locals): Update calls to extract_sym and to
4469 read_var_value.
4470 * python/py-symbol.c (sympy_value): Update call to
4471 read_var_value (TODO).
4472 * stack.c (read_frame_local): Update call to read_var_value.
4473 (read_frame_arg): Likewise.
4474 (return_command): Likewise.
4475 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4476 method.
4477 (struct symbol): Add a block field.
4478 (SYMBOL_BLOCK): New accessor.
4479 * valops.c (value_of_variable): Remove frame/block handling and
4480 pass the block argument to read_var_value, which does this job
4481 now.
4482 (value_struct_elt_for_reference): Update calls to
4483 read_var_value.
4484 (value_of_this): Pass the block found to read_var_value.
4485 * value.h (read_var_value): Add a var_block argument.
4486 (default_read_var_value): Likewise.
4487
4488 2015-08-25 Yao Qi <yao.qi@linaro.org>
4489
4490 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4491 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4492 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4493
4494 2015-08-25 Yao Qi <yao.qi@linaro.org>
4495
4496 * Makefile.in (aarch64-liunx.o): New rule.
4497 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4498 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4499 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4500 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4501 extern.
4502 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4503 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4504 * nat/aarch64-linux.c: New file.
4505 * nat/aarch64-linux.h: New file.
4506
4507 2015-08-25 Yao Qi <yao.qi@linaro.org>
4508
4509 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4510 lwp_arch_private_info and ptid_of_lwp.
4511
4512 2015-08-25 Yao Qi <yao.qi@linaro.org>
4513
4514 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4515 Move it to nat/aarch64-linux-hw-point.c.
4516 (debug_reg_change_callback): Likewise.
4517 (aarch64_notify_debug_reg_change): :Likewise.
4518 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4519 (aarch64_dr_update_callback_param): New.
4520 (debug_reg_change_callback): New function.
4521 (aarch64_notify_debug_reg_change): Likewise.
4522 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4523 Remove the declaration.
4524
4525 2015-08-25 Yao Qi <yao.qi@linaro.org>
4526
4527 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4528 Call current_lwp_ptid.
4529
4530 2015-08-25 Yao Qi <yao.qi@linaro.org>
4531
4532 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4533 debug_printf.
4534
4535 2015-08-25 Yao Qi <yao.qi@linaro.org>
4536
4537 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4538 ptid_get_pid rather than ptid_get_lwp.
4539
4540 2015-08-24 Pedro Alves <palves@redhat.com>
4541
4542 * NEWS (New commands): Mention set/show remote
4543 multiprocess-extensions-packet.
4544 * remote.c (remote_query_supported): Only tell the server to use
4545 the multiprocess extensions if the user hasn't force-disabled them
4546 with "set remote multiprocess-extensions-packet off".
4547
4548 2015-08-24 Pedro Alves <palves@redhat.com>
4549
4550 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4551 1029a8112290f6eee9d7878a391c49db42c999bd.
4552 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4553 Regenerate.
4554 * gnulib/import/Makefile.am: Update.
4555 * gnulib/import/Makefile.in: Update.
4556 * gnulib/import/alloca.in.h: Update.
4557 * gnulib/import/basename-lgpl.c: Update.
4558 * gnulib/import/canonicalize-lgpl.c: Update.
4559 * gnulib/import/config.charset: Update.
4560 * gnulib/import/dirent.in.h: Update.
4561 * gnulib/import/dirfd.c: Update.
4562 * gnulib/import/dirname-lgpl.c: Update.
4563 * gnulib/import/dirname.h: Update.
4564 * gnulib/import/dosname.h: Update.
4565 * gnulib/import/errno.in.h: Update.
4566 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4567 * gnulib/import/extra/snippet/c++defs.h: Update.
4568 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4569 * gnulib/import/extra/update-copyright: Update.
4570 * gnulib/import/float+.h: Update.
4571 * gnulib/import/float.c: Update.
4572 * gnulib/import/float.in.h: Update.
4573 * gnulib/import/fnmatch.c: Update.
4574 * gnulib/import/fnmatch.in.h: Update.
4575 * gnulib/import/fnmatch_loop.c: Update.
4576 * gnulib/import/fpucw.h: Update.
4577 * gnulib/import/frexp.c: Update.
4578 * gnulib/import/frexpl.c: Update.
4579 * gnulib/import/gettimeofday.c: Update.
4580 * gnulib/import/inttypes.in.h: Update.
4581 * gnulib/import/isnan.c: Update.
4582 * gnulib/import/isnand-nolibm.h: Update.
4583 * gnulib/import/isnand.c: Update.
4584 * gnulib/import/isnanl-nolibm.h: Update.
4585 * gnulib/import/isnanl.c: Update.
4586 * gnulib/import/itold.c: Update.
4587 * gnulib/import/localcharset.c: Update.
4588 * gnulib/import/localcharset.h: Update.
4589 * gnulib/import/lstat.c: Update.
4590 * gnulib/import/m4/00gnulib.m4: Update.
4591 * gnulib/import/m4/absolute-header.m4: Update.
4592 * gnulib/import/m4/alloca.m4: Update.
4593 * gnulib/import/m4/canonicalize.m4: Update.
4594 * gnulib/import/m4/codeset.m4: Update.
4595 * gnulib/import/m4/configmake.m4: Update.
4596 * gnulib/import/m4/dirent_h.m4: Update.
4597 * gnulib/import/m4/dirfd.m4: Update.
4598 * gnulib/import/m4/dirname.m4: Update.
4599 * gnulib/import/m4/double-slash-root.m4: Update.
4600 * gnulib/import/m4/eealloc.m4: Update.
4601 * gnulib/import/m4/errno_h.m4: Update.
4602 * gnulib/import/m4/exponentd.m4: Update.
4603 * gnulib/import/m4/exponentl.m4: Update.
4604 * gnulib/import/m4/extensions.m4: Update.
4605 * gnulib/import/m4/extern-inline.m4: Update.
4606 * gnulib/import/m4/fcntl-o.m4: Update.
4607 * gnulib/import/m4/float_h.m4: Update.
4608 * gnulib/import/m4/fnmatch.m4: Update.
4609 * gnulib/import/m4/fpieee.m4: Update.
4610 * gnulib/import/m4/frexp.m4: Update.
4611 * gnulib/import/m4/frexpl.m4: Update.
4612 * gnulib/import/m4/gettimeofday.m4: Update.
4613 * gnulib/import/m4/glibc21.m4: Update.
4614 * gnulib/import/m4/gnulib-cache.m4: Update.
4615 * gnulib/import/m4/gnulib-common.m4: Update.
4616 * gnulib/import/m4/gnulib-comp.m4: Update.
4617 * gnulib/import/m4/gnulib-tool.m4: Update.
4618 * gnulib/import/m4/include_next.m4: Update.
4619 * gnulib/import/m4/inttypes-pri.m4: Update.
4620 * gnulib/import/m4/inttypes.m4: Update.
4621 * gnulib/import/m4/isnand.m4: Update.
4622 * gnulib/import/m4/isnanl.m4: Update.
4623 * gnulib/import/m4/largefile.m4: Update.
4624 * gnulib/import/m4/localcharset.m4: Update.
4625 * gnulib/import/m4/locale-fr.m4: Update.
4626 * gnulib/import/m4/locale-ja.m4: Update.
4627 * gnulib/import/m4/locale-zh.m4: Update.
4628 * gnulib/import/m4/longlong.m4: Update.
4629 * gnulib/import/m4/lstat.m4: Update.
4630 * gnulib/import/m4/malloc.m4: Update.
4631 * gnulib/import/m4/malloca.m4: Update.
4632 * gnulib/import/m4/math_h.m4: Update.
4633 * gnulib/import/m4/mbrtowc.m4: Update.
4634 * gnulib/import/m4/mbsinit.m4: Update.
4635 * gnulib/import/m4/mbsrtowcs.m4: Update.
4636 * gnulib/import/m4/mbstate_t.m4: Update.
4637 * gnulib/import/m4/memchr.m4: Update.
4638 * gnulib/import/m4/memmem.m4: Update.
4639 * gnulib/import/m4/mmap-anon.m4: Update.
4640 * gnulib/import/m4/multiarch.m4: Update.
4641 * gnulib/import/m4/nocrash.m4: Update.
4642 * gnulib/import/m4/off_t.m4: Update.
4643 * gnulib/import/m4/pathmax.m4: Update.
4644 * gnulib/import/m4/readlink.m4: Update.
4645 * gnulib/import/m4/rename.m4: Update.
4646 * gnulib/import/m4/rmdir.m4: Update.
4647 * gnulib/import/m4/ssize_t.m4: Update.
4648 * gnulib/import/m4/stat.m4: Update.
4649 * gnulib/import/m4/stdbool.m4: Update.
4650 * gnulib/import/m4/stddef_h.m4: Update.
4651 * gnulib/import/m4/stdint.m4: Update.
4652 * gnulib/import/m4/stdio_h.m4: Update.
4653 * gnulib/import/m4/stdlib_h.m4: Update.
4654 * gnulib/import/m4/string_h.m4: Update.
4655 * gnulib/import/m4/strstr.m4: Update.
4656 * gnulib/import/m4/strtok_r.m4: Update.
4657 * gnulib/import/m4/sys_socket_h.m4: Update.
4658 * gnulib/import/m4/sys_stat_h.m4: Update.
4659 * gnulib/import/m4/sys_time_h.m4: Update.
4660 * gnulib/import/m4/sys_types_h.m4: Update.
4661 * gnulib/import/m4/time_h.m4: Update.
4662 * gnulib/import/m4/unistd_h.m4: Update.
4663 * gnulib/import/m4/warn-on-use.m4: Update.
4664 * gnulib/import/m4/wchar_h.m4: Update.
4665 * gnulib/import/m4/wchar_t.m4: Update.
4666 * gnulib/import/m4/wctype_h.m4: Update.
4667 * gnulib/import/m4/wint_t.m4: Update.
4668 * gnulib/import/malloc.c: Update.
4669 * gnulib/import/malloca.c: Update.
4670 * gnulib/import/malloca.h: Update.
4671 * gnulib/import/math.in.h: Update.
4672 * gnulib/import/mbrtowc.c: Update.
4673 * gnulib/import/mbsinit.c: Update.
4674 * gnulib/import/mbsrtowcs-impl.h: Update.
4675 * gnulib/import/mbsrtowcs-state.c: Update.
4676 * gnulib/import/mbsrtowcs.c: Update.
4677 * gnulib/import/memchr.c: Update.
4678 * gnulib/import/memmem.c: Update.
4679 * gnulib/import/pathmax.h: Update.
4680 * gnulib/import/readlink.c: Update.
4681 * gnulib/import/ref-add.sin: Update.
4682 * gnulib/import/ref-del.sin: Update.
4683 * gnulib/import/rename.c: Update.
4684 * gnulib/import/rmdir.c: Update.
4685 * gnulib/import/same-inode.h: Update.
4686 * gnulib/import/stat.c: Update.
4687 * gnulib/import/stdbool.in.h: Update.
4688 * gnulib/import/stddef.in.h: Update.
4689 * gnulib/import/stdint.in.h: Update.
4690 * gnulib/import/stdio.c: Update.
4691 * gnulib/import/stdio.in.h: Update.
4692 * gnulib/import/stdlib.in.h: Update.
4693 * gnulib/import/str-two-way.h: Update.
4694 * gnulib/import/streq.h: Update.
4695 * gnulib/import/string.in.h: Update.
4696 * gnulib/import/stripslash.c: Update.
4697 * gnulib/import/strnlen1.c: Update.
4698 * gnulib/import/strnlen1.h: Update.
4699 * gnulib/import/strstr.c: Update.
4700 * gnulib/import/strtok_r.c: Update.
4701 * gnulib/import/sys_stat.in.h: Update.
4702 * gnulib/import/sys_time.in.h: Update.
4703 * gnulib/import/sys_types.in.h: Update.
4704 * gnulib/import/time.in.h: Update.
4705 * gnulib/import/unistd.in.h: Update.
4706 * gnulib/import/verify.h: Update.
4707 * gnulib/import/wchar.in.h: Update.
4708 * gnulib/import/wctype.in.h: Update.
4709 * gnulib/import/gettimeofday.c: New file.
4710 * gnulib/import/m4/absolute-header.m4: New file.
4711 * gnulib/import/m4/gettimeofday.m4: New file.
4712 * gnulib/import/m4/sys_socket_h.m4: New file.
4713 * gnulib/import/m4/sys_time_h.m4: New file.
4714 * gnulib/import/stdio.c: Delete file.
4715 * gnulib/import/sys_time.in.h: New file.
4716
4717 2015-08-24 Pedro Alves <palves@redhat.com>
4718
4719 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4720 * common/gdb_sys_time.h: New file.
4721 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4722 * gdb_select.h: Likewise.
4723 * gdb_usleep.c: Likewise.
4724 * maint.c: Likewise.
4725 * mi/mi-main.c: Likewise.
4726 * mi/mi-parse.h: Likewise.
4727 * remote-fileio.c: Likewise.
4728 * remote-m32r-sdi.c: Likewise.
4729 * remote.c: Likewise.
4730 * ser-base.c: Likewise.
4731 * ser-pipe.c: Likewise.
4732 * ser-tcp.c: Likewise.
4733 * ser-unix.c: Likewise.
4734 * symfile.c: Likewise.
4735 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4736 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4737 * utils.c: Likewise.
4738
4739 2015-08-24 Pedro Alves <palves@redhat.com>
4740
4741 * NEWS: Mention removed support for the various ROM monitors.
4742 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4743 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4744 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4745 gdb_target_obs.
4746 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4747 gdb_target_obs.
4748 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4749 dsrec.o from gdb_target_obs.
4750 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4751 from gdb_target_obs.
4752 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4753 gdb_target_obs.
4754 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4755 dink32-rom.o from gdb_target_obs.
4756 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4757 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4758 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4759 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4760
4761 2015-08-21 Pedro Alves <palves@redhat.com>
4762
4763 * frame.c (null_frame_id): Explicitly zero-initialize.
4764
4765 2015-08-21 Tom Tromey <tromey@redhat.com>
4766
4767 * dwarf2read.c (struct dwarf2_section_info): Rename field
4768 'asection' to 'section'.
4769 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4770 (dwarf2_locate_sections, dwarf2_locate_sections)
4771 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4772 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4773 (dwarf2_locate_v2_dwp_sections): Adjust.
4774
4775 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4776
4777 * top.h (gdb_in_secondary_prompt_p): Declare.
4778 * top.c (gdb_secondary_prompt_depth): Define.
4779 (gdb_in_secondary_prompt_p): Define.
4780 (gdb_readline_wrapper_cleanup): Decrement
4781 gdb_secondary_prompt_depth.
4782 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4783 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4784 are in a secondary prompt.
4785
4786 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4787
4788 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4789 emit the newline.
4790
4791 2015-08-21 Gary Benson <gbenson@redhat.com>
4792
4793 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4794
4795 2015-08-21 Gary Benson <gbenson@redhat.com>
4796
4797 * target.h (struct target_ops) <to_fileio_open>: New argument
4798 warn_if_slow. Update comment. All implementations updated.
4799 (target_fileio_open_warn_if_slow): New declaration.
4800 * target.c (target_fileio_open): Renamed as...
4801 (target_fileio_open_1): ...this. New argument warn_if_slow.
4802 Pass warn_if_slow to implementation. Update debug printing.
4803 (target_fileio_open): New function.
4804 (target_fileio_open_warn_if_slow): Likewise.
4805 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4806 target_fileio_open_warn_if_slow.
4807
4808 2015-08-21 Gary Benson <gbenson@redhat.com>
4809
4810 * nat/linux-namespaces.c (linux_mntns_access_fs):
4811 Do not overwrite old_chain.
4812
4813 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4814
4815 * arch/xtensa.h: New file.
4816 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4817 (ps_get_thread_area): New function.
4818 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4819 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4820 * xtensa-tdep.c (osabi.h): New #include.
4821 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4822 xtensa-specific hooks.
4823 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4824 member and move the structure to arch/xtensa.h.
4825
4826 2015-08-21 Pedro Alves <palves@redhat.com>
4827
4828 * remote.c (struct readahead_cache): New.
4829 (struct remote_state) <readahead_cache>: New field.
4830 (remote_open_1): Invalidate the cache.
4831 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4832 functions.
4833 (remote_hostio_pwrite): Invalidate the readahead cache.
4834 (remote_hostio_pread): Rename to ...
4835 (remote_hostio_pread_vFile): ... this.
4836 (remote_hostio_pread_from_cache): New function.
4837 (remote_hostio_pread): Reimplement.
4838 (remote_hostio_close): Invalidate the readahead cache.
4839
4840 2015-08-21 Marcin Cieƛlak <saper@saper.info> (tiny patch)
4841
4842 PR build/18843
4843 * procfs.c: Include "filestuff.h".
4844
4845 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4846
4847 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4848 curch.
4849 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4850 cur_line or curch, instead call wmove().
4851 (init_win_info) [CMD_WIN]: Likewise.
4852 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4853 instead call getcury().
4854 (tui_redisplay_readline): Don't set cur_line or curch.
4855 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4856 getcury().
4857 (tui_cont_sig): Remove call to wmove.
4858 (tui_getc): Don't read cur_line or curch, instead call getcury()
4859 or getyx(). Don't set curch.
4860 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4861 set cur_line or curch. Always move cursor to (0,0).
4862
4863 2015-08-20 Pedro Alves <palves@redhat.com>
4864
4865 * infrun.c (print_target_wait_results): Make extern.
4866 * infrun.h (print_target_wait_results): Declare.
4867 * remote.c (set_stop_requested_callback): Delete.
4868 (process_initial_stop_replies): New function.
4869 (remote_start_remote): Use it.
4870 (stop_reply_queue_length): New function.
4871
4872 2015-08-20 Pedro Alves <palves@redhat.com>
4873
4874 * dwarf2read.c (process_full_comp_unit): To tell whether
4875 start_subfile managed to deduce a language, test for
4876 language_unknown instead of language_c.
4877
4878 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4879
4880 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4881 matches attributes.
4882
4883 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4884
4885 * dwarf2read.c (dwarf2_string_attr): New function.
4886 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4887 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4888 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4889 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4890 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4891
4892 2015-08-18 Doug Evans <dje@google.com>
4893 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4894
4895 PR mi/18833
4896 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4897 if MI-like.
4898 * mi/mi-out.c: #include "vec.h".
4899 (ui_filep): New type.
4900 (DEV_VEC_P (ui_filep)): New type.
4901 (struct ui_out_data) <buffer, original_buffer>: Delete.
4902 (struct ui_out_data) <streams>: New member.
4903 (mi_ui_out_impl): Add data_destroy field.
4904 (mi_field_string, mi_field_fmt): Update.
4905 (mi_flush, mi_redirect, field_separator): Update.
4906 (mi_open, mi_close): Update.
4907 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4908 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4909 (mi_out_new): Call mi_out_data_ctor.
4910
4911 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4912
4913 * remote.c (strprefix): New.
4914 (remote_parse_stop_reply): Use strprefix instead of strncmp
4915 to ensure exact match of keyword.
4916
4917 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * gdb_bfd.c (debug_bfd_cache): New variable.
4920 (show_bfd_cache_debug): New function.
4921 (gdb_bfd_open): Add debug logging.
4922 (gdb_bfd_ref): Likewise.
4923 (gdb_bfd_unref): Likewise.
4924 (_initialize_gdb_bfd): Add new set/show command.
4925 * NEWS: Mention new command.
4926
4927 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4928
4929 * gdb_bfd.c (bfd_sharing): New variable.
4930 (show_bfd_sharing): New function.
4931 (gdb_bfd_open): Check bfd_sharing variable.
4932 (_initialize_gdb_bfd): Add new set/show command.
4933 * NEWS: Mention new command.
4934
4935 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4938 field.
4939 (struct gdb_bfd_cache_search): Likewise.
4940 (eq_bfd): Compare the size, inode, and device id fields.
4941 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4942 (gdb_bfd_ref): Likewise.
4943 (gdb_bfd_unref): Likewise.
4944
4945 2015-08-18 Pedro Alves <palves@redhat.com>
4946
4947 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4948 target implements to_always_non_stop_p, call it.
4949 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4950 (x86_linux_create_target): Install it as to_always_non_stop_p
4951 method.
4952
4953 2015-08-17 Doug Evans <dje@google.com>
4954
4955 * ui-out.c (default_ui_out_impl): Add comment.
4956
4957 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4958
4959 * d-exp.y (type_aggregate_p): New function.
4960 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4961 (classify_inner_name): Likewise.
4962 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4963
4964 2015-08-15 Doug Evans <xdje42@gmail.com>
4965
4966 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4967 updated.
4968 (add_psymbol_to_list): Ditto.
4969
4970 2015-08-15 Doug Evans <xdje42@gmail.com>
4971
4972 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4973 updated. Call end_psymtab_common.
4974 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4975 end_psymtab_common.
4976 (build_type_psymtabs_reader): Ditto.
4977 * psympriv.h (sort_pst_symbols): Delete.
4978 (end_psymtab_common): Declare.
4979 * psymtab.c (sort_pst_symbols): Make static.
4980 (end_psymtab_common): New function.
4981 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4982
4983 2015-08-15 Doug Evans <xdje42@gmail.com>
4984
4985 * defs.h (LANGUAGE_BITS): Define.
4986 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4987 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4988 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4989 (minimal_symbol_type): Add nr_minsym_types.
4990 (MINSYM_TYPE_BITS): Define.
4991 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4992 (domain_enum_tag): Add NR_DOMAINS.
4993 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4994 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4995
4996 2015-08-15 Doug Evans <xdje42@gmail.com>
4997
4998 * objfiles.h: Whitespace cleanup.
4999 * psympriv.h: Whitespace cleanup.
5000 * psymtab.c: Whitespace/coding convention cleanup.
5001
5002 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
5003
5004 * inferior.c (detach_inferior_command): Don't call
5005 any_thread_of_process when pid is 0.
5006 (kill_inferior_command): Likewise.
5007
5008 2015-08-14 Doug Evans <xdje42@gmail.com>
5009
5010 PR gdb/11833
5011 * NEWS: Document new /s modifier for the disassemble command.
5012 * cli/cli-cmds.c (disassemble_command): Add support for /s.
5013 (_initialize_cli_cmds): Update online docs of disassemble command.
5014 * disasm.c: #include "source.h".
5015 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5016 All uses updated.
5017 (dis_line_entry): New struct.
5018 (hash_dis_line_entry, eq_dis_line_entry): New functions.
5019 (allocate_dis_line_table): New functions.
5020 (maybe_add_dis_line_entry, line_has_code_p): New functions.
5021 (dump_insns): New arg end_pc. All callers updated.
5022 (do_mixed_source_and_assembly_deprecated): Renamed from
5023 do_mixed_source_and_assembly. All callers updated.
5024 (do_mixed_source_and_assembly): New function.
5025 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5026 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5027 DISASSEMBLY_SOURCE. All uses updated.
5028 (DISASSEMBLY_SOURCE): New macro.
5029 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5030
5031 2015-08-14 Keith Seitz <keiths@redhat.com>
5032
5033 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5034 `typename' to `type_name' to avoid C++ reserved word.
5035
5036 2015-08-14 Keith Seitz <keiths@redhat.com>
5037
5038 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5039 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5040 silence ARI errors.
5041
5042 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5043
5044 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5045 xstrprintf instead of malloc and sprintf.
5046 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5047 (lex_one_token): Likewise.
5048
5049 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5050
5051 * solib-svr4.c (read_program_header): Add base_addr argument to
5052 report the runtime address of the segment.
5053 (find_program_interpreter): Update read_program_header call to pass
5054 a NULL pointer for the new argument.
5055 (scan_dyntag): Add ptr_addr argument to report the runtime address
5056 of the tag payload.
5057 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5058 read_program_header to get the base address of the dynamic segment.
5059 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5060 read_program_header.
5061 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5062
5063 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5064
5065 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5066
5067 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5068
5069 * d-exp.y (%union): Add voidval.
5070 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5071 name in the lexing stage.
5072 (PostfixExpression): Move symbol completion handling in grammar here
5073 from PrimaryExpression.
5074 (PrimaryExpression): Move routines to handle resolving identifier
5075 tokens in the grammar here from push_expression_name.
5076 (IdentifierExp): Remove the handling of alternating '.' and identifier
5077 tokens.
5078 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5079 (BasicType): Remove C-style typename rules.
5080 (d_type_from_name, d_module_from_name, push_variable)
5081 (push_fieldnames, push_type_name, push_module_name)
5082 (push_expression_name): Remove.
5083 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5084 (token_and_value): New type.
5085 (token_fifo, popping, name_obstack): New globals.
5086 (classify_name): New function.
5087 (classify_inner_name): Likewise.
5088 (yylex): Likewise.
5089 (d_parse): Initialize token_fifo, popping and name_obstack.
5090
5091 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5092
5093 * Makefile.in (SFILES): Add d-namespace.c.
5094 (COMMON_OBS): Add d-namespace.o.
5095 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5096 la_lookup_symbol_nonlocal callback function pointer.
5097 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5098 (d_lookup_nested_symbol): New declaration.
5099 * d-namespace.c: New file.
5100
5101 2015-08-13 Pedro Alves <palves@redhat.com>
5102
5103 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5104 cleanup after the decref cleanup, not before.
5105
5106 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5107
5108 * ada-lang.c: Include namespace.h
5109 (aux_add_nonlocal_symbols): Fix a function name in comment.
5110 (ada_add_block_renamings): New.
5111 (add_nonlocal_symbols): Add global renamings handling.
5112 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5113 to...
5114 (ada_add_all_symbols): ... this new function.
5115 (ada_add_block_symbols): Try to match the input name against the
5116 "using directives list", perform a recursive symbol lookup on
5117 the matched declarations.
5118 * block.h (struct block): Move the_namespace to top-level as
5119 namespace_info. Remove the language_specific field.
5120 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5121 * buildsym.h (using_directives): Rename into...
5122 (local_using_directives): ... this.
5123 (global_using_directives): New.
5124 (struct context_stack): Rename the using_directives field into
5125 local_using_directives.
5126 * buildsym.c (finish_block_internal): Deal with the proper
5127 using directives repository (local or global).
5128 (prepare_for_building): Reset local_using_directives. Assert
5129 that there is no pending global using directive.
5130 (reset_symtab_globals): Reset global_using_directives and
5131 local_using_directives.
5132 (end_symtab_get_static_block): Don't ignore symtabs that have
5133 only using directives.
5134 (push_context): Update references to local_using_directives.
5135 (buildsym_init): Do not reset using_directives.
5136 * cp-support.c: Include namespace.h.
5137 * cp-support.h (struct using_direct): Move to namespace.h.
5138 (cp_add_using_directives): Move to namespace.h.
5139 * cp-namespace.c: Include namespace.h
5140 (cp_add_using_directive): Move to namespace.c, rename it to
5141 add_using_directive, add a "using_directives" argument and use
5142 it as the pending using directives repository. All callers
5143 updated.
5144 * dwarf2read.c (using_directives): New.
5145 (read_import_statement): Call using_directives.
5146 (read_func_scope): Update references to local_using_directives.
5147 (read_lexical_block_scope): Likewise.
5148 (read_namespace): Update the heading comment, call
5149 using_directives.
5150 * namespace.h: New file.
5151 * namespace.c: New file.
5152 * Makefile.in (SFILES): Add namespace.c.
5153 (COMMON_OBS): Add namespace.o
5154
5155 2015-08-12 Joel Brobecker <brobecker@adacore.com>
5156
5157 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5158 compute RETADDR.
5159
5160 2015-08-12 Keith Seitz <keiths@redhat.com>
5161
5162 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5163 reserved C++ keyword "explicit" to "explicit_loc".
5164 * breakpoint.c (create_overlay_event_breakpoint)
5165 (create_longjmp_master_breakpoint)
5166 (create_std_terminate_master_breakpoint)
5167 (create_exception_master_breakpoint, update_static_tracepoint):
5168 Rename reserved C++ keyword "explicit" to "explicit_loc".
5169 * completer.c (collect_explicit_location_matches)
5170 (explicit_location_completer): Rename reserved C++ keyword
5171 "explicit" to "explicit_loc".
5172 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5173 (canonicalize_linespec, create_sals_line_offset)
5174 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5175 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5176 "explicit" to "explicit_loc".
5177 * location.c (struct event_location) <explicit>: Rename to
5178 "explicit_loc".
5179 (initialize_explicit_location, new_explicit_location)
5180 (explicit_location_to_string_internal, explicit_location_to_linespec):
5181 Rename reserved C++ keyword "explicit" to "explicit_loc".
5182 * location.h (explicit_location_to_string)
5183 (explicit_location_to_linespec, initialize_explicit_location)
5184 (new_explicit_location): Rename reserved C++ keyword "explicit"
5185 to "explicit_loc".
5186 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5187 keyword "explicit" to "explicit_loc".
5188
5189 2015-08-12 Keith Seitz <keiths@redhat.com>
5190
5191 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5192 and only call decode_line_1 when it is non-NULL.
5193
5194 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
5195
5196 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5197 location address is not meaningful.
5198 (breakpoint_address_is_meaningful): Update comment.
5199
5200 2015-08-11 Keith Seitz <keiths@redhat.com>
5201
5202 * NEWS: Mention explicit locations.
5203 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5204 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5205 (_initialize_breakpoint): Update documentation for
5206 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5207
5208 2015-08-11 Keith Seitz <keiths@redhat.com>
5209
5210 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5211 explicit locations, options "--source", "--function",
5212 "--label", and "--line".
5213
5214 2015-08-11 Keith Seitz <keiths@redhat.com>
5215
5216 * completer.c: Include location.h.
5217 (enum match_type): New enum.
5218 (location_completer): Rename to ...
5219 (linespec_completer): ... this.
5220 (collect_explicit_location_matches, backup_text_ptr)
5221 (explicit_location_completer): New functions.
5222 (location_completer): "New" function; handle linespec
5223 and explicit location completions.
5224 (complete_line_internal): Remove all location completer-specific
5225 handling.
5226 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5227 (find_toplevel_char): Export.
5228 (linespec_parse_line_offset): Export.
5229 Issue error if STRING is not numerical.
5230 (gdb_get_linespec_parser_quote_characters): New function.
5231 * linespec.h (linespec_parse_line_offset): Declare.
5232 (get_gdb_linespec_parser_quote_characters): Declare.
5233 (is_ada_operator): Declare.
5234 (find_toplevel_char): Declare.
5235 (linespec_lexer_lex_keyword): Declare.
5236 * location.c (explicit_to_event_location): New function.
5237 (explicit_location_lex_one): New function.
5238 (string_to_explicit_location): New function.
5239 (string_to_event_location): Handle explicit locations.
5240 * location.h (explicit_to_event_location): Declare.
5241 (string_to_explicit_location): Declare.
5242
5243 2015-08-11 Keith Seitz <keiths@redhat.com>
5244
5245 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5246 linespec into explicit location.
5247 * breakpoint.c (create_overlay_breakpoint)
5248 (create_longjmp_master_breakpoint)
5249 (create_std_terminate_master_breakpoint)
5250 (create_exception_master_breakpoint): Convert linespec into explicit
5251 location.
5252 (update_static_tracepoint): Convert linespec into explicit location.
5253 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5254 location.h.
5255 (struct linespec) <expression, expr_pc, source_filename>
5256 <function_name, label_name, line_offset>: Replace with ...
5257 <explicit>: ... this.
5258 <is_linespec>: New member.
5259 (PARSER_EXPLICIT): New accessor macro.
5260 (undefined_label_error): New function.
5261 (source_file_not_found_error): New function.
5262 (linespec_parse_basic): The parser result is now an explicit location.
5263 Use PARSER_EXPLICIT to access it.
5264 Use undefined_label_error.
5265 (canonicalize_linespec): Convert canonical linespec into explicit
5266 location.
5267 Move string representation of location to explicit_location_to_linespec
5268 and use it and explicit_location_to_string to save string
5269 representations of the canonical location.
5270 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5271 explicit location. Update all references.
5272 (convert_explicit_location_to_sals): New function.
5273 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5274 result's explicit location.
5275 (linespec_state_constructor): Initialize is_linespec.
5276 Use PARSER_EXPLICIT.
5277 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5278 result.
5279 (event_location_to_sals): For linespec locations, set is_linespec.
5280 Handle explicit locations.
5281 (decode_objc): 'ls' contains an explicit location now. Update all
5282 references.
5283 (symtabs_from_filename): Use source_file_not_found_error.
5284 * location.c (struct event_location.u) <explicit>: New member.
5285 (initialize_explicit_location): New function.
5286 (initialize_event_location): Initialize explicit locations.
5287 (new_explicit_location, get_explicit_location)
5288 (get_explicit_location_const): New functions.
5289 (explicit_to_string_internal): New function; most of contents moved
5290 from canonicalize_linespec.
5291 (explicit_location_to_string): New function.
5292 (explicit_location_to_linespec): New function.
5293 (copy_event_location, delete_event_location)
5294 (event_location_to_string_const, event_location_empty_p): Handle
5295 explicit locations.
5296 * location.h (enum offset_relative_sign, struct line_offset): Move
5297 here from linespec.h.
5298 (enum event_location_type): Add EXPLICIT_LOCATION.
5299 (struct explicit_location): New structure.
5300 (explicit_location_to_string): Declare.
5301 (explicit_location_to_linespec): Declare.
5302 (new_explicit_location, get_explicit_locationp
5303 (get_explicit_location_const, initialize_explicit_location): Declare.
5304
5305 2015-08-11 Keith Seitz <keiths@redhat.com>
5306
5307 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5308 linespec for stap probe to probe location.
5309 * breakpoint.c (create_longjmp_master_breakpoint)
5310 (create_exception_master_breakpoint): Likewise.
5311 (break_command_1): Remove local variable `arg_cp'.
5312 Check location type to set appropriate breakpoint ops methods.
5313 (trace_command): Likewise.
5314 * linespec.c (event_location_to_sals): Assert on probe locations.
5315 * location.c (EL_PROBE): Add macro definition.
5316 (new_probe_location, get_probe_location): New functions.
5317 (copy_event_location, delete_event_location, event_location_to_string)
5318 (string_to_event_location, event_location_empty_p): Handle probe
5319 locations.
5320 * location.h (enum event_location_type): Add PROBE_LOCATION.
5321 (new_probe_location, get_probe_location): Declare.
5322 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5323 Convert linespec into probe location.
5324
5325 2015-08-11 Keith Seitz <keiths@redhat.com>
5326
5327 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5328 Convert linespec to address location.
5329 * linespec.c (canonicalize_linespec): Do not handle address
5330 locations here.
5331 (convert_address_location_to_sals): New function; contents moved
5332 from ...
5333 (convert_linespc_to_sals): ... here.
5334 (parse_linespec): Remove address locations from linespec grammar.
5335 Remove handling of address locations.
5336 (linespec_lex_to_end): Remove handling of address linespecs.
5337 (event_location_to_sals): Handle ADDRESS_LOCATION.
5338 (linespec_expression_to_pc): Export.
5339 * linespec.h (linespec_expression_to_pc): Add declaration.
5340 * location.c (struct event_location.u) <address>: New member.
5341 (new_address_location, get_address_location): New functions.
5342 (copy_event_location, delete_event_location, event_location_to_string)
5343 (string_to_event_location, event_location_empty_p): Handle address
5344 locations.
5345 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5346 (new_address_location, get_address_location): Declare.
5347 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5348 to address location.
5349 * spu-tdep.c (spu_catch_start): Likewise.
5350
5351 2015-08-11 Keith Seitz <keiths@redhat.com>
5352
5353 * ax-gdb.c: Include location.h.
5354 (agent_command_1) Use linespec location instead of address
5355 string.
5356 * break-catch-throw.c: Include location.h.
5357 (re_set_exception_catchpoint): Use linespec locations instead
5358 of address strings.
5359 * breakpoint.c: Include location.h.
5360 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5361 (create_std_terminate_master_breakpoint)
5362 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5363 Use linespec location instead of address string.
5364 (print_breakpoint_location): Use locations and
5365 event_location_to_string.
5366 Print extra_string for pending locations for non-MI streams.
5367 (print_one_breakpoint_location): Use locations and
5368 event_location_to_string.
5369 (init_raw_breakpoint_without_location): Initialize b->location.
5370 (create_thread_event_breakpoint): Use linespec location instead of
5371 address string.
5372 (init_breakpoint_sal): Likewise.
5373 Only save extra_string if it is non-NULL and not the empty string.
5374 Use event_location_to_string instead of `addr_string'.
5375 Constify `p' and `endp'.
5376 Use skip_spaces_const/skip_space_const instead of non-const versions.
5377 Copy the location into the breakpoint.
5378 If LOCATION is NULL, save the breakpoint address as a linespec location
5379 instead of an address string.
5380 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5381 event_location. All uses updated.
5382 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5383 (parse_breakpoint_sals): Use locations instead of address strings.
5384 Remove check for empty linespec with conditional.
5385 Refactor.
5386 (decode_static_tracepoint_spec): Make argument const and update
5387 function.
5388 (create_breakpoint): Change `arg' to a struct event_location and
5389 rename.
5390 Remove `copy_arg' and `addr_start'.
5391 If EXTRA_STRING is empty, set it to NULL.
5392 Don't populate `canonical' for pending breakpoints.
5393 Pass `extra_string' to find_condition_and_thread.
5394 Clear `extra_string' if `rest' was NULL.
5395 Do not error with "garbage after location" if setting a dprintf
5396 breakpoint.
5397 Copy the location into the breakpoint instead of an address string.
5398 (break_command_1): Use string_to_event_location and pass this to
5399 create_breakpoint instead of an address string.
5400 Check against `arg_cp' for a probe linespec.
5401 (dprintf_command): Use string_to_event_location and pass this to
5402 create_breakpoint instead of an address string.
5403 Throw an exception if no format string was specified.
5404 (print_recreate_ranged_breakpoint): Use event_location_to_string
5405 instead of address strings.
5406 (break_range_command, until_break_command)
5407 (init_ada_exception_breakpoint): Use locations instead
5408 of address strings.
5409 (say_where): Print out extra_string for pending locations.
5410 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5411 the breakpoint.
5412 (base_breakpoint_create_sals_from_location): Use struct event_location
5413 instead of address string.
5414 Remove `addr_start' and `copy_arg' parameters.
5415 (base_breakpoint_decode_location): Use struct event_location instead of
5416 address string.
5417 (bkpt_re_set): Use locations instead of address strings.
5418 Use event_location_empty_p to check for unset location.
5419 (bkpt_print_recreate): Use event_location_to_string instead of
5420 an address string.
5421 Print out extra_string for pending locations.
5422 (bkpt_create_sals_from_location, bkpt_decode_location)
5423 (bkpt_probe_create_sals_from_location): Use struct event_location
5424 instead of address string.
5425 (bkpt_probe_decode_location): Use struct event_location instead of
5426 address string.
5427 (tracepoint_print_recreate): Use event_location_to_string to
5428 recreate the tracepoint.
5429 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5430 (tracepoint_probe_create_sals_from_location)
5431 (tracepoint_probe_decode_location): Use struct event_location
5432 instead of address string.
5433 (dprintf_print_recreate): Use event_location_to_string to recreate
5434 the dprintf.
5435 (dprintf_re_set): Remove check for valid/missing format string.
5436 (strace_marker_create_sals_from_location)
5437 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5438 (update_static_tracepoint): Use struct event_location instead of
5439 address string.
5440 (location_to_sals): Likewise.
5441 Pass `extra_string' to find_condition_and_thread.
5442 For newly resolved pending breakpoint locations, clear the location's
5443 string representation.
5444 Assert that the breakpoint's condition string is NULL when
5445 condition_not_parsed.
5446 (breakpoint_re_set_default, create_sals_from_location_default)
5447 (decode_location_default, trace_command, ftrace_command)
5448 (strace_command, create_tracepoint_from_upload): Use locations
5449 instead of address strings.
5450 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5451 Use struct event_location instead of address string.
5452 Update all uses.
5453 <decode_location>: Likewise.
5454 (struct breakpoint) <addr_string>: Change to struct event_location
5455 and rename `location'.
5456 <addr_string_range_end>: Change to struct event_location and rename
5457 `location_range_end'.
5458 (create_breakpoint): Use struct event_location instead of address
5459 string.
5460 * cli/cli-cmds.c: Include location.h.
5461 (edit_command, list_command): Use locations instead of address strings.
5462 * elfread.c: Include location.h.
5463 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5464 * guile/scm-breakpoint.c: Include location.h.
5465 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5466 (gdbscm_register_breakpoint): Use locations instead of address
5467 strings.
5468 * linespec.c: Include location.h.
5469 (struct ls_parser) <stream>: Change to const char *.
5470 (PARSER_STREAM): Update.
5471 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5472 keywords must be followed by whitespace.
5473 (canonicalize_linespec): Save a linespec location into `canonical'.
5474 Save a canonical linespec into `canonical'.
5475 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5476 All uses updated.
5477 Update function description.
5478 (linespec_parser_new): Initialize `parser'.
5479 Update initialization of parsing stream.
5480 (event_location_to_sals): New function.
5481 (decode_line_full): Change `argptr' to a struct event_location and
5482 rename it `location'.
5483 Use locations instead of address strings.
5484 Call event_location_to_sals instead of parse_linespec.
5485 (decode_line_1): Likewise.
5486 (decode_line_with_current_source, decode_line_with_last_displayed)
5487 Use locations instead of address strings.
5488 (decode_objc): Likewise.
5489 Change `argptr' to const char * and rename `arg'.
5490 (destroy_linespec_result): Delete the linespec result's location
5491 instead of freeing the address string.
5492 * linespec.h (struct linespec_result) <addr_string>: Change to
5493 struct event_location and rename to ...
5494 <location>: ... this.
5495 (decode_line_1, decode_line_full): Change `argptr' to struct
5496 event_location. All callers updated.
5497 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5498 (mi_cmd_break_insert_1): Use locations instead of address strings.
5499 Throw an error if there was "garbage" at the end of the specified
5500 linespec.
5501 * probe.c: Include location.h.
5502 (parse_probes): Change `argptr' to struct event_location.
5503 Use event locations instead of address strings.
5504 * probe.h (parse_probes): Change `argptr' to struct event_location.
5505 * python/py-breakpoint.c: Include location.h.
5506 (bppy_get_location): Constify local variable `str'.
5507 Use event_location_to_string.
5508 (bppy_init): Use locations instead of address strings.
5509 * python/py-finishbreakpoint.c: Include location.h.
5510 (bpfinishpy_init): Remove local variable `addr_str'.
5511 Use locations instead of address strings.
5512 * python/python.c: Include location.h.
5513 (gdbpy_decode_line): Use locations instead of address strings.
5514 * remote.c: Include location.h.
5515 (remote_download_tracepoint): Use locations instead of address
5516 strings.
5517 * spu-tdep.c: Include location.h.
5518 (spu_catch_start): Remove local variable `buf'.
5519 Use locations instead of address strings.
5520 * tracepoint.c: Include location.h.
5521 (scope_info): Use locations instead of address strings.
5522 (encode_source_string): Constify parameter `src'.
5523 * tracepoint.h (encode_source_string): Likewise.
5524
5525 2015-08-11 Keith Seitz <keiths@redhat.com>
5526
5527 * Makefile.in (SFILES): Add location.c.
5528 (HFILES_NO_SRCDIR): Add location.h.
5529 (COMMON_OBS): Add location.o.
5530 * linespec.c (linespec_lex_to_end): New function.
5531 * linespec.h (linespec_lex_to_end): Declare.
5532 * location.c: New file.
5533 * location.h: New file.
5534
5535 2015-08-11 Keith Seitz <keiths@redhat.com>
5536
5537 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5538 Renamed to create_sals_from_location.
5539 <decode_linespec>: Renamed to decode_location.
5540 Update all callers.
5541 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5542 (create_sals_from_location_default): ... this.
5543 (addr_string_to_sals): Renamed to ...
5544 (location_to_sals): ... this.
5545 (decode_linespec_default): Renamed to ...
5546 (decode_location_default): ... this.
5547 (base_breakpoint_create_sals_from_address): Renamed to ...
5548 (base_breakpoint_create_sals_from_location): ... this.
5549 (bkpt_create_sals_from_address): Renamed to ...
5550 (bkpt_create_sals_from_location): ... this.
5551 (bkpt_decode_linespec): Renamed to ...
5552 (bkpt_decode_location): ... this.
5553 (bkpt_probe_create_sals_from_address): Renamed to ...
5554 (bkpt_probe_create_sals_from_location): ... this.
5555 (tracepoint_create_sals_from_address): Renamed to ...
5556 (tracepoint_create_sals_from_location): ... this.
5557 (tracepoint_decode_linespec): Renamed to ...
5558 (tracepoint_decode_location): ... this.
5559 (tracepoint_probe_create_sals_from_address): Renamed to ...
5560 (tracepoint_probe_create_sals_from_location): ... this.
5561 (tracepoint_probe_decode_linespec): Renamed to ...
5562 (tracepoint_probe_decode_location): ... this.
5563 (strace_marker_create_sals_from_address): Renamed to ...
5564 (strace_marker_create_sals_from_location): ... this.
5565 (decode_linespec_default): Renamed to ...
5566 (decode_location_default): ... this.
5567
5568 2015-08-10 Doug Evans <dje@google.com>
5569 Keith Seitz <keiths@redhat.com>
5570
5571 PR gdb/17960
5572 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5573 make_file_symbol_completion_list and made static.
5574 (make_file_symbol_completion_list): New function.
5575
5576 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5577
5578 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5579 trailing new-line at end of warning message.
5580 (proceed): Add i18n marker to error messages.
5581
5582 2015-08-07 Pedro Alves <palves@redhat.com>
5583
5584 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5585
5586 2015-08-07 Pedro Alves <palves@redhat.com>
5587
5588 * s390-linux-tdep.c (is_non_branch_ril)
5589 (s390_displaced_step_copy_insn): New functions.
5590 (s390_displaced_step_fixup): Update comment.
5591 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5592 gdbarch_displaced_step_copy_insn hook.
5593
5594 2015-08-07 Pedro Alves <palves@redhat.com>
5595
5596 * infrun.c (displaced_step_prepare_throw): Return -1 if
5597 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5598 comment.
5599 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5600 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5601 in file.
5602 (ppc_displaced_step_copy_insn): New function.
5603 (ppc_displaced_step_fixup): Update comment.
5604 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5605 gdbarch_displaced_step_copy_insn hook.
5606 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5607 NULL return.
5608 * gdbarch.h: Regenerate.
5609
5610 2015-08-07 Pedro Alves <palves@redhat.com>
5611
5612 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5613 field.
5614 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5615 Return false if dispaced stepping failed before.
5616 (resume): Pass the current inferior to
5617 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5618 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5619 displaced_stepping_failed flag, and fall back to an in-line
5620 step-over.
5621
5622 2015-08-07 Pedro Alves <palves@redhat.com>
5623
5624 * darwin-nat.c (darwin_stop): Rename to ...
5625 (darwin_interrupt): ... this.
5626 (_initialize_darwin_inferior): Adjust.
5627 * gnu-nat.c (gnu_stop): Delete.
5628 (gnu_target): Don't install gnu_stop.
5629 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5630 (inf_ptrace_interrupt): ... this.
5631 (inf_ptrace_target): Adjust.
5632 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5633 target_stop.
5634 * linux-nat (linux_nat_stop): Rename to ...
5635 (linux_nat_interrupt): ... this.
5636 (linux_nat_stop): Reimplement.
5637 (linux_nat_add_target): Install linux_nat_interrupt.
5638 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5639 (nto_handle_sigint_twice): ... this.
5640 (nto_interrupt): Rename to ...
5641 (nto_handle_sigint): ... this. Call target_interrupt instead of
5642 target_stop.
5643 (procfs_wait): Adjust.
5644 (procfs_stop): Rename to ...
5645 (procfs_interrupt): ... this.
5646 (init_procfs_targets): Adjust.
5647 * procfs.c (procfs_stop): Rename to ...
5648 (procfs_interrupt): ... this.
5649 (procfs_target): Adjust.
5650 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5651 (m32r_interrupt): ... this.
5652 (init_m32r_ops): Adjust.
5653 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5654 (gdbsim_interrupt_inferior): ... this.
5655 (gdbsim_stop): Rename to ...
5656 (gdbsim_interrupt): ... this.
5657 (gdbsim_cntrl_c): Adjust.
5658 (init_gdbsim_ops): Adjust.
5659 * remote.c (sync_remote_interrupt): Adjust comments.
5660 (remote_stop_as): Rename to ...
5661 (remote_interrupt_as): ... this.
5662 (remote_stop): Adjust comment.
5663 (remote_interrupt): New function.
5664 (init_remote_ops): Install remote_interrupt.
5665 * target.c (target_interrupt): New function.
5666 * target.h (struct target_ops) <to_interrupt>: New field.
5667 (target_interrupt): New declaration.
5668 * windows-nat.c (windows_stop): Rename to ...
5669 (windows_interrupt): ... this.
5670 * target-delegates.c: Regenerate.
5671
5672 2015-08-07 Pedro Alves <palves@redhat.com>
5673
5674 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5675 threads" as alternative to "switching back to stepped thread".
5676
5677 2015-08-07 Pedro Alves <palves@redhat.com>
5678
5679 * NEWS: Mention "maint set/show target-non-stop".
5680 * breakpoint.c (update_global_location_list): Check
5681 target_is_non_stop_p instead of non_stop.
5682 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5683 * infrun.c (show_can_use_displaced_stepping)
5684 (can_use_displaced_stepping_p, start_step_over_inferior):
5685 Likewise.
5686 (internal_resume_ptid): New function.
5687 (resume): Use it.
5688 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5689 all-stop mode but the target is always in non-stop mode, start all
5690 the other threads that are implicitly resumed too.
5691 (for_each_just_stopped_thread, fetch_inferior_event)
5692 (adjust_pc_after_break, stop_all_threads): Check
5693 target_is_non_stop_p instead of non_stop.
5694 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5695 with the target always in non-stop mode.
5696 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5697 instead of non_stop.
5698 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5699 instead of non_stop.
5700 (keep_going_stepped_thread): Use internal_resume_ptid.
5701 (stop_waiting): If in all-stop mode, and the target is in non-stop
5702 mode, stop all threads.
5703 (keep_going_pass): Likewise, when starting a new in-line step-over
5704 sequence.
5705 * linux-nat.c (get_pending_status, select_event_lwp)
5706 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5707 target_is_non_stop_p instead of non_stop.
5708 (linux_nat_always_non_stop_p): New function.
5709 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5710 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5711 * target-delegates.c: Regenerate.
5712 * target.c (target_is_non_stop_p): New function.
5713 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5714 (maint_set_target_non_stop_command)
5715 (maint_show_target_non_stop_command): New functions.
5716 (_initilize_target): Install "maint set/show target-non-stop"
5717 commands.
5718 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5719 (target_non_stop_enabled): New declaration.
5720 (target_is_non_stop_p): New declaration.
5721
5722 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5723
5724 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5725 has a pending status, return true.
5726 * gdbthread.h: Include target/waitstatus.h.
5727 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5728 stop_pc>: New fields.
5729 (struct thread_info) <resumed>: New field.
5730 (set_resumed): Declare.
5731 * infrun.c: Include "event-loop.h".
5732 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5733 (infrun_async): New function.
5734 (clear_step_over_info): Add debug output.
5735 (displaced_step_in_progress_any_inferior): New function.
5736 (displaced_step_fixup): New returns int.
5737 (start_step_over): Handle in-line step-overs too. Assert the
5738 thread is marked resumed.
5739 (resume_cleanups): Clear the thread's resumed flag.
5740 (resume): Set the thread's resumed flag. Return early if the
5741 thread has a pending status. Allow stepping a breakpoint with no
5742 signal.
5743 (proceed): Adjust to check 'resumed' instead of 'executing'.
5744 (clear_proceed_status_thread): If the thread has a pending status,
5745 and that status is a finished step, discard the pending status.
5746 (clear_proceed_status): Don't clear step_over_info here.
5747 (random_pending_event_thread, do_target_wait): New functions.
5748 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5749 do_target_wait.
5750 (wait_one): New function.
5751 (THREAD_STOPPED_BY): New macro.
5752 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5753 (thread_stopped_by_hw_breakpoint): New functions.
5754 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5755 functions.
5756 (handle_inferior_event): Also call set_resumed(false) on all
5757 threads implicitly stopped by the event.
5758 (restart_threads, resumed_thread_with_pending_status): New
5759 functions.
5760 (finish_step_over): If we were doing an in-line step-over before,
5761 and no longer are after trying to start a new step-over, restart
5762 all threads. If we have multiple threads with pending events,
5763 save the current event and go through the event loop again.
5764 (handle_signal_stop): Return early if finish_step_over returns
5765 false.
5766 <random signal>: If we get a signal while stepping over a
5767 breakpoint in-line in non-stop mode, restart all threads. Clear
5768 step_over_info before delivering the signal.
5769 (keep_going_stepped_thread): Use internal_error instead of
5770 gdb_assert. Mark the thread as resumed.
5771 (keep_going_pass_signal): Assert the thread isn't already resumed.
5772 If some other thread is doing an in-line step-over, defer the
5773 resume. If we just started a new in-line step-over, stop all
5774 threads. Don't clear step_over_info.
5775 (infrun_async_inferior_event_handler): New function.
5776 (_initialize_infrun): Create async event handler with
5777 infrun_async_inferior_event_handler as callback.
5778 (infrun_async): New declaration.
5779 * target.c (target_async): New function.
5780 * target.h (target_async): Declare macro and readd as function
5781 declaration.
5782 * target/waitstatus.h (enum target_stop_reason)
5783 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5784 * thread.c (new_thread): Clear the new waitstatus field.
5785 (set_resumed): New function.
5786
5787 2015-08-07 Pedro Alves <palves@redhat.com>
5788
5789 * infrun.c (keep_going_stepped_thread): New function, factored out
5790 from ...
5791 (switch_back_to_stepped_thread): ... here.
5792
5793 2015-08-07 Pedro Alves <palves@redhat.com>
5794
5795 * infrun.c (currently_stepping): Extend intro comment.
5796 * target.h (target_resume): Extend intro comment.
5797
5798 2015-08-07 Pedro Alves <palves@redhat.com>
5799
5800 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5801 of inferior_ptid. If the stepped thread vanished, return 0
5802 instead of resuming here. Use reset_ecs. Print the prev_pc and
5803 the current stop_pc in log message. Clear trap_expected if the
5804 thread advanced. Don't pass currently_stepping to
5805 do_target_resume.
5806
5807 2015-08-07 Pedro Alves <palves@redhat.com>
5808
5809 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5810 * infrun.c (struct execution_control_state): Move higher up in the
5811 file.
5812 (reset_ecs): New function.
5813 (start_step_over): Now returns int. Rewrite to use
5814 keep_going_pass_signal instead of manually starting a displaced step.
5815 (resume): Don't call set_running here. If displaced stepping
5816 can't start now, clear trap_expected.
5817 (find_thread_needs_step_over): Delete function.
5818 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5819 If the current thread needs a step over, push it in the step-over
5820 chain. Don't set insert breakpoints nor call resume directly
5821 here. Instead rewrite to use start_step_over and
5822 keep_going_pass_signal.
5823 (finish_step_over): New function.
5824 (handle_signal_stop): Call finish_step_over instead of
5825 start_step_over.
5826 (switch_back_to_stepped_thread): If the event thread needs another
5827 step-over do that first. Use start_step_over.
5828 (keep_going_pass_signal): New function, factored out from ...
5829 (keep_going): ... here.
5830 (_initialize_infrun): Comment moved here.
5831 * thread.c (set_running_thread): New function.
5832 (set_running, finish_thread_state): Use set_running_thread.
5833
5834 2015-08-07 Pedro Alves <palves@redhat.com>
5835
5836 * gdbthread.h (struct thread_info) <step_over_prev,
5837 step_over_next>: New fields.
5838 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5839 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5840 declarations.
5841 * infrun.c (struct displaced_step_request): Delete.
5842 (struct displaced_step_inferior_state) <step_request_queue>:
5843 Delete field.
5844 (displaced_step_prepare): Assert that trap_expected is set. Use
5845 thread_step_over_chain_enqueue. Split starting a new displaced
5846 step to ...
5847 (start_step_over): ... this new function.
5848 (resume): Assert the thread isn't waiting for a step over already.
5849 (proceed): Assert the thread isn't waiting for a step over
5850 already.
5851 (infrun_thread_stop_requested): Adjust to remove threads from the
5852 embedded step-over chain.
5853 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5854 displaced_step_fixup.
5855 (handle_signal_stop): Call start_step_over after
5856 displaced_step_fixup.
5857 * infrun.h (step_over_queue_head): New declaration.
5858 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5859 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5860 (thread_step_over_chain_enqueue)
5861 (thread_step_over_chain_remove): New functions.
5862 (delete_thread_1): Remove thread from the step-over chain.
5863
5864 2015-08-07 Pedro Alves <palves@redhat.com>
5865
5866 * infrun.c (thread_still_needs_step_over): Rename to ...
5867 (thread_still_needs_step_over_bp): ... this.
5868 (enum step_over_what): New.
5869 (thread_still_needs_step_over): Reimplement.
5870
5871 2015-08-07 Pedro Alves <palves@redhat.com>
5872
5873 * remote.c (remote_wait_as): If not waiting for a stop reply,
5874 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5875 requested, don't block waiting forever.
5876
5877 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5878
5879 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5880 waitstatus pointers instead of an ecs. Adjust.
5881 (handle_inferior_event): Adjust caller.
5882
5883 2015-08-07 Pedro Alves <palves@redhat.com>
5884
5885 * infrun.c (handle_inferior_event): If we get
5886 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5887 mode, mark all threads of the exiting process as not-executing.
5888 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5889 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5890 exiting process, if inferior_ptid still points at a process.
5891 * thread.c (struct current_thread_cleanup) <next>: New field.
5892 (current_thread_cleanup_chain): New global.
5893 (restore_current_thread_ptid_changed): New function.
5894 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5895 current_thread_cleanup_chain list.
5896 (make_cleanup_restore_current_thread): Add the cleanup data to the
5897 current_thread_cleanup_chain list.
5898 (_initialize_thread): Install restore_current_thread_ptid_changed
5899 as thread_ptid_changed observer.
5900
5901 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5902
5903 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5904 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5905 smaller than expected.
5906
5907 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5908
5909 * stack.c (get_frame_language): Moved ...
5910 * frame.c (get_frame_language): ... to here.
5911 * language.h (get_frame_language): Declaration moved to frame.h.
5912 * frame.h: Add language.h include, for language enum.
5913 (get_frame_language): Declaration moved from language.h.
5914 * language.c: Add frame.h include.
5915 * top.c: Add frame.h include.
5916 * symtab.h (struct obj_section): Declare.
5917 (struct cmd_list_element): Declare.
5918
5919 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5920
5921 * language.c (show_language_command): Find selected frame before
5922 asking for the language of that frame.
5923 (set_language_command): Likewise.
5924 * language.h (get_frame_language): Add frame parameter.
5925 * stack.c (get_frame_language): Add frame parameter, assert
5926 parameter is not NULL, update comment and reindent.
5927 * top.c (check_frame_language_change): Pass the selected frame
5928 into get_frame_language.
5929
5930 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5931
5932 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5933 (pt_btrace_insn_flags): New.
5934 (ftrace_add_pt): Call pt_btrace_insn_flags.
5935 * btrace.h (btrace_insn_flag): New.
5936 (btrace_insn) <flags>: New.
5937 * record-btrace.c (btrace_insn_history): Print insn prefix.
5938 * NEWS: Announce it.
5939
5940 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5941
5942 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5943 * configure: Regenerate.
5944
5945 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5946
5947 * Makefile.in (LIBICONV): Define.
5948 (CLIBS): Add LIBICONV.
5949 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5950 * configure: Regenerate.
5951
5952 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5953 Pedro Alves <palves@redhat.com>
5954
5955 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5956 (arm_set_abi): Likewise.
5957 * ax-general.c (ax_print): Likewise.
5958 * c-exp.y (exp : string_exp): Likewise.
5959 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5960 (do_compile_dwarf_expr_to_c): Likewise.
5961 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5962 Likewise.
5963 * dwarf2expr.c (execute_stack_op): Likewise.
5964 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5965 (disassemble_dwarf_expression): Likewise.
5966 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5967 (read_array_order): Likewise.
5968 (abbrev_table_read_table): Likewise.
5969 (read_attribute_value): Likewise.
5970 (skip_unknown_opcode): Likewise.
5971 (dwarf_decode_macro_bytes): Likewise.
5972 (dwarf_decode_macros): Likewise.
5973 * eval.c (value_f90_subarray): Likewise.
5974 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5975 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5976 * infrun.c (handle_command): Likewise.
5977 * memory-map.c (memory_map_start_memory): Likewise.
5978 * osabi.c (set_osabi): Likewise.
5979 * parse.c (operator_length_standard): Likewise.
5980 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5981 single return point.
5982 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5983 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5984 (gdbpy_lookup_global_symbol): Likewise.
5985 * record-full.c (record_full_restore): Likewise.
5986 * regcache.c (regcache_register_status): Likewise.
5987 (regcache_raw_read): Likewise.
5988 (regcache_cooked_read): Likewise.
5989 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5990 * symtab.c (initialize_ordinary_address_classes): Likewise.
5991 * target-debug.h (target_debug_print_signals): Likewise.
5992 * utils.c (do_restore_current_language): Likewise.
5993
5994 2015-08-06 Clem Dickey <clemd@acm.org>
5995
5996 PR python/17136
5997 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5998
5999 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6000
6001 * complaints.c (enum complaint_series): Add newlines and remove
6002 out of date comment.
6003 (struct complaints) <series>: Change type to enum
6004 complaint_series and remove out of date comment.
6005 (symfile_complaint_hook): Use equivalent enum value
6006 ISOLATED_MESSAGE instead of 0.
6007
6008 2015-08-06 Pedro Alves <palves@redhat.com>
6009
6010 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6011 returned > 0.
6012
6013 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6014
6015 * common/agent.c (symbol_list) <required>: Remove.
6016
6017 2015-08-06 Pedro Alves <palves@redhat.com>
6018
6019 * target/waitstatus.h (enum target_stop_reason)
6020 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6021
6022 2015-08-05 Pedro Alves <palves@redhat.com>
6023 Joel Brobecker <brobecker@adacore.com>
6024
6025 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
6026 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6027 case where BS->STOP is not set.
6028
6029 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
6030
6031 * nat/gdb_thread_db.h: Add copyright header.
6032 Protect against multiple inclusion.
6033
6034 2015-08-05 Yao Qi <yao.qi@linaro.org>
6035
6036 * aarch64-linux-nat.c (get_thread_id): Remove.
6037 (debug_reg_change_callback): Call ptid_get_lwp instead of
6038 get_thread_id.
6039 (fetch_gregs_from_thread): Likewise.
6040 (store_gregs_to_thread): Likewise.
6041 (fetch_fpregs_from_thread): Likewise.
6042 (store_fpregs_to_thread): Likewise.
6043 (aarch64_linux_get_debug_reg_capacity): Likewise.
6044 * arm-linux-nat.c (get_thread_id): Remove.
6045 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6046 * xtensa-linux-nat.c (get_thread_id): Remove.
6047 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6048 * arm-linux-nat.c (get_thread_id): Remove.
6049 (GET_THREAD_ID): Remove.
6050 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6051 (store_fpregs, fetch_regs, store_regs): Likewise.
6052 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6053 (fetch_vfp_regs, store_vfp_regs): Likewise.
6054 (arm_linux_read_description): Likewise.
6055 (arm_linux_get_hwbp_cap): Likewise.
6056 * xtensa-linux-nat.c (get_thread_id): Remove.
6057 (GET_THREAD_ID): Remove.
6058 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6059 GET_THREAD_ID.
6060
6061 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6062
6063 * python/py-linetable.c: Fix case of Linetable to LineTable
6064 in docstrings and code comments.
6065 * python/py-symtab.c: Same.
6066
6067 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6068
6069 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6070
6071 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6072
6073 PR gdb/18767
6074 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6075 use.
6076
6077 2015-08-04 Pedro Alves <palves@redhat.com>
6078
6079 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6080 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6081 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6082 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6083 (td_thr_validate_ftype, td_thr_get_info_ftype)
6084 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6085 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6086 New typedefs.
6087 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6088 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6089 local macros and use them instead of verbose_dlsym and dlsym
6090 calls.
6091
6092 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6093
6094 * nios2-tdep.h: Include opcode/nios2.h here.
6095 (NIOS2_CDX_OPCODE_SIZE): New.
6096 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6097 * nios2-tdep.c: Don't include opcode/nios2.h here.
6098 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6099 4-byte read fails.
6100 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6101 (nios2_match_addi, nios2_match_orhi): Likewise.
6102 (nios2_match_stw, nios2_match_ldw): Likewise.
6103 (nios2_match_rdctl): Likewise.
6104 (nios2_match_stwm, nios2_match_ldwm): New.
6105 (nios2_match_branch): Add cases for R2 encodings.
6106 (nios2_match_jmpi, nios2_match_calli): Likewise.
6107 (nios2_match_jmpr, nios2_match_callr): Likewise.
6108 (nios2_match_break, nios2_match_trap): Likewise.
6109 (nios2_in_epilogue_p): Add R2 support.
6110 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6111 prologues.
6112 (nios2_breakpoint_from_pc): Handle R2 instructions.
6113 (nios2_get_next_pc): Likewise. Adjust call to
6114 tdep->syscall_next_pc.
6115 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6116 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6117 instruction field macros instead of literal hex values.
6118 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6119 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6120 Use size field from OP instead of assuming all instructions
6121 are the same size.
6122 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6123
6124 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6125
6126 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6127 variable warning with some compilers.
6128
6129 2015-08-03 Yao Qi <yao.qi@linaro.org>
6130
6131 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6132 in comment. Replace "rw" with "type".
6133 (arm_linux_remove_watchpoint): Change type of "rw" to
6134 "enum target_hw_bp_type".
6135
6136 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6137
6138 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6139 lookup_symbol.
6140 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6141 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6142 * mt-tdep.c (mt_skip_prologue): Likewise.
6143 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6144
6145 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6146
6147 * ada-exp.y (write_object_renaming): Replace struct
6148 ada_symbol_info with struct block_symbol. Update field
6149 references accordingly.
6150 (block_lookup, select_possible_type_sym): Likewise.
6151 (find_primitive_type): Likewise. Also update call to
6152 ada_lookup_symbol to extract the symbol itself.
6153 (write_var_or_type, write_name_assoc): Likewise.
6154 * ada-lang.h (struct ada_symbol_info): Remove.
6155 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6156 struct block_symbol.
6157 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6158 (ada_lookup_symbol): Return struct block_symbol instead of a
6159 mere symbol.
6160 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6161 with struct block_symbol.
6162 (resolve_subexp, ada_resolve_function, sort_choices,
6163 user_select_syms, is_nonfunction, add_defn_to_vec,
6164 num_defns_collected, defns_collected,
6165 symbols_are_identical_enums, remove_extra_symbols,
6166 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6167 ada_lookup_symbol_list, ada_iterate_over_symbols,
6168 ada_lookup_encoded_symbol, get_var_value): Likewise.
6169 (ada_lookup_symbol): Return a block_symbol instead of a mere
6170 symbol. Replace struct ada_symbol_info with struct
6171 block_symbol.
6172 (ada_lookup_symbol_nonlocal): Likewise.
6173 (standard_lookup): Make block passing explicit through
6174 lookup_symbol_in_language.
6175 * ada-tasks.c (get_tcb_types_info): Update the calls to
6176 lookup_symbol_in_language to extract the mere symbol out of the
6177 returned value.
6178 (ada_tasks_inferior_data_sniffer): Likewise.
6179 * ax-gdb.c (gen_static_field): Likewise for the call to
6180 lookup_symbol.
6181 (gen_maybe_namespace_elt): Deal with struct block_symbol from
6182 lookup functions.
6183 (gen_expr): Likewise.
6184 * c-exp.y: Likewise. Remove uses of block_found.
6185 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6186 (classify_name): Likewise. Rename the "sym" local variable to
6187 "bsym".
6188 * c-valprint.c (print_unpacked_pointer): Likewise.
6189 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6190 "sym" parameter from struct symbol * to struct block_symbol.
6191 Use it to remove uses of block_found. Deal with struct
6192 block_symbol from lookup functions.
6193 (gcc_convert_symbol): Likewise. Update the call to
6194 convert_symbol_sym.
6195 * compile/compile-object-load.c (compile_object_load): Deal with
6196 struct block_symbol from lookup functions.
6197 * cp-namespace.c (cp_lookup_nested_symbol_1,
6198 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6199 cp_search_static_and_baseclasses,
6200 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6201 cp_lookup_symbol_imports_or_template,
6202 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6203 lookup_namespace_scope, cp_lookup_nonlocal,
6204 find_symbol_in_baseclass): Return struct block_symbol instead of
6205 mere symbols and deal with struct block_symbol from lookup
6206 functions.
6207 * cp-support.c (inspect_type, replace_typedefs,
6208 cp_lookup_rtti_type): Deal with struct block_symbol from
6209 lookup functions.
6210 * cp-support.h (cp_lookup_symbol_nonlocal,
6211 cp_lookup_symbol_from_namespace,
6212 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
6213 Return struct block_symbol instead of mere symbols.
6214 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6215 push_module_name):
6216 Deal with struct block_symbol from lookup functions. Remove
6217 uses of block_found.
6218 * eval.c (evaluate_subexp_standard): Update call to
6219 cp_lookup_symbol_namespace.
6220 * f-exp.y: Deal with struct block_symbol from lookup functions.
6221 Remove uses of block_found.
6222 (yylex): Likewise.
6223 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6224 lookup_enum, lookup_template_type, check_typedef): Deal with
6225 struct block_symbol from lookup functions.
6226 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6227 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6228 (gdbscm_lookup_global_symbol): Likewise.
6229 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6230 * go-exp.y: Likewise. Remove uses of block_found.
6231 (package_name_p, classify_packaged_name, classify_name):
6232 Likewise.
6233 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6234 * jv-exp.y (push_variable): Likewise.
6235 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6236 * language.c (language_bool_type): Likewise.
6237 * language.h (struct language_defn): Update
6238 la_lookup_symbol_nonlocal to return a struct block_symbol rather
6239 than a mere symbol.
6240 * linespec.c (find_label_symbols): Deal with struct block_symbol
6241 from lookup functions.
6242 * m2-exp.y: Likewise. Remove uses of block_found.
6243 (yylex): Likewise.
6244 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6245 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
6246 * p-exp.y: Likewise. Remove uses of block_found.
6247 (yylex): Likewise.
6248 * p-valprint.c (pascal_val_print): Likewise.
6249 * parse.c (write_dollar_variable): Likewise. Remove uses of
6250 block_found.
6251 * parser-defs.h (struct symtoken): Turn the SYM field into a
6252 struct block_symbol.
6253 * printcmd.c (address_info): Deal with struct block_symbol from
6254 lookup functions.
6255 * python/py-frame.c (frapy_read_var): Likewise.
6256 * python/py-symbol.c (gdbpy_lookup_symbol,
6257 gdbpy_lookup_global_symbol): Likewise.
6258 * skip.c (skip_function_command): Likewise.
6259 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
6260 block_symbol instead of a mere symbol.
6261 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6262 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6263 * solib.c (solib_global_lookup): Likewise.
6264 * solist.h (solib_global_lookup): Likewise.
6265 (struct target_so_ops): Update lookup_lib_global_symbol to
6266 return a struct block_symbol rather than a mere symbol.
6267 * source.c (select_source_symtab): Deal with struct block_symbol
6268 from lookup functions.
6269 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6270 Likewise.
6271 * symfile.c (set_initial_language): Likewise.
6272 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
6273 block_symbol.
6274 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6275 (struct symbol_cache_slot): Turn the FOUND field into a struct
6276 block_symbol.
6277 (block_found): Remove.
6278 (eq_symbol_entry): Update to deal with struct block_symbol in
6279 cache slots.
6280 (symbol_cache_lookup): Return a struct block_symbol rather than
6281 a mere symbol.
6282 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6283 appropriately the cache slots. Update callers.
6284 (symbol_cache_dump): Update cache slots handling to the type
6285 change.
6286 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6287 lookup_symbol_aux, lookup_local_symbol,
6288 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6289 lookup_symbol_in_objfile_symtabs,
6290 lookup_symbol_in_objfile_from_linkage_name,
6291 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6292 lookup_symbol_in_static_block, lookup_static_symbol,
6293 lookup_global_symbol):
6294 Return a struct block_symbol rather than a mere symbol. Deal
6295 with struct block_symbol from other lookup functions. Remove
6296 uses of block_found.
6297 (lookup_symbol_in_block): Remove uses of block_found.
6298 (struct global_sym_lookup_data): Turn the RESULT field into a
6299 struct block_symbol.
6300 (lookup_symbol_global_iterator_cb): Update references to the
6301 RESULT field.
6302 (search_symbols): Deal with struct block_symbol from lookup
6303 functions.
6304 * symtab.h (struct block_symbol): New structure.
6305 (block_found): Remove.
6306 (lookup_symbol_in_language, lookup_symbol,
6307 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6308 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6309 lookup_global_symbol_from_objfile): Return a struct block_symbol
6310 rather than just a mere symbol. Update comments to remove
6311 mentions of block_found.
6312 * valops.c (find_function_in_inferior,
6313 value_struct_elt_for_reference, value_maybe_namespace_elt,
6314 value_of_this): Deal with struct block_symbol from lookup
6315 functions.
6316 * value.c (value_static_field, value_fn_field): Likewise.
6317
6318 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6319
6320 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6321 instead of integer.
6322
6323 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6324 Pedro Alves <palves@redhat.com>
6325
6326 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6327 type or value instead of integer.
6328 (aarch64_linux_insert_watchpoint): Likewise.
6329 (aarch64_linux_remove_watchpoint): Likewise.
6330 * ada-lang.c (ada_op_print_tab): Likewise.
6331 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6332 (amd64_linux_syscall_record_common): Likewise.
6333 * arch-utils.c (target_byte_order_user): Likewise.
6334 (default_byte_order): Likewise.
6335 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6336 (arm_linux_get_hwbp_type): Likewise.
6337 (arm_linux_hw_watchpoint_initialize): Likewise.
6338 (arm_linux_insert_watchpoint): Likewise.
6339 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6340 (arm_linux_syscall_record): Likewise.
6341 * breakpoint.c (update_watchpoint): Likewise.
6342 (breakpoint_here_p): Likewise.
6343 (bpstat_print): Likewise.
6344 (enable_breakpoint_disp): Likewise.
6345 * c-lang.c (c_op_print_tab): Likewise.
6346 * cli/cli-decode.c (add_info_alias): Likewise.
6347 * d-lang.c (d_op_print_tab): Likewise.
6348 * eval.c (evaluate_subexp_standard): Likewise.
6349 * f-exp.y (dot_ops): Likewise.
6350 (f77_keywords): Likewise.
6351 * f-lang.c (f_op_print_tab): Likewise.
6352 * go-lang.c (go_op_print_tab): Likewise.
6353 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6354 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6355 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6356 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6357 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6358 (struct scm_from_stringn_data): Likewise.
6359 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6360 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6361 (ia64_linux_remove_watchpoint): Likewise.
6362 (ia64_linux_can_use_hw_breakpoint): Likewise.
6363 * infrun.c (print_stop_event): Likewise.
6364 * jv-lang.c (java_op_print_tab): Likewise.
6365 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6366 * linux-nat.h (struct lwp_info): Likewise.
6367 * linux-thread-db.c (enable_thread_event): Likewise.
6368 * m2-lang.c (m2_op_print_tab): Likewise.
6369 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6370 (mi_cmd_stack_list_variables): Likewise.
6371 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6372 * mi/mi-out.c (mi_table_begin): Likewise.
6373 (mi_table_header): Likewise.
6374 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6375 (mips_linux_insert_watchpoint): Likewise.
6376 (mips_linux_remove_watchpoint): Likewise.
6377 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6378 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6379 (mips_linux_watch_type_to_irw): Likewise.
6380 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6381 (procfs_insert_hw_watchpoint): Likewise.
6382 (procfs_remove_hw_watchpoint): Likewise.
6383 (procfs_hw_watchpoint): Likewise.
6384 (procfs_can_use_hw_breakpoint): Likewise.
6385 (procfs_remove_hw_watchpoint): Likewise.
6386 (procfs_insert_hw_watchpoint): Likewise.
6387 * p-lang.c (pascal_op_print_tab): Likewise.
6388 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6389 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6390 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6391 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6392 (procfs_insert_watchpoint): Likewise.
6393 (procfs_remove_watchpoint): Likewise.
6394 * psymtab.c (recursively_search_psymtabs): Likewise.
6395 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6396 (m32r_insert_watchpoint): Likewise.
6397 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6398 (mips_insert_watchpoint): Likewise.
6399 (mips_remove_watchpoint): Likewise.
6400 * remote.c (watchpoint_to_Z_packet): Likewise.
6401 (remote_insert_watchpoint): Likewise.
6402 (remote_remove_watchpoint): Likewise.
6403 (remote_check_watch_resources): Likewise.
6404 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6405 (s390_remove_watchpoint): Likewise.
6406 (s390_can_use_hw_breakpoint): Likewise.
6407 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6408 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6409 * target.h (struct target_ops): Likewise.
6410 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6411 * ui-out.c (struct ui_out_hdr): Likewise.
6412 (append_header_to_list): Likewise.
6413 (get_next_header): Likewise.
6414 (verify_field): Likewise.
6415 (ui_out_begin): Likewise.
6416 (ui_out_field_int): Likewise.
6417 (ui_out_field_fmt_int): Likewise.
6418 (ui_out_field_skip): Likewise.
6419 (ui_out_field_string): Likewise.
6420 (ui_out_field_fmt): Likewise.
6421 * varobj.c (new_variable): Likewise.
6422 * x86-nat.c (x86_insert_watchpoint): Likewise.
6423 (x86_remove_watchpoint): Likewise.
6424 (x86_can_use_hw_breakpoint): Likewise.
6425 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6426 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6427 previously anonymous enumeration type..
6428 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6429 value.
6430 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6431 (target_debug_print_enum_bptype): New.
6432 * target-delegates.c: Regenerate.
6433
6434 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6435
6436 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6437 already says and disallow non-stack memory writes in the prologue.
6438
6439 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6440
6441 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6442 reflect how current GCC emits stack overflow checks. Match
6443 both trap and break instructions for backward compatbility.
6444 Disallow other trap and break instructions in the prologue.
6445
6446 2015-07-30 Pedro Alves <palves@redhat.com>
6447
6448 PR threads/18600
6449 * linux-nat.c (wait_lwp): Report to the core when thread group
6450 leader exits.
6451
6452 2015-07-30 Pedro Alves <palves@redhat.com>
6453 Simon Marchi <simon.marchi@ericsson.com>
6454
6455 PR threads/18600
6456 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6457 mark the new thread as resumed. Remove STOPPING parameter.
6458 (wait_lwp): Adjust call to linux_handle_extended_wait.
6459 (linux_nat_filter_event): Adjust call to
6460 linux_handle_extended_wait.
6461 (resume_stopped_resumed_lwps): Add debug output.
6462
6463 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6464
6465 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6466 isize argument.
6467 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6468 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6469 gdbarch_fast_tracepoint_valid_at.
6470 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6471 * gdbarch.h: Regenerate.
6472 * gdbarch.c: Regenerate.
6473 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6474 argument. Do not set it.
6475 * remote.c (remote_download_tracepoint): Adjust call to
6476 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6477 the instruction length.
6478
6479 2015-07-30 Yao Qi <yao.qi@linaro.org>
6480
6481 * arm-tdep.h (enum gdb_regnum): Move it to ...
6482 * arch/arm.h: ... here. New file.
6483 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6484
6485 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6486
6487 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6488 Change its type to int *.
6489 (decode_br): Rename link argument to is_blr. Change its type to
6490 int *.
6491 (decode_cb): Rename op argument to is_cbnz. Change its type to
6492 int *.
6493 (decode_tb): Rename op argument to is_tbnz. Change its type to
6494 int *. Set is_tbnz to either 1 or 0.
6495 (aarch64_analyze_prologue): Change type of is_link to int. Add
6496 new variables is_cbnz and is_tbnz. Adjust call to
6497 aarch64_decode_cb and aarch64_decode_tb.
6498
6499 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6500
6501 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6502 parameter.
6503 (mips_linux_new_thread): Likewise.
6504 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6505
6506 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6507
6508 * top.c: Include "tui/tui.h".
6509 (undo_terminal_modifications_before_exit): New static function.
6510 (quit_force): Use it.
6511
6512 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6513
6514 * target.c (terminal_state): Initialize to terminal_is_ours.
6515
6516 2015-07-29 Yao Qi <yao.qi@linaro.org>
6517
6518 PR record/18691
6519 * dcache.c (dcache_read_memory_partial): Call
6520 raw_memory_xfer_partial.
6521 * target.c (raw_memory_xfer_partial): Make it non-static.
6522 * target.h (raw_memory_xfer_partial): Declare.
6523
6524 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6525
6526 * c-valprint.c (c_val_print_array): Consider addressable memory
6527 unit size.
6528 (c_val_print_ptr): Likewise.
6529 (c_val_print_int): Likewise.
6530 * findvar.c (read_frame_register_value): Likewise.
6531 * valarith.c (find_size_for_pointer_math): Likewise.
6532 (value_ptrdiff): Likewise.
6533 (value_subscripted_rvalue): Likewise.
6534 * valops.c (read_value_memory): Likewise (and rename variables).
6535 (value_assign): Likewise.
6536 (value_repeat): Likewise.
6537 (value_array): Likewise.
6538 (value_slice): Likewise.
6539 * valprint.c (generic_val_print_ptr): Likewise.
6540 (generic_val_print_enum): Likewise.
6541 (generic_val_print_bool): Likewise.
6542 (generic_val_print_int): Likewise.
6543 (generic_val_print_char): Likewise.
6544 (generic_val_print_float): Likewise.
6545 (generic_val_print_decfloat): Likewise.
6546 (generic_val_print_complex): Likewise.
6547 (val_print_scalar_formatted): Likewise.
6548 (val_print_array_elements): Likewise.
6549 * value.c (set_value_parent): Likewise.
6550 (value_contents_copy_raw): Likewise.
6551 (set_internalvar_component): Likewise.
6552 (value_primitive_field): Likewise.
6553 (value_fetch_lazy): Likewise.
6554 * value.h (read_value_memory): Update comment.
6555
6556 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6557
6558 * value.c (get_value_arch): New function.
6559 * value.h (get_value_arch): New declaration.
6560
6561 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6562
6563 * value.c (struct value): Update comments.
6564
6565 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6566
6567 * gdbtypes.c (type_length_units): New function.
6568 * gdbtypes.h (type_length_units): New declaration.
6569 (struct type) <length>: Update comment.
6570
6571 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6572
6573 * valprint.c (generic_val_print): Factor out complex
6574 printing code to ...
6575 (generic_val_print_complex): ... this new function.
6576
6577 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6578
6579 * valprint.c (generic_val_print): Factor out decfloat
6580 printing code to ...
6581 (generic_val_print_decfloat): ... this new function.
6582
6583 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6584
6585 * valprint.c (generic_val_print): Factor out float
6586 printing code to ...
6587 (generic_val_print_float): ... this new function.
6588
6589 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6590
6591 * valprint.c (generic_val_print): Factor out char
6592 printing code to ...
6593 (generic_val_print_char): ... this new function.
6594
6595 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6596
6597 * valprint.c (generic_val_print): Factor out integer
6598 printing code to ...
6599 (generic_val_print_int): ... this new function.
6600
6601 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6602
6603 * valprint.c (generic_val_print): Factor out bool
6604 printing code to ...
6605 (generic_val_print_bool): ... this new function.
6606
6607 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * valprint.c (generic_val_print): Factor out function/method
6610 printing code to ...
6611 (generic_val_print_func): ... this new function.
6612
6613 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6614
6615 * valprint.c (generic_val_print): Factor out flags
6616 printing code to ...
6617 (generic_val_print_flags): ... this new function.
6618
6619 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6620
6621 * valprint.c (generic_val_print): Factor out enum
6622 printing code to ...
6623 (generic_val_print_enum): ... this new function.
6624
6625 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6626
6627 * valprint.c (generic_val_print): Factor out reference
6628 printing code to ...
6629 (generic_val_print_ref): ... this new function.
6630
6631 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6632
6633 * valprint.c (generic_val_print): Factor out memberptr
6634 printing code to ...
6635 (generic_val_print_memberptr): ... this new function.
6636
6637 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6638
6639 * valprint.c (generic_val_print): Factor out pointer
6640 printing code to ...
6641 (generic_val_print_ptr): ... this new function.
6642
6643 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6644
6645 * valprint.c (generic_val_print): Factor out array
6646 printing code to ...
6647 (generic_val_print_array): ... this new function.
6648
6649 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6650
6651 * valprint.c (generic_val_print): Factor out
6652 print_unpacked_pointer code to ...
6653 (print_unpacked_pointer): ... this new function.
6654
6655 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6656
6657 * event-top.c (handle_sigterm): Don't inspect
6658 target_can_async_p. Always set the quit flag and always mark
6659 the async signal handler.
6660
6661 2015-07-27 Yao Qi <yao.qi@linaro.org>
6662
6663 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6664
6665 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6666
6667 * remote.c (read_ptid): Return null_ptid when no thread id
6668 is found.
6669 (remote_current_thread): Add log warning for malformed
6670 qC reply.
6671 (remote_start_remote): Add log warning when current thread
6672 not found.
6673
6674 2015-07-24 Pedro Alves <palves@redhat.com>
6675
6676 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6677 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6678 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6679
6680 2015-07-24 Pedro Alves <palves@redhat.com>
6681
6682 PR gdb/18717
6683 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6684 is resumed, and extend the debug log.
6685
6686 2015-07-24 Pedro Alves <palves@redhat.com>
6687
6688 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6689
6690 2015-07-24 Pedro Alves <palves@redhat.com>
6691
6692 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6693 sys/ptrace.h.
6694 * alpha-linux-nat.c: Likewise.
6695 * amd64-linux-nat.c: Likewise.
6696 * arm-linux-nat.c: Likewise.
6697 * hppa-linux-nat.c: Likewise.
6698 * i386-linux-nat.c: Likewise.
6699 * ia64-linux-nat.c: Likewise.
6700 * linux-fork.c: Likewise.
6701 * linux-nat.c: Likewise.
6702 * m32r-linux-nat.c: Likewise.
6703 * m68klinux-nat.c: Likewise.
6704 * mips-linux-nat.c: Likewise.
6705 * nat/linux-btrace.c: Likewise.
6706 * nat/linux-ptrace.c: Likewise.
6707 * nat/linux-ptrace.h
6708 * nat/mips-linux-watch.c: Likewise.
6709 * nat/x86-linux-dregs.c: Likewise.
6710 * ppc-linux-nat.c: Likewise.
6711 * s390-linux-nat.c: Likewise.
6712 * spu-linux-nat.c: Likewise.
6713 * tilegx-linux-nat.c: Likewise.
6714 * x86-linux-nat.c: Likewise.
6715 * xtensa-linux-nat.c: Likewise.
6716
6717 2015-07-24 Pedro Alves <palves@redhat.com>
6718
6719 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6720 __ptrace_request as first parameter type instead of int.
6721 (PTRACE_TYPE_ARG1): Define.
6722 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6723 that casts first argument to PTRACE_TYPE_ARG1.
6724 * config.in: Regenerate.
6725 * configure: Regenerate.
6726
6727 2015-07-24 Pedro Alves <palves@redhat.com>
6728
6729 * gdb_ptrace.h: Move ...
6730 * nat/gdb_ptrace.h: ... here.
6731 * inf-ptrace.c: Adjust.
6732
6733 2015-07-24 Pedro Alves <palves@redhat.com>
6734
6735 * acinclude.m4: Include ptrace.m4.
6736 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6737 * ptrace.m4: ... to this new file.
6738
6739 2015-07-23 Doug Evans <dje@google.com>
6740
6741 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6742 (load_cu): Handle dummy CUs.
6743 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6744 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6745
6746 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6747
6748 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6749 documentation to say that it returns a list rather than
6750 a FrozenSet.
6751 (linetable_object_methods): Update the docstring of the
6752 "source_line" entry.
6753
6754 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6755
6756 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6757 type to the recursive call instead of the original (maybe
6758 TYPE_CODE_TYPEDEF) type.
6759
6760 2015-07-23 Yao Qi <yao.qi@linaro.org>
6761
6762 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6763 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6764 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6765
6766 2015-07-21 Yao Qi <yao.qi@linaro.org>
6767
6768 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6769 Move it to nat/aarch64-linux-hw-point.c.
6770 (aarch64_linux_child_post_startup_inferior): Update.
6771 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6772 New function.
6773 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6774 Declare it.
6775
6776 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6777
6778 * common/btrace-common.c (btrace_data_append): Change case label.
6779
6780 2015-07-20 Yao Qi <yao.qi@linaro.org>
6781
6782 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6783 Re-indent the code.
6784 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6785 "unsigned long long".
6786
6787 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6788
6789 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6790 to be set for SEC_ALLOC sections too.
6791
6792 2015-07-17 Yao Qi <yao.qi@linaro.org>
6793
6794 * Makefile.in (HFILES_NO_SRCDIR): Add
6795 nat/aarch64-linux-hw-point.h.
6796 (aarch64-linux-hw-point.o): New rule.
6797 * nat/aarch64-linux-hw-point.h: New file.
6798 * nat/aarch64-linux-hw-point.c: New file.
6799 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6800 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6801 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6802 (AARCH64_HWP_ALIGNMENT): Likewise.
6803 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6804 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6805 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6806 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6807 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6808 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6809 (struct aarch64_debug_reg_state): Likewise.
6810 (struct arch_lwp_info): Likewise.
6811 (aarch64_linux_set_debug_regs): Likewise.
6812 (aarch64_notify_debug_reg_change): Remove static.
6813 (aarch64_align_watchpoint): Likewise.
6814 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6815 (aarch64_watchpoint_length): Likewise.
6816 (aarch64_point_encode_ctrl_reg): Likewise
6817 (aarch64_point_is_aligned): Likewise.
6818 (aarch64_dr_state_insert_one_point): Likewise.
6819 (aarch64_dr_state_remove_one_point): Likewise.
6820 (aarch64_handle_breakpoint): Likewise.
6821 (aarch64_handle_aligned_watchpoint): Likewise.
6822 (aarch64_handle_unaligned_watchpoint): Likewise.
6823 (aarch64_handle_watchpoint): Likewise.
6824 * config/aarch64/linux.mh (NAT_FILE): Add
6825 aarch64-linux-hw-point.o.
6826
6827 2015-07-17 Yao Qi <yao.qi@linaro.org>
6828
6829 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6830 state and don't call aarch64_get_debug_reg_state. All callers
6831 update.
6832 (aarch64_linux_insert_hw_breakpoint): Call
6833 aarch64_get_debug_reg_state earlier.
6834 (aarch64_linux_remove_hw_breakpoint): Likewise.
6835 (aarch64_handle_aligned_watchpoint): Add argument state and
6836 don't call aarch64_get_debug_reg_state. All callers update.
6837 (aarch64_handle_unaligned_watchpoint): Likewise.
6838 (aarch64_handle_watchpoint): Add argument state.
6839 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6840 earlier.
6841 (aarch64_linux_remove_watchpoint): Likewise.
6842
6843 2015-07-17 Yao Qi <yao.qi@linaro.org>
6844
6845 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6846 debug_printf.
6847 (aarch64_handle_unaligned_watchpoint): Likewise.
6848
6849 2015-07-17 Yao Qi <yao.qi@linaro.org>
6850
6851 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6852 argument type's type to 'enum target_hw_bp_type'.
6853 (aarch64_dr_state_remove_one_point): Likewise.
6854 (aarch64_handle_breakpoint): Likewise.
6855 (aarch64_linux_insert_hw_breakpoint): Likewise.
6856 (aarch64_linux_remove_hw_breakpoint): Likewise.
6857 (aarch64_handle_aligned_watchpoint): Likewise.
6858
6859 2015-07-17 Yao Qi <yao.qi@linaro.org>
6860
6861 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6862 ptid_get_pid instead of get_thread_id.
6863
6864 2015-07-17 Yao Qi <yao.qi@linaro.org>
6865
6866 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6867 (add_current_inferior_and_thread): Don't initialise ptid.
6868
6869 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6870
6871 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6872 unavailable if invalid.
6873
6874 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6875
6876 Revert the previous 6 commits:
6877 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6878 Move gdb_regex* to common/
6879 Prepare linux_find_memory_regions_full & co. for move
6880 Move linux_find_memory_regions_full & co.
6881 gdbserver build-id attribute generator
6882 Validate symbol file using build-id
6883
6884 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6885 Jan Kratochvil <jan.kratochvil@redhat.com>
6886
6887 Validate symbol file using build-id.
6888 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6889 and 'show validate-build-id'. Add build-id attribute.
6890 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6891 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6892 * solib-frv.c (_initialize_frv_solib): Ditto.
6893 * solib-spu.c (set_spu_solib_ops): Ditto.
6894 * solib-svr4.c: Include rsp-low.h.
6895 (NOTE_GNU_BUILD_ID_NAME): New define.
6896 (svr4_validate): New function.
6897 (svr4_copy_library_list): Duplicate field build_id.
6898 (library_list_start_library): Parse 'build-id' attribute.
6899 (svr4_library_attributes): Add 'build-id' attribute.
6900 (_initialize_svr4_solib): Assign validate value.
6901 * solib-target.c (solib.h): Include.
6902 (_initialize_solib_target): Assign validate value.
6903 * solib.c (validate_build_id, show_validate_build_id): New.
6904 (solib_map_sections): Use ops->validate.
6905 (clear_so): Free build_id.
6906 (default_solib_validate): New function.
6907 (_initialize_solib): Add "validate-build-id".
6908 * solib.h (default_solib_validate): New declaration.
6909 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6910 (target_so_ops): New field 'validate'.
6911
6912 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6913 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 gdbserver build-id attribute generator.
6916 * features/library-list-svr4.dtd (library-list-svr4): New
6917 'build-id' attribute.
6918
6919 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6920 Jan Kratochvil <jan.kratochvil@redhat.com>
6921
6922 Move linux_find_memory_regions_full & co.
6923 * linux-tdep.c (nat/linux-maps.h): Include.
6924 (gdb_regex.h): Remove the include.
6925 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6926 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6927 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6928 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6929 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6930 and target/target.h.
6931 (struct smaps_vmflags, read_mapping, decode_vmflags)
6932 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6933 (linux_find_memory_regions_full): Move from linux-tdep.c.
6934 * nat/linux-maps.h (read_mapping): New declaration.
6935 (linux_find_memory_region_ftype, enum filterflags): Moved from
6936 linux-tdep.c.
6937 (linux_find_memory_regions_full): New declaration.
6938 * target.c (target/target-utils.h): Include.
6939 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6940 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6941 definitions to target/target-utils.c.
6942 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6943 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6944 from target.c.
6945 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6946 (read_alloc): New declaration.
6947 (read_stralloc_func_ftype): New typedef.
6948 (read_stralloc): New declaration.
6949 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6950
6951 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6952 Jan Kratochvil <jan.kratochvil@redhat.com>
6953
6954 Prepare linux_find_memory_regions_full & co. for move.
6955 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6956 (linux_find_memory_regions_full): Change signature and prepare
6957 for moving to linux-maps.
6958 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6959 (linux_find_memory_regions_thunk): New.
6960 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6961 (linux_find_memory_regions_gdb): New.
6962 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6963 (linux_make_mappings_corefile_notes): Use
6964 linux_find_memory_regions_gdb.
6965 * target.c (read_alloc_pread_ftype): New typedef.
6966 (target_fileio_read_alloc_1_pread): New function.
6967 (read_alloc): Refactor from target_fileio_read_alloc_1.
6968 (read_stralloc_func_ftype): New typedef.
6969 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6970 (read_stralloc): Refactored from target_fileio_read_stralloc.
6971 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6972
6973 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6974
6975 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6976 common/gdb_regex.h.
6977 (COMMON_OBS): Add gdb_regex.o.
6978 (gdb_regex.o): New.
6979 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6980 --without-included-regex and USE_INCLUDED_REGEX.
6981 * common/gdb_regex.c: New file from utils.c functions.
6982 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6983 file wrapping define name.
6984 * configure: Rebuilt.
6985 * configure.ac (gdb_use_included_regex, --without-included-regex)
6986 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6987 * gdb_regex.h: Move it to common/gdb_regex.h.
6988 * utils.c: Remove include gdb_regex.h.
6989 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6990 (compile_rx_or_error): Move them to common/gdb_regex.c.
6991
6992 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6993 Jan Kratochvil <jan.kratochvil@redhat.com>
6994
6995 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6996 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6997 common/target-utils.h.
6998 (COMMON_OBS): Add target-utils.o.
6999 (linux-maps.o, target-utils.o): New.
7000 * target/target-utils.c: New file.
7001 * target/target-utils.h: New file.
7002 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7003 * config/i386/linux64.mh (NATDEPFILES): Ditto.
7004 * nat/linux-maps.c: New file.
7005 * nat/linux-maps.h: New file.
7006
7007 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
7008 Pedro Alves <palves@redhat.com>
7009
7010 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7011 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7012 (perf_event_read_bts): Change the type of SIZE and READ.
7013 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7014 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
7015 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
7016 mmap page.
7017 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
7018 buffer size to UINT_MAX.
7019 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7020 DATA_TAIL.
7021 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7022 <last_head>: Change type.
7023 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7024 * common/btrace-common.c (btrace_data_append): Change the type of
7025 SIZE.
7026 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
7027 check.
7028
7029 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
7030
7031 * gdbtypes.h (CHECK_TYPEDEF): Remove.
7032 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7033 with check_typedef.
7034 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7035 (ada_array_length): Likewise.
7036 (find_parallel_type_by_descriptive_type): Likewise.
7037 (ada_check_typedef): Likewise.
7038 * arm-tdep.c (arm_return_in_memory): Likewise.
7039 * ax-gdb.c (gen_trace_static_fields): Likewise.
7040 (gen_struct_ref_recursive): Likewise.
7041 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7042 (variable: block COLONCOLON name): Likewise.
7043 (qualified_name: TYPENAME COLONCOLON name): Likewise.
7044 * c-lang.c (classify_type): Likewise.
7045 * c-typeprint.c (c_print_type): Likewise.
7046 (c_print_typedef): Likewise.
7047 (c_type_print_base): Likewise.
7048 * c-valprint.c (c_val_print): Likewise.
7049 * compile/compile-c-types.c (convert_type): Likewise.
7050 * compile/compile-object-load.c (get_out_value_type): Likewise.
7051 * completer.c (add_struct_fields): Likewise.
7052 (expression_completer): Likewise.
7053 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7054 (cp_lookup_nested_symbol_1): Likewise.
7055 (cp_lookup_nested_symbol): Likewise.
7056 * cp-valprint.c (cp_print_value_fields): Likewise.
7057 (cp_print_static_field): Likewise.
7058 * d-valprint.c (d_val_print): Likewise.
7059 * eval.c (evaluate_subexp_standard): Likewise.
7060 (evaluate_subexp_for_sizeof): Likewise.
7061 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7062 * f-typeprint.c (f_type_print_base): Likewise.
7063 * f-valprint.c (f_val_print): Likewise.
7064 * gdbtypes.c (get_discrete_bounds): Likewise.
7065 (create_array_type_with_stride): Likewise.
7066 (type_name_no_tag_or_error): Likewise.
7067 (lookup_struct_elt_type): Likewise.
7068 (get_unsigned_type_max): Likewise.
7069 (internal_type_vptr_fieldno): Likewise.
7070 (set_type_vptr_fieldno): Likewise.
7071 (internal_type_vptr_basetype): Likewise.
7072 (set_type_vptr_basetype): Likewise.
7073 (get_vptr_fieldno): Likewise.
7074 (is_integral_type): Likewise.
7075 (is_scalar_type): Likewise.
7076 (is_scalar_type_recursive): Likewise.
7077 (distance_to_ancestor): Likewise.
7078 (is_unique_ancestor_worker): Likewise.
7079 (check_types_equal): Likewise.
7080 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7081
7082 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7083
7084 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7085 also test for language_d.
7086 (dwarf2_compute_name): Likewise.
7087 (read_func_scope): Likewise.
7088 (read_structure_type): Likewise.
7089 (new_symbol_full): Likewise.
7090 (determine_prefix): Likewise.
7091 (read_import_statement): Use dot as the separator for language_d.
7092 (typename_concat): Likewise, but don't prefix the D main function.
7093
7094 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7095
7096 * nat/linux-namespaces.c (setns): Rename from this ...
7097 (do_setns): ... to this. Support calling setns if it exists.
7098 (mnsh_handle_setns): Call do_setns.
7099
7100 2015-07-13 Yao Qi <yao.qi@linaro.org>
7101
7102 * exec.c (exec_file_attach): Add period at the end of error
7103 message.
7104
7105 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7106
7107 * tui/tui-win.c (window_name_completer): New function.
7108 (focus_completer): Call window_name_completer. All old content
7109 moved into window_name_completer.
7110 (winheight_completer): New function.
7111 (_initialize_tui_win): Rename variable. Add completer to
7112 winheight command. Update doc string on winheight.
7113
7114 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7115
7116 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7117 all nios2 mach variants.
7118
7119 2015-07-10 Kevin Buettner <kevinb@redhat.com>
7120
7121 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7122 of target_read_memory.
7123
7124 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7127 string copy.
7128 (parse_scrolling_args): Likewise.
7129
7130 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7131
7132 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7133 names in this function.
7134
7135 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7136
7137 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7138 (CMD_NAME): Likewise.
7139 (DATA_NAME): Likewise.
7140 (DISASSEM_NAME): Likewise.
7141 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7142 (tui_set_win_height): Likewise.
7143 (parse_scrolling_args): Likewise.
7144
7145 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7146
7147 * record-btrace.c (record_btrace_goto_begin)
7148 (record_btrace_goto_end, record_btrace_goto): Move call to
7149 print_stack_frame ...
7150 (record_btrace_set_replay): ... here. Set stop_pc.
7151 * record-full.c (record_full_goto_entry): Set stop_pc.
7152
7153 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7154
7155 * NEWS: Mention support for tracepoints on aarch64-linux.
7156
7157 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7158
7159 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7160 function. Return 1.
7161 (the_low_target): Install it.
7162
7163 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7164
7165 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7166 * gdb.trace/collection.exp: Likewise.
7167 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7168 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7169 * gdb.trace/report.exp: Likewise.
7170 * gdb.trace/trace-break.exp: Likewise.
7171 * gdb.trace/unavailable.exp: Likewise.
7172 * gdb.trace/while-dyn.exp: Likewise.
7173
7174 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7175
7176 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7177 (aarch64_gen_return_address): New function.
7178 (aarch64_gdbarch_init): Hook it.
7179
7180 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7181
7182 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7183 swallow NOT_AVAILABLE_ERROR.
7184 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7185 available_p is not set.
7186 (aarch64_stub_frame_unwind_stop_reason): New function.
7187 (aarch64_stub_unwind): Install it.
7188
7189 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7190
7191 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7192 field.
7193 (aarch64_make_prologue_cache_1): New function, factored out from
7194 aarch64_make_prologue_cache. Do not allocate cache. Set
7195 available_p.
7196 (aarch64_make_prologue_cache): Reimplement wrapping
7197 aarch64_make_prologue_cache_1, and swallowing
7198 NOT_AVAILABLE_ERROR.
7199 (aarch64_prologue_frame_unwind_stop_reason): New function.
7200 Return UNWIND_UNAVAILABLE if available_p is not set.
7201 (aarch64_prologue_unwind): Install it.
7202 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7203 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7204 frame_id_build_unavailable_stack if available_p is not set.
7205
7206 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7207
7208 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7209 fields.
7210 (aarch64_scan_prologue): Set prev_pc.
7211 (aarch64_make_prologue_cache): Set func.
7212 (aarch64_make_stub_cache): Set prev_pc.
7213 (aarch64_prologue_this_id): Remove local variables id, pc and
7214 func. Read prev_pc and func from cache.
7215 (aarch64_stub_this_id): Read prev_pc from cache.
7216
7217 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7218
7219 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7220 argument this_cache. Remove unused local variables reg and
7221 unwound_fp. Return early if this_cache is already set. Set
7222 this_cache.
7223 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7224
7225 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7226
7227 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7228 New argument this_cache. Return early if this_cache is already
7229 set. Set this_cache.
7230 (aarch64_prologue_this_id): Update call to
7231 aarch64_make_prologue_cache.
7232 (aarch64_prologue_prev_register): Likewise.
7233 (aarch64_normal_frame_base): Likewise.
7234
7235 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * c-valprint.c (c_val_print): Factor out memberptr printing code
7238 from c_val_print to ...
7239 (c_val_print_memberptr): ... this new function.
7240
7241 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7242
7243 * c-valprint.c (c_val_print): Factor out int printing code to ...
7244 (c_val_print_int): ... this new function.
7245
7246 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7247
7248 * c-valprint.c (c_val_print): Factor out struct and union
7249 printing code to ...
7250 (c_val_print_struct): ... this new function ...
7251 (c_val_print_union): ... and this new function.
7252
7253 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7254
7255 * c-valprint.c (c_val_print): Factor out pointer printing code
7256 to ...
7257 (c_val_print_ptr): ... this new function.
7258
7259 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 * c-valprint.c (c_valprint): Factor our array printing code from
7262 c_val_print to ...
7263 (c_val_print_array): ... this new function.
7264
7265 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7266
7267 * c-valprint.c (c_val_print): Factor out pointer printing code
7268 to ...
7269 (print_unpacked_pointer): ... this new function.
7270
7271 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7272
7273 * c-valprint.c (c_val_print): Remove an assignment to i and move
7274 its declaration.
7275
7276 2015-07-09 Yao Qi <yao.qi@linaro.org>
7277
7278 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7279 argument ptid. Update comments. Caller update.
7280
7281 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7282
7283 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7284 mnt packets.
7285
7286 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7287
7288 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7289
7290 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7291
7292 * progspace.c (delete_program_space): Add missing spaces.
7293
7294 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7295
7296 * inferior.c (delete_inferior_1): Rename to ...
7297 (delete_inferior): ..., remove 'silent' parameter, delete
7298 program space when unused and remove call to prune_program_spaces.
7299 Remove the old, unused, delete_inferior.
7300 (delete_inferior_silent): Remove.
7301 (prune_inferiors): Change call from delete_inferior_1 to
7302 delete_inferior and remove 'silent' parameter. Remove call to
7303 prune_program_spaces.
7304 (remove_inferior_command): Idem.
7305 * inferior.h (delete_inferior_1): Rename to...
7306 (delete_inferior): ..., remove 'silent' parameter and remove the
7307 original delete_inferior.
7308 (delete_inferior_silent): Remove.
7309 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7310 delete_inferior_1 to delete_inferior and remove 'silent'
7311 parameter.
7312 * progspace.c (prune_program_spaces): Remove.
7313 (pspace_empty_p): Rename to...
7314 (program_space_empty_p): ... and make non-static.
7315 (delete_program_space): New.
7316 * progspace.h (prune_program_spaces): Remove declaration.
7317 (program_space_empty_p): New declaration.
7318 (delete_program_space): New declaration.
7319 * monitor.c (monitor_close): Replace call to
7320 delete_thread_silent and delete_inferior_silent with
7321 discard_all_inferiors.
7322
7323 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7324
7325 * defs.h (deprecated_register_changed_hook): Remove prototype.
7326 * interps.c (clear_iterpreter_hooks): Remove reference to
7327 deprecated_register_changed_hook.
7328 * top.c (deprecated_register_changed_hook): Remove prototype.
7329 * valops.c (value_assign): Remove reference to
7330 deprecated_register_changed_hook.
7331 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7332 Add comment documenting the function.
7333 (tui_register_changed_observer): Define.
7334 (tui_install_hooks): Remove reference to
7335 deprecated_register_changed_hook. Set
7336 tui_register_changed_observer.
7337 (tui_remove_hooks): Remove reference to
7338 deprecated_register_changed_hook. Unset
7339 tui_register_changed_observer.
7340
7341 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7342
7343 PR compile/18484
7344 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7345
7346 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
7347
7348 PR exp/18617
7349 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7350
7351 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7352
7353 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7354
7355 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7356
7357 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7358 Use safe_strerror() instead of strerror().
7359
7360 2015-07-07 Yao Qi <yao.qi@linaro.org>
7361
7362 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7363 * features/arm-with-m-fpa-layout.c: Regenerated.
7364 * features/arm-with-m-vfp-d16.xml: Likewise.
7365 * features/arm-with-m-vfp-d16.c: Regenerated.
7366 * features/arm-with-m.xml: Likewise.
7367 * features/arm-with-m.c: Regenerated.
7368 * features/arm-with-neon.xml: Likewise.
7369 * features/arm-with-neon.c: Regenerated.
7370 * features/arm-with-vfpv2.xml: Likewise.
7371 * features/arm-with-vfpv2.c: Regenerated.
7372 * features/arm-with-vfpv3.xml: Likewise.
7373 * features/arm-with-vfpv3.c: Regenerated.
7374
7375 2015-07-07 Yao Qi <yao.qi@linaro.org>
7376
7377 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7378 arm-linux-nat.c.
7379 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7380 elf/external.h.
7381 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7382 if target is 32-bit.
7383 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7384 if target is 32-bit.
7385 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7386 if target is 32-bit.
7387 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7388 if target is 32-bit.
7389 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7390 (aarch64_linux_read_description): Return the right target
7391 description.
7392 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7393 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7394 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7395 arm-linux-tdep.o.
7396
7397 2015-07-07 Yao Qi <yao.qi@linaro.org>
7398
7399 * aarch32-linux-nat.c: New file.
7400 * aarch32-linux-nat.h: New file.
7401 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7402 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7403 aarch32_gp_regcache_supply.
7404 (store_regs): Move code to aarch32-linux-nat.c. Call
7405 aarch32_gp_regcache_collect.
7406 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7407 aarch32_vfp_regcache_supply.
7408 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7409 aarch32_vfp_regcache_collect.
7410 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7411
7412 2015-07-07 Yao Qi <yao.qi@linaro.org>
7413
7414 * arm-linux-nat.c (store_fpregister): Remove.
7415 (store_register): Likewise.
7416 (fetch_fpregister): Likewise.
7417 (fetch_register): Likewise.
7418 (arm_linux_store_inferior_registers): Call store_regs and
7419 store_fpregs instead.
7420 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7421 fetch_regs instead.
7422
7423 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7424
7425 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7426 and focus commands.
7427
7428 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7429
7430 * NEWS: Create a new section for the next release branch.
7431 Rename the section of the current branch, now that it has
7432 been cut.
7433
7434 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7435
7436 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7437 * version.in: Bump version to 7.10.50.DATE-cvs.
7438
7439 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7440
7441 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7442 breakpoints in a special way.
7443 (remove_breakpoint): Likewise.
7444 (mark_breakpoints_out): Likewise.
7445
7446 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7447
7448 * doc/gdb.texinfo (TUI): Add comma after @xref.
7449
7450 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7451
7452 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7453 instead of casting the structure type.
7454
7455 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7456
7457 * valops.c (search_struct_field): Remove OFFSET parameter.
7458 (value_cast_structs): Adjust calls to search_struct_field.
7459 (value_struct_elt): Same.
7460 (find_overload_match): Same.
7461
7462 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7463
7464 * value.c (value_fetch_lazy): Update comment, change return
7465 value to void.
7466 * value.h (value_fetch_lazy): Change return value to void.
7467
7468 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7469
7470 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7471 (tui_win_name): Make parameter and result const.
7472 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7473
7474 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7475
7476 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7477 use printf_unfiltered.
7478 (set_mpx_cmd): Add missing trailing space to command string
7479 literal.
7480 (_initialize_i386_tdep): Give the "mpx" prefix command its
7481 correct name.
7482
7483 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7484
7485 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7486 (enum rx_frame_type): New.
7487 (struct rx_prologue): Add new field `frame_type'.
7488 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7489 parameter in the prologue struct. Add code for recording
7490 locations of PC and PSW for fast interrupt and exception frames.
7491 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7492 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7493 (rx_frame_type): New function.
7494 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7495 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7496 `this_cache'.
7497 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7498 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7499 RX_FRAME_TYPE_FAST_INTERRUPT.
7500 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7501 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7502 (rx_frame_unwind): Use rx_frame_sniffer instead of
7503 default_frame_sniffer.
7504 (rx_frame_unwind): New unwinder.
7505 (rx_gdbarch_init): Register new unwinder.
7506
7507 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7508
7509 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7510 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7511 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7512 and RX_FPSW_REGNUM.
7513 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7514
7515 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 Fix GCC false warning.
7518 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7519
7520 2015-07-02 Yao Qi <yao.qi@linaro.org>
7521
7522 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7523 typo in the debugging message.
7524
7525 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7526
7527 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7528 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7529 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7530 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7531 (btrace_maint_clear): New.
7532 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7533 (pt_print_packet, btrace_maint_decode_pt)
7534 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7535 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7536 (maint_btrace_packet_history_cmd)
7537 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7538 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7539 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7540 (maint_info_btrace_cmd, _initialize_btrace): New.
7541 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7542 (btrace_maint_packet_history, btrace_maint_info): New.
7543 (btrace_thread_info) <maint>: New.
7544 * NEWS: Announce it.
7545
7546 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7547
7548 * btrace.c (btrace_fetch): Append the new trace data.
7549 (btrace_clear): Clear the stored trace data.
7550 * btrace.h (btrace_thread_info) <data>: New.
7551 * common/btrace-common.h (btrace_data_clear)
7552 (btrace_data_append): New.
7553 * common/btrace-common.c (btrace_data_clear)
7554 (btrace_data_append): New.
7555
7556 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7557
7558 * nat/linux-btrace.c (linux_enable_bts): Check for
7559 PERF_ATTR_SIZE_VER5.
7560 Check for data_offset and data_size fields. Use them.
7561
7562 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7563
7564 * NEWS: Announce new commands "record btrace pt" and "record pt".
7565 Announce new options "set|show record btrace pt buffer-size".
7566 * btrace.c: Include "rsp-low.h".
7567 Include "inttypes.h".
7568 (btrace_add_pc): Add forward declaration.
7569 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7570 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7571 (btrace_compute_ftrace_pt): New.
7572 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7573 (check_xml_btrace_version): Update version check.
7574 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7575 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7576 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7577 (btrace_pt_children): New.
7578 (btrace_children): Add support for "pt".
7579 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7580 (btrace_conf_children): Add support for "pt".
7581 * btrace.h: Include "intel-pt.h".
7582 (btrace_pt_error): New.
7583 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7584 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7585 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7586 (struct btrace_config_pt): New.
7587 (struct btrace_config)<pt>: New.
7588 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7589 (struct btrace_data)<pt>: New.
7590 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7591 (pt): New.
7592 * features/btrace.dtd (btrace)<pt>: New.
7593 (pt, pt-config, cpu): New.
7594 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7595 (perf_event_pt_event_type, kernel_supports_pt)
7596 (linux_supports_pt): New.
7597 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7598 (linux_enable_bts): Free tinfo on error.
7599 (linux_enable_pt): New.
7600 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7601 (linux_disable_pt): New.
7602 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7603 (linux_fill_btrace_pt_config, linux_read_pt): New.
7604 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7605 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7606 (struct btrace_target_info)<pt>: New.
7607 * record-btrace.c (set_record_btrace_pt_cmdlist)
7608 (show_record_btrace_pt_cmdlist): New.
7609 (record_btrace_print_pt_conf): New.
7610 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7611 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7612 (cmd_record_btrace_pt_start): New.
7613 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7614 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7615 (_initialize_record_btrace): Add new commands.
7616 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7617 (remote_protocol_features): Add "Qbtrace:pt".
7618 Add "Qbtrace-conf:pt:size".
7619 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7620 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7621 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7622 (_initialize_remote): Add new commands.
7623
7624 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7625
7626 * configure.ac: check for libipt
7627 * configure: Regenerate.
7628 * config.in: Regenerate.
7629 * Makefile.in (LIBIPT): New.
7630 (CLIBS): Add $LIBIPT.
7631 * NEWS: document new configure options
7632
7633 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 * compile/compile-object-load.c (compile_object_load): Replace debug
7636 message "lookup undefined ELF symbol" by 3 more specific messages.
7637
7638 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7639
7640 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7641 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7642 (rl78_gdbarch_init): Initialize rl78_psw_type.
7643
7644 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7645
7646 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7647 Update commentary. Always refresh the registers when frame
7648 information has changed.
7649 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7650 Change return type to int. Return 1 if frame information has
7651 changed, 0 otherwise.
7652 (tui_before_prompt): Update commentary.
7653 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7654 int.
7655
7656 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7657
7658 PR tui/13378
7659 * frame.c (select_frame): Remove reference to
7660 deprecated_selected_frame_level_changed_hook.
7661 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7662 declaration.
7663 * stack.c (deprecated_selected_frame_level_changed_hook):
7664 Likewise.
7665 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7666 Rename to ...
7667 (tui_refresh_frame_and_register_information): ... this. Bail
7668 out if there is no stack. Don't update register information
7669 unless registers_too_p is true.
7670 (tui_print_frame_info_listing_hook): Rename to ...
7671 (tui_dummy_print_frame_info_listing_hook): ... this.
7672 (tui_before_prompt): New function.
7673 (tui_normal_stop): New function.
7674 (tui_before_prompt_observer): New observer.
7675 (tui_normal_stop_observer): New observer.
7676 (tui_install_hooks): Set
7677 deprecated_print_frame_info_listing_hook to
7678 tui_dummy_print_frame_info_listing_hook. Register
7679 tui_before_prompt_observer to call tui_before_prompt and
7680 tui_normal_stop_observer to call tui_normal_stop. Remove
7681 reference to deprecated_selected_frame_level_changed_hook.
7682 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7683 and tui_normal_stop_observer. Remove reference to
7684 deprecated_selected_frame_level_changed_hook.
7685
7686 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7687
7688 PR tui/13378
7689 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7690 return an int instead of void. Return whether the locator
7691 window has changed.
7692 (tui_show_frame_info): If the locator info has not changed, then
7693 bail out early to avoid refreshing the windows.
7694
7695 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7696
7697 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7698 LOCATOR_WIN to tui_alloc_content.
7699
7700 2015-06-30 Yao Qi <yao.qi@linaro.org>
7701
7702 PR tdep/18605
7703 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7704 instructions.
7705
7706 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7707
7708 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7709 (rx_dwarf_reg_to_regnum): New function.
7710 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7711 unwinding.
7712
7713 2015-06-29 Pedro Alves <palves@redhat.com>
7714
7715 PR threads/18127
7716 * infcall.c (run_inferior_call): On infcall success, if the thread
7717 was marked stopped before, reset it back to stopped.
7718 * infrun.c (resume): Don't suppress the set_running calls when
7719 doing an infcall.
7720 (normal_stop): Only discard the finish_thread_state cleanup if the
7721 infcall succeeded.
7722
7723 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7724
7725 * MAINTAINERS (Write After Approval): Update my email address.
7726
7727 2015-06-26 Keith Seitz <keiths@redhat.com>
7728 Doug Evans <dje@google.com>
7729
7730 PR 16253
7731 * block.c (block_lookup_symbol): For non-function blocks,
7732 continue to search for a symbol with an exact domain match
7733 Otherwise, return any previously found "best domain" symbol.
7734 (block_lookup_symbol_primary): Likewise.
7735
7736 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7737
7738 * NEWS: Mention the new option "history remove-duplicates".
7739 * top.c (history_remove_duplicates): New static variable.
7740 (show_history_remove_duplicates): New static function.
7741 (gdb_add_history): Conditionally remove duplicate history
7742 entries.
7743 (init_main): Add "history remove-duplicates" option.
7744
7745 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7746
7747 * tui/tui-win.c (focus_completer): New static function.
7748 (_initialize_tui_win): Set the completion function of the
7749 "focus" command to focus_completer.
7750
7751 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7754 and language_asm..
7755 * symtab.c (find_function_start_sal): Likewise.
7756
7757 2015-06-25 Gary Benson <gbenson@redhat.com>
7758
7759 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7760 it is the empty string after trailing slashes have been stripped.
7761
7762 2015-06-25 Gary Benson <gbenson@redhat.com>
7763
7764 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7765 * infrun.c (follow_exec): Likewise.
7766 * remote.c (remote_filesystem_is_local): Likewise.
7767 * solib.c (solib_find_1): Likewise.
7768
7769 2015-06-24 Keith Seitz <keiths@redhat.com>
7770
7771 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7772 return value from lrealpath.
7773
7774 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7775
7776 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7777
7778 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7779
7780 * remote-sim.c: Include gdb_bfd.h.
7781 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7782 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7783
7784 2015-06-24 Yao Qi <yao.qi@linaro.org>
7785
7786 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7787 set_gdbarch_get_siginfo_type.
7788 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7789 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7790 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7791 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7792 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7793 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7794 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7795 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7796 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7797 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7798
7799 2015-06-24 Gary Benson <gbenson@redhat.com>
7800
7801 * common/buffer.c (stdint.h): Do not include.
7802 * common/print-utils.c (stdint.h): Likewise.
7803 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7804 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7805 * ft32-tdep.c (gdb_assert.h): Likewise.
7806 * guile/scm-utils.c (stdint.h): Likewise.
7807 * i386-linux-tdep.c (stdint.h): Likewise.
7808 * i386-tdep.c (stdint.h): Likewise.
7809 * nat/linux-btrace.c (stdint.h): Likewise.
7810 * nat/linux-btrace.h (stdint.h): Likewise.
7811 * nat/linux-ptrace.c (stdint.h): Likewise.
7812 * nat/mips-linux-watch.h (stdint.h): Likewise.
7813 * ppc-linux-nat.c (stdint.h): Likewise.
7814 * python/python-internal.h (stdint.h): Likewise.
7815 * stub-termcap.c (stdlib.h): Likewise.
7816 * target/target.h (stdint.h): Likewise.
7817 * xtensa-linux-nat.c (stdint.h): Likewise.
7818
7819 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7820
7821 * top.c (init_history): Look at errno after calling strtol to
7822 properly map large GDBHISTSIZE values to infinity.
7823
7824 2015-06-23 Doug Evans <dje@google.com>
7825
7826 * inferior.h (struct inferior_suspend_state): Delete, unused.
7827 All references deleted.
7828
7829 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7830
7831 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7832 (microblaze_push_dummy_call): Likewise.
7833 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7834 and set_gdbarch_push_dummy_call.
7835
7836 2015-06-23 Yao Qi <yao.qi@linaro.org>
7837
7838 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7839 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7840 (amd64_linux_store_inferior_registers): Likewise.
7841 * arm-linux-nat.c (fetch_fpregister): Likewise.
7842 (fetch_fpregs, store_fpregister): Likewise.
7843 (store_fpregister, store_fpregs): Likewise.
7844 (fetch_register, fetch_regs): Likewise.
7845 (store_register, store_regs): Likewise.
7846 (fetch_vfp_regs, store_vfp_regs): Likewise.
7847 (arm_linux_read_description): Check have_ptrace_getregset is
7848 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7849 or TRIBOOL_FALSE.
7850 * i386-linux-nat.c (fetch_xstateregs): Check
7851 have_ptrace_getregset is not TRIBOOL_TRUE.
7852 (store_xstateregs): Likewise.
7853 * linux-nat.c (have_ptrace_getregset): Change its type to
7854 enum tribool.
7855 * linux-nat.h (tribool): New enum.
7856 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7857 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7858
7859 2015-06-19 Doug Evans <dje@google.com>
7860
7861 * NEWS: Mention Sun's version of stabs is no longer supported.
7862 * elfread.c (free_elfinfo): Delete. All uses updated.
7863 (elfstab_offset_sections): Delete. All uses updated.
7864 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7865 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7866 All uses updated.
7867 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7868 All callers updated.
7869
7870 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7871
7872 * common/rsp-low.c (needs_escaping): New.
7873 (remote_escape_output): Add unit_size parameter. Refactor to
7874 support multi-byte addressable units. Rename parameters.
7875 * common/rsp-low.h (remote_escape_output): Add unit_size
7876 parameter and rename others. Update doc.
7877 * remote.c (align_for_efficient_write): New.
7878 (remote_write_bytes_aux): Add unit_size parameter and use it.
7879 Rename some variables. Update doc.
7880 (remote_xfer_partial): Get unit size and use it.
7881 (remote_read_bytes_1): Add unit_size parameter and use it.
7882 Rename some variables. Update doc.
7883 (remote_write_bytes): Same.
7884 (remote_xfer_live_readonly_partial): Same.
7885 (remote_read_bytes): Same.
7886 (remote_flash_write): Update call to remote_write_bytes_aux.
7887 (remote_write_qxfer): Update call to remote_escape_output.
7888 (remote_search_memory): Same.
7889 (remote_hostio_pwrite): Same.
7890
7891 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7892
7893 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7894 locations as inserted.
7895 Update and expand comment about permanent locations.
7896 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7897 Move comment to add_location_to_breakpoint.
7898 (update_global_location_list): Don't error out if a permanent
7899 breakpoint is not marked inserted.
7900 Don't error out if a non-permanent breakpoint location is inserted on
7901 top of a permanent breakpoint.
7902
7903 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7904
7905 * breakpoint.c (make_breakpoint_permanent): Remove unused
7906 function.
7907 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7908
7909 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7910
7911 PR gdb/16999
7912 * NEWS: Mention new GDBHISTSIZE behavior.
7913 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7914 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7915
7916 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7917
7918 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7919 * top.c (init_history): Read from GDBHISTSIZE instead of
7920 HISTSIZE.
7921 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7922
7923 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7924
7925 * top.c (gdb_safe_append_history): Do not call
7926 history_truncate_file if the history is not stifled.
7927
7928 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7929
7930 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7931 * syscalls/s390x-linux.xml: Likewise.
7932
7933 2015-06-16 Michael Eager <eager@eagercon.com>
7934
7935 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7936
7937 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7938
7939 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7940 target_terminal_ours_for_output() before calling
7941 tui_show_frame_info(), and restore the original terminal
7942 settings afterwards.
7943
7944 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7945
7946 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7947
7948 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7949
7950 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7951 memory unit size.
7952 (mi_cmd_data_write_memory_bytes): Same.
7953
7954 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7955
7956 * corefile.c (write_memory): Update doc.
7957 * gdbcore.h (write_memory): Same.
7958
7959 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7960
7961 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7962 (dump_mapping_p): Use it for parameter filterflags.
7963 (linux_find_memory_regions_full): Use it for variable filterflags.
7964
7965 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7966 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 Merge multiple hex conversions.
7969 * monitor.c: Include rsp-low.h.
7970 (fromhex): Remove definition.
7971
7972 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7973 Jan Kratochvil <jan.kratochvil@redhat.com>
7974
7975 Move utility functions to common/.
7976 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7977 Move defs to common/common-utils.c.
7978 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7979 (skip_to_space_const): Move decls to common/common-utils.h.
7980 * common/common-defs.h: Move include of common-types.h before
7981 common-utils.h.
7982 * common/common-utils.c: Include host-defs.h and ctype.h.
7983 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7984 from utils.c.
7985 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7986 cli/cli-utils.c.
7987 * common/common-utils.h (strtoulst): Move decl from utils.h.
7988 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7989 Move from cli/cli-utils.h.
7990 * common/host-defs.h: Include limits.h.
7991 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7992 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7993 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7994 common/common-utils.h.
7995 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7996 (strtoulst): Move to common/common-utils.c.
7997 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7998
7999 2015-06-15 Yao Qi <yao.qi@linaro.org>
8000
8001 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8002
8003 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
8004
8005 * build-id.c: Don't include elf-bfd.h.
8006 (build_id_bfd_get): Use bfd_build_id.
8007 (build_id_verify): Ditto.
8008 * build-id.h: Ditto.
8009 (find_separate_debug_file_by_buildid): Ditto.
8010 * python/py-objfile.c: Don't include elf-bfd.h.
8011 (objfpy_get_build_id) Use bfd_build_id.
8012 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8013 * coffread.c: Include build-id.h.
8014 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8015
8016 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8017
8018 * windows-nat.c (do_windows_fetch_inferior_registers)
8019 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8020 conditional with __CYGWIN__.
8021
8022 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
8023
8024 * completer.c: Add arch-utils.h include.
8025 (enum reg_completer_targets): New enum.
8026 (reg_or_group_completer_1): New function containing old
8027 reg_or_group_completer, add and use new parameter to control what
8028 is completed on. Use get_current_arch rather than architecture of
8029 currently selected frame.
8030 (reg_or_group_completer): Call new reg_or_group_completer_1.
8031 (reggroup_completer): Call new reg_or_group_completer_1.
8032 * completer.h (reggroup_completer): Add declaration.
8033 * tui/tui-regs.c: Add 'completer.h' include.
8034 (tui_reg_next_command): Renamed to...
8035 (tui_reg_next): ...this. Adjust parameters and return rather than
8036 display new group.
8037 (tui_reg_prev_command): Renamed to...
8038 (tui_reg_prev): ...this. Adjust parameters and return rather than
8039 display new group.
8040 (tui_reg_float_command): Delete.
8041 (tui_reg_general_command): Delete.
8042 (tui_reg_system_command): Delete.
8043 (tui_reg_command): Rewrite to perform switching of register group.
8044 Add header comment.
8045 (tuireglist): Remove.
8046 (tui_reggroup_completer): New function.
8047 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8048 creation of 'tui reg' command.
8049 * NEWS: Add comment about 'tui reg' changes.
8050
8051 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8052
8053 * target.c (target_read): Consider addressable unit size when
8054 reading from a memory object.
8055 (read_memory_robust): Same.
8056 (read_whatever_is_readable): Same.
8057 (target_write_with_progress): Consider addressable unit size
8058 when writing to a memory object.
8059 * target.h (target_read): Update documentation.
8060 (target_write): Add documentation.
8061
8062 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8063
8064 * arch-utils.h (default_addressable_memory_unit_size): New.
8065 * arch-utils.c (default_addressable_memory_unit_size): New.
8066 * gdbarch.sh (addressable_memory_unit_size): New.
8067 * gdbarch.h: Re-generate.
8068 * gdbarch.c: Re-generate.
8069
8070 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8071
8072 * target.c (target_read): Rename variables and use
8073 TARGET_XFER_E_IO.
8074 (target_read_with_progress): Same.
8075 (read_memory_robust): Constify parameters and rename
8076 variables.
8077 (read_whatever_is_readable): Constify parameters,
8078 rename variables, adjust formatting.
8079 * target.h (read_memory_robust): Constify parameters.
8080
8081 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
8082
8083 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8084 synthetic (non-AltiVec) vector types.
8085 (ppc64_sysv_abi_return_value): Likewise.
8086
8087 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8088
8089 PR breakpoints/16465
8090 * breakpoint.c (create_breakpoint): Save extra_string for
8091 pending breakpoints.
8092
8093 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8094
8095 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8096 and bt_mask to CORE_ADDR.
8097
8098 2015-06-11 Gary Benson <gbenson@redhat.com>
8099
8100 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8101 (mnsh_recv_message): Likewise.
8102
8103 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8104
8105 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8106 long long int and plongest instead of %ll.
8107
8108 2015-06-11 Gary Benson <gbenson@redhat.com>
8109
8110 * nat/linux-namespaces.c (gdb_wait.h): New include.
8111 (sys/wait.h): Do not include.
8112
8113 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8114
8115 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8116 end_sequence is true.
8117
8118 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8119
8120 Code cleanup.
8121 * solib-target.c (library_list_start_list): Use explicit NULL
8122 comparison.
8123
8124 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8125
8126 * solib-target.c (library_list_start_list): Do not dereference
8127 variable version in its initialization. Make the VERSION check handle
8128 NULL.
8129 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8130
8131 2015-06-10 Gary Benson <gbenson@redhat.com>
8132
8133 * NEWS: Announce support for direct access of executable and
8134 shared library files when attaching to inferiors in containers
8135 on GNU/Linux systems.
8136
8137 2015-06-10 Gary Benson <gbenson@redhat.com>
8138
8139 * remote.c (struct remote_state) <fs_pid>: New field.
8140 (new_remote_state): Initialize the above.
8141 (PACKET_vFile_setfs): New enum value.
8142 (remote_hostio_set_filesystem): New function.
8143 (remote_hostio_open): Call the above.
8144 (remote_hostio_unlink): Likewise.
8145 (remote_hostio_readlink): Likewise.
8146 (_initialize_remote): Register new "set/show remote
8147 hostio-setfs-packet" command.
8148 * NEWS: Announce new vFile:setfs packet.
8149
8150 2015-06-10 Gary Benson <gbenson@redhat.com>
8151
8152 * linux-nat.c (nat/linux-namespaces.h): New include.
8153 (fileio.h): Likewise.
8154 (linux_nat_filesystem_is_local): New function.
8155 (linux_nat_fileio_pid_of): Likewise.
8156 (linux_nat_fileio_open): Likewise.
8157 (linux_nat_fileio_readlink): Likewise.
8158 (linux_nat_fileio_unlink): Likewise.
8159 (linux_nat_add_target): Initialize to_filesystem_is_local,
8160 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8161 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8162 commands.
8163 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8164
8165 2015-06-10 Gary Benson <gbenson@redhat.com>
8166
8167 * target.h (struct inferior): New forward declaration.
8168 (struct target_ops) <to_filesystem_is_local>: Update comment.
8169 (struct target_ops) <to_fileio_open>: New argument inf.
8170 Update comment. All implementations updated.
8171 (struct target_ops) <to_fileio_unlink>: Likewise.
8172 (struct target_ops) <to_fileio_readlink>: Likewise.
8173 (target_filesystem_is_local): Update comment.
8174 (target_fileio_open): New argument inf. Update comment.
8175 (target_fileio_unlink): Likewise.
8176 (target_fileio_readlink): Likewise.
8177 (target_fileio_read_alloc): Likewise.
8178 (target_fileio_read_stralloc): Likewise.
8179 * target.c (target_fileio_open): New argument inf.
8180 Pass inf to implementation. Update debug printing.
8181 (target_fileio_unlink): Likewise.
8182 (target_fileio_readlink): Likewise.
8183 (target_fileio_read_alloc_1): New argument inf. Pass inf
8184 to target_fileio_open.
8185 (target_fileio_read_alloc): New argument inf. Pass inf to
8186 target_fileio_read_alloc_1.
8187 (target_fileio_read_stralloc): Likewise.
8188 * gdb_bfd.c (inferior.h): New include.
8189 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8190 argument with new argument "inferior". Pass inferior to
8191 target_fileio_open.
8192 (gdb_bfd_open): Supply inferior argument to
8193 gdb_bfd_iovec_fileio_open.
8194 * linux-tdep.c (linux_info_proc): Supply inf argument to
8195 relevant target_fileio calls.
8196 (linux_find_memory_regions_full): Likewise.
8197 (linux_fill_prpsinfo): Likewise.
8198 * remote.c (remote_filesystem_is_local): Supply inf
8199 argument to remote_hostio_open.
8200 (remote_file_put): Likewise.
8201 (remote_file_get): Likewise.
8202 (remote_file_delete): Supply inf argument to
8203 remote_hostio_unlink.
8204
8205 2015-06-10 Gary Benson <gbenson@redhat.com>
8206
8207 * inf-child.c (inf_child_fileio_open): Replace comment.
8208 (inf_child_fileio_pwrite): Likewise.
8209 (inf_child_fileio_pread): Likewise.
8210 (inf_child_fileio_fstat): Insert blank line before comment.
8211 (inf_child_fileio_close): Replace comment.
8212 (inf_child_fileio_unlink): Likewise.
8213 (inf_child_fileio_readlink): Likewise.
8214 * remote.c (remote_hostio_open): Likewise.
8215 (remote_hostio_pread): Likewise.
8216 (remote_hostio_pwrite): Likewise.
8217 (remote_hostio_close): Likewise.
8218 (remote_hostio_unlink): Likewise.
8219 (remote_hostio_readlink): Likewise.
8220 (remote_hostio_fstat): Likewise.
8221 (remote_filesystem_is_local): Likewise.
8222 * target.c (target_fileio_open): Likewise.
8223 (target_fileio_pwrite): Likewise.
8224 (target_fileio_pread): Likewise.
8225 (target_fileio_fstat): Insert blank line before comment.
8226 (target_fileio_close): Replace comment.
8227 (target_fileio_unlink): Likewise.
8228 (target_fileio_readlink): Likewise.
8229 (target_fileio_read_alloc): Likewise.
8230 (target_fileio_read_stralloc): Likewise.
8231
8232 2015-06-10 Gary Benson <gbenson@redhat.com>
8233
8234 * linux-thread-db.c (nat/linux-namespaces.h): New include.
8235 (check_pid_namespace_match): Use linux_ns_same rather than
8236 linux_proc_pid_get_ns to spot PID namespace mismatches.
8237 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
8238 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
8239
8240 2015-06-10 Gary Benson <gbenson@redhat.com>
8241
8242 * configure.ac (AC_CHECK_FUNCS): Add setns.
8243 * config.in: Regenerate.
8244 * configure: Likewise.
8245 * nat/linux-namespaces.h: New file.
8246 * nat/linux-namespaces.c: Likewise.
8247 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
8248 (linux-namespaces.o): New rule.
8249 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
8250 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8251 * config/arm/linux.mh (NATDEPFILES): Likewise.
8252 * config/i386/linux.mh (NATDEPFILES): Likewise.
8253 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8254 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8255 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8256 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8257 * config/mips/linux.mh (NATDEPFILES): Likewise.
8258 * config/pa/linux.mh (NATDEPFILES): Likewise.
8259 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8260 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8261 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8262 * config/s390/linux.mh (NATDEPFILES): Likewise.
8263 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8264 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8265 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8266 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8267
8268 2015-06-10 Gary Benson <gbenson@redhat.com>
8269
8270 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8271 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8272 (make_cleanup_close): Likewise.
8273 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8274 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8275 (make_cleanup_close): Likewise.
8276
8277 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8278
8279 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8280 from SuspendThread().
8281
8282 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8283
8284 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8285 from OutputDebugString.
8286
8287 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8288 Mircea Gherzan <mircea.gherzan@intel.com>
8289
8290 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8291 MPX_BT_MASK_32): New macros.
8292 (i386_mpx_set_bounds): New function that implements
8293 the command "set-mpx-bound".
8294 (i386_mpx_enabled): Helper function to test MPX availability.
8295 (i386_mpx_bd_base): Helper function to calculate the base directory
8296 address.
8297 (i386_mpx_get_bt_entry): Helper function to access a bound
8298 table entry.
8299 (i386_mpx_print_bounds): Effectively display bound information.
8300 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8301 "show mpx".
8302 (_initialize_i386_tdep):
8303 Add "bound" to the commands "show mpx" and "set mpx" commands.
8304 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8305 and "show mpx" commands.
8306 * NEWS: List new commands for MPX support.
8307
8308 2015-06-09 Gary Benson <gbenson@redhat.com>
8309
8310 * common/fileio.h (fileio_to_host_mode): New declaration.
8311 * common/fileio.c (fileio_to_host_mode): New Function.
8312 * inf-child.c (inf_child_fileio_open): Process mode argument
8313 with fileio_to_host_mode.
8314
8315 2015-06-09 Gary Benson <gbenson@redhat.com>
8316
8317 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8318 conditional.
8319
8320 2015-06-05 Gary Benson <gbenson@redhat.com>
8321
8322 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8323 * remote.c (remote_filesystem_is_local): ...here.
8324
8325 2015-06-04 Yao Qi <yao.qi@linaro.org>
8326
8327 * gdbarch.c: Regenerate it.
8328
8329 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8330
8331 * arch-utils.c (default_infcall_munmap): New.
8332 * arch-utils.h (default_infcall_munmap): New declaration.
8333 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8334 (munmap_list_free, munmap_listp_free_cleanup): New.
8335 (struct setup_sections_data): Add field munmap_list_headp.
8336 (setup_sections): Call munmap_list_add.
8337 (compile_object_load): New variable munmap_list_head, initialize
8338 setup_sections_data.munmap_list_headp, return munmap_list_head.
8339 * compile/compile-object-load.h (struct munmap_list): New declaration.
8340 (struct compile_module): Add field munmap_list_head.
8341 (munmap_list_free): New declaration.
8342 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8343 munmap_list_head.
8344 (do_module_cleanup): Call munmap_list_free.
8345 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8346 * gdbarch.c: Regenerate.
8347 * gdbarch.h: Regenerate.
8348 * gdbarch.sh (infcall_munmap): New.
8349 * linux-tdep.c (linux_infcall_munmap): New.
8350 (linux_init_abi): Install it.
8351
8352 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8353
8354 PR gdb/15564
8355 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8356
8357 2015-06-02 Yao Qi <yao.qi@linaro.org>
8358
8359 * i386-linux-nat.c: Include linux-nat.h.
8360
8361 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8362 Jan Kratochvil <jan.kratochvil@redhat.com>
8363
8364 PR symtab/18392
8365 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8366 assertion.
8367 * dwarf2loc.c (chain_candidate): Likewise.
8368
8369 2015-06-01 Yao Qi <yao.qi@linaro.org>
8370
8371 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8372 (store_vfp_regs): Use PTRACE_SETREGSET.
8373
8374 2015-06-01 Yao Qi <yao.qi@linaro.org>
8375
8376 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8377 (fetch_fpregs): Likewise.
8378 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8379 (store_fpregs): Likewise.
8380
8381 2015-06-01 Yao Qi <yao.qi@linaro.org>
8382
8383 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8384 (fetch_regs): Likewise.
8385 (store_regs): Use PTRACE_SETREGSET.
8386 (store_register): Likewise.
8387
8388 2015-06-01 Yao Qi <yao.qi@linaro.org>
8389
8390 * arm-linux-nat.c (arm_linux_read_description): Check whether
8391 kernel supports PTRACE_GETREGSET.
8392
8393 2015-06-01 Yao Qi <yao.qi@linaro.org>
8394
8395 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8396 * linux-nat.c: ... here.
8397 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8398 to ...
8399 * linux-nat.h: ... here.
8400
8401 2015-06-01 Yao Qi <yao.qi@linaro.org>
8402
8403 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8404 * i386-linux-nat.c: Likewise.
8405 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8406 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8407 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8408 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8409 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8410
8411 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8412
8413 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8414 compatible to what read_child and write_child return. This
8415 unbreaks that DJGPP build of GDB which was broken since v7.7.
8416
8417 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8418
8419 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8420
8421 2015-05-29 Roland McGrath <mcgrathr@google.com>
8422
8423 PR gdb/18464
8424 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8425 rather than internal_error for an unrecognized value.
8426
8427 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8428
8429 * xtensa-tdep.c (xtensa_pseudo_register_read)
8430 (xtensa_pseudo_register_write): Don't alias last pseudo register
8431 to a1.
8432
8433 2015-05-28 Don Breazeal <donb@codesourcery.com>
8434
8435 * infrun.c (follow_fork_inferior): Ensure the use of
8436 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8437 messages.
8438
8439 2015-05-28 Doug Evans <dje@google.com>
8440
8441 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8442
8443 2015-05-28 Yao Qi <yao.qi@linaro.org>
8444
8445 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8446 (arm_linux_fetch_inferior_registers): Use
8447 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8448 (arm_linux_store_inferior_registers): Likewise.
8449 (arm_linux_read_description): Don't set
8450 arm_linux_has_wmmx_registers.
8451 * arm-tdep.c (arm_gdbarch_init): Set
8452 tdep->have_wmmx_registers according target descriptions.
8453 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8454 field.
8455
8456 2015-05-28 Yao Qi <yao.qi@linaro.org>
8457
8458 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8459 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8460 instead of arm_linux_vfp_register_count.
8461 (store_vfp_regs): Likewise.
8462 (arm_linux_fetch_inferior_registers): Likewise.
8463 (arm_linux_store_inferior_registers): Likewise.
8464 (arm_linux_read_description): Don't set
8465 arm_linux_vfp_register_count.
8466 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8467 Adjust.
8468 * arm-tdep.c (arm_gdbarch_init): Add assert on
8469 vfp_register_count.
8470 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8471 field to vfp_register_count. All users updated.
8472
8473 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8474
8475 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8476 ELFOSABI_GNU binaries.
8477
8478 2015-05-27 Doug Evans <dje@google.com>
8479
8480 * dwarf2read.c (lnp_state_machine): New typedef.
8481 (lnp_reader_state): New typedef.
8482 (dwarf_record_line_1): Renamed from dwarf_record_line.
8483 All callers updated.
8484 (dwarf_record_line): New function.
8485 (init_lnp_state_machine): New function.
8486 (check_line_address): Replace p_record_line parameter with state.
8487 All callers updated.
8488 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8489 Update to record state in lnp_state_machine.
8490
8491 2015-05-27 Doug Evans <dje@google.com>
8492
8493 * dwarf2read.c (record_line_ftype): New typedef.
8494 (check_line_address): New function.
8495 (dwarf_decode_lines_1): Call it.
8496
8497 2015-05-27 Doug Evans <dje@google.com>
8498
8499 * NEWS: Mention "set debug dwarf-line".
8500 * dwarf2read.c (dwarf_line_debug): New static global.
8501 (add_include_dir): Add debug dwarf-line support.
8502 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8503 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8504
8505 2015-05-27 Doug Evans <dje@google.com>
8506
8507 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8508 All callers updated.
8509 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8510 * cp-support.h (cp_lookup_nested_symbol): Update.
8511
8512 2015-05-27 Doug Evans <dje@google.com>
8513
8514 PR symtab/18258
8515 * block.c (block_find_symbol): New function.
8516 (block_find_non_opaque_type): Ditto.
8517 (block_find_non_opaque_type_preferred): Ditto.
8518 * block.h (block_symbol_matcher_ftype): New typedef.
8519 (block_find_symbol): Declare.
8520 (block_find_non_opaque_type): Ditto.
8521 (block_find_non_opaque_type_preferred): Ditto.
8522 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8523 * psymtab.c (psym_lookup_symbol): Ditto.
8524 * symtab.c (basic_lookup_transparent_type_1): New function.
8525 (basic_lookup_transparent_type): Call it.
8526
8527 2015-05-27 Yao Qi <yao.qi@linaro.org>
8528
8529 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8530 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8531
8532 2015-05-27 Yao Qi <yao.qi@linaro.org>
8533
8534 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8535 before operator &&.
8536 (aarch64_record_load_store): Likewise.
8537
8538 2015-05-26 Doug Evans <dje@google.com>
8539
8540 PR c++/18141, c++/18417.
8541 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8542 a typedef.
8543
8544 2015-05-26 Doug Evans <dje@google.com>
8545
8546 * NEWS: Add entries for command renamings.
8547 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8548 All uses updated.
8549 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8550 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8551 All uses updated.
8552 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8553 All callers updated. Fix spelling of DWARF in help text.
8554 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8555 All uses updated.
8556 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8557 All uses updated.
8558 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8559 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8560 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8561 All uses updated.
8562 (show_dwarf_always_disassemble): Renamed from
8563 show_dwarf2_always_disassemble. All callers updated.
8564 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8565 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8566 "set/show dwarf max-cache-age". Rename
8567 "set/show dwarf2 always-disassemble" to
8568 "set/show dwarf always-disassemble". Rename
8569 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8570 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8571
8572 2015-05-26 Doug Evans <dje@google.com>
8573
8574 PR python/18438
8575 * python/py-lazy-string.c (stpy_convert_to_value): Use
8576 gdbpy_gdb_memory_error not PyExc_MemoryError.
8577 (gdbpy_create_lazy_string_object): Ditto.
8578
8579 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8580
8581 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8582
8583 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8584
8585 * tui/tui-regs.c (tui_reg_prev_command): New function.
8586 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8587 * reggroups.c (reggroup_prev): New function.
8588 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8589
8590 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8591 Yao Qi <yao.qi@linaro.org>
8592
8593 * aarch64-linux-tdep.c: Include linux-record.h and
8594 record-full.h.
8595 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8596 (aarch64_syscall): New enum.
8597 (aarch64_canonicalize_syscall): New function.
8598 (aarch64_all_but_pc_registers_record): New function.
8599 (aarch64_linux_syscall_record): New function.
8600 (aarch64_linux_init_abi): Install AArch64 process record
8601 handler. Update to handle syscall recording.
8602 * aarch64-tdep.c: Include record.h and record-full.h.
8603 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8604 (struct aarch64_mem_r): Define.
8605 (aarch64_record_result): New enum.
8606 (struct insn_decode_record): Define.
8607 (insn_decode_record): New typedef.
8608 (aarch64_record_data_proc_reg): New function.
8609 (aarch64_record_data_proc_imm): New function.
8610 (aarch64_record_branch_except_sys): New function.
8611 (aarch64_record_load_store): New function.
8612 (aarch64_record_data_proc_simd_fp): New function.
8613 (aarch64_record_asimd_load_store): New function.
8614 (aarch64_record_decode_insn_handler): New function.
8615 (deallocate_reg_mem): New function.
8616 (aarch64_process_record): New function.
8617 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8618 New field.
8619 (aarch64_process_record): New extern declaration.
8620 * configure.tgt: Add linux-record.o to gdb_target_obs.
8621 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8622
8623 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8624
8625 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8626 targets.
8627
8628 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8629
8630 * amd64-tdep.c: Replace in_function_epilogue_p with
8631 stack_frame_destroyed_p throughout.
8632 * arch-utils.c: Ditto.
8633 * arch-utils.h: Ditto.
8634 * arm-tdep.c: Ditto.
8635 * breakpoint.c: Ditto.
8636 * gdbarch.sh: Ditto.
8637 * hppa-tdep.c: Ditto.
8638 * i386-tdep.c: Ditto.
8639 * mips-tdep.c: Ditto.
8640 * nios2-tdep.c: Ditto.
8641 * rs6000-tdep.c: Ditto.
8642 * s390-linux-tdep.c: Ditto.
8643 * score-tdep.c: Ditto.
8644 * sh-tdep.c: Ditto.
8645 * sparc-tdep.c: Ditto.
8646 * sparc-tdep.h: Ditto.
8647 * sparc64-tdep.c: Ditto.
8648 * spu-tdep.c: Ditto.
8649 * tic6x-tdep.c: Ditto.
8650 * tilegx-tdep.c: Ditto.
8651 * xstormy16-tdep.c: Ditto.
8652 * gdbarch.c, gdbarch.h: Re-generated.
8653
8654 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8655
8656 * NEWS: Mention 'tui enable' and 'tui disable'.
8657 * tui/tui.c (tui_enable_command): New function.
8658 (tui_disable_command): New function.
8659 (_initialize_tui): New function.
8660
8661 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8662
8663 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8664
8665 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8666
8667 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8668 buf_ptr is freed.
8669
8670 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8671
8672 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8673 into ...
8674 (tui_set_layout_for_display_command): ...here, before calling
8675 tui_set_layout. Only set the layout if gdb has not already
8676 entered the TUI_FAILURE state.
8677
8678 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8679
8680 * tui/tui-layout.c (layout_completer): New function.
8681 (_initialize_tui_layout): Set completer on layout command.
8682
8683 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8684
8685 * tui/tui-layout.c (tui_set_layout): Remove
8686 tui_register_display_type parameter. Remove all checking of this
8687 parameter, and reindent function. Update header comment.
8688 (tui_set_layout_for_display_command): Rename to...
8689 (tui_set_layout_by_name): ...this, and don't check for different
8690 register class types, don't pass a tui_register_display_type to
8691 tui_set_layout. Update header comment.
8692 (layout_names): Remove register set specific names.
8693 * tui/tui-layout.h (tui_set_layout): Remove
8694 tui_register_display_type parameter.
8695 * tui/tui.c (tui_rl_change_windows): Don't pass a
8696 tui_register_display_type to tui_set_layout.
8697 (tui_rl_delete_other_windows): Likewise.
8698 (tui_enable): Likewise.
8699 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8700 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8701 (TUI_GENERAL_REGS_NAME): Remove.
8702 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8703 (TUI_SPECIAL_REGS_NAME): Remove.
8704 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8705 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8706 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8707 (enum tui_register_display_type): Remove.
8708 (struct tui_layout_def): Remove regs_display_type and
8709 float_regs_display_type fields.
8710 (struct tui_data_info): Remove regs_display_type field.
8711 (tui_layout_command): Use new name for
8712 tui_set_layout_for_display_command.
8713 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8714 (tui_clear_win_detail): Don't initialise removed fields of
8715 win_info.
8716 * tui/tui-regs.c (tui_show_registers): Use new name for
8717 tui_set_layout_for_display_command.
8718 * tui/tui.h (tui_set_layout_for_display_command): Rename
8719 declaration to...
8720 (tui_set_layout_by_name): ...this.
8721 * printcmd.c (display_command): Remove tui related layout call,
8722 and reindent.
8723
8724 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8725
8726 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8727 (handle_inferior_event): New function.
8728
8729 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8730
8731 * ada-lang.c (to_fixed_array_type): Rename local variable
8732 typename into type_name.
8733
8734 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 Fix ASAN crash for gdb.compile/compile.exp.
8737 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8738
8739 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8740
8741 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8742 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8743 * compile/compile-object-load.c (setup_sections, compile_object_load):
8744 Likewise.
8745 * compile/compile.c (compile_to_object): Likewise.
8746
8747 2015-05-16 Doug Evans <xdje42@gmail.com>
8748
8749 * NEWS: Mention support for unbuffered Guile memory ports.
8750 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8751 (ioscm_lseek_address): Improve overflow calculation.
8752 (gdbscm_memory_port_fill_input): Add assert.
8753 (gdbscm_memory_port_write): Handle unbuffered ports.
8754 Handle large writes identical to Guile's fport_write.
8755 (gdbscm_memory_port_seek): Fix seeking past end check.
8756 (gdbscm_memory_port_close): Handle closing unbuffered port.
8757 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8758 (ioscm_init_memory_port): Handle unbuffered ports.
8759 (ioscm_reinit_memory_port): Ditto.
8760 (ioscm_init_memory_port): Update size calculation.
8761 (gdbscm_open_memory): Support zero sized ports.
8762
8763 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8764
8765 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8766 variable compiler warnings.
8767
8768 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8769
8770 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8771
8772 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8773 Phil Muldoon <pmuldoon@redhat.com>
8774
8775 * NEWS (Changes since GDB 7.9): Add compile print.
8776 * compile/compile-c-support.c (add_code_header, add_code_footer)
8777 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8778 COMPILE_I_PRINT_VALUE_SCOPE.
8779 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8780 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8781 New.
8782 * compile/compile-object-load.c: Include block.h.
8783 (get_out_value_type): New function.
8784 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8785 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8786 OUT_VALUE_TYPE.
8787 * compile/compile-object-load.h (struct compile_module): Add fields
8788 out_value_addr and out_value_type.
8789 * compile/compile-object-run.c: Include valprint.h and compile.h.
8790 (struct do_module_cleanup): Add fields out_value_addr and
8791 out_value_type.
8792 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8793 COMPILE_I_PRINT_VALUE_SCOPE.
8794 (compile_object_run): Propagate out_value_addr and out_value_type.
8795 Pass OUT_VALUE_ADDR.
8796 * compile/compile.c: Include valprint.h.
8797 (compile_print_value, compile_print_command): New functions.
8798 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8799 (_initialize_compile): Update compile code help text. Install
8800 compile_print_command.
8801 * compile/compile.h (compile_print_value): New prototype.
8802 * defs.h (enum compile_i_scope_types): Add
8803 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8804
8805 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8806
8807 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8808 Rely on its parameter count.
8809 (compile_object_load): Replace lookup_minimal_symbol_text by
8810 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8811 return value.
8812 * compile/compile-object-load.h (struct compile_module): Replace
8813 func_addr by func_sym.
8814 * compile/compile-object-run.c: Include block.h.
8815 (compile_object_run): Reset module variable after it is freed. Use
8816 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8817
8818 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8819
8820 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8821 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8822 (c_compute_program): Call generate_register_struct after typedefs.
8823 * compile/compile-loc2c.c (push, pushf_register_address)
8824 (pushf_register): Cast to GCC_UINTPTR.
8825 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8826 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8827 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8828 * compile/compile.c (_initialize_compile): Enable warnings for
8829 COMPILE_ARGS.
8830
8831 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8832
8833 * cli/cli-script.c (execute_control_command): Update
8834 eval_compile_command caller.
8835 * compile/compile-object-load.c (compile_object_load): Add parameters
8836 scope and scope_data. Set them.
8837 * compile/compile-object-load.h (struct compile_module): Add fields
8838 scope and scope_data.
8839 (compile_object_load): Add parameters scope and scope_data.
8840 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8841 scope and scope_data.
8842 (compile_object_run): Propagate the fields scope and scope_data.
8843 * compile/compile.c (compile_file_command, compile_code_command):
8844 Update eval_compile_command callers.
8845 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8846 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8847 * defs.h (struct command_line): Add field scope_data.
8848
8849 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8850
8851 * printcmd.c (struct format_data): Move it to valprint.h.
8852 (print_command_parse_format, print_value): New functions from ...
8853 (print_command_1): ... here. Call them.
8854 * valprint.h (struct format_data): Move it here from printcmd.c.
8855 (print_command_parse_format, print_value): New declarations.
8856
8857 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8858
8859 * compile/compile-object-load.c (compile_object_load): Add
8860 COMPILE_DEBUG message.
8861
8862 2015-05-15 Jerome Guitton <guitton@adacore.com>
8863
8864 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8865 index to get element instead of enum value.
8866 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8867 of index to compute length, but enum values to compute bounds.
8868 (ada_array_length): Use enum position of index instead of enum value.
8869 (pos_atr): Move position computation to...
8870 (ada_evaluate_subexp): Use enum values to compute bounds.
8871 * gdbtypes.c (discrete_position): ...this new function.
8872 * gdbtypes.h (discrete_position): New function declaration.
8873 * valprint.c (val_print_array_elements): Call discrete_position
8874 to handle array indexed by non-contiguous enumeration types.
8875
8876 2015-05-15 Jerome Guitton <guitton@adacore.com>
8877
8878 * ada-lang.c (find_parallel_type_by_descriptive_type):
8879 Go through typedefs during lookup.
8880 (to_fixed_array_type): Add support for non-bit packed arrays
8881 as variable-length fields.
8882
8883 2015-05-15 Pedro Alves <palves@redhat.com>
8884 Simon Marchi <simon.marchi@ericsson.com>
8885
8886 * event-loop.c (gdb_notifier) <next_file_handler,
8887 next_poll_fds_index>: New fields.
8888 (get_next_file_handler_to_handle_and_advance): New function.
8889 (delete_file_handler): If deleting the next file handler to
8890 handle, advance to the next file handler.
8891 (gdb_wait_for_event): Bail early if no event fired. Poll file
8892 handlers in round-robin fashion.
8893
8894 2015-05-15 Pedro Alves <palves@redhat.com>
8895
8896 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8897 'private' to 'priv'.
8898
8899 2015-05-15 Pedro Alves <palves@redhat.com>
8900
8901 * nat/linux-nat.h: Include "target/waitstatus.h".
8902
8903 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8904
8905 * python/py-unwind.c (struct reg_info): Move out of ...
8906 (struct cached_frame_info): ... this scope.
8907 (pending_frame_object_type, unwind_info_object_type): Make extern.
8908
8909 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8910
8911 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8912 accumSize is never negative.
8913
8914 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8915
8916 * tui/tui-command.c: Remove include of <ctype.h>.
8917 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8918
8919 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8920
8921 * dwarf2read.c (die_needs_namespace): Return 1 for
8922 DW_TAG_inlined_subroutine.
8923
8924 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8925
8926 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8927 (regcache_cpy_no_passthrough): Make it static, add function comment.
8928 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8929 (regcache_cpy_no_passthrough): Remove declaration.
8930
8931 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 * gdbthread.h (struct thread_control_state): Update comment for
8934 proceed_to_finish.
8935 * infcall.c (run_inferior_call): Update comment about
8936 proceed_to_finish.
8937 * infcmd.c (get_return_value): Update comment about stop_registers.
8938 (finish_forward): Update comment about proceed_to_finish.
8939 * infrun.c (stop_registers): Remove.
8940 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8941 * infrun.h (stop_registers): Remove.
8942
8943 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8944
8945 * infcall.c (struct dummy_frame_context_saver)
8946 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8947 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8948 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8949 New.
8950 (call_function_by_hand_dummy): Move discard_cleanups of
8951 inf_status_cleanup before dummy_frame_push. Call
8952 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8953 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8954 * infcall.h (struct dummy_frame_context_saver)
8955 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8956 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8957 New declarations.
8958 * infcmd.c: Include infcall.h.
8959 (get_return_value): Add parameter ctx_saver, use it instead of
8960 stop_registers.
8961 (print_return_value): Add parameter ctx_saver, pass it.
8962 (struct finish_command_continuation_args): Add field ctx_saver.
8963 (finish_command_continuation): Update print_return_value caller.
8964 (finish_command_continuation_free_arg): Free also ctx_saver.
8965 (finish_forward): Call dummy_frame_context_saver_setup.
8966 * inferior.h (struct dummy_frame_context_saver): New declaration.
8967 (get_return_value): Add parameter ctx_saver.
8968 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8969 get_return_value caller.
8970
8971 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8972
8973 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8974 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8975 (remove_dummy_frame): Process dtor_list.
8976 (pop_dummy_frame): Process dtor_list.
8977 (register_dummy_frame_dtor): Maintain dtor_list.
8978 (find_dummy_frame_dtor): Handle dtor_list.
8979 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8980 Update comments.
8981
8982 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8983
8984 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8985 registers_valid.
8986 (compile_object_run): Update do_module_cleanup caller.
8987 * dummy-frame.c: Include infcall.h.
8988 (struct dummy_frame): Update dtor comment.
8989 (remove_dummy_frame): Call dtor.
8990 (pop_dummy_frame): Update dtor caller.
8991 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8992 registers_valid.
8993
8994 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8995
8996 GDB 7.9.1 released.
8997
8998 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8999
9000 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
9001 Xmethods now being able to specify a result type to that new
9002 sectioin.
9003
9004 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9005
9006 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9007 first before resizing the window.
9008 * tui/tui.c (tui_enable): Likewise.
9009
9010 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9011
9012 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9013 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9014 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9015 dummy_dtor parameter.
9016 * infcall.h: Include dummy-frame.h.
9017 (call_function_by_hand_dummy_dtor_ftype): Remove.
9018 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9019 parameter.
9020
9021 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9022
9023 PR gdb/17820
9024 * top.c (history_size_setshow_var): Change type to signed.
9025 Initialize to -2. Update documentation.
9026 (set_readline_history_size): Define.
9027 (set_history_size_command): Use it. Remove logic for handling
9028 out-of-range sizes.
9029 (init_history): Use set_readline_history_size(). Test for a
9030 value of -2 instead of 0 when determining whether to set a
9031 default history size.
9032 (init_main): Decode the argument of the "size" command as a
9033 zuinteger_unlimited.
9034
9035 2015-05-12 Doug Evans <dje@google.com>
9036
9037 * dwarf2read.c (struct file_entry): Tweak comments.
9038 (get_debug_line_section): Tweak comments.
9039
9040 2015-05-12 Don Breazeal <donb@codesourcery.com>
9041
9042 * NEWS: Announce fork support in the RSP and support
9043 for fork debugging in extended mode.
9044
9045 2015-05-12 Don Breazeal <donb@codesourcery.com>
9046
9047 * remote.c (remote_insert_fork_catchpoint): New function.
9048 (remote_remove_fork_catchpoint): New function.
9049 (remote_insert_vfork_catchpoint): New function.
9050 (remote_remove_vfork_catchpoint): New function.
9051 (pending_fork_parent_callback): New function.
9052 (remove_new_fork_child): New function.
9053 (remote_update_thread_list): Call remote_notif_get_pending_events
9054 and remove_new_fork_child.
9055 (extended_remote_kill): Kill fork child when killing the
9056 parent before follow_fork completes.
9057 (init_extended_remote_ops): Initialize target vector with
9058 new fork catchpoint functions.
9059
9060 2015-05-12 Don Breazeal <donb@codesourcery.com>
9061
9062 * remote.c (remove_vfork_event_p): New function.
9063 (remote_follow_fork): Add vfork event type to event checking.
9064 (remote_parse_stop_reply): New stop reasons "vfork" and
9065 "vforkdone" for RSP 'T' Stop Reply Packet.
9066
9067 2015-05-12 Don Breazeal <donb@codesourcery.com>
9068
9069 * linux-nat.c (linux_nat_ptrace_options): New function.
9070 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9071 Call linux_nat_ptrace_options and use different argument to
9072 linux_enable_event_reporting.
9073 (_initialize_linux_nat): Delete call to
9074 linux_ptrace_set_additional_flags.
9075 * nat/linux-ptrace.c (current_ptrace_options): Rename to
9076 supported_ptrace_options.
9077 (additional_flags): Delete variable.
9078 (linux_check_ptrace_features): Use supported_ptrace_options.
9079 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9080 Likewise, and remove additional_flags check.
9081 (linux_enable_event_reporting): Change 'attached' argument to
9082 'options'. Use supported_ptrace_options.
9083 (ptrace_supports_feature): Change comment. Use
9084 supported_ptrace_options.
9085 (linux_ptrace_set_additional_flags): Delete function.
9086 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9087 Delete function prototype.
9088 * remote.c (remote_fork_event_p): New function.
9089 (remote_detach_pid): New function.
9090 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9091 if doing detach-on-fork.
9092 (remote_follow_fork): New function.
9093 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9094 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9095 (init_extended_remote_ops): Initialize to_follow_fork.
9096
9097 2015-05-12 Don Breazeal <donb@codesourcery.com>
9098
9099 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9100 from static to extern.
9101 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9102 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9103 * PACKET_vfork_event_feature>: New enumeration constants.
9104 (remote_protocol_features): Add table entries for new packets.
9105 (remote_query_supported): Add new feature queries to qSupported
9106 packet.
9107
9108 2015-05-12 Gary Benson <gbenson@redhat.com>
9109
9110 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9111 for fake PIDs as well as real ones.
9112 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9113
9114 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9115
9116 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9117 * python/py-value.c (valpy_reference_value): New function.
9118 (valpy_const_value): Likewise.
9119 (value_object_methods): Add new methods.
9120 * value.c (make_cv_value): New function.
9121 * value.h (make_cv_value): Declare.
9122
9123 2015-05-08 Yao Qi <yao@codesourcery.com>
9124 Sandra Loosemore <sandra@codesourcery.com>
9125
9126 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9127 to 'lh->include_dirs' before accessing to it.
9128 (psymtab_include_file_name): Likewise.
9129 (dwarf_decode_lines_1): Likewise.
9130 (dwarf_decode_lines): Likewise.
9131 (file_file_name): Likewise.
9132
9133 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9134
9135 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9136 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9137 (nios2_linux_rt_sigreturn_init): Adjust base address of
9138 register save area.
9139
9140 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9141
9142 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9143 "trap 31" as the breakpoint instruction on all targets.
9144
9145 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9146
9147 * infcmd.c (print_return_value): Remove unused declaration.
9148
9149 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9150
9151 * dwarf2read.c (attr_to_dynamic_prop)
9152 <DW_AT_data_member_location>: Use read_type_die isntead of
9153 get_die_type.
9154
9155 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9156
9157 * ada-lang.c (ada_convert_actual): Add handling of formals
9158 passed inside an aligner type.
9159
9160 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9161
9162 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9163
9164 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9165
9166 PR python/18291
9167 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9168 Print xmethod matcher status.
9169
9170 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9171
9172 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9173 register in the regcache when treating the PSWM register, and vice
9174 versa.
9175
9176 2015-05-07 Gary Benson <gbenson@redhat.com>
9177
9178 * linux-thread-db.c (struct thread_db_info)
9179 <td_ta_map_id2thr_p>: Remove field.
9180 (try_thread_db_load_1): Remove initialization for the above.
9181
9182 2015-05-07 Gary Benson <gbenson@redhat.com>
9183
9184 * linux-thread-db.c (struct thread_db_info)
9185 <td_thr_validate_p>: Remove field.
9186 (try_thread_db_load_1): Remove initialization for the above.
9187
9188 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9189
9190 * compile/compile-object-load.c (compile_object_load): Support
9191 mst_text_gnu_ifunc.
9192
9193 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9194
9195 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9196 const. Use new variables for the const compatibility.
9197 (eval_compile_command): Make the cmd_string parameter const.
9198 * compile/compile.h (eval_compile_command): Make the cmd_string
9199 parameter const.
9200
9201 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9202
9203 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9204 comment.
9205 * top.c (deprecated_init_ui_hook): Delete.
9206 (gdb_init): Remove handling of deprecated_init_ui_hook.
9207 * interps.c (clear_interpreter_hooks): Remove handling of
9208 deprecated_init_ui_hook.
9209 * main.c (captured_main): Update comment.
9210
9211 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9212
9213 * solib.c (_initialize_solib): Add "info dll" alias creation.
9214 * windows-nat.c (set_windows_aliases): Delete.
9215 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9216 assignment.
9217 * NEWS: Add news entry about "info dll" now being available
9218 on all platforms.
9219
9220 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9221
9222 * ada-lang.c (value_assign_to_component): Reformat and improve
9223 documentation. Remove all trailing spaces.
9224
9225 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9226
9227 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9228 Stop counting inlined frames as soon as an out-of-line function
9229 is found.
9230
9231 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9232
9233 * dwarf2read.c (inherit_abstract_dies): Skip
9234 DW_TAG_GNU_call_site dies while inheriting children of an
9235 abstract DIE into a scope.
9236 (read_lexical_block_scope): Inherit abstract DIE's for
9237 lexical scopes.
9238
9239 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9240
9241 * ada-valprint.c (val_print_packed_array_elements): Delete
9242 variable "len". Add a type-length check when comparing two
9243 consecutive elements of the array. Use the element's actual
9244 length in call to value_contents_eq.
9245 * ada-lang.c (ada_value_primitive_packed_val): Always return
9246 a value whose type has been resolved.
9247
9248 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9249
9250 * ada-lang.c (ada_value_primitive_packed_val): Recompute
9251 BIT_SIZE and LEN if the size of the resolved type is smaller
9252 than BIT_SIZE * HOST_CHAR_BIT.
9253
9254 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9255
9256 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9257 correct address in call to value_at. Adjust call to
9258 value_address accordingly.
9259
9260 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9261
9262 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9263 to print it.
9264
9265 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9266
9267 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9268 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9269 pinfo->valaddr.
9270 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9271 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9272 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9273 Add handling of addr_stack->valaddr.
9274 (resolve_dynamic_type): Add "valaddr" parameter.
9275 Set pinfo.valaddr field.
9276 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9277 resolve_dynamic_type.
9278 (ada_discrete_type_low_bound): Likewise.
9279 * findvar.c (default_read_var_value): Likewise.
9280 * value.c (value_from_contents_and_address): Likewise.
9281
9282 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9283
9284 * gdbtypes.c (resolve_dynamic_array): Use
9285 create_array_type_with_stride instead of create_array_type.
9286
9287 2015-04-30 DJ Delorie <dj@redhat.com>
9288
9289 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9290 rl78_decode_opcode
9291
9292 2015-04-29 Doug Evans <dje@google.com>
9293
9294 PR python/18285
9295 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9296 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9297 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9298 * extension-priv.h (struct extension_language_ops)
9299 <get_xmethod_result_type>: New member.
9300 * extension.c (get_xmethod_result_type): New function.
9301 * extension.h (get_xmethod_result_type): Declare.
9302 * python/py-xmethods.c (get_result_type_method_name): New static
9303 global.
9304 (py_get_result_type_method_name): Ditto.
9305 (gdbpy_get_xmethod_result_type): New function.
9306 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9307 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9308 * python/python.c (python_extension_ops): Add
9309 gdbpy_get_xmethod_result_type.
9310 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9311 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9312 xmethods.
9313 (value_x_unop): Ditto.
9314 * value.c (result_type_of_xmethod): New function.
9315 * value.h (result_type_of_xmethod): Declare.
9316
9317 2015-04-29 Gary Benson <gbenson@redhat.com>
9318
9319 * solib.c (solib_find_1): Allow fd argument to be NULL.
9320 (exec_file_find): Update comment.
9321 (solib_find): Likewise.
9322 * exec.c (exec_file_locate_attach): Use NULL as fd
9323 argument to exec_file_find to avoid having to close
9324 the opened file.
9325 * infrun.c (follow_exec): Likewise.
9326
9327 2015-04-28 Doug Evans <dje@google.com>
9328
9329 PR python/18299
9330 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9331 name or __name__ attributes. Handle gdb module as first argument.
9332
9333 2015-04-28 Doug Evans <dje@google.com>
9334
9335 PR python/18089
9336 * python/py-prettyprint.c (print_children): Verify result of children
9337 iterator. Provide better error message.
9338 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9339 * python/python.c (gdbpy_print_python_errors_p): New function.
9340
9341 2015-04-28 Doug Evans <dje@google.com>
9342
9343 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9344
9345 2015-04-28 Sasha Smundak <asmundak@google.com>
9346
9347 * NEWS: Mention gdb.Type.optimized_out method.
9348 * python/py-type.c (typy_optimized_out): New function.
9349
9350 2015-04-28 John Baldwin <jhb@FreeBSD.org>
9351
9352 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9353
9354 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9355
9356 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9357 (initialize_utils): Move call of init_page_info() to ...
9358 * top.c (gdb_init): ... here.
9359
9360 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9361
9362 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9363 (tui_sigwinch_handler): Still update our idea of
9364 the terminal's width and height even when TUI is not active.
9365
9366 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9367
9368 * utils.h (set_screen_width_and_height): Declare.
9369 * utils.c (set_screen_width_and_height): Define.
9370 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9371
9372 2015-04-28 Gary Benson <gbenson@redhat.com>
9373
9374 * infrun.c (solist.h): New include.
9375 (follow_exec): Use exec_file_find to prefix execd_pathname
9376 with gdb_sysroot.
9377
9378 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9379
9380 * tui/tui-source.c (tui_set_source_content): Avoid calling
9381 strcpy() when offset is 0.
9382
9383 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9384
9385 PR gdb/18155
9386 * tui/tui-data.c (tui_free_window): Don't free the locator
9387 window when passed an SRC_WIN or a DISASSEM_WIN.
9388
9389 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9390
9391 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9392 (tui_win_content): Move declaration.
9393 (struct tui_gen_win_info): Give 'content' field the
9394 type tui_win_content.
9395 * tui/tui-data.c (init_content_element): Remove redundant and
9396 erroneous casts.
9397 (tui_add_content_elements): Remove erroneous cast.
9398 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9399 casts.
9400 (tui_get_begin_asm_address): Likewise.
9401 * tui/tui-regs.c (tui_show_registers): Likewise.
9402 (tui_show_register_group): Likewise.
9403 (tui_display_registers_from): Likewise.
9404 (tui_check_register_values): Likewise.
9405 * tui/tui-source.c (tui_set_source_content): Likewise.
9406 (tui_set_source_content_nil): Likewise.
9407 (tui_source_is_displayed): Likewise.
9408 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9409 (tui_set_locator_fullname): Likewise.
9410 (tui_set_locator_info): Likewise.
9411 (tui_show_frame_info): Likewise.
9412 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9413 (tui_show_source_line): Likewise.
9414 (tui_horizontal_source_scroll): Likewise.
9415 (tui_update_breakpoint_info): Likewise.
9416 (tui_set_exec_info_content): Likewise.
9417 (tui_show_exec_info_content): Likewise.
9418 (tui_alloc_source_buffer): Likewise.
9419 (tui_line_is_displayed): Likewise.
9420 (tui_addr_is_displayed): Likewise.
9421
9422 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9423
9424 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9425 event if PL_FLAG_EXEC is set.
9426 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9427 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9428 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9429 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9430 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9431
9432 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9433
9434 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9435 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9436 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9437 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9438 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9439 [PT_LWPINFO] (fbsd_wait): New function.
9440 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9441 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9442 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9443 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9444 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9445 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9446 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9447 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9448 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9449 "fbsd_wait".
9450 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9451 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9452 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9453 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9454 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9455 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9456 Set "to_post_attach" to "fbsd_post_attach".
9457
9458 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9459
9460 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9461 (fbsd_find_memory_regions): Mark static.
9462 (fbsd_nat_add_target): New function.
9463 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9464 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9465 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9466 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9467 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9468 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9469
9470 2015-04-27 Gary Benson <gbenson@redhat.com>
9471
9472 * objfiles.c (allocate_objfile): Do not attempt to expand name
9473 if name is a "target:" filename.
9474 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9475 to load auto-load scripts for objfiles with "target:" filenames.
9476
9477 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9478
9479 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9480 (enum s390_vector_abi_kind): New enum.
9481 (struct gdbarch_tdep)<vector_abi>: New field.
9482 (s390_effective_inner_type): Add parameter min_size. Stop
9483 unwrapping if the inner type is smaller than min_size.
9484 (s390_function_arg_float): Adjust call to
9485 s390_effective_inner_type.
9486 (s390_function_arg_vector): New function.
9487 (s390_function_arg_integer): Adjust comment.
9488 (struct s390_arg_state)<vr>: New field.
9489 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9490 arguments according to vector ABI when appropriate.
9491 (s390_push_dummy_call): Initialize the argument state's field
9492 'vr'. Adjust calls to s390_handle_arg.
9493 (s390_register_return_value): Handle vector return values.
9494 (s390_return_value): Apply the "register" return value convention
9495 to a vector when appropriate.
9496 (s390_gdbarch_init): Initialize tdep->vector_abi.
9497 * NEWS: Announce S390 vector ABI support.
9498
9499 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9500
9501 * s390-linux-tdep.c (s390_return_value_convention): Remove
9502 function. Inline its logic...
9503 (s390_return_value): ...here. Instead, move the handling of the
9504 "register" return value convention...
9505 (s390_register_return_value): ...here. New function.
9506
9507 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9508
9509 * s390-linux-tdep.c
9510 (is_float_singleton): Remove function. Move the "singleton" part
9511 of the logic...
9512 (s390_effective_inner_type): ...here. New function.
9513 (is_float_like): Remove function. Inline its logic...
9514 (s390_function_arg_float): ...here.
9515 (is_pointer_like, is_integer_like, is_struct_like): Remove
9516 functions. Inline their logic...
9517 (s390_function_arg_integer): ...here.
9518 (s390_function_arg_pass_by_reference): Remove function.
9519 (extend_simple_arg): Remove function.
9520 (alignment_of): Remove function.
9521 (struct s390_arg_state): New structure.
9522 (s390_handle_arg): New function.
9523 (s390_push_dummy_call): Move parameter placement logic to the new
9524 function s390_handle_arg. Call it for calculating the stack area
9525 sizes first, and again for actually writing the parameters.
9526
9527 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9528
9529 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9530 false if the argument is zero.
9531
9532 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9533
9534 * ada-lang.c (template_to_static_fixed_type): Return input type
9535 when it is already fixed. Cache the input type itself when not
9536 creating a static fixed copy. Make it explicit that we never
9537 molestate the input type.
9538 * gdbtypes.c (resolve_dynamic_struct): Reset the
9539 TYPE_TARGET_TYPE field for resolved copies.
9540
9541 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9542
9543 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9544 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9545 (template_to_static_fixed_type): Call ada_check_typedef only
9546 when necessary.
9547
9548 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9549
9550 * cli/cli-dump.c (srec_dump_command): Add internationalization
9551 mark ups.
9552 (ihex_dump_command): Likewise.
9553 (tekhex_dump_command): Likewise.
9554 (binary_dump_command): Likewise.
9555 (binary_append_command): Likewise.
9556
9557 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9558
9559 * cli/cli-dump.c (verilog_cmdlist): New variable.
9560 (dump_verilog_memory): New function.
9561 (dump_verilog_value): New function.
9562 (verilog_dump_command): New function.
9563 (_initialize_cli_dump): Add new commands to support verilog dump
9564 format.
9565 * NEWS: Add entry for "dump verilog".
9566
9567 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9568
9569 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9570 descriptive type when there is none.
9571
9572 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9573
9574 * tui/tui-win.c (tui_async_resize_screen): Call
9575 rl_resize_terminal().
9576
9577 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9578
9579 * windows-nat.c (handle_output_debug_string): Don't change
9580 current_event.dwThreadId.
9581 (get_windows_debug_event): Use thread_id, rather than relying on
9582 current_event.dwThreadId being changed.
9583
9584 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9585
9586 * windows-nat.c (windows_continue): Report an error if
9587 ContinueDebugEvent() fails.
9588
9589 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9590
9591 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9592
9593 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9594
9595 * windows-nat.c (get_windows_debug_event): Replace retval with
9596 thread_id throughout. Update stale comment.
9597
9598 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9599
9600 * windows-nat.c (get_windows_debug_event): Don't use ternary
9601 conditional operator.
9602
9603 2015-04-21 Pierre Muller <muller@sourceware.org>
9604
9605 PR pascal/17815
9606 p-exp.y (yylex): Reorganize code to return the matched pattern
9607 for a field of this.
9608
9609 2015-04-21 Gary Benson <gbenson@redhat.com>
9610
9611 * common/fileio.h (fileio_to_host_openflags): New declaration.
9612 * common/fileio.c (fcntl.h): New include.
9613 (fileio_to_host_openflags): New function, factored out from...
9614 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9615 Single use updated.
9616
9617 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9618
9619 * rl78-tdep.c (RL78_SP_ADDR): Define.
9620 (opc_reg_to_gdb_regnum): New static function.
9621 (rl78_analyze_prologue): Recognize instructions forming slightly
9622 more interesting prologues.
9623
9624 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9625
9626 Revert:
9627 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9628 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9629 TYPE_CODE_REF types so that they are not considered as dynamic
9630 depending on the referenced type.
9631 (resolve_dynamic_type_internal): Likewise.
9632
9633 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9634
9635 Revert:
9636 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9637 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9638 "top_level" parameter.
9639 (resolve_dynamic_type_internal): Remove the unused "top_level"
9640 parameter. Update call to is_dynamic_type_internal.
9641 (is_dynamic_type): Update call to is_dynamic_type_internal.
9642 (resolve_dynamic_range): Update call to
9643 resolve_dynamic_type_internal.
9644 (resolve_dynamic_union): Likewise.
9645 (resolve_dynamic_struct): Likewise.
9646 (resolve_dynamic_type): Likewise.
9647
9648 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9649
9650 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9651 xmalloc.
9652
9653 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9654
9655 * reply_mig_hack.awk: Robustify parsing.
9656
9657 * reply_mig_hack.awk: Don't bother to declare an intermediate
9658 function pointer variable.
9659
9660 2015-04-17 Doug Evans <dje@google.com>
9661
9662 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9663 to "exec_displacement" to avoid confusion with inner use of the name.
9664
9665 2015-04-17 Pedro Alves <palves@redhat.com>
9666
9667 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9668 if HW point of TYPE isn't supported.
9669
9670 2015-04-17 Yao Qi <yao.qi@linaro.org>
9671 Pedro Alves <palves@redhat.com>
9672
9673 * target.h (target_can_use_hardware_watchpoint): Update comments.
9674 Remove trailing ";".
9675
9676 2015-04-17 Gary Benson <gbenson@redhat.com>
9677
9678 * remote.c (remote_add_inferior): New argument try_open_exec.
9679 If nonzero, attempt to open the inferior's executable file as
9680 the main executable if no main executable is open already.
9681 All callers updated.
9682 * NEWS: Mention that GDB now supports automatic location and
9683 retrieval of executable + files from remote targets.
9684
9685 2015-04-17 Gary Benson <gbenson@redhat.com>
9686
9687 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9688 * remote.c (PACKET_qXfer_exec_file): Likewise.
9689 (remote_protocol_features): Register the
9690 "qXfer:exec-file:read" feature.
9691 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9692 (remote_pid_to_exec_file): New function.
9693 (init_remote_ops): Initialize to_pid_to_exec_file.
9694 (_initialize_remote): Register new "set/show remote
9695 pid-to-exec-file-packet" command.
9696 * NEWS: Announce new qXfer:exec-file:read packet.
9697
9698 2015-04-17 Gary Benson <gbenson@redhat.com>
9699
9700 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9701 New declaration.
9702 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9703 New function, factored out from...
9704 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9705
9706 2015-04-17 Gary Benson <gbenson@redhat.com>
9707
9708 * exec.c (solist.h): New include.
9709 (exec_file_locate_attach): Prefix absolute executable
9710 paths with gdb_sysroot if set.
9711 * NEWS: Mention that executable paths may be prepended
9712 with sysroot.
9713
9714 2015-04-17 Gary Benson <gbenson@redhat.com>
9715
9716 * solist.h (exec_file_find): New declaration.
9717 * solib.c (solib_find_1): New function, factored out from...
9718 (solib_find): ...here.
9719 (exec_file_find): New function.
9720
9721 2015-04-17 Gary Benson <gbenson@redhat.com>
9722
9723 * gdbcore.h (exec_file_locate_attach): New declaration.
9724 * exec.c (exec_file_locate_attach): New function, factored
9725 out from...
9726 * infcmd.c (attach_command_post_wait): ...here.
9727
9728 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9729
9730 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9731
9732 2015-04-16 Yao Qi <yao.qi@linaro.org>
9733
9734 * infrun.c (maybe_software_singlestep): Declare.
9735 (displaced_step_fixup): Call maybe_software_singlestep.
9736
9737 2015-04-15 Doug Evans <dje@google.com>
9738
9739 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9740
9741 2015-04-15 Doug Evans <dje@google.com>
9742
9743 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9744
9745 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9746
9747 * python/lib/gdb/command/unwinders.py: Add parentheses.
9748
9749 2015-04-15 Yao Qi <yao.qi@linaro.org>
9750
9751 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9752
9753 2015-04-15 Yao Qi <yao.qi@linaro.org>
9754
9755 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9756
9757 2015-04-15 Yao Qi <yao.qi@linaro.org>
9758
9759 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9760 dsc->insn_size instead of 4.
9761
9762 2015-04-14 Gary Benson <gbenson@redhat.com>
9763
9764 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9765 * minidebug.c (lzma_stat): Likewise.
9766 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9767 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9768
9769 2015-04-13 Stan Shebs <stanshebs@google.com>
9770
9771 * MAINTAINERS: Update my email address.
9772
9773 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9774
9775 * amd64-tdep.c (amd64_target_description): New function.
9776 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9777 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9778 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9779 x86 extended save area.
9780 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9781 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9782 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9783 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9784 "amd64fbsd_read_description".
9785 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9786 (amd64fbsd_supply_xstateregset): New function.
9787 (amd64fbsd_collect_xstateregset): New function.
9788 Add "amd64fbsd_xstateregset".
9789 (amd64fbsd_iterate_over_regset_sections): New function.
9790 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9791 "I386_FBSD_XSAVE_XCR0_OFFSET".
9792 Add "iterate_over_regset_sections" gdbarch method.
9793 Add "core_read_description" gdbarch method.
9794 * i386-tdep.c (i386_target_description): New function.
9795 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9796 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9797 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9798 x86 extended save area.
9799 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9800 * i386bsd-nat.h: Export i386bsd_xsave_len.
9801 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9802 (_initialize_i386fbsd_nat): Set "to_read_description" to
9803 "i386fbsd_read_description".
9804 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9805 (i386fbsd_core_read_description): New function.
9806 (i386fbsd_supply_xstateregset): New function.
9807 (i386fbsd_collect_xstateregset): New function.
9808 Add "i386fbsd_xstateregset".
9809 (i386fbsd_iterate_over_regset_sections): New function.
9810 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9811 "I386_FBSD_XSAVE_XCR0_OFFSET".
9812 Add "iterate_over_regset_sections" gdbarch method.
9813 Add "core_read_description" gdbarch method.
9814 * i386fbsd-tdep.h: New file.
9815
9816 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9817
9818 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9819 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9820 conditional.
9821 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9822 and lb.
9823 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9824 va.
9825 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9826 conditional.
9827 * defs.h (xdb_commands): Remove declaration.
9828 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9829 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9830 * infcmd.c (run_no_args_command, go_command): Remove.
9831 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9832 * infrun.c (xdb_handle_command): Remove.
9833 (_initialize_infrun): Remove xdb_commands for lz and z.
9834 * main.c (xdb_commands): Remove variable.
9835 (captured_main): Remove "xdb" from long_options.
9836 (print_gdb_help): Remove --xdb from help.
9837 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9838 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9839 * stack.c (backtrace_full_command, args_plus_locals_info)
9840 (current_frame_command): Remove.
9841 (_initialize_stack): Remove xdb_commands for t, T and l.
9842 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9843 * thread.c (_initialize_thread): Remove xdb_commands condition.
9844 * tui/tui-layout.c (tui_toggle_layout_command)
9845 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9846 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9847 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9848 (tui_scroll_regs_backward_command): Remove.
9849 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9850 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9851 (_initialize_tui_win): Remove xdb_commands for U and w.
9852 * utils.c (pagination_on_command, pagination_off_command): Remove.
9853 (initialize_utils): Remove xdb_commands for am and sm.
9854
9855 2015-04-10 Pedro Alves <palves@redhat.com>
9856
9857 * infrun.c (displaced_step_fixup): Switch to the event ptid
9858 earlier. If the thread stopped for a watchpoint and the
9859 target/arch has non-continuable watchpoints, cancel the displaced
9860 step.
9861 (resume): Don't start a displaced step if in-line step-over info
9862 is valid.
9863
9864 2015-04-10 Pedro Alves <palves@redhat.com>
9865
9866 * infrun.c (displaced_step_in_progress): New function.
9867 (do_target_resume): Advise target to report all signals if
9868 displaced stepping.
9869
9870 2015-04-10 Pedro Alves <palves@redhat.com>
9871
9872 PR gdb/18216
9873 * infrun.c (process_event_stop_test): Don't assume a step-resume
9874 is set if tp->stepped_breakpoint is true.
9875
9876 2015-04-10 Yao Qi <yao.qi@linaro.org>
9877
9878 * arm-tdep.c (install_alu_reg): Update comment.
9879 (thumb_copy_alu_reg): Remove local variable rn. Update
9880 debugging message. Use r2 instead of r1 in the modified
9881 instruction.
9882
9883 2015-04-10 Pedro Alves <palves@redhat.com>
9884
9885 PR gdb/13858
9886 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9887 linux_displaced_step_location as gdbarch_displaced_step_location
9888 hook.
9889 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9890 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9891 * linux-tdep.c (linux_displaced_step_location): New function,
9892 based on ppc_linux_displaced_step_location.
9893 * linux-tdep.h (linux_displaced_step_location): New declaration.
9894 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9895 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9896 Delete.
9897 (ppc_linux_init_abi): Install linux_displaced_step_location as
9898 gdbarch_displaced_step_location hook, even without Cell/B.E..
9899 (_initialize_ppc_linux_tdep): Don't install
9900 ppc_linux_inferior_created as inferior_created observer.
9901 * s390-linux-tdep.c (s390_gdbarch_init): Install
9902 linux_displaced_step_location as gdbarch_displaced_step_location
9903 hook.
9904
9905 2015-04-09 Gary Benson <gbenson@redhat.com>
9906
9907 * common/common-remote-fileio.h: Rename to...
9908 * common/fileio.h: ...this. Update all references.
9909 (remote_fileio_to_fio_error): Rename to...
9910 (host_to_fileio_error): ...this.
9911 (remote_fileio_to_be): Rename to...
9912 (host_to_bigendian): ...this. Update all callers.
9913 (remote_fileio_to_fio_uint): Rename to...
9914 (host_to_fileio_uint): ...this. Update all callers.
9915 (remote_fileio_to_fio_time): Rename to...
9916 (host_to_fileio_time): ...this. Update all callers.
9917 (remote_fileio_to_fio_stat): Rename to...
9918 (host_to_fileio_stat): ...this.
9919 Update all references.
9920 * common/common-remote-fileio.c: Rename to...
9921 * common/fileio.c: ...this. Update all references.
9922 (remote_fileio_to_fio_error): Rename to...
9923 (host_to_fileio_error): ...this. Update all callers.
9924 (remote_fileio_mode_to_target): Rename to...
9925 (fileio_mode_pack): ...this. Update all callers.
9926 (remote_fileio_to_fio_mode): Rename to...
9927 (host_to_fileio_mode): ...this. Update all callers.
9928 (remote_fileio_to_fio_ulong): Rename to...
9929 (host_to_fileio_ulong): ...this. Update all callers.
9930 (remote_fileio_to_fio_stat): Rename to...
9931 (host_to_fileio_stat): ...this. Update all callers.
9932
9933 2015-04-09 Andy Wingo <wingo@igalia.com>
9934
9935 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9936 (frame_functions): Bind gdbscm_frame_read_register to
9937 frame-read-register.
9938 * guile/lib/gdb.scm (frame-read-register): Export.
9939
9940 2015-04-09 Gary Benson <gbenson@redhat.com>
9941
9942 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9943 New declaration.
9944 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9945 New function, factored out the named functions below.
9946 * inf-child.c (gdb/fileio.h): Remove include.
9947 (common-remote-fileio.h): New include.
9948 (inf_child_errno_to_fileio_error): Remove function. Update
9949 all callers to use remote_fileio_to_fio_error.
9950 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9951
9952 2015-04-09 Andy Wingo <wingo@igalia.com>
9953
9954 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9955
9956 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9957
9958 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9959 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9960 * configure: Regenerated.
9961
9962 2015-04-09 Pedro Alves <palves@redhat.com>
9963
9964 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9965 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9966 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9967 * gnulib/import/Makefile.am: Update.
9968 * gnulib/import/Makefile.in: Update.
9969 * gnulib/import/m4/gnulib-cache.m4: Update.
9970 * gnulib/import/m4/gnulib-comp.m4: Update.
9971 * gnulib/import/m4/strtok_r.m4: New file.
9972 * gnulib/import/strtok_r.c: New file.
9973
9974 2015-04-09 Pedro Alves <palves@redhat.com>
9975
9976 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9977 "called too early to check prototype".
9978
9979 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9980
9981 PR python/16699
9982 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9983 use a caching mechanism. Adjust comments and code to reflect
9984 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9985 (cmdpy_completer_handle_brkchars): Adjust call to
9986 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9987 (cmdpy_completer): Likewise.
9988
9989 2015-04-08 Yao Qi <yao.qi@linaro.org>
9990
9991 * spu-tdep.c (spu_gdbarch_init): Don't call
9992 set_gdbarch_cannot_step_breakpoint.
9993
9994 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9995
9996 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9997
9998 2015-04-07 Pedro Alves <palves@redhat.com>
9999
10000 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10001 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10002 (delete_exited_threads): New declaration.
10003 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10004 * linux-nat.c (linux_nat_update_thread_list): New function.
10005 (linux_nat_add_target): Install it.
10006 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10007 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10008 (delete_exited_threads): New function.
10009
10010 2015-04-07 Pedro Alves <pedro@codesourcery.com>
10011
10012 * infrun.c (resume) <displaced stepping debug output>: Get the
10013 leader thread's regcache, not resume_ptid's.
10014
10015 2015-04-06 Doug Evans <xdje42@gmail.com>
10016
10017 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10018 VAR_DOMAIN.
10019 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10020 Include symbol domain in debugging output.
10021
10022 2015-04-06 Pedro Alves <palves@redhat.com>
10023 Bernd Edlinger <bernd.edlinger@hotmail.de>
10024
10025 * configure.ac: Remove the mingw32-specific stub-termcap.o
10026 fallback, and instead fallback to the stub termcap on all hosts.
10027 * configure: Regenerate.
10028 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10029 symbols.
10030
10031 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10032
10033 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10034 "top_level" parameter.
10035 (resolve_dynamic_type_internal): Remove the unused "top_level"
10036 parameter. Update call to is_dynamic_type_internal.
10037 (is_dynamic_type): Update call to is_dynamic_type_internal.
10038 (resolve_dynamic_range): Update call to
10039 resolve_dynamic_type_internal.
10040 (resolve_dynamic_union): Likewise.
10041 (resolve_dynamic_struct): Likewise.
10042 (resolve_dynamic_type): Likewise.
10043
10044 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10045
10046 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10047 TYPE_CODE_REF types so that they are not considered as dynamic
10048 depending on the referenced type.
10049 (resolve_dynamic_type_internal): Likewise.
10050
10051 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10052
10053 * Makefile.in (top_srcdir): New.
10054 * configure: Regenerated.
10055
10056 2015-04-02 Gary Benson <gbenson@redhat.com>
10057
10058 * NEWS: Announce the new default sysroot of "target:".
10059
10060 2015-04-02 Gary Benson <gbenson@redhat.com>
10061
10062 * main.c (captured_main): Set gdb_sysroot to "target:"
10063 if not otherwise set.
10064
10065 2015-04-02 Gary Benson <gbenson@redhat.com>
10066
10067 * exec.c (exec_file_attach): Support "target:" filenames.
10068
10069 2015-04-02 Gary Benson <gbenson@redhat.com>
10070
10071 * solib.c (solib_find): Strip "target:" prefix from sysroot
10072 if accessing local files.
10073
10074 2015-04-02 Gary Benson <gbenson@redhat.com>
10075
10076 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10077 checks and error messages.
10078
10079 2015-04-02 Gary Benson <gbenson@redhat.com>
10080
10081 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10082 (remote_filename_p): Remove declaration.
10083 (remote_bfd_open): Likewise.
10084 * remote.c (remote_bfd_iovec_open): Remove function.
10085 (remote_bfd_iovec_close): Likewise.
10086 (remote_bfd_iovec_pread): Likewise.
10087 (remote_bfd_iovec_stat): Likewise.
10088 (remote_filename_p): Likewise.
10089 (remote_bfd_open): Likewise.
10090 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10091 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10092 (gdb_bfd_open_maybe_remote): Remove function.
10093 (symfile_bfd_open): Replace remote filename check with
10094 target filename check.
10095 (reread_symbols): Use gdb_bfd_open.
10096 * build-id.c (gdbcore.h): New include.
10097 (build_id_to_debug_bfd): Use gdb_bfd_open.
10098 * infcmd.c (attach_command_post_wait): Remove remote filename
10099 check.
10100 * solib.c (solib_find): Replace remote-specific handling with
10101 target-specific handling. Update comments where necessary.
10102 (solib_bfd_open): Replace remote-specific handling with
10103 target-specific handling.
10104 (gdb_sysroot_changed): New function.
10105 (_initialize_solib): Call the above when gdb_sysroot changes.
10106 * windows-tdep.c (gdbcore.h): New include.
10107 (windows_xfer_shared_library): Use gdb_bfd_open.
10108
10109 2015-04-02 Gary Benson <gbenson@redhat.com>
10110
10111 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10112 (is_target_filename): New declaration.
10113 (gdb_bfd_has_target_filename): Likewise.
10114 (gdb_bfd_open): Update documentation comment.
10115 * gdb_bfd.c (target.h): New include.
10116 (gdb/fileio.h): Likewise.
10117 (is_target_filename): New function.
10118 (gdb_bfd_has_target_filename): Likewise.
10119 (fileio_errno_to_host): Likewise.
10120 (gdb_bfd_iovec_fileio_open): Likewise.
10121 (gdb_bfd_iovec_fileio_pread): Likewise.
10122 (gdb_bfd_iovec_fileio_close): Likewise.
10123 (gdb_bfd_iovec_fileio_fstat): Likewise.
10124 (gdb_bfd_open): Use target fileio to access paths prefixed
10125 with "target:" where necessary.
10126
10127 2015-04-02 Gary Benson <gbenson@redhat.com>
10128
10129 * target.h (struct target_ops) <to_filesystem_is_local>:
10130 New field.
10131 (target_filesystem_is_local): New macro.
10132 * target-delegates.c: Regenerate.
10133 * remote.c (remote_filesystem_is_local): New function.
10134 (init_remote_ops): Initialize to_filesystem_is_local.
10135
10136 2015-04-02 Gary Benson <gbenson@redhat.com>
10137
10138 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10139 (target_fileio_fstat): New declaration.
10140 * target.c (target_fileio_fstat): New function.
10141 * inf-child.c (inf_child_fileio_fstat): Likewise.
10142 (inf_child_target): Initialize to_fileio_fstat.
10143 * remote.c (init_remote_ops): Likewise.
10144
10145 2015-04-01 Sasha Smundak <asmundak@google.com>
10146
10147 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10148 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10149 (py-unwind.o): New recipe.
10150 * NEWS: mention Python frame unwinding.
10151 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10152 gdb/unwinder.py and gdb/command/unwinder.py
10153 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10154 list.
10155 (execute_unwinders): New function.
10156 * python/lib/gdb/command/unwinders.py: New file.
10157 * python/lib/gdb/unwinder.py: New file.
10158 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10159 (objfpy_dealloc): Decrement frame_unwinders reference count.
10160 (objfpy_initialize): Create frame_unwinders list.
10161 (objfpy_get_frame_unwinders): New function.
10162 (objfpy_set_frame_unwinders): Ditto.
10163 (objfile_getset): Add frame_unwinders attribute to Objfile.
10164 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10165 (pspy_dealloc): Decrement frame_unwinders reference count.
10166 (pspy_initialize): Create frame_unwinders list.
10167 (pspy_get_frame_unwinders): New function.
10168 (pspy_set_frame_unwinders): Ditto.
10169 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10170 * python/py-unwind.c: New file.
10171 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10172 (objpy_get_frame_unwinders): New prototype.
10173 (gdbpy_initialize_unwind): New prototype.
10174 * python/python.c (gdbpy_apply_type_printers): Call
10175 gdbpy_initialize_unwind.
10176
10177 2015-04-01 Pedro Alves <palves@redhat.com>
10178
10179 * infrun.c (resume): Check currently_stepping after clearing
10180 stepped_breakpoint, not before.
10181
10182 2015-04-01 Pedro Alves <palves@redhat.com>
10183
10184 * infrun.c (print_target_wait_results): Print all the ptid
10185 elements.
10186
10187 2015-04-01 Pedro Alves <palves@redhat.com>
10188
10189 * infrun.c (keep_going): Also discard cleanups if inserting
10190 breakpoints fails.
10191
10192 2015-04-01 Pedro Alves <palves@redhat.com>
10193
10194 * infrun.c (wait_for_inferior): Install the
10195 finish_thread_state_cleanup cleanup across the whole function, not
10196 just around handle_inferior_event.
10197
10198 2015-04-01 Pedro Alves <palves@redhat.com>
10199
10200 * infrun.c (resume) <step past permanent breakpoint>: Use
10201 do_target_resume.
10202
10203 2015-04-01 Pedro Alves <palves@redhat.com>
10204
10205 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10206
10207 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10208
10209 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10210
10211 2015-04-01 Pedro Alves <palves@redhat.com>
10212
10213 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10214 list if it was marked exited.
10215
10216 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10217
10218 * configure: Regenerated.
10219
10220 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10221 Jan Kratochvil <jan.kratochvil@redhat.com>
10222 Oleg Nesterov <oleg@redhat.com>
10223
10224 PR corefiles/16092
10225 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10226 New enum identifying the various options of the coredump_filter
10227 file.
10228 (struct smaps_vmflags): New struct.
10229 (use_coredump_filter): New variable.
10230 (decode_vmflags): New function.
10231 (mapping_is_anonymous_p): Likewise.
10232 (dump_mapping_p): Likewise.
10233 (linux_find_memory_regions_full): New variables
10234 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10235 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
10236 parsing of its information. Implement memory mapping filtering
10237 based on its contents.
10238 (show_use_coredump_filter): New function.
10239 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
10240 * NEWS: Mention the possibility of using the
10241 '/proc/PID/coredump_filter' file when generating a corefile.
10242 Mention new command 'set use-coredump-filter'.
10243
10244 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10245
10246 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
10247 read_memory_unsigned_integer.
10248
10249 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
10250
10251 * Makefile.in (ZLIB): New.
10252 (ZLIBINC): Likewise.
10253 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10254 (CLIBS): Add $(ZLIB).
10255 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10256 Add -lz to LIBS.
10257 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10258 * top.c (print_gdb_configuration): Remove --with-zlib and
10259 --without-zlib.
10260 * config.in: Regenerated.
10261 * configure: Likewise.
10262
10263 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10264
10265 * NEWS: Mention info os cpus support.
10266 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10267 (struct osdata_type): Add cpus entry, reorder the entries in
10268 alphabetical order.
10269
10270 2015-03-31 Matthias Klose <doko@ubuntu.com>
10271
10272 * compile/compile.c (compile_to_object): Allow triplets with or
10273 without vendor set.
10274
10275 2015-03-30 Doug Evans <dje@google.com>
10276
10277 PR c++/18141
10278 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10279 klass in VAR_DOMAIN.
10280
10281 2015-03-30 Gary Benson <gbenson@redhat.com>
10282
10283 * remote.c (remote_mourn_1): Remove function. Update all callers
10284 to use remote_mourn.
10285 (extended_remote_mourn_1): Remove function. Update all callers
10286 to use extended_remote_mourn.
10287 (extended_remote_attach_1): Remove function. Update all callers
10288 to use extended_remote_attach.
10289
10290 2015-03-28 James Bowman <james.bowman@ftdichip.com>
10291
10292 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10293 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10294 (ALLDEPFILES): Add ft32-tdep.c.
10295 * configure.tgt: Add FT32 entry.
10296 * ft32-tdep.c: New file, FT32 target-dependent code.
10297 * ft32-tdep.h: New file, FT32 target-dependent code.
10298
10299 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10300
10301 Revert:
10302 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10303 Code cleanup.
10304 * printcmd.c (print_command_1): Move expr variable scope.
10305
10306 2015-03-27 Joel Brobecker <brobecker@adacore.com>
10307
10308 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10309
10310 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10311
10312 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10313 sections.
10314
10315 2015-03-26 Joel Brobecker <brobecker@adacore.com>
10316
10317 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10318 exception raised while parsing the probe arguments.
10319 Force parsing to be done using the C language parser.
10320 * expression.h (parse_expression_with_language): Declare.
10321 * parse.c (parse_expression_with_language): New function.
10322
10323 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10324
10325 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10326
10327 2015-03-26 Andy Wingo <wingo@igalia.com>
10328
10329 PR symtab/18148
10330 * dwarf2read.c (struct partial_die_info): Add has_const_value
10331 member.
10332 (add_partial_symbol): Don't punt on symbols that have const_value
10333 attributes.
10334 (read_partial_die): Detect DW_AT_const_value.
10335
10336 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10337
10338 Code cleanup.
10339 * printcmd.c (print_command_1): Move expr variable scope.
10340
10341 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10342
10343 Code cleanup.
10344 * printcmd.c (validate_format): Make the parameter cmdname const.
10345
10346 2015-03-26 Don Breazeal <donb@codesourcery.com>
10347
10348 * remote.c (_initialize_remote): Update comment.
10349
10350 2015-03-26 Pedro Alves <palves@redhat.com>
10351 Jon TURNEY <jon.turney@dronecode.org.uk>
10352
10353 * coffread.c (coff_symfile_read): When constructing the name of an
10354 import stub symbol from import symbol for amd64, only skip the
10355 char after _imp_ if the target is underscored (like i386) and the
10356 char is indeed the target's leading char.
10357
10358 2015-03-25 Pedro Alves <palves@redhat.com>
10359
10360 * target.h <to_async>: Replace 'callback' and 'context' parameters
10361 with boolean 'enable' parameter.
10362 (target_async): Replace CALLBACK and CONTEXT parameters with
10363 boolean ENABLE parameter.
10364 * inf-loop.c (inferior_event_handler): Adjust.
10365 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10366 (linux_nat_resume): Adjust.
10367 (async_client_callback, async_client_context): Delete.
10368 (handle_target_event): Call inferior_event_handler directly.
10369 (linux_nat_async): Replace 'callback' and 'context' parameters
10370 with boolean 'enable' parameter. Adjust. Remove references to
10371 async_client_callback and async_client_context.
10372 (linux_nat_close): Adjust.
10373 * record-btrace.c (record_btrace_async): Replace 'callback' and
10374 'context' parameters with boolean 'enable' parameter. Adjust.
10375 (record_btrace_resume): Adjust.
10376 * record-full.c (record_full_async): Replace 'callback' and
10377 'context' parameters with boolean 'enable' parameter. Adjust.
10378 (record_full_resume, record_full_core_resume): Adjust.
10379 * remote.c (struct remote_state) <async_client_callback,
10380 async_client_context>: Delete fields.
10381 (remote_start_remote, extended_remote_attach_1, remote_resume)
10382 (extended_remote_create_inferior): Adjust.
10383 (remote_async_serial_handler): Call inferior_event_handler
10384 directly.
10385 (remote_async): Replace 'callback' and 'context' parameters with
10386 boolean 'enable' parameter. Adjust.
10387 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10388 Adjust.
10389 * target-delegates.c: Regenerate.
10390
10391 2015-03-25 Gary Benson <gbenson@redhat.com>
10392 Pedro Alves <palves@redhat.com>
10393
10394 * target.c (fileio_ft_t): New typedef, define object vector.
10395 (fileio_fhandles): New static variable.
10396 (is_closed_fileio_fh): New macro.
10397 (lowest_closed_fd): New static variable.
10398 (acquire_fileio_fd): New function.
10399 (release_fileio_fd): Likewise.
10400 (fileio_fd_to_fh): New macro.
10401 (target_fileio_open): Wrap the file descriptor on success.
10402 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10403 (target_fileio_pread): Likewise.
10404 (target_fileio_close): Likewise.
10405
10406 2015-03-24 Pedro Alves <palves@redhat.com>
10407
10408 * thread.c (thread_apply_all_command): Take exited threads into
10409 account.
10410
10411 2015-03-24 Pedro Alves <palves@redhat.com>
10412
10413 * infrun.c (resume, proceed): Mention
10414 switch_back_to_stepped_thread, not switch_back_to_stepping.
10415
10416 2015-03-24 Pedro Alves <palves@redhat.com>
10417
10418 * infrun.c (user_visible_resume_ptid): Rewrite going from
10419 most-locked to unlocked instead of the opposite. Move comment ...
10420 * infrun.h (user_visible_resume_ptid): ... here.
10421
10422 2015-03-24 Pedro Alves <palves@redhat.com>
10423
10424 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10425 to resume the event lwp. Use the lwp's ptid instead of the passed
10426 in (maybe wildcard) ptid.
10427 (stop_wait_callback): Tweak debug log output.
10428 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10429 TRAP_TRACE.
10430 (linux_nat_filter_event): In debug output, distinguish a
10431 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10432 before trying to resume the lwp.
10433
10434 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10435
10436 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10437 pointer indirection.
10438 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10439 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10440
10441 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10442
10443 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10444 Renames DYN_ATTR_DATA_LOCATION.
10445 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10446 DYN_ATTR_DATA_LOCATION.
10447 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10448 instead of DYN_ATTR_DATA_LOCATION.
10449
10450 2015-03-24 Pedro Alves <palves@redhat.com>
10451
10452 * breakpoint.c (until_break_command): Adjust call to proceed.
10453 * gdbthread.h (struct thread_control_state) <stepping_command>:
10454 New field.
10455 * infcall.c (run_inferior_call): Adjust call to proceed.
10456 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10457 Adjust calls to proceed.
10458 (set_step_frame): Set the current thread's step_start_function
10459 here.
10460 (step_once): Adjust calls to proceed.
10461 (jump_command, signal_command, until_next_command)
10462 (finish_backward, finish_forward, proceed_after_attach_callback)
10463 (attach_command_post_wait): Adjust calls to proceed.
10464 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10465 (do_target_resume): New function, factored out from ...
10466 (resume): ... here. Remove 'step' parameter. Instead, check
10467 currently_stepping to determine whether the thread should be
10468 single-stepped.
10469 (proceed): Remove 'step' parameter and don't set the thread's
10470 step_start_function here. Adjust call to 'resume'.
10471 (handle_inferior_event): Adjust calls to 'resume'.
10472 (switch_back_to_stepped_thread): Use do_target_resume instead of
10473 'resume'.
10474 (keep_going): Adjust calls to 'resume'.
10475 * infrun.h (proceed): Remove 'step' parameter.
10476 (resume): Likewise.
10477 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10478 'resume'.
10479 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10480
10481 2015-03-24 Pedro Alves <palves@redhat.com>
10482
10483 * gdbthread.h (struct thread_control_state) <stepping_command>:
10484 New field.
10485 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10486 the thread's stepping_command field.
10487 * infrun.c (resume): Check the thread's stepping_command flag to
10488 determine which threads should be resumed. Rename 'entry_step'
10489 local to user_step.
10490 (clear_proceed_status_thread): Clear 'stepping_command'.
10491 (schedlock_applies): Change parameter type to struct thread_info
10492 pointer. Adjust.
10493 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10494 (switch_back_to_stepped_thread): Adjust calls to
10495 'schedlock_applies'.
10496 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10497
10498 2015-03-24 Pedro Alves <palves@redhat.com>
10499
10500 * infrun.c (step_start_function): Delete and ...
10501 * gdbthread.h (struct thread_control_state) <step_start_function>:
10502 ... now a field here.
10503 * infrun.c (clear_proceed_status_thread): Clear the thread's
10504 step_start_function.
10505 (proceed, process_event_stop_test, print_stop_event): Adjust.
10506
10507 2015-03-24 Pedro Alves <palves@redhat.com>
10508
10509 * infrun.c (proceed): No longer handle negative step.
10510
10511 2015-03-24 Gary Benson <gbenson@redhat.com>
10512
10513 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10514 (x86_linux_prepare_to_resume): Likewise.
10515 * x86-linux-nat.c (x86_linux_new_thread):
10516 Moved to nat/x86-linux.c.
10517 (x86_linux_prepare_to_resume): Likewise.
10518 * nat/x86-linux.c (x86_linux_new_thread): New function.
10519 (x86_linux_prepare_to_resume): Likewise.
10520
10521 2015-03-24 Gary Benson <gbenson@redhat.com>
10522
10523 * nat/x86-linux-dregs.h: New file.
10524 * nat/x86-linux-dregs.c: Likewise.
10525 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10526 (x86-linux-dregs.o): New rule.
10527 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10528 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10529 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10530 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10531 (x86_linux_dr_get): Likewise.
10532 (x86_linux_dr_set): Likewise.
10533 (x86_linux_dr_get_addr): Likewise.
10534 (x86_linux_dr_get_control): Likewise.
10535 (x86_linux_dr_get_status): Likewise.
10536 (update_debug_registers_callback): Likewise.
10537 (x86_linux_dr_set_control): Likewise.
10538 (x86_linux_dr_set_addr): Likewise.
10539 (x86_linux_update_debug_registers): Likewise.
10540
10541 2015-03-24 Gary Benson <gbenson@redhat.com>
10542
10543 * x86-linux-nat.c (x86_linux_update_debug_registers):
10544 New function, factored out from...
10545 (x86_linux_prepare_to_resume): ...this.
10546
10547 2015-03-24 Gary Benson <gbenson@redhat.com>
10548
10549 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10550 (x86_linux_dr_set): Likewise.
10551 (x86_linux_dr_get_addr): Likewise.
10552 (x86_linux_dr_get_control): Likewise.
10553 (x86_linux_dr_get_status): Likewise.
10554 (update_debug_registers_callback): Likewise.
10555 (x86_linux_dr_set_control): Likewise.
10556 (x86_linux_dr_set_addr): Likewise.
10557 (x86_linux_prepare_to_resume): Likewise.
10558 (x86_linux_new_thread): Likewise.
10559
10560 2015-03-24 Gary Benson <gbenson@redhat.com>
10561
10562 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10563 (x86_linux_new_thread): Rename argument.
10564
10565 2015-03-24 Gary Benson <gbenson@redhat.com>
10566
10567 * nat/x86-linux.h: New file.
10568 * nat/x86-linux.c: Likewise.
10569 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10570 (x86-linux.o): New rule.
10571 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10572 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10573 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10574 (lwp_set_arch_private_info): New declaration.
10575 (lwp_arch_private_info): Likewise.
10576 * linux-nat.c (lwp_set_arch_private_info): New function.
10577 (lwp_arch_private_info): Likewise.
10578 * x86-linux-nat.c: Include nat/x86-linux.h.
10579 (arch_lwp_info): Removed structure.
10580 (update_debug_registers_callback):
10581 Use lwp_set_debug_registers_changed.
10582 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10583 and lwp_set_debug_registers_changed.
10584 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10585
10586 2015-03-24 Gary Benson <gbenson@redhat.com>
10587
10588 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10589 (lwp_is_stopped): Likewise.
10590 (lwp_stop_reason): Likewise.
10591 * linux-nat.c (ptid_of_lwp): New function.
10592 (lwp_is_stopped): Likewise.
10593 (lwp_is_stopped_by_watchpoint): Likewise.
10594 * x86-linux-nat.c (update_debug_registers_callback):
10595 Use lwp_is_stopped.
10596 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10597 lwp_stop_reason.
10598
10599 2015-03-24 Gary Benson <gbenson@redhat.com>
10600
10601 * linux-nat.h (linux_stop_lwp): Move declaration to...
10602 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10603
10604 2015-03-24 Gary Benson <gbenson@redhat.com>
10605
10606 * linux-nat.h: Include nat/linux-nat.h.
10607 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10608 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10609 (iterate_over_lwps_ftype): New typedef.
10610 (iterate_over_lwps): New declaration.
10611 * linux-nat.h (iterate_over_lwps): Update comment. Use
10612 iterate_over_lwps_ftype. Update callback return value check.
10613
10614 2015-03-24 Gary Benson <gbenson@redhat.com>
10615
10616 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10617 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10618
10619 2015-03-24 Gary Benson <gbenson@redhat.com>
10620
10621 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10622 * linux-nat.c (current_lwp_ptid): New function.
10623 * x86-linux-nat.c: Include nat/linux-nat.h.
10624 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10625 (x86_linux_dr_get_control): Likewise.
10626 (x86_linux_dr_get_status): Likewise.
10627 (x86_linux_dr_set_control): Likewise.
10628 (x86_linux_dr_set_addr): Likewise.
10629
10630 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10631
10632 PR breakpoints/16466
10633 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10634
10635 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10636
10637 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10638 * ser-unix.c (hardwire_setparity): Likewise.
10639
10640 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10641
10642 * NEWS: Mention set/show serial parity command.
10643 * monitor.c (monitor_open): Call serial_setparity.
10644 * remote.c (remote_open_1): Likewise.
10645 * ser-base.c (ser_base_serparity): New function.
10646 * ser-base.h (ser_base_setparity): Add declaration.
10647 * ser-go32.c (dos_ops): Set "setparity" field.
10648 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10649 state.Parity.
10650 (ser_windows_setparity): New function.
10651 (hardwire_ops): Add ser_windows_setparity.
10652 (tty_ops): Add NULL for setparity field.
10653 (pipe_ops): Add ser_base_setparity.
10654 (tcp_ops): Likewise.
10655 * ser-pipe.c (pipe_ops): Likewise.
10656 * ser-tcp.c (tcp_ops): Likewise.
10657 * ser-unix.c (hardwire_setparity): Add declaration.
10658 (hardwire_raw): Don't reset PARENB flag.
10659 (hardwire_setparity): New function.
10660 (hardwire_ops): Add hardwire_setparity.
10661 * serial.c (serial_setparity): New function.
10662 (serial_parity): New global.
10663 (parity_none, parity_odd, parity_even, parity_enums, parity):
10664 New static globals.
10665 (set_parity): New function.
10666 (_initialize_serial): Add set/show serial parity commands.
10667 * serial.h (GDBPARITY_NONE): Define.
10668 (GDBPARITY_ODD): Define.
10669 (GDBPARITY_EVEN): Define.
10670 (serial_setparity) Add declaration.
10671 (struct serial_ops): Add setparity field.
10672 * target.h (serial_parity): Add declaration.
10673
10674 2015-03-23 Keith Seitz <keiths@redhat.com>
10675
10676 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10677
10678 2015-03-23 Keith Seitz <keiths@redhat.com>
10679
10680 * breakpoint.c (parse_breakpoint_sals): Use
10681 linespec_lexer_lex_keyword to ascertain if the user specified
10682 a NULL location.
10683 * linespec.c [IF_KEYWORD_INDEX]: Define.
10684 (linespec_lexer_lex_keyword): Export.
10685 (struct ls_parser) <keyword_ok>: Remove.
10686 A keyword is only a keyword if not followed by another keyword.
10687 (linespec_lexer_lex_one): Remove keyword_ok handling.
10688 Add comment explaining why the parsing stream is not advanced
10689 when a keyword is seen.
10690 (parse_linespec): Remove parser->keyword_ok.
10691 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10692
10693 2015-03-23 Keith Seitz <keiths@redhat.com>
10694
10695 PR gdb/18021
10696 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10697 if we find a static method with DW_AT_vtable_elem_location.
10698
10699 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10700
10701 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10702 before the second loop, to avoid undefined behavior. Reported by
10703 Anton Blanchard <anton@samba.org>.
10704
10705 2015-03-20 Keven Boell <keven.boell@intel.com>
10706
10707 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10708 data_location usage to linked list.
10709 (resolve_dynamic_type_internal): Adapt data_location to
10710 linked list.
10711 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10712 (copy_type_recursive, copy_type): Add copy of linked list.
10713 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10714 (struct dynamic_prop_list): New struct.
10715 * dwarf2read.c (set_die_type): Set data_location data.
10716
10717 2015-03-20 Pedro Alves <palves@redhat.com>
10718
10719 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10720 inner block and make it const.
10721 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10722
10723 2015-03-20 Pedro Alves <palves@redhat.com>
10724
10725 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10726 * breakpoint.h (set_breakpoint_condition): Update declaration.
10727
10728 2015-03-20 Pedro Alves <palves@redhat.com>
10729
10730 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10731
10732 2015-03-20 Pedro Alves <palves@redhat.com>
10733
10734 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10735
10736 2015-03-20 Pedro Alves <palves@redhat.com>
10737
10738 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10739
10740 2015-03-20 Pedro Alves <palves@redhat.com>
10741
10742 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10743 (nto_init_solib_absolute_prefix): Likewise.
10744
10745 2015-03-20 Pedro Alves <palves@redhat.com>
10746
10747 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10748 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10749
10750 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10751
10752 * config/djgpp/README: Remove gdb.hp.
10753
10754 2015-03-20 Yao Qi <yao.qi@linaro.org>
10755
10756 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10757 set_gdbarch_cannot_step_breakpoint.
10758
10759 2015-03-19 Pedro Alves <palves@redhat.com>
10760
10761 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10762 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10763 instead call perror_with_name.
10764 (check_ptrace_stopped_lwp_gone): New function.
10765 (linux_resume_one_lwp): Reimplement as wrapper around
10766 linux_resume_one_lwp_throw that swallows errors if the LWP is
10767 gone.
10768 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10769 swallows errors if the LWP is gone. Use
10770 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10771
10772 2015-03-19 Pedro Alves <palves@redhat.com>
10773
10774 * linux-nat.c (status_callback): Return early if the LWP has no
10775 status pending.
10776
10777 2015-03-19 Pedro Alves <palves@redhat.com>
10778
10779 * linux-nat.c (select_event_lwp_callback): Update comment to no
10780 longer mention SIGTRAP.
10781
10782 2015-03-18 Tristan Gingold <gingold@adacore.com>
10783
10784 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10785 redirection code to ...
10786 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10787 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10788
10789 2015-03-18 Gary Benson <gbenson@redhat.com>
10790
10791 (remote_protocol_features): Remove the "vFile:fstat" feature.
10792 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10793
10794 2015-03-11 Yao Qi <yao.qi@linaro.org>
10795
10796 PR tdep/18107
10797 * aarch64-linux-tdep.c: Include xml-syscall.h
10798 (aarch64_linux_get_syscall_number): New function.
10799 (aarch64_linux_init_abi): Call
10800 set_gdbarch_get_syscall_number.
10801 * syscalls/aarch64-linux.xml: New file.
10802
10803 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10804
10805 * ser-base.h (ser_base_setstopbits): Change second argument name
10806 from "rate" to "num".
10807
10808 2015-03-17 Gary Benson <gbenson@redhat.com>
10809 Luke Allardyce <lukeallardyce@gmail.com>
10810
10811 PR gdb/18131
10812 * common/common-remote-fileio.h (sys/stat.h): New include.
10813 (stuct stat): Remove forward declaration.
10814
10815 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10816
10817 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10818 before writing core register notes.
10819
10820 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10821 Pedro Alves <palves@redhat.com>
10822
10823 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10824 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10825 (tgoto): Wrap with extern "C".
10826
10827 2015-03-16 Pedro Alves <palves@redhat.com>
10828 Yuanhui Zhang <asmwarrior@gmail.com>
10829
10830 * stub-termcap.c (tputs): Change prototype.
10831
10832 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10833 Pedro Alves <palves@redhat.com>
10834
10835 * windows-nat.c (struct thread_info_struct): Rename to ...
10836 (struct windows_thread_info_struct): ... this.
10837 (thread_info): Rename to ...
10838 (windows_thread_info): ... this.
10839 All users updated.
10840
10841 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10842 Pedro Alves <palves@redhat.com>
10843
10844 * NEWS: New Removed targets and native configurations.
10845
10846 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 Remove HPUX.
10849 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10850 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10851 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10852 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10853 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10854 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10855 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10856 hppa-hpux-tdep.c.
10857 * config/ia64/hpux.mh: Remove file.
10858 * config/pa/hpux.mh: Remove file.
10859 * configure: Rebuilt.
10860 * configure.ac (dlgetmodinfo, somread.o): Remove.
10861 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10862 (ia64-*-hpux*): Remove its float format exception.
10863 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10864 * hppa-hpux-nat.c: Remove file.
10865 * hppa-hpux-tdep.c: Remove file.
10866 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10867 Move them here from hppa-tdep.h
10868 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10869 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10870 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10871 Move them to hppa-tdep.c.
10872 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10873 declarations.
10874 * ia64-hpux-nat.c: Remove file.
10875 * ia64-hpux-tdep.c: Remove file.
10876 * ia64-hpux-tdep.h: Remove file.
10877 * inf-ttrace.c: Remove file.
10878 * inf-ttrace.h: Remove file.
10879 * solib-ia64-hpux.c: Remove file.
10880 * solib-ia64-hpux.h: Remove file.
10881 * solib-pa64.c: Remove file.
10882 * solib-pa64.h: Remove file.
10883 * solib-som.c: Remove file.
10884 * solib-som.h: Remove file.
10885 * somread.c: Remove file.
10886
10887 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10888
10889 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10890 * config.in: Regenerate.
10891 * configure: Regenerate.
10892 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10893 define.
10894 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10895 enumerate memory regions if present.
10896
10897 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10898
10899 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10900 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10901 expressions.
10902 (i386fbsd_sigtramp_p): Likewise.
10903
10904 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10905
10906 * MAINTAINERS (Write After Approval): Add John Baldwin.
10907
10908 2015-03-12 Gary Benson <gbenson@redhat.com>
10909
10910 * solib.c (_initialize_solib): Make "set/show sysroot" use
10911 add_setshow_optional_filename_cmd so it can be restored to
10912 empty after being set.
10913
10914 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10915
10916 * Makefile.in (SFILES): New source break-catch-syscall.c.
10917 (COMMON_OBS): New object break-catch-syscall.o.
10918 * break-catch-syscall.c: New file.
10919 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10920 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10921 (struct syscall_catchpoint): Likewise.
10922 (dtor_catch_syscall): Likewise.
10923 (catch_syscall_inferior_data): Likewise.
10924 (struct catch_syscall_inferior_data): Likewise.
10925 (get_catch_syscall_inferior_data): Likewise.
10926 (catch_syscall_inferior_data_cleanup): Likewise.
10927 (insert_catch_syscall): Likewise.
10928 (remove_catch_syscall): Likewise.
10929 (breakpoint_hit_catch_syscall): Likewise.
10930 (print_it_catch_syscall): Likewise.
10931 (print_one_catch_syscall): Likewise.
10932 (print_mention_catch_syscall): Likewise.
10933 (print_recreate_catch_syscall): Likewise.
10934 (catch_syscall_breakpoint_ops): Likewise.
10935 (syscall_catchpoint_p): Likewise.
10936 (create_syscall_event_catchpoint): Likewise.
10937 (catch_syscall_split_args): Likewise.
10938 (catch_syscall_command_1): Likewise.
10939 (is_syscall_catchpoint_enabled): Likewise.
10940 (catch_syscall_enabled): Likewise.
10941 (catching_syscall_number): Likewise.
10942 (catch_syscall_completer): Likewise.
10943 (clear_syscall_counts): Likewise.
10944 (initialize_breakpoint_ops): Move initialization of syscall
10945 catchpoints to break-catch-syscall.c.
10946 (_initialize_breakpoint): Move code related to syscall catchpoints
10947 to break-catch-syscall.c.
10948
10949 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10950
10951 * breakpoint.c (breakpoint_find_if): New function.
10952 * breakpoint.h (breakpoint_find_if): New prototype.
10953
10954 2015-03-11 Gary Benson <gbenson@redhat.com>
10955
10956 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10957 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10958 (remote_fileio_to_host_ulong): Likewise.
10959 (remote_fileio_to_host_mode): Likewise.
10960 (remote_fileio_to_host_time): Likewise.
10961 (remote_fileio_to_host_stat): Likewise.
10962 * remote.c (PACKET_vFile_fstat): New enum value.
10963 (remote_protocol_features): Register the "vFile:fstat" feature.
10964 (remote_hostio_fstat): New function.
10965 (remote_bfd_iovec_stat): Use the above.
10966 (_initialize_remote): Register new "set/show remote
10967 hostio-fstat-packet" command.
10968 * symfile.c (separate_debug_file_exists): Update comment.
10969 * NEWS: Announce new vFile:fstat packet.
10970
10971 2015-03-11 Gary Benson <gbenson@redhat.com>
10972
10973 * common/common-remote-fileio.h: New file.
10974 * common/common-remote-fileio.c: Likewise.
10975 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10976 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10977 (COMMON_OBS): Add common-remote-fileio.o.
10978 (common-remote-fileio.o): New rule.
10979 * remote-fileio.h (common-remote-fileio.h): New include.
10980 * remote-fileio.c (gdb/fileio.h): Do not include.
10981 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10982 (remote_fileio_to_fio_uint): Likewise.
10983 (remote_fileio_to_fio_time): Likewise.
10984 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10985 (remote_fileio_to_fio_mode): Likewise.
10986 (remote_fileio_to_fio_ulong): Likewise.
10987 (remote_fileio_to_fio_stat): Likewise.
10988
10989 2015-03-11 Andy Wingo <wingo@igalia.com>
10990
10991 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10992 we were checking the cached type, not the cached dynamic type.
10993
10994 2015-03-11 Andy Wingo <wingo@igalia.com>
10995
10996 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10997 other strings, as these are on the GC'd heap, and will be
10998 collected along with the smob.
10999
11000 2015-03-11 Andy Wingo <wingo@igalia.com>
11001
11002 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11003 (objfile_functions): Bind gdbscm_objfile_progspace to
11004 objfile-progspace.
11005 * guile/lib/gdb.scm: Add objfile-progspace to exports.
11006
11007 2015-03-11 Andy Wingo <wingo@igalia.com>
11008
11009 * guile/guile.c (_initialize_guile): Disable automatic
11010 finalization, if Guile offers us that possibility.
11011 * guile/guile.c (call_initialize_gdb_module):
11012 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11013 finalizers in appropriate places.
11014 * configure.ac (AC_TRY_LIBGUILE): Add a check for
11015 scm_set_automatic_finalization_enabled.
11016 * configure: Regenerated.
11017
11018 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11019
11020 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11021 SAL, if possible.
11022
11023 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11024
11025 * s390-linux-nat.c (struct arch_lwp_info): New.
11026 (s390_fix_watch_points): Rename to...
11027 (s390_prepare_to_resume): ...this. Skip the PER info update
11028 unless the watch points have changed.
11029 (s390_refresh_per_info, s390_new_thread): New functions.
11030 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11031 s390_fix_watch_points.
11032 (s390_remove_watchpoint): Likewise.
11033 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11034 Register s390_prepare_to_resume.
11035
11036 2015-03-09 Pedro Alves <palves@redhat.com>
11037
11038 Revert:
11039 2015-03-07 Pedro Alves <palves@redhat.com>
11040 * common/gdb_socket.h: New file.
11041 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11042 sys/socket.h.
11043 (net_open): Use union gdb_sockaddr_u.
11044
11045 2015-03-07 Pedro Alves <palves@redhat.com>
11046
11047 * configure.ac (build_warnings): Move -Wmissing-prototypes
11048 -Wdeclaration-after-statement -Wmissing-parameter-type
11049 -Wold-style-declaration -Wold-style-definition to the C-specific
11050 set.
11051 * configure: Regenerate.
11052
11053 2015-03-07 Pedro Alves <palves@redhat.com>
11054
11055 * common/gdb_socket.h: New file.
11056 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11057 sys/socket.h.
11058 (net_open): Use union gdb_sockaddr_u.
11059
11060 2015-03-07 Pedro Alves <palves@redhat.com>
11061
11062 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11063 (exceptions_state_mc_action_iter)
11064 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11065 Don't define.
11066 [__cplusplus] (try_scope_depth): New global.
11067 [__cplusplus] (exception_try_scope_entry)
11068 (exception_try_scope_exit, gdb_exception_sliced_copy)
11069 (exception_rethrow): New functions.
11070 (throw_exception): In C++ mode, throw
11071 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11072 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11073 (throw_it): In C++ mode, use try_scope_depth.
11074 * common/common-exceptions.h [!__cplusplus]
11075 (exceptions_state_mc_action_iter)
11076 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11077 Don't declare.
11078 [__cplusplus] (exception_try_scope_entry)
11079 (exception_try_scope_exit, exception_rethrow): Declare.
11080 [__cplusplus] (struct exception_try_scope): New struct.
11081 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11082 C++ exceptions.
11083 (struct gdb_exception_RETURN_MASK_ALL)
11084 (struct gdb_exception_RETURN_MASK_ERROR)
11085 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11086
11087 2015-03-07 Pedro Alves <palves@redhat.com>
11088
11089 * main.c (handle_command_errors): Remove volatile qualifier from
11090 parameter.
11091
11092 2015-03-07 Pedro Alves <palves@redhat.com>
11093
11094 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11095 TRY and CATCH.
11096 * gdbtypes.c (safe_parse_type): Remove empty line.
11097 (types_deeply_equal):
11098 * guile/scm-frame.c (gdbscm_frame_name):
11099 * linux-thread-db.c (find_new_threads_once):
11100 * python/py-breakpoint.c (bppy_get_commands):
11101 * record-btrace.c (record_btrace_insert_breakpoint)
11102 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11103 (record_btrace_start_replaying): Adjust to avoid code between TRY
11104 and CATCH.
11105
11106 2015-03-07 Pedro Alves <palves@redhat.com>
11107
11108 * common/common-exceptions.c (struct catcher) <exception>: No
11109 longer a pointer to volatile exception. Now an exception value.
11110 <mask>: Delete field.
11111 (exceptions_state_mc_init): Remove all parameters. Adjust.
11112 (exceptions_state_mc): No longer pop the catcher here.
11113 (exceptions_state_mc_catch): New function.
11114 (throw_exception): Adjust.
11115 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11116 all parameters.
11117 (exceptions_state_mc_catch): Declare.
11118 (TRY_CATCH): Rename to ...
11119 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11120 (CATCH, END_CATCH): New.
11121 All callers adjusted.
11122
11123 2015-03-07 Tom Tromey <tromey@redhat.com>
11124
11125 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11126
11127 2015-03-07 Pedro Alves <palves@redhat.com>
11128
11129 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11130 (amd64_epilogue_frame_cache): Normal exception handling code.
11131 * break-catch-throw.c (check_status_exception_catchpoint)
11132 (re_set_exception_catchpoint): Ditto.
11133 * cli/cli-interp.c (safe_execute_command):
11134 * cli/cli-script.c (script_from_file): Ditto.
11135 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11136 Ditto.
11137 * compile/compile-object-run.c (compile_object_run): Ditto.
11138 * cp-abi.c (baseclass_offset): Ditto.
11139 * cp-valprint.c (cp_print_value): Ditto.
11140 * exceptions.c (catch_exceptions_with_msg):
11141 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11142 * frame.c (get_frame_address_in_block_if_available): Ditto.
11143 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11144 (i386_sigtramp_frame_cache): Ditto.
11145 * infcmd.c (post_create_inferior): Ditto.
11146 * linespec.c (parse_linespec, find_linespec_symbols):
11147 * p-valprint.c (pascal_object_print_value): Ditto.
11148 * parse.c (parse_expression_for_completion): Ditto.
11149 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11150 * remote.c (remote_get_noisy_reply): Ditto.
11151 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11152 * solib-svr4.c (solib_svr4_r_map): Ditto.
11153
11154 2015-03-06 Gary Benson <gbenson@redhat.com>
11155
11156 * common/common-utils.h (startswith): New inline function.
11157 All places where this logic was used updated to use the above.
11158
11159 2015-03-05 Pedro Alves <palves@redhat.com>
11160
11161 PR gdb/18002
11162 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11163 after reading the breakpoint's shadow memory.
11164
11165 2015-03-05 Mark Kettenis <kettenis@gnu.org>
11166
11167 * hppabsd-nat.c: Remove file.
11168 * hppaobsd-nat.c: New file.
11169 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11170 hppaobsd-nat.c.
11171 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11172 hppaobsd-nat.o.
11173
11174 2015-03-04 Pedro Alves <palves@redhat.com>
11175
11176 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11177 (target_decr_pc_after_break): Delete declaration.
11178 * target.c (default_target_decr_pc_after_break)
11179 (target_decr_pc_after_break): Delete.
11180 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11181 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11182 * linux-thread-db.c (check_event): Likewise.
11183 * infrun.c (adjust_pc_after_break): Likewise.
11184 * darwin-nat.c (cancel_breakpoint): Likewise.
11185 * aix-thread.c (aix_thread_wait): Likewise.
11186 * target-delegates.c: Regenerate.
11187
11188 2015-03-04 Pedro Alves <palves@redhat.com>
11189
11190 * linux-nat.c (save_sigtrap): Check for breakpoints before
11191 checking watchpoints.
11192 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11193 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11194 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11195 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11196 (linux_nat_stopped_by_sw_breakpoint)
11197 (linux_nat_supports_stopped_by_sw_breakpoint)
11198 (linux_nat_stopped_by_hw_breakpoint)
11199 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11200 (linux_nat_wait_1): Don't re-increment the PC if relying on
11201 SIGTRAP's siginfo->si_code.
11202 (linux_nat_add_target): Install new target methods.
11203 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11204 offset if the target already adjusted the PC.
11205 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11206 (GDB_ARCH_TRAP_BRKPT): New.
11207 (TRAP_HWBKPT): Define if not already defined.
11208
11209 2015-03-04 Pedro Alves <palves@redhat.com>
11210
11211 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11212 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11213 Delete field.
11214 <stop_reason>: New field.
11215 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11216 (packet_set_cmd_state): New function.
11217 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11218 features.
11219 (remote_query_supported): If not disabled with the corresponding
11220 "set remote foo-packet" command, report support for the swbreak
11221 and hwbreak features.
11222 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11223 field.
11224 <stop_reason>: New field.
11225 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11226 (remote_wait_as): Adjust.
11227 (remote_stopped_by_sw_breakpoint)
11228 (remote_supports_stopped_by_sw_breakpoint)
11229 (remote_stopped_by_hw_breakpoint)
11230 (remote_supports_stopped_by_hw_breakpoint): New functions.
11231 (remote_stopped_by_watchpoint): New function.
11232 (init_remote_ops): Install them.
11233 (_initialize_remote): Register new "set/show remote
11234 swbreak-feature-packet" and "set/show remote
11235 swbreak-feature-packet" commands.
11236
11237 2015-03-04 Pedro Alves <palves@redhat.com>
11238
11239 * btrace.h: Include target/waitstatus.h.
11240 (struct btrace_thread_info) <stop_reason>: New field.
11241 * record-btrace.c (record_btrace_step_thread): Use
11242 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11243 (record_btrace_decr_pc_after_break): Delete.
11244 (record_btrace_stopped_by_sw_breakpoint)
11245 (record_btrace_supports_stopped_by_sw_breakpoint)
11246 (record_btrace_stopped_by_hw_breakpoint)
11247 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
11248 (init_record_btrace_ops): Install them.
11249 * record-full.c (record_full_hw_watchpoint): Delete and replace
11250 with ...
11251 (record_full_stop_reason): ... this throughout.
11252 (record_full_exec_insn): Adjust.
11253 (record_full_wait_1): Adjust. No longer re-increment the PC.
11254 (record_full_wait_1): Adjust. Use
11255 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11256 (record_full_stopped_by_watchpoint): Adjust.
11257 (record_full_stopped_by_sw_breakpoint)
11258 (record_full_supports_stopped_by_sw_breakpoint)
11259 (record_full_supports_stopped_by_sw_breakpoint)
11260 (record_full_stopped_by_hw_breakpoint)
11261 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11262 (init_record_full_ops, init_record_full_core_ops): Install them.
11263 * record.c (record_check_stopped_by_breakpoint): New function.
11264 * record.h: Include target/waitstatus.h.
11265 (record_check_stopped_by_breakpoint): New declaration.
11266
11267 2015-03-04 Pedro Alves <palves@redhat.com>
11268
11269 enum lwp_stop_reason -> enum target_stop_reason
11270 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11271 (linux_nat_stopped_by_watchpoint, status_callback)
11272 (linux_nat_wait_1): Adjust.
11273 * linux-nat.h (enum lwp_stop_reason): Delete.
11274 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11275 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11276 * target/waitstatus.h (enum target_stop_reason): New.
11277
11278 2015-03-04 Pedro Alves <palves@redhat.com>
11279
11280 * breakpoint.c (need_moribund_for_location_type): New function.
11281 (bpstat_stop_status): Don't skipping checking moribund locations
11282 of breakpoint types which the target tell caused a stop.
11283 (program_breakpoint_here_p): New function, factored out from ...
11284 (bp_loc_is_permanent): ... this.
11285 (update_global_location_list): Don't create a moribund location if
11286 the target supports reporting stops of the type of the removed
11287 breakpoint.
11288 * breakpoint.h (program_breakpoint_here_p): New declaration.
11289 * infrun.c (adjust_pc_after_break): Return early if the target has
11290 already adjusted the PC. Add comments.
11291 (handle_signal_stop): If nothing explains a signal, and the target
11292 tells us the stop was caused by a software breakpoint, check if
11293 there's a breakpoint instruction in the memory. If so, adjust the
11294 PC before presenting the stop to the user. Otherwise, ignore the
11295 trap. If nothing explains a signal, and the target tells us the
11296 stop was caused by a hardware breakpoint, ignore the trap.
11297 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11298 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11299 to_supports_stopped_by_hw_breakpoint>: New fields.
11300 (target_stopped_by_sw_breakpoint)
11301 (target_supports_stopped_by_sw_breakpoint)
11302 (target_stopped_by_hw_breakpoint)
11303 (target_supports_stopped_by_hw_breakpoint): Define.
11304 * target-delegates.c: Regenerate.
11305
11306 2015-03-04 Pedro Alves <palves@redhat.com>
11307
11308 * infrun.c (follow_fork_inferior): Use the whole of the
11309 inferior_ptid and pending_follow.related_pid ptids instead of
11310 building ptids from the process components. Adjust verbose output
11311 to use target_pid_to_str.
11312 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11313 inferior_ptid and pending_follow.related_pid ptids instead of
11314 building ptids from the process components.
11315
11316 2015-03-04 Mark Kettenis <kettenis@gnu.org>
11317
11318 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11319 (inf_ptrace_insert_fork_catchpoint): New function.
11320 (inf_ptrace_remove_fork_catchpoint): New function.
11321 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11322
11323 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11324
11325 * s390-linux-tdep.c (s390_register_name): Return empty string
11326 instead of NULL for registers that shouldn't be visible.
11327
11328 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11329
11330 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11331 XML file for 64-bit targets.
11332
11333 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11334
11335 * target.h (find_default_create_inferior): Remove declaration.
11336 (find_default_attach): Likewise.
11337
11338 2015-03-03 Pedro Alves <palves@redhat.com>
11339
11340 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11341 Use ptid_get_pid to get the overall process id when resuming all
11342 threads.
11343
11344 2015-03-03 Pedro Alves <palves@redhat.com>
11345
11346 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11347 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11348 * inf-ptrace.c (get_ptrace_pid): New function.
11349 (inf_ptrace_resume): Use it.
11350 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11351 to the lower layer.
11352
11353 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11354
11355 * nat/linux-btrace.c: Include sys/utsname.h.
11356 (linux_determine_kernel_ptr_bits): New.
11357 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11358 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11359 ptr_bits.
11360
11361 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11362
11363 * btrace.c (ftrace_update_function): Treat return as tailcall for
11364 "_dl_runtime_resolve".
11365
11366 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11367
11368 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11369 * btrace.c (ftrace_debug): Do not print the line range.
11370 (ftrace_skip_file, ftrace_update_lines): Remove.
11371 (ftrace_new_function): Remove lbegin and lend initialization.
11372 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11373 * record-btrace.c (btrace_compute_src_line_range): New.
11374 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11375
11376 2015-03-02 Pedro Alves <palves@redhat.com>
11377
11378 * infrun.c (follow_exec): Delete all threads of the process except
11379 the event thread. Extended comments.
11380
11381 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11382
11383 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11384
11385 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11386
11387 * utils.h: Remove <stdbool.h> #include.
11388 (producer_is_gcc): Change return type to "int".
11389 * utils.c (producer_is_gcc): Change return type to int.
11390 Return 1 instead of true, and 0 instead of false.
11391 Adjust function documentation accordingly.
11392
11393 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11394
11395 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11396 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11397 present.
11398 (s390_linux_store_inferior_registers): Likewise.
11399 (s390_get_hwcap): Remove function. Embed its logic...
11400 (s390_read_description): ...here. Yield a target description with
11401 vector registers if applicable.
11402 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11403 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11404 "features/s390x-tevx-linux64.c".
11405 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11406 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11407 for "GNU/Linux-specific registers".
11408 (s390_dwarf_reg_r0l): New enum value.
11409 (s390_dwarf_reg_to_regnum): Support vector registers.
11410 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11411 of GPR lower halves.
11412 (regnum_is_vxr_full): New function.
11413 (s390_register_name): New function.
11414 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11415 f0-f15 and v0l-v15l.
11416 (s390_pseudo_register_type): Likewise.
11417 (s390_pseudo_register_read): Likewise.
11418 (s390_pseudo_register_write): Likewise.
11419 (s390_value_from_register): Account for the fact that values are
11420 placed left-justified in vector registers.
11421 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11422 the vector reggroup and omit them from the general reggroup.
11423 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11424 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11425 (s390_iterate_over_regset_sections): Add iterations for the two
11426 new vector regsets.
11427 (s390_core_read_description): Yield a target description with
11428 vector registers if applicable.
11429 (s390_gdbarch_init): Handle target descriptions with vector
11430 registers. Add "register_name" gdbarch method.
11431 (_initialize_s390_tdep): Call new tdesc initialization functions.
11432 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11433 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11434 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11435 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11436 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11437 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11438 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11439 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11440 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11441 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11442 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11443 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11444 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11445 (S390_NUM_REGS): Adjust value.
11446 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11447 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11448 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11449 * NEWS: Announce S/390 vector register support.
11450
11451 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11452
11453 * features/s390-tevx-linux64.xml: New file.
11454 * features/s390-vx-linux64.xml: New file.
11455 * features/s390-vx.xml: New file.
11456 * features/s390x-tevx-linux64.xml: New file.
11457 * features/s390x-vx-linux64.xml: New file.
11458 * features/Makefile (WHICH): Add s390-vx-linux64,
11459 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11460 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11461 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11462 macros.
11463 * features/s390-tevx-linux64.c: New generated file.
11464 * features/s390-vx-linux64.c: Likewise.
11465 * features/s390x-tevx-linux64.c: Likewise.
11466 * features/s390x-vx-linux64.c: Likewise.
11467 * regformats/s390-tevx-linux64.dat: Likewise.
11468 * regformats/s390-vx-linux64.dat: Likewise.
11469 * regformats/s390x-tevx-linux64.dat: Likewise.
11470 * regformats/s390x-vx-linux64.dat: Likewise.
11471
11472 2015-02-28 Doug Evans <xdje42@gmail.com>
11473
11474 * symtab.h (struct symtab) <next>: Fix comment.
11475
11476 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11477
11478 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11479 python_GdbMethods.
11480
11481 2015-02-27 Pedro Alves <palves@redhat.com>
11482
11483 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11484
11485 2015-02-27 Pedro Alves <palves@redhat.com>
11486
11487 * common/common-exceptions.h (exception_none): Declare.
11488 * common/common-exceptions.c (exception_none): Moved from
11489 exceptions.c.
11490 (exceptions_state_mc_init): Use exception_none.
11491 * exceptions.c (exception_none): Move to
11492 common/common-exceptions.c.
11493 * exceptions.h (exception_none): Move to
11494 common/common-exceptions.h.
11495
11496 2015-02-27 Pedro Alves <palves@redhat.com>
11497
11498 * main.c (catch_command_errors, catch_command_errors_const):
11499 Remove 'mask' argument. Adjust.
11500 (captured_main): Adjust callers.
11501
11502 2015-02-27 Pedro Alves <palves@redhat.com>
11503
11504 * python/python-internal.h: Include "extension-priv.h".
11505
11506 2015-02-27 Pedro Alves <palves@redhat.com>
11507
11508 * breakpoint.h (enum print_stop_action): Move further up in the
11509 file.
11510
11511 2015-02-27 Pedro Alves <palves@redhat.com>
11512
11513 * gdbarch.sh: Include regcache.h.
11514 * gdbarch.h: Regenerate.
11515
11516 2015-02-27 Pedro Alves <palves@redhat.com>
11517
11518 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11519 Remove duplicate const.
11520 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11521 duplicate const.
11522
11523 2015-02-27 Pedro Alves <palves@redhat.com>
11524
11525 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11526 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11527 * features/feature_to_c.sh: Tag the generated xml_builtin array
11528 with extern const in C++ mode.
11529
11530 2015-02-27 Tom Tromey <tromey@redhat.com>
11531
11532 * minidebug.c (struct lzma_stream): Rename to ...
11533 (struct gdb_lzma_stream): ... this.
11534 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11535
11536 2015-02-27 Pedro Alves <palves@redhat.com>
11537
11538 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11539 function.
11540 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11541 (mi_cmd_stack_list_variables): Use it.
11542
11543 2015-02-27 Pedro Alves <palves@redhat.com>
11544
11545 * x86-linux-nat.c (u_debugreg_offset): New function.
11546 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11547
11548 2015-02-27 Pedro Alves <palves@redhat.com>
11549
11550 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11551 declaration.
11552 Include break-common.h.
11553
11554 2015-02-27 Tom Tromey <tromey@redhat.com>
11555 Pedro Alves <palves@redhat.com>
11556
11557 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11558 local used to iterate over enums.
11559 * completer.c (signal_completer): Likewise.
11560 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11561 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11562 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11563 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11564 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11565 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11566 * tui-wingeneral.c (tui_refresh_all): Likewise.
11567
11568 2015-02-27 Pedro Alves <palves@redhat.com>
11569
11570 * target.h: Include "infrun.h".
11571
11572 2015-02-27 Pedro Alves <palves@redhat.com>
11573
11574 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11575
11576 2015-02-27 Pedro Alves <palves@redhat.com>
11577
11578 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11579 (IPA_SYM): Use it.
11580 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11581
11582 2015-02-27 Pedro Alves <palves@redhat.com>
11583
11584 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11585 cli_mld_erase_entire_line, and make it extern "C".
11586 * common/common-defs.h (EXTERN_C): New.
11587 * completer.c (_rl_completion_prefix_display_length)
11588 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11589 out of gdb_display_match_list_1.
11590 (_rl_qsort_string_compare): Move declaration out of
11591 gdb_display_match_list_1, and make it extern "C".
11592 * defs.h (re_comp): Use EXTERN_C.
11593 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11594 and make it extern "C".
11595 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11596 and make it extern "C".
11597 (main): Move declaration out of maintenance_set_profile_cmd.
11598 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11599 EXTERN_C.
11600
11601 2015-02-27 Pedro Alves <palves@redhat.com>
11602
11603 * python/python.c (GdbMethods): Rename to ...
11604 (python_GdbMethods): ... this and make extern.
11605 (GdbModuleDef): Rename to ...
11606 (python_GdbModuleDef): ... this and make extern.
11607
11608 2015-02-27 Pedro Alves <palves@redhat.com>
11609
11610 * record-btrace.c (set_record_btrace_cmdlist)
11611 (show_record_btrace_cmdlist): Remove redefinitions.
11612
11613 2015-02-27 Tom Tromey <tromey@redhat.com>
11614 Pedro Alves <palves@redhat.com>
11615
11616 * dwarf2-frame.c (enum cfa_how_kind, struct
11617 dwarf2_frame_state_reg_info): Move out of struct
11618 dwarf2_frame_state.
11619 * dwarf2read.c (struct tu_stats): Move out of struct
11620 dwarf2_per_objfile.
11621 (struct file_entry): Move out of struct line_header.
11622 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11623 typedef_field_list): Move out of struct field_info.
11624 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11625 Move out of struct dynamic_prop.
11626 (union type_owner, union field_location, struct field, struct
11627 range_bounds, union type_specific): Move out of struct main_type.
11628 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11629 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11630 (struct call_site_target, union call_site_parameter_u, struct
11631 call_site_parameter): Move out of struct call_site.
11632 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11633 m32c_prologue.
11634 (enum srcdest_kind): Move out of struct srcdest.
11635 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11636 * prologue-value.h (enum prologue_value_kind): Move out of struct
11637 prologue_value.
11638 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11639 gdbarch_tdep.
11640 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11641 out of struct field_info.
11642 * symfile.h (struct other_sections): Move out of struct
11643 section_addr_info.
11644 * symtab.c (struct symbol_cache_slot): Move out struct
11645 block_symbol_cache.
11646 * target-descriptions.c (enum tdesc_type_kind): Move out of
11647 typedef struct tdesc_type.
11648 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11649 struct tui_line_or_address.
11650 * value.c (enum internalvar_kind, union internalvar_data): Move
11651 out of struct internalvar.
11652 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11653 gdbarch_tdep.
11654
11655 2015-02-27 Tom Tromey <tromey@redhat.com>
11656 Pedro Alves <palves@redhat.com>
11657
11658 Rename symbols whose names are reserved C++ keywords throughout.
11659
11660 2015-02-27 Pedro Alves <palves@redhat.com>
11661
11662 * Makefile.in (COMPILER): New, get it from autoconf.
11663 (COMPILE.pre, CC_LD): Use COMPILER.
11664 (CXX): Get from autoconf instead.
11665 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11666 * acinclude.m4: Include build-with-cxx.m4.
11667 * build-with-cxx.m4: New file.
11668 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11669 Disable -Werror by default if building in C++ mode.
11670 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11671 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11672 Run supported-warning-flags tests with the C++ compiler.
11673 Save/restore CXXFLAGS too.
11674 * configure: Regenerate.
11675
11676 2015-02-27 Pedro Alves <palves@redhat.com>
11677
11678 * libiberty.m4: New file.
11679 * acinclude.m4: Include libiberty.m4.
11680 * configure.ac: Call libiberty_INIT.
11681 * config.in, configure: Regenerate.
11682
11683 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11684
11685 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11686 31-bit targets, but 64-bit targets as well.
11687 (s390_gnu_triplet_regexp): New function.
11688 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11689 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11690 method.
11691
11692 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11693
11694 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11695 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11696 from CONTEXT_DEBUGGER.
11697
11698 2015-02-26 Doug Evans <dje@google.com>
11699
11700 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11701 CHECK_TYPEDEF.
11702 (set_type_vptr_fieldno): Ditto.
11703 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11704 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11705
11706 2015-02-26 Pedro Alves <palves@redhat.com>
11707
11708 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11709 * complaints.c (vcomplaint): Pass argument FMT directly to
11710 printf-like functions instead of complaint->fmt.
11711 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11712 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11713 * compile/compile-loc2c.c (pushf, unary, binary): Add
11714 ATTRIBUTE_PRINTF.
11715 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11716 to pushf.
11717 (BINARY): Pass string literal as format string to 'binary'.
11718 * compile/compile-object-load.c (link_callbacks_einfo): Add
11719 ATTRIBUTE_PRINTF.
11720 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11721
11722 2015-02-26 Pedro Alves <palves@redhat.com>
11723
11724 * windows-termcap.c: Rename to ...
11725 * stub-termcap.c: ... this. Adjust header line.
11726 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11727 windows-termcap.c.
11728 * configure: Regenerate.
11729 * configure.ac: Refer to stub-termcap.o instead of
11730 windows-termcap.o.
11731 * gdb_curses.h: Mention stub-termcap.c instead of
11732 windows-termcap.c.
11733
11734 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11735
11736 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11737 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11738
11739 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11740
11741 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11742
11743 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11744
11745 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11746 bfd_canonicalize_symtab.
11747
11748 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11749
11750 * amd64fbsd-nat.c: Include sys/user.h.
11751 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11752 instead of KERN_PS_STRINGS to locate the signal trampoline.
11753 * i386fbsd-nat.c: Include sys/user.h.
11754 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11755 instead of KERN_PS_STRINGS to locate the signal trampoline.
11756 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11757 (amd64fbsd_sigtramp_p): New.
11758 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11759 longer set default values.
11760 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11761 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11762 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11763 (i386fbsd_freebsd4_sigtramp_start)
11764 (i386fbsd_freebsd4_sigtramp_middle)
11765 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11766 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11767 (i386fbsd_sigtramp_p): New.
11768 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11769 longer set default values.
11770 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11771
11772 2015-02-25 John Baldwin <jhb@freebsd.org>
11773
11774 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11775 get_frame_register instead of frame_unwind_register_unsigned.
11776
11777 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11778
11779 PR build/18033
11780 * compile/compile-c-support.c (c_compute_program): Change // comment.
11781 * compile/compile-object-load.c (setup_sections): Change // comment.
11782
11783 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11784
11785 PR build/18033:
11786 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11787
11788 2015-02-23 Pedro Alves <palves@redhat.com>
11789
11790 * remote.c (skip_to_semicolon): New function.
11791 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11792 special case the stop reasons that look like hex numbers
11793 upfront. Instead handle real register numbers after matching
11794 all the known stop reasons.
11795
11796 2015-02-21 Doug Evans <dje@google.com>
11797
11798 PR c++/17976, symtab/17821
11799 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11800 is_in_anonymous. All callers updated.
11801 (find_symbol_in_baseclass): Ditto.
11802 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11803 for symbols in an anonymous namespace.
11804 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11805 DW_AT_name directly.
11806 (dwarf2_name): Convert missing namespace name to
11807 CP_ANONYMOUS_NAMESPACE_STR.
11808
11809 2015-02-20 Pedro Alves <palves@redhat.com>
11810
11811 * linux-nat.c (linux_handle_extended_wait): Call
11812 thread_db_notice_clone whenever a new clone LWP is detected.
11813 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11814 functions.
11815 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11816 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11817 (linux_unstop_all_lwps): Declare.
11818 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11819 (thread_get_info_callback): Delete.
11820 (thread_from_lwp): Use td_thr_get_info and record_thread.
11821 (thread_db_attach_lwp): Delete.
11822 (thread_db_notice_clone): New function.
11823 (try_thread_db_load_1): If /proc is mounted and shows the
11824 process'es task list, walk over all LWPs and call thread_from_lwp
11825 instead of relying on td_ta_thr_iter.
11826 (attach_thread): Don't call check_thread_signals here. Split the
11827 tail part of the function (which adds the thread to the core GDB
11828 thread list) to ...
11829 (record_thread): ... this function. Call check_thread_signals
11830 here.
11831 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11832 call thread_from_lwp.
11833 (thread_db_update_thread_list): Rename to ...
11834 (thread_db_update_thread_list_org): ... this.
11835 (thread_db_update_thread_list): New function.
11836 (thread_db_find_thread_from_tid): Delete.
11837 (thread_db_get_ada_task_ptid): Simplify.
11838 * nat/linux-procfs.c: Include <sys/stat.h>.
11839 (linux_proc_task_list_dir_exists): New function.
11840 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11841
11842 2015-02-20 Pedro Alves <palves@redhat.com>
11843
11844 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11845 main LWP. Handle the case of waitpid returning 0 if we're already
11846 attached to the LWP. Don't set the LWP's last_resume_kind to
11847 resume_stop if we already knew about the LWP.
11848 (linux_nat_filter_event): Add debug logs.
11849
11850 2015-02-20 Pedro Alves <palves@redhat.com>
11851
11852 * target.h (forward_target_decr_pc_after_break): Delete
11853 declaration.
11854
11855 2015-02-20 Pedro Alves <palves@redhat.com>
11856
11857 PR threads/18006
11858 * linux-thread-db.c (thread_get_info_callback): Return early if
11859 the thread's lwp id is -1.
11860
11861 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11862
11863 GDB 7.9 released.
11864
11865 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11866
11867 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11868 (dtrace_get_probes) Change type of variable 'dof'.
11869
11870 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11871
11872 PR breakpoints/16812
11873 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11874 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11875 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11876
11877 2015-02-19 David Taylor <dtaylor@emc.com>
11878
11879 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11880
11881 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11882
11883 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11884 function.
11885 (tui_putc): Don't call tui_handle_resize_during_io.
11886 (tui_getc): Likewise.
11887 (tui_mld_getc): Likewise.
11888 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11889 (tui_sigwinch_token): New static variable.
11890 (tui_initialize_win): Adjust documentation. Set
11891 tui_sigwinch_token.
11892 (tui_async_resize_screen): New asynchronous callback.
11893 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11894 invoke tui_async_resize_screen.
11895
11896 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11897
11898 * configure: Regenerated.
11899 * configure.ac: Use GDB_AC_TRANSFORM.
11900 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11901 * acinclude.m4: sinclude transform.m4.
11902 * transform.m4: New file.
11903 (GDB_AC_TRANSFORM): New macro.
11904
11905 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11906
11907 * NEWS: Announce the support for DTrace SDT probes.
11908
11909 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11910
11911 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11912 (amd64_dtrace_parse_probe_argument): New function.
11913 (amd64_dtrace_probe_is_enabled): Likewise.
11914 (amd64_dtrace_enable_probe): Likewise.
11915 (amd64_dtrace_disable_probe): Likewise.
11916 (amd64_linux_init_abi): Register the
11917 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11918 `gdbarch_dtrace_disable_probe' and
11919 `gdbarch_dtrace_probe_is_enabled' hooks.
11920 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11921 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11922 (amd64_dtrace_enable_probe_sequence): Likewise.
11923 (amd64_dtrace_disable_probe_sequence): Likewise.
11924
11925 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11926
11927 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11928 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11929 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11930 handle ELF files.
11931 * Makefile.in (SFILES): dtrace-probe.c added.
11932 * configure: Regenerate.
11933 * dtrace-probe.c: New file.
11934 (SHT_SUNW_dof): New constant.
11935 (dtrace_probe_type): New enum.
11936 (dtrace_probe_arg): New struct.
11937 (dtrace_probe_arg_s): New typedef.
11938 (struct dtrace_probe_enabler): New struct.
11939 (dtrace_probe_enabler_s): New typedef.
11940 (dtrace_probe): New struct.
11941 (dtrace_probe_is_linespec): New function.
11942 (dtrace_dof_sect_type): New enum.
11943 (dtrace_dof_dofh_ident): Likewise.
11944 (dtrace_dof_encoding): Likewise.
11945 (DTRACE_DOF_ENCODE_LSB): Likewise.
11946 (DTRACE_DOF_ENCODE_MSB): Likewise.
11947 (dtrace_dof_hdr): New struct.
11948 (dtrace_dof_sect): Likewise.
11949 (dtrace_dof_provider): Likewise.
11950 (dtrace_dof_probe): Likewise.
11951 (DOF_UINT): New macro.
11952 (DTRACE_DOF_PTR): Likewise.
11953 (DTRACE_DOF_SECT): Likewise.
11954 (dtrace_process_dof_probe): New function.
11955 (dtrace_process_dof): Likewise.
11956 (dtrace_build_arg_exprs): Likewise.
11957 (dtrace_get_arg): Likewise.
11958 (dtrace_get_probes): Likewise.
11959 (dtrace_get_probe_argument_count): Likewise.
11960 (dtrace_can_evaluate_probe_arguments): Likewise.
11961 (dtrace_evaluate_probe_argument): Likewise.
11962 (dtrace_compile_to_ax): Likewise.
11963 (dtrace_probe_destroy): Likewise.
11964 (dtrace_gen_info_probes_table_header): Likewise.
11965 (dtrace_gen_info_probes_table_values): Likewise.
11966 (dtrace_probe_is_enabled): Likewise.
11967 (dtrace_probe_ops): New variable.
11968 (info_probes_dtrace_command): New function.
11969 (_initialize_dtrace_probe): Likewise.
11970 (dtrace_type_name): Likewise.
11971
11972 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11973
11974 * gdbarch.sh (dtrace_parse_probe_argument): New.
11975 (dtrace_probe_is_enabled): Likewise.
11976 (dtrace_enable_probe): Likewise.
11977 (dtrace_disable_probe): Likewise.
11978 * gdbarch.c: Regenerate.
11979 * gdbarch.h: Regenerate.
11980
11981 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11982
11983 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11984 stap_probe_ops for `enable_probe' and `disable_probe'.
11985 * probe.c (enable_probes_command): New function.
11986 (disable_probes_command): Likewise.
11987 (_initialize_probe): Define the cli commands `enable probe' and
11988 `disable probe'.
11989 (parse_probe_linespec): New function.
11990 (info_probes_for_ops): Use parse_probe_linespec.
11991 * probe.h (probe_ops): New hooks `enable_probe' and
11992 `disable_probe'.
11993
11994 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11995
11996 * probe.c (compute_probe_arg): Moved from stap-probe.c
11997 (compile_probe_arg): Likewise.
11998 (probe_funcs): Likewise.
11999 * stap-probe.c (compute_probe_arg): Moved to probe.c.
12000 (compile_probe_arg): Likewise.
12001 (probe_funcs): Likewise.
12002
12003 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12004
12005 * probe.c (print_ui_out_not_applicables): New function.
12006 (exists_probe_with_pops): Likewise.
12007 (info_probes_for_ops): Do not include column headers for probe
12008 types for which no probe has been actually found on any object.
12009 Also invoke `print_ui_out_not_applicables' in order to match the
12010 column rows with the header when probes of several types are
12011 listed.
12012 Print the "Type" column.
12013 * probe.h (probe_ops): Added a new probe operation `type_name'.
12014 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12015 (stap_type_name): New function.
12016
12017 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
12018
12019 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12020 (key_is_command_char): Delete.
12021
12022 2015-02-17 Pedro Alves <palves@redhat.com>
12023
12024 * tui/tui.c (tui_enable): Resize windows before anything
12025 might show a window.
12026
12027 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
12028
12029 PR gdb/17984
12030 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12031 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12032 call.
12033 * aarch64-tdep.h (tdesc_aarch64): Declare.
12034
12035 2015-02-12 Mark Wielaard <mjw@redhat.com>
12036
12037 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12038
12039 2015-02-13 Doug Evans <dje@google.com>
12040
12041 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12042 anonymous_namespace to is_in_anonymous for consistency with the rest
12043 of the file.
12044 (cp_lookup_bare_symbol): Fix typo in comment.
12045 (cp_search_static_and_baseclasses): Ditto.
12046 (search_symbol_list): Use vertical space in comment better.
12047 (reset_directive_searched): Ditto. Fix typo.
12048 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12049
12050 2015-02-13 Yao Qi <yao.qi@arm.com>
12051
12052 * MAINTAINERS: Update my email address.
12053
12054 2015-02-12 Doug Evans <dje@google.com>
12055
12056 * symtab.c (completion_list_add_name): Fix memory leak.
12057
12058 2015-02-12 Doug Evans <dje@google.com>
12059
12060 * completer.c (complete_line): Remove incorrect comment.
12061
12062 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12063
12064 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12065 (py_print_frame): Use RETURN_MASK_ERROR.
12066
12067 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12068
12069 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12070 function comment. Wrap all function that can throw in cleanups.
12071 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12072 cleanups.
12073
12074 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12075
12076 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12077 Remove the error label.
12078
12079 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12080
12081 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12082 with goto first, indent the former else codepath left. Put variable
12083 'elided' to a new inner block.
12084
12085 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12086
12087 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12088
12089 2015-02-11 Pedro Alves <palves@redhat.com>
12090
12091 * xcoffread.c (within_function): Delete.
12092
12093 2015-02-11 Tom Tromey <tromey@redhat.com>
12094 Pedro Alves <palves@redhat.com>
12095
12096 * breakpoint.c (base_breakpoint_ops): Delete.
12097 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12098 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12099 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12100 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12101 * python/py-arch.c (arch_object_type): Make extern.
12102 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12103 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12104 * python/py-cmd.c (cmdpy_object_type): Make extern.
12105 * python/py-continueevent.c (continue_event_object_type)
12106 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12107 parameter. Update all callers.
12108 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12109 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12110 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12111 * python/py-function.c (fnpy_object_type): Make extern.
12112 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12113 * python/py-infevents.c (call_pre_event_object_type)
12114 (inferior_call_post_event_object_type).
12115 (memory_changed_event_object_type): Make extern.
12116 * python/py-infthread.c (thread_object_type): Make extern.
12117 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12118 * python/py-linetable.c (linetable_entry_object_type)
12119 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12120 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12121 (clear_objfiles_event_object_type): Make extern.
12122 * python/py-objfile.c (objfile_object_type): Make extern.
12123 * python/py-param.c (parmpy_object_type): Make extern.
12124 * python/py-progspace.c (pspace_object_type): Make extern.
12125 * python/py-signalevent.c (signal_event_object_type): Make extern.
12126 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12127 * python/py-type.c (type_object_type, field_object_type)
12128 (type_iterator_object_type): Make extern.
12129 * python/python.c (python_extension_script_ops)
12130 (python_extension_ops): Make extern.
12131 * stap-probe.c (stap_probe_ops): Make extern.
12132
12133 2015-02-11 Pedro Alves <pedro@codesourcery.com>
12134
12135 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12136 because the event thread is not the current thread.
12137
12138 2015-02-11 Doug Evans <xdje42@gmail.com>
12139
12140 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12141 been initialized yet, return NULL.
12142
12143 2015-02-11 Doug Evans <dje@google.com>
12144
12145 * symfile.h (new_symfile_objfile): Delete.
12146 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12147 All callers updated.
12148
12149 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12150
12151 * tui/tui-io.c (tui_handle_resize_during_io): Call
12152 tui_update_gdb_sizes() after resizing the screen.
12153 * tui/tui.c (tui_enable): Resize the terminal before
12154 calling tui_update_gdb_sizes().
12155
12156 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12157
12158 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12159 line before printing a newline.
12160
12161 2015-02-11 Mark Wielaard <mjw@redhat.com>
12162
12163 * utils.c (producer_is_gcc): Return true or false.
12164
12165 2015-02-10 Mark Wielaard <mjw@redhat.com>
12166
12167 * utils.h (producer_is_gcc): Change return type to bool. Add major
12168 argument.
12169 * utils.c (producer_is_gcc): Likewise.
12170 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12171 * dwarf2read.c (check_producer): Likewise.
12172
12173 2015-02-10 Pedro Alves <palves@redhat.com>
12174
12175 * infrun.c (displaced_step_fixup): Switch to the event thread
12176 before calling gdbarch_displaced_step_fixup.
12177
12178 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12179
12180 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12181
12182 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12183
12184 * ada-varobj.c (ada_name_of_child): Constify parent.
12185 (ada_path_expr_of_child): Same.
12186 (ada_value_of_child): Same.
12187 (ada_type_of_child): Same.
12188 * c-varobj.c (c_is_path_expr_parent): Same.
12189 (c_describe_child): Same.
12190 (c_name_of_child): Same.
12191 (c_value_of_child): Same.
12192 (c_type_of_child): Same.
12193 (cplus_number_of_children): Same.
12194 (cplus_describe_child): Constify var.
12195 (cplus_name_of_child): Constify parent.
12196 (cplus_value_of_child): Same.
12197 (cplus_type_of_child): Same.
12198 * jv-varobj.c (java_name_of_child): Same.
12199 (java_value_of_child): Same.
12200 (java_type_of_child): Same.
12201 * varobj.c (value_of_child): Same.
12202 (varobj_default_is_path_expr_parent): Constify var, parent and return
12203 value.
12204 (varobj_get_path_expr): Constify var, modify path_expr through
12205 mutable_var.
12206 (install_new_value): Constify parent.
12207 (value_of_child): Constify parent.
12208 * varobj.h (struct varobj): Constify parent.
12209 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12210 type_of_child.
12211 (varobj_get_path_expr): Constify var.
12212 (varobj_get_path_expr_parent): Constify var and return value.
12213
12214 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
12215
12216 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12217 (arm_prologue_this_id): Move PC and SP limit checks to
12218 arm_prologue_unwind_stop_reason.
12219 (arm_prologue_unwind) <stop_reason> : Set to
12220 arm_prologue_unwind_stop_reason.
12221
12222 2015-02-09 Mark Wielaard <mjw@redhat.com>
12223
12224 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12225 DW_LANG_Fortran08 as language_fortran.
12226
12227 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12228
12229 PR remote/17946
12230 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12231 of pointer against char.
12232
12233 2015-02-09 Mark Wielaard <mjw@redhat.com>
12234
12235 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12236 (c_type_print_modifier): Likewise.
12237 * dwarf2read.c (read_tag_atomic_type): New function.
12238 (read_type_die_1): Handle DW_TAG_atomic_type.
12239 * gdbtypes.c (make_atomic_type): New function.
12240 (recursive_dump_type): Handle TYPE_ATOMIC.
12241 * gdbtypes.h (enum type_flag_values): Renumber.
12242 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
12243 (TYPE_ATOMIC): New macro.
12244 (make_atomic_type): Declare.
12245
12246 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12247
12248 * btrace.c (ftrace_find_call): Skip gaps.
12249 (ftrace_new_function): Initialize level.
12250 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
12251 (ftrace_new_switch): Update
12252 level computation.
12253 (ftrace_new_gap): New.
12254 (ftrace_update_function): Create new function after gap.
12255 (btrace_compute_ftrace_bts): Create gap on error.
12256 (btrace_stitch_bts): Update parameters. Clear trace if it
12257 becomes empty.
12258 (btrace_stitch_trace): Update parameters. Update callers.
12259 (btrace_clear): Reset the number of gaps.
12260 (btrace_insn_get): Return NULL if the iterator points to a gap.
12261 (btrace_insn_number): Return zero if the iterator points to a gap.
12262 (btrace_insn_end): Allow gaps at the end.
12263 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12264 (btrace_find_insn_by_number): Assert that the found iterator does
12265 not point to a gap.
12266 (btrace_call_next, btrace_call_prev): Assert that the last function
12267 is not a gap.
12268 * btrace.h (btrace_bts_error): New.
12269 (btrace_function): Update comment.
12270 (btrace_function) <insn, insn_offset, number>: Update comment.
12271 (btrace_function) <errcode>: New.
12272 (btrace_thread_info) <ngaps>: New.
12273 (btrace_thread_info) <replay>: Update comment.
12274 (btrace_insn_get): Update comment.
12275 * record-btrace.c (btrace_ui_out_decode_error): New.
12276 (record_btrace_info): Print number of gaps.
12277 (btrace_insn_history, btrace_call_history): Call
12278 btrace_ui_out_decode_error for gaps.
12279 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12280
12281 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12282
12283 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12284 * nat/linux-btrace.c: (btrace_this_cpu): New.
12285 (cpu_supports_bts): Call btrace_this_cpu.
12286 (intel_supports_bts): Add cpu parameter.
12287
12288 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12289
12290 * btrace.h (btrace_insn_class): New.
12291 (btrace_insn) <size, iclass>: New.
12292 * btrace.c (ftrace_find_call): Update parameters. Update users.
12293 Use instruction classification.
12294 (ftrace_new_return): Update parameters. Update users.
12295 (ftrace_update_function): Update parameters. Update users. Use
12296 instruction classification.
12297 (ftrace_update_insns): Update parameters. Update users.
12298 (ftrace_classify_insn): New.
12299 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12300 TRY_CATCH around call to gdb_insn_length.
12301
12302 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12303
12304 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12305 Update parameters. Update users.
12306
12307 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12308
12309 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12310 (btrace_conf_bts_attributes): New.
12311 (btrace_conf_children): Add attributes.
12312 * common/btrace-common.h (btrace_config_bts): New.
12313 (btrace_config)<bts>: New.
12314 (btrace_config): Update comment.
12315 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12316 Use config.
12317 * features/btrace-conf.dtd: Increment version. Add size
12318 attribute to bts element.
12319 * record-btrace.c (set_record_btrace_bts_cmdlist,
12320 show_record_btrace_bts_cmdlist): New.
12321 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12322 record_btrace_print_conf, cmd_set_record_btrace_bts,
12323 cmd_show_record_btrace_bts): New.
12324 (record_btrace_info): Call record_btrace_print_conf.
12325 (_initialize_record_btrace): Add commands.
12326 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12327 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12328 (btrace_sync_conf): Synchronize bts size.
12329 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12330 * NEWS: Announce new commands and new packets.
12331
12332 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12333
12334 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12335 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12336 (x86_linux_btrace_conf): New.
12337 (x86_linux_create_target): Initialize to_btrace_conf.
12338 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12339 Check format. Split into this and ...
12340 (linux_enable_bts): ... this.
12341 (linux_btrace_conf): New.
12342 (perf_event_skip_record): Renamed into ...
12343 (perf_event_skip_bts_record): ... this. Updated users.
12344 (linux_disable_btrace): Split into this and ...
12345 (linux_disable_bts): ... this.
12346 (linux_read_btrace): Check format.
12347 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12348 (linux_btrace_conf): New.
12349 (btrace_target_info)<ptid>: Moved.
12350 (btrace_target_info)<conf>: New.
12351 (btrace_target_info): Split into this and ...
12352 (btrace_tinfo_bts): ... this. Updated users.
12353 * btrace.c (btrace_enable): Update parameters.
12354 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12355 (btrace_conf_children, btrace_conf_attributes)
12356 (btrace_conf_elements): New.
12357 * btrace.h (btrace_enable): Update parameters.
12358 (btrace_conf, parse_xml_btrace_conf): New.
12359 * common/btrace-common.h (btrace_config): New.
12360 * feature/btrace-conf.dtd: New.
12361 * record-btrace.c (record_btrace_conf): New.
12362 (record_btrace_cmdlist): New.
12363 (record_btrace_enable_warn, record_btrace_open): Pass
12364 &record_btrace_conf.
12365 (record_btrace_info): Print recording format.
12366 (cmd_record_btrace_bts_start): New.
12367 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12368 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12369 Add "record bts" alias command.
12370 * remote.c (remote_state)<btrace_config>: New.
12371 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12372 (remote_protocol_features): Add qXfer:btrace-conf:read.
12373 (remote_open_1): Call remote_btrace_reset.
12374 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12375 (btrace_target_info)<conf>: New.
12376 (btrace_sync_conf, btrace_read_config): New.
12377 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12378 btrace_read_conf.
12379 (remote_btrace_conf): New.
12380 (init_remote_ops): Initialize to_btrace_conf.
12381 (_initialize_remote): Add qXfer:btrace-conf packet.
12382 * target.c (target_enable_btrace): Update parameters.
12383 (target_btrace_conf): New.
12384 * target.h (target_enable_btrace): Update parameters.
12385 (target_btrace_conf): New.
12386 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12387 (target_ops)<to_enable_btrace>: Update parameters and comment.
12388 (target_ops)<to_btrace_conf>: New.
12389 * target-delegates: Regenerate.
12390 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12391 (target_debug_print_const_struct_btrace_target_info_p): New.
12392 * NEWS: Announce new command and new packet.
12393
12394 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12395
12396 * nat/linux-btrace.h (perf_event_buffer): New.
12397 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12398 <bts>: ... this.
12399 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12400 (perf_event_buffer_size, perf_event_buffer_begin)
12401 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12402 Updated users.
12403 (perf_event_new_data): New.
12404
12405 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12406
12407 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12408 * record-btrace.c (record_btrace_open): Remove call to
12409 target_supports_btrace.
12410 * remote.c (remote_supports_btrace): Update parameters.
12411 * target.c (target_supports_btrace): Update parameters.
12412 * target.h (to_supports_btrace, target_supports_btrace): Update
12413 parameters.
12414 * target-delegates.c: Regenerate.
12415 * target-debug.h (target_debug_print_enum_btrace_format): New.
12416 * nat/linux-btrace.c
12417 (kernel_supports_btrace): Rename into ...
12418 (kernel_supports_bts): ... this. Update users. Update warning text.
12419 (intel_supports_btrace): Rename into ...
12420 (intel_supports_bts): ... this. Update users.
12421 (cpu_supports_btrace): Rename into ...
12422 (cpu_supports_bts): ... this. Update users.
12423 (linux_supports_btrace): Update parameters. Split into this and ...
12424 (linux_supports_bts): ... this.
12425 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12426
12427 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12428
12429 * Makefile.in (SFILES): Add common/btrace-common.c.
12430 (COMMON_OBS): Add common/btrace-common.o.
12431 (btrace-common.o): Add build rules.
12432 * btrace.c (parse_xml_btrace): Update parameters.
12433 (parse_xml_btrace_block): Set format field.
12434 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12435 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12436 (btrace_compute_ftrace): Split into this and...
12437 (btrace_compute_ftrace_bts): ...this.
12438 (btrace_stitch_trace): Split into this and...
12439 (btrace_stitch_bts): ...this.
12440 * btrace.h (parse_xml_btrace): Update parameters.
12441 (make_cleanup_btrace_data): New.
12442 * common/btrace-common.c: New.
12443 * common/btrace-common.h: Include common-defs.h.
12444 (btrace_block_s): Update comment.
12445 (btrace_format): New.
12446 (btrace_format_string): New.
12447 (btrace_data_bts): New.
12448 (btrace_data): New.
12449 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12450 * remote.c (remote_read_btrace): Update parameters.
12451 * target.c (target_read_btrace): Update parameters.
12452 * target.h (target_read_btrace): Update parameters.
12453 (target_ops)<to_read_btrace>: Update parameters.
12454 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12455 * target-delegates.c: Regenerate.
12456 * target-debug (target_debug_print_struct_btrace_data_p): New.
12457 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12458 (linux_read_bts): ...this.
12459 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12460
12461 2015-02-06 Doug Evans <dje@google.com>
12462
12463 * remote-m32r-sdi.c: Include symfile.h.
12464
12465 2015-02-06 Doug Evans <dje@google.com>
12466
12467 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12468 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12469 to here.
12470
12471 2015-02-06 Pedro Alves <palves@redhat.com>
12472
12473 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12474
12475 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12476
12477 PR gdb/15678
12478 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12479 (enable_count_command): Check args for NULL value.
12480
12481 2015-02-05 Doug Evans <xdje42@gmail.com>
12482
12483 * guile/scm-frame.c: Fix spelling errors in a comment.
12484
12485 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12486
12487 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12488 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12489 return type.
12490
12491 2015-02-04 Pedro Alves <palves@redhat.com>
12492
12493 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12494 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12495 returns true.
12496 (resume_stopped_resumed_lwps): Don't check whether the thread is
12497 marked as executing.
12498 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12499
12500 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12501
12502 * regset.h (struct regset): Add flags field.
12503 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12504 * corelow.c (get_core_register_section): Add warning if the size
12505 exceeds the requested size and the regset does not have the
12506 REGSET_VARIABLE_SIZE flag set.
12507 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12508 flag.
12509 * armbsd-tdep.c (armbsd_gregset): Likewise.
12510 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12511 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12512 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12513 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12514
12515 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12516
12517 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12518 For ".reg-xstate", explicitly specify the requested section size
12519 via X86_XSTATE_SIZE instead of just 0 on input and
12520 X86_XSTATE_MAX_SIZE on output.
12521 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12522 Likewise.
12523
12524 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12525
12526 PR corefiles/17808:
12527 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12528 function type, particularly its SIZE parameter.
12529 * gdbarch.h: Regenerate.
12530 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12531 actual against required size using ">=" instead of "==".
12532 (amd64_collect_fpregset): Likewise.
12533 * i386-tdep.c (i386_supply_gregset): Likewise.
12534 (i386_collect_gregset): Likewise.
12535 (i386_supply_fpregset): Likewise.
12536 (i386_collect_fpregset): Likewise.
12537 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12538 (mips_fill_gregset_wrapper): Likewise.
12539 (mips_supply_fpregset_wrapper): Likewise.
12540 (mips_fill_fpregset_wrapper): Likewise.
12541 (mips64_supply_gregset_wrapper): Likewise.
12542 (mips64_fill_gregset_wrapper): Likewise.
12543 (mips64_supply_fpregset_wrapper): Likewise.
12544 (mips64_fill_fpregset_wrapper): Likewise.
12545 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12546 (am33_supply_fpregset_method): Likewise.
12547 (am33_collect_gregset_method): Likewise.
12548 (am33_collect_fpregset_method): Likewise.
12549
12550 2015-02-04 Doug Evans <dje@google.com>
12551 Pedro Alves <palves@redhat.com>
12552 Eli Zaretskii <eliz@gnu.org>
12553
12554 PR tui/17810
12555 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12556 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12557 * tui/tui-file.c: #include tui/tui-command.h.
12558 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12559 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12560 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12561
12562 2015-02-04 Pedro Alves <palves@redhat.com>
12563
12564 Fix build breakage.
12565 * event-loop.c (gdb_do_one_event): Add default switch case.
12566
12567 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12568
12569 Filter out inferior gcc option -fpreprocessed.
12570 * compile/compile.c (filter_args): New function.
12571 (get_args): Use it.
12572
12573 2015-02-03 Pedro Alves <palves@redhat.com>
12574
12575 * event-loop.c: Don't declare nor define a queue type for
12576 gdb_event_p.
12577 (event_queue): Delete.
12578 (create_event, create_file_event, gdb_event_xfree)
12579 (initialize_event_loop, process_event): Delete.
12580 (gdb_do_one_event): Return as soon as one event is handled.
12581 (handle_file_event): Change prototype. Used the passed in
12582 file_handler pointer and ready_mask instead of looping over all
12583 file handlers.
12584 (gdb_wait_for_event): Update the poll/select timeouts before
12585 blocking. Run event handlers directly instead of queueing events.
12586 Return as soon as one event is handled.
12587 (struct async_event_handler_data): Delete.
12588 (invoke_async_event_handler): Delete.
12589 (check_async_event_handlers): Change return type to int. Run
12590 event handlers directly instead of queueing events. Return as
12591 soon as one event is handled.
12592 (handle_timer_event): Delete.
12593 (update_wait_timeout): New function, factored out from
12594 poll_timers.
12595 (poll_timers): Reimplement.
12596 * event-loop.h (initialize_event_loop): Delete declaration.
12597 * top.c (gdb_init): Don't call initialize_event_loop.
12598
12599 2015-02-03 Pedro Alves <palves@redhat.com>
12600
12601 * event-loop.c (clear_async_event_handler): New function.
12602 * event-loop.h (clear_async_event_handler): New declaration.
12603 * record-btrace.c (record_btrace_async): New function.
12604 (init_record_btrace_ops): Install record_btrace_async.
12605 * record-full.c (record_full_async): New function.
12606 (record_full_resume): Don't mark the async event source here.
12607 (init_record_full_ops): Install record_full_async.
12608 (record_full_core_resume): Don't mark the async event source here.
12609 (init_record_full_core_ops): Install record_full_async.
12610 * remote.c (remote_async): Mark and clear the async stop reply
12611 queue event-loop token as appropriate.
12612
12613 2015-02-03 Pedro Alves <palves@redhat.com>
12614
12615 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12616 target_is_async_p instead of target_can_async.
12617 (linux_nat_wait): Use target_is_async_p instead of
12618 target_can_async. Don't enable async here.
12619 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12620 target_is_async_p instead of target_can_async.
12621
12622 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12623
12624 * varobj.h (lang_varobj_ops): Mention which return values need
12625 to be freed.
12626
12627 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12628
12629 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12630
12631 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12632
12633 PR gdb/17856:
12634 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12635 results found in the cache.
12636
12637 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12638
12639 PR gdb/17854:
12640 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12641 when allocating a new one.
12642
12643 2015-02-01 Tom Tromey <tom@tromey.com>
12644
12645 * MAINTAINERS: Remove myself.
12646
12647 2015-01-31 Doug Evans <xdje42@gmail.com>
12648
12649 * dwarf2read.c (process_structure_scope): Update setting of
12650 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12651 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12652 (set_type_vptr_fieldno): New function.
12653 (internal_type_vptr_basetype): New function.
12654 (set_type_vptr_basetype): New function.
12655 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12656 TYPE_VPTR_BASETYPE.
12657 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12658 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12659 (print_cplus_stuff): ... moved here.
12660 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12661 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12662 moved to ...
12663 (struct cplus_struct_type): ... here. All uses updated.
12664 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12665 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12666 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12667 * stabsread.c (read_tilde_fields): Update setting of
12668 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12669
12670 2015-01-31 Doug Evans <xdje42@gmail.com>
12671
12672 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12673 to self_p.
12674 (cp_print_class_member): Rename local domain to self_type.
12675 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12676 domain_type to self_type.
12677 (set_die_type) <need_gnat_info>: Handle
12678 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12679 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12680 TYPE_SPECIFIC_SELF_TYPE.
12681 * gdbtypes.c (internal_type_self_type): New function.
12682 (set_type_self_type): New function.
12683 (smash_to_memberptr_type): Rename parameter domain to self_type.
12684 Update setting of TYPE_SELF_TYPE.
12685 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12686 (smash_to_method_type): Rename parameter domain to self_type.
12687 Update setting of TYPE_SELF_TYPE.
12688 (check_stub_method): Call smash_to_method_type.
12689 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12690 (copy_type_recursive): Ditto.
12691 * gdbtypes.h (enum type_specific_kind): New value
12692 TYPE_SPECIFIC_SELF_TYPE.
12693 (struct main_type) <type_specific>: New member self_type.
12694 (struct cplus_struct_type) <fn_field.type>: Update comment.
12695 (TYPE_SELF_TYPE): Rewrite.
12696 (internal_type_self_type, set_type_self_type): Declare.
12697 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12698 self_type.
12699 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12700 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12701 TYPE_TARGET_TYPE.
12702 * stabsread.c (read_member_functions): Mark methods with
12703 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12704 TYPE_SELF_TYPE.
12705
12706 2015-01-31 Doug Evans <xdje42@gmail.com>
12707
12708 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12709 All uses updated.
12710
12711 2015-01-31 Doug Evans <xdje42@gmail.com>
12712
12713 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12714 or unions. Return zero if union.
12715 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12716 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12717 gnuv3_get_vtable.
12718 (compute_vtable_size): Assert only passed structs.
12719 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12720
12721 2015-01-31 Doug Evans <xdje42@gmail.com>
12722
12723 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12724 kinds.
12725
12726 2015-01-31 Gary Benson <gbenson@redhat.com>
12727 Doug Evans <dje@google.com>
12728
12729 PR cli/9007
12730 PR cli/11920
12731 PR cli/15548
12732 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12733 reached.
12734 * common/common-exceptions.h (enum errors)
12735 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12736 * completer.h (get_max_completions_reached_message): New declaration.
12737 (max_completions): Likewise.
12738 (completion_tracker_t): New typedef.
12739 (new_completion_tracker): New declaration.
12740 (make_cleanup_free_completion_tracker): Likewise.
12741 (maybe_add_completion_enum): New enum.
12742 (maybe_add_completion): New declaration.
12743 (throw_max_completions_reached_error): Likewise.
12744 * completer.c (max_completions): New global variable.
12745 (new_completion_tracker): New function.
12746 (free_completion_tracker): Likewise.
12747 (make_cleanup_free_completion_tracker): Likewise.
12748 (maybe_add_completions): Likewise.
12749 (throw_max_completions_reached_error): Likewise.
12750 (complete_line): Remove duplicates and limit result to max_completions
12751 entries.
12752 (get_max_completions_reached_message): New function.
12753 (gdb_display_match_list): Handle max_completions.
12754 (_initialize_completer): New declaration and function.
12755 * symtab.c: Include completer.h.
12756 (completion_tracker): New static variable.
12757 (completion_list_add_name): Call maybe_add_completion.
12758 (default_make_symbol_completion_list_break_on_1): Renamed from
12759 default_make_symbol_completion_list_break_on. Maintain
12760 completion_tracker across calls to completion_list_add_name.
12761 (default_make_symbol_completion_list_break_on): New function.
12762 * top.c (init_main): Set rl_completion_display_matches_hook.
12763 * tui/tui-io.c: Include completer.h.
12764 (tui_old_rl_display_matches_hook): New static global.
12765 (tui_rl_display_match_list): Notify user if max-completions reached.
12766 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12767 * NEWS (New Options): Mention set/show max-completions.
12768
12769 2015-01-31 Gary Benson <gbenson@redhat.com>
12770
12771 * symtab.c (struct add_name_data) <code>: New field.
12772 Updated comments.
12773 (add_symtab_completions): New function.
12774 (symtab_expansion_callback): Likewise.
12775 (default_make_symbol_completion_list_break_on): Set datum.code.
12776 Move minimal symbol scan before calling expand_symtabs_matching.
12777 Scan known primary symtabs for externs and statics before calling
12778 expand_symtabs_matching. Pass symtab_expansion_callback as
12779 expansion_notify argument to expand_symtabs_matching. Do not scan
12780 primary symtabs for externs and statics after calling
12781 expand_symtabs_matching.
12782
12783 2015-01-31 Gary Benson <gbenson@redhat.com>
12784
12785 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12786 (struct quick_symbol_functions) <expand_symtabs_matching>:
12787 New argument expansion_notify. All uses updated.
12788 (expand_symtabs_matching): New argument expansion_notify.
12789 All uses updated.
12790 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12791 Also print expansion notify.
12792 * symtab.c (expand_symtabs_matching_via_partial): Call
12793 expansion_notify whenever a partial symbol table is expanded.
12794 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12795 expansion_notify whenever a symbol table is instantiated.
12796
12797 2015-01-31 Doug Evans <xdje42@gmail.com>
12798
12799 * cli-out.c: #include completer.h, readline/readline.h.
12800 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12801 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12802 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12803 * cli-out.h (cli_display_match_list): Declare.
12804 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12805 (ELLIPSIS_LEN): Ditto.
12806 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12807 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12808 (gdb_fnprint, gdb_print_filename): Ditto.
12809 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12810 (gdb_display_match_list): Ditto.
12811 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12812 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12813 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12814 (match_list_displayer): New struct.
12815 (gdb_display_match_list): Declare.
12816 * top.c (init_main): Set rl_completion_display_matches_hook.
12817 * tui/tui-io.c: #include completer.h.
12818 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12819 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12820 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12821 (tui_mld_getc, tui_mld_read_key): Ditto.
12822 (tui_rl_display_match_list): Rewrite.
12823 (tui_handle_resize_during_io): New arg for_completion. All callers
12824 updated.
12825
12826 2015-01-31 Doug Evans <xdje42@gmail.com>
12827
12828 Add symbol lookup cache.
12829 * NEWS: Document new options and commands.
12830 * symtab.c (symbol_cache_key): New static global.
12831 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12832 (SYMBOL_LOOKUP_FAILED): New macro.
12833 (symbol_cache_slot_state): New enum.
12834 (block_symbol_cache): New struct.
12835 (symbol_cache): New struct.
12836 (new_symbol_cache_size, symbol_cache_size): New static globals.
12837 (hash_symbol_entry, eq_symbol_entry): New functions.
12838 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12839 (make_symbol_cache, free_symbol_cache): New functions.
12840 (get_symbol_cache, symbol_cache_cleanup): New function.
12841 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12842 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12843 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12844 (symbol_cache_flush, symbol_cache_dump): New functions.
12845 (maintenance_print_symbol_cache): New function.
12846 (maintenance_flush_symbol_cache): New function.
12847 (symbol_cache_stats): New function.
12848 (maintenance_print_symbol_cache_statistics): New function.
12849 (symtab_new_objfile_observer): New function.
12850 (symtab_free_objfile_observer): New function.
12851 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12852 (_initialize_symtab): Init symbol_cache_key. New parameter
12853 maint symbol-cache-size. New maint commands print symbol-cache,
12854 print symbol-cache-statistics, flush-symbol-cache.
12855 Install new_objfile, free_objfile observers.
12856
12857 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12858
12859 PR symtab/17855
12860 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12861 to end.
12862
12863 2015-01-31 Doug Evans <xdje42@gmail.com>
12864
12865 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12866 * auto-load.c: #include ctype.h.
12867 (struct auto_load_pspace_info): Replace member loaded_scripts with
12868 new members loaded_script_files, loaded_script_texts.
12869 (auto_load_pspace_data_cleanup): Update.
12870 (init_loaded_scripts_info): Update.
12871 (get_auto_load_pspace_data_for_loading): Update.
12872 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12873 updated.
12874 (maybe_add_script_text): New function.
12875 (clear_section_scripts): Update.
12876 (source_script_file, execute_script_contents): New functions.
12877 (source_section_scripts): Add support for
12878 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12879 (print_scripts): New function.
12880 (auto_load_info_scripts): Also print inlined scripts.
12881 (maybe_print_unsupported_script_warning): Renamed from
12882 unsupported_script_warning_print. All callers updated.
12883 (maybe_print_script_not_found_warning): Renamed from
12884 script_not_found_warning_print. All callers updated.
12885 * extension-priv.h (struct extension_language_script_ops): New member
12886 objfile_script_executor.
12887 * extension.c (ext_lang_objfile_script_executor): New function.
12888 * extension.h (objfile_script_executor_func): New typedef.
12889 (ext_lang_objfile_script_executor): Declare.
12890 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12891 * guile/guile.c (guile_extension_script_ops): Update.
12892 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12893 * python/python.c (python_extension_script_ops): Update.
12894 (gdbpy_execute_objfile_script): New function.
12895
12896 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12897
12898 * tui/tui-io.c (tui_expand_tabs): New function.
12899 (tui_puts, tui_redisplay_readline): Expand TABs into the
12900 appropriate number of spaces.
12901 * tui/tui-regs.c: Include tui-io.h.
12902 (tui_register_format): Call tui_expand_tabs to expand TABs into
12903 the appropriate number of spaces.
12904 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12905
12906 2015-01-30 Doug Evans <dje@google.com>
12907
12908 * NEWS: "info source" command now display producer string if present.
12909 * source.c (source_info): Print producer string if present.
12910
12911 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12912
12913 * varobj.c (varobj_delete): Fix comment.
12914
12915 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12916
12917 * varobj.c (create_child): Modify comment.
12918
12919 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12920
12921 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12922 parameter.
12923 (ada_name_of_variable): Same.
12924 (ada_path_expr_of_child): Same.
12925 (ada_value_of_variable): Same.
12926 (ada_value_is_changeable_p): Same.
12927 (ada_value_has_mutated): Same.
12928 * c-varobj.c (varobj_is_anonymous_child): Same.
12929 (c_is_path_expr_parent): Same.
12930 (c_number_of_children): Same.
12931 (c_name_of_variable): Same.
12932 (c_path_expr_of_child): Same.
12933 (get_type): Same.
12934 (c_value_of_variable): Same.
12935 (cplus_number_of_children): Same.
12936 (cplus_name_of_variable): Same.
12937 (cplus_path_expr_of_child): Same.
12938 (cplus_value_of_variable): Same.
12939 * jv-varobj.c (java_number_of_children): Same.
12940 (java_name_of_variable): Same.
12941 (java_path_expr_of_child): Same.
12942 (java_value_of_variable): Same.
12943 * varobj.c (number_of_children): Same.
12944 (name_of_variable): Same.
12945 (is_root_p): Same.
12946 (varobj_ensure_python_env): Same.
12947 (varobj_get_objname): Same.
12948 (varobj_get_expression): Same.
12949 (varobj_get_display_format): Same.
12950 (varobj_get_display_hint): Same.
12951 (varobj_has_more): Same.
12952 (varobj_get_thread_id): Same.
12953 (varobj_get_frozen): Same.
12954 (dynamic_varobj_has_child_method): Same.
12955 (varobj_get_gdb_type): Same.
12956 (is_path_expr_parent): Same.
12957 (varobj_default_is_path_expr_parent): Same.
12958 (varobj_get_language): Same.
12959 (varobj_get_attributes): Same.
12960 (varobj_is_dynamic_p): Same.
12961 (varobj_get_child_range): Same.
12962 (varobj_value_has_mutated): Same.
12963 (varobj_get_value_type): Same.
12964 (number_of_children): Same.
12965 (name_of_variable): Same.
12966 (check_scope): Same.
12967 (varobj_editable_p): Same.
12968 (varobj_value_is_changeable_p): Same.
12969 (varobj_floating_p): Same.
12970 (varobj_default_value_is_changeable_p): Same.
12971
12972 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12973
12974 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12975 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12976 child->path_expr.
12977 (cplus_path_expr_of_child): Same.
12978
12979 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12980
12981 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12982 result.
12983 (mi_cmd_var_info_expression): Same.
12984 * varobj.c (varobj_get_expression): Mention in the comment that
12985 the result must by freed by the caller.
12986
12987 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12988
12989 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12990 varobj_get_type.
12991 (varobj_update_one): Same.
12992 * varobj.c (update_type_if_necessary): Free curr_type_str and
12993 new_type_str.
12994 (varobj_get_type): Specify in comment that the result needs to be
12995 freed by the caller.
12996
12997 2015-01-29 Doug Evans <dje@google.com>
12998
12999 PR symtab/17890
13000 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13001
13002 2015-01-25 Mark Wielaard <mjw@redhat.com>
13003
13004 * dwarf2read.c (checkproducer): Call producer_is_gcc.
13005 * utils.c (producer_is_gcc_ge_4): Likewise.
13006 (producer_is_gcc): New function.
13007 * utils.h (producer_is_gcc): New declaration.
13008
13009 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13010
13011 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13012 kind.
13013 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13014 parameter by "addr_stack" parameter.
13015 (resolve_dynamic_range): Replace "addr" parameter by
13016 "stack_addr" parameter. Update function documentation.
13017 Update code accordingly.
13018 (resolve_dynamic_array, resolve_dynamic_union)
13019 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13020 (resolve_dynamic_type): Update code, following the changes made
13021 to resolve_dynamic_type_internal's interface.
13022 * dwarf2loc.h (struct property_addr_info): New.
13023 (dwarf2_evaluate_property): Replace "address" parameter
13024 by "addr_stack" parameter. Adjust function documentation.
13025 (struct dwarf2_offset_baton): New.
13026 (struct dwarf2_property_baton): Update documentation of
13027 field "referenced_type" to be more general. New field
13028 "offset_info" in union data field.
13029 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13030 parameter by "addr_stack" parameter. Adjust code accordingly.
13031 Add support for PROP_ADDR_OFFSET properties.
13032 * dwarf2read.c (attr_to_dynamic_prop): Add support for
13033 DW_AT_data_member_location attributes as well. Use case
13034 statements instead of if/else condition.
13035
13036 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13037
13038 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13039 Return zero if PARENT_VALUE is NULL and parent_type's
13040 range type is dynamic.
13041
13042 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13043
13044 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13045 nonzero if the type's subtype is dynamic.
13046 (resolve_dynamic_range): Also resolve the range's subtype.
13047
13048 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
13049
13050 Pushed by Joel Brobecker <brobecker@adacore.com>.
13051 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13052
13053 2015-01-27 Doug Evans <dje@google.com>
13054
13055 * NEWS: Mention gdb.Objfile.username.
13056 * python/py-objfile.c (objfpy_get_username): New function.
13057 (objfile_getset): Add "username".
13058
13059 2015-01-24 Mark Wielaard <mjw@redhat.com>
13060
13061 * stack.c (return_command): Markup warning message with _.
13062
13063 2015-01-24 Doug Evans <xdje42@gmail.com>
13064
13065 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13066
13067 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13068
13069 Fix 100x slowdown regression on DWZ files.
13070 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13071 (struct line_header): Add offset and offset_in_dwz.
13072 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13073 (free_line_header_voidp): New declaration.
13074 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13075 functions.
13076 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13077 (handle_DW_AT_stmt_list): Use line_header_hash.
13078 (free_line_header_voidp): New function.
13079 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13080 (dwarf_decode_lines): New parameter decode_mapping, use it.
13081 (dwarf2_free_objfile): Free line_header_hash.
13082
13083 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13084
13085 PR gdb/17416
13086 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13087 value_ind.
13088
13089 2015-01-15 Mark Wielaard <mjw@redhat.com>
13090
13091 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13092 DW_AT_noreturn.
13093 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13094 calling_convention an 8 bit bit field.
13095 (TYPE_NO_RETURN): New macro.
13096 * infcmd.c (finish_command): Query if function does not return
13097 normally.
13098 * stack.c (return_command): Likewise.
13099
13100 2015-01-23 Pedro Alves <palves@redhat.com>
13101
13102 * linux-nat.c (linux_is_async_p): New macro.
13103 (linux_nat_is_async_p):
13104 (linux_nat_terminal_inferior): Check whether the target can async
13105 instead of whether it is already async.
13106 (linux_nat_terminal_ours): Don't check whether the target is
13107 async.
13108 (linux_async_pipe): Use linux_is_async_p.
13109
13110 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13111
13112 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13113 '-ascending'.
13114 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13115 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13116 Sort tp_array using tp_array_compar.
13117 (_initialize_thread): Extend thread_apply_all_command help.
13118
13119 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13120
13121 * corelow.c (core_open): Call also thread_command.
13122 * gdbthread.h (thread_command): New prototype moved from ...
13123 * thread.c (thread_command): ... here.
13124 (thread_command): Make it global.
13125
13126 2015-01-22 Pedro Alves <palves@redhat.com>
13127
13128 * configure.ac [*mingw32*]: Check $curses_found instead of
13129 $prefer_curses.
13130 * configure: Regenerate.
13131 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13132 HAVE_NCURSES_NCURSES_H checks.
13133
13134 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13135
13136 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13137 fails with the 1st arg NULL, try again with "unknown". Don't test
13138 the "cup" capability: it isn't supported by the Windows port of
13139 ncurses, but the Windows console driver is still capable of
13140 supporting TUI.
13141
13142 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13143
13144 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13145
13146 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13147
13148 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13149 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13150 reason that "make TAGS" is broken.
13151
13152 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13153
13154 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13155 and check additional store instructions.
13156
13157 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13158
13159 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13160
13161 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13162
13163 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13164 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13165 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13166 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13167 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13168 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13169 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13170 ppc_process_record_op19, ppc_process_record_op31,
13171 ppc_process_record_op59, ppc_process_record_op60,
13172 ppc_process_record_op63): Likewise.
13173
13174 2015-01-20 Joel Brobecker <brobecker@adacore.com>
13175
13176 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13177 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13178 strerror.
13179
13180 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
13181
13182 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13183 ppc_process_record_op31, ppc_process_record_op59,
13184 ppc_process_record_op60, ppc_process_record_op63,
13185 ppc_process_record): Fix -Wformat warning.
13186 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13187 Remove unused variables.
13188
13189 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13190
13191 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13192
13193 2015-01-19 Eli Zaretskii <eliz@gnu.org>
13194
13195 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13196 CONFIG_OBS if not building with a curses library.
13197 * configure: Regenerate.
13198
13199 * windows-termcap.c: Include defs.h. Make the whole body empty if
13200 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13201 HAVE_NCURSES_NCURSES_H is defined.
13202
13203 2015-01-19 Joel Brobecker <brobecker@adacore.com>
13204
13205 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13206 from end of line to start of next line.
13207
13208 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13209
13210 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13211 Scan PLT stub backward for reverse debugging.
13212 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13213
13214 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13215 Ulrich Weigand <uweigand@de.ibm.com>
13216
13217 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13218 gdb_target_obs.
13219 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13220 record.
13221 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13222 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13223 (ppc_linux_init_abi): Set process_record, process_record_signal.
13224 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13225 ppc_linux_record_tdep to gdbarch_tdep.
13226 (ppc_process_record): New declaration.
13227 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13228 ppc_process_record_op19, ppc_process_record_op31,
13229 ppc_process_record_op59, ppc_process_record_op60,
13230 ppc_process_record_op63, ppc_process_record): New functions.
13231
13232 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13233
13234 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13235 rs6000_in_function_epilogue_frame_p and add an argument
13236 for frame_info.
13237 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
13238 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
13239 New functions.
13240 (rs6000_epilogue_frame_unwind): New.
13241 (rs6000_gdbarch_init): Append epilogue unwinder.
13242
13243 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13244
13245 * nat/linux-personality.c: Replace "#ifndef
13246 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
13247 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
13248 systems.
13249
13250 2015-01-16 Eli Zaretskii <eliz@gnu.org>
13251
13252 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13253 functions.
13254 (_initialize_tui_win) <border-kind, border-mode>:
13255 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
13256 (tui_set_tab_width_command): Fix the commentary.
13257
13258 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13259
13260 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13261 Doc fix.
13262 (tui_set_tab_width_command): Delete and recreate the source and
13263 the disassembly windows, to show the effect of the changed tab
13264 size immediately.
13265
13266 * tui/tui-data.h (LINE_PREFIX): Make shorter
13267 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13268 "Thread NNNNN.XXXX" thread ID notation on Windows.
13269
13270 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13271
13272 Fix gcc-5 compilation.
13273 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13274
13275 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13276
13277 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13278 (linux-personality.o): New rule.
13279 * common/common-defs.h: Include <stdint.h>.
13280 * config/aarch64/linux.mh (NATDEPFILES): Include
13281 linux-personality.o.
13282 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13283 * config/arm/linux.mh (NATDEPFILES): Likewise.
13284 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13285 * config/i386/linux.mh (NATDEPFILES): Likewise.
13286 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13287 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13288 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13289 * config/mips/linux.mh (NATDEPFILES): Likewise.
13290 * config/pa/linux.mh (NATDEPFILES): Likewise.
13291 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13292 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13293 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13294 * config/s390/linux.mh (NATDEPFILES): Likewise.
13295 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13296 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13297 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13298 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13299 * defs.h: Remove #include <stdint.h> (moved to
13300 common/common-defs.h).
13301 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13302 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13303 nat/linux-personality.c).
13304 (linux_nat_create_inferior): Remove code to disable address space
13305 randomization (moved to nat/linux-personality.c). Create cleanup
13306 to disable address space randomization.
13307 * nat/linux-personality.c: New file.
13308 * nat/linux-personality.h: Likewise.
13309
13310 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13311
13312 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13313 common/posix-strerror.c.
13314 (posix-strerror.o): New rule.
13315 (mingw-strerror.o): Likewise.
13316 * common/common-utils.h (safe_strerror): Move prototype to here,
13317 from utils.h.
13318 * common/common.host: New file.
13319 * common/mingw-strerror.c: Likewise.
13320 * common/posix-strerror.c: Likewise.
13321 * configure: Regenerated.
13322 * configure.ac: Source common/common.host. Add variable
13323 common_host_obs to gdb_host_obs.
13324 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13325 gdb/common/posix-strerror.c when warning about the use of
13326 strerror.
13327 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13328 common/mingw-strerror.c.
13329 * posix-hdep.c (safe_strerror): Remove definition; move it to
13330 common/posix-hdep.c.
13331 * utils.h (safe_strerror): Remove prototype; move to
13332 common/common-utils.h.
13333
13334 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13335
13336 GDB 7.8.2 released.
13337
13338 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13339
13340 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13341 ___XA type if the array has already been fixed.
13342
13343 2015-01-14 Yao Qi <yao@codesourcery.com>
13344
13345 * Makefile.in (ppc-linux.o): New rule.
13346 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13347 * configure.ac: AC_CHECK_FUNCS(getauxval).
13348 * config.in: Re-generated.
13349 * configure: Re-generated.
13350 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13351 Declare.
13352 * nat/ppc-linux.c: New file.
13353 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13354 Call ppc64_64bit_inferior_p.
13355
13356 2015-01-14 Yao Qi <yao@codesourcery.com>
13357
13358 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13359 nat/ppc-linux.h.
13360 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13361 (PPC_FEATURE_HAS_DFP): Likewise.
13362 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13363 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13364 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13365 Include "nat/ppc-linux.h".
13366 * nat/ppc-linux.h: New file.
13367 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13368
13369 2015-01-14 Pedro Alves <palves@redhat.com>
13370
13371 PR gdb/17525
13372 * breakpoint.c: Include "interps.h".
13373 (bpstat_do_actions_1): Also check whether the interpreter is
13374 async.
13375
13376 2015-01-14 Pedro Alves <palves@redhat.com>
13377
13378 PR cli/17828
13379 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13380 reinstall if the interpreter is sync.
13381
13382 2015-01-13 Doug Evans <dje@google.com>
13383
13384 * objfiles.c (objfile_filename): New function.
13385 * objfiles.h (objfile_filename): Declare it.
13386 (objfile_name): Add function comment.
13387 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13388 bfd file name (which may be realpath'd), and the original name.
13389
13390 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13391
13392 * NEWS: Create a new section for the next release branch.
13393 Rename the section of the current branch, now that it has
13394 been cut.
13395
13396 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13397
13398 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13399 * version.in: Bump version to 7.9.50.DATE-cvs.
13400
13401 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13402
13403 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13404 Remove trailing new-line in argument of call to warning.
13405
13406 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13407
13408 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13409 new-line in argument of call to "warning".
13410
13411 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13412
13413 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13414 in static block, then try searching for primitive types.
13415
13416 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13417
13418 * top.h (gdb_add_history): Declare.
13419 * top.c (command_count): New variable.
13420 (gdb_add_history): New function.
13421 (gdb_safe_append_history): New static function.
13422 (quit_force): Call it.
13423 (command_line_input): Use gdb_add_history instead of
13424 add_history.
13425 * event-top.c (command_line_handler): Likewise.
13426
13427 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13428
13429 PR gdb/17046
13430 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13431 <setjmp.h> #include.
13432
13433 2015-01-11 Doug Evans <xdje42@gmail.com>
13434
13435 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13436
13437 2015-01-11 Doug Evans <xdje42@gmail.com>
13438
13439 PR gdb/15830
13440 * NEWS: The "maint demangle" command is renamed as "demangle".
13441 * demangle.c: #include cli/cli-utils.h, language.h.
13442 (demangle_command): New function.
13443 (_initialize_demangle): Add new command "demangle".
13444 * maint.c (maintenance_demangle): Stub out.
13445 (_initialize_maint_cmds): Update help text for "maint demangle",
13446 and mark as deprecated.
13447
13448 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13449
13450 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13451 inferior_thread is a function.
13452
13453 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13454
13455 * Makefile.in (.y.c): Don't munge yacc's #line
13456 directives.
13457
13458 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13459
13460 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13461 to prompt for input.
13462 * tui/tui-hooks.c (tui_query_hook): Remove.
13463 (tui_install_hooks): Don't set deprecated_query_hook.
13464 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13465 height calculation. Always update the command window's cur_line.
13466
13467 2015-01-09 Pedro Alves <palves@redhat.com>
13468
13469 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13470 function.
13471 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13472 declaration.
13473 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13474 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13475 stop_reason.
13476 (check_stopped_by_watchpoint): New function.
13477 (save_sigtrap): Reimplement.
13478 (linux_nat_stopped_by_watchpoint): Adjust.
13479 (linux_nat_lp_status_is_event): Delete.
13480 (stop_wait_callback): Only call save_sigtrap after storing the
13481 pending status.
13482 (status_callback): If the thread had been stopped for a breakpoint
13483 that has since been removed, discard the event and resume the LWP.
13484 (count_events_callback, select_event_lwp_callback): Use
13485 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13486 (cancel_breakpoint): Rename to ...
13487 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13488 stopped for a software breakpoint or hardware breakpoint.
13489 (select_event_lwp): Only give preference to the stepping LWP in
13490 all-stop mode. Adjust comments.
13491 (stop_and_resume_callback): Remove references to new_pending_p.
13492 (linux_nat_filter_event): Likewise. Leave exit events of the
13493 leader thread pending here. Handle signal short circuiting here.
13494 Only call save_sigtrap after storing the pending waitstatus.
13495 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13496 new_pending. Don't handle leaving events the caller is not
13497 interested in pending here, nor handle signal short-circuiting
13498 here. Also give equal priority to all LWPs that have had events
13499 in non-stop mode. If reporting a software breakpoint event,
13500 unadjust the LWP's PC.
13501 * linux-nat.h (enum lwp_stop_reason): New.
13502 (struct lwp_info) <stop_pc>: New field.
13503 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13504 (struct lwp_info) <stop_reason>: New field.
13505 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13506
13507 2015-01-09 Pedro Alves <palves@redhat.com>
13508
13509 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13510 Set the LWP's 'resumed' flag.
13511
13512 2015-01-09 Pedro Alves <palves@redhat.com>
13513
13514 * linux-nat.c (linux_resume_one_lwp): New function.
13515 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13516 (linux_nat_resume): Use lwp_status_pending_p and
13517 linux_resume_one_lwp.
13518 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13519 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13520 (status_callback, running_callback): Use lwp_status_pending_p.
13521 (lwp_status_pending_p): New function.
13522 (stop_and_resume_callback): Use lwp_status_pending_p.
13523 (linux_nat_filter_event): Use linux_resume_one_lwp.
13524 (linux_nat_wait_1): Always use status_callback to look for an LWP
13525 with a pending status. Use linux_resume_one_lwp.
13526 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13527 linux_resume_one_lwp.
13528
13529 2015-01-09 Pedro Alves <palves@redhat.com>
13530
13531 * breakpoint.c (bp_location_inserted_here_p): New function,
13532 factored out from ...
13533 (breakpoint_inserted_here_p): ... here. Use
13534 ALL_BP_LOCATIONS_AT_ADDR.
13535 (software_breakpoint_inserted_here_p): Use
13536 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13537
13538 2014-01-09 Pedro Alves <palves@redhat.com>
13539
13540 Skip enabling event reporting if the kernel supports
13541 PTRACE_EVENT_CLONE.
13542 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13543 (thread_db_use_events): New function.
13544 (try_thread_db_load_1): Check thread_db_use_events before enabling
13545 event reporting.
13546 (update_thread_state): New function.
13547 (attach_thread): Use it. Check thread_db_use_events before
13548 enabling event reporting.
13549 (thread_db_detach): Check thread_db_use_events before disabling
13550 event reporting.
13551 (find_new_threads_callback): Check thread_db_use_events before
13552 enabling event reporting. Update the thread's state if not using
13553 libthread_db events.
13554
13555 2015-01-09 Pedro Alves <palves@redhat.com>
13556
13557 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13558 about to wait for is > 0.
13559 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13560 the kernel thread ID is -1.
13561
13562 2015-01-09 Pedro Alves <palves@redhat.com>
13563
13564 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13565 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13566 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13567 ptrace option flags.
13568 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13569 field.
13570 * nat/linux-procfs.c: Include <dirent.h>.
13571 (linux_proc_get_int): New parameter "warn". Handle it.
13572 (linux_proc_get_tgid): Adjust.
13573 (linux_proc_get_tracerpid): Rename to ...
13574 (linux_proc_get_tracerpid_nowarn): ... this.
13575 (linux_proc_pid_get_state): New function, factored out from
13576 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13577 and handle it.
13578 (linux_proc_pid_is_gone): New function.
13579 (linux_proc_pid_is_stopped): Adjust.
13580 (linux_proc_pid_is_zombie_maybe_warn)
13581 (linux_proc_pid_is_zombie_nowarn): New functions.
13582 (linux_proc_pid_is_zombie): Use
13583 linux_proc_pid_is_zombie_maybe_warn.
13584 (linux_proc_attach_tgid_threads): New function.
13585 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13586 (linux_proc_get_tracerpid): Rename to ...
13587 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13588 (linux_proc_pid_is_gone): New declaration.
13589 (linux_proc_pid_is_zombie): Update comment.
13590 (linux_proc_pid_is_zombie_nowarn): New declaration.
13591 (linux_proc_attach_lwp_func): New typedef.
13592 (linux_proc_attach_tgid_threads): New declaration.
13593 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13594 use nowarn functions.
13595 (linux_ptrace_attach_fail_reason_string): Move here from
13596 gdbserver/linux-low.c and rename.
13597 (ptrace_supports_feature): If the current ptrace options are not
13598 known yet, check them now, instead of asserting.
13599 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13600 Declare.
13601
13602 2015-01-09 Pedro Alves <palves@redhat.com>
13603
13604 * linux-thread-db.c (thread_db_find_new_threads_silently)
13605 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13606 (find_new_threads_once): Print debug output on gdb_stdlog.
13607
13608 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13609 Pedro Alves <palves@redhat.com>
13610
13611 * compile/compile.c: Include "gdb_wait.h".
13612 (do_rmdir): Check return value, and free 'zap'.
13613
13614 2015-01-08 Pedro Alves <palves@redhat.com>
13615 Yao Qi <yao@codesourcery.com>
13616
13617 * dwarf2loc.c (indirect_pieced_value): Don't call
13618 gdb_sign_extend. Call extract_signed_integer instead.
13619 * utils.c (gdb_sign_extend): Remove.
13620 * utils.h (gdb_sign_extend): Remove declaration.
13621
13622 2015-01-07 Pierre Muller <muller@sourceware.org>
13623
13624 PR symtab/17811
13625 * stabsread.c (define_symbol): Set language for C++ special symbols.
13626
13627 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13628
13629 * inflow.c (initial_gdb_ttystate): Tweak comment.
13630
13631 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13632
13633 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13634 comment documenting function.
13635
13636 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13637
13638 * terminal.h (set_initial_gdb_ttystate): Declare.
13639 * inflow.c (initial_gdb_ttystate): New static variable.
13640 (set_initial_gdb_ttystate): New setter.
13641 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13642 instead of our current terminal state.
13643 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13644
13645 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13646
13647 * guile/scm-type.c (tyscm_array_1): Add comment.
13648 * python/py-type.c (typy_array_1): Add comment.
13649
13650 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13651
13652 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13653 error if N2 is equal to N1 - 1.
13654
13655 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13656
13657 * python/py-type.c (typy_array_1): Do not raise negative-length
13658 exception if N2 is equal to N1 - 1.
13659
13660 2015-01-03 Doug Evans <xdje42@gmail.com>
13661
13662 * c-exp.y: Whitespace cleanup.
13663 (classify_inner_name): Remove extra ;.
13664
13665 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13666
13667 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13668 offset signed.
13669
13670 2015-01-02 Doug Evans <dje@google.com>
13671
13672 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13673
13674 2015-01-02 Doug Evans <dje@google.com>
13675
13676 * symtab.h (struct symbol): Fix typo in comment.
13677
13678 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13679
13680 Update year range in copyright notice of all files.
13681
13682 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13683
13684 * top.c (print_gdb_version): Update copyright year to 2015.
13685
13686 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13687
13688 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13689
13690 For older changes see ChangeLog-2014.
13691 \f
13692 Local Variables:
13693 mode: change-log
13694 left-margin: 8
13695 fill-column: 74
13696 version-control: never
13697 coding: utf-8
13698 End: