[C++/mingw] gdbserver: gdb/host signal mixup
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
56db1d67
PA
12015-11-17 Pedro Alves <palves@redhat.com>
2
3 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
4 signal number for terminator.
5
69e976f8
PA
62015-11-17 Pedro Alves <palves@redhat.com>
7
8 * ser-tcp.c (net_open) : Cast getsockopt argument to char *
9 instead of void *. Update comment.
10 (net_read_prim): Cast recv argument to char * instead of void *.
11 (net_write_prim): Cast send argument to char *. Add comment.
12
c3de4d92
PA
132015-11-17 Pedro Alves <palves@redhat.com>
14
15 * win32-i386-low.c (update_debug_registers_callback)
16 (win32_get_current_dr): Add cast.
17 * win32-low.c (thread_rec, delete_thread_info)
18 (continue_one_thread): Add casts.
19 (strwinerror): Cast FormatMessage argument to LPTSTR instead of
20 LPVOID.
21 (win32_create_inferior, suspend_one_thread): Add casts.
22
43499ea3
PA
232015-11-17 Pedro Alves <palves@redhat.com>
24
25 * windows-nat.c (AdjustTokenPrivileges_ftype)
26 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
27 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
28 (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
29 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
30 (GetConsoleFontSize_ftype): New typedefs.
31 (AdjustTokenPrivileges, DebugActiveProcessStop)
32 (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
33 (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
34 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
35 Adjust.
36 (GetModuleFileNameEx_ftype): New typedef.
37 (GetModuleFileNameEx): Use it.
38 (_initialize_loadable): Define GPA macro and use it.
39
2986367f
PA
402015-11-17 Pedro Alves <palves@redhat.com>
41
42 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
43 HMODULE.
44
0ae1c716
PA
452015-11-17 Pedro Alves <palves@redhat.com>
46
47 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
48 || __CYGWIN__]: Add casts.
49 * utils.c (gdb_filename_fnmatch): Add cast.
50 * windows-nat.c (windows_create_inferior): Add cast.
51
cd78b7a1
PA
522015-11-17 Pedro Alves <palves@redhat.com>
53
54 * ser-mingw.c (CancelIo_ftype): New typedef.
55 (CancelIo): Use CancelIo_ftype.
56 (ser_windows_close, ser_windows_wait_handle)
57 (ser_windows_read_prim, stop_select_thread)
58 (console_select_thread, pipe_select_thread, file_select_thread)
59 (ser_console_wait_handle, ser_console_done_wait_handle)
60 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
61 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
62 (net_windows_socket_check_pending, net_windows_select_thread)
63 (net_windows_wait_handle, net_windows_done_wait_handle)
64 (net_windows_close): Add casts.
65 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
66 void*.
67
0c801b96
SM
682015-11-17 Simon Marchi <simon.marchi@ericsson.com>
69
70 * c-exp.y (exp): Adjust, change enum c_string_type to
71 c_string_type.
72 (parse_string_or_char): Likewise.
73 * c-lang.c (charset_for_string_type): Likewise.
74 (classify_type): Likewise.
75 (c_printchar): Likewise.
76 (c_printstr): Likewise.
77 (evaluate_subexp_c): Likewise. And change cast to enum
78 c_string_type_values.
79 * c-lang.h: Include "common/enum_flags.h".
80 (enum c_string_type): Rename to...
81 (enum c_string_type_values): ...this.
82 (c_string_type): Define new enum flags type.
83
8d297bbf
PA
842015-11-17 Pedro Alves <palves@redhat.com>
85
86 * btrace.h: Include common/enum-flags.h.
87 (btrace_insn_flags): Define.
88 (struct btrace_insn) <flags>: Change type.
89 (btrace_function_flags): Define.
90 (struct btrace_function) <flags>: Change type.
91 (btrace_thread_flags): Define.
92 (struct btrace_thread_info) <flags>: Change type.
93 * c-exp.y (token_flags): Rename to ...
94 (token_flag): ... this.
95 (token_flags): Define.
96 (struct token) <flags>: Change type.
97 * common/enum-flags.h: New file.
98 * compile/compile-c-types.c (convert_qualified): Change type of
99 'quals' local.
100 * compile/compile-internal.h: Include "common/enum-flags.h".
101 (gcc_qualifiers_flags): Define.
102 * completer.c (enum reg_completer_targets): Rename to ...
103 (enum reg_completer_target): ... this.
104 (reg_completer_targets): Define.
105 (reg_or_group_completer_1): Change type of 'targets' parameter.
106 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
107 of 'psl_flags' local.
108 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
109 * infrun.c: Include "common/enum-flags.h".
110 (enum step_over_what): Rename to ...
111 (enum step_over_what_flag): ... this.
112 (step_over_what): Change type.
113 (start_step_over): Change type of 'step_what' local.
114 (thread_still_needs_step_over): Now returns a step_over_what.
115 Adjust.
116 (keep_going_pass_signal): Change type of 'step_what' local.
117 * linux-tdep.c: Include "common/enum-flags.h".
118 (enum filterflags): Rename to ...
119 (enum filter_flag): ... this.
120 (filter_flags): Define.
121 (dump_mapping_p): Change type of 'filterflags' parameter.
122 (linux_find_memory_regions_full): Change type of 'filterflags'
123 local.
124 (linux_find_memory_regions_full): Pass the address of an unsigned
125 int to sscanf instead of the address of an enum.
126 * record-btrace.c (btrace_print_lines): Change type of local
127 'psl_flags'.
128 (btrace_call_history): Replace 'flags' parameter
129 with 'int_flags' parameter. Adjust.
130 (record_btrace_call_history, record_btrace_call_history_range)
131 (record_btrace_call_history_from): Rename 'flags' parameter to
132 'int_flags'. Use record_print_flags.
133 * record.h: Include "common/enum-flags.h".
134 (record_print_flags): Define.
135 * source.c: Include "common/enum-flags.h".
136 (print_source_lines_base, print_source_lines): Change type of
137 flags parameter.
138 * symtab.h: Include "common/enum-flags.h".
139 (enum print_source_lines_flags): Rename to ...
140 (enum print_source_lines_flag): ... this.
141 (print_source_lines_flags): Define.
142 (print_source_lines): Change prototype.
143
9a4073e2
PA
1442015-11-17 Pedro Alves <palves@redhat.com>
145
146 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
147 error instead of TARGET_XFER_E_IO.
148 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
149 memory_error.
150
66c6502d
DV
1512015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
152
153 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
154 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
155 value.
156 * dwarf2read.c (read_subrange_type): Likewise.
157
db3516bb
YQ
1582015-11-16 Yao Qi <yao.qi@linaro.org>
159
160 * aarch64-tdep.c (aarch64_extract_return_value): Change array
161 buf's length to V_REGISTER_SIZE.
162
8e80f9d1
YQ
1632015-11-16 Yao Qi <yao.qi@linaro.org>
164
165 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
166 from bfd_byte * to value *. Caller updated.
167 (pass_in_x): Likewise.
168 (pass_in_v_or_stack): Likewise.
169 (pass_on_stack): Likewise.
170
0d1993c0
YQ
1712015-11-16 Yao Qi <yao.qi@linaro.org>
172
173 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
174 instead of value_contents_writeable.
175 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
176
ef9bd0b8
YQ
1772015-11-16 Yao Qi <yao.qi@linaro.org>
178
179 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
180 to buf. Pass buf instead of val to push_stack_item.
181
c4312b19
YQ
1822015-11-13 Yao Qi <yao.qi@linaro.org>
183
184 PR tdep/19051
185 * arm-tdep.c (arm_type_align): Return the right alignment
186 value for vector.
187 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
188 128-bit vector types.
189 (arm_return_in_memory): Handel vector type.
190
b13c8ab2
YQ
1912015-11-13 Yao Qi <yao.qi@linaro.org>
192
193 * arm-tdep.c (arm_return_in_memory): Rewrite it.
194 (arm_return_value): Call arm_return_in_memory for
195 TYPE_CODE_COMPLEX.
196
df3b6708
YQ
1972015-11-12 Yao Qi <yao.qi@linaro.org>
198
199 * arm-tdep.c (push_stack_item): Change contents type to
200 const gdb_byte *.
201
4397c913
SM
2022015-11-11 Simon Marchi <simon.marchi@ericsson.com>
203
204 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
205 cast to PTRACE_TYPE_RET *.
206 (inf_ptrace_store_register): Likewise.
207
5f515954
AB
2082015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
209
210 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
211 info sub-commands.
212 * gnu-nat.c (add_task_commands): Likewise.
213 * macrocmd.c (_initialize_macrocmd): Likewise.
214
f3575e08
AB
2152015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * cli/cli-decode.c (add_info): Switch to class_info.
218
dddc0e16
JB
2192015-11-09 Joel Brobecker <brobecker@adacore.com>
220
221 * ada-lang.c (ada_is_wrapper_field): Add special handling
222 for fields called "RETVAL".
223
a5eda10c
YQ
2242015-11-09 Yao Qi <yao.qi@linaro.org>
225
226 * arm-tdep.c (arm_exidx_new_objfile): Use
227 ELF_STRING_ARM_unwind.
228
c0987663
YQ
2292015-11-09 Yao Qi <yao.qi@linaro.org>
230
231 * infrun.c (displaced_step_in_progress_thread): New function.
232 (handle_inferior_event_1): Call it.
233
c86a40c6
YQ
2342015-11-05 Yao Qi <yao.qi@linaro.org>
235
236 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
237 aarch64_decode_insn and decode instruction by aarch64_inst.
238
d9ebcbce
YQ
2392015-11-05 Yao Qi <yao.qi@linaro.org>
240
241 * aarch64-tdep.c (extract_signed_bitfield): Remove.
242 (decode_masked_match): Remove.
243 (aarch64_decode_add_sub_imm): Remove.
244 (aarch64_decode_br): Remove.
245 (aarch64_decode_eret): Remove.
246 (aarch64_decode_movz): Remove.
247 (aarch64_decode_orr_shifted_register_x): Remove.
248 (aarch64_decode_ret): Remove.
249 (aarch64_decode_stp_offset): Remove.
250 (aarch64_decode_stur): Remove.
251 (aarch64_analyze_prologue): Call aarch64_decode_insn
252 and use aarch64_inst to decode instructions.
253
93d96012
YQ
2542015-11-05 Yao Qi <yao.qi@linaro.org>
255
256 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
257 wback.
258 (aarch64_decode_stp_offset_wb): Removed.
259 (aarch64_analyze_prologue): Don't use
260 aarch64_decode_stp_offset_wb.
261
6df55226
MK
2622015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
263
264 PR/18376
265 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
266 (s390_software_single_step): New function.
267 (s390_displaced_step_hw_singlestep): New function.
268 (s390_gdbarch_init): Fill gdbarch slots with the above.
269
566c56c9
MK
2702015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
271
272 PR/18376
273 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
274 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
275 (s390_linux_record_tdep): New static global variable.
276 (s390x_linux_record_tdep): New static global variable.
277 (s390_all_but_pc_registers_record): New function.
278 (s390_canonicalize_syscall): New function.
279 (s390_linux_syscall_record): New function.
280 (s390_linux_record_signal): New function.
281 (s390_record_calc_disp_common): New function.
282 (s390_record_calc_disp): New function.
283 (s390_record_calc_disp_vsce): New function.
284 (s390_record_calc_rl): New function.
285 (s390_record_gpr_g): New function.
286 (s390_record_gpr_h): New function.
287 (s390_record_vr): New function.
288 (s390_process_record): New function.
289 (s390_init_linux_record_tdep): New function.
290 (s390_gdbarch_init): Fill record function slots.
291
394816ee
MK
2922015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
293
294 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
295 memory storage.
296
0c532a29
MM
2972015-11-04 Markus Metzger <markus.t.metzger@intel.com>
298
299 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
300 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
301 (_initialize_record): Document the /s modifier.
302 * NEWS: Announce record instruction-history's new /s modifier.
303
f94cc897
MM
3042015-11-04 Markus Metzger <markus.t.metzger@intel.com>
305
306 * record-btrace.c (struct btrace_line_range): New.
307 (btrace_mk_line_range, btrace_line_range_add)
308 (btrace_line_range_is_empty, btrace_line_range_contains_range)
309 (btrace_find_line_range, btrace_print_lines): New.
310 (btrace_insn_history): Add source interleaving algorithm.
311
a50a4026
MM
3122015-11-04 Markus Metzger <markus.t.metzger@intel.com>
313
314 * disasm.h (DISASSEMBLY_SPECULATION): New.
315 (struct disasm_insn): New.
316 (gdb_pretty_print_insn): New.
317 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
318 Update users. Print instruction number and indicate speculative
319 execution, if requested.
320
af70908d
MM
3212015-11-04 Markus Metzger <markus.t.metzger@intel.com>
322
323 * disasm.c (dump_insns): Split into this and ...
324 (gdb_pretty_print_insn): ... this.
325
1c215b97
SM
3262015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
329 (xtensa_linux_fetch_inferior_registers): Likewise.
330 (xtensa_linux_store_inferior_registers): Likewise.
331
f844cf0e
SM
3322015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * arm-linux-nat.c (arm_linux_read_description): Add cast.
335
f4b0a671
SM
3362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
339 type of rw to enum target_hw_bp_type.
340 (ppc_linux_remove_mask_watchpoint): Likewise.
341 * target.c (target_insert_mask_watchpoint): Likewise.
342 (target_remove_mask_watchpoint): Likewise.
343 * target.h (target_insert_mask_watchpoint): Likewise.
344 (target_remove_mask_watchpoint): Likewise.
345 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
346 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
347 * target-delegates.c: Regenerate.
348
653090d3
SM
3492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
352 (get_sim_inferior_data): Likewise.
353 (sim_inferior_data_cleanup): Likewise.
354 (gdbsim_close_inferior): Likewise.
355 (gdbsim_resume_inferior): Likewise.
356 (gdbsim_wait): Likewise.
357 (simulator_command): Likewise.
358 (sim_command_completer): Likewise.
359
b9559b8b
MK
3602015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
361
362 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
363
d35ae833
PA
3642015-10-30 Pedro Alves <palves@redhat.com>
365
366 * breakpoint.c (breakpoint_in_range_p)
367 (breakpoint_location_address_range_overlap): New functions.
368 * breakpoint.h (breakpoint_in_range_p): New declaration.
369 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
370 in the scratch pad range, don't displaced step.
371
10268a4c
MK
3722015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
373
374 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
375 size_stack_t, size_size_t, size_iovec.
376
d9b19c49
MK
3772015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
378
379 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
380 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
381 (amd64_x32_linux_init_abi): Fix size_termios.
382
c28ebe25
MK
3832015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
384
385 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
386
ff83a547
MK
3872015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
388
389 * linux-record.c (record_linux_system_call): Fix old_select.
390
d2de23ad
MK
3912015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
392
393 * linux-record.c (record_linux_system_call): Fix newstatat.
394
cb658d21
MK
3952015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
396
397 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
398
b80d067f
MK
3992015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
400
401 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
402 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
403 (amd64_x32_linux_init_abi): Add size_time_t.
404 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
405 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
406 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
407 handling.
408 * linux-record.h (struct linux_record_tdep): Add size_time_t.
409 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
410
933c5a62
MK
4112015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
412
413 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
414
72aded86
MK
4152015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
416
417 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
418 size_dirent{,64}, add size_old_dirent.
419 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
420 add size_old_dirent.
421 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
422 size_old_dirent.
423 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
424 add size_old_dirent.
425 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
426 add size_old_dirent.
427 * linux-record.c (record_linux_system_call): Fix handling of readdir
428 and getdents{,64}.
429 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
430 add size_old_dirent.
431 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
432 size_dirent{,64}, add size_old_dirent.
433
7571f7f2
MK
4342015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
435
436 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
437 size_sigset_t, size_old_sigaction, size_old_sigset_t.
438 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
439 size_sigset_t, size_old_sigaction, size_old_sigset_t.
440 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
441 size_old_sigaction, size_old_sigset_t.
442 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
443 size_old_sigaction, size_old_sigset_t.
444 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
445 size_old_sigaction, size_old_sigset_t.
446 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
447 size_sigset_t, size_old_sigaction, size_old_sigset_t.
448
d625f9a9
MK
4492015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
450
451 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
452 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
453
aefb52a6
MK
4542015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
455
456 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
457 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
458 (amd64_x32_linux_init_abi): Remove size_siginfo.
459 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
460 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
461 * linux-record.c (record_linux_system_call): Change size_siginfo
462 to size_siginfo_t.
463 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
464 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
465
d2242e34
PA
4662015-10-29 Pedro Alves <palves@redhat.com>
467
468 * mdebugread.c (add_data_symbol): New function, factored out from
469 ...
470 (parse_symbol): ... here. Delete 'theclass' local.
471
cb0a2700
SM
4722015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * jit.c (jit_target_read_impl): Add cast.
475
15cf126c
SM
4762015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * jit.c (jit_reader_load): Add cast.
479
b4069958
SM
4802015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * dwarf2read.c (partial_die_full_name): Add cast.
483
7535d5ed
PA
4842015-10-29 Pedro Alves <palves@redhat.com>
485
486 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
487
fa4c39cb
PA
4882015-10-29 Pedro Alves <palves@redhat.com>
489
490 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
491
e681cf3f
EZ
4922015-10-29 Eli Zaretskii <eliz@gnu.org>
493
494 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
495 in the environment.
496
ebf05345
PA
4972015-10-29 Pedro Alves <palves@redhat.com>
498
499 * gnu-v2-abi.c (gnuv2_is_destructor_name)
500 (gnuv2_is_constructor_name): Add casts.
501
44a8b4df
PA
5022015-10-29 Pedro Alves <palves@redhat.com>
503
504 * common/common-exceptions.c (exception_none): Add cast.
505
e3bdafe2
PA
5062015-10-29 Pedro Alves <palves@redhat.com>
507
508 * compile/compile-c-types.c (struct type_map_instance)
509 <gcc_type>: Rename to gcc_type_handle.
510 (insert_type, convert_type): Adjust.
511
9c6595ab
PA
5122015-10-29 Pedro Alves <palves@redhat.com>
513
514 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
515 assume that "break" breaks out of a TRY/CATCH.
516 * python/py-framefilter.c (py_print_single_arg): Don't assume
517 "continue" breaks out of a TRY/CATCH.
518 * python/py-value.c (valpy_binop_throw): New function, factored
519 out from ...
520 (valpy_binop): ... this.
521 (valpy_richcompare_throw): New function, factored
522 out from ...
523 (valpy_richcompare): ... this.
524 * solib.c (solib_read_symbols): Don't assume "break" breaks out
525 of a TRY/CATCH.
526 * common/common-exceptions.h [USE_RAW_CXX_TRY]
527 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
528
93084fcd
SD
5292015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
530
531 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
532 as move along with [d]addu.
533
43cdf5ae
YQ
5342015-10-28 Yao Qi <yao.qi@linaro.org>
535
536 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
537 aarch64_decode_insn.
538
b80c3053
PA
5392015-10-27 Pedro Alves <palves@redhat.com>
540
541 * common/print-utils.c (host_address_to_string): Rename to ...
542 (host_address_to_string_1): ... this.
543 * common/print-utils.h (host_address_to_string): Reimplement as
544 wrapper around host_address_to_string_1.
545 * utils.c (gdb_print_host_address): Rename to ...
546 (gdb_print_host_address_1): ... this.
547 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
548 around host_address_to_string_1.
549
d09f2c3f
PA
5502015-10-27 Pedro Alves <palves@redhat.com>
551
552 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
553 memory_error. Rename local 'status' to 'res'.
554 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
555 memory_error.
556 * corefile.c (read_stack, read_code, write_memory): Always pass
557 TARGET_XFER_E_IO to memory_error.
558 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
559 memory_error. Rename parameter 'status' to 'err'.
560 (dump_insns): Rename local 'status' to 'err'.
561 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
562 to 'errp'. Rename local 'status' to 'err'. Always pass
563 TARGET_XFER_E_IO to memory_error.
564 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
565 * target.c (target_read_memory, target_read_raw_memory)
566 (target_read_stack, target_read_code, target_write_memory)
567 (target_write_raw_memory): Return -1 on error instead of
568 TARGET_XFER_E_IO.
569 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
570 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
571
c5192092
SM
5722015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * guile/guile-internal.h (gdbscm_with_guile): Change return
575 types to const char *.
576 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
577 (struct c_data) <func>: Likewise.
578 (struct c_data) <result>: Change type to const char *.
579 (scscm_eval_scheme_string): Change return type to
580 const char *.
581 (scscm_source_scheme_script): Likewise.
582 (gdbscm_safe_eval_string): Change type of result variable to
583 const char * and remove cast.
584 (gdbscm_safe_source_script): Likewise.
585 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
586 Change return type to const char *.
587 (gdbscm_disasm_read_memory): Change type of status to
588 const char *.
589
79b289e2
PA
5902015-10-27 Pedro Alves <palves@redhat.com>
591
592 * source.c (openp): New local 'last_errno'. Use it to
593 save/restore errno.
594
709b5518
PA
5952015-10-27 Pedro Alves <palves@redhat.com>
596
597 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
598
e0d13cbd
SM
5992015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
600
601 * ctf.c (SET_ENUM_FIELD): New macro.
602 (ctf_read_status): Use it.
603 (ctf_read_tp): Use it.
604
c6486df5
SM
6052015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
608 scm_t_dynwind_flags casts.
609 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
610 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
611 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
612
70b8286a
SM
6132015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * ax.h (ax_raw_byte): New declaration.
616 * ax-general.c (ax_raw_byte): New function.
617 (ax_simple): Use ax_raw_byte.
618 * ax-gdb.c (gen_printf): Likewise.
619
a480de35
SM
6202015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
621
622 * ada-lang.h (GROW_VECT): Add cast.
623
a04a15f5
DE
6242015-10-26 Doug Evans <xdje42@gmail.com>
625
626 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
627
d7f3ff3e
SM
6282015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
629
630 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
631 pointer.
632 (simple_search_memory): Cast return of memmem.
633
bf6778da
SM
6342015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
637
c9244484
SM
6382015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
641 -1 on error.
642
0fde2c53
DE
6432015-10-26 Doug Evans <dje@google.com>
644
645 PR symtab/17391
646 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
647 instead of gdbarch_dwarf2_reg_to_regnum.
648 (dwarf2_frame_cache): Ditto.
649 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
650 gdbarch_dwarf2_reg_to_regnum.
651 (get_reg_value): Ditto.
652 (dwarf2_fetch_cfa_info): Ditto.
653 (dwarf2_frame_prev_register): Ditto.
654 * dwarf2loc.c: #include "complaints.h".
655 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
656 instead of gdbarch_dwarf2_reg_to_regnum.
657 (dwarf_expr_get_reg_value): Ditto.
658 (read_pieced_value): Ditto.
659 (write_pieced_value): Ditto.
660 (dwarf2_evaluate_loc_desc_full): Ditto.
661 (dwarf_reg_to_regnum): New function.
662 (throw_bad_regnum_error): New function.
663 (dwarf_reg_to_regnum_or_error): Renamed from
664 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
665 All callers updated. Call throw_bad_regnum_error.
666 (locexpr_regname): Improve text of bad register number.
667 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
668 (dwarf_reg_to_regnum_or_error): Update prototype.
669 * dwarf2expr.c: #include "dwarf2loc.h".
670 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
671 gdbarch_dwarf2_reg_to_regnum.
672 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
673 * gdbarch.h: Regenerate.
674 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
675 register.
676 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
677 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
678 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
679 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
680 Remove warning for bad register.
681 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
682 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
683 i386_svr4_reg_to_regnum. Return -1 for bad registers.
684 (i386_svr4_reg_to_regnum): New function.
685 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
686 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
687 on bad registers, return -1.
688 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
689 Remove warning for bad register.
690 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
691 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
692 Remove warning for bad register. Return -1 for bad register.
693 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
694 for bad register, return -1.
695 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
696 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
697 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
698 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
699 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
700 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
701 for bad regs.
702 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
703 bad regs. Fix error result.
704 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
705 (reg_value_complaint): Update complaint text.
706 * mdebugread.c (reg_value_complaint): New function.
707 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
708
1a70ae97
DE
7092015-10-26 Doug Evans <dje@google.com>
710
711 PR python/18938
712 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
713 All callers updated.
714
372405a5
DE
7152015-10-26 Doug Evans <dje@google.com>
716
717 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
718 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
719 (maintenance_print_psymbols): Print address map.
720
682b2546
DE
7212015-10-26 Doug Evans <dje@google.com>
722
723 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
724
963843d4
DE
7252015-10-26 Doug Evans <dje@google.com>
726
727 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
728 gdbserver/linux-low.c.
729 (WSETSTOP): Simplify.
730
d41401ac
DE
7312015-10-26 Doug Evans <dje@google.com>
732
733 * linux-thread-db.c (find_new_threads_callback): Ditto.
734 (thread_db_pid_to_str): Ditto.
735
1522597b
SM
7362015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
739 local char array to scm_mode_bits, use a cast instead.
740
7acd011b
SM
7412015-10-26 Simon Marchi <simon.marchi@ericsson.com>
742
743 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
744 result. Change type of element_block_ptr. Change allocation to
745 use XNEWVEC.
746
7cc53fba
LM
7472015-10-26 Luis Machado <lgustavo@codesourcery.com>
748
749 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
750 catch_errors call instead of NULL.
751
48ffa2b8
SM
7522015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
753
754 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
755 char pointer to scm_mode_bits.
756
585a269a
SM
7572015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
758
759 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
760 cast.
761
e0dd41e9
SM
7622015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
763
764 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
765 "data" local variable and use it.
766
74ef968f
SM
7672015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
768
769 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
770 domain_enum cast.
771 (gdbscm_lookup_symbol): Likewise.
772
2d5a88dc
IB
7732015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
774
775 * d-exp.y: Remove an obsolete comment and propagate the block
776 information to the produced expression.
777
f4ee58bd
SM
7782015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
781 cast.
782 (tui_add_content_elements): Likewise.
783
1650ca11
SM
7842015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * cli/cli-setshow.c (do_set_command): Constify p.
787
55e5bf59
SM
7882015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
791 (void *) cast with (gdb_byte *).
792
49e66b4d
SM
7932015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
794
795 * proc-service.c (ps_pdread): Add cast.
796
cfcb22a5
SM
7972015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
800 valbuf.
801
ce746418
SM
8022015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
803
804 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
805 (ia64_push_dummy_call): Remove cast and change type of "to" to
806 array of gdb_byte.
807
a55515ee
SM
8082015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
809
810 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
811
6ecf4e06
SM
8122015-10-23 Simon Marchi <simon.marchi@ericsson.com>
813
814 * observer.h (observer_${event}_notification_stub): Add cast.
815
034f1a81
YQ
8162015-10-23 Yao Qi <yao.qi@linaro.org>
817
818 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
819 dsd.insn_count to zero.
820
d236ad19
PA
8212015-10-22 Pedro Alves <palves@redhat.com>
822
823 * infrun.c (stop_after_trap): Delete.
824 (clear_proceed_status, handle_signal_stop, struct
825 infcall_control_state, save_infcall_control_state)
826 (restore_infcall_control_state): Remove references to
827 stop_after_trap.
828
db0f0d0c
SM
8292015-10-22 Simon Marchi <simon.marchi@ericsson.com>
830
831 * python/python.c (_initialize_python): Add cast.
832
fb70bc1a
SM
8332015-10-22 Simon Marchi <simon.marchi@ericsson.com>
834
835 * nto-tdep.c (nto_inferior_data): Add cast.
836
c72f45d1
PA
8372015-10-22 Pedro Alves <palves@redhat.com>
838
839 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
840 windows_wait and windows_resume directly instead of
841 wait_for_inferior and resume.
842
60905b1e
SM
8432015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
844
845 * xtensa-tdep.h (XTREG): Add casts.
846 (XTREG_END): Likewise.
847
5af9928d
SM
8482015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
849
850 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
851
3e45d68b
SM
8522015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
855
709476c3
SM
8562015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
857
858 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
859 buf to gdb_byte*.
860 (supply_32bit_reg): Add cast.
861 (mips64_fill_gregset): Likewise.
862
bed91f4d
SM
8632015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
864
865 PR python/18073
866 * python/py-type.c (typy_get_composite): Allow returning a
867 function type.
868
3f2f83dd
KB
8692015-10-21 Keven Boell <keven.boell@intel.com>
870
871 * dwarf2read.c (set_die_type): Add read of
872 DW_AT_allocated and DW_AT_associated.
873 * f-typeprint.c: New include of typeprint.h
874 (f_print_type): Add check for allocated/associated
875 status of type.
876 (f_type_print_varspec_suffix): Add check for
877 * gdbtypes.c (create_array_type_with_stride):
878 Add check for valid data location of type in
879 case allocated or associated attributes are set.
880 Length of an array should be only calculated if
881 allocated or associated is resolved as true.
882 (is_dynamic_type_internal): Add check for allocated/
883 associated.
884 (resolve_dynamic_array): Evaluate allocated/associated
885 properties.
886 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
887 <DYN_PROP_ASSOCIATED>: New enums.
888 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
889 (type_not_allocated): New function.
890 (type_not_associated): New function.
891 * valarith.c (value_subscripted_rvalue): Add check for
892 allocated/associated.
893 * valprint.c: New include of typeprint.h.
894 (valprint_check_validity): Add check for allocated/associated.
895 (value_check_printable): Add check for allocated/
896 associated.
897 * typeprint.h (val_print_not_allocated): New function.
898 (val_print_not_associated): New function.
899 * typeprint.c (val_print_not_allocated): New function.
900 (val_print_not_associated): New function.
901
8689682c
AT
9022015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
903
904 * Makefile.in: Add arm.c/o.
905 * arch/arm.c: New file.
906 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
907 (MAKE_THUMB_ADDR): Likewise.
908 (UNMAKE_THUMB_ADDR): Likewise.
909 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
910 (IS_THUMB_ADDR): Move to arm.h.
911 (MAKE_THUMB_ADDR): Likewise.
912 (UNMAKE_THUMB_ADDR): Likewise.
913 * configure.tgt: Add arm.o to all ARM configs.
914
80f0110c
YQ
9152015-10-21 Yao Qi <yao.qi@linaro.org>
916
917 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
918 Remove argument exp_vCont_s.
919 * gdb.base/range-stepping.exp: Callers updated.
920 * gdb.trace/range-stepping.exp: Likewise.
921
d7161de4
AR
9222015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
923
924 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
925 (nto_sniff_abi_note_section): New function.
926 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
927 binary.
928
a9889169
AR
9292015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
930
931 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
932 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
933 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
934 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
935 New functions.
936 (_initialize_nto_tdep): New forward declaration, new function.
937 * nto-tdep.h (struct nto_inferior_data): New struct.
938 (nto_inferior_data): New function declaration.
939
5f3ff4f8
JK
9402015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
941
942 * findvar.c (address_from_register): Check REGNUM validity.
943
e5343fde
AR
9442015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
945
946 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
947 (init_procfs_targets): Wire new function.
948
8a6c0ccd
AR
9492015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
950
951 * nto-procfs.c (sys/auxv.h): Include.
952 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
953 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
954 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
955
609c3040
AR
9562015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
957
958 * nto-procfs.c (nto_procfs_path): Rename to...
959 (nodestr): ... this, and change type.
960 (nto_node): Use new variable and logic accordingly.
961 (procfs_open_1): Use new variable name. Use local buffer to construct
962 procfrs path.
963 (procfs_pidlist): Use NODESTR to construct procfs path.
964 (procfs_files_info): Use NODESTR to output meaningful text.
965 (do_attach): Construct procfs using NODESTR.
966 (procfs_create_inferior): Compare pointer to NULL.
967
bfd09d20
JS
9682015-10-19 Josh Stone <jistone@redhat.com>
969
970 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
971 return state, even when not actively catching syscalls at all.
972 (linux_handle_extended_wait): Mark syscall_state like an entry.
973 (wait_lwp): Set syscall_state ignored for other traps.
974 (linux_nat_filter_event): Likewise.
975
29090fb6
LM
9762015-10-19 Luis Machado <lgustavo@codesourcery.com>
977
978 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
979 when handling 'E', 'T', 'S', 'X' and 'W' packets.
980 Do not set rs->waiting_for_stop_reply back to 1.
981
774ee6d2
AR
9822015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
983
984 * nto-procfs.c (common/filestuff.h): Include.
985 (procfs_can_use_hw_breakpoint): Fix enum name.
986 (procfs_open_1): Fix compiler warning.
987 (procfs_pidlist): Make static.
988 (procfs_meminfo): Make static, fix type name, add missing argument.
989 (procfs_store_registers): Make static.
990 (procfs_thread_info): Remove unused function.
991 (_initialize_procfs): Forward declare.
992
e66acfb1
YQ
9932015-10-16 Yao Qi <yao.qi@arm.com>
994
995 * MAINTAINERS: Update my email address.
996
8d689ee5
YQ
9972015-10-15 Yao Qi <yao.qi@linaro.org>
998
999 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1000 Call gdbarch_breakpoint_from_pc to instruction length.
1001 (aarch64_linux_remove_hw_breakpoint): Likewise.
1002 * common/common-regcache.h (regcache_register_size): Declare.
1003 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1004 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1005 the process is 32bit, otherwise set alignment to 4.
1006 (aarch64_handle_breakpoint): Update comments.
1007 * regcache.c (regcache_register_size): New function.
1008
89fdc87f
AR
10092015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1010
1011 * gdbarch.sh (core_regset_section): Remove.
1012 * gdbarch.h: Regenerate.
1013
6448a3e4
YQ
10142015-10-14 Yao Qi <yao.qi@linaro.org>
1015
1016 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1017 out of it.
1018 (enum aarch64_memory_operand_type): New.
1019
33f914a1
DE
10202015-10-13 David Edelsohn <dje.gcc@gmail.com>
1021
1022 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1023
e6a959d6
PA
10242015-10-13 Pedro Alves <palves@redhat.com>
1025
1026 * ada-lang.c (ada_enum_name): Constify local.
1027 * ada-typeprint.c (print_range_bound): Constify locals.
1028 * c-varobj.c (c_describe_child): Likewise.
1029 * cli/cli-setshow.c (do_set_command): Likewise.
1030 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1031 * dwarf2read.c (find_file_and_directory): Likewise.
1032 (anonymous_struct_prefix, dwarf2_name): Likewise.
1033 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1034 * go-lang.c (unpack_mangled_go_symbol): Likewise.
1035 * jv-typeprint.c (java_type_print_base): Likewise.
1036 * ser-tcp.c (net_open): Likewise.
1037 * symfile.c (deduce_language_from_filename): Likewise.
1038 * symtab.c (gdb_mangle_name): Likewise.
1039 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1040
170742de
PA
10412015-10-13 Pedro Alves <palves@redhat.com>
1042
1043 * infrun.c (restore_execution_direction): New function.
1044 (fetch_inferior_event): Use it instead of
1045 make_cleanup_restore_integer.
1046 (execution_direction): Change type to enum
1047 exec_direction_kind.
1048 * infrun.h (execution_direction): Likewise.
1049
bfb1c796
PA
10502015-10-13 Pedro Alves <palves@redhat.com>
1051
1052 * ada-lang.c (ada_value_primitive_packed_val): Constify
1053 locals. Use value_contents_writeable. Remove casts.
1054
aa5c10ce
PA
10552015-10-13 Pedro Alves <palves@redhat.com>
1056
1057 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1058 and alloca calls.
1059
4666fec3
SM
10602015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1063 write_memory with write_memory_unsigned_integer.
1064
38bc8217 10652015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
1066
1067 * solib-dsbt.c (cmp_name): Constify arguments.
1068 * solib-frv.c (cmp_name): Likewise.
1069 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1070 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1071 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1072 (gdb_bfd_lookup_symbol): Likewise.
1073 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1074 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1075
a0d34a39
AB
10762015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * stack.c (parse_frame_specification): Remove message parameter,
1079 replace with fixed string in function body, update function
1080 comment.
1081 (frame_info): Remove message to parse_frame_specification.
1082 (select_frame_command): Likewise.
1083
edbbff4a
AB
10842015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * stack.c (parse_frame_specification): Delete.
1087 (parse_frame_specification_1): Rename to
1088 parse_frame_specification.
1089 (frame_info): Use parse_frame_specification.
1090 (select_frame_command): Likewise.
1091 (return_command): Use select_frame and print_stack_frame rather
1092 than frame_command and select_frame_command.
1093 (func_command): Use get_current_frame rather than
1094 parse_frame_specification.
1095
9d622bda
AB
10962015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1097
1098 * stack.c (func_command): Return early when there is no ARG
1099 string.
1100
8d3fea16
AB
11012015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * stack.c: Include safe-ctype.h not ctype.h.
1104 (parse_frame_specification): Use ISSPACE not isspace.
1105 (backtrace_command): Use TOLOWER not tolower.
1106
f54b226f
SM
11072015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1108
1109 * mep-tdep.c (current_me_module): Add cast.
1110 (mep_gdbarch_init): Likewise.
1111
6da660c7
SM
11122015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1113
1114 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1115 (m32c_write_reg_t): ...this and...
1116 (m32c_read_reg_t): ...this.
1117 (struct m32c_reg): Update types of read and write.
1118 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1119 adjust definition.
1120 (m32c_banked_read): Likewise.
1121 (m32c_sb_read): Likewise.
1122 (m32c_part_read): Likewise.
1123 (m32c_cat_read): Likewise.
1124 (m32c_r3r2r1r0_read): Likewise.
1125 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1126 and adjust definition.
1127 (m32c_banked_write): Likewise.
1128 (m32c_sb_write): Likewise.
1129 (m32c_part_write): Likewise.
1130 (m32c_cat_write): Likewise.
1131 (m32c_r3r2r1r0_write): Likewise.
1132
1f713e48
SM
11332015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1136
cb65d272
SM
11372015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1138
1139 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1140 gdb_sys_no_syscall instead of -1.
1141
eda14cf2
YQ
11422015-10-12 Yao Qi <yao.qi@linaro.org>
1143
1144 * NEWS: Mention the change.
1145
1c2e1515
YQ
11462015-10-12 Yao Qi <yao.qi@linaro.org>
1147
1148 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1149 (aarch64_emit_load_store): ... it. All callers updated.
1150
e1c587c3
YQ
11512015-10-12 Yao Qi <yao.qi@linaro.org>
1152
1153 * arch/aarch64-insn.c (emit_insn): Rename to ...
1154 (aarch64_emit_insn): ... it. All callers updated.
1155
b6542f81
YQ
11562015-10-12 Yao Qi <yao.qi@linaro.org>
1157
1158 * aarch64-linux-tdep.c: Include arch-utils.h.
1159 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1160 set_gdbarch_displaced_step_copy_insn,
1161 set_gdbarch_displaced_step_fixup,
1162 set_gdbarch_displaced_step_free_closure,
1163 set_gdbarch_displaced_step_location,
1164 and set_gdbarch_displaced_step_hw_singlestep.
1165 * aarch64-tdep.c (struct displaced_step_closure): New.
1166 (struct aarch64_displaced_step_data): New.
1167 (aarch64_displaced_step_b): New function.
1168 (aarch64_displaced_step_b_cond): Likewise.
1169 (aarch64_register): Likewise.
1170 (aarch64_displaced_step_cb): Likewise.
1171 (aarch64_displaced_step_tb): Likewise.
1172 (aarch64_displaced_step_adr): Likewise.
1173 (aarch64_displaced_step_ldr_literal): Likewise.
1174 (aarch64_displaced_step_others): Likewise.
1175 (aarch64_displaced_step_copy_insn): Likewise.
1176 (aarch64_displaced_step_fixup): Likewise.
1177 (aarch64_displaced_step_hw_singlestep): Likewise.
1178 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1179 (aarch64_displaced_step_copy_insn): Declare.
1180 (aarch64_displaced_step_fixup): Declare.
1181 (aarch64_displaced_step_hw_singlestep): Declare.
1182 * arch/aarch64-insn.c (emit_insn): Moved from
1183 gdbserver/linux-aarch64-low.c.
1184 (emit_load_store): Likewise.
1185 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1186 gdbserver/linux-aarch64-low.c.
1187 (struct aarch64_register): Likewise.
1188 (struct aarch64_memory_operand): Likewise.
1189 (ENCODE): Likewise.
1190 (can_encode_int32): New macro.
1191 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1192 (emit_tb, emit_nop): Likewise.
1193 (emit_insn): Declare.
1194 (emit_load_store): Declare.
1195
246994ce
YQ
11962015-10-12 Yao Qi <yao.qi@linaro.org>
1197
1198 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1199 gdbserver/linux-aarch64-low.c.
1200 (aarch64_relocate_instruction): Likewise.
1201 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
1202 (struct aarch64_insn_data): Moved from
1203 gdbserver/linux-aarch64-low.c.
1204 (struct aarch64_insn_visitor): Likewise.
1205 (aarch64_relocate_instruction): Declare.
1206
2520f728
PMR
12072015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1208
1209 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
1210 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
1211 to the returned value.
1212
5b639dea
JB
12132015-10-09 Joel Brobecker <brobecker@adacore.com>
1214
1215 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
1216 is large enough for BIT_SIZE. Update function comment.
1217
0cafa88c
JB
12182015-10-09 Joel Brobecker <brobecker@adacore.com>
1219
1220 * ada-lang.c (ada_value_primitive_packed_val): Move
1221 src_len variable to local block where used. Override
1222 BIT_SIZE if bigger than size of resolved type.
1223
220475ed
JB
12242015-10-09 Joel Brobecker <brobecker@adacore.com>
1225
1226 * gdbtypes.h (is_scalar_type): Add extern declaration.
1227 * gdbtypes.c (is_scalar_type): Make non-static.
1228 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1229 to compute IS_SCALAR instead of doing it ourselves.
1230
d0a9e810
JB
12312015-10-09 Joel Brobecker <brobecker@adacore.com>
1232
1233 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1234 of case where TYPE is dynamic.
1235
f93fca70
JB
12362015-10-09 Joel Brobecker <brobecker@adacore.com>
1237
1238 * ada-lang.c (ada_unpack_from_contents): New function,
1239 extracted from ada_value_primitive_packed_val.
1240 (ada_value_primitive_packed_val): Replace extracted out code
1241 by call to ada_unpack_from_contents.
1242
a1c95e6b
JB
12432015-10-09 Joel Brobecker <brobecker@adacore.com>
1244
1245 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1246 variable declarations.
1247
fbd000da
JB
12482015-10-09 Joel Brobecker <brobecker@adacore.com>
1249
1250 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1251 of local variables src and unpacked to "gdb_type *" instead of
1252 "unsigned char *".
1253
086ca51f
JB
12542015-10-09 Joel Brobecker <brobecker@adacore.com>
1255
1256 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1257 of various local variables more explicit and consistent.
1258 No real code change otherwise.
1259
c5bcd278
SM
12602015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1261
1262 * i386-tdep.h (struct gdbarch_tdep): Change type of
1263 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1264
78c5b882
SM
12652015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1266
1267 * cris-tdep.c (struct instruction_environment): Change type of
1268 byte_order to enum bfd_endian.
1269
f9fa37b3
SM
12702015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1271
1272 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1273 enum gdb_syscall casts.
1274
7c543f7b
SM
12752015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1276
1277 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1278 * arm-tdep.c (struct stack_item): Likewise.
1279 (push_stack_item): Add gdb_byte* cast.
1280 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1281 (push_stack_item): Add gdb_byte* cast.
1282 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1283 and add cast.
1284 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1285 (push_stack_item): Add gdb_byte* cast.
1286 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1287 add cast.
1288 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1289 gdb_byte*.
1290 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1291 gdb_byte* and remove unnecessary cast.
1292 (h8300h_extract_return_value): Likewise.
1293 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1294 (h8300h_store_return_value): Likewise.
1295 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1296 gdb_byte* and remove unnecessary cast.
1297 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1298 and add cast.
1299 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1300 gdb_byte* and remove unnecessary cast.
1301 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1302 valbuf.
1303 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1304 (mep_pseudo_cr64_read): Likewise.
1305 (mep_pseudo_csr_write): Likewise.
1306 (mep_pseudo_cr32_write): Likewise.
1307 (mep_pseudo_cr64_write): Likewise.
1308 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1309 gdb_byte* and add cast.
1310 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1311 gdb_byte* and remove unnecessary cast.
1312 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1313 valbuf.
1314 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1315 gdb_byte*.
1316 * printcmd.c (void): Likewise.
1317 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1318 gdb_byte* and add cast.
1319 (infpy_write_memory): Likewise.
1320 (infpy_search_memory): Likewise.
1321 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1322 and add cast.
1323 (regcache_raw_write_unsigned): Likewise.
1324 (regcache_cooked_write_signed): Likewise.
1325 (regcache_cooked_write_unsigned): Likewise.
1326 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1327 gdb_byte*.
1328
7567e115
SM
13292015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1330
1331 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1332 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1333
f9acce4a
EZ
13342015-10-09 Eli Zaretskii <eliz@gnu.org>
1335
1336 * stack.c (print_stack_frame):
1337 * utils.c (printchar): Fix typos in commentary.
1338
d5d8c4e1
IB
13392015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1340
1341 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1342 (PostfixExpression): Support `expr.sizeof' expressions.
1343 (PrimaryExpression): Support `typeof(expr)' expressions.
1344
4e7de155
MR
13452015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1346
1347 * MAINTAINERS: Update my email address.
1348
04c4fe8c
MM
13492015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1350
1351 * record-btrace.c (record_btrace_resume): Fix void return.
1352
f77ee802
YQ
13532015-10-07 Yao Qi <yao.qi@linaro.org>
1354
1355 * aarch64-tdep.c: Include opcode/aarch64.h.
1356 (submask): Move it above.
1357 (bit): Likewise.
1358 (bits): Likewise.
1359 (aarch64_software_single_step): Call aarch64_decode_insn.
1360 Decode instruction by aarch64_inst instead of using
1361 aarch64_decode_bcond and decode_masked_match.
1362
cbd641ed
PS
13632015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1364
1365 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1366 only when the file is binary.
1367
ae4e2501 13682015-10-02 James Bowman <james.bowman@ftdichip.com>
1369
1370 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1371 subroutine handling.
1372
dd0a637a
SM
13732015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1374
1375 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1376
1fd60fc0
DE
13772015-09-30 Doug Evans <dje@google.com>
1378
1379 * dwarf2read.c (setup_type_unit_groups): Add comment.
1380
398e0813
PA
13812015-09-30 Pedro Alves <palves@redhat.com>
1382
1383 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1384 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1385 (x86_linux_create_target): Don't install
1386 x86_linux_always_non_stop_p.
1387
6ab24463
DB
13882015-09-30 Don Breazeal <donb@codesourcery.com>
1389
1390 * remote.c (remote_parse_stop_reply): Call strprefix instead
1391 of strncmp.
1392
ede5f151
SM
13932015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1394
1395 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1396 * gdbarch.h: Regenerate.
1397 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1398 struct gdbarch_tdep_info *.
1399 * mips-tdep.c (mips_gdbarch_init): Likewise.
1400 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1401 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1402 * spu-multiarch.c (spu_gdbarch): Likewise.
1403
51c935fa 14042015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
1405
1406 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1407 record a NULL value.
1408
3b1ad7d5
KB
14092015-09-29 Kevin Buettner <kevinb@redhat.com>
1410
1411 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1412 and union arguments the same as pointer arguments when determining
1413 size of argument.
1414
86feccb9 14152015-09-29 James Bowman <james.bowman@ftdichip.com>
1416
1417 * ft32-tdep.c: #include "opcode/ft32.h".
1418 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1419 (ft32_analyze_prologue): Use FT32_* macros.
1420
2181a6c6
SM
14212015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1422
84d73afc 1423 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
1424 comment.
1425
245af596
DE
14262015-09-28 Doug Evans <dje@google.com>
1427
1428 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1429
c402ef90
DE
14302015-09-28 Doug Evans <dje@google.com>
1431
1432 * common/filestuff.c (make_cleanup_close): Update comment.
1433
38bc8217 14342015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
1435
1436 * btrace.c (parse_xml_btrace_block): Fix cast of
1437 xml_find_attribute's return value.
1438 * memory-map.c (memory_map_start_memory): Likewise.
1439 * solib-svr4.c (library_list_start_library): Likewise.
1440 * solib-target.c (library_list_start_segment): Likewise.
1441 (library_list_start_section): Likewise.
1442 * tracepoint.c (traceframe_info_start_memory): Likewise.
1443
ba587d55
IB
14442015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1445
1446 * d-namespace.c (d_lookup_symbol): New arg langdef.
1447 All callers updated. Support looking up symbol as a primitive type.
1448 (lookup_module_scope): New arg langdef. All callers updated.
1449 Call d_lookup_symbol directly for simple bare symbols.
1450
19ba03f4
SM
14512015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1452
1453 * macrocmd.c (print_macro_callback): Add cast(s).
1454 * macrotab.c (macro_bcache_str): Likewise.
1455 (new_macro_definition): Likewise.
1456 * main.c (captured_main): Likewise.
1457 * maint.c (print_bfd_section_info): Likewise.
1458 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1459 (basic_type): Likewise.
1460 * memattr.c (mem_region_cmp): Likewise.
1461 * memory-map.c (memory_map_start_memory): Likewise.
1462 (memory_map_end_memory): Likewise.
1463 (memory_map_start_property): Likewise.
1464 (memory_map_end_property): Likewise.
1465 (clear_result): Likewise.
1466 * memrange.c (compare_mem_ranges): Likewise.
1467 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1468 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1469 * mi/mi-console.c (mi_console_file_delete): Likewise.
1470 (mi_console_file_fputs): Likewise.
1471 (mi_console_raw_packet): Likewise.
1472 (mi_console_file_flush): Likewise.
1473 (mi_console_set_raw): Likewise.
1474 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1475 (mi_new_thread): Likewise.
1476 (mi_thread_exit): Likewise.
1477 (mi_record_changed): Likewise.
1478 (mi_inferior_added): Likewise.
1479 (mi_inferior_appeared): Likewise.
1480 (mi_inferior_exit): Likewise.
1481 (mi_inferior_removed): Likewise.
1482 (mi_interp_data): Likewise.
1483 (mi_on_normal_stop): Likewise.
1484 (mi_traceframe_changed): Likewise.
1485 (mi_tsv_created): Likewise.
1486 (mi_tsv_deleted): Likewise.
1487 (mi_tsv_modified): Likewise.
1488 (mi_breakpoint_created): Likewise.
1489 (mi_breakpoint_deleted): Likewise.
1490 (mi_breakpoint_modified): Likewise.
1491 (mi_output_running_pid): Likewise.
1492 (mi_inferior_count): Likewise.
1493 (mi_solib_loaded): Likewise.
1494 (mi_solib_unloaded): Likewise.
1495 (mi_command_param_changed): Likewise.
1496 (mi_memory_changed): Likewise.
1497 (report_initial_inferior): Likewise.
1498 (mi_ui_out): Likewise.
1499 (mi_set_logging): Likewise.
1500 * mi/mi-main.c (collect_cores): Likewise.
1501 (print_one_inferior): Likewise.
1502 (free_vector_of_ints): Likewise.
1503 (free_splay_tree): Likewise.
1504 (mi_execute_command): Likewise.
1505 * mi/mi-out.c (mi_table_body): Likewise.
1506 (mi_table_end): Likewise.
1507 (mi_table_header): Likewise.
1508 (mi_begin): Likewise.
1509 (mi_end): Likewise.
1510 (mi_field_int): Likewise.
1511 (mi_field_string): Likewise.
1512 (mi_field_fmt): Likewise.
1513 (mi_flush): Likewise.
1514 (mi_redirect): Likewise.
1515 (field_separator): Likewise.
1516 (mi_open): Likewise.
1517 (mi_close): Likewise.
1518 (mi_out_buffered): Likewise.
1519 (mi_out_rewind): Likewise.
1520 (mi_out_put): Likewise.
1521 (mi_version): Likewise.
1522 (mi_out_data_dtor): Likewise.
1523 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1524 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1525 * minidebug.c (lzma_open): Likewise.
1526 (lzma_pread): Likewise.
1527 (lzma_close): Likewise.
1528 (lzma_stat): Likewise.
1529 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1530 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1531 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1532 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1533 (mips_micro_frame_cache): Likewise.
1534 (mips_insn32_frame_cache): Likewise.
1535 (mips_stub_frame_cache): Likewise.
1536 (gdb_print_insn_mips): Likewise.
1537 (value_of_mips_user_reg): Likewise.
1538 (mips_gdbarch_init): Likewise.
1539 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1540 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1541 (mipsnbsd_supply_gregset): Likewise.
1542 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1543 (am33_collect_gregset_method): Likewise.
1544 (am33_collect_fpregset_method): Likewise.
1545 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1546 * moxie-tdep.c (moxie_frame_cache): Likewise.
1547 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1548 (msp430_analyze_frame_prologue): Likewise.
1549 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1550 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1551 (nios2_collect_gregset): Likewise.
1552 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1553 (nios2_stub_frame_cache): Likewise.
1554 * objc-lang.c (find_methods): Likewise.
1555 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1556 (get_objfile_pspace_data): Likewise.
1557 (get_objfile_bfd_data): Likewise.
1558 (objfile_bfd_data_free): Likewise.
1559 (add_to_objfile_sections): Likewise.
1560 (do_free_objfile_cleanup): Likewise.
1561 (resume_section_map_updates_cleanup): Likewise.
1562 * opencl-lang.c (builtin_opencl_type): Likewise.
1563 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1564 * osdata.c (osdata_start_osdata): Likewise.
1565 (osdata_start_item): Likewise.
1566 (osdata_start_column): Likewise.
1567 (osdata_end_column): Likewise.
1568 (clear_parsing_data): Likewise.
1569 (osdata_free_cleanup): Likewise.
1570 * parse.c (type_stack_cleanup): Likewise.
1571 (exp_uses_objfile_iter): Likewise.
1572 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1573 (ppc_linux_collect_gregset): Likewise.
1574 (ppu2spu_prev_arch): Likewise.
1575 (ppu2spu_this_id): Likewise.
1576 (ppu2spu_prev_register): Likewise.
1577 (ppu2spu_unwind_register): Likewise.
1578 (ppu2spu_sniffer): Likewise.
1579 (ppu2spu_dealloc_cache): Likewise.
1580 (ppc_linux_init_abi): Likewise.
1581 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1582 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1583 * progspace.c (restore_program_space): Likewise.
1584 * psymtab.c (find_pc_sect_psymtab): Likewise.
1585 (compare_psymbols): Likewise.
1586 (psymbol_bcache_full): Likewise.
1587 (allocate_psymtab): Likewise.
1588 (discard_psymtabs_upto): Likewise.
1589 * python/py-block.c (set_block): Likewise.
1590 (del_objfile_blocks): Likewise.
1591 * python/py-breakpoint.c (build_bp_list): Likewise.
1592 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1593 (build_inferior_list): Likewise.
1594 (py_free_inferior): Likewise.
1595 * python/py-objfile.c (py_free_objfile): Likewise.
1596 (objfile_to_objfile_object): Likewise.
1597 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1598 * python/py-progspace.c (py_free_pspace): Likewise.
1599 (pspace_to_pspace_object): Likewise.
1600 * python/py-symbol.c (set_symbol): Likewise.
1601 (del_objfile_symbols): Likewise.
1602 * python/py-symtab.c (set_sal): Likewise.
1603 (set_symtab): Likewise.
1604 (del_objfile_symtab): Likewise.
1605 (del_objfile_sal): Likewise.
1606 * python/py-type.c (save_objfile_types): Likewise.
1607 (set_type): Likewise.
1608 * python/py-unwind.c (pyuw_prev_register): Likewise.
1609 (pyuw_on_new_gdbarch): Likewise.
1610 * python/py-utils.c (py_decref): Likewise.
1611 (py_xdecref): Likewise.
1612 (gdb_py_generic_dict): Likewise.
1613 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1614 (gdbpy_clone_xmethod_worker_data): Likewise.
1615 (gdbpy_get_xmethod_arg_types): Likewise.
1616 (gdbpy_get_xmethod_result_type): Likewise.
1617 (gdbpy_invoke_xmethod): Likewise.
1618 * python/python.c (gdbpy_apply_type_printers): Likewise.
1619 (gdbpy_free_type_printers): Likewise.
1620 * record-btrace.c (record_btrace_disable_callback): Likewise.
1621 (bfcache_hash): Likewise.
1622 (bfcache_eq): Likewise.
1623 (btrace_get_frame_function): Likewise.
1624 (record_btrace_frame_unwind_stop_reason): Likewise.
1625 (record_btrace_frame_this_id): Likewise.
1626 (record_btrace_frame_prev_register): Likewise.
1627 (record_btrace_frame_dealloc_cache): Likewise.
1628 * record-full.c (record_full_message_wrapper): Likewise.
1629 (record_full_save_cleanups): Likewise.
1630 * regcache.c (regcache_descr): Likewise.
1631 (do_regcache_xfree): Likewise.
1632 (do_regcache_invalidate): Likewise.
1633 (do_cooked_read): Likewise.
1634 (regcache_transfer_regset): Likewise.
1635 * reggroups.c (reggroup_add): Likewise.
1636 (reggroup_next): Likewise.
1637 (reggroup_prev): Likewise.
1638 * remote-fileio.c (do_remote_fileio_request): Likewise.
1639 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1640 (do_notif_event_xfree): Likewise.
1641 * remote.c (get_remote_arch_state): Likewise.
1642 (remote_pspace_data_cleanup): Likewise.
1643 (get_remote_exec_file): Likewise.
1644 (set_pspace_remote_exec_file): Likewise.
1645 (compare_pnums): Likewise.
1646 (clear_threads_listing_context): Likewise.
1647 (remote_newthread_step): Likewise.
1648 (start_thread): Likewise.
1649 (end_thread): Likewise.
1650 (remove_child_of_pending_fork): Likewise.
1651 (remove_stop_reply_for_inferior): Likewise.
1652 (remove_stop_reply_of_remote_state): Likewise.
1653 (remote_notif_remove_once_on_match): Likewise.
1654 (stop_reply_match_ptid_and_ws): Likewise.
1655 (kill_child_of_pending_fork): Likewise.
1656 (register_remote_g_packet_guess): Likewise.
1657 (remote_read_description_p): Likewise.
1658 (remote_read_description): Likewise.
1659 (free_actions_list_cleanup_wrapper): Likewise.
1660 (remote_async_serial_handler): Likewise.
1661 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1662 (rl78_analyze_frame_prologue): Likewise.
1663 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1664 (ppc_supply_fpregset): Likewise.
1665 (ppc_supply_vsxregset): Likewise.
1666 (ppc_supply_vrregset): Likewise.
1667 (ppc_collect_gregset): Likewise.
1668 (ppc_collect_fpregset): Likewise.
1669 (ppc_collect_vsxregset): Likewise.
1670 (ppc_collect_vrregset): Likewise.
1671 (e500_move_ev_register): Likewise.
1672 (do_regcache_raw_write): Likewise.
1673 (rs6000_frame_cache): Likewise.
1674 (rs6000_epilogue_frame_cache): Likewise.
1675 (rs6000_gdbarch_init): Likewise.
1676 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1677 (rx_analyze_frame_prologue): Likewise.
1678 (rx_frame_type): Likewise.
1679 (rx_frame_sniffer_common): Likewise.
1680 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1681 (s390_frame_unwind_cache): Likewise.
1682 (s390_stub_frame_unwind_cache): Likewise.
1683 (s390_sigtramp_frame_unwind_cache): Likewise.
1684 * score-tdep.c (score_make_prologue_cache): Likewise.
1685 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1686 (sentinel_frame_prev_arch): Likewise.
1687 * ser-base.c (fd_event): Likewise.
1688 (push_event): Likewise.
1689 (ser_base_write): Likewise.
1690 * ser-pipe.c (pipe_close): Likewise.
1691 * serial.c (serial_write): Likewise.
1692 * sh-tdep.c (sh_frame_cache): Likewise.
1693 (sh_stub_this_id): Likewise.
1694 * sh64-tdep.c (sh64_frame_cache): Likewise.
1695 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1696 (library_list_start_library): Likewise.
1697 (library_list_start_list): Likewise.
1698 (solib_aix_free_library_list): Likewise.
1699 * solib-darwin.c (get_darwin_info): Likewise.
1700 * solib-dsbt.c (get_dsbt_info): Likewise.
1701 * solib-spu.c (append_ocl_sos): Likewise.
1702 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1703 (get_svr4_info): Likewise.
1704 (library_list_start_library): Likewise.
1705 (svr4_library_list_start_list): Likewise.
1706 (hash_probe_and_action): Likewise.
1707 (equal_probe_and_action): Likewise.
1708 (svr4_update_solib_event_breakpoint): Likewise.
1709 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1710 (svr4_fetch_link_map_offsets): Likewise.
1711 (svr4_have_link_map_offsets): Likewise.
1712 * solib-target.c (library_list_start_segment): Likewise.
1713 (library_list_start_section): Likewise.
1714 (library_list_start_library): Likewise.
1715 (library_list_end_library): Likewise.
1716 (library_list_start_list): Likewise.
1717 (solib_target_free_library_list): Likewise.
1718 * solib.c (solib_ops): Likewise.
1719 (set_solib_ops): Likewise.
1720 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1721 * sparc-tdep.c (sparc_frame_cache): Likewise.
1722 (sparc32_frame_cache): Likewise.
1723 (sparc32_supply_gregset): Likewise.
1724 (sparc32_collect_gregset): Likewise.
1725 (sparc32_supply_fpregset): Likewise.
1726 (sparc32_collect_fpregset): Likewise.
1727 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1728 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1729 (sparc64_collect_gregset): Likewise.
1730 (sparc64_supply_fpregset): Likewise.
1731 (sparc64_collect_fpregset): Likewise.
1732 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1733 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1734 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1735 (sparc64obsd_trapframe_cache): Likewise.
1736 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1737 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1738 * spu-multiarch.c (spu_gdbarch): Likewise.
1739 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1740 (spu2ppu_prev_arch): Likewise.
1741 (spu2ppu_this_id): Likewise.
1742 (spu2ppu_prev_register): Likewise.
1743 (spu2ppu_dealloc_cache): Likewise.
1744 (spu_dis_asm_print_address): Likewise.
1745 (gdb_print_insn_spu): Likewise.
1746 (spu_get_overlay_table): Likewise.
1747 * stabsread.c (rs6000_builtin_type): Likewise.
1748 * stack.c (do_print_variable_and_value): Likewise.
1749 * stap-probe.c (get_stap_base_address_1): Likewise.
1750 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1751 (debug_qf_find_last_source_symtab): Likewise.
1752 (debug_qf_forget_cached_source_info): Likewise.
1753 (debug_qf_map_symtabs_matching_filename): Likewise.
1754 (debug_qf_lookup_symbol): Likewise.
1755 (debug_qf_print_stats): Likewise.
1756 (debug_qf_dump): Likewise.
1757 (debug_qf_relocate): Likewise.
1758 (debug_qf_expand_symtabs_for_function): Likewise.
1759 (debug_qf_expand_all_symtabs): Likewise.
1760 (debug_qf_expand_symtabs_with_fullname): Likewise.
1761 (debug_qf_map_matching_symbols): Likewise.
1762 (debug_qf_expand_symtabs_matching): Likewise.
1763 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1764 (debug_qf_map_symbol_filenames): Likewise.
1765 (debug_sym_get_probes): Likewise.
1766 (debug_sym_new_init): Likewise.
1767 (debug_sym_init): Likewise.
1768 (debug_sym_read): Likewise.
1769 (debug_sym_read_psymbols): Likewise.
1770 (debug_sym_finish): Likewise.
1771 (debug_sym_offsets): Likewise.
1772 (debug_sym_read_linetable): Likewise.
1773 (debug_sym_relocate): Likewise.
1774 (uninstall_symfile_debug_logging): Likewise.
1775 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1776 * symfile.c (place_section): Likewise.
1777 (add_section_size_callback): Likewise.
1778 (load_progress): Likewise.
1779 (load_section_callback): Likewise.
1780 (clear_memory_write_data): Likewise.
1781 (allocate_symtab): Likewise.
1782 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1783 * symtab.c (lookup_symtab_callback): Likewise.
1784 (hash_demangled_name_entry): Likewise.
1785 (eq_demangled_name_entry): Likewise.
1786 (get_symbol_cache): Likewise.
1787 (symbol_cache_cleanup): Likewise.
1788 (set_symbol_cache_size): Likewise.
1789 (symbol_cache_flush): Likewise.
1790 (maintenance_print_symbol_cache): Likewise.
1791 (maintenance_print_symbol_cache_statistics): Likewise.
1792 (delete_filename_seen_cache): Likewise.
1793 (output_partial_symbol_filename): Likewise.
1794 (search_symbols_file_matches): Likewise.
1795 (search_symbols_name_matches): Likewise.
1796 (do_free_completion_list): Likewise.
1797 (maybe_add_partial_symtab_filename): Likewise.
1798 (get_main_info): Likewise.
1799 (main_info_cleanup): Likewise.
1800 * target-dcache.c (target_dcache_cleanup): Likewise.
1801 (target_dcache_init_p): Likewise.
1802 (target_dcache_invalidate): Likewise.
1803 (target_dcache_get): Likewise.
1804 (target_dcache_get_or_init): Likewise.
1805 * target-descriptions.c (target_find_description): Likewise.
1806 (tdesc_find_type): Likewise.
1807 (tdesc_data_cleanup): Likewise.
1808 (tdesc_find_arch_register): Likewise.
1809 (tdesc_register_name): Likewise.
1810 (tdesc_register_type): Likewise.
1811 (tdesc_register_reggroup_p): Likewise.
1812 (set_tdesc_pseudo_register_name): Likewise.
1813 (set_tdesc_pseudo_register_type): Likewise.
1814 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1815 (tdesc_use_registers): Likewise.
1816 (free_target_description): Likewise.
1817 * target-memory.c (compare_block_starting_address): Likewise.
1818 (cleanup_request_data): Likewise.
1819 (cleanup_write_requests_vector): Likewise.
1820 * target.c (open_target): Likewise.
1821 (cleanup_restore_target_terminal): Likewise.
1822 (free_memory_read_result_vector): Likewise.
1823 * thread.c (disable_thread_stack_temporaries): Likewise.
1824 (finish_thread_state_cleanup): Likewise.
1825 (do_restore_current_thread_cleanup): Likewise.
1826 (restore_current_thread_cleanup_dtor): Likewise.
1827 (set_thread_refcount): Likewise.
1828 (tp_array_compar): Likewise.
1829 (do_captured_thread_select): Likewise.
1830 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1831 (tic6x_stub_this_id): Likewise.
1832 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1833 * top.c (do_restore_instream_cleanup): Likewise.
1834 (gdb_readline_wrapper_cleanup): Likewise.
1835 (kill_or_detach): Likewise.
1836 (print_inferior_quit_action): Likewise.
1837 * tracefile-tfile.c (match_blocktype): Likewise.
1838 (build_traceframe_info): Likewise.
1839 * tracefile.c (trace_file_writer_xfree): Likewise.
1840 * tracepoint.c (memrange_cmp): Likewise.
1841 (do_collect_symbol): Likewise.
1842 (do_clear_collection_list): Likewise.
1843 (do_restore_current_traceframe_cleanup): Likewise.
1844 (restore_current_traceframe_cleanup_dtor): Likewise.
1845 (free_current_marker): Likewise.
1846 (traceframe_info_start_memory): Likewise.
1847 (traceframe_info_start_tvar): Likewise.
1848 (free_result): Likewise.
1849 * tramp-frame.c (tramp_frame_cache): Likewise.
1850 * tui/tui-file.c (tui_file_delete): Likewise.
1851 (tui_fileopen): Likewise.
1852 (tui_sfileopen): Likewise.
1853 (tui_file_isatty): Likewise.
1854 (tui_file_rewind): Likewise.
1855 (tui_file_put): Likewise.
1856 (tui_file_fputs): Likewise.
1857 (tui_file_get_strbuf): Likewise.
1858 (tui_file_adjust_strbuf): Likewise.
1859 (tui_file_flush): Likewise.
1860 * tui/tui-layout.c (make_command_window): Likewise.
1861 (make_data_window): Likewise.
1862 (show_source_disasm_command): Likewise.
1863 (show_data): Likewise.
1864 (make_source_or_disasm_window): Likewise.
1865 (show_source_or_disasm_and_command): Likewise.
1866 * tui/tui-out.c (tui_field_int): Likewise.
1867 (tui_field_string): Likewise.
1868 (tui_field_fmt): Likewise.
1869 (tui_text): Likewise.
1870 * typeprint.c (hash_typedef_field): Likewise.
1871 (eq_typedef_field): Likewise.
1872 (do_free_typedef_hash): Likewise.
1873 (copy_typedef_hash_element): Likewise.
1874 (do_free_global_table): Likewise.
1875 (find_global_typedef): Likewise.
1876 (find_typedef_in_hash): Likewise.
1877 * ui-file.c (ui_file_write_for_put): Likewise.
1878 (do_ui_file_xstrdup): Likewise.
1879 (mem_file_delete): Likewise.
1880 (mem_file_rewind): Likewise.
1881 (mem_file_put): Likewise.
1882 (mem_file_write): Likewise.
1883 (stdio_file_delete): Likewise.
1884 (stdio_file_flush): Likewise.
1885 (stdio_file_read): Likewise.
1886 (stdio_file_write): Likewise.
1887 (stdio_file_write_async_safe): Likewise.
1888 (stdio_file_fputs): Likewise.
1889 (stdio_file_isatty): Likewise.
1890 (stdio_file_fseek): Likewise.
1891 (tee_file_delete): Likewise.
1892 (tee_file_flush): Likewise.
1893 (tee_file_write): Likewise.
1894 (tee_file_fputs): Likewise.
1895 (tee_file_isatty): Likewise.
1896 * ui-out.c (do_cleanup_table_end): Likewise.
1897 (do_cleanup_end): Likewise.
1898 * user-regs.c (user_reg_add): Likewise.
1899 (user_reg_map_name_to_regnum): Likewise.
1900 (usernum_to_user_reg): Likewise.
1901 (maintenance_print_user_registers): Likewise.
1902 * utils.c (do_bfd_close_cleanup): Likewise.
1903 (do_fclose_cleanup): Likewise.
1904 (do_obstack_free): Likewise.
1905 (do_ui_file_delete): Likewise.
1906 (do_ui_out_redirect_pop): Likewise.
1907 (do_free_section_addr_info): Likewise.
1908 (restore_integer): Likewise.
1909 (do_unpush_target): Likewise.
1910 (do_htab_delete_cleanup): Likewise.
1911 (do_restore_ui_file): Likewise.
1912 (do_value_free): Likewise.
1913 (do_free_so): Likewise.
1914 (free_current_contents): Likewise.
1915 (do_regfree_cleanup): Likewise.
1916 (core_addr_hash): Likewise.
1917 (core_addr_eq): Likewise.
1918 (do_free_char_ptr_vec): Likewise.
1919 * v850-tdep.c (v850_frame_cache): Likewise.
1920 * varobj.c (do_free_variable_cleanup): Likewise.
1921 * vax-tdep.c (vax_supply_gregset): Likewise.
1922 (vax_frame_cache): Likewise.
1923 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1924 * xml-support.c (gdb_xml_body_text): Likewise.
1925 (gdb_xml_values_cleanup): Likewise.
1926 (gdb_xml_start_element): Likewise.
1927 (gdb_xml_start_element_wrapper): Likewise.
1928 (gdb_xml_end_element): Likewise.
1929 (gdb_xml_end_element_wrapper): Likewise.
1930 (gdb_xml_cleanup): Likewise.
1931 (gdb_xml_fetch_external_entity): Likewise.
1932 (gdb_xml_parse_attr_enum): Likewise.
1933 (xinclude_start_include): Likewise.
1934 (xinclude_end_include): Likewise.
1935 (xml_xinclude_default): Likewise.
1936 (xml_xinclude_start_doctype): Likewise.
1937 (xml_xinclude_end_doctype): Likewise.
1938 (xml_xinclude_cleanup): Likewise.
1939 (xml_fetch_content_from_file): Likewise.
1940 * xml-syscall.c (free_syscalls_info): Likewise.
1941 (syscall_start_syscall): Likewise.
1942 * xml-tdesc.c (tdesc_end_arch): Likewise.
1943 (tdesc_end_osabi): Likewise.
1944 (tdesc_end_compatible): Likewise.
1945 (tdesc_start_target): Likewise.
1946 (tdesc_start_feature): Likewise.
1947 (tdesc_start_reg): Likewise.
1948 (tdesc_start_union): Likewise.
1949 (tdesc_start_struct): Likewise.
1950 (tdesc_start_flags): Likewise.
1951 (tdesc_start_field): Likewise.
1952 (tdesc_start_vector): Likewise.
1953 (fetch_available_features_from_target): Likewise.
1954 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1955 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1956 (xtensa_frame_cache): Likewise.
1957 (xtensa_frame_prev_register): Likewise.
1958 (xtensa_extract_return_value): Likewise.
1959
9a3c8263
SM
19602015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1961
1962 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1963 (aarch64_make_stub_cache): Likewise.
1964 (value_of_aarch64_user_reg): Likewise.
1965 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1966 (get_ada_inferior_data): Likewise.
1967 (get_ada_pspace_data): Likewise.
1968 (ada_pspace_data_cleanup): Likewise.
1969 (ada_complete_symbol_matcher): Likewise.
1970 (ada_exc_search_name_matches): Likewise.
1971 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1972 (get_ada_tasks_inferior_data): Likewise.
1973 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1974 (splay_obstack_alloc): Likewise.
1975 (splay_obstack_free): Likewise.
1976 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1977 (alpha_linux_collect_gregset): Likewise.
1978 (alpha_linux_supply_fpregset): Likewise.
1979 (alpha_linux_collect_fpregset): Likewise.
1980 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1981 * alpha-tdep.c (alpha_lds): Likewise.
1982 (alpha_sts): Likewise.
1983 (alpha_sigtramp_frame_unwind_cache): Likewise.
1984 (alpha_heuristic_frame_unwind_cache): Likewise.
1985 (alpha_supply_int_regs): Likewise.
1986 (alpha_fill_int_regs): Likewise.
1987 (alpha_supply_fp_regs): Likewise.
1988 (alpha_fill_fp_regs): Likewise.
1989 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1990 (alphanbsd_aout_supply_gregset): Likewise.
1991 (alphanbsd_supply_gregset): Likewise.
1992 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1993 (amd64_x32_linux_init_abi): Likewise.
1994 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1995 (amd64_collect_native_gregset): Likewise.
1996 * amd64-tdep.c (amd64_frame_cache): Likewise.
1997 (amd64_sigtramp_frame_cache): Likewise.
1998 (amd64_epilogue_frame_cache): Likewise.
1999 (amd64_supply_fxsave): Likewise.
2000 (amd64_supply_xsave): Likewise.
2001 (amd64_collect_fxsave): Likewise.
2002 (amd64_collect_xsave): Likewise.
2003 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2004 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2005 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2006 (arm_linux_collect_gregset): Likewise.
2007 (arm_linux_supply_nwfpe): Likewise.
2008 (arm_linux_collect_nwfpe): Likewise.
2009 (arm_linux_supply_vfp): Likewise.
2010 (arm_linux_collect_vfp): Likewise.
2011 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2012 (arm_prologue_unwind_stop_reason): Likewise.
2013 (arm_prologue_this_id): Likewise.
2014 (arm_prologue_prev_register): Likewise.
2015 (arm_exidx_data_free): Likewise.
2016 (arm_find_exidx_entry): Likewise.
2017 (arm_stub_this_id): Likewise.
2018 (arm_m_exception_this_id): Likewise.
2019 (arm_m_exception_prev_register): Likewise.
2020 (arm_normal_frame_base): Likewise.
2021 (gdb_print_insn_arm): Likewise.
2022 (arm_objfile_data_free): Likewise.
2023 (arm_record_special_symbol): Likewise.
2024 (value_of_arm_user_reg): Likewise.
2025 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2026 (armbsd_supply_gregset): Likewise.
2027 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2028 (get_auto_load_pspace_data): Likewise.
2029 (hash_loaded_script_entry): Likewise.
2030 (eq_loaded_script_entry): Likewise.
2031 (clear_section_scripts): Likewise.
2032 (collect_matching_scripts): Likewise.
2033 * auxv.c (auxv_inferior_data_cleanup): Likewise.
2034 (get_auxv_inferior_data): Likewise.
2035 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2036 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2037 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2038 (target_bfd_xclose): Likewise.
2039 (target_bfd_get_section_table): Likewise.
2040 * bfin-tdep.c (bfin_frame_cache): Likewise.
2041 * block.c (find_block_in_blockvector): Likewise.
2042 (call_site_for_pc): Likewise.
2043 (block_find_non_opaque_type_preferred): Likewise.
2044 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2045 (signal_catchpoint_remove_location): Likewise.
2046 (signal_catchpoint_breakpoint_hit): Likewise.
2047 (signal_catchpoint_print_one): Likewise.
2048 (signal_catchpoint_print_mention): Likewise.
2049 (signal_catchpoint_print_recreate): Likewise.
2050 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2051 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2052 (bp_location_compare_addrs): Likewise.
2053 (get_first_locp_gte_addr): Likewise.
2054 (check_tracepoint_command): Likewise.
2055 (do_map_commands_command): Likewise.
2056 (get_breakpoint_objfile_data): Likewise.
2057 (free_breakpoint_probes): Likewise.
2058 (do_captured_breakpoint_query): Likewise.
2059 (compare_breakpoints): Likewise.
2060 (bp_location_compare): Likewise.
2061 (bpstat_remove_breakpoint_callback): Likewise.
2062 (do_delete_breakpoint_cleanup): Likewise.
2063 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2064 (bsd_uthread_set_collect_uthread): Likewise.
2065 (bsd_uthread_activate): Likewise.
2066 (bsd_uthread_fetch_registers): Likewise.
2067 (bsd_uthread_store_registers): Likewise.
2068 * btrace.c (check_xml_btrace_version): Likewise.
2069 (parse_xml_btrace_block): Likewise.
2070 (parse_xml_btrace_pt_config_cpu): Likewise.
2071 (parse_xml_btrace_pt_raw): Likewise.
2072 (parse_xml_btrace_pt): Likewise.
2073 (parse_xml_btrace_conf_bts): Likewise.
2074 (parse_xml_btrace_conf_pt): Likewise.
2075 (do_btrace_data_cleanup): Likewise.
2076 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2077 * charset.c (cleanup_iconv): Likewise.
2078 (do_cleanup_iterator): Likewise.
2079 * cli-out.c (cli_uiout_dtor): Likewise.
2080 (cli_table_begin): Likewise.
2081 (cli_table_body): Likewise.
2082 (cli_table_end): Likewise.
2083 (cli_table_header): Likewise.
2084 (cli_begin): Likewise.
2085 (cli_end): Likewise.
2086 (cli_field_int): Likewise.
2087 (cli_field_skip): Likewise.
2088 (cli_field_string): Likewise.
2089 (cli_field_fmt): Likewise.
2090 (cli_spaces): Likewise.
2091 (cli_text): Likewise.
2092 (cli_message): Likewise.
2093 (cli_wrap_hint): Likewise.
2094 (cli_flush): Likewise.
2095 (cli_redirect): Likewise.
2096 (out_field_fmt): Likewise.
2097 (field_separator): Likewise.
2098 (cli_out_set_stream): Likewise.
2099 * cli/cli-cmds.c (compare_symtabs): Likewise.
2100 * cli/cli-dump.c (call_dump_func): Likewise.
2101 (restore_section_callback): Likewise.
2102 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2103 (do_restore_user_call_depth): Likewise.
2104 (do_free_command_lines_cleanup): Likewise.
2105 * coff-pe-read.c (get_section_vmas): Likewise.
2106 (pe_as16): Likewise.
2107 (pe_as32): Likewise.
2108 * coffread.c (coff_symfile_read): Likewise.
2109 * common/agent.c (agent_look_up_symbols): Likewise.
2110 * common/filestuff.c (do_close_cleanup): Likewise.
2111 * common/format.c (free_format_pieces_cleanup): Likewise.
2112 * common/vec.c (vec_o_reserve): Likewise.
2113 * compile/compile-c-support.c (print_one_macro): Likewise.
2114 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2115 (eq_symbol_error): Likewise.
2116 (del_symbol_error): Likewise.
2117 (error_symbol_once): Likewise.
2118 (gcc_convert_symbol): Likewise.
2119 (gcc_symbol_address): Likewise.
2120 (hash_symname): Likewise.
2121 (eq_symname): Likewise.
2122 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2123 (eq_type_map_instance): Likewise.
2124 (insert_type): Likewise.
2125 (convert_type): Likewise.
2126 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2127 (setup_sections): Likewise.
2128 (link_hash_table_free): Likewise.
2129 (copy_sections): Likewise.
2130 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2131 * compile/compile.c (compile_print_value): Likewise.
2132 (do_rmdir): Likewise.
2133 (cleanup_compile_instance): Likewise.
2134 (cleanup_unlink_file): Likewise.
2135 * completer.c (free_completion_tracker): Likewise.
2136 * corelow.c (add_to_spuid_list): Likewise.
2137 * cp-namespace.c (reset_directive_searched): Likewise.
2138 * cp-support.c (reset_directive_searched): Likewise.
2139 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2140 (cris_frame_unwind_cache): Likewise.
2141 * d-lang.c (builtin_d_type): Likewise.
2142 * d-namespace.c (reset_directive_searched): Likewise.
2143 * dbxread.c (dbx_free_symfile_info): Likewise.
2144 (do_free_bincl_list_cleanup): Likewise.
2145 * disasm.c (hash_dis_line_entry): Likewise.
2146 (eq_dis_line_entry): Likewise.
2147 (dis_asm_print_address): Likewise.
2148 (fprintf_disasm): Likewise.
2149 (do_ui_file_delete): Likewise.
2150 * doublest.c (convert_floatformat_to_doublest): Likewise.
2151 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2152 (dummy_frame_prev_register): Likewise.
2153 (dummy_frame_this_id): Likewise.
2154 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2155 (cache_eq): Likewise.
2156 (cache_find): Likewise.
2157 (tailcall_frame_this_id): Likewise.
2158 (dwarf2_tailcall_prev_register_first): Likewise.
2159 (tailcall_frame_prev_register): Likewise.
2160 (tailcall_frame_dealloc_cache): Likewise.
2161 (tailcall_frame_prev_arch): Likewise.
2162 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2163 (dwarf2_frame_set_init_reg): Likewise.
2164 (dwarf2_frame_init_reg): Likewise.
2165 (dwarf2_frame_set_signal_frame_p): Likewise.
2166 (dwarf2_frame_signal_frame_p): Likewise.
2167 (dwarf2_frame_set_adjust_regnum): Likewise.
2168 (dwarf2_frame_adjust_regnum): Likewise.
2169 (clear_pointer_cleanup): Likewise.
2170 (dwarf2_frame_cache): Likewise.
2171 (find_cie): Likewise.
2172 (dwarf2_frame_find_fde): Likewise.
2173 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2174 (free_dwarf_expr_context_cleanup): Likewise.
2175 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2176 (locexpr_get_frame_base): Likewise.
2177 (loclist_find_frame_base_location): Likewise.
2178 (loclist_get_frame_base): Likewise.
2179 (dwarf_expr_dwarf_call): Likewise.
2180 (dwarf_expr_get_base_type): Likewise.
2181 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2182 (dwarf_expr_get_obj_addr): Likewise.
2183 (entry_data_value_coerce_ref): Likewise.
2184 (entry_data_value_copy_closure): Likewise.
2185 (entry_data_value_free_closure): Likewise.
2186 (get_frame_address_in_block_wrapper): Likewise.
2187 (dwarf2_evaluate_property): Likewise.
2188 (dwarf2_compile_property_to_c): Likewise.
2189 (needs_frame_read_addr_from_reg): Likewise.
2190 (needs_frame_get_reg_value): Likewise.
2191 (needs_frame_frame_base): Likewise.
2192 (needs_frame_frame_cfa): Likewise.
2193 (needs_frame_tls_address): Likewise.
2194 (needs_frame_dwarf_call): Likewise.
2195 (needs_dwarf_reg_entry_value): Likewise.
2196 (get_ax_pc): Likewise.
2197 (locexpr_read_variable): Likewise.
2198 (locexpr_read_variable_at_entry): Likewise.
2199 (locexpr_read_needs_frame): Likewise.
2200 (locexpr_describe_location): Likewise.
2201 (locexpr_tracepoint_var_ref): Likewise.
2202 (locexpr_generate_c_location): Likewise.
2203 (loclist_read_variable): Likewise.
2204 (loclist_read_variable_at_entry): Likewise.
2205 (loclist_describe_location): Likewise.
2206 (loclist_tracepoint_var_ref): Likewise.
2207 (loclist_generate_c_location): Likewise.
2208 * dwarf2read.c (line_header_hash_voidp): Likewise.
2209 (line_header_eq_voidp): Likewise.
2210 (dwarf2_has_info): Likewise.
2211 (dwarf2_get_section_info): Likewise.
2212 (locate_dwz_sections): Likewise.
2213 (hash_file_name_entry): Likewise.
2214 (eq_file_name_entry): Likewise.
2215 (delete_file_name_entry): Likewise.
2216 (dw2_setup): Likewise.
2217 (dw2_get_file_names_reader): Likewise.
2218 (dw2_find_pc_sect_compunit_symtab): Likewise.
2219 (hash_signatured_type): Likewise.
2220 (eq_signatured_type): Likewise.
2221 (add_signatured_type_cu_to_table): Likewise.
2222 (create_debug_types_hash_table): Likewise.
2223 (lookup_dwo_signatured_type): Likewise.
2224 (lookup_dwp_signatured_type): Likewise.
2225 (lookup_signatured_type): Likewise.
2226 (hash_type_unit_group): Likewise.
2227 (eq_type_unit_group): Likewise.
2228 (get_type_unit_group): Likewise.
2229 (process_psymtab_comp_unit_reader): Likewise.
2230 (sort_tu_by_abbrev_offset): Likewise.
2231 (process_skeletonless_type_unit): Likewise.
2232 (psymtabs_addrmap_cleanup): Likewise.
2233 (dwarf2_read_symtab): Likewise.
2234 (psymtab_to_symtab_1): Likewise.
2235 (die_hash): Likewise.
2236 (die_eq): Likewise.
2237 (load_full_comp_unit_reader): Likewise.
2238 (reset_die_in_process): Likewise.
2239 (free_cu_line_header): Likewise.
2240 (handle_DW_AT_stmt_list): Likewise.
2241 (hash_dwo_file): Likewise.
2242 (eq_dwo_file): Likewise.
2243 (hash_dwo_unit): Likewise.
2244 (eq_dwo_unit): Likewise.
2245 (create_dwo_cu_reader): Likewise.
2246 (create_dwo_unit_in_dwp_v1): Likewise.
2247 (create_dwo_unit_in_dwp_v2): Likewise.
2248 (lookup_dwo_unit_in_dwp): Likewise.
2249 (dwarf2_locate_dwo_sections): Likewise.
2250 (dwarf2_locate_common_dwp_sections): Likewise.
2251 (dwarf2_locate_v2_dwp_sections): Likewise.
2252 (hash_dwp_loaded_cutus): Likewise.
2253 (eq_dwp_loaded_cutus): Likewise.
2254 (lookup_dwo_cutu): Likewise.
2255 (abbrev_table_free_cleanup): Likewise.
2256 (dwarf2_free_abbrev_table): Likewise.
2257 (find_partial_die_in_comp_unit): Likewise.
2258 (free_line_header_voidp): Likewise.
2259 (follow_die_offset): Likewise.
2260 (follow_die_sig_1): Likewise.
2261 (free_heap_comp_unit): Likewise.
2262 (free_stack_comp_unit): Likewise.
2263 (dwarf2_free_objfile): Likewise.
2264 (per_cu_offset_and_type_hash): Likewise.
2265 (per_cu_offset_and_type_eq): Likewise.
2266 (get_die_type_at_offset): Likewise.
2267 (partial_die_hash): Likewise.
2268 (partial_die_eq): Likewise.
2269 (dwarf2_per_objfile_free): Likewise.
2270 (hash_strtab_entry): Likewise.
2271 (eq_strtab_entry): Likewise.
2272 (add_string): Likewise.
2273 (hash_symtab_entry): Likewise.
2274 (eq_symtab_entry): Likewise.
2275 (delete_symtab_entry): Likewise.
2276 (cleanup_mapped_symtab): Likewise.
2277 (add_indices_to_cpool): Likewise.
2278 (hash_psymtab_cu_index): Likewise.
2279 (eq_psymtab_cu_index): Likewise.
2280 (add_address_entry_worker): Likewise.
2281 (unlink_if_set): Likewise.
2282 (write_one_signatured_type): Likewise.
2283 (save_gdb_index_command): Likewise.
2284 * elfread.c (elf_symtab_read): Likewise.
2285 (elf_gnu_ifunc_cache_hash): Likewise.
2286 (elf_gnu_ifunc_cache_eq): Likewise.
2287 (elf_gnu_ifunc_record_cache): Likewise.
2288 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2289 (elf_get_probes): Likewise.
2290 (probe_key_free): Likewise.
2291 * f-lang.c (builtin_f_type): Likewise.
2292 * frame-base.c (frame_base_append_sniffer): Likewise.
2293 (frame_base_set_default): Likewise.
2294 (frame_base_find_by_frame): Likewise.
2295 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2296 (frame_unwind_append_unwinder): Likewise.
2297 (frame_unwind_find_by_frame): Likewise.
2298 * frame.c (frame_addr_hash): Likewise.
2299 (frame_addr_hash_eq): Likewise.
2300 (frame_stash_find): Likewise.
2301 (do_frame_register_read): Likewise.
2302 (unwind_to_current_frame): Likewise.
2303 (frame_cleanup_after_sniffer): Likewise.
2304 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2305 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2306 * ft32-tdep.c (ft32_frame_cache): Likewise.
2307 * gcore.c (do_bfd_delete_cleanup): Likewise.
2308 (gcore_create_callback): Likewise.
2309 * gdb_bfd.c (hash_bfd): Likewise.
2310 (eq_bfd): Likewise.
2311 (gdb_bfd_open): Likewise.
2312 (free_one_bfd_section): Likewise.
2313 (gdb_bfd_ref): Likewise.
2314 (gdb_bfd_unref): Likewise.
2315 (get_section_descriptor): Likewise.
2316 (gdb_bfd_map_section): Likewise.
2317 (gdb_bfd_crc): Likewise.
2318 (gdb_bfd_mark_parent): Likewise.
2319 (gdb_bfd_record_inclusion): Likewise.
2320 (gdb_bfd_requires_relocations): Likewise.
2321 (print_one_bfd): Likewise.
2322 * gdbtypes.c (type_pair_hash): Likewise.
2323 (type_pair_eq): Likewise.
2324 (builtin_type): Likewise.
2325 (objfile_type): Likewise.
2326 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2327 (vtable_address_point_offset): Likewise.
2328 (gnuv3_get_vtable): Likewise.
2329 (hash_value_and_voffset): Likewise.
2330 (eq_value_and_voffset): Likewise.
2331 (compare_value_and_voffset): Likewise.
2332 (compute_vtable_size): Likewise.
2333 (gnuv3_get_typeid_type): Likewise.
2334 * go-lang.c (builtin_go_type): Likewise.
2335 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2336 (bkscm_eq_block_smob): Likewise.
2337 (bkscm_objfile_block_map): Likewise.
2338 (bkscm_del_objfile_blocks): Likewise.
2339 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2340 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2341 (gdbscm_disasm_print_address): Likewise.
2342 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2343 (frscm_eq_frame_smob): Likewise.
2344 (frscm_inferior_frame_map): Likewise.
2345 (frscm_del_inferior_frames): Likewise.
2346 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2347 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2348 (ofscm_objfile_smob_from_objfile): Likewise.
2349 * guile/scm-ports.c (ioscm_write): Likewise.
2350 (ioscm_file_port_delete): Likewise.
2351 (ioscm_file_port_rewind): Likewise.
2352 (ioscm_file_port_put): Likewise.
2353 (ioscm_file_port_write): Likewise.
2354 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2355 (psscm_pspace_smob_from_pspace): Likewise.
2356 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2357 (scscm_recording_unwind_handler): Likewise.
2358 (gdbscm_with_catch): Likewise.
2359 (scscm_call_0_body): Likewise.
2360 (scscm_call_1_body): Likewise.
2361 (scscm_call_2_body): Likewise.
2362 (scscm_call_3_body): Likewise.
2363 (scscm_call_4_body): Likewise.
2364 (scscm_apply_1_body): Likewise.
2365 (scscm_eval_scheme_string): Likewise.
2366 (gdbscm_safe_eval_string): Likewise.
2367 (scscm_source_scheme_script): Likewise.
2368 (gdbscm_safe_source_script): Likewise.
2369 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2370 (gdbscm_call_scm_from_stringn): Likewise.
2371 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2372 (syscm_eq_symbol_smob): Likewise.
2373 (syscm_get_symbol_map): Likewise.
2374 (syscm_del_objfile_symbols): Likewise.
2375 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2376 (stscm_eq_symtab_smob): Likewise.
2377 (stscm_objfile_symtab_map): Likewise.
2378 (stscm_del_objfile_symtabs): Likewise.
2379 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2380 (tyscm_eq_type_smob): Likewise.
2381 (tyscm_type_map): Likewise.
2382 (tyscm_copy_type_recursive): Likewise.
2383 (save_objfile_types): Likewise.
2384 * guile/scm-utils.c (extract_arg): Likewise.
2385 * h8300-tdep.c (h8300_frame_cache): Likewise.
2386 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2387 * hppa-tdep.c (compare_unwind_entries): Likewise.
2388 (find_unwind_entry): Likewise.
2389 (hppa_frame_cache): Likewise.
2390 (hppa_stub_frame_unwind_cache): Likewise.
2391 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2392 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2393 (hppaobsd_supply_fpregset): Likewise.
2394 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2395 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2396 * i386-tdep.c (i386_frame_cache): Likewise.
2397 (i386_epilogue_frame_cache): Likewise.
2398 (i386_sigtramp_frame_cache): Likewise.
2399 (i386_supply_gregset): Likewise.
2400 (i386_collect_gregset): Likewise.
2401 (i386_gdbarch_init): Likewise.
2402 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2403 (i386obsd_trapframe_cache): Likewise.
2404 * i387-tdep.c (i387_supply_fsave): Likewise.
2405 (i387_collect_fsave): Likewise.
2406 (i387_supply_fxsave): Likewise.
2407 (i387_collect_fxsave): Likewise.
2408 (i387_supply_xsave): Likewise.
2409 (i387_collect_xsave): Likewise.
2410 * ia64-tdep.c (ia64_frame_cache): Likewise.
2411 (ia64_sigtramp_frame_cache): Likewise.
2412 * infcmd.c (attach_command_continuation): Likewise.
2413 (attach_command_continuation_free_args): Likewise.
2414 * inferior.c (restore_inferior): Likewise.
2415 (delete_thread_of_inferior): Likewise.
2416 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2417 (get_inflow_inferior_data): Likewise.
2418 (inflow_inferior_exit): Likewise.
2419 * infrun.c (displaced_step_clear_cleanup): Likewise.
2420 (restore_current_uiout_cleanup): Likewise.
2421 (release_stop_context_cleanup): Likewise.
2422 (do_restore_infcall_suspend_state_cleanup): Likewise.
2423 (do_restore_infcall_control_state_cleanup): Likewise.
2424 (restore_inferior_ptid): Likewise.
2425 * inline-frame.c (block_starting_point_at): Likewise.
2426 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2427 * jit.c (get_jit_objfile_data): Likewise.
2428 (get_jit_program_space_data): Likewise.
2429 (jit_object_close_impl): Likewise.
2430 (jit_find_objf_with_entry_addr): Likewise.
2431 (jit_breakpoint_deleted): Likewise.
2432 (jit_unwind_reg_set_impl): Likewise.
2433 (jit_unwind_reg_get_impl): Likewise.
2434 (jit_dealloc_cache): Likewise.
2435 (jit_frame_sniffer): Likewise.
2436 (jit_frame_prev_register): Likewise.
2437 (jit_prepend_unwinder): Likewise.
2438 (jit_inferior_exit_hook): Likewise.
2439 (free_objfile_data): Likewise.
2440 * jv-lang.c (jv_per_objfile_free): Likewise.
2441 (get_dynamics_objfile): Likewise.
2442 (get_java_class_symtab): Likewise.
2443 (builtin_java_type): Likewise.
2444 * language.c (language_string_char_type): Likewise.
2445 (language_bool_type): Likewise.
2446 (language_lookup_primitive_type): Likewise.
2447 (language_lookup_primitive_type_as_symbol): Likewise.
2448 * linespec.c (hash_address_entry): Likewise.
2449 (eq_address_entry): Likewise.
2450 (iterate_inline_only): Likewise.
2451 (iterate_name_matcher): Likewise.
2452 (decode_line_2_compare_items): Likewise.
2453 (collect_one_symbol): Likewise.
2454 (compare_symbols): Likewise.
2455 (compare_msymbols): Likewise.
2456 (add_symtabs_to_list): Likewise.
2457 (collect_symbols): Likewise.
2458 (compare_msyms): Likewise.
2459 (add_minsym): Likewise.
2460 (cleanup_linespec_result): Likewise.
2461 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2462 * linux-nat.c (delete_lwp_cleanup): Likewise.
2463 (count_events_callback): Likewise.
2464 (select_event_lwp_callback): Likewise.
2465 (resume_stopped_resumed_lwps): Likewise.
2466 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2467 (invalidate_linux_cache_inf): Likewise.
2468 (get_linux_inferior_data): Likewise.
2469 (linux_find_memory_regions_thunk): Likewise.
2470 (linux_make_mappings_callback): Likewise.
2471 (linux_corefile_thread_callback): Likewise.
2472 (find_mapping_size): Likewise.
2473 * linux-thread-db.c (find_new_threads_callback): Likewise.
2474 * lm32-tdep.c (lm32_frame_cache): Likewise.
2475 * m2-lang.c (builtin_m2_type): Likewise.
2476 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2477 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2478 (m32r_linux_supply_gregset): Likewise.
2479 (m32r_linux_collect_gregset): Likewise.
2480 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2481 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2482 * m68k-tdep.c (m68k_frame_cache): Likewise.
2483 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2484 (m68kbsd_supply_gregset): Likewise.
2485 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2486 * m88k-tdep.c (m88k_frame_cache): Likewise.
2487 (m88k_supply_gregset): Likewise.
2488
224c3ddb
SM
24892015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2490
2491 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2492 to allocation result assignment.
2493 * ada-exp.y (write_object_renaming): Likewise.
2494 (write_ambiguous_var): Likewise.
2495 (ada_nget_field_index): Likewise.
2496 (write_var_or_type): Likewise.
2497 * ada-lang.c (ada_decode_symbol): Likewise.
2498 (ada_value_assign): Likewise.
2499 (value_pointer): Likewise.
2500 (cache_symbol): Likewise.
2501 (add_nonlocal_symbols): Likewise.
2502 (ada_name_for_lookup): Likewise.
2503 (symbol_completion_add): Likewise.
2504 (ada_to_fixed_type_1): Likewise.
2505 (ada_get_next_arg): Likewise.
2506 (defns_collected): Likewise.
2507 * ada-lex.l (processId): Likewise.
2508 (processString): Likewise.
2509 * ada-tasks.c (read_known_tasks_array): Likewise.
2510 (read_known_tasks_list): Likewise.
2511 * ada-typeprint.c (decoded_type_name): Likewise.
2512 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2513 * amd64-tdep.c (amd64_push_arguments): Likewise.
2514 (amd64_displaced_step_copy_insn): Likewise.
2515 (amd64_classify_insn_at): Likewise.
2516 (amd64_relocate_instruction): Likewise.
2517 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2518 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2519 (initialize_current_architecture): Likewise.
2520 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2521 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2522 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2523 (arm_push_dummy_call): Likewise.
2524 (extend_buffer_earlier): Likewise.
2525 (arm_adjust_breakpoint_address): Likewise.
2526 (arm_skip_stub): Likewise.
2527 * auto-load.c (filename_is_in_pattern): Likewise.
2528 (maybe_add_script_file): Likewise.
2529 (maybe_add_script_text): Likewise.
2530 (auto_load_objfile_script_1): Likewise.
2531 * auxv.c (ld_so_xfer_auxv): Likewise.
2532 * ax-general.c (new_agent_expr): Likewise.
2533 (grow_expr): Likewise.
2534 (ax_reg_mask): Likewise.
2535 * bcache.c (bcache_full): Likewise.
2536 * breakpoint.c (program_breakpoint_here_p): Likewise.
2537 * btrace.c (parse_xml_raw): Likewise.
2538 * build-id.c (build_id_to_debug_bfd): Likewise.
2539 * buildsym.c (end_symtab_with_blockvector): Likewise.
2540 * c-exp.y (string_exp): Likewise.
2541 (qualified_name): Likewise.
2542 (write_destructor_name): Likewise.
2543 (operator_stoken): Likewise.
2544 (parse_number): Likewise.
2545 (scan_macro_expansion): Likewise.
2546 (yylex): Likewise.
2547 (c_print_token): Likewise.
2548 * c-lang.c (c_get_string): Likewise.
2549 (emit_numeric_character): Likewise.
2550 * charset.c (wchar_iterate): Likewise.
2551 * cli/cli-cmds.c (complete_command): Likewise.
2552 (make_command): Likewise.
2553 * cli/cli-dump.c (restore_section_callback): Likewise.
2554 (restore_binary_file): Likewise.
2555 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2556 * cli/cli-script.c (execute_control_command): Likewise.
2557 * cli/cli-setshow.c (do_set_command): Likewise.
2558 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2559 (read_pe_exported_syms): Likewise.
2560 * coffread.c (coff_read_struct_type): Likewise.
2561 (coff_read_enum_type): Likewise.
2562 * common/btrace-common.c (btrace_data_append): Likewise.
2563 * common/buffer.c (buffer_grow): Likewise.
2564 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2565 * common/format.c (parse_format_string): Likewise.
2566 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2567 * common/xml-utils.c (xml_escape_text): Likewise.
2568 * compile/compile-object-load.c (copy_sections): Likewise.
2569 (compile_object_load): Likewise.
2570 * compile/compile-object-run.c (compile_object_run): Likewise.
2571 * completer.c (filename_completer): Likewise.
2572 * corefile.c (read_memory_typed_address): Likewise.
2573 (write_memory_unsigned_integer): Likewise.
2574 (write_memory_signed_integer): Likewise.
2575 (complete_set_gnutarget): Likewise.
2576 * corelow.c (get_core_register_section): Likewise.
2577 * cp-name-parser.y (d_grab): Likewise.
2578 (allocate_info): Likewise.
2579 (cp_new_demangle_parse_info): Likewise.
2580 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2581 (cp_lookup_symbol_in_namespace): Likewise.
2582 (lookup_namespace_scope): Likewise.
2583 (find_symbol_in_baseclass): Likewise.
2584 (cp_lookup_nested_symbol): Likewise.
2585 (cp_lookup_transparent_type_loop): Likewise.
2586 * cp-support.c (copy_string_to_obstack): Likewise.
2587 (make_symbol_overload_list): Likewise.
2588 (make_symbol_overload_list_namespace): Likewise.
2589 (make_symbol_overload_list_adl_namespace): Likewise.
2590 (first_component_command): Likewise.
2591 * cp-valprint.c (cp_print_value): Likewise.
2592 * ctf.c (ctf_xfer_partial): Likewise.
2593 * d-exp.y (StringExp): Likewise.
2594 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2595 (lookup_module_scope): Likewise.
2596 (find_symbol_in_baseclass): Likewise.
2597 (d_lookup_nested_symbol): Likewise.
2598 * dbxread.c (find_stab_function_addr): Likewise.
2599 (read_dbx_symtab): Likewise.
2600 (dbx_end_psymtab): Likewise.
2601 (cp_set_block_scope): Likewise.
2602 * dcache.c (dcache_alloc): Likewise.
2603 * demangle.c (_initialize_demangler): Likewise.
2604 * dicos-tdep.c (dicos_load_module_p): Likewise.
2605 * dictionary.c (dict_create_hashed_expandable): Likewise.
2606 (dict_create_linear_expandable): Likewise.
2607 (expand_hashtable): Likewise.
2608 (add_symbol_linear_expandable): Likewise.
2609 * dwarf2-frame.c (add_cie): Likewise.
2610 (add_fde): Likewise.
2611 (dwarf2_build_frame_info): Likewise.
2612 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2613 (dwarf_expr_fetch_address): Likewise.
2614 (add_piece): Likewise.
2615 (execute_stack_op): Likewise.
2616 * dwarf2loc.c (chain_candidate): Likewise.
2617 (dwarf_entry_parameter_to_value): Likewise.
2618 (read_pieced_value): Likewise.
2619 (write_pieced_value): Likewise.
2620 * dwarf2read.c (dwarf2_read_section): Likewise.
2621 (add_type_unit): Likewise.
2622 (read_comp_units_from_section): Likewise.
2623 (fixup_go_packaging): Likewise.
2624 (dwarf2_compute_name): Likewise.
2625 (dwarf2_physname): Likewise.
2626 (create_dwo_unit_in_dwp_v1): Likewise.
2627 (create_dwo_unit_in_dwp_v2): Likewise.
2628 (read_func_scope): Likewise.
2629 (read_call_site_scope): Likewise.
2630 (dwarf2_attach_fields_to_type): Likewise.
2631 (process_structure_scope): Likewise.
2632 (mark_common_block_symbol_computed): Likewise.
2633 (read_common_block): Likewise.
2634 (abbrev_table_read_table): Likewise.
2635 (guess_partial_die_structure_name): Likewise.
2636 (fixup_partial_die): Likewise.
2637 (add_file_name): Likewise.
2638 (dwarf2_const_value_data): Likewise.
2639 (dwarf2_const_value_attr): Likewise.
2640 (build_error_marker_type): Likewise.
2641 (guess_full_die_structure_name): Likewise.
2642 (anonymous_struct_prefix): Likewise.
2643 (typename_concat): Likewise.
2644 (dwarf2_canonicalize_name): Likewise.
2645 (dwarf2_name): Likewise.
2646 (write_constant_as_bytes): Likewise.
2647 (dwarf2_fetch_constant_bytes): Likewise.
2648 (copy_string): Likewise.
2649 (parse_macro_definition): Likewise.
2650 * elfread.c (elf_symfile_segments): Likewise.
2651 (elf_rel_plt_read): Likewise.
2652 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2653 (elf_gnu_ifunc_resolve_by_got): Likewise.
2654 (elf_read_minimal_symbols): Likewise.
2655 (elf_gnu_ifunc_record_cache): Likewise.
2656 * event-top.c (top_level_prompt): Likewise.
2657 (command_line_handler): Likewise.
2658 * exec.c (resize_section_table): Likewise.
2659 * expprint.c (print_subexp_standard): Likewise.
2660 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2661 * findcmd.c (parse_find_args): Likewise.
2662 * findvar.c (address_from_register): Likewise.
2663 * frame.c (get_prev_frame_always): Likewise.
2664 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2665 (get_section_descriptor): Likewise.
2666 * gdb_obstack.c (obconcat): Likewise.
2667 (obstack_strdup): Likewise.
2668 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2669 (create_set_type): Likewise.
2670 (lookup_unsigned_typename): Likewise.
2671 (lookup_signed_typename): Likewise.
2672 (resolve_dynamic_union): Likewise.
2673 (resolve_dynamic_struct): Likewise.
2674 (add_dyn_prop): Likewise.
2675 (copy_dynamic_prop_list): Likewise.
2676 (arch_flags_type): Likewise.
2677 (append_composite_type_field_raw): Likewise.
2678 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2679 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2680 * go-exp.y (string_exp): Likewise.
2681 * go-lang.c (go_demangle): Likewise.
2682 * guile/guile.c (compute_scheme_string): Likewise.
2683 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2684 (gdbscm_canonicalize_command_name): Likewise.
2685 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2686 (ioscm_init_memory_port): Likewise.
2687 (ioscm_reinit_memory_port): Likewise.
2688 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2689 (gdbscm_gc_dup_argv): Likewise.
2690 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2691 * hppa-tdep.c (internalize_unwinds): Likewise.
2692 (read_unwind_info): Likewise.
2693 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2694 (windows_core_xfer_shared_libraries): Likewise.
2695 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2696 (i386_stap_parse_special_token_triplet): Likewise.
2697 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2698 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2699 * inf-child.c (inf_child_fileio_readlink): Likewise.
2700 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2701 (inf_ptrace_store_register): Likewise.
2702 * infrun.c (follow_exec): Likewise.
2703 (displaced_step_prepare_throw): Likewise.
2704 (save_stop_context): Likewise.
2705 (save_infcall_suspend_state): Likewise.
2706 * jit.c (jit_read_descriptor): Likewise.
2707 (jit_read_code_entry): Likewise.
2708 (jit_symtab_line_mapping_add_impl): Likewise.
2709 (finalize_symtab): Likewise.
2710 (jit_unwind_reg_get_impl): Likewise.
2711 * jv-exp.y (QualifiedName): Likewise.
2712 * jv-lang.c (get_java_utf8_name): Likewise.
2713 (type_from_class): Likewise.
2714 (java_demangle_type_signature): Likewise.
2715 (java_class_name_from_physname): Likewise.
2716 * jv-typeprint.c (java_type_print_base): Likewise.
2717 * jv-valprint.c (java_value_print): Likewise.
2718 * language.c (add_language): Likewise.
2719 * linespec.c (add_sal_to_sals_basic): Likewise.
2720 (add_sal_to_sals): Likewise.
2721 (decode_objc): Likewise.
2722 (find_linespec_symbols): Likewise.
2723 * linux-fork.c (fork_save_infrun_state): Likewise.
2724 * linux-nat.c (linux_nat_detach): Likewise.
2725 (linux_nat_fileio_readlink): Likewise.
2726 * linux-record.c (record_linux_sockaddr): Likewise.
2727 (record_linux_msghdr): Likewise.
2728 (Do): Likewise.
2729 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2730 (linux_collect_regset_section_cb): Likewise.
2731 (linux_get_siginfo_data): Likewise.
2732 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2733 (try_thread_db_load_from_dir): Likewise.
2734 (thread_db_load_search): Likewise.
2735 (info_auto_load_libthread_db): Likewise.
2736 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2737 (m32c_m16c_pointer_to_address): Likewise.
2738 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2739 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2740 * machoread.c (macho_check_dsym): Likewise.
2741 * macroexp.c (resize_buffer): Likewise.
2742 (gather_arguments): Likewise.
2743 (maybe_expand): Likewise.
2744 * macrotab.c (new_macro_key): Likewise.
2745 (new_source_file): Likewise.
2746 (new_macro_definition): Likewise.
2747 * mdebugread.c (parse_symbol): Likewise.
2748 (parse_type): Likewise.
2749 (parse_partial_symbols): Likewise.
2750 (psymtab_to_symtab_1): Likewise.
2751 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2752 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2753 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2754 (mi_cmd_data_read_memory_bytes): Likewise.
2755 (mi_cmd_data_write_memory_bytes): Likewise.
2756 (mi_cmd_trace_frame_collected): Likewise.
2757 * mi/mi-parse.c (mi_parse_argv): Likewise.
2758 (mi_parse): Likewise.
2759 * minidebug.c (lzma_open): Likewise.
2760 (lzma_pread): Likewise.
2761 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2762 (mips_print_fp_register): Likewise.
2763 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2764 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2765 * mt-tdep.c (mt_register_name): Likewise.
2766 (mt_registers_info): Likewise.
2767 (mt_push_dummy_call): Likewise.
2768 * namespace.c (add_using_directive): Likewise.
2769 * nat/linux-btrace.c (perf_event_read): Likewise.
2770 (linux_enable_bts): Likewise.
2771 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2772 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2773 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2774 (nto_parse_redirection): Likewise.
2775 * objc-lang.c (objc_demangle): Likewise.
2776 (find_methods): Likewise.
2777 * objfiles.c (get_objfile_bfd_data): Likewise.
2778 (set_objfile_main_name): Likewise.
2779 (allocate_objfile): Likewise.
2780 (objfile_relocate): Likewise.
2781 (update_section_map): Likewise.
2782 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2783 * p-exp.y (exp): Likewise.
2784 (yylex): Likewise.
2785 * p-valprint.c (pascal_object_print_value): Likewise.
2786 * parse.c (initialize_expout): Likewise.
2787 (mark_completion_tag): Likewise.
2788 (copy_name): Likewise.
2789 (parse_float): Likewise.
2790 (type_stack_reserve): Likewise.
2791 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2792 (ppu2spu_prev_register): Likewise.
2793 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2794 * printcmd.c (printf_wide_c_string): Likewise.
2795 (printf_pointer): Likewise.
2796 * probe.c (parse_probes): Likewise.
2797 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2798 (cmdpy_init): Likewise.
2799 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2800 * python/py-symtab.c (set_sal): Likewise.
2801 * python/py-unwind.c (pyuw_sniffer): Likewise.
2802 * python/python.c (python_interactive_command): Likewise.
2803 (compute_python_string): Likewise.
2804 * ravenscar-thread.c (get_running_thread_id): Likewise.
2805 * record-full.c (record_full_exec_insn): Likewise.
2806 (record_full_core_open_1): Likewise.
2807 * regcache.c (regcache_raw_read_signed): Likewise.
2808 (regcache_raw_read_unsigned): Likewise.
2809 (regcache_cooked_read_signed): Likewise.
2810 (regcache_cooked_read_unsigned): Likewise.
2811 * remote-fileio.c (remote_fileio_func_open): Likewise.
2812 (remote_fileio_func_rename): Likewise.
2813 (remote_fileio_func_unlink): Likewise.
2814 (remote_fileio_func_stat): Likewise.
2815 (remote_fileio_func_system): Likewise.
2816 * remote-mips.c (mips_xfer_memory): Likewise.
2817 (mips_load_srec): Likewise.
2818 (pmon_end_download): Likewise.
2819 * remote.c (new_remote_state): Likewise.
2820 (map_regcache_remote_table): Likewise.
2821 (remote_register_number_and_offset): Likewise.
2822 (init_remote_state): Likewise.
2823 (get_memory_packet_size): Likewise.
2824 (remote_pass_signals): Likewise.
2825 (remote_program_signals): Likewise.
2826 (remote_start_remote): Likewise.
2827 (remote_check_symbols): Likewise.
2828 (remote_query_supported): Likewise.
2829 (extended_remote_attach): Likewise.
2830 (process_g_packet): Likewise.
2831 (store_registers_using_G): Likewise.
2832 (putpkt_binary): Likewise.
2833 (read_frame): Likewise.
2834 (compare_sections_command): Likewise.
2835 (remote_hostio_pread): Likewise.
2836 (remote_hostio_readlink): Likewise.
2837 (remote_file_put): Likewise.
2838 (remote_file_get): Likewise.
2839 (remote_pid_to_exec_file): Likewise.
2840 (_initialize_remote): Likewise.
2841 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2842 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2843 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2844 (bfd_uses_spe_extensions): Likewise.
2845 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2846 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2847 * solib-dsbt.c (decode_loadmap): Likewise.
2848 (fetch_loadmap): Likewise.
2849 (scan_dyntag): Likewise.
2850 (enable_break): Likewise.
2851 (dsbt_relocate_main_executable): Likewise.
2852 * solib-frv.c (fetch_loadmap): Likewise.
2853 (enable_break2): Likewise.
2854 (frv_relocate_main_executable): Likewise.
2855 * solib-spu.c (spu_relocate_main_executable): Likewise.
2856 (spu_bfd_open): Likewise.
2857 * solib-svr4.c (lm_info_read): Likewise.
2858 (read_program_header): Likewise.
2859 (find_program_interpreter): Likewise.
2860 (scan_dyntag): Likewise.
2861 (elf_locate_base): Likewise.
2862 (open_symbol_file_object): Likewise.
2863 (read_program_headers_from_bfd): Likewise.
2864 (svr4_relocate_main_executable): Likewise.
2865 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2866 * solib.c (solib_find_1): Likewise.
2867 (exec_file_find): Likewise.
2868 (solib_find): Likewise.
2869 * source.c (openp): Likewise.
2870 (print_source_lines_base): Likewise.
2871 (forward_search_command): Likewise.
2872 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2873 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2874 (spu_get_overlay_table): Likewise.
2875 * stabsread.c (patch_block_stabs): Likewise.
2876 (define_symbol): Likewise.
2877 (again:): Likewise.
2878 (read_member_functions): Likewise.
2879 (read_one_struct_field): Likewise.
2880 (read_enum_type): Likewise.
2881 (common_block_start): Likewise.
2882 * stack.c (read_frame_arg): Likewise.
2883 (backtrace_command): Likewise.
2884 * stap-probe.c (stap_parse_register_operand): Likewise.
2885 * symfile.c (syms_from_objfile_1): Likewise.
2886 (find_separate_debug_file): Likewise.
2887 (load_command): Likewise.
2888 (load_progress): Likewise.
2889 (load_section_callback): Likewise.
2890 (reread_symbols): Likewise.
2891 (add_filename_language): Likewise.
2892 (allocate_compunit_symtab): Likewise.
2893 (read_target_long_array): Likewise.
2894 (simple_read_overlay_table): Likewise.
2895 * symtab.c (symbol_set_names): Likewise.
2896 (resize_symbol_cache): Likewise.
2897 (rbreak_command): Likewise.
2898 (completion_list_add_name): Likewise.
2899 (completion_list_objc_symbol): Likewise.
2900 (add_filename_to_list): Likewise.
2901 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2902 * target-memory.c (target_write_memory_blocks): Likewise.
2903 * target.c (target_read_string): Likewise.
2904 (read_whatever_is_readable): Likewise.
2905 (target_read_alloc_1): Likewise.
2906 (simple_search_memory): Likewise.
2907 (target_fileio_read_alloc_1): Likewise.
2908 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2909 * top.c (command_line_input): Likewise.
2910 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2911 * tracefile.c (tracefile_fetch_registers): Likewise.
2912 * tracepoint.c (add_memrange): Likewise.
2913 (init_collection_list): Likewise.
2914 (add_aexpr): Likewise.
2915 (trace_dump_actions): Likewise.
2916 (parse_trace_status): Likewise.
2917 (parse_tracepoint_definition): Likewise.
2918 (parse_tsv_definition): Likewise.
2919 (parse_static_tracepoint_marker_definition): Likewise.
2920 * tui/tui-file.c (tui_sfileopen): Likewise.
2921 (tui_file_adjust_strbuf): Likewise.
2922 * tui/tui-io.c (tui_expand_tabs): Likewise.
2923 * tui/tui-source.c (tui_set_source_content): Likewise.
2924 * typeprint.c (find_global_typedef): Likewise.
2925 * ui-file.c (do_ui_file_xstrdup): Likewise.
2926 (ui_file_obsavestring): Likewise.
2927 (mem_file_write): Likewise.
2928 * utils.c (make_hex_string): Likewise.
2929 (get_regcomp_error): Likewise.
2930 (puts_filtered_tabular): Likewise.
2931 (gdb_realpath_keepfile): Likewise.
2932 (ldirname): Likewise.
2933 (gdb_bfd_errmsg): Likewise.
2934 (substitute_path_component): Likewise.
2935 * valops.c (search_struct_method): Likewise.
2936 (find_oload_champ_namespace_loop): Likewise.
2937 * valprint.c (print_decimal_chars): Likewise.
2938 (read_string): Likewise.
2939 (generic_emit_char): Likewise.
2940 * varobj.c (varobj_delete): Likewise.
2941 (varobj_value_get_print_value): Likewise.
2942 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2943 * windows-tdep.c (display_one_tib): Likewise.
2944 * xcoffread.c (read_xcoff_symtab): Likewise.
2945 (process_xcoff_symbol): Likewise.
2946 (swap_sym): Likewise.
2947 (scan_xcoff_symtab): Likewise.
2948 (xcoff_initial_scan): Likewise.
2949 * xml-support.c (gdb_xml_end_element): Likewise.
2950 (xml_process_xincludes): Likewise.
2951 (xml_fetch_content_from_file): Likewise.
2952 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2953 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2954
623fb775 29552015-09-23 James Bowman <james.bowman@ftdichip.com>
2956
2957 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2958 instead of builtin_func_ptr.
2959 (ft32_pointer_to_address): New function.
2960 (ft32_address_class_type_flags): New function.
2961 (ft32_address_class_type_flags_to_name): New function.
2962 (ft32_address_class_name_to_type_flags): New function.
2963 (ft32_gdbarch_init): Set tdep->pc_type. Call
2964 set_gdbarch_pointer_to_address,
2965 set_gdbarch_address_class_type_flags
2966 set_gdbarch_address_class_name_to_type_flags,
2967 and set_gdbarch_address_class_type_flags_to_name.
2968 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2969
e6c2c623
PMR
29702015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2971
2972 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2973 value is a reference, actually dereference it in order to get
2974 the underlying value.
2975
bc1f8cda
SM
29762015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2977
2978 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2979
acaa662f
SM
29802015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2981
2982 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2983 * linespec.c (linespec_lexer_lex_string): Same.
2984
4d9d419e
PL
29852015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2986
2987 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2988
6ec5f4be
PL
29892015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2990
2991 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2992 variable. Call aarch64_decode_adr instead of
2993 aarch64_decode_adrp.
2994 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2995 (aarch64_decode_adr): New function declaration.
2996 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2997 (aarch64_decode_adr): New function, factored out from
2998 aarch64_decode_adrp to decode both adr and adrp instructions.
2999
787749ea
PL
30002015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3001
3002 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3003 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3004 (aarch64-insn.o): New rule.
3005 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3006 (aarch64*-*-linux*): Likewise.
3007 * arch/aarch64-insn.c: New file.
3008 * arch/aarch64-insn.h: New file.
3009 * aarch64-tdep.c: Include arch/aarch64-insn.h.
3010 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
3011 arch/aarch64-insn.h.
3012 (decode_add_sub_imm): Rename to ...
3013 (aarch64_decode_add_sub_imm): ... this.
3014 (decode_adrp): Rename to ...
3015 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
3016 Declare in arch/aarch64-insn.h.
3017 (decode_b): Rename to ...
3018 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
3019 Declare in arch/aarch64-insn.h.
3020 (decode_bcond): Rename to ...
3021 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
3022 Declare in arch/aarch64-insn.h.
3023 (decode_br): Rename to ...
3024 (aarch64_decode_br): ... this.
3025 (decode_cb): Rename to ...
3026 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
3027 Declare in arch/aarch64-insn.h.
3028 (decode_eret): Rename to ...
3029 (aarch64_decode_eret): ... this.
3030 (decode_movz): Rename to ...
3031 (aarch64_decode_movz): ... this.
3032 (decode_orr_shifted_register_x): Rename to ...
3033 (aarch64_decode_orr_shifted_register_x): ... this.
3034 (decode_ret): Rename to ...
3035 (aarch64_decode_ret): ... this.
3036 (decode_stp_offset): Rename to ...
3037 (aarch64_decode_stp_offset): ... this.
3038 (decode_stp_offset_wb): Rename to ...
3039 (aarch64_decode_stp_offset_wb): ... this.
3040 (decode_stur): Rename to ...
3041 (aarch64_decode_stur): ... this.
3042 (decode_tb): Rename to ...
3043 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3044 Declare in arch/aarch64-insn.h.
3045 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3046
183dc7ec
DE
30472015-09-20 Doug Evans <xdje42@gmail.com>
3048
3049 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3050
2ee7123e
DE
30512015-09-20 Doug Evans <xdje42@gmail.com>
3052
3053 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3054 variable name that collides with a parameter.
3055
7d1c9c9b
JB
30562015-09-20 Joel Brobecker <brobecker@adacore.com>
3057
3058 * dwarf2loc.c (locexpr_get_frame_base): Renames
3059 block_op_get_frame_base.
3060 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3061 block_op_get_frame_base by reference to locexpr_get_frame_base.
3062 (loclist_get_frame_base): New function, near identical copy of
3063 locexpr_get_frame_base.
3064 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3065 block_op_get_frame_base by reference to loclist_get_frame_base.
3066
7dc7c195
DE
30672015-09-19 Doug Evans <xdje42@gmail.com>
3068
3069 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3070 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3071
be550b6e
DE
30722015-09-18 Doug Evans <xdje42@gmail.com>
3073
3074 * linux-thread-db.c (record_thread): Return the created thread.
3075 (thread_from_lwp): Likewise.
3076 (thread_db_get_thread_local_address): Update.
3077
615b3f62
DE
30782015-09-18 Doug Evans <xdje42@gmail.com>
3079
3080 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3081 move only member demangled_name up. All uses updated.
3082
015d2e7e
DE
30832015-09-18 Doug Evans <xdje42@gmail.com>
3084
3085 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3086 kind of minimal symbol in the error message.
3087 * objfiles.c (objfile_flavour_name): New function.
3088 * objfiles.h (objfile_flavour_name): Declare.
3089
a0cc84cd
YQ
30902015-09-18 Yao Qi <yao.qi@linaro.org>
3091
3092 * nat/aarch64-linux.c: Include elf/common.h,
3093 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3094 (aarch64_ps_get_thread_area): New function.
3095 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3096 (aarch64_ps_get_thread_area): Declare.
3097 * aarch64-linux-nat.c (ps_get_thread_area): Call
3098 aarch64_ps_get_thread_area.
3099
d2939ba2
MM
31002015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3101
3102 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3103
f2665db5
MM
31042015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3105
3106 * NEWS: Announce new scheduler-locking mode.
3107 * infrun.c (schedlock_replay): New.
3108 (scheduler_enums): Add schedlock_replay.
3109 (scheduler_mode): Change default to schedlock_replay.
3110 (user_visible_resume_ptid): Handle schedlock_replay.
3111 (clear_proceed_status_thread): Stop replaying if resumed thread is
3112 not replaying.
3113 (schedlock_applies): Handle schedlock_replay.
3114 (_initialize_infrun): Document new scheduler-locking mode.
3115 * record-btrace.c (record_btrace_resume): Remove code to stop other
3116 threads when not replaying the resumed thread.
3117
7ff27e9b
MM
31182015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3119
3120 * record-btrace.c ((record_btrace_will_replay): New.
3121 (init_record_btrace_ops): Initialize to_record_will_replay.
3122 * record-full.c ((record_full_will_replay): New.
3123 (init_record_full_ops): Initialize to_record_will_replay.
3124 * target-delegates.c: Regenerated.
3125 * target.c (target_record_will_replay): New.
3126 * target.h (struct target_ops) <to_record_will_replay>: New.
3127 (target_record_will_replay): New.
3128
797094dd
MM
31292015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3130
3131 * record-btrace.c (record_btrace_resume): Call
3132 target_record_stop_replaying.
3133 (record_btrace_stop_replaying_all): New.
3134 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3135 * record-full.c (record_full_stop_replaying): New.
3136 (init_record_full_ops ): Initialize to_record_stop_replaying.
3137 * target-delegates.c: Regenerated.
3138 * target.c (target_record_stop_replaying): New.
3139 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3140 (target_record_stop_replaying): New.
3141
4d10e986
MM
31422015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3143
3144 * record-btrace.c (record_btrace_xfer_partial)
3145 (record_btrace_store_registers, record_btrace_prepare_to_store):
3146 Call record_btrace_is_replaying with inferior_ptid instead of
3147 minus_one_ptid.
3148 (record_btrace_store_registers): Change error message.
3149
a52eab48
MM
31502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3151
3152 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3153 Update users to pass minus_one_ptid.
3154 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3155 * record.c (cmd_record_delete): Pass inferior_ptid to
3156 target_record_is_replaying.
3157 * target-delegates.c: Regenerated.
3158 * target.c (target_record_is_replaying): Add ptid argument.
3159 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3160 argument.
3161 (target_record_is_replaying): Add ptid argument.
3162
cbb55fa7
MM
31632015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3164
3165 * record-btrace.c (record_btrace_open): Remove non_stop check.
3166 * NEWS: Announce that record btrace supports non-stop mode.
3167
d1988021
MM
31682015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3169
3170 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3171 in the TARKET_WAITKIND_NO_HISTORY case.
3172
a6b5be76
MM
31732015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3174
3175 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3176 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3177
ec71cc2f
MM
31782015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3179
3180 * record-btrace.c (get_thread_current_frame): New.
3181 (record_btrace_start_replaying): Call get_thread_current_frame.
3182
0ca912df
MM
31832015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3184
3185 * record-btrace.c (record_btrace_resume_thread): A move request
3186 overwrites a previous move request.
3187 (record_btrace_find_resume_thread): Removed.
3188 (record_btrace_resume): Resume all requested threads.
3189
e3cfc1c7
MM
31902015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3191
3192 * record-btrace.c: Include vec.h.
3193 (record_btrace_find_thread_to_move): Removed.
3194 (btrace_step_no_resumed, btrace_step_again)
3195 (record_btrace_stop_replaying_at_end): New.
3196 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3197 (record_btrace_single_step_forward): Remove calls to
3198 record_btrace_stop_replaying.
3199 (record_btrace_step_thread): Do only one step for BTHR_CONT and
3200 BTHR_RCONT. Keep threads at the end of their history moving.
3201 (record_btrace_wait): Call record_btrace_step_thread for all threads
3202 until one reports an event. Call record_btrace_stop_replaying_at_end
3203 for the eventing thread.
3204
cf8f8f0c
MM
32052015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3206
3207 * record-btrace.c (record_btrace_single_step_forward): Return
3208 NO_HISTORY if a step brings us to the end of the execution history.
3209
011c71b6
MM
32102015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3211
3212 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
3213 to ...
3214 (record_btrace_single_step_forward): ... here and
3215 (record_btrace_single_step_backward): ... here.
3216
d825d248
MM
32172015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3218
3219 * record-btrace.c (btrace_step_spurious)
3220 (record_btrace_single_step_forward)
3221 (record_btrace_single_step_backward): New.
3222 (record_btrace_step_thread): Call record_btrace_single_step_forward
3223 and record_btrace_single_step_backward.
3224
3c615f99
MM
32252015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3226
3227 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3228 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3229
987e68b1
MM
32302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3231
3232 * record-btrace.c (btrace_thread_flag_to_str)
3233 (record_btrace_cancel_resume): New.
3234 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3235 (record_btrace_resume): Print execution direction.
3236 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3237 (record_btrace_wait): Call record_btrace_cancel_resume.
3238
6e4879f0
MM
32392015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3240
3241 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3242 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3243 (record_btrace_find_thread_to_move): Also accept threads that have
3244 BTHR_STOP set.
3245 (btrace_step_stopped_on_request, record_btrace_stop): New.
3246 (record_btrace_step_thread): Support BTHR_STOP.
3247 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3248 (init_record_btrace_ops): Initialize to_stop.
3249
5953356c
MM
32502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3251
3252 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3253 target_is_non_stop_p ().
3254
bfca584f
PMR
32552015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3256
3257 * ada-typeprint.c (print_array_type): Do not describe arrays as
3258 packed when they embed dynamic elements.
3259
5382cfab
PW
32602015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3261
3262 * symtab.h (address_class): Document that TLS variables
3263 are handled by LOC_UNRESOLVED.
3264 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3265 * printcmd.c (address_info): Don't relocate TLS variables.
3266
b277c936
PL
32672015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3268
3269 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3270 (decode_adrp): Likewise.
3271 (decode_b): Likewise.
3272 (decode_bcond): Likewise.
3273 (decode_br): Likewise.
3274 (decode_cb): Likewise.
3275 (decode_eret): Likewise.
3276 (decode_movz): Likewise.
3277 (decode_orr_shifted_register_x): Likewise.
3278 (decode_ret): Likewise.
3279 (decode_stp_offset): Likewise.
3280 (decode_stp_offset_wb): Likewise.
3281 (decode_stur): Likewise.
3282 (decode_tb): Likewise.
3283 (aarch64_analyze_prologue): Likewise.
3284 (pass_in_x): Likewise.
3285 (pass_in_v): Likewise.
3286 (pass_on_stack): Likewise.
3287 (aarch64_push_dummy_call): Likewise.
3288 (aarch64_extract_return_value): Likewise.
3289 (aarch64_store_return_value): Likewise.
3290 (aarch64_return_value): Likewise.
3291 (aarch64_record_asimd_load_store): Likewise.
3292 (aarch64_record_load_store): Likewise.
3293 (aarch64_record_data_proc_simd_fp): Likewise.
3294
141c5cc4
JK
32952015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3296
3297 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3298 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3299 (ppc64_skip_trampoline_code_1): ... here.
3300 (ppc64_skip_trampoline_code): New wrapper function.
3301 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3302
750ce8d1
YQ
33032015-09-15 Yao Qi <yao.qi@linaro.org>
3304
3305 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3306 function.
3307 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3308 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3309 if target_can_do_single_step returns 1.
3310 * remote.c (struct vCont_action_support) <s, S>: New fields.
3311 (PACKET_vContSupported): New enum.
3312 (remote_protocol_features): New element for vContSupported.
3313 (remote_query_supported): Append "vContSupported+".
3314 (remote_vcont_probe): Remove support_s and support_S, use
3315 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3316 vCont packet if c and C actions are not supported.
3317 (remote_can_do_single_step): New function.
3318 (init_remote_ops): Install it to to_can_do_single_step.
3319 (_initialize_remote): Call add_packet_config_cmd.
3320 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3321 (target_can_do_single_step): New macro.
3322 * target-delegates.c: Re-generated.
3323
ade90bde
YQ
33242015-09-15 Yao Qi <yao.qi@linaro.org>
3325
3326 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3327 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3328 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3329 New function.
3330 (aarch64_siginfo_from_compat_siginfo): New function.
3331 * nat/aarch64-linux.h: Include signal.h.
3332 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3333 (compat_timer_t, compat_clock_t): Likewise.
3334 (struct compat_timeval): New.
3335 (union compat_sigval): New.
3336 (struct compat_siginfo): New.
3337 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3338 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3339 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3340 (cpt_si_band, cpt_si_fd): Likewise.
3341
4c2f2a79
PA
33422015-09-14 Pedro Alves <palves@redhat.com>
3343
3344 * infrun.c (current_stop_id): New global.
3345 (get_stop_id, new_stop_id): New functions.
3346 (fetch_inferior_event): Handle normal_stop proceeding the target.
3347 (struct stop_context): New.
3348 (save_stop_context, release_stop_context_cleanup)
3349 (stop_context_changed): New functions.
3350 (normal_stop): Return true if the hook-stop changes the stop
3351 context.
3352 * infrun.h (get_stop_id): Declare.
3353 (normal_stop): Now returns int. Add documentation.
3354
919e6dbe
PMR
33552015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3356
3357 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3358 comment. Handle packed arrays.
3359
b027a8fa
PA
33602015-09-14 Pedro Alves <palves@redhat.com>
3361
3362 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3363 mention of maint set/show target-non-stop.
3364
b459a59b
DB
33652015-09-11 Don Breazeal <donb@codesourcery.com>
3366
3367 * NEWS: Announce new remote packets for the exec-events
3368 feature and the exec-events feature and associated commands.
3369
d46addbb
DB
33702015-09-11 Don Breazeal <donb@codesourcery.com>
3371
3372 * remote.c (remote_exec_event_p): New function.
3373 (remote_insert_exec_catchpoint): New function.
3374 (remote_remove_exec_catchpoint): New function.
3375 (init_extended_remote_ops): Initialize extended_remote_ops
3376 members to_insert_exec_catchpoint and
3377 to_remove_exec_catchpoint.
3378
94585166
DB
33792015-09-11 Don Breazeal <donb@codesourcery.com>
3380 Luis Machado <lgustavo@codesourcery.com>
3381
3382 * infrun.c (follow_exec): Use process-style ptid for
3383 exec message. Call add_inferior_with_spaces and
3384 target_follow_exec.
3385 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3386 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3387 * remote.c (remote_pspace_data): New static variable.
3388 (remote_pspace_data_cleanup): New function.
3389 (get_remote_exec_file): New function.
3390 (set_remote_exec_file_1): New function.
3391 (set_remote_exec_file): New function.
3392 (show_remote_exec_file): New function.
3393 (remote_exec_file): Delete static variable.
3394 (anonymous enum) <PACKET_exec_event_feature>: New
3395 enumeration constant.
3396 (remote_protocol_features): Add entry for exec-events feature.
3397 (remote_query_supported): Add client side of qSupported query
3398 for exec-events feature.
3399 (remote_follow_exec): New function.
3400 (remote_parse_stop_reply): Handle 'exec' stop reason.
3401 (extended_remote_run, extended_remote_create_inferior): Call
3402 get_remote_exec_file and set_remote_exec_file_1.
3403 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3404 member.
3405 (_initialize_remote): Call
3406 register_program_space_data_with_cleanup. Call
3407 add_packet_config_cmd for remote exec-events feature.
3408 Modify call to add_setshow_string_noescape_cmd for exec-file
3409 to use new functions set_remote_exec_file and
3410 show_remote_exec_file.
3411 * target-debug.h, target-delegates.c: Regenerated.
3412 * target.c (target_follow_exec): New function.
3413 * target.h (struct target_ops) <to_follow_exec>: New member.
3414 (target_follow_exec): Declare new function.
3415
669e74e8
PL
34162015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3417
3418 * aarch64-tdep.c (decode_cb): Move up comment describing the
3419 encoding.
3420 (decode_tb): Fix a typo in comment above the function. Move up
3421 comment describing the encoding.
3422
4d50586d
PL
34232015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3424
3425 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3426
6dcaef99
MMN
34272015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3428
3429 PR gdb/18947
3430 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3431 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3432
5da1a4d3
SM
34332015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3434
3435 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3436 operations.
3437
108d56a4
SM
34382015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3439
3440 * ada-lang.c (ada_search_struct_field): Constify parameters
3441 and/or variables..
3442 (xget_renaming_scope): Likewise.
3443 (ada_is_redundant_range_encoding): Likewise.
3444 (scan_discrim_bound): Likewise.
3445 (to_fixed_range_type): Likewise.
3446
dd2e65cc
YQ
34472015-09-10 Yao Qi <yao.qi@linaro.org>
3448
3449 * breakpoint.c (download_tracepoint_locations): New local
3450 can_download_tracepoint. Check the result of
3451 target_can_download_tracepoint and save it in
3452 can_download_tracepoint if there are tracepoints to download.
3453 * linux-nat.h (enum tribool): Move it to ...
3454 * common/common-types.h: ... here.
3455
cfe75703
PA
34562015-09-09 Pedro Alves <palves@redhat.com>
3457
3458 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3459 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3460
a85a3079
PA
34612015-09-09 Pedro Alves <palves@redhat.com>
3462
3463 * continuations.c (add_continuation, restore_thread_cleanup)
3464 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3465 (do_all_continuations_thread, do_all_continuations)
3466 (discard_all_continuations_thread_callback)
3467 (discard_all_continuations_thread, discard_all_continuations)
3468 (add_intermediate_continuation)
3469 (do_all_intermediate_continuations_thread_callback)
3470 (do_all_intermediate_continuations_thread)
3471 (do_all_intermediate_continuations)
3472 (discard_all_intermediate_continuations_thread_callback)
3473 (discard_all_intermediate_continuations_thread)
3474 (discard_all_intermediate_continuations): Delete.
3475 * continuations.h (add_continuation, do_all_continuations)
3476 (do_all_continuations_thread, discard_all_continuations)
3477 (discard_all_continuations_thread, add_intermediate_continuation)
3478 (do_all_intermediate_continuations)
3479 (do_all_intermediate_continuations_thread)
3480 (discard_all_intermediate_continuations)
3481 (discard_all_intermediate_continuations_thread): Delete
3482 declarations.
3483 * event-top.c (stdin_event_handler): Delete references to
3484 continuations.
3485 * gdbthread.h (struct thread_info): Delete continuations and
3486 intermediate_continuations fields.
3487 * inf-loop.c (inferior_event_handler): Remove references to
3488 continuations.
3489 * infrun.c (infrun_thread_stop_requested_callback): Remove
3490 references to continuations.
3491 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3492 * thread.c: Don't include "continuations.h".
3493 (clear_thread_inferior_resources): Remove references to
3494 continuations.
3495
0700e23e
PA
34962015-09-09 Pedro Alves <palves@redhat.com>
3497
3498 * infcall.c (struct dummy_frame_context_saver): Delete.
3499 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3500 (dummy_frame_context_saver_drop)
3501 (dummy_frame_context_saver_cleanup)
3502 (dummy_frame_context_saver_get_regs)
3503 (dummy_frame_context_saver_setup): Delete.
3504 * infcall.h (dummy_frame_context_saver_drop)
3505 (dummy_frame_context_saver_cleanup)
3506 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3507 Delete.
3508 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3509 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3510 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3511
cfc31633
PA
35122015-09-09 Pedro Alves <palves@redhat.com>
3513
3514 * breakpoint.c: Include "thread-fsm.h".
3515 (struct until_break_command_continuation_args): Delete.
3516 (struct until_break_fsm): New.
3517 (until_break_fsm_ops): New global.
3518 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3519 (until_break_command_continuation): Delete.
3520 (until_break_fsm_clean_up): New function.
3521 (until_break_fsm_async_reply_reason): New function.
3522 (until_break_command): Adjust to create an until_break_fsm instead
3523 of a continuation.
3524 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3525 here.
3526 * infcmd.c (struct until_next_fsm): New.
3527 (until_next_fsm_ops): New global.
3528 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3529 (until_next_continuation): Delete.
3530 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3531 functions.
3532 (until_next_command): Adjust to create a new until_next_fsm
3533 instead of a continuation.
3534
388a7084
PA
35352015-09-09 Pedro Alves <palves@redhat.com>
3536
3537 * infcall.c: Include thread_fsm.h.
3538 (struct call_return_meta_info): New.
3539 (get_call_return_value): New function, factored out from
3540 call_function_by_hand_dummy.
3541 (struct call_thread_fsm): New.
3542 (call_thread_fsm_ops): New global.
3543 (new_call_thread_fsm, call_thread_fsm_should_stop)
3544 (call_thread_fsm_should_notify_stop): New functions.
3545 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3546 the thread.
3547 (call_function_by_hand_dummy): Create a new call_thread_fsm
3548 instance, associate it with the thread, and wait for the FSM to
3549 finish. If finished successfully, fetch the function's result
3550 value out of the FSM.
3551 * infrun.c (fetch_inferior_event): If the FSM says the stop
3552 shouldn't be notified, don't call normal_stop.
3553 (maybe_remove_breakpoints): New function, factored out from ...
3554 (normal_stop): ... here. Simplify.
3555 * infrun.h (maybe_remove_breakpoints): Declare.
3556 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3557 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3558 (thread_fsm_should_notify_stop): Declare.
3559
243a9253
PA
35602015-09-09 Pedro Alves <palves@redhat.com>
3561
3562 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3563 * breakpoint.c (handle_jit_event): Print debug output.
3564 (bpstat_what): Split event callback handling to ...
3565 (bpstat_run_callbacks): ... this new function.
3566 (momentary_bkpt_print_it): No longer handle bp_finish here.
3567 * breakpoint.h (bpstat_run_callbacks): Declare.
3568 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3569 <thread_fsm>: New field.
3570 (thread_cancel_execution_command): Declare.
3571 * infcmd.c: Include thread-fsm.h.
3572 (struct step_command_fsm): New.
3573 (step_command_fsm_ops): New global.
3574 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3575 (step_1): Adjust to use step_command_fsm_prepare and
3576 prepare_one_step.
3577 (struct step_1_continuation_args): Delete.
3578 (step_1_continuation): Delete.
3579 (step_command_fsm_should_stop): New function.
3580 (step_once): Delete.
3581 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3582 (prepare_one_step): New function, based on step_once.
3583 (until_next_command): Remove step_multi reference.
3584 (struct return_value_info): New.
3585 (print_return_value): Rename to ...
3586 (print_return_value_1): ... this. New struct return_value_info
3587 parameter. Adjust.
3588 (print_return_value): Reimplement as wrapper around
3589 print_return_value_1.
3590 (struct finish_command_fsm): New.
3591 (finish_command_continuation): Delete.
3592 (finish_command_fsm_ops): New global.
3593 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3594 functions.
3595 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3596 New.
3597 (finish_command_continuation_free_arg): Delete.
3598 (finish_command_fsm_async_reply_reason): New.
3599 (finish_backward, finish_forward): Change symbol parameter to a
3600 finish_command_fsm. Adjust.
3601 (finish_command): Create a finish_command_fsm. Adjust.
3602 * infrun.c: Include "thread-fsm.h".
3603 (clear_proceed_status_thread): Delete the thread's FSM.
3604 (infrun_thread_stop_requested_callback): Cancel the thread's
3605 execution command.
3606 (clean_up_just_stopped_threads_fsms): New function.
3607 (fetch_inferior_event): Handle the event_thread's should_stop
3608 method saying the command isn't done yet.
3609 (process_event_stop_test): Run breakpoint callbacks here.
3610 (print_stop_event): Rename to ...
3611 (print_stop_location): ... this.
3612 (restore_current_uiout_cleanup): New function.
3613 (print_stop_event): Reimplement.
3614 (normal_stop): No longer notify the end_stepping_range observers
3615 here handle "step N" nor "finish" here. No longer call
3616 print_stop_event here.
3617 * infrun.h (struct return_value_info): Forward declare.
3618 (print_return_value): Declare.
3619 (print_stop_event): Change prototype.
3620 * thread-fsm.c: New file.
3621 * thread-fsm.h: New file.
3622 * thread.c: Include "thread-fsm.h".
3623 (thread_cancel_execution_command): New function.
3624 (clear_thread_inferior_resources): Call it.
3625 * cli/cli-interp.c (cli_on_normal_stop): New function.
3626 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3627 observer.
3628 * mi/mi-interp.c: Include "thread-fsm.h".
3629 (restore_current_uiout_cleanup): Delete.
3630 (mi_on_normal_stop): If the thread has an FSM associated, and it
3631 finished, ask it for the async-reply-reason to print. Always call
3632 print_stop_event here, regardless of the top-level interpreter.
3633 Check bpstat_what to tell whether an asynchronous breakpoint hit
3634 triggered.
3635 * tui/tui-interp.c (tui_on_normal_stop): New function.
3636 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3637
0b333c5e
PA
36382015-09-09 Pedro Alves <palves@redhat.com>
3639
3640 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3641 check whether the target can async.
3642 * inf-loop.c (inferior_event_handler): Only call target_async if
3643 the target can async.
3644 * infcall.c: Include top.h and interps.h.
3645 (run_inferior_call): For the interpreter to sync mode while
3646 running the infcall. Call wait_sync_command_done instead of
3647 wait_for_inferior plus normal_stop.
3648 * infcmd.c (prepare_execution_command): Don't check whether the
3649 target can async when running in the foreground.
3650 (step_1): Delete synchronous case handling.
3651 (step_once): Always install a continuation, even in sync mode.
3652 (until_next_command, finish_forward): Don't check whether the
3653 target can async.
3654 (attach_command_post_wait, notice_new_inferior): Always install a
3655 continuation, even in sync mode.
3656 * infrun.c (mark_infrun_async_event_handler): New function.
3657 (proceed): In sync mode, mark infrun's event source instead of
3658 waiting for events here.
3659 (fetch_inferior_event): If the target can't async, do a blocking
3660 wait.
3661 (prepare_to_wait): In sync mode, mark infrun's event source.
3662 (infrun_async_inferior_event_handler): No longer bail out if the
3663 target can't async.
3664 * infrun.h (mark_infrun_async_event_handler): New declaration.
3665 * linux-nat.c (linux_nat_wait_1): Remove calls to
3666 set_sigint_trap/clear_sigint_trap.
3667 (linux_nat_terminal_inferior): No longer check whether the target
3668 can async.
3669 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3670 comment.
3671 (mi_execute_command_input_handler): No longer check whether the
3672 target is async. Update and simplify comment.
3673 * target.c (default_target_wait): New function.
3674 * target.h (struct target_ops) <to_wait>: Now defaults to
3675 default_target_wait.
3676 (default_target_wait): Declare.
3677 * top.c (wait_sync_command_done): New function, factored out from
3678 ...
3679 (maybe_wait_sync_command_done): ... this.
3680 * top.h (wait_sync_command_done): Declare.
3681 * target-delegates.c: Regenerate.
3682
0568462b
MM
36832015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3684
3685 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3686 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3687 Remove include of sys/utsname.h.
3688 (linux_determine_kernel_ptr_bits): Remove.
3689 (linux_determine_kernel_start): New.
3690 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3691 Update check.
3692 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3693 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3694 initialization.
3695 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3696 assignment.
3697
72e02483
PA
36982015-09-07 Pedro Alves <palves@redhat.com>
3699
3700 * guile/guile-internal.h (as_a_scm_t_subr): New.
3701 * guile/guile.c (misc_guile_functions): Use it.
3702 * guile/scm-arch.c (arch_functions): Use it.
3703 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3704 Use it.
3705 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3706 * guile/scm-cmd.c (command_functions): Use it.
3707 * guile/scm-disasm.c (disasm_functions): Use it.
3708 * guile/scm-exception.c (exception_functions)
3709 (private_exception_functions): Use it.
3710 * guile/scm-frame.c (frame_functions)
3711 * guile/scm-gsmob.c (gsmob_functions): Use it.
3712 * guile/scm-iterator.c (iterator_functions): Use it.
3713 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3714 * guile/scm-math.c (math_functions): Use it.
3715 * guile/scm-objfile.c (objfile_functions): Use it.
3716 * guile/scm-param.c (parameter_functions): Use it.
3717 * guile/scm-ports.c (port_functions, private_port_functions): Use
3718 it.
3719 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3720 * guile/scm-progspace.c (pspace_functions): Use it.
3721 * guile/scm-string.c (string_functions): Use it.
3722 * guile/scm-symbol.c (symbol_functions): Use it.
3723 * guile/scm-symtab.c (symtab_functions): Use it.
3724 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3725 it.
3726 * guile/scm-value.c (value_functions): Use it.
3727
e65b5245
AB
37282015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3731 (tui_next_win): Likewise.
3732 (tui_prev_win): Likewise.
3733 (tui_partial_win_by_name): Likewise.
3734 (tui_init_generic_part): Likewise.
3735 (init_content_element): Likewise.
3736 (tui_del_window): Likewise.
3737 (tui_free_window): Likewise.
3738 (tui_del_data_windows): Likewise.
3739 (tui_free_data_content): Likewise.
3740 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3741 * tui/tui-regs.c (tui_show_register_group): Likewise.
3742 * tui/tui-win.c (tui_resize_all): Likewise.
3743 (tui_set_focus): Likewise.
3744 (tui_set_win_height): Likewise.
3745 (make_invisible_and_set_new_height): Likewise.
3746 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3747 * tui/tui-wingeneral.c (make_visible): Likewise.
3748
b03e6ad9
AB
37492015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3752
be903358
AB
37532015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3756 pointer.
3757 * dbxread.c (dbx_end_psymtab): Likewise.
3758 * gnu-nat.c (gnu_write_inferior): Likewise.
3759 * mdebugread.c (cross_ref): Likewise.
3760 * p-valprint.c (pascal_val_print): Likewise.
3761 * xcoffread.c (xcoff_end_psymtab): Likewise.
3762
02f024f9
YQ
37632015-09-04 Yao Qi <yao.qi@linaro.org>
3764
3765 * NEWS: Mention the aarch64 multi-arch debugging support.
3766
cd7c1778
PMR
37672015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3768
3769 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3770 type instead of a TYPE_CODE_INT one for the string_char_type
3771 and the ada_primitive_type_char types.
3772
39edd165
YQ
37732015-09-03 Yao Qi <yao.qi@linaro.org>
3774
3775 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3776 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3777 aarch64_linux_region_ok_for_watchpoint.
3778 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3779 New function.
3780 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3781 Declare it.
3782
6c214e7c
PP
37832015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3784
3785 * gdb_obstack.h (obstack_strdup): Declare.
3786 * gdb_obstack.c (obstack_strdup): Define.
3787 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3788 * gdbarch.c: Regenerate.
3789 * gdbarch.h: Regenerate.
3790 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3791
eed8b28a
PP
37922015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3793
3794 * gdbtypes.c (copy_type_recursive): Update documentation.
3795
73c6b475
SDJ
37962015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3797
3798 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3799 as zero.
3800
ad1c917a
SDJ
38012015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3802
3803 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3804
3bd7e5b7
SDJ
38052015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3806
3807 * solib-svr4.c (solib_event_probe_action): Call
3808 get_probe_argument_count using TRY...CATCH.
3809 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3810
f469e8ce
SDJ
38112015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3812
3813 * probe.h (struct probe_ops) <get_probe_argument_count,
3814 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3815 the comment that the function can throw an exception.
3816 (get_probe_argument_count): Likewise.
3817 (evaluate_probe_argument): Likewise.
3818 * stap-probe.c (stap_get_opcode): Call error instead of
3819 internal_error.
3820 (stap_get_expected_argument_type): Likewise. Add argument
3821 'probe'. Improve error message by mentioning the probe's name.
3822 (stap_parse_probe_arguments): Adjust call to
3823 stap_get_expected_argument_type.
3824 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3825 not zero. Call internal_error if GDB requests an argument but the
3826 probe has no arguments.
3827
dc5c8746
PMR
38282015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3829
3830 * ada-lang.c (ada_resolve_function): Do not ask the user what
3831 match to use when in completion mode.
3832
136765ea
AB
38332015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3834
3835 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3836 cast of NULL.
3837
90b81c5f
MF
38382015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3839
3840 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3841 call_abi using XSHAL_ABI macro.
3842
1cd36e54
DE
38432015-08-29 Doug Evans <xdje42@gmail.com>
3844
3845 * symtab.h (struct symbol): Tweak comment.
3846
8f57eec2
PP
38472015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3848
3849 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3850 gdbarch obstack instead of on the heap. Update commentary
3851 accordingly.
3852
38eebd71
JB
38532015-08-28 Joel Brobecker <brobecker@adacore.com>
3854
3855 GDB 7.10 released.
3856
d63dd61e
SM
38572015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3858
3859 * NEWS: Update entry about non-8-bits addressable memory.
3860
6f059256
UW
38612015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3862
3863 Revert:
3864 2014-11-06 Doug Evans <xdje42@gmail.com>
3865 * solib.c (solib_global_lookup): Fetch arch from objfile,
3866 not target_gdbarch.
3867
70987a92 38682015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
3869
3870 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3871 attempt to relocate a TLS variable offset.
3872
70987a92 38732015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
3874
3875 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3876 registered yet. Set inferior_ptid while calling target_read_memory.
3877
70987a92 38782015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
3879
3880 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3881 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3882 * linux-nat.c (check_stopped_by_breakpoint): Use
3883 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3884
70987a92 38852015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
3886
3887 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3888 thread was not yet discovered, use thread_from_lwp instead of
3889 calling thread_db_find_new_threads_1.
3890
f5cdf498
SM
38912015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3892
3893 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3894 statements.
3895
fd2ae5d6
SM
38962015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3897
3898 * NEWS: Document support for non-8-bits addressable memory.
3899
14d88147
PA
39002015-08-27 Pedro Alves <palves@redhat.com>
3901
3902 * configure.ac: Remove AC_TYPE_SIGNAL call.
3903 * configure, config.in: Regenerate.
3904
a40805d4
PA
39052015-08-27 Pedro Alves <palves@redhat.com>
3906
3907 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3908 * extension-priv.h: Include signal.h.
3909 (struct signal_handler) <handler>: Change type to sighandler_t.
3910 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3911 * inflow.c (sigint_ours, sigquit_ours): Change type to
3912 sighandler_t.
3913 (child_terminal_inferior): Remove casts.
3914 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3915 (osig): Change type to sighandler_t.
3916 * nto-procfs.c (ofunc): Change type to sighandler_t.
3917 (procfs_wait): Remove casts.
3918 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3919 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3920 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3921
0750520d
PA
39222015-08-27 Pedro Alves <palves@redhat.com>
3923
3924 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3925 * gnulib/aclocal.m4: Renegerate.
3926 * gnulib/config.in: Renegerate.
3927 * gnulib/configure: Renegerate.
3928 * gnulib/import/Makefile.am: Update.
3929 * gnulib/import/Makefile.in: Regenerate.
3930 * gnulib/import/m4/gnulib-cache.m4: Update.
3931 * gnulib/import/m4/gnulib-comp.m4: Update.
3932 * gnulib/import/m4/signal_h.m4: New file.
3933 * gnulib/import/signal.in.h: New file.
3934
a5c0808e
PA
39352015-08-27 Pedro Alves <palves@redhat.com>
3936
3937 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3938 (MIN_MEMORY_PACKET_SIZE): New.
3939 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3940 (get_memory_packet_size): Adjust. No longer limit the max packet
3941 size.
3942 (set_memory_packet_size): Adjust, and remove dead code.
3943 (remote_check_symbols): Use xmalloc and a cleanup instead of
3944 alloca.
3945 (remote_packet_size): No longer cap the packet size.
3946 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3947
cdaec3f3
LM
39482015-08-26 Luis Machado <lgustavo@codesourcery.com>
3949
3950 * compile/compile.c (compile_to_object): Mention language in
3951 error message.
3952
e9756d52
PP
39532015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3954
3955 * target.c (target_pre_inferior): Unset attach_flag.
3956
1dc7a623
SM
39572015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3958
3959 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3960 * gdbarch.c: Re-generate.
3961
8d749320
SM
39622015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3963
6711b7f8
SM
3964 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3965 function with the XNEW-family equivalent.
8d749320
SM
3966 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3967 * ada-exp.y (write_ambiguous_var): Likewise.
3968 * ada-lang.c (resolve_subexp): Likewise.
3969 (user_select_syms): Likewise.
3970 (assign_aggregate): Likewise.
3971 (ada_evaluate_subexp): Likewise.
3972 (cache_symbol): Likewise.
3973 * addrmap.c (allocate_key): Likewise.
3974 (addrmap_create_mutable): Likewise.
3975 * aix-thread.c (sync_threadlists): Likewise.
3976 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3977 (alpha_gdbarch_init): Likewise.
3978 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3979 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3980 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3981 * arm-tdep.c (push_stack_item): Likewise.
3982 (arm_displaced_step_copy_insn): Likewise.
3983 (arm_gdbarch_init): Likewise.
3984 (_initialize_arm_tdep): Likewise.
3985 * avr-tdep.c (push_stack_item): Likewise.
3986 * ax-general.c (new_agent_expr): Likewise.
3987 * block.c (block_initialize_namespace): Likewise.
3988 * breakpoint.c (alloc_counted_command_line): Likewise.
3989 (update_dprintf_command_list): Likewise.
3990 (parse_breakpoint_sals): Likewise.
3991 (decode_static_tracepoint_spec): Likewise.
3992 (until_break_command): Likewise.
3993 (clear_command): Likewise.
3994 (update_global_location_list): Likewise.
3995 (get_breakpoint_objfile_data) Likewise.
3996 * btrace.c (ftrace_new_function): Likewise.
3997 (btrace_set_insn_history): Likewise.
3998 (btrace_set_call_history): Likewise.
3999 * buildsym.c (add_symbol_to_list): Likewise.
4000 (record_pending_block): Likewise.
4001 (start_subfile): Likewise.
4002 (start_buildsym_compunit): Likewise.
4003 (push_subfile): Likewise.
4004 (end_symtab_get_static_block): Likewise.
4005 (buildsym_init): Likewise.
4006 * cli/cli-cmds.c (source_command): Likewise.
4007 * cli/cli-decode.c (add_cmd): Likewise.
4008 * cli/cli-script.c (build_command_line): Likewise.
4009 (setup_user_args): Likewise.
4010 (realloc_body_list): Likewise.
4011 (process_next_line): Likewise.
4012 (copy_command_lines): Likewise.
4013 * cli/cli-setshow.c (do_set_command): Likewise.
4014 * coff-pe-read.c (read_pe_exported_syms): Likewise.
4015 * coffread.c (coff_locate_sections): Likewise.
4016 (coff_symtab_read): Likewise.
4017 (coff_read_struct_type): Likewise.
4018 * common/cleanups.c (make_my_cleanup2): Likewise.
4019 * common/common-exceptions.c (throw_it): Likewise.
4020 * common/filestuff.c (make_cleanup_close): Likewise.
4021 * common/format.c (parse_format_string): Likewise.
4022 * common/queue.h (DEFINE_QUEUE_P): Likewise.
4023 * compile/compile-object-load.c (munmap_list_add): Likewise.
4024 (compile_object_load): Likewise.
4025 * compile/compile-object-run.c (compile_object_run): Likewise.
4026 * compile/compile.c (append_args): Likewise.
4027 * corefile.c (specify_exec_file_hook): Likewise.
4028 * cp-support.c (make_symbol_overload_list): Likewise.
4029 * cris-tdep.c (push_stack_item): Likewise.
4030 (cris_gdbarch_init): Likewise.
4031 * ctf.c (ctf_trace_file_writer_new): Likewise.
4032 * dbxread.c (init_header_files): Likewise.
4033 (add_new_header_file): Likewise.
4034 (init_bincl_list): Likewise.
4035 (dbx_end_psymtab): Likewise.
4036 (start_psymtab): Likewise.
4037 (dbx_end_psymtab): Likewise.
4038 * dcache.c (dcache_init): Likewise.
4039 * dictionary.c (dict_create_hashed): Likewise.
4040 (dict_create_hashed_expandable): Likewise.
4041 (dict_create_linear): Likewise.
4042 (dict_create_linear_expandable): Likewise.
4043 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4044 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4045 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4046 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4047 (decode_frame_entry_1): Likewise.
4048 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4049 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4050 * dwarf2read.c (dwarf2_has_info): Likewise.
4051 (create_signatured_type_table_from_index): Likewise.
4052 (dwarf2_read_index): Likewise.
4053 (dw2_get_file_names_reader): Likewise.
4054 (create_all_type_units): Likewise.
4055 (read_cutu_die_from_dwo): Likewise.
4056 (init_tu_and_read_dwo_dies): Likewise.
4057 (init_cutu_and_read_dies): Likewise.
4058 (create_all_comp_units): Likewise.
4059 (queue_comp_unit): Likewise.
4060 (inherit_abstract_dies): Likewise.
4061 (read_call_site_scope): Likewise.
4062 (dwarf2_add_field): Likewise.
4063 (dwarf2_add_typedef): Likewise.
4064 (dwarf2_add_member_fn): Likewise.
4065 (attr_to_dynamic_prop): Likewise.
4066 (abbrev_table_alloc_abbrev): Likewise.
4067 (abbrev_table_read_table): Likewise.
4068 (add_include_dir): Likewise.
4069 (add_file_name): Likewise.
4070 (dwarf_decode_line_header): Likewise.
4071 (dwarf2_const_value_attr): Likewise.
4072 (dwarf_alloc_block): Likewise.
4073 (parse_macro_definition): Likewise.
4074 (set_die_type): Likewise.
4075 (write_psymtabs_to_index): Likewise.
4076 (create_cus_from_index): Likewise.
4077 (dwarf2_create_include_psymtab): Likewise.
4078 (process_psymtab_comp_unit_reader): Likewise.
4079 (build_type_psymtab_dependencies): Likewise.
4080 (read_comp_units_from_section): Likewise.
4081 (compute_compunit_symtab_includes): Likewise.
4082 (create_dwo_unit_in_dwp_v1): Likewise.
4083 (create_dwo_unit_in_dwp_v2): Likewise.
4084 (read_func_scope): Likewise.
4085 (process_structure_scope): Likewise.
4086 (mark_common_block_symbol_computed): Likewise.
4087 (load_partial_dies): Likewise.
4088 (dwarf2_symbol_mark_computed): Likewise.
4089 * elfread.c (elf_symfile_segments): Likewise.
4090 (elf_read_minimal_symbols): Likewise.
4091 * environ.c (make_environ): Likewise.
4092 * eval.c (evaluate_subexp_standard): Likewise.
4093 * event-loop.c (create_file_handler): Likewise.
4094 (create_async_signal_handler): Likewise.
4095 (create_async_event_handler): Likewise.
4096 (create_timer): Likewise.
4097 * exec.c (build_section_table): Likewise.
4098 * fbsd-nat.c (fbsd_remember_child): Likewise.
4099 * fork-child.c (fork_inferior): Likewise.
4100 * frv-tdep.c (new_variant): Likewise.
4101 * gdbarch.sh (gdbarch_alloc): Likewise.
4102 (append_name): Likewise.
4103 * gdbtypes.c (rank_function): Likewise.
4104 (copy_type_recursive): Likewise.
4105 (add_dyn_prop): Likewise.
4106 * gnu-nat.c (make_proc): Likewise.
4107 (make_inf): Likewise.
4108 (gnu_write_inferior): Likewise.
4109 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4110 (build_std_type_info_type): Likewise.
4111 * guile/scm-param.c (compute_enum_list): Likewise.
4112 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4113 * guile/scm-value.c (gdbscm_value_call): Likewise.
4114 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4115 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4116 (read_unwind_info): Likewise.
4117 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4118 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4119 (call_function_by_hand_dummy): Likewise.
4120 * infcmd.c (step_once): Likewise.
4121 (finish_forward): Likewise.
4122 (attach_command): Likewise.
4123 (notice_new_inferior): Likewise.
4124 * inferior.c (add_inferior_silent): Likewise.
4125 * infrun.c (add_displaced_stepping_state): Likewise.
4126 (save_infcall_control_state): Likewise.
4127 (save_inferior_ptid): Likewise.
4128 (_initialize_infrun): Likewise.
4129 * jit.c (bfd_open_from_target_memory): Likewise.
4130 (jit_gdbarch_data_init): Likewise.
4131 * language.c (add_language): Likewise.
4132 * linespec.c (decode_line_2): Likewise.
4133 * linux-nat.c (add_to_pid_list): Likewise.
4134 (add_initial_lwp): Likewise.
4135 * linux-thread-db.c (add_thread_db_info): Likewise.
4136 (record_thread): Likewise.
4137 (info_auto_load_libthread_db): Likewise.
4138 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4139 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4140 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4141 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4142 * macrocmd.c (macro_define_command): Likewise.
4143 * macroexp.c (gather_arguments): Likewise.
4144 * macroscope.c (sal_macro_scope): Likewise.
4145 * macrotab.c (new_macro_table): Likewise.
4146 * mdebugread.c (push_parse_stack): Likewise.
4147 (parse_partial_symbols): Likewise.
4148 (parse_symbol): Likewise.
4149 (psymtab_to_symtab_1): Likewise.
4150 (new_block): Likewise.
4151 (new_psymtab): Likewise.
4152 (mdebug_build_psymtabs): Likewise.
4153 (add_pending): Likewise.
4154 (elfmdebug_build_psymtabs): Likewise.
4155 * mep-tdep.c (mep_gdbarch_init): Likewise.
4156 * mi/mi-main.c (mi_execute_command): Likewise.
4157 * mi/mi-parse.c (mi_parse_argv): Likewise.
4158 * minidebug.c (lzma_open): Likewise.
4159 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4160 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4161 * mips-tdep.c (mips_gdbarch_init): Likewise.
4162 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4163 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4164 * mt-tdep.c (mt_registers_info): Likewise.
4165 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4166 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4167 (linux_enable_pt): Likewise.
4168 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4169 (linux_xfer_osdata_processgroups): Likewise.
4170 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4171 * nto-procfs.c (procfs_meminfo): Likewise.
4172 * objc-lang.c (start_msglist): Likewise.
4173 (selectors_info): Likewise.
4174 (classes_info): Likewise.
4175 (find_methods): Likewise.
4176 * objfiles.c (allocate_objfile): Likewise.
4177 (update_section_map): Likewise.
4178 * osabi.c (gdbarch_register_osabi): Likewise.
4179 (gdbarch_register_osabi_sniffer): Likewise.
4180 * parse.c (start_arglist): Likewise.
4181 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4182 (hwdebug_insert_point): Likewise.
4183 * printcmd.c (display_command): Likewise.
4184 (ui_printf): Likewise.
4185 * procfs.c (create_procinfo): Likewise.
4186 (load_syscalls): Likewise.
4187 (proc_get_LDT_entry): Likewise.
4188 (proc_update_threads): Likewise.
4189 * prologue-value.c (make_pv_area): Likewise.
4190 (pv_area_store): Likewise.
4191 * psymtab.c (extend_psymbol_list): Likewise.
4192 (init_psymbol_list): Likewise.
4193 (allocate_psymtab): Likewise.
4194 * python/py-inferior.c (add_thread_object): Likewise.
4195 * python/py-param.c (compute_enum_values): Likewise.
4196 * python/py-value.c (valpy_call): Likewise.
4197 * python/py-varobj.c (py_varobj_iter_next): Likewise.
4198 * python/python.c (ensure_python_env): Likewise.
4199 * record-btrace.c (record_btrace_start_replaying): Likewise.
4200 * record-full.c (record_full_reg_alloc): Likewise.
4201 (record_full_mem_alloc): Likewise.
4202 (record_full_end_alloc): Likewise.
4203 (record_full_core_xfer_partial): Likewise.
4204 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
4205 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
4206 * remote-notif.c (remote_notif_state_allocate): Likewise.
4207 * remote.c (demand_private_info): Likewise.
4208 (remote_notif_stop_alloc_reply): Likewise.
4209 (remote_enable_btrace): Likewise.
4210 * reverse.c (save_bookmark_command): Likewise.
4211 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4212 * rx-tdep.c (rx_gdbarch_init): Likewise.
4213 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4214 * ser-go32.c (dos_get_tty_state): Likewise.
4215 (dos_copy_tty_state): Likewise.
4216 * ser-mingw.c (ser_windows_open): Likewise.
4217 (ser_console_wait_handle): Likewise.
4218 (ser_console_get_tty_state): Likewise.
4219 (make_pipe_state): Likewise.
4220 (net_windows_open): Likewise.
4221 * ser-unix.c (hardwire_get_tty_state): Likewise.
4222 (hardwire_copy_tty_state): Likewise.
4223 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4224 * solib-dsbt.c (dsbt_current_sos): Likewise.
4225 (dsbt_relocate_main_executable): Likewise.
4226 * solib-frv.c (frv_current_sos): Likewise.
4227 (frv_relocate_main_executable): Likewise.
4228 * solib-spu.c (spu_bfd_fopen): Likewise.
4229 * solib-svr4.c (lm_info_read): Likewise.
4230 (svr4_copy_library_list): Likewise.
4231 (svr4_default_sos): Likewise.
4232 * source.c (find_source_lines): Likewise.
4233 (line_info): Likewise.
4234 (add_substitute_path_rule): Likewise.
4235 * spu-linux-nat.c (spu_bfd_open): Likewise.
4236 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4237 * stabsread.c (dbx_lookup_type): Likewise.
4238 (read_type): Likewise.
4239 (read_member_functions): Likewise.
4240 (read_struct_fields): Likewise.
4241 (read_baseclasses): Likewise.
4242 (read_args): Likewise.
4243 (_initialize_stabsread): Likewise.
4244 * stack.c (func_command): Likewise.
4245 * stap-probe.c (handle_stap_probe): Likewise.
4246 * symfile.c (addrs_section_sort): Likewise.
4247 (addr_info_make_relative): Likewise.
4248 (load_section_callback): Likewise.
4249 (add_symbol_file_command): Likewise.
4250 (init_filename_language_table): Likewise.
4251 * symtab.c (create_filename_seen_cache): Likewise.
4252 (sort_search_symbols_remove_dups): Likewise.
4253 (search_symbols): Likewise.
4254 * target.c (make_cleanup_restore_target_terminal): Likewise.
4255 * thread.c (new_thread): Likewise.
4256 (enable_thread_stack_temporaries): Likewise.
4257 (make_cleanup_restore_current_thread): Likewise.
4258 (thread_apply_all_command): Likewise.
4259 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4260 * top.c (gdb_readline_wrapper): Likewise.
4261 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4262 * tracepoint.c (trace_find_line_command): Likewise.
4263 (all_tracepoint_actions_and_cleanup): Likewise.
4264 (make_cleanup_restore_current_traceframe): Likewise.
4265 (get_uploaded_tp): Likewise.
4266 (get_uploaded_tsv): Likewise.
4267 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4268 (tui_alloc_win_info): Likewise.
4269 (tui_alloc_content): Likewise.
4270 (tui_add_content_elements): Likewise.
4271 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4272 (tui_set_disassem_content): Likewise.
4273 * ui-file.c (ui_file_new): Likewise.
4274 (stdio_file_new): Likewise.
4275 (tee_file_new): Likewise.
4276 * utils.c (make_cleanup_restore_integer): Likewise.
4277 (add_internal_problem_command): Likewise.
4278 * v850-tdep.c (v850_gdbarch_init): Likewise.
4279 * valops.c (find_oload_champ): Likewise.
4280 * value.c (allocate_value_lazy): Likewise.
4281 (record_latest_value): Likewise.
4282 (create_internalvar): Likewise.
4283 * varobj.c (install_variable): Likewise.
4284 (new_variable): Likewise.
4285 (new_root_variable): Likewise.
4286 (cppush): Likewise.
4287 (_initialize_varobj): Likewise.
4288 * windows-nat.c (windows_make_so): Likewise.
4289 * x86-nat.c (x86_add_process): Likewise.
4290 * xcoffread.c (arrange_linetable): Likewise.
4291 (allocate_include_entry): Likewise.
4292 (process_linenos): Likewise.
4293 (SYMBOL_DUP): Likewise.
4294 (xcoff_start_psymtab): Likewise.
4295 (xcoff_end_psymtab): Likewise.
4296 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4297 * xtensa-tdep.c (xtensa_register_type): Likewise.
4298 * gdbarch.c: Regenerate.
4299 * gdbarch.h: Regenerate.
4300
17d8546e
DB
43012015-08-25 Don Breazeal <donb@codesourcery.com>
4302
4303 * infrun.c (follow_exec): Re-order operations for
4304 handling follow-exec-mode "new".
4305 (handle_inferior_event_1): Assign ecs->event_thread
4306 to the current thread.
4307 * remote.c (get_remote_arch_state): Add an assertion.
4308
ba49e44b
PA
43092015-08-26 Pedro Alves <palves@redhat.com>
4310
4311 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4312
7541ab03 43132015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 4314
7541ab03 4315 PR gdb/18804
abc56d60
PA
4316 * defs.h (maybe_quit): Declare.
4317 (QUIT): Now calls maybe_quit.
4318 * event-loop.c (clear_async_signal_handler)
4319 (async_signal_handler_is_marked): New functions.
4320 * event-loop.h (async_signal_handler_is_marked)
4321 (clear_async_signal_handler): New declarations.
4322 * remote.c (remote_check_pending_interrupt): New function.
4323 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4324 longer check whether the target is async. If waiting for a stop
4325 reply, and a Ctrl-C as been sent to the target, offer to
4326 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4327 Otherwise do not disconnect and throw a quit.
4328 (_initialize_remote): Install remote_check_pending_interrupt as
4329 to_check_pending_interrupt.
4330 * target.c (target_check_pending_interrupt): New function.
4331 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4332 field.
4333 (target_check_pending_interrupt): New declaration.
4334 * utils.c (maybe_quit): New function.
4335 * target-delegates.c: Regenerate.
4336
dfe7f77c
YQ
43372015-08-25 Yao Qi <yao.qi@linaro.org>
4338
4339 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4340 Rename local variable pid to tid, and get lwpid of lwp. Update
4341 debug output.
4342
63e43d3a
PMR
43432015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4344
4345 * ada-lang.c (ada_read_var_value): Add a var_block argument
4346 and pass it to default_read_var_value.
4347 * block.c (block_static_link): New accessor.
4348 * block.h (block_static_link): Declare it.
4349 * buildsym.c (finish_block_internal): Add a static_link
4350 argument. If there is a static link, associate it to the new
4351 block.
4352 (finish_block): Add a static link argument and pass it to
4353 finish_block_internal.
4354 (end_symtab_get_static_block): Update calls to finish_block and
4355 to finish_block_internal.
4356 (end_symtab_with_blockvector): Update call to
4357 finish_block_internal.
4358 * buildsym.h: Forward-declare struct dynamic_prop.
4359 (struct context_stack): Add a static_link field.
4360 (finish_block): Add a static link argument.
4361 * c-exp.y: Remove an obsolete comment (evaluation of variables
4362 already start from the selected frame, and now they climb *up*
4363 the call stack) and propagate the block information to the
4364 produced expression.
4365 * d-exp.y: Likewise.
4366 * f-exp.y: Likewise.
4367 * go-exp.y: Likewise.
4368 * jv-exp.y: Likewise.
4369 * m2-exp.y: Likewise.
4370 * p-exp.y: Likewise.
4371 * coffread.c (coff_symtab_read): Update calls to finish_block.
4372 * dbxread.c (process_one_symbol): Likewise.
4373 * xcoffread.c (read_xcoff_symtab): Likewise.
4374 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4375 "sym" parameter to struct block_symbol, update its uses and pass
4376 its block to calls to read_var_value.
4377 (convert_symbol_sym): Update the calls to convert_one_symbol.
4378 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4379 call to read_var_value.
4380 * dwarf2loc.c (block_op_get_frame_base): New.
4381 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4382 get_frame_base method.
4383 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4384 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4385 instead of the selected frame in order to evaluate the
4386 expression.
4387 (dwarf2_evaluate_property): Add a frame argument. Update call
4388 to dwarf2_locexpr_baton_eval to provide a frame in available and
4389 to handle the absence of address stack.
4390 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4391 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4392 declaration.
4393 (read_func_scope): Record any available static link description.
4394 Update call to finish_block.
4395 (read_lexical_block_scope): Update call to finish_block.
4396 * findvar.c (follow_static_link): New.
4397 (get_hosting_frame): New.
4398 (default_read_var_value): Add a var_block argument. Use
4399 get_hosting_frame to handle non-local references.
4400 (read_var_value): Add a var_block argument and pass it to the
4401 LA_READ_VAR_VALUE method.
4402 * gdbtypes.c (resolve_dynamic_range): Update calls to
4403 dwarf2_evaluate_property.
4404 (resolve_dynamic_type_internal): Likewise.
4405 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4406 read_var_value, passing it the block coming from symbol lookup.
4407 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4408 read_var_value (TODO).
4409 * infcmd.c (finish_command_continuation): Update call to
4410 read_var_value, passing it the block coming from symbol lookup.
4411 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4412 * language.h (struct language_defn): Add a var_block argument to
4413 the LA_READ_VAR_VALUE method.
4414 * objfiles.c (struct static_link_htab_entry): New.
4415 (static_link_htab_entry_hash): New.
4416 (static_link_htab_entry_eq): New.
4417 (objfile_register_static_link): New.
4418 (objfile_lookup_static_link): New.
4419 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4420 * objfiles.h: Include hashtab.h.
4421 (struct objfile): Add a static_links field.
4422 (objfile_register_static_link): New.
4423 (objfile_lookup_static_link): New.
4424 * printcmd.c (print_variable_and_value): Update call to
4425 read_var_value.
4426 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4427 * python/py-frame.c (frapy_read_var): Update call to
4428 read_var_value, passing it the block coming from symbol lookup.
4429 * python/py-framefilter.c (extract_sym): Add a sym_block
4430 parameter and set the pointed value to NULL (TODO).
4431 (enumerate_args): Update call to extract_sym.
4432 (enumerate_locals): Update calls to extract_sym and to
4433 read_var_value.
4434 * python/py-symbol.c (sympy_value): Update call to
4435 read_var_value (TODO).
4436 * stack.c (read_frame_local): Update call to read_var_value.
4437 (read_frame_arg): Likewise.
4438 (return_command): Likewise.
4439 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4440 method.
4441 (struct symbol): Add a block field.
4442 (SYMBOL_BLOCK): New accessor.
4443 * valops.c (value_of_variable): Remove frame/block handling and
4444 pass the block argument to read_var_value, which does this job
4445 now.
4446 (value_struct_elt_for_reference): Update calls to
4447 read_var_value.
4448 (value_of_this): Pass the block found to read_var_value.
4449 * value.h (read_var_value): Add a var_block argument.
4450 (default_read_var_value): Likewise.
4451
ed8b7b42
YQ
44522015-08-25 Yao Qi <yao.qi@linaro.org>
4453
4454 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4455 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4456 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4457
db3cb7cb
YQ
44582015-08-25 Yao Qi <yao.qi@linaro.org>
4459
4460 * Makefile.in (aarch64-liunx.o): New rule.
4461 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4462 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4463 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4464 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4465 extern.
4466 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4467 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4468 * nat/aarch64-linux.c: New file.
4469 * nat/aarch64-linux.h: New file.
4470
f6011a1c
YQ
44712015-08-25 Yao Qi <yao.qi@linaro.org>
4472
4473 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4474 lwp_arch_private_info and ptid_of_lwp.
4475
5e35436e
YQ
44762015-08-25 Yao Qi <yao.qi@linaro.org>
4477
4478 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4479 Move it to nat/aarch64-linux-hw-point.c.
4480 (debug_reg_change_callback): Likewise.
4481 (aarch64_notify_debug_reg_change): :Likewise.
4482 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4483 (aarch64_dr_update_callback_param): New.
4484 (debug_reg_change_callback): New function.
4485 (aarch64_notify_debug_reg_change): Likewise.
4486 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4487 Remove the declaration.
4488
4a8a7965
YQ
44892015-08-25 Yao Qi <yao.qi@linaro.org>
4490
4491 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4492 Call current_lwp_ptid.
4493
32a271ee
YQ
44942015-08-25 Yao Qi <yao.qi@linaro.org>
4495
4496 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4497 debug_printf.
4498
5e137137
YQ
44992015-08-25 Yao Qi <yao.qi@linaro.org>
4500
4501 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4502 ptid_get_pid rather than ptid_get_lwp.
4503
73b8c1fd
PA
45042015-08-24 Pedro Alves <palves@redhat.com>
4505
4506 * NEWS (New commands): Mention set/show remote
4507 multiprocess-extensions-packet.
4508 * remote.c (remote_query_supported): Only tell the server to use
4509 the multiprocess extensions if the user hasn't force-disabled them
4510 with "set remote multiprocess-extensions-packet off".
4511
4a626d0a
PA
45122015-08-24 Pedro Alves <palves@redhat.com>
4513
4514 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4515 1029a8112290f6eee9d7878a391c49db42c999bd.
4516 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4517 Regenerate.
4518 * gnulib/import/Makefile.am: Update.
4519 * gnulib/import/Makefile.in: Update.
4520 * gnulib/import/alloca.in.h: Update.
4521 * gnulib/import/basename-lgpl.c: Update.
4522 * gnulib/import/canonicalize-lgpl.c: Update.
4523 * gnulib/import/config.charset: Update.
4524 * gnulib/import/dirent.in.h: Update.
4525 * gnulib/import/dirfd.c: Update.
4526 * gnulib/import/dirname-lgpl.c: Update.
4527 * gnulib/import/dirname.h: Update.
4528 * gnulib/import/dosname.h: Update.
4529 * gnulib/import/errno.in.h: Update.
4530 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4531 * gnulib/import/extra/snippet/c++defs.h: Update.
4532 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4533 * gnulib/import/extra/update-copyright: Update.
4534 * gnulib/import/float+.h: Update.
4535 * gnulib/import/float.c: Update.
4536 * gnulib/import/float.in.h: Update.
4537 * gnulib/import/fnmatch.c: Update.
4538 * gnulib/import/fnmatch.in.h: Update.
4539 * gnulib/import/fnmatch_loop.c: Update.
4540 * gnulib/import/fpucw.h: Update.
4541 * gnulib/import/frexp.c: Update.
4542 * gnulib/import/frexpl.c: Update.
4543 * gnulib/import/gettimeofday.c: Update.
4544 * gnulib/import/inttypes.in.h: Update.
4545 * gnulib/import/isnan.c: Update.
4546 * gnulib/import/isnand-nolibm.h: Update.
4547 * gnulib/import/isnand.c: Update.
4548 * gnulib/import/isnanl-nolibm.h: Update.
4549 * gnulib/import/isnanl.c: Update.
4550 * gnulib/import/itold.c: Update.
4551 * gnulib/import/localcharset.c: Update.
4552 * gnulib/import/localcharset.h: Update.
4553 * gnulib/import/lstat.c: Update.
4554 * gnulib/import/m4/00gnulib.m4: Update.
4555 * gnulib/import/m4/absolute-header.m4: Update.
4556 * gnulib/import/m4/alloca.m4: Update.
4557 * gnulib/import/m4/canonicalize.m4: Update.
4558 * gnulib/import/m4/codeset.m4: Update.
4559 * gnulib/import/m4/configmake.m4: Update.
4560 * gnulib/import/m4/dirent_h.m4: Update.
4561 * gnulib/import/m4/dirfd.m4: Update.
4562 * gnulib/import/m4/dirname.m4: Update.
4563 * gnulib/import/m4/double-slash-root.m4: Update.
4564 * gnulib/import/m4/eealloc.m4: Update.
4565 * gnulib/import/m4/errno_h.m4: Update.
4566 * gnulib/import/m4/exponentd.m4: Update.
4567 * gnulib/import/m4/exponentl.m4: Update.
4568 * gnulib/import/m4/extensions.m4: Update.
4569 * gnulib/import/m4/extern-inline.m4: Update.
4570 * gnulib/import/m4/fcntl-o.m4: Update.
4571 * gnulib/import/m4/float_h.m4: Update.
4572 * gnulib/import/m4/fnmatch.m4: Update.
4573 * gnulib/import/m4/fpieee.m4: Update.
4574 * gnulib/import/m4/frexp.m4: Update.
4575 * gnulib/import/m4/frexpl.m4: Update.
4576 * gnulib/import/m4/gettimeofday.m4: Update.
4577 * gnulib/import/m4/glibc21.m4: Update.
4578 * gnulib/import/m4/gnulib-cache.m4: Update.
4579 * gnulib/import/m4/gnulib-common.m4: Update.
4580 * gnulib/import/m4/gnulib-comp.m4: Update.
4581 * gnulib/import/m4/gnulib-tool.m4: Update.
4582 * gnulib/import/m4/include_next.m4: Update.
4583 * gnulib/import/m4/inttypes-pri.m4: Update.
4584 * gnulib/import/m4/inttypes.m4: Update.
4585 * gnulib/import/m4/isnand.m4: Update.
4586 * gnulib/import/m4/isnanl.m4: Update.
4587 * gnulib/import/m4/largefile.m4: Update.
4588 * gnulib/import/m4/localcharset.m4: Update.
4589 * gnulib/import/m4/locale-fr.m4: Update.
4590 * gnulib/import/m4/locale-ja.m4: Update.
4591 * gnulib/import/m4/locale-zh.m4: Update.
4592 * gnulib/import/m4/longlong.m4: Update.
4593 * gnulib/import/m4/lstat.m4: Update.
4594 * gnulib/import/m4/malloc.m4: Update.
4595 * gnulib/import/m4/malloca.m4: Update.
4596 * gnulib/import/m4/math_h.m4: Update.
4597 * gnulib/import/m4/mbrtowc.m4: Update.
4598 * gnulib/import/m4/mbsinit.m4: Update.
4599 * gnulib/import/m4/mbsrtowcs.m4: Update.
4600 * gnulib/import/m4/mbstate_t.m4: Update.
4601 * gnulib/import/m4/memchr.m4: Update.
4602 * gnulib/import/m4/memmem.m4: Update.
4603 * gnulib/import/m4/mmap-anon.m4: Update.
4604 * gnulib/import/m4/multiarch.m4: Update.
4605 * gnulib/import/m4/nocrash.m4: Update.
4606 * gnulib/import/m4/off_t.m4: Update.
4607 * gnulib/import/m4/pathmax.m4: Update.
4608 * gnulib/import/m4/readlink.m4: Update.
4609 * gnulib/import/m4/rename.m4: Update.
4610 * gnulib/import/m4/rmdir.m4: Update.
4611 * gnulib/import/m4/ssize_t.m4: Update.
4612 * gnulib/import/m4/stat.m4: Update.
4613 * gnulib/import/m4/stdbool.m4: Update.
4614 * gnulib/import/m4/stddef_h.m4: Update.
4615 * gnulib/import/m4/stdint.m4: Update.
4616 * gnulib/import/m4/stdio_h.m4: Update.
4617 * gnulib/import/m4/stdlib_h.m4: Update.
4618 * gnulib/import/m4/string_h.m4: Update.
4619 * gnulib/import/m4/strstr.m4: Update.
4620 * gnulib/import/m4/strtok_r.m4: Update.
4621 * gnulib/import/m4/sys_socket_h.m4: Update.
4622 * gnulib/import/m4/sys_stat_h.m4: Update.
4623 * gnulib/import/m4/sys_time_h.m4: Update.
4624 * gnulib/import/m4/sys_types_h.m4: Update.
4625 * gnulib/import/m4/time_h.m4: Update.
4626 * gnulib/import/m4/unistd_h.m4: Update.
4627 * gnulib/import/m4/warn-on-use.m4: Update.
4628 * gnulib/import/m4/wchar_h.m4: Update.
4629 * gnulib/import/m4/wchar_t.m4: Update.
4630 * gnulib/import/m4/wctype_h.m4: Update.
4631 * gnulib/import/m4/wint_t.m4: Update.
4632 * gnulib/import/malloc.c: Update.
4633 * gnulib/import/malloca.c: Update.
4634 * gnulib/import/malloca.h: Update.
4635 * gnulib/import/math.in.h: Update.
4636 * gnulib/import/mbrtowc.c: Update.
4637 * gnulib/import/mbsinit.c: Update.
4638 * gnulib/import/mbsrtowcs-impl.h: Update.
4639 * gnulib/import/mbsrtowcs-state.c: Update.
4640 * gnulib/import/mbsrtowcs.c: Update.
4641 * gnulib/import/memchr.c: Update.
4642 * gnulib/import/memmem.c: Update.
4643 * gnulib/import/pathmax.h: Update.
4644 * gnulib/import/readlink.c: Update.
4645 * gnulib/import/ref-add.sin: Update.
4646 * gnulib/import/ref-del.sin: Update.
4647 * gnulib/import/rename.c: Update.
4648 * gnulib/import/rmdir.c: Update.
4649 * gnulib/import/same-inode.h: Update.
4650 * gnulib/import/stat.c: Update.
4651 * gnulib/import/stdbool.in.h: Update.
4652 * gnulib/import/stddef.in.h: Update.
4653 * gnulib/import/stdint.in.h: Update.
4654 * gnulib/import/stdio.c: Update.
4655 * gnulib/import/stdio.in.h: Update.
4656 * gnulib/import/stdlib.in.h: Update.
4657 * gnulib/import/str-two-way.h: Update.
4658 * gnulib/import/streq.h: Update.
4659 * gnulib/import/string.in.h: Update.
4660 * gnulib/import/stripslash.c: Update.
4661 * gnulib/import/strnlen1.c: Update.
4662 * gnulib/import/strnlen1.h: Update.
4663 * gnulib/import/strstr.c: Update.
4664 * gnulib/import/strtok_r.c: Update.
4665 * gnulib/import/sys_stat.in.h: Update.
4666 * gnulib/import/sys_time.in.h: Update.
4667 * gnulib/import/sys_types.in.h: Update.
4668 * gnulib/import/time.in.h: Update.
4669 * gnulib/import/unistd.in.h: Update.
4670 * gnulib/import/verify.h: Update.
4671 * gnulib/import/wchar.in.h: Update.
4672 * gnulib/import/wctype.in.h: Update.
4673 * gnulib/import/gettimeofday.c: New file.
4674 * gnulib/import/m4/absolute-header.m4: New file.
4675 * gnulib/import/m4/gettimeofday.m4: New file.
4676 * gnulib/import/m4/sys_socket_h.m4: New file.
4677 * gnulib/import/m4/sys_time_h.m4: New file.
4678 * gnulib/import/stdio.c: Delete file.
4679 * gnulib/import/sys_time.in.h: New file.
4680
438e1e42
PA
46812015-08-24 Pedro Alves <palves@redhat.com>
4682
4683 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4684 * common/gdb_sys_time.h: New file.
4685 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4686 * gdb_select.h: Likewise.
4687 * gdb_usleep.c: Likewise.
4688 * maint.c: Likewise.
4689 * mi/mi-main.c: Likewise.
4690 * mi/mi-parse.h: Likewise.
4691 * remote-fileio.c: Likewise.
4692 * remote-m32r-sdi.c: Likewise.
4693 * remote.c: Likewise.
4694 * ser-base.c: Likewise.
4695 * ser-pipe.c: Likewise.
4696 * ser-tcp.c: Likewise.
4697 * ser-unix.c: Likewise.
4698 * symfile.c: Likewise.
4699 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4700 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4701 * utils.c: Likewise.
4702
40e0b271
PA
47032015-08-24 Pedro Alves <palves@redhat.com>
4704
4705 * NEWS: Mention removed support for the various ROM monitors.
4706 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4707 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4708 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4709 gdb_target_obs.
4710 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4711 gdb_target_obs.
4712 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4713 dsrec.o from gdb_target_obs.
4714 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4715 from gdb_target_obs.
4716 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4717 gdb_target_obs.
4718 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4719 dink32-rom.o from gdb_target_obs.
4720 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4721 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4722 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4723 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4724
f8904751
PA
47252015-08-21 Pedro Alves <palves@redhat.com>
4726
4727 * frame.c (null_frame_id): Explicitly zero-initialize.
4728
049412e3
TT
47292015-08-21 Tom Tromey <tromey@redhat.com>
4730
4731 * dwarf2read.c (struct dwarf2_section_info): Rename field
4732 'asection' to 'section'.
4733 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4734 (dwarf2_locate_sections, dwarf2_locate_sections)
4735 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4736 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4737 (dwarf2_locate_v2_dwp_sections): Adjust.
4738
948578a9
PP
47392015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4740
4741 * top.h (gdb_in_secondary_prompt_p): Declare.
4742 * top.c (gdb_secondary_prompt_depth): Define.
4743 (gdb_in_secondary_prompt_p): Define.
4744 (gdb_readline_wrapper_cleanup): Decrement
4745 gdb_secondary_prompt_depth.
4746 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4747 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4748 are in a secondary prompt.
4749
7a8bcb88
PP
47502015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4751
4752 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4753 emit the newline.
4754
2d7711a3
GB
47552015-08-21 Gary Benson <gbenson@redhat.com>
4756
4757 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4758
4313b8c0
GB
47592015-08-21 Gary Benson <gbenson@redhat.com>
4760
4761 * target.h (struct target_ops) <to_fileio_open>: New argument
4762 warn_if_slow. Update comment. All implementations updated.
4763 (target_fileio_open_warn_if_slow): New declaration.
4764 * target.c (target_fileio_open): Renamed as...
4765 (target_fileio_open_1): ...this. New argument warn_if_slow.
4766 Pass warn_if_slow to implementation. Update debug printing.
4767 (target_fileio_open): New function.
4768 (target_fileio_open_warn_if_slow): Likewise.
4769 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4770 target_fileio_open_warn_if_slow.
4771
f36b8719
GB
47722015-08-21 Gary Benson <gbenson@redhat.com>
4773
4774 * nat/linux-namespaces.c (linux_mntns_access_fs):
4775 Do not overwrite old_chain.
4776
40045d91
MF
47772015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4778
4779 * arch/xtensa.h: New file.
4780 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4781 (ps_get_thread_area): New function.
4782 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4783 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4784 * xtensa-tdep.c (osabi.h): New #include.
4785 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4786 xtensa-specific hooks.
4787 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4788 member and move the structure to arch/xtensa.h.
4789
80152258
PA
47902015-08-21 Pedro Alves <palves@redhat.com>
4791
4792 * remote.c (struct readahead_cache): New.
4793 (struct remote_state) <readahead_cache>: New field.
4794 (remote_open_1): Invalidate the cache.
4795 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4796 functions.
4797 (remote_hostio_pwrite): Invalidate the readahead cache.
4798 (remote_hostio_pread): Rename to ...
4799 (remote_hostio_pread_vFile): ... this.
4800 (remote_hostio_pread_from_cache): New function.
4801 (remote_hostio_pread): Reimplement.
4802 (remote_hostio_close): Invalidate the readahead cache.
4803
88fc5eb7
MC
48042015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4805
4806 PR build/18843
4807 * procfs.c: Include "filestuff.h".
4808
6f1cb6ea
PP
48092015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4810
4811 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4812 curch.
4813 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4814 cur_line or curch, instead call wmove().
4815 (init_win_info) [CMD_WIN]: Likewise.
4816 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4817 instead call getcury().
4818 (tui_redisplay_readline): Don't set cur_line or curch.
4819 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4820 getcury().
4821 (tui_cont_sig): Remove call to wmove.
4822 (tui_getc): Don't read cur_line or curch, instead call getcury()
4823 or getyx(). Don't set curch.
4824 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4825 set cur_line or curch. Always move cursor to (0,0).
4826
221e1a37
PA
48272015-08-20 Pedro Alves <palves@redhat.com>
4828
4829 * infrun.c (print_target_wait_results): Make extern.
4830 * infrun.h (print_target_wait_results): Declare.
4831 * remote.c (set_stop_requested_callback): Delete.
4832 (process_initial_stop_replies): New function.
4833 (remote_start_remote): Use it.
4834 (stop_reply_queue_length): New function.
4835
40e3ad0e
PA
48362015-08-20 Pedro Alves <palves@redhat.com>
4837
4838 * dwarf2read.c (process_full_comp_unit): To tell whether
4839 start_subfile managed to deduce a language, test for
4840 language_unknown instead of language_c.
4841
af39b327
PMR
48422015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4843
4844 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4845 matches attributes.
4846
7d45c7c3
KB
48472015-08-19 Kevin Buettner <kevinb@redhat.com>
4848
4849 * dwarf2read.c (dwarf2_string_attr): New function.
4850 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4851 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4852 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4853 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4854 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4855
4d6cceb4
DE
48562015-08-18 Doug Evans <dje@google.com>
4857 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4858
4859 PR mi/18833
4860 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4861 if MI-like.
4862 * mi/mi-out.c: #include "vec.h".
4863 (ui_filep): New type.
4864 (DEV_VEC_P (ui_filep)): New type.
4865 (struct ui_out_data) <buffer, original_buffer>: Delete.
4866 (struct ui_out_data) <streams>: New member.
4867 (mi_ui_out_impl): Add data_destroy field.
4868 (mi_field_string, mi_field_fmt): Update.
4869 (mi_flush, mi_redirect, field_separator): Update.
4870 (mi_open, mi_close): Update.
4871 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4872 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4873 (mi_out_new): Call mi_out_data_ctor.
4874
26d56a93
SL
48752015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4876
4877 * remote.c (strprefix): New.
4878 (remote_parse_stop_reply): Use strprefix instead of strncmp
4879 to ensure exact match of keyword.
4880
566f5e3b
AB
48812015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4882
4883 * gdb_bfd.c (debug_bfd_cache): New variable.
4884 (show_bfd_cache_debug): New function.
4885 (gdb_bfd_open): Add debug logging.
4886 (gdb_bfd_ref): Likewise.
4887 (gdb_bfd_unref): Likewise.
4888 (_initialize_gdb_bfd): Add new set/show command.
4889 * NEWS: Mention new command.
4890
18989b3c
AB
48912015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4892
4893 * gdb_bfd.c (bfd_sharing): New variable.
4894 (show_bfd_sharing): New function.
4895 (gdb_bfd_open): Check bfd_sharing variable.
4896 (_initialize_gdb_bfd): Add new set/show command.
4897 * NEWS: Mention new command.
4898
c04fe68f
AB
48992015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4902 field.
4903 (struct gdb_bfd_cache_search): Likewise.
4904 (eq_bfd): Compare the size, inode, and device id fields.
4905 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4906 (gdb_bfd_ref): Likewise.
4907 (gdb_bfd_unref): Likewise.
4908
b2a33439
PA
49092015-08-18 Pedro Alves <palves@redhat.com>
4910
4911 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4912 target implements to_always_non_stop_p, call it.
4913 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4914 (x86_linux_create_target): Install it as to_always_non_stop_p
4915 method.
4916
71b57e37
DE
49172015-08-17 Doug Evans <dje@google.com>
4918
4919 * ui-out.c (default_ui_out_impl): Add comment.
4920
7f3706eb
IB
49212015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4922
4923 * d-exp.y (type_aggregate_p): New function.
4924 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4925 (classify_inner_name): Likewise.
4926 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4927
1762568f
DE
49282015-08-15 Doug Evans <xdje42@gmail.com>
4929
4930 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4931 updated.
4932 (add_psymbol_to_list): Ditto.
4933
8763cede
DE
49342015-08-15 Doug Evans <xdje42@gmail.com>
4935
4936 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4937 updated. Call end_psymtab_common.
4938 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4939 end_psymtab_common.
4940 (build_type_psymtabs_reader): Ditto.
4941 * psympriv.h (sort_pst_symbols): Delete.
4942 (end_psymtab_common): Declare.
4943 * psymtab.c (sort_pst_symbols): Make static.
4944 (end_psymtab_common): New function.
4945 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4946
51cdc993
DE
49472015-08-15 Doug Evans <xdje42@gmail.com>
4948
4949 * defs.h (LANGUAGE_BITS): Define.
4950 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4951 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4952 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4953 (minimal_symbol_type): Add nr_minsym_types.
4954 (MINSYM_TYPE_BITS): Define.
4955 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4956 (domain_enum_tag): Add NR_DOMAINS.
4957 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4958 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4959
95cf5869
DE
49602015-08-15 Doug Evans <xdje42@gmail.com>
4961
4962 * objfiles.h: Whitespace cleanup.
4963 * psympriv.h: Whitespace cleanup.
4964 * psymtab.c: Whitespace/coding convention cleanup.
4965
e3ae3c43
PP
49662015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4967
4968 * inferior.c (detach_inferior_command): Don't call
4969 any_thread_of_process when pid is 0.
4970 (kill_inferior_command): Likewise.
4971
6ff0ba5f
DE
49722015-08-14 Doug Evans <xdje42@gmail.com>
4973
4974 PR gdb/11833
4975 * NEWS: Document new /s modifier for the disassemble command.
4976 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4977 (_initialize_cli_cmds): Update online docs of disassemble command.
4978 * disasm.c: #include "source.h".
4979 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4980 All uses updated.
4981 (dis_line_entry): New struct.
4982 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4983 (allocate_dis_line_table): New functions.
4984 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4985 (dump_insns): New arg end_pc. All callers updated.
4986 (do_mixed_source_and_assembly_deprecated): Renamed from
4987 do_mixed_source_and_assembly. All callers updated.
4988 (do_mixed_source_and_assembly): New function.
4989 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4990 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4991 DISASSEMBLY_SOURCE. All uses updated.
4992 (DISASSEMBLY_SOURCE): New macro.
4993 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4994
b56ccc20
KS
49952015-08-14 Keith Seitz <keiths@redhat.com>
4996
4997 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4998 `typename' to `type_name' to avoid C++ reserved word.
4999
ebdad8fc
KS
50002015-08-14 Keith Seitz <keiths@redhat.com>
5001
5002 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5003 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5004 silence ARI errors.
5005
c0fe2ae7
IB
50062015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5007
5008 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5009 xstrprintf instead of malloc and sprintf.
5010 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5011 (lex_one_token): Likewise.
5012
a738da3a
MF
50132015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5014
5015 * solib-svr4.c (read_program_header): Add base_addr argument to
5016 report the runtime address of the segment.
5017 (find_program_interpreter): Update read_program_header call to pass
5018 a NULL pointer for the new argument.
5019 (scan_dyntag): Add ptr_addr argument to report the runtime address
5020 of the tag payload.
5021 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5022 read_program_header to get the base address of the dynamic segment.
5023 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5024 read_program_header.
5025 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5026
f8edc4ff
MF
50272015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5028
5029 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5030
444c1ed8
IB
50312015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5032
5033 * d-exp.y (%union): Add voidval.
5034 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5035 name in the lexing stage.
5036 (PostfixExpression): Move symbol completion handling in grammar here
5037 from PrimaryExpression.
5038 (PrimaryExpression): Move routines to handle resolving identifier
5039 tokens in the grammar here from push_expression_name.
5040 (IdentifierExp): Remove the handling of alternating '.' and identifier
5041 tokens.
5042 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5043 (BasicType): Remove C-style typename rules.
5044 (d_type_from_name, d_module_from_name, push_variable)
5045 (push_fieldnames, push_type_name, push_module_name)
5046 (push_expression_name): Remove.
5047 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5048 (token_and_value): New type.
5049 (token_fifo, popping, name_obstack): New globals.
5050 (classify_name): New function.
5051 (classify_inner_name): Likewise.
5052 (yylex): Likewise.
5053 (d_parse): Initialize token_fifo, popping and name_obstack.
5054
bc7c9fab
IB
50552015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5056
5057 * Makefile.in (SFILES): Add d-namespace.c.
5058 (COMMON_OBS): Add d-namespace.o.
5059 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5060 la_lookup_symbol_nonlocal callback function pointer.
5061 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5062 (d_lookup_nested_symbol): New declaration.
5063 * d-namespace.c: New file.
5064
3207396b
PA
50652015-08-13 Pedro Alves <palves@redhat.com>
5066
5067 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5068 cleanup after the decref cleanup, not before.
5069
5d8c3ed3
PMR
50702015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5071
5072 * ada-lang.c: Include namespace.h
5073 (aux_add_nonlocal_symbols): Fix a function name in comment.
5074 (ada_add_block_renamings): New.
5075 (add_nonlocal_symbols): Add global renamings handling.
5076 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5077 to...
5078 (ada_add_all_symbols): ... this new function.
5079 (ada_add_block_symbols): Try to match the input name against the
5080 "using directives list", perform a recursive symbol lookup on
5081 the matched declarations.
5082 * block.h (struct block): Move the_namespace to top-level as
5083 namespace_info. Remove the language_specific field.
5084 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5085 * buildsym.h (using_directives): Rename into...
5086 (local_using_directives): ... this.
5087 (global_using_directives): New.
5088 (struct context_stack): Rename the using_directives field into
5089 local_using_directives.
5090 * buildsym.c (finish_block_internal): Deal with the proper
5091 using directives repository (local or global).
5092 (prepare_for_building): Reset local_using_directives. Assert
5093 that there is no pending global using directive.
5094 (reset_symtab_globals): Reset global_using_directives and
5095 local_using_directives.
5096 (end_symtab_get_static_block): Don't ignore symtabs that have
5097 only using directives.
5098 (push_context): Update references to local_using_directives.
5099 (buildsym_init): Do not reset using_directives.
5100 * cp-support.c: Include namespace.h.
5101 * cp-support.h (struct using_direct): Move to namespace.h.
5102 (cp_add_using_directives): Move to namespace.h.
5103 * cp-namespace.c: Include namespace.h
5104 (cp_add_using_directive): Move to namespace.c, rename it to
5105 add_using_directive, add a "using_directives" argument and use
5106 it as the pending using directives repository. All callers
5107 updated.
5108 * dwarf2read.c (using_directives): New.
5109 (read_import_statement): Call using_directives.
5110 (read_func_scope): Update references to local_using_directives.
5111 (read_lexical_block_scope): Likewise.
5112 (read_namespace): Update the heading comment, call
5113 using_directives.
5114 * namespace.h: New file.
5115 * namespace.c: New file.
5116 * Makefile.in (SFILES): Add namespace.c.
5117 (COMMON_OBS): Add namespace.o
5118
4dafcdeb
JB
51192015-08-12 Joel Brobecker <brobecker@adacore.com>
5120
5121 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5122 compute RETADDR.
5123
67994074
KS
51242015-08-12 Keith Seitz <keiths@redhat.com>
5125
5126 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5127 reserved C++ keyword "explicit" to "explicit_loc".
5128 * breakpoint.c (create_overlay_event_breakpoint)
5129 (create_longjmp_master_breakpoint)
5130 (create_std_terminate_master_breakpoint)
5131 (create_exception_master_breakpoint, update_static_tracepoint):
5132 Rename reserved C++ keyword "explicit" to "explicit_loc".
5133 * completer.c (collect_explicit_location_matches)
5134 (explicit_location_completer): Rename reserved C++ keyword
5135 "explicit" to "explicit_loc".
5136 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5137 (canonicalize_linespec, create_sals_line_offset)
5138 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5139 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5140 "explicit" to "explicit_loc".
5141 * location.c (struct event_location) <explicit>: Rename to
5142 "explicit_loc".
5143 (initialize_explicit_location, new_explicit_location)
5144 (explicit_location_to_string_internal, explicit_location_to_linespec):
5145 Rename reserved C++ keyword "explicit" to "explicit_loc".
5146 * location.h (explicit_location_to_string)
5147 (explicit_location_to_linespec, initialize_explicit_location)
5148 (new_explicit_location): Rename reserved C++ keyword "explicit"
5149 to "explicit_loc".
5150 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5151 keyword "explicit" to "explicit_loc".
5152
59ecaff3
KS
51532015-08-12 Keith Seitz <keiths@redhat.com>
5154
5155 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5156 and only call decode_line_1 when it is non-NULL.
5157
244558af
LM
51582015-08-12 Luis Machado <lgustavo@codesourcery.com>
5159
5160 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5161 location address is not meaningful.
5162 (breakpoint_address_is_meaningful): Update comment.
5163
629500fa
KS
51642015-08-11 Keith Seitz <keiths@redhat.com>
5165
5166 * NEWS: Mention explicit locations.
5167 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5168 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5169 (_initialize_breakpoint): Update documentation for
5170 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5171
eb8c4e2e
KS
51722015-08-11 Keith Seitz <keiths@redhat.com>
5173
5174 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5175 explicit locations, options "--source", "--function",
5176 "--label", and "--line".
5177
87f0e720
KS
51782015-08-11 Keith Seitz <keiths@redhat.com>
5179
5180 * completer.c: Include location.h.
5181 (enum match_type): New enum.
5182 (location_completer): Rename to ...
5183 (linespec_completer): ... this.
5184 (collect_explicit_location_matches, backup_text_ptr)
5185 (explicit_location_completer): New functions.
5186 (location_completer): "New" function; handle linespec
5187 and explicit location completions.
5188 (complete_line_internal): Remove all location completer-specific
5189 handling.
5190 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5191 (find_toplevel_char): Export.
5192 (linespec_parse_line_offset): Export.
5193 Issue error if STRING is not numerical.
5194 (gdb_get_linespec_parser_quote_characters): New function.
5195 * linespec.h (linespec_parse_line_offset): Declare.
5196 (get_gdb_linespec_parser_quote_characters): Declare.
5197 (is_ada_operator): Declare.
5198 (find_toplevel_char): Declare.
5199 (linespec_lexer_lex_keyword): Declare.
5200 * location.c (explicit_to_event_location): New function.
5201 (explicit_location_lex_one): New function.
5202 (string_to_explicit_location): New function.
5203 (string_to_event_location): Handle explicit locations.
5204 * location.h (explicit_to_event_location): Declare.
5205 (string_to_explicit_location): Declare.
5206
00e52e53
KS
52072015-08-11 Keith Seitz <keiths@redhat.com>
5208
5209 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5210 linespec into explicit location.
5211 * breakpoint.c (create_overlay_breakpoint)
5212 (create_longjmp_master_breakpoint)
5213 (create_std_terminate_master_breakpoint)
5214 (create_exception_master_breakpoint): Convert linespec into explicit
5215 location.
5216 (update_static_tracepoint): Convert linespec into explicit location.
5217 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5218 location.h.
5219 (struct linespec) <expression, expr_pc, source_filename>
5220 <function_name, label_name, line_offset>: Replace with ...
5221 <explicit>: ... this.
5222 <is_linespec>: New member.
5223 (PARSER_EXPLICIT): New accessor macro.
5224 (undefined_label_error): New function.
5225 (source_file_not_found_error): New function.
5226 (linespec_parse_basic): The parser result is now an explicit location.
5227 Use PARSER_EXPLICIT to access it.
5228 Use undefined_label_error.
5229 (canonicalize_linespec): Convert canonical linespec into explicit
5230 location.
5231 Move string representation of location to explicit_location_to_linespec
5232 and use it and explicit_location_to_string to save string
5233 representations of the canonical location.
5234 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5235 explicit location. Update all references.
5236 (convert_explicit_location_to_sals): New function.
5237 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5238 result's explicit location.
5239 (linespec_state_constructor): Initialize is_linespec.
5240 Use PARSER_EXPLICIT.
5241 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5242 result.
5243 (event_location_to_sals): For linespec locations, set is_linespec.
5244 Handle explicit locations.
5245 (decode_objc): 'ls' contains an explicit location now. Update all
5246 references.
5247 (symtabs_from_filename): Use source_file_not_found_error.
5248 * location.c (struct event_location.u) <explicit>: New member.
5249 (initialize_explicit_location): New function.
5250 (initialize_event_location): Initialize explicit locations.
5251 (new_explicit_location, get_explicit_location)
5252 (get_explicit_location_const): New functions.
5253 (explicit_to_string_internal): New function; most of contents moved
5254 from canonicalize_linespec.
5255 (explicit_location_to_string): New function.
5256 (explicit_location_to_linespec): New function.
5257 (copy_event_location, delete_event_location)
5258 (event_location_to_string_const, event_location_empty_p): Handle
5259 explicit locations.
5260 * location.h (enum offset_relative_sign, struct line_offset): Move
5261 here from linespec.h.
5262 (enum event_location_type): Add EXPLICIT_LOCATION.
5263 (struct explicit_location): New structure.
5264 (explicit_location_to_string): Declare.
5265 (explicit_location_to_linespec): Declare.
5266 (new_explicit_location, get_explicit_locationp
5267 (get_explicit_location_const, initialize_explicit_location): Declare.
5268
5b56227b
KS
52692015-08-11 Keith Seitz <keiths@redhat.com>
5270
5271 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5272 linespec for stap probe to probe location.
5273 * breakpoint.c (create_longjmp_master_breakpoint)
5274 (create_exception_master_breakpoint): Likewise.
5275 (break_command_1): Remove local variable `arg_cp'.
5276 Check location type to set appropriate breakpoint ops methods.
5277 (trace_command): Likewise.
5278 * linespec.c (event_location_to_sals): Assert on probe locations.
5279 * location.c (EL_PROBE): Add macro definition.
5280 (new_probe_location, get_probe_location): New functions.
5281 (copy_event_location, delete_event_location, event_location_to_string)
5282 (string_to_event_location, event_location_empty_p): Handle probe
5283 locations.
5284 * location.h (enum event_location_type): Add PROBE_LOCATION.
5285 (new_probe_location, get_probe_location): Declare.
5286 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5287 Convert linespec into probe location.
5288
a06efdd6
KS
52892015-08-11 Keith Seitz <keiths@redhat.com>
5290
5291 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5292 Convert linespec to address location.
5293 * linespec.c (canonicalize_linespec): Do not handle address
5294 locations here.
5295 (convert_address_location_to_sals): New function; contents moved
5296 from ...
5297 (convert_linespc_to_sals): ... here.
5298 (parse_linespec): Remove address locations from linespec grammar.
5299 Remove handling of address locations.
5300 (linespec_lex_to_end): Remove handling of address linespecs.
5301 (event_location_to_sals): Handle ADDRESS_LOCATION.
5302 (linespec_expression_to_pc): Export.
5303 * linespec.h (linespec_expression_to_pc): Add declaration.
5304 * location.c (struct event_location.u) <address>: New member.
5305 (new_address_location, get_address_location): New functions.
5306 (copy_event_location, delete_event_location, event_location_to_string)
5307 (string_to_event_location, event_location_empty_p): Handle address
5308 locations.
5309 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5310 (new_address_location, get_address_location): Declare.
5311 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5312 to address location.
5313 * spu-tdep.c (spu_catch_start): Likewise.
5314
f00aae0f
KS
53152015-08-11 Keith Seitz <keiths@redhat.com>
5316
5317 * ax-gdb.c: Include location.h.
5318 (agent_command_1) Use linespec location instead of address
5319 string.
5320 * break-catch-throw.c: Include location.h.
5321 (re_set_exception_catchpoint): Use linespec locations instead
5322 of address strings.
5323 * breakpoint.c: Include location.h.
5324 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5325 (create_std_terminate_master_breakpoint)
5326 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5327 Use linespec location instead of address string.
5328 (print_breakpoint_location): Use locations and
5329 event_location_to_string.
5330 Print extra_string for pending locations for non-MI streams.
5331 (print_one_breakpoint_location): Use locations and
5332 event_location_to_string.
5333 (init_raw_breakpoint_without_location): Initialize b->location.
5334 (create_thread_event_breakpoint): Use linespec location instead of
5335 address string.
5336 (init_breakpoint_sal): Likewise.
5337 Only save extra_string if it is non-NULL and not the empty string.
5338 Use event_location_to_string instead of `addr_string'.
5339 Constify `p' and `endp'.
5340 Use skip_spaces_const/skip_space_const instead of non-const versions.
5341 Copy the location into the breakpoint.
5342 If LOCATION is NULL, save the breakpoint address as a linespec location
5343 instead of an address string.
5344 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5345 event_location. All uses updated.
5346 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5347 (parse_breakpoint_sals): Use locations instead of address strings.
5348 Remove check for empty linespec with conditional.
5349 Refactor.
5350 (decode_static_tracepoint_spec): Make argument const and update
5351 function.
5352 (create_breakpoint): Change `arg' to a struct event_location and
5353 rename.
5354 Remove `copy_arg' and `addr_start'.
5355 If EXTRA_STRING is empty, set it to NULL.
5356 Don't populate `canonical' for pending breakpoints.
5357 Pass `extra_string' to find_condition_and_thread.
5358 Clear `extra_string' if `rest' was NULL.
5359 Do not error with "garbage after location" if setting a dprintf
5360 breakpoint.
5361 Copy the location into the breakpoint instead of an address string.
5362 (break_command_1): Use string_to_event_location and pass this to
5363 create_breakpoint instead of an address string.
5364 Check against `arg_cp' for a probe linespec.
5365 (dprintf_command): Use string_to_event_location and pass this to
5366 create_breakpoint instead of an address string.
5367 Throw an exception if no format string was specified.
5368 (print_recreate_ranged_breakpoint): Use event_location_to_string
5369 instead of address strings.
5370 (break_range_command, until_break_command)
5371 (init_ada_exception_breakpoint): Use locations instead
5372 of address strings.
5373 (say_where): Print out extra_string for pending locations.
5374 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5375 the breakpoint.
5376 (base_breakpoint_create_sals_from_location): Use struct event_location
5377 instead of address string.
5378 Remove `addr_start' and `copy_arg' parameters.
5379 (base_breakpoint_decode_location): Use struct event_location instead of
5380 address string.
5381 (bkpt_re_set): Use locations instead of address strings.
5382 Use event_location_empty_p to check for unset location.
5383 (bkpt_print_recreate): Use event_location_to_string instead of
5384 an address string.
5385 Print out extra_string for pending locations.
5386 (bkpt_create_sals_from_location, bkpt_decode_location)
5387 (bkpt_probe_create_sals_from_location): Use struct event_location
5388 instead of address string.
5389 (bkpt_probe_decode_location): Use struct event_location instead of
5390 address string.
5391 (tracepoint_print_recreate): Use event_location_to_string to
5392 recreate the tracepoint.
5393 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5394 (tracepoint_probe_create_sals_from_location)
5395 (tracepoint_probe_decode_location): Use struct event_location
5396 instead of address string.
5397 (dprintf_print_recreate): Use event_location_to_string to recreate
5398 the dprintf.
5399 (dprintf_re_set): Remove check for valid/missing format string.
5400 (strace_marker_create_sals_from_location)
5401 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5402 (update_static_tracepoint): Use struct event_location instead of
5403 address string.
5404 (location_to_sals): Likewise.
5405 Pass `extra_string' to find_condition_and_thread.
5406 For newly resolved pending breakpoint locations, clear the location's
5407 string representation.
5408 Assert that the breakpoint's condition string is NULL when
5409 condition_not_parsed.
5410 (breakpoint_re_set_default, create_sals_from_location_default)
5411 (decode_location_default, trace_command, ftrace_command)
5412 (strace_command, create_tracepoint_from_upload): Use locations
5413 instead of address strings.
5414 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5415 Use struct event_location instead of address string.
5416 Update all uses.
5417 <decode_location>: Likewise.
5418 (struct breakpoint) <addr_string>: Change to struct event_location
5419 and rename `location'.
5420 <addr_string_range_end>: Change to struct event_location and rename
5421 `location_range_end'.
5422 (create_breakpoint): Use struct event_location instead of address
5423 string.
5424 * cli/cli-cmds.c: Include location.h.
5425 (edit_command, list_command): Use locations instead of address strings.
5426 * elfread.c: Include location.h.
5427 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5428 * guile/scm-breakpoint.c: Include location.h.
5429 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5430 (gdbscm_register_breakpoint): Use locations instead of address
5431 strings.
5432 * linespec.c: Include location.h.
5433 (struct ls_parser) <stream>: Change to const char *.
5434 (PARSER_STREAM): Update.
5435 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5436 keywords must be followed by whitespace.
5437 (canonicalize_linespec): Save a linespec location into `canonical'.
5438 Save a canonical linespec into `canonical'.
5439 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5440 All uses updated.
5441 Update function description.
5442 (linespec_parser_new): Initialize `parser'.
5443 Update initialization of parsing stream.
5444 (event_location_to_sals): New function.
5445 (decode_line_full): Change `argptr' to a struct event_location and
5446 rename it `location'.
5447 Use locations instead of address strings.
5448 Call event_location_to_sals instead of parse_linespec.
5449 (decode_line_1): Likewise.
5450 (decode_line_with_current_source, decode_line_with_last_displayed)
5451 Use locations instead of address strings.
5452 (decode_objc): Likewise.
5453 Change `argptr' to const char * and rename `arg'.
5454 (destroy_linespec_result): Delete the linespec result's location
5455 instead of freeing the address string.
5456 * linespec.h (struct linespec_result) <addr_string>: Change to
5457 struct event_location and rename to ...
5458 <location>: ... this.
5459 (decode_line_1, decode_line_full): Change `argptr' to struct
5460 event_location. All callers updated.
5461 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5462 (mi_cmd_break_insert_1): Use locations instead of address strings.
5463 Throw an error if there was "garbage" at the end of the specified
5464 linespec.
5465 * probe.c: Include location.h.
5466 (parse_probes): Change `argptr' to struct event_location.
5467 Use event locations instead of address strings.
5468 * probe.h (parse_probes): Change `argptr' to struct event_location.
5469 * python/py-breakpoint.c: Include location.h.
5470 (bppy_get_location): Constify local variable `str'.
5471 Use event_location_to_string.
5472 (bppy_init): Use locations instead of address strings.
5473 * python/py-finishbreakpoint.c: Include location.h.
5474 (bpfinishpy_init): Remove local variable `addr_str'.
5475 Use locations instead of address strings.
5476 * python/python.c: Include location.h.
5477 (gdbpy_decode_line): Use locations instead of address strings.
5478 * remote.c: Include location.h.
5479 (remote_download_tracepoint): Use locations instead of address
5480 strings.
5481 * spu-tdep.c: Include location.h.
5482 (spu_catch_start): Remove local variable `buf'.
5483 Use locations instead of address strings.
5484 * tracepoint.c: Include location.h.
5485 (scope_info): Use locations instead of address strings.
5486 (encode_source_string): Constify parameter `src'.
5487 * tracepoint.h (encode_source_string): Likewise.
5488
c7c1b3e9
KS
54892015-08-11 Keith Seitz <keiths@redhat.com>
5490
5491 * Makefile.in (SFILES): Add location.c.
5492 (HFILES_NO_SRCDIR): Add location.h.
5493 (COMMON_OBS): Add location.o.
5494 * linespec.c (linespec_lex_to_end): New function.
5495 * linespec.h (linespec_lex_to_end): Declare.
5496 * location.c: New file.
5497 * location.h: New file.
5498
5f700d83
KS
54992015-08-11 Keith Seitz <keiths@redhat.com>
5500
5501 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5502 Renamed to create_sals_from_location.
5503 <decode_linespec>: Renamed to decode_location.
5504 Update all callers.
5505 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5506 (create_sals_from_location_default): ... this.
5507 (addr_string_to_sals): Renamed to ...
5508 (location_to_sals): ... this.
5509 (decode_linespec_default): Renamed to ...
5510 (decode_location_default): ... this.
5511 (base_breakpoint_create_sals_from_address): Renamed to ...
5512 (base_breakpoint_create_sals_from_location): ... this.
5513 (bkpt_create_sals_from_address): Renamed to ...
5514 (bkpt_create_sals_from_location): ... this.
5515 (bkpt_decode_linespec): Renamed to ...
5516 (bkpt_decode_location): ... this.
5517 (bkpt_probe_create_sals_from_address): Renamed to ...
5518 (bkpt_probe_create_sals_from_location): ... this.
5519 (tracepoint_create_sals_from_address): Renamed to ...
5520 (tracepoint_create_sals_from_location): ... this.
5521 (tracepoint_decode_linespec): Renamed to ...
5522 (tracepoint_decode_location): ... this.
5523 (tracepoint_probe_create_sals_from_address): Renamed to ...
5524 (tracepoint_probe_create_sals_from_location): ... this.
5525 (tracepoint_probe_decode_linespec): Renamed to ...
5526 (tracepoint_probe_decode_location): ... this.
5527 (strace_marker_create_sals_from_address): Renamed to ...
5528 (strace_marker_create_sals_from_location): ... this.
5529 (decode_linespec_default): Renamed to ...
5530 (decode_location_default): ... this.
5531
e27852be
DE
55322015-08-10 Doug Evans <dje@google.com>
5533 Keith Seitz <keiths@redhat.com>
5534
5535 PR gdb/17960
5536 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5537 make_file_symbol_completion_list and made static.
5538 (make_file_symbol_completion_list): New function.
80af41e0 5539
fd7dcb94
JB
55402015-08-10 Joel Brobecker <brobecker@adacore.com>
5541
5542 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5543 trailing new-line at end of warning message.
5544 (proceed): Add i18n marker to error messages.
5545
f12899e9
PA
55462015-08-07 Pedro Alves <palves@redhat.com>
5547
5548 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5549
5ac21343
PA
55502015-08-07 Pedro Alves <palves@redhat.com>
5551
5552 * s390-linux-tdep.c (is_non_branch_ril)
5553 (s390_displaced_step_copy_insn): New functions.
5554 (s390_displaced_step_fixup): Update comment.
5555 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5556 gdbarch_displaced_step_copy_insn hook.
5557
7f03bd92
PA
55582015-08-07 Pedro Alves <palves@redhat.com>
5559
5560 * infrun.c (displaced_step_prepare_throw): Return -1 if
5561 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5562 comment.
5563 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5564 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5565 in file.
5566 (ppc_displaced_step_copy_insn): New function.
5567 (ppc_displaced_step_fixup): Update comment.
5568 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5569 gdbarch_displaced_step_copy_insn hook.
5570 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5571 NULL return.
5572 * gdbarch.h: Regenerate.
5573
3fc8eb30
PA
55742015-08-07 Pedro Alves <palves@redhat.com>
5575
5576 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5577 field.
5578 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5579 Return false if dispaced stepping failed before.
5580 (resume): Pass the current inferior to
5581 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5582 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5583 displaced_stepping_failed flag, and fall back to an in-line
5584 step-over.
5585
bfedc46a
PA
55862015-08-07 Pedro Alves <palves@redhat.com>
5587
5588 * darwin-nat.c (darwin_stop): Rename to ...
5589 (darwin_interrupt): ... this.
5590 (_initialize_darwin_inferior): Adjust.
5591 * gnu-nat.c (gnu_stop): Delete.
5592 (gnu_target): Don't install gnu_stop.
5593 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5594 (inf_ptrace_interrupt): ... this.
5595 (inf_ptrace_target): Adjust.
5596 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5597 target_stop.
5598 * linux-nat (linux_nat_stop): Rename to ...
5599 (linux_nat_interrupt): ... this.
5600 (linux_nat_stop): Reimplement.
5601 (linux_nat_add_target): Install linux_nat_interrupt.
5602 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5603 (nto_handle_sigint_twice): ... this.
5604 (nto_interrupt): Rename to ...
5605 (nto_handle_sigint): ... this. Call target_interrupt instead of
5606 target_stop.
5607 (procfs_wait): Adjust.
5608 (procfs_stop): Rename to ...
5609 (procfs_interrupt): ... this.
5610 (init_procfs_targets): Adjust.
5611 * procfs.c (procfs_stop): Rename to ...
5612 (procfs_interrupt): ... this.
5613 (procfs_target): Adjust.
5614 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5615 (m32r_interrupt): ... this.
5616 (init_m32r_ops): Adjust.
5617 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5618 (gdbsim_interrupt_inferior): ... this.
5619 (gdbsim_stop): Rename to ...
5620 (gdbsim_interrupt): ... this.
5621 (gdbsim_cntrl_c): Adjust.
5622 (init_gdbsim_ops): Adjust.
5623 * remote.c (sync_remote_interrupt): Adjust comments.
5624 (remote_stop_as): Rename to ...
5625 (remote_interrupt_as): ... this.
5626 (remote_stop): Adjust comment.
5627 (remote_interrupt): New function.
5628 (init_remote_ops): Install remote_interrupt.
5629 * target.c (target_interrupt): New function.
5630 * target.h (struct target_ops) <to_interrupt>: New field.
5631 (target_interrupt): New declaration.
5632 * windows-nat.c (windows_stop): Rename to ...
5633 (windows_interrupt): ... this.
5634 * target-delegates.c: Regenerate.
5635
d55007b5
PA
56362015-08-07 Pedro Alves <palves@redhat.com>
5637
5638 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5639 threads" as alternative to "switching back to stepped thread".
5640
fbea99ea
PA
56412015-08-07 Pedro Alves <palves@redhat.com>
5642
5643 * NEWS: Mention "maint set/show target-non-stop".
5644 * breakpoint.c (update_global_location_list): Check
5645 target_is_non_stop_p instead of non_stop.
5646 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5647 * infrun.c (show_can_use_displaced_stepping)
5648 (can_use_displaced_stepping_p, start_step_over_inferior):
5649 Likewise.
5650 (internal_resume_ptid): New function.
5651 (resume): Use it.
5652 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5653 all-stop mode but the target is always in non-stop mode, start all
5654 the other threads that are implicitly resumed too.
5655 (for_each_just_stopped_thread, fetch_inferior_event)
5656 (adjust_pc_after_break, stop_all_threads): Check
5657 target_is_non_stop_p instead of non_stop.
5658 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5659 with the target always in non-stop mode.
5660 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5661 instead of non_stop.
5662 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5663 instead of non_stop.
5664 (keep_going_stepped_thread): Use internal_resume_ptid.
5665 (stop_waiting): If in all-stop mode, and the target is in non-stop
5666 mode, stop all threads.
5667 (keep_going_pass): Likewise, when starting a new in-line step-over
5668 sequence.
5669 * linux-nat.c (get_pending_status, select_event_lwp)
5670 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5671 target_is_non_stop_p instead of non_stop.
5672 (linux_nat_always_non_stop_p): New function.
5673 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5674 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5675 * target-delegates.c: Regenerate.
5676 * target.c (target_is_non_stop_p): New function.
5677 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5678 (maint_set_target_non_stop_command)
5679 (maint_show_target_non_stop_command): New functions.
5680 (_initilize_target): Install "maint set/show target-non-stop"
5681 commands.
5682 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5683 (target_non_stop_enabled): New declaration.
5684 (target_is_non_stop_p): New declaration.
5685
372316f1
PA
56862015-08-07 Pedro Alves <pedro@codesourcery.com>
5687
5688 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5689 has a pending status, return true.
5690 * gdbthread.h: Include target/waitstatus.h.
5691 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5692 stop_pc>: New fields.
5693 (struct thread_info) <resumed>: New field.
5694 (set_resumed): Declare.
5695 * infrun.c: Include "event-loop.h".
5696 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5697 (infrun_async): New function.
5698 (clear_step_over_info): Add debug output.
5699 (displaced_step_in_progress_any_inferior): New function.
5700 (displaced_step_fixup): New returns int.
5701 (start_step_over): Handle in-line step-overs too. Assert the
5702 thread is marked resumed.
5703 (resume_cleanups): Clear the thread's resumed flag.
5704 (resume): Set the thread's resumed flag. Return early if the
5705 thread has a pending status. Allow stepping a breakpoint with no
5706 signal.
5707 (proceed): Adjust to check 'resumed' instead of 'executing'.
5708 (clear_proceed_status_thread): If the thread has a pending status,
5709 and that status is a finished step, discard the pending status.
5710 (clear_proceed_status): Don't clear step_over_info here.
5711 (random_pending_event_thread, do_target_wait): New functions.
5712 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5713 do_target_wait.
5714 (wait_one): New function.
5715 (THREAD_STOPPED_BY): New macro.
5716 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5717 (thread_stopped_by_hw_breakpoint): New functions.
5718 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5719 functions.
5720 (handle_inferior_event): Also call set_resumed(false) on all
5721 threads implicitly stopped by the event.
5722 (restart_threads, resumed_thread_with_pending_status): New
5723 functions.
5724 (finish_step_over): If we were doing an in-line step-over before,
5725 and no longer are after trying to start a new step-over, restart
5726 all threads. If we have multiple threads with pending events,
5727 save the current event and go through the event loop again.
5728 (handle_signal_stop): Return early if finish_step_over returns
5729 false.
5730 <random signal>: If we get a signal while stepping over a
5731 breakpoint in-line in non-stop mode, restart all threads. Clear
5732 step_over_info before delivering the signal.
5733 (keep_going_stepped_thread): Use internal_error instead of
5734 gdb_assert. Mark the thread as resumed.
5735 (keep_going_pass_signal): Assert the thread isn't already resumed.
5736 If some other thread is doing an in-line step-over, defer the
5737 resume. If we just started a new in-line step-over, stop all
5738 threads. Don't clear step_over_info.
5739 (infrun_async_inferior_event_handler): New function.
5740 (_initialize_infrun): Create async event handler with
5741 infrun_async_inferior_event_handler as callback.
5742 (infrun_async): New declaration.
5743 * target.c (target_async): New function.
5744 * target.h (target_async): Declare macro and readd as function
5745 declaration.
5746 * target/waitstatus.h (enum target_stop_reason)
5747 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5748 * thread.c (new_thread): Clear the new waitstatus field.
5749 (set_resumed): New function.
5750
2ac7589c
PA
57512015-08-07 Pedro Alves <palves@redhat.com>
5752
5753 * infrun.c (keep_going_stepped_thread): New function, factored out
5754 from ...
5755 (switch_back_to_stepped_thread): ... here.
5756
8b061563
PA
57572015-08-07 Pedro Alves <palves@redhat.com>
5758
5759 * infrun.c (currently_stepping): Extend intro comment.
5760 * target.h (target_resume): Extend intro comment.
5761
1afd5965
PA
57622015-08-07 Pedro Alves <palves@redhat.com>
5763
5764 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5765 of inferior_ptid. If the stepped thread vanished, return 0
5766 instead of resuming here. Use reset_ecs. Print the prev_pc and
5767 the current stop_pc in log message. Clear trap_expected if the
5768 thread advanced. Don't pass currently_stepping to
5769 do_target_resume.
5770
4d9d9d04
PA
57712015-08-07 Pedro Alves <palves@redhat.com>
5772
5773 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5774 * infrun.c (struct execution_control_state): Move higher up in the
5775 file.
5776 (reset_ecs): New function.
5777 (start_step_over): Now returns int. Rewrite to use
5778 keep_going_pass_signal instead of manually starting a displaced step.
5779 (resume): Don't call set_running here. If displaced stepping
5780 can't start now, clear trap_expected.
5781 (find_thread_needs_step_over): Delete function.
5782 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5783 If the current thread needs a step over, push it in the step-over
5784 chain. Don't set insert breakpoints nor call resume directly
5785 here. Instead rewrite to use start_step_over and
5786 keep_going_pass_signal.
5787 (finish_step_over): New function.
5788 (handle_signal_stop): Call finish_step_over instead of
5789 start_step_over.
5790 (switch_back_to_stepped_thread): If the event thread needs another
5791 step-over do that first. Use start_step_over.
5792 (keep_going_pass_signal): New function, factored out from ...
5793 (keep_going): ... here.
5794 (_initialize_infrun): Comment moved here.
5795 * thread.c (set_running_thread): New function.
5796 (set_running, finish_thread_state): Use set_running_thread.
5797
c2829269
PA
57982015-08-07 Pedro Alves <palves@redhat.com>
5799
5800 * gdbthread.h (struct thread_info) <step_over_prev,
5801 step_over_next>: New fields.
5802 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5803 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5804 declarations.
5805 * infrun.c (struct displaced_step_request): Delete.
5806 (struct displaced_step_inferior_state) <step_request_queue>:
5807 Delete field.
5808 (displaced_step_prepare): Assert that trap_expected is set. Use
5809 thread_step_over_chain_enqueue. Split starting a new displaced
5810 step to ...
5811 (start_step_over): ... this new function.
5812 (resume): Assert the thread isn't waiting for a step over already.
5813 (proceed): Assert the thread isn't waiting for a step over
5814 already.
5815 (infrun_thread_stop_requested): Adjust to remove threads from the
5816 embedded step-over chain.
5817 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5818 displaced_step_fixup.
5819 (handle_signal_stop): Call start_step_over after
5820 displaced_step_fixup.
5821 * infrun.h (step_over_queue_head): New declaration.
5822 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5823 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5824 (thread_step_over_chain_enqueue)
5825 (thread_step_over_chain_remove): New functions.
5826 (delete_thread_1): Remove thread from the step-over chain.
5827
6c4cfb24
PA
58282015-08-07 Pedro Alves <palves@redhat.com>
5829
5830 * infrun.c (thread_still_needs_step_over): Rename to ...
5831 (thread_still_needs_step_over_bp): ... this.
5832 (enum step_over_what): New.
5833 (thread_still_needs_step_over): Reimplement.
5834
567420d1
PA
58352015-08-07 Pedro Alves <palves@redhat.com>
5836
5837 * remote.c (remote_wait_as): If not waiting for a stop reply,
5838 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5839 requested, don't block waiting forever.
5840
d8dd4d5f
PA
58412015-08-07 Pedro Alves <pedro@codesourcery.com>
5842
5843 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5844 waitstatus pointers instead of an ecs. Adjust.
5845 (handle_inferior_event): Adjust caller.
5846
e1316e60
PA
58472015-08-07 Pedro Alves <palves@redhat.com>
5848
5849 * infrun.c (handle_inferior_event): If we get
5850 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5851 mode, mark all threads of the exiting process as not-executing.
5852 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5853 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5854 exiting process, if inferior_ptid still points at a process.
5855 * thread.c (struct current_thread_cleanup) <next>: New field.
5856 (current_thread_cleanup_chain): New global.
5857 (restore_current_thread_ptid_changed): New function.
5858 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5859 current_thread_cleanup_chain list.
5860 (make_cleanup_restore_current_thread): Add the cleanup data to the
5861 current_thread_cleanup_chain list.
5862 (_initialize_thread): Install restore_current_thread_ptid_changed
5863 as thread_ptid_changed observer.
5864
47e9c225
JB
58652015-08-07 Joel Brobecker <brobecker@adacore.com>
5866
5867 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5868 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5869 smaller than expected.
5870
06096720
AB
58712015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5872
5873 * stack.c (get_frame_language): Moved ...
5874 * frame.c (get_frame_language): ... to here.
5875 * language.h (get_frame_language): Declaration moved to frame.h.
5876 * frame.h: Add language.h include, for language enum.
5877 (get_frame_language): Declaration moved from language.h.
5878 * language.c: Add frame.h include.
5879 * top.c: Add frame.h include.
5880 * symtab.h (struct obj_section): Declare.
5881 (struct cmd_list_element): Declare.
5882
7ff38b1c
AB
58832015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * language.c (show_language_command): Find selected frame before
5886 asking for the language of that frame.
5887 (set_language_command): Likewise.
5888 * language.h (get_frame_language): Add frame parameter.
5889 * stack.c (get_frame_language): Add frame parameter, assert
5890 parameter is not NULL, update comment and reindent.
5891 * top.c (check_frame_language_change): Pass the selected frame
5892 into get_frame_language.
5893
da8c46d2
MM
58942015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5895
5896 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5897 (pt_btrace_insn_flags): New.
5898 (ftrace_add_pt): Call pt_btrace_insn_flags.
5899 * btrace.h (btrace_insn_flag): New.
5900 (btrace_insn) <flags>: New.
5901 * record-btrace.c (btrace_insn_history): Print insn prefix.
5902 * NEWS: Announce it.
5903
5599c404
MM
59042015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5905
5906 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5907 * configure: Regenerate.
5908
016a3251
DD
59092015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5910
5911 * Makefile.in (LIBICONV): Define.
5912 (CLIBS): Add LIBICONV.
5913 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5914 * configure: Regenerate.
5915
aead7601
SM
59162015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5917 Pedro Alves <palves@redhat.com>
5918
5919 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5920 (arm_set_abi): Likewise.
5921 * ax-general.c (ax_print): Likewise.
5922 * c-exp.y (exp : string_exp): Likewise.
5923 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5924 (do_compile_dwarf_expr_to_c): Likewise.
5925 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5926 Likewise.
5927 * dwarf2expr.c (execute_stack_op): Likewise.
5928 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5929 (disassemble_dwarf_expression): Likewise.
5930 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5931 (read_array_order): Likewise.
5932 (abbrev_table_read_table): Likewise.
5933 (read_attribute_value): Likewise.
5934 (skip_unknown_opcode): Likewise.
5935 (dwarf_decode_macro_bytes): Likewise.
5936 (dwarf_decode_macros): Likewise.
5937 * eval.c (value_f90_subarray): Likewise.
5938 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5939 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5940 * infrun.c (handle_command): Likewise.
5941 * memory-map.c (memory_map_start_memory): Likewise.
5942 * osabi.c (set_osabi): Likewise.
5943 * parse.c (operator_length_standard): Likewise.
5944 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5945 single return point.
5946 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5947 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5948 (gdbpy_lookup_global_symbol): Likewise.
5949 * record-full.c (record_full_restore): Likewise.
5950 * regcache.c (regcache_register_status): Likewise.
5951 (regcache_raw_read): Likewise.
5952 (regcache_cooked_read): Likewise.
5953 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5954 * symtab.c (initialize_ordinary_address_classes): Likewise.
5955 * target-debug.h (target_debug_print_signals): Likewise.
5956 * utils.c (do_restore_current_language): Likewise.
5957
ca0a5f0b
CD
59582015-08-06 Clem Dickey <clemd@acm.org>
5959
5960 PR python/17136
5961 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5962
05d999b0
SM
59632015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5964
5965 * complaints.c (enum complaint_series): Add newlines and remove
5966 out of date comment.
5967 (struct complaints) <series>: Change type to enum
5968 complaint_series and remove out of date comment.
5969 (symfile_complaint_hook): Use equivalent enum value
5970 ISOLATED_MESSAGE instead of 0.
5971
bf47e248
PA
59722015-08-06 Pedro Alves <palves@redhat.com>
5973
5974 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5975 returned > 0.
5976
b6b9ffcc
PL
59772015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5978
5979 * common/agent.c (symbol_list) <required>: Remove.
5980
863d01bd
PA
59812015-08-06 Pedro Alves <palves@redhat.com>
5982
5983 * target/waitstatus.h (enum target_stop_reason)
5984 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5985
0a39bb32
PA
59862015-08-05 Pedro Alves <palves@redhat.com>
5987 Joel Brobecker <brobecker@adacore.com>
5988
9d996aba 5989 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
5990 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5991 case where BS->STOP is not set.
5992
260439cb
UW
59932015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5994
5995 * nat/gdb_thread_db.h: Add copyright header.
5996 Protect against multiple inclusion.
5997
d89fa914
YQ
59982015-08-05 Yao Qi <yao.qi@linaro.org>
5999
6000 * aarch64-linux-nat.c (get_thread_id): Remove.
6001 (debug_reg_change_callback): Call ptid_get_lwp instead of
6002 get_thread_id.
6003 (fetch_gregs_from_thread): Likewise.
6004 (store_gregs_to_thread): Likewise.
6005 (fetch_fpregs_from_thread): Likewise.
6006 (store_fpregs_to_thread): Likewise.
6007 (aarch64_linux_get_debug_reg_capacity): Likewise.
6008 * arm-linux-nat.c (get_thread_id): Remove.
6009 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6010 * xtensa-linux-nat.c (get_thread_id): Remove.
6011 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6012 * arm-linux-nat.c (get_thread_id): Remove.
6013 (GET_THREAD_ID): Remove.
6014 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6015 (store_fpregs, fetch_regs, store_regs): Likewise.
6016 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6017 (fetch_vfp_regs, store_vfp_regs): Likewise.
6018 (arm_linux_read_description): Likewise.
6019 (arm_linux_get_hwbp_cap): Likewise.
6020 * xtensa-linux-nat.c (get_thread_id): Remove.
6021 (GET_THREAD_ID): Remove.
6022 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6023 GET_THREAD_ID.
6024
4efd80aa
CS
60252015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6026
6027 * python/py-linetable.c: Fix case of Linetable to LineTable
6028 in docstrings and code comments.
6029 * python/py-symtab.c: Same.
6030
c6343a91
JK
60312015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6034
978b9495
JK
60352015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6036
6037 PR gdb/18767
6038 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6039 use.
6040
96e9210f
PA
60412015-08-04 Pedro Alves <palves@redhat.com>
6042
6043 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6044 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6045 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6046 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6047 (td_thr_validate_ftype, td_thr_get_info_ftype)
6048 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6049 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6050 New typedefs.
6051 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6052 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6053 local macros and use them instead of verbose_dlsym and dlsym
6054 calls.
6055
af60a1ef
SL
60562015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6057
6058 * nios2-tdep.h: Include opcode/nios2.h here.
6059 (NIOS2_CDX_OPCODE_SIZE): New.
6060 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6061 * nios2-tdep.c: Don't include opcode/nios2.h here.
6062 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6063 4-byte read fails.
6064 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6065 (nios2_match_addi, nios2_match_orhi): Likewise.
6066 (nios2_match_stw, nios2_match_ldw): Likewise.
6067 (nios2_match_rdctl): Likewise.
6068 (nios2_match_stwm, nios2_match_ldwm): New.
6069 (nios2_match_branch): Add cases for R2 encodings.
6070 (nios2_match_jmpi, nios2_match_calli): Likewise.
6071 (nios2_match_jmpr, nios2_match_callr): Likewise.
6072 (nios2_match_break, nios2_match_trap): Likewise.
6073 (nios2_in_epilogue_p): Add R2 support.
6074 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6075 prologues.
6076 (nios2_breakpoint_from_pc): Handle R2 instructions.
6077 (nios2_get_next_pc): Likewise. Adjust call to
6078 tdep->syscall_next_pc.
6079 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6080 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6081 instruction field macros instead of literal hex values.
6082 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6083 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6084 Use size field from OP instead of assuming all instructions
6085 are the same size.
6086 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6087
1da03605
UW
60882015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6089
6090 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6091 variable warning with some compilers.
6092
8156fe7f
YQ
60932015-08-03 Yao Qi <yao.qi@linaro.org>
6094
6095 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6096 in comment. Replace "rw" with "type".
6097 (arm_linux_remove_watchpoint): Change type of "rw" to
6098 "enum target_hw_bp_type".
6099
835a09d9
PMR
61002015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6101
6102 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6103 lookup_symbol.
6104 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6105 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6106 * mt-tdep.c (mt_skip_prologue): Likewise.
6107 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6108
d12307c1
PMR
61092015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6110
6111 * ada-exp.y (write_object_renaming): Replace struct
6112 ada_symbol_info with struct block_symbol. Update field
6113 references accordingly.
6114 (block_lookup, select_possible_type_sym): Likewise.
6115 (find_primitive_type): Likewise. Also update call to
6116 ada_lookup_symbol to extract the symbol itself.
6117 (write_var_or_type, write_name_assoc): Likewise.
6118 * ada-lang.h (struct ada_symbol_info): Remove.
6119 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6120 struct block_symbol.
6121 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6122 (ada_lookup_symbol): Return struct block_symbol instead of a
6123 mere symbol.
6124 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6125 with struct block_symbol.
6126 (resolve_subexp, ada_resolve_function, sort_choices,
6127 user_select_syms, is_nonfunction, add_defn_to_vec,
6128 num_defns_collected, defns_collected,
6129 symbols_are_identical_enums, remove_extra_symbols,
6130 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6131 ada_lookup_symbol_list, ada_iterate_over_symbols,
6132 ada_lookup_encoded_symbol, get_var_value): Likewise.
6133 (ada_lookup_symbol): Return a block_symbol instead of a mere
6134 symbol. Replace struct ada_symbol_info with struct
6135 block_symbol.
6136 (ada_lookup_symbol_nonlocal): Likewise.
6137 (standard_lookup): Make block passing explicit through
6138 lookup_symbol_in_language.
6139 * ada-tasks.c (get_tcb_types_info): Update the calls to
6140 lookup_symbol_in_language to extract the mere symbol out of the
6141 returned value.
6142 (ada_tasks_inferior_data_sniffer): Likewise.
6143 * ax-gdb.c (gen_static_field): Likewise for the call to
6144 lookup_symbol.
a5fdf78a 6145 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
6146 lookup functions.
6147 (gen_expr): Likewise.
6148 * c-exp.y: Likewise. Remove uses of block_found.
6149 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6150 (classify_name): Likewise. Rename the "sym" local variable to
6151 "bsym".
6152 * c-valprint.c (print_unpacked_pointer): Likewise.
6153 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6154 "sym" parameter from struct symbol * to struct block_symbol.
6155 Use it to remove uses of block_found. Deal with struct
a5fdf78a 6156 block_symbol from lookup functions.
d12307c1
PMR
6157 (gcc_convert_symbol): Likewise. Update the call to
6158 convert_symbol_sym.
6159 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 6160 struct block_symbol from lookup functions.
d12307c1
PMR
6161 * cp-namespace.c (cp_lookup_nested_symbol_1,
6162 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6163 cp_search_static_and_baseclasses,
6164 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6165 cp_lookup_symbol_imports_or_template,
6166 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6167 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
6168 find_symbol_in_baseclass): Return struct block_symbol instead of
6169 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
6170 functions.
6171 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 6172 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
6173 lookup functions.
6174 * cp-support.h (cp_lookup_symbol_nonlocal,
6175 cp_lookup_symbol_from_namespace,
6176 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 6177 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
6178 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6179 push_module_name):
a5fdf78a 6180 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
6181 uses of block_found.
6182 * eval.c (evaluate_subexp_standard): Update call to
6183 cp_lookup_symbol_namespace.
a5fdf78a
PMR
6184 * f-exp.y: Deal with struct block_symbol from lookup functions.
6185 Remove uses of block_found.
d12307c1
PMR
6186 (yylex): Likewise.
6187 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6188 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 6189 struct block_symbol from lookup functions.
d12307c1
PMR
6190 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6191 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6192 (gdbscm_lookup_global_symbol): Likewise.
6193 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6194 * go-exp.y: Likewise. Remove uses of block_found.
6195 (package_name_p, classify_packaged_name, classify_name):
6196 Likewise.
6197 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6198 * jv-exp.y (push_variable): Likewise.
6199 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6200 * language.c (language_bool_type): Likewise.
6201 * language.h (struct language_defn): Update
a5fdf78a
PMR
6202 la_lookup_symbol_nonlocal to return a struct block_symbol rather
6203 than a mere symbol.
6204 * linespec.c (find_label_symbols): Deal with struct block_symbol
6205 from lookup functions.
d12307c1
PMR
6206 * m2-exp.y: Likewise. Remove uses of block_found.
6207 (yylex): Likewise.
6208 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6209 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
6210 * p-exp.y: Likewise. Remove uses of block_found.
6211 (yylex): Likewise.
6212 * p-valprint.c (pascal_val_print): Likewise.
6213 * parse.c (write_dollar_variable): Likewise. Remove uses of
6214 block_found.
6215 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
6216 struct block_symbol.
6217 * printcmd.c (address_info): Deal with struct block_symbol from
6218 lookup functions.
d12307c1
PMR
6219 * python/py-frame.c (frapy_read_var): Likewise.
6220 * python/py-symbol.c (gdbpy_lookup_symbol,
6221 gdbpy_lookup_global_symbol): Likewise.
6222 * skip.c (skip_function_command): Likewise.
6223 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 6224 block_symbol instead of a mere symbol.
d12307c1
PMR
6225 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6226 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6227 * solib.c (solib_global_lookup): Likewise.
6228 * solist.h (solib_global_lookup): Likewise.
6229 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
6230 return a struct block_symbol rather than a mere symbol.
6231 * source.c (select_source_symtab): Deal with struct block_symbol
6232 from lookup functions.
d12307c1
PMR
6233 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6234 Likewise.
6235 * symfile.c (set_initial_language): Likewise.
6236 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 6237 block_symbol.
d12307c1
PMR
6238 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6239 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 6240 block_symbol.
d12307c1 6241 (block_found): Remove.
a5fdf78a 6242 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 6243 cache slots.
a5fdf78a
PMR
6244 (symbol_cache_lookup): Return a struct block_symbol rather than
6245 a mere symbol.
d12307c1
PMR
6246 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6247 appropriately the cache slots. Update callers.
6248 (symbol_cache_dump): Update cache slots handling to the type
6249 change.
6250 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6251 lookup_symbol_aux, lookup_local_symbol,
6252 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6253 lookup_symbol_in_objfile_symtabs,
6254 lookup_symbol_in_objfile_from_linkage_name,
6255 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6256 lookup_symbol_in_static_block, lookup_static_symbol,
6257 lookup_global_symbol):
a5fdf78a
PMR
6258 Return a struct block_symbol rather than a mere symbol. Deal
6259 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
6260 uses of block_found.
6261 (lookup_symbol_in_block): Remove uses of block_found.
6262 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 6263 struct block_symbol.
d12307c1
PMR
6264 (lookup_symbol_global_iterator_cb): Update references to the
6265 RESULT field.
a5fdf78a 6266 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 6267 functions.
a5fdf78a 6268 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
6269 (block_found): Remove.
6270 (lookup_symbol_in_language, lookup_symbol,
6271 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
6272 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6273 lookup_global_symbol_from_objfile): Return a struct block_symbol
6274 rather than just a mere symbol. Update comments to remove
6275 mentions of block_found.
d12307c1
PMR
6276 * valops.c (find_function_in_inferior,
6277 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 6278 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
6279 functions.
6280 * value.c (value_static_field, value_fn_field): Likewise.
6281
b1c59ddc
SM
62822015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6283
6284 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6285 instead of integer.
6286
f486487f 62872015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 6288 Pedro Alves <palves@redhat.com>
f486487f
SM
6289
6290 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6291 type or value instead of integer.
6292 (aarch64_linux_insert_watchpoint): Likewise.
6293 (aarch64_linux_remove_watchpoint): Likewise.
6294 * ada-lang.c (ada_op_print_tab): Likewise.
6295 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6296 (amd64_linux_syscall_record_common): Likewise.
6297 * arch-utils.c (target_byte_order_user): Likewise.
6298 (default_byte_order): Likewise.
6299 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6300 (arm_linux_get_hwbp_type): Likewise.
6301 (arm_linux_hw_watchpoint_initialize): Likewise.
6302 (arm_linux_insert_watchpoint): Likewise.
6303 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6304 (arm_linux_syscall_record): Likewise.
6305 * breakpoint.c (update_watchpoint): Likewise.
6306 (breakpoint_here_p): Likewise.
6307 (bpstat_print): Likewise.
6308 (enable_breakpoint_disp): Likewise.
6309 * c-lang.c (c_op_print_tab): Likewise.
6310 * cli/cli-decode.c (add_info_alias): Likewise.
6311 * d-lang.c (d_op_print_tab): Likewise.
6312 * eval.c (evaluate_subexp_standard): Likewise.
6313 * f-exp.y (dot_ops): Likewise.
6314 (f77_keywords): Likewise.
6315 * f-lang.c (f_op_print_tab): Likewise.
6316 * go-lang.c (go_op_print_tab): Likewise.
6317 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6318 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6319 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6320 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6321 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6322 (struct scm_from_stringn_data): Likewise.
6323 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6324 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6325 (ia64_linux_remove_watchpoint): Likewise.
6326 (ia64_linux_can_use_hw_breakpoint): Likewise.
6327 * infrun.c (print_stop_event): Likewise.
6328 * jv-lang.c (java_op_print_tab): Likewise.
6329 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6330 * linux-nat.h (struct lwp_info): Likewise.
6331 * linux-thread-db.c (enable_thread_event): Likewise.
6332 * m2-lang.c (m2_op_print_tab): Likewise.
6333 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6334 (mi_cmd_stack_list_variables): Likewise.
6335 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6336 * mi/mi-out.c (mi_table_begin): Likewise.
6337 (mi_table_header): Likewise.
6338 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6339 (mips_linux_insert_watchpoint): Likewise.
6340 (mips_linux_remove_watchpoint): Likewise.
6341 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6342 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6343 (mips_linux_watch_type_to_irw): Likewise.
6344 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6345 (procfs_insert_hw_watchpoint): Likewise.
6346 (procfs_remove_hw_watchpoint): Likewise.
6347 (procfs_hw_watchpoint): Likewise.
6348 (procfs_can_use_hw_breakpoint): Likewise.
6349 (procfs_remove_hw_watchpoint): Likewise.
6350 (procfs_insert_hw_watchpoint): Likewise.
6351 * p-lang.c (pascal_op_print_tab): Likewise.
6352 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6353 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6354 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6355 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6356 (procfs_insert_watchpoint): Likewise.
6357 (procfs_remove_watchpoint): Likewise.
6358 * psymtab.c (recursively_search_psymtabs): Likewise.
6359 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6360 (m32r_insert_watchpoint): Likewise.
6361 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6362 (mips_insert_watchpoint): Likewise.
6363 (mips_remove_watchpoint): Likewise.
6364 * remote.c (watchpoint_to_Z_packet): Likewise.
6365 (remote_insert_watchpoint): Likewise.
6366 (remote_remove_watchpoint): Likewise.
6367 (remote_check_watch_resources): Likewise.
6368 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6369 (s390_remove_watchpoint): Likewise.
6370 (s390_can_use_hw_breakpoint): Likewise.
6371 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6372 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6373 * target.h (struct target_ops): Likewise.
6374 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6375 * ui-out.c (struct ui_out_hdr): Likewise.
6376 (append_header_to_list): Likewise.
6377 (get_next_header): Likewise.
6378 (verify_field): Likewise.
6379 (ui_out_begin): Likewise.
6380 (ui_out_field_int): Likewise.
6381 (ui_out_field_fmt_int): Likewise.
6382 (ui_out_field_skip): Likewise.
6383 (ui_out_field_string): Likewise.
6384 (ui_out_field_fmt): Likewise.
6385 * varobj.c (new_variable): Likewise.
6386 * x86-nat.c (x86_insert_watchpoint): Likewise.
6387 (x86_remove_watchpoint): Likewise.
6388 (x86_can_use_hw_breakpoint): Likewise.
6389 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6390 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6391 previously anonymous enumeration type..
6392 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6393 value.
6394 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6395 (target_debug_print_enum_bptype): New.
6396 * target-delegates.c: Regenerate.
6397
e1b5381f
SL
63982015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6399
6400 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6401 already says and disallow non-stack memory writes in the prologue.
6402
9aaf8e3a
SL
64032015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6404
6405 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6406 reflect how current GCC emits stack overflow checks. Match
6407 both trap and break instructions for backward compatbility.
6408 Disallow other trap and break instructions in the prologue.
6409
69dde7dc
PA
64102015-07-30 Pedro Alves <palves@redhat.com>
6411
6412 PR threads/18600
6413 * linux-nat.c (wait_lwp): Report to the core when thread group
6414 leader exits.
6415
4dd63d48
PA
64162015-07-30 Pedro Alves <palves@redhat.com>
6417 Simon Marchi <simon.marchi@ericsson.com>
6418
6419 PR threads/18600
6420 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6421 mark the new thread as resumed. Remove STOPPING parameter.
6422 (wait_lwp): Adjust call to linux_handle_extended_wait.
6423 (linux_nat_filter_event): Adjust call to
6424 linux_handle_extended_wait.
6425 (resume_stopped_resumed_lwps): Add debug output.
6426
6b940e6a
PL
64272015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6428
6429 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6430 isize argument.
6431 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6432 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6433 gdbarch_fast_tracepoint_valid_at.
6434 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6435 * gdbarch.h: Regenerate.
6436 * gdbarch.c: Regenerate.
6437 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6438 argument. Do not set it.
6439 * remote.c (remote_download_tracepoint): Adjust call to
6440 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6441 the instruction length.
6442
ec741292
YQ
64432015-07-30 Yao Qi <yao.qi@linaro.org>
6444
6445 * arm-tdep.h (enum gdb_regnum): Move it to ...
6446 * arch/arm.h: ... here. New file.
6447 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6448
0ea6402e
PL
64492015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6450
6451 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6452 Change its type to int *.
6453 (decode_br): Rename link argument to is_blr. Change its type to
6454 int *.
6455 (decode_cb): Rename op argument to is_cbnz. Change its type to
6456 int *.
6457 (decode_tb): Rename op argument to is_tbnz. Change its type to
6458 int *. Set is_tbnz to either 1 or 0.
6459 (aarch64_analyze_prologue): Change type of is_link to int. Add
6460 new variables is_cbnz and is_tbnz. Adjust call to
6461 aarch64_decode_cb and aarch64_decode_tb.
6462
aa58a496
SM
64632015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6464
6465 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6466 parameter.
6467 (mips_linux_new_thread): Likewise.
6468 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6469
18206ca3
PP
64702015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6471
6472 * top.c: Include "tui/tui.h".
6473 (undo_terminal_modifications_before_exit): New static function.
6474 (quit_force): Use it.
6475
7afa63c6
PP
64762015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6477
6478 * target.c (terminal_state): Initialize to terminal_is_ours.
6479
cc9f16aa
YQ
64802015-07-29 Yao Qi <yao.qi@linaro.org>
6481
6482 PR record/18691
6483 * dcache.c (dcache_read_memory_partial): Call
6484 raw_memory_xfer_partial.
6485 * target.c (raw_memory_xfer_partial): Make it non-static.
6486 * target.h (raw_memory_xfer_partial): Declare.
6487
3ae385af
SM
64882015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6489
6490 * c-valprint.c (c_val_print_array): Consider addressable memory
6491 unit size.
6492 (c_val_print_ptr): Likewise.
6493 (c_val_print_int): Likewise.
6494 * findvar.c (read_frame_register_value): Likewise.
6495 * valarith.c (find_size_for_pointer_math): Likewise.
6496 (value_ptrdiff): Likewise.
6497 (value_subscripted_rvalue): Likewise.
6498 * valops.c (read_value_memory): Likewise (and rename variables).
6499 (value_assign): Likewise.
6500 (value_repeat): Likewise.
6501 (value_array): Likewise.
6502 (value_slice): Likewise.
6503 * valprint.c (generic_val_print_ptr): Likewise.
6504 (generic_val_print_enum): Likewise.
6505 (generic_val_print_bool): Likewise.
6506 (generic_val_print_int): Likewise.
6507 (generic_val_print_char): Likewise.
6508 (generic_val_print_float): Likewise.
6509 (generic_val_print_decfloat): Likewise.
6510 (generic_val_print_complex): Likewise.
6511 (val_print_scalar_formatted): Likewise.
6512 (val_print_array_elements): Likewise.
6513 * value.c (set_value_parent): Likewise.
6514 (value_contents_copy_raw): Likewise.
6515 (set_internalvar_component): Likewise.
6516 (value_primitive_field): Likewise.
6517 (value_fetch_lazy): Likewise.
6518 * value.h (read_value_memory): Update comment.
6519
e512cdbd
SM
65202015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6521
6522 * value.c (get_value_arch): New function.
6523 * value.h (get_value_arch): New declaration.
6524
3723fda8
SM
65252015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6526
6527 * value.c (struct value): Update comments.
6528
2e056931
SM
65292015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6530
6531 * gdbtypes.c (type_length_units): New function.
6532 * gdbtypes.h (type_length_units): New declaration.
6533 (struct type) <length>: Update comment.
6534
0c87c0bf
SM
65352015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6536
6537 * valprint.c (generic_val_print): Factor out complex
6538 printing code to ...
6539 (generic_val_print_complex): ... this new function.
6540
9550ae5e
SM
65412015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6542
6543 * valprint.c (generic_val_print): Factor out decfloat
6544 printing code to ...
6545 (generic_val_print_decfloat): ... this new function.
6546
7784724b
SM
65472015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6548
6549 * valprint.c (generic_val_print): Factor out float
6550 printing code to ...
6551 (generic_val_print_float): ... this new function.
6552
385f5aff
SM
65532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6554
6555 * valprint.c (generic_val_print): Factor out char
6556 printing code to ...
6557 (generic_val_print_char): ... this new function.
6558
b21b6342
SM
65592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6560
6561 * valprint.c (generic_val_print): Factor out integer
6562 printing code to ...
6563 (generic_val_print_int): ... this new function.
6564
e5bead4b
SM
65652015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6566
6567 * valprint.c (generic_val_print): Factor out bool
6568 printing code to ...
6569 (generic_val_print_bool): ... this new function.
6570
4a8c372f
SM
65712015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6572
6573 * valprint.c (generic_val_print): Factor out function/method
6574 printing code to ...
6575 (generic_val_print_func): ... this new function.
6576
d93880bd
SM
65772015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6578
6579 * valprint.c (generic_val_print): Factor out flags
6580 printing code to ...
6581 (generic_val_print_flags): ... this new function.
6582
ef0bc0dd
SM
65832015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6584
6585 * valprint.c (generic_val_print): Factor out enum
6586 printing code to ...
6587 (generic_val_print_enum): ... this new function.
6588
fe43fede
SM
65892015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6590
6591 * valprint.c (generic_val_print): Factor out reference
6592 printing code to ...
6593 (generic_val_print_ref): ... this new function.
6594
45000ea2
SM
65952015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6596
6597 * valprint.c (generic_val_print): Factor out memberptr
6598 printing code to ...
6599 (generic_val_print_memberptr): ... this new function.
6600
81eb921a
SM
66012015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6602
6603 * valprint.c (generic_val_print): Factor out pointer
6604 printing code to ...
6605 (generic_val_print_ptr): ... this new function.
6606
557dbe8a
SM
66072015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * valprint.c (generic_val_print): Factor out array
6610 printing code to ...
6611 (generic_val_print_array): ... this new function.
6612
9f436164
SM
66132015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6614
6615 * valprint.c (generic_val_print): Factor out
6616 print_unpacked_pointer code to ...
6617 (print_unpacked_pointer): ... this new function.
6618
077836f7
PP
66192015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6620
6621 * event-top.c (handle_sigterm): Don't inspect
6622 target_can_async_p. Always set the quit flag and always mark
6623 the async signal handler.
6624
3a60804f
YQ
66252015-07-27 Yao Qi <yao.qi@linaro.org>
6626
6627 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6628
c9f35b34
KB
66292015-07-25 Kevin Buettner <kevinb@redhat.com>
6630
6631 * remote.c (read_ptid): Return null_ptid when no thread id
6632 is found.
6633 (remote_current_thread): Add log warning for malformed
6634 qC reply.
6635 (remote_start_remote): Add log warning when current thread
6636 not found.
6637
2b4cab86
PA
66382015-07-24 Pedro Alves <palves@redhat.com>
6639
6640 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6641 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6642 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6643
77598427
PA
66442015-07-24 Pedro Alves <palves@redhat.com>
6645
6646 PR gdb/18717
6647 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6648 is resumed, and extend the debug log.
6649
fe23c31f
PA
66502015-07-24 Pedro Alves <palves@redhat.com>
6651
6652 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6653
5826e159
PA
66542015-07-24 Pedro Alves <palves@redhat.com>
6655
6656 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6657 sys/ptrace.h.
6658 * alpha-linux-nat.c: Likewise.
6659 * amd64-linux-nat.c: Likewise.
6660 * arm-linux-nat.c: Likewise.
6661 * hppa-linux-nat.c: Likewise.
6662 * i386-linux-nat.c: Likewise.
6663 * ia64-linux-nat.c: Likewise.
6664 * linux-fork.c: Likewise.
6665 * linux-nat.c: Likewise.
6666 * m32r-linux-nat.c: Likewise.
6667 * m68klinux-nat.c: Likewise.
6668 * mips-linux-nat.c: Likewise.
6669 * nat/linux-btrace.c: Likewise.
6670 * nat/linux-ptrace.c: Likewise.
6671 * nat/linux-ptrace.h
6672 * nat/mips-linux-watch.c: Likewise.
6673 * nat/x86-linux-dregs.c: Likewise.
6674 * ppc-linux-nat.c: Likewise.
6675 * s390-linux-nat.c: Likewise.
6676 * spu-linux-nat.c: Likewise.
6677 * tilegx-linux-nat.c: Likewise.
6678 * x86-linux-nat.c: Likewise.
6679 * xtensa-linux-nat.c: Likewise.
6680
54019719
PA
66812015-07-24 Pedro Alves <palves@redhat.com>
6682
6683 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6684 __ptrace_request as first parameter type instead of int.
6685 (PTRACE_TYPE_ARG1): Define.
6686 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6687 that casts first argument to PTRACE_TYPE_ARG1.
6688 * config.in: Regenerate.
6689 * configure: Regenerate.
6690
e3790375
PA
66912015-07-24 Pedro Alves <palves@redhat.com>
6692
6693 * gdb_ptrace.h: Move ...
6694 * nat/gdb_ptrace.h: ... here.
6695 * inf-ptrace.c: Adjust.
6696
eb7aa561
PA
66972015-07-24 Pedro Alves <palves@redhat.com>
6698
6699 * acinclude.m4: Include ptrace.m4.
6700 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6701 * ptrace.m4: ... to this new file.
6702
cc12ce38
DE
67032015-07-23 Doug Evans <dje@google.com>
6704
6705 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6706 (load_cu): Handle dummy CUs.
6707 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6708 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6709
7b849db4
CS
67102015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6711
6712 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6713 documentation to say that it returns a list rather than
6714 a FrozenSet.
6715 (linetable_object_methods): Update the docstring of the
6716 "source_line" entry.
6717
d0d84780
PMR
67182015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6719
6720 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6721 type to the recursive call instead of the original (maybe
6722 TYPE_CODE_TYPEDEF) type.
6723
c2fbdc59
YQ
67242015-07-23 Yao Qi <yao.qi@linaro.org>
6725
6726 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6727 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6728 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6729
af1b22f3
YQ
67302015-07-21 Yao Qi <yao.qi@linaro.org>
6731
6732 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6733 Move it to nat/aarch64-linux-hw-point.c.
6734 (aarch64_linux_child_post_startup_inferior): Update.
6735 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6736 New function.
6737 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6738 Declare it.
6739
40e050d2
MM
67402015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6741
6742 * common/btrace-common.c (btrace_data_append): Change case label.
6743
3675a06a
YQ
67442015-07-20 Yao Qi <yao.qi@linaro.org>
6745
6746 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6747 Re-indent the code.
6748 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6749 "unsigned long long".
6750
b4e1fd61
KB
67512015-07-18 Kevin Buettner <kevinb@redhat.com>
6752
6753 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6754 to be set for SEC_ALLOC sections too.
6755
554717a3
YQ
67562015-07-17 Yao Qi <yao.qi@linaro.org>
6757
6758 * Makefile.in (HFILES_NO_SRCDIR): Add
6759 nat/aarch64-linux-hw-point.h.
6760 (aarch64-linux-hw-point.o): New rule.
6761 * nat/aarch64-linux-hw-point.h: New file.
6762 * nat/aarch64-linux-hw-point.c: New file.
6763 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6764 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6765 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6766 (AARCH64_HWP_ALIGNMENT): Likewise.
6767 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6768 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6769 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6770 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6771 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6772 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6773 (struct aarch64_debug_reg_state): Likewise.
6774 (struct arch_lwp_info): Likewise.
6775 (aarch64_linux_set_debug_regs): Likewise.
6776 (aarch64_notify_debug_reg_change): Remove static.
6777 (aarch64_align_watchpoint): Likewise.
6778 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6779 (aarch64_watchpoint_length): Likewise.
6780 (aarch64_point_encode_ctrl_reg): Likewise
6781 (aarch64_point_is_aligned): Likewise.
6782 (aarch64_dr_state_insert_one_point): Likewise.
6783 (aarch64_dr_state_remove_one_point): Likewise.
6784 (aarch64_handle_breakpoint): Likewise.
6785 (aarch64_handle_aligned_watchpoint): Likewise.
6786 (aarch64_handle_unaligned_watchpoint): Likewise.
6787 (aarch64_handle_watchpoint): Likewise.
6788 * config/aarch64/linux.mh (NAT_FILE): Add
6789 aarch64-linux-hw-point.o.
6790
c67ca4de
YQ
67912015-07-17 Yao Qi <yao.qi@linaro.org>
6792
6793 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6794 state and don't call aarch64_get_debug_reg_state. All callers
6795 update.
6796 (aarch64_linux_insert_hw_breakpoint): Call
6797 aarch64_get_debug_reg_state earlier.
6798 (aarch64_linux_remove_hw_breakpoint): Likewise.
6799 (aarch64_handle_aligned_watchpoint): Add argument state and
6800 don't call aarch64_get_debug_reg_state. All callers update.
6801 (aarch64_handle_unaligned_watchpoint): Likewise.
6802 (aarch64_handle_watchpoint): Add argument state.
6803 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6804 earlier.
6805 (aarch64_linux_remove_watchpoint): Likewise.
6806
25abf979
YQ
68072015-07-17 Yao Qi <yao.qi@linaro.org>
6808
6809 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6810 debug_printf.
6811 (aarch64_handle_unaligned_watchpoint): Likewise.
6812
2ecd81c2
YQ
68132015-07-17 Yao Qi <yao.qi@linaro.org>
6814
6815 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6816 argument type's type to 'enum target_hw_bp_type'.
6817 (aarch64_dr_state_remove_one_point): Likewise.
6818 (aarch64_handle_breakpoint): Likewise.
6819 (aarch64_linux_insert_hw_breakpoint): Likewise.
6820 (aarch64_linux_remove_hw_breakpoint): Likewise.
6821 (aarch64_handle_aligned_watchpoint): Likewise.
6822
e53b6938
YQ
68232015-07-17 Yao Qi <yao.qi@linaro.org>
6824
6825 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6826 ptid_get_pid instead of get_thread_id.
6827
6a49a997
YQ
68282015-07-17 Yao Qi <yao.qi@linaro.org>
6829
6830 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6831 (add_current_inferior_and_thread): Don't initialise ptid.
6832
4bcddace
PL
68332015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6834
6835 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6836 unavailable if invalid.
6837
db1ff28b
JK
68382015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6839
6840 Revert the previous 6 commits:
6841 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6842 Move gdb_regex* to common/
6843 Prepare linux_find_memory_regions_full & co. for move
6844 Move linux_find_memory_regions_full & co.
6845 gdbserver build-id attribute generator
6846 Validate symbol file using build-id
6847
ca5268b6
JK
68482015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6849 Jan Kratochvil <jan.kratochvil@redhat.com>
6850
6851 Validate symbol file using build-id.
6852 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6853 and 'show validate-build-id'. Add build-id attribute.
6854 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6855 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6856 * solib-frv.c (_initialize_frv_solib): Ditto.
6857 * solib-spu.c (set_spu_solib_ops): Ditto.
6858 * solib-svr4.c: Include rsp-low.h.
6859 (NOTE_GNU_BUILD_ID_NAME): New define.
6860 (svr4_validate): New function.
6861 (svr4_copy_library_list): Duplicate field build_id.
6862 (library_list_start_library): Parse 'build-id' attribute.
6863 (svr4_library_attributes): Add 'build-id' attribute.
6864 (_initialize_svr4_solib): Assign validate value.
6865 * solib-target.c (solib.h): Include.
6866 (_initialize_solib_target): Assign validate value.
6867 * solib.c (validate_build_id, show_validate_build_id): New.
6868 (solib_map_sections): Use ops->validate.
6869 (clear_so): Free build_id.
6870 (default_solib_validate): New function.
6871 (_initialize_solib): Add "validate-build-id".
6872 * solib.h (default_solib_validate): New declaration.
6873 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6874 (target_so_ops): New field 'validate'.
6875
700ca40f
JK
68762015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6877 Jan Kratochvil <jan.kratochvil@redhat.com>
6878
6879 gdbserver build-id attribute generator.
6880 * features/library-list-svr4.dtd (library-list-svr4): New
6881 'build-id' attribute.
6882
9904185c
JK
68832015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6884 Jan Kratochvil <jan.kratochvil@redhat.com>
6885
6886 Move linux_find_memory_regions_full & co.
6887 * linux-tdep.c (nat/linux-maps.h): Include.
6888 (gdb_regex.h): Remove the include.
6889 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6890 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6891 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6892 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6893 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6894 and target/target.h.
6895 (struct smaps_vmflags, read_mapping, decode_vmflags)
6896 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6897 (linux_find_memory_regions_full): Move from linux-tdep.c.
6898 * nat/linux-maps.h (read_mapping): New declaration.
6899 (linux_find_memory_region_ftype, enum filterflags): Moved from
6900 linux-tdep.c.
6901 (linux_find_memory_regions_full): New declaration.
6902 * target.c (target/target-utils.h): Include.
6903 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6904 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6905 definitions to target/target-utils.c.
6906 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6907 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6908 from target.c.
6909 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6910 (read_alloc): New declaration.
6911 (read_stralloc_func_ftype): New typedef.
6912 (read_stralloc): New declaration.
6913 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6914
f7af1fcd
JK
69152015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6916 Jan Kratochvil <jan.kratochvil@redhat.com>
6917
6918 Prepare linux_find_memory_regions_full & co. for move.
6919 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6920 (linux_find_memory_regions_full): Change signature and prepare
6921 for moving to linux-maps.
6922 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6923 (linux_find_memory_regions_thunk): New.
6924 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6925 (linux_find_memory_regions_gdb): New.
6926 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6927 (linux_make_mappings_corefile_notes): Use
6928 linux_find_memory_regions_gdb.
6929 * target.c (read_alloc_pread_ftype): New typedef.
6930 (target_fileio_read_alloc_1_pread): New function.
6931 (read_alloc): Refactor from target_fileio_read_alloc_1.
6932 (read_stralloc_func_ftype): New typedef.
6933 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6934 (read_stralloc): Refactored from target_fileio_read_stralloc.
6935 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6936
6e5b4429
JK
69372015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6938
6939 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6940 common/gdb_regex.h.
6941 (COMMON_OBS): Add gdb_regex.o.
6942 (gdb_regex.o): New.
6943 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6944 --without-included-regex and USE_INCLUDED_REGEX.
6945 * common/gdb_regex.c: New file from utils.c functions.
6946 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6947 file wrapping define name.
6948 * configure: Rebuilt.
6949 * configure.ac (gdb_use_included_regex, --without-included-regex)
6950 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6951 * gdb_regex.h: Move it to common/gdb_regex.h.
6952 * utils.c: Remove include gdb_regex.h.
6953 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6954 (compile_rx_or_error): Move them to common/gdb_regex.c.
6955
ddc98fbf
JK
69562015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6957 Jan Kratochvil <jan.kratochvil@redhat.com>
6958
6959 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6960 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6961 common/target-utils.h.
6962 (COMMON_OBS): Add target-utils.o.
6963 (linux-maps.o, target-utils.o): New.
6964 * target/target-utils.c: New file.
6965 * target/target-utils.h: New file.
6966 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6967 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6968 * nat/linux-maps.c: New file.
6969 * nat/linux-maps.h: New file.
6970
e7b01ce0
MM
69712015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6972 Pedro Alves <palves@redhat.com>
6973
6974 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6975 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6976 (perf_event_read_bts): Change the type of SIZE and READ.
6977 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6978 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6979 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6980 mmap page.
6981 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6982 buffer size to UINT_MAX.
6983 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6984 DATA_TAIL.
6985 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6986 <last_head>: Change type.
6987 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6988 * common/btrace-common.c (btrace_data_append): Change the type of
6989 SIZE.
6990 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6991 check.
6992
f168693b
SM
69932015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6994
6995 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6996 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6997 with check_typedef.
6998 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6999 (ada_array_length): Likewise.
7000 (find_parallel_type_by_descriptive_type): Likewise.
7001 (ada_check_typedef): Likewise.
7002 * arm-tdep.c (arm_return_in_memory): Likewise.
7003 * ax-gdb.c (gen_trace_static_fields): Likewise.
7004 (gen_struct_ref_recursive): Likewise.
7005 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7006 (variable: block COLONCOLON name): Likewise.
7007 (qualified_name: TYPENAME COLONCOLON name): Likewise.
7008 * c-lang.c (classify_type): Likewise.
7009 * c-typeprint.c (c_print_type): Likewise.
7010 (c_print_typedef): Likewise.
7011 (c_type_print_base): Likewise.
7012 * c-valprint.c (c_val_print): Likewise.
7013 * compile/compile-c-types.c (convert_type): Likewise.
7014 * compile/compile-object-load.c (get_out_value_type): Likewise.
7015 * completer.c (add_struct_fields): Likewise.
7016 (expression_completer): Likewise.
7017 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7018 (cp_lookup_nested_symbol_1): Likewise.
7019 (cp_lookup_nested_symbol): Likewise.
7020 * cp-valprint.c (cp_print_value_fields): Likewise.
7021 (cp_print_static_field): Likewise.
7022 * d-valprint.c (d_val_print): Likewise.
7023 * eval.c (evaluate_subexp_standard): Likewise.
7024 (evaluate_subexp_for_sizeof): Likewise.
7025 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7026 * f-typeprint.c (f_type_print_base): Likewise.
7027 * f-valprint.c (f_val_print): Likewise.
7028 * gdbtypes.c (get_discrete_bounds): Likewise.
7029 (create_array_type_with_stride): Likewise.
7030 (type_name_no_tag_or_error): Likewise.
7031 (lookup_struct_elt_type): Likewise.
7032 (get_unsigned_type_max): Likewise.
7033 (internal_type_vptr_fieldno): Likewise.
7034 (set_type_vptr_fieldno): Likewise.
7035 (internal_type_vptr_basetype): Likewise.
7036 (set_type_vptr_basetype): Likewise.
7037 (get_vptr_fieldno): Likewise.
7038 (is_integral_type): Likewise.
7039 (is_scalar_type): Likewise.
7040 (is_scalar_type_recursive): Likewise.
7041 (distance_to_ancestor): Likewise.
7042 (is_unique_ancestor_worker): Likewise.
7043 (check_types_equal): Likewise.
7044 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7045
45280282
IB
70462015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7047
7048 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7049 also test for language_d.
7050 (dwarf2_compute_name): Likewise.
7051 (read_func_scope): Likewise.
7052 (read_structure_type): Likewise.
7053 (new_symbol_full): Likewise.
7054 (determine_prefix): Likewise.
7055 (read_import_statement): Use dot as the separator for language_d.
7056 (typename_concat): Likewise, but don't prefix the D main function.
7057
99fe86f7
PB
70582015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7059
7060 * nat/linux-namespaces.c (setns): Rename from this ...
7061 (do_setns): ... to this. Support calling setns if it exists.
7062 (mnsh_handle_setns): Call do_setns.
7063
d5131498
YQ
70642015-07-13 Yao Qi <yao.qi@linaro.org>
7065
7066 * exec.c (exec_file_attach): Add period at the end of error
7067 message.
7068
97605e61
AB
70692015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7070
7071 * tui/tui-win.c (window_name_completer): New function.
7072 (focus_completer): Call window_name_completer. All old content
7073 moved into window_name_completer.
7074 (winheight_completer): New function.
7075 (_initialize_tui_win): Rename variable. Add completer to
7076 winheight command. Update doc string on winheight.
7077
8d6dbeb4
SL
70782015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7079
7080 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7081 all nios2 mach variants.
7082
a0e28e54
KB
70832015-07-10 Kevin Buettner <kevinb@redhat.com>
7084
7085 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7086 of target_read_memory.
7087
c101f28f
AB
70882015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7089
7090 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7091 string copy.
7092 (parse_scrolling_args): Likewise.
7093
150375dc
AB
70942015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7095
7096 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7097 names in this function.
7098
6dce28e4
AB
70992015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7100
7101 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7102 (CMD_NAME): Likewise.
7103 (DATA_NAME): Likewise.
7104 (DISASSEM_NAME): Likewise.
7105 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7106 (tui_set_win_height): Likewise.
7107 (parse_scrolling_args): Likewise.
7108
485668e5
MM
71092015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7110
7111 * record-btrace.c (record_btrace_goto_begin)
7112 (record_btrace_goto_end, record_btrace_goto): Move call to
7113 print_stack_frame ...
7114 (record_btrace_set_replay): ... here. Set stop_pc.
7115 * record-full.c (record_full_goto_entry): Set stop_pc.
7116
58d2eda5
PL
71172015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7118
7119 * NEWS: Mention support for tracepoints on aarch64-linux.
7120
7671bf47
PL
71212015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7122
7123 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7124 function. Return 1.
7125 (the_low_target): Install it.
7126
7890fb45
PL
71272015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7128
7129 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7130 * gdb.trace/collection.exp: Likewise.
7131 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7132 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7133 * gdb.trace/report.exp: Likewise.
7134 * gdb.trace/trace-break.exp: Likewise.
7135 * gdb.trace/unavailable.exp: Likewise.
7136 * gdb.trace/while-dyn.exp: Likewise.
7137
ea873d8e
PL
71382015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7139
7140 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7141 (aarch64_gen_return_address): New function.
7142 (aarch64_gdbarch_init): Hook it.
7143
02a2a705
PL
71442015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7145
7146 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7147 swallow NOT_AVAILABLE_ERROR.
7148 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7149 available_p is not set.
7150 (aarch64_stub_frame_unwind_stop_reason): New function.
7151 (aarch64_stub_unwind): Install it.
7152
7dfa3edc
PL
71532015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7154
7155 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7156 field.
7157 (aarch64_make_prologue_cache_1): New function, factored out from
7158 aarch64_make_prologue_cache. Do not allocate cache. Set
7159 available_p.
7160 (aarch64_make_prologue_cache): Reimplement wrapping
7161 aarch64_make_prologue_cache_1, and swallowing
7162 NOT_AVAILABLE_ERROR.
7163 (aarch64_prologue_frame_unwind_stop_reason): New function.
7164 Return UNWIND_UNAVAILABLE if available_p is not set.
7165 (aarch64_prologue_unwind): Install it.
7166 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7167 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7168 frame_id_build_unavailable_stack if available_p is not set.
7169
db634143
PL
71702015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7171
7172 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7173 fields.
7174 (aarch64_scan_prologue): Set prev_pc.
7175 (aarch64_make_prologue_cache): Set func.
7176 (aarch64_make_stub_cache): Set prev_pc.
7177 (aarch64_prologue_this_id): Remove local variables id, pc and
7178 func. Read prev_pc and func from cache.
7179 (aarch64_stub_this_id): Read prev_pc from cache.
7180
8b61f75d
PL
71812015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7182
7183 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7184 argument this_cache. Remove unused local variables reg and
7185 unwound_fp. Return early if this_cache is already set. Set
7186 this_cache.
7187 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7188
7c8edfae
PL
71892015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7190
7191 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7192 New argument this_cache. Return early if this_cache is already
7193 set. Set this_cache.
7194 (aarch64_prologue_this_id): Update call to
7195 aarch64_make_prologue_cache.
7196 (aarch64_prologue_prev_register): Likewise.
7197 (aarch64_normal_frame_base): Likewise.
7198
938c69a1
SM
71992015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7200
7201 * c-valprint.c (c_val_print): Factor out memberptr printing code
7202 from c_val_print to ...
7203 (c_val_print_memberptr): ... this new function.
7204
49f7fe28
SM
72052015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7206
7207 * c-valprint.c (c_val_print): Factor out int printing code to ...
7208 (c_val_print_int): ... this new function.
7209
9e4f353c
SM
72102015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7211
7212 * c-valprint.c (c_val_print): Factor out struct and union
7213 printing code to ...
7214 (c_val_print_struct): ... this new function ...
7215 (c_val_print_union): ... and this new function.
7216
1c67f032
SM
72172015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7218
7219 * c-valprint.c (c_val_print): Factor out pointer printing code
7220 to ...
7221 (c_val_print_ptr): ... this new function.
7222
0b6ef777
SM
72232015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7224
7225 * c-valprint.c (c_valprint): Factor our array printing code from
7226 c_val_print to ...
7227 (c_val_print_array): ... this new function.
7228
1033c33c
SM
72292015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7230
7231 * c-valprint.c (c_val_print): Factor out pointer printing code
7232 to ...
7233 (print_unpacked_pointer): ... this new function.
7234
f6b93c34
SM
72352015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 * c-valprint.c (c_val_print): Remove an assignment to i and move
7238 its declaration.
7239
0f4576e3
YQ
72402015-07-09 Yao Qi <yao.qi@linaro.org>
7241
7242 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7243 argument ptid. Update comments. Caller update.
7244
37fdfe4c
MM
72452015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7246
7247 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7248 mnt packets.
7249
80a2b330
MM
72502015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7251
7252 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7253
4ab31498
SM
72542015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7255
7256 * progspace.c (delete_program_space): Add missing spaces.
7257
7a41607e
SM
72582015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7259
7260 * inferior.c (delete_inferior_1): Rename to ...
7261 (delete_inferior): ..., remove 'silent' parameter, delete
7262 program space when unused and remove call to prune_program_spaces.
7263 Remove the old, unused, delete_inferior.
7264 (delete_inferior_silent): Remove.
7265 (prune_inferiors): Change call from delete_inferior_1 to
7266 delete_inferior and remove 'silent' parameter. Remove call to
7267 prune_program_spaces.
7268 (remove_inferior_command): Idem.
7269 * inferior.h (delete_inferior_1): Rename to...
7270 (delete_inferior): ..., remove 'silent' parameter and remove the
7271 original delete_inferior.
7272 (delete_inferior_silent): Remove.
7273 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7274 delete_inferior_1 to delete_inferior and remove 'silent'
7275 parameter.
7276 * progspace.c (prune_program_spaces): Remove.
7277 (pspace_empty_p): Rename to...
7278 (program_space_empty_p): ... and make non-static.
7279 (delete_program_space): New.
7280 * progspace.h (prune_program_spaces): Remove declaration.
7281 (program_space_empty_p): New declaration.
7282 (delete_program_space): New declaration.
7283 * monitor.c (monitor_close): Replace call to
7284 delete_thread_silent and delete_inferior_silent with
7285 discard_all_inferiors.
7286
a9bd710f
PP
72872015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7288
7289 * defs.h (deprecated_register_changed_hook): Remove prototype.
7290 * interps.c (clear_iterpreter_hooks): Remove reference to
7291 deprecated_register_changed_hook.
7292 * top.c (deprecated_register_changed_hook): Remove prototype.
7293 * valops.c (value_assign): Remove reference to
7294 deprecated_register_changed_hook.
7295 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7296 Add comment documenting the function.
7297 (tui_register_changed_observer): Define.
7298 (tui_install_hooks): Remove reference to
7299 deprecated_register_changed_hook. Set
7300 tui_register_changed_observer.
7301 (tui_remove_hooks): Remove reference to
7302 deprecated_register_changed_hook. Unset
7303 tui_register_changed_observer.
7304
08464196
JK
73052015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 PR compile/18484
7308 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7309
bcf5c1d9
RC
73102015-07-08 Robert O'Callahan <robert@ocallahan.org>
7311
7312 PR exp/18617
7313 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7314
e8643a45
MM
73152015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7316
7317 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7318
76fb6829
MM
73192015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7320
7321 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7322 Use safe_strerror() instead of strerror().
7323
82c40d4b
YQ
73242015-07-07 Yao Qi <yao.qi@linaro.org>
7325
7326 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7327 * features/arm-with-m-fpa-layout.c: Regenerated.
7328 * features/arm-with-m-vfp-d16.xml: Likewise.
7329 * features/arm-with-m-vfp-d16.c: Regenerated.
7330 * features/arm-with-m.xml: Likewise.
7331 * features/arm-with-m.c: Regenerated.
7332 * features/arm-with-neon.xml: Likewise.
7333 * features/arm-with-neon.c: Regenerated.
7334 * features/arm-with-vfpv2.xml: Likewise.
7335 * features/arm-with-vfpv2.c: Regenerated.
7336 * features/arm-with-vfpv3.xml: Likewise.
7337 * features/arm-with-vfpv3.c: Regenerated.
7338
607685ec
YQ
73392015-07-07 Yao Qi <yao.qi@linaro.org>
7340
7341 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7342 arm-linux-nat.c.
7343 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7344 elf/external.h.
7345 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7346 if target is 32-bit.
7347 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7348 if target is 32-bit.
7349 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7350 if target is 32-bit.
7351 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7352 if target is 32-bit.
7353 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7354 (aarch64_linux_read_description): Return the right target
7355 description.
7356 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7357 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7358 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7359 arm-linux-tdep.o.
7360
f1b67888
YQ
73612015-07-07 Yao Qi <yao.qi@linaro.org>
7362
7363 * aarch32-linux-nat.c: New file.
7364 * aarch32-linux-nat.h: New file.
7365 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7366 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7367 aarch32_gp_regcache_supply.
7368 (store_regs): Move code to aarch32-linux-nat.c. Call
7369 aarch32_gp_regcache_collect.
7370 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7371 aarch32_vfp_regcache_supply.
7372 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7373 aarch32_vfp_regcache_collect.
7374 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7375
179bfe82
YQ
73762015-07-07 Yao Qi <yao.qi@linaro.org>
7377
7378 * arm-linux-nat.c (store_fpregister): Remove.
7379 (store_register): Likewise.
7380 (fetch_fpregister): Likewise.
7381 (fetch_register): Likewise.
7382 (arm_linux_store_inferior_registers): Call store_regs and
7383 store_fpregs instead.
7384 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7385 fetch_regs instead.
7386
6008fc5f
AB
73872015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7388
7389 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7390 and focus commands.
7391
7c79d316
JB
73922015-07-06 Joel Brobecker <brobecker@adacore.com>
7393
7394 * NEWS: Create a new section for the next release branch.
7395 Rename the section of the current branch, now that it has
7396 been cut.
7397
f2232bea
JB
73982015-07-06 Joel Brobecker <brobecker@adacore.com>
7399
7400 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7401 * version.in: Bump version to 7.10.50.DATE-cvs.
7402
66c4b3e8
LM
74032015-07-06 Luis Machado <lgustavo@codesourcery.com>
7404
7405 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7406 breakpoints in a special way.
7407 (remove_breakpoint): Likewise.
7408 (mark_breakpoints_out): Likewise.
7409
bcd8537c
AB
74102015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7411
7412 * doc/gdb.texinfo (TUI): Add comma after @xref.
7413
10e9aaa3
AB
74142015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7417 instead of casting the structure type.
7418
8a13d42d
SM
74192015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7420
7421 * valops.c (search_struct_field): Remove OFFSET parameter.
7422 (value_cast_structs): Adjust calls to search_struct_field.
7423 (value_struct_elt): Same.
7424 (find_overload_match): Same.
7425
a844296a
SM
74262015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7427
7428 * value.c (value_fetch_lazy): Update comment, change return
7429 value to void.
7430 * value.h (value_fetch_lazy): Change return value to void.
7431
f41cbf58
AB
74322015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7435 (tui_win_name): Make parameter and result const.
7436 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7437
118ca224
PP
74382015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7439
7440 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7441 use printf_unfiltered.
7442 (set_mpx_cmd): Add missing trailing space to command string
7443 literal.
7444 (_initialize_i386_tdep): Give the "mpx" prefix command its
7445 correct name.
7446
1b485e67
KB
74472015-07-02 Kevin Buettner <kevinb@redhat.com>
7448
7449 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7450 (enum rx_frame_type): New.
7451 (struct rx_prologue): Add new field `frame_type'.
7452 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7453 parameter in the prologue struct. Add code for recording
7454 locations of PC and PSW for fast interrupt and exception frames.
7455 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7456 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7457 (rx_frame_type): New function.
7458 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7459 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7460 `this_cache'.
7461 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 7462 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
7463 RX_FRAME_TYPE_FAST_INTERRUPT.
7464 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7465 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7466 (rx_frame_unwind): Use rx_frame_sniffer instead of
7467 default_frame_sniffer.
7468 (rx_frame_unwind): New unwinder.
7469 (rx_gdbarch_init): Register new unwinder.
7470
0561fea4
KB
74712015-07-02 Kevin Buettner <kevinb@redhat.com>
7472
7473 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7474 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7475 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7476 and RX_FPSW_REGNUM.
7477 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7478
decf8d9a
JK
74792015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7480
7481 Fix GCC false warning.
7482 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7483
2fd0f80d
YQ
74842015-07-02 Yao Qi <yao.qi@linaro.org>
7485
7486 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7487 typo in the debugging message.
7488
b0627500
MM
74892015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7490
7491 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7492 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7493 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7494 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7495 (btrace_maint_clear): New.
7496 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7497 (pt_print_packet, btrace_maint_decode_pt)
7498 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7499 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7500 (maint_btrace_packet_history_cmd)
7501 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7502 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7503 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7504 (maint_info_btrace_cmd, _initialize_btrace): New.
7505 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7506 (btrace_maint_packet_history, btrace_maint_info): New.
7507 (btrace_thread_info) <maint>: New.
7508 * NEWS: Announce it.
7509
9be54cae
MM
75102015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7511
7512 * btrace.c (btrace_fetch): Append the new trace data.
7513 (btrace_clear): Clear the stored trace data.
7514 * btrace.h (btrace_thread_info) <data>: New.
7515 * common/btrace-common.h (btrace_data_clear)
7516 (btrace_data_append): New.
7517 * common/btrace-common.c (btrace_data_clear)
7518 (btrace_data_append): New.
7519
010a18a1
MM
75202015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7521
7522 * nat/linux-btrace.c (linux_enable_bts): Check for
7523 PERF_ATTR_SIZE_VER5.
7524 Check for data_offset and data_size fields. Use them.
7525
b20a6524
MM
75262015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7527
7528 * NEWS: Announce new commands "record btrace pt" and "record pt".
7529 Announce new options "set|show record btrace pt buffer-size".
7530 * btrace.c: Include "rsp-low.h".
7531 Include "inttypes.h".
7532 (btrace_add_pc): Add forward declaration.
7533 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7534 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7535 (btrace_compute_ftrace_pt): New.
7536 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7537 (check_xml_btrace_version): Update version check.
7538 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7539 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7540 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7541 (btrace_pt_children): New.
7542 (btrace_children): Add support for "pt".
7543 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7544 (btrace_conf_children): Add support for "pt".
7545 * btrace.h: Include "intel-pt.h".
7546 (btrace_pt_error): New.
7547 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7548 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7549 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7550 (struct btrace_config_pt): New.
7551 (struct btrace_config)<pt>: New.
7552 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7553 (struct btrace_data)<pt>: New.
7554 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7555 (pt): New.
7556 * features/btrace.dtd (btrace)<pt>: New.
7557 (pt, pt-config, cpu): New.
7558 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7559 (perf_event_pt_event_type, kernel_supports_pt)
7560 (linux_supports_pt): New.
7561 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7562 (linux_enable_bts): Free tinfo on error.
7563 (linux_enable_pt): New.
7564 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7565 (linux_disable_pt): New.
7566 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7567 (linux_fill_btrace_pt_config, linux_read_pt): New.
7568 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7569 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7570 (struct btrace_target_info)<pt>: New.
7571 * record-btrace.c (set_record_btrace_pt_cmdlist)
7572 (show_record_btrace_pt_cmdlist): New.
7573 (record_btrace_print_pt_conf): New.
7574 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7575 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7576 (cmd_record_btrace_pt_start): New.
7577 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7578 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7579 (_initialize_record_btrace): Add new commands.
7580 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7581 (remote_protocol_features): Add "Qbtrace:pt".
7582 Add "Qbtrace-conf:pt:size".
7583 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7584 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7585 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7586 (_initialize_remote): Add new commands.
7587
58bfce93
MM
75882015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7589
7590 * configure.ac: check for libipt
7591 * configure: Regenerate.
7592 * config.in: Regenerate.
7593 * Makefile.in (LIBIPT): New.
7594 (CLIBS): Add $LIBIPT.
7595 * NEWS: document new configure options
7596
b0fd6b30
JK
75972015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 * compile/compile-object-load.c (compile_object_load): Replace debug
7600 message "lookup undefined ELF symbol" by 3 more specific messages.
7601
e6280369
KB
76022015-07-01 Kevin Buettner <kevinb@redhat.com>
7603
7604 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7605 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7606 (rl78_gdbarch_init): Initialize rl78_psw_type.
7607
bbcbf914
PP
76082015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7609
7610 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7611 Update commentary. Always refresh the registers when frame
7612 information has changed.
7613 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7614 Change return type to int. Return 1 if frame information has
7615 changed, 0 otherwise.
7616 (tui_before_prompt): Update commentary.
7617 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7618 int.
7619
0986c744
PP
76202015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7621
7622 PR tui/13378
7623 * frame.c (select_frame): Remove reference to
7624 deprecated_selected_frame_level_changed_hook.
7625 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7626 declaration.
7627 * stack.c (deprecated_selected_frame_level_changed_hook):
7628 Likewise.
7629 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7630 Rename to ...
7631 (tui_refresh_frame_and_register_information): ... this. Bail
7632 out if there is no stack. Don't update register information
7633 unless registers_too_p is true.
7634 (tui_print_frame_info_listing_hook): Rename to ...
7635 (tui_dummy_print_frame_info_listing_hook): ... this.
7636 (tui_before_prompt): New function.
7637 (tui_normal_stop): New function.
7638 (tui_before_prompt_observer): New observer.
7639 (tui_normal_stop_observer): New observer.
7640 (tui_install_hooks): Set
7641 deprecated_print_frame_info_listing_hook to
7642 tui_dummy_print_frame_info_listing_hook. Register
7643 tui_before_prompt_observer to call tui_before_prompt and
7644 tui_normal_stop_observer to call tui_normal_stop. Remove
7645 reference to deprecated_selected_frame_level_changed_hook.
7646 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7647 and tui_normal_stop_observer. Remove reference to
7648 deprecated_selected_frame_level_changed_hook.
7649
b5fca6d7
PP
76502015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7651
7652 PR tui/13378
7653 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7654 return an int instead of void. Return whether the locator
7655 window has changed.
7656 (tui_show_frame_info): If the locator info has not changed, then
7657 bail out early to avoid refreshing the windows.
7658
c45613e3
PP
76592015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7660
7661 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7662 LOCATOR_WIN to tui_alloc_content.
7663
7b9be803
YQ
76642015-06-30 Yao Qi <yao.qi@linaro.org>
7665
7666 PR tdep/18605
7667 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7668 instructions.
7669
fd6e021d
KB
76702015-06-29 Kevin Buettner <kevinb@redhat.com>
7671
78ab7e9d
KB
7672 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7673 (rx_dwarf_reg_to_regnum): New function.
7674 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7675 unwinding.
fd6e021d 7676
28bf096c
PA
76772015-06-29 Pedro Alves <palves@redhat.com>
7678
7679 PR threads/18127
7680 * infcall.c (run_inferior_call): On infcall success, if the thread
7681 was marked stopped before, reset it back to stopped.
7682 * infrun.c (resume): Don't suppress the set_running calls when
7683 doing an infcall.
7684 (normal_stop): Only discard the finish_thread_state cleanup if the
7685 infcall succeeded.
7686
2880b51c 76872015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
7688
7689 * MAINTAINERS (Write After Approval): Update my email address.
7690
ee93cd5e
KS
76912015-06-26 Keith Seitz <keiths@redhat.com>
7692 Doug Evans <dje@google.com>
7693
7694 PR 16253
7695 * block.c (block_lookup_symbol): For non-function blocks,
7696 continue to search for a symbol with an exact domain match
7697 Otherwise, return any previously found "best domain" symbol.
7698 (block_lookup_symbol_primary): Likewise.
7699
fc637f04
PP
77002015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7701
7702 * NEWS: Mention the new option "history remove-duplicates".
7703 * top.c (history_remove_duplicates): New static variable.
7704 (show_history_remove_duplicates): New static function.
7705 (gdb_add_history): Conditionally remove duplicate history
7706 entries.
7707 (init_main): Add "history remove-duplicates" option.
7708
2e52ae68
PP
77092015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7710
7711 * tui/tui-win.c (focus_completer): New static function.
7712 (_initialize_tui_win): Set the completion function of the
7713 "focus" command to focus_completer.
7714
6e22494e
JK
77152015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7716
7717 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7718 and language_asm..
7719 * symtab.c (find_function_start_sal): Likewise.
7720
f8773be1
GB
77212015-06-25 Gary Benson <gbenson@redhat.com>
7722
7723 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7724 it is the empty string after trailing slashes have been stripped.
7725
a3be80c3
GB
77262015-06-25 Gary Benson <gbenson@redhat.com>
7727
7728 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7729 * infrun.c (follow_exec): Likewise.
7730 * remote.c (remote_filesystem_is_local): Likewise.
7731 * solib.c (solib_find_1): Likewise.
7732
32fad71f
KS
77332015-06-24 Keith Seitz <keiths@redhat.com>
7734
7735 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7736 return value from lrealpath.
7737
87d1b309
MF
77382015-06-24 Mike Frysinger <vapier@gentoo.org>
7739
7740 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7741
23bf70af
MF
77422015-06-24 Mike Frysinger <vapier@gentoo.org>
7743
7744 * remote-sim.c: Include gdb_bfd.h.
7745 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7746 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7747
5cd867b4
YQ
77482015-06-24 Yao Qi <yao.qi@linaro.org>
7749
7750 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7751 set_gdbarch_get_siginfo_type.
7752 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7753 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7754 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7755 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7756 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7757 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7758 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7759 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7760 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7761 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7762
dc06243f
GB
77632015-06-24 Gary Benson <gbenson@redhat.com>
7764
7765 * common/buffer.c (stdint.h): Do not include.
7766 * common/print-utils.c (stdint.h): Likewise.
7767 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7768 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7769 * ft32-tdep.c (gdb_assert.h): Likewise.
7770 * guile/scm-utils.c (stdint.h): Likewise.
7771 * i386-linux-tdep.c (stdint.h): Likewise.
7772 * i386-tdep.c (stdint.h): Likewise.
7773 * nat/linux-btrace.c (stdint.h): Likewise.
7774 * nat/linux-btrace.h (stdint.h): Likewise.
7775 * nat/linux-ptrace.c (stdint.h): Likewise.
7776 * nat/mips-linux-watch.h (stdint.h): Likewise.
7777 * ppc-linux-nat.c (stdint.h): Likewise.
7778 * python/python-internal.h (stdint.h): Likewise.
7779 * stub-termcap.c (stdlib.h): Likewise.
7780 * target/target.h (stdint.h): Likewise.
7781 * xtensa-linux-nat.c (stdint.h): Likewise.
7782
0fc26caf
PP
77832015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7784
7785 * top.c (init_history): Look at errno after calling strtol to
7786 properly map large GDBHISTSIZE values to infinity.
7787
a38fe4fe
DE
77882015-06-23 Doug Evans <dje@google.com>
7789
7790 * inferior.h (struct inferior_suspend_state): Delete, unused.
7791 All references deleted.
7792
7564fe45
MF
77932015-06-23 Mike Frysinger <vapier@gentoo.org>
7794
7795 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7796 (microblaze_push_dummy_call): Likewise.
7797 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7798 and set_gdbarch_push_dummy_call.
7799
0bdb2f78
YQ
78002015-06-23 Yao Qi <yao.qi@linaro.org>
7801
7802 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7803 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7804 (amd64_linux_store_inferior_registers): Likewise.
7805 * arm-linux-nat.c (fetch_fpregister): Likewise.
7806 (fetch_fpregs, store_fpregister): Likewise.
7807 (store_fpregister, store_fpregs): Likewise.
7808 (fetch_register, fetch_regs): Likewise.
7809 (store_register, store_regs): Likewise.
7810 (fetch_vfp_regs, store_vfp_regs): Likewise.
7811 (arm_linux_read_description): Check have_ptrace_getregset is
7812 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7813 or TRIBOOL_FALSE.
7814 * i386-linux-nat.c (fetch_xstateregs): Check
7815 have_ptrace_getregset is not TRIBOOL_TRUE.
7816 (store_xstateregs): Likewise.
7817 * linux-nat.c (have_ptrace_getregset): Change its type to
7818 enum tribool.
7819 * linux-nat.h (tribool): New enum.
7820 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7821 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7822
18a94d75
DE
78232015-06-19 Doug Evans <dje@google.com>
7824
7825 * NEWS: Mention Sun's version of stabs is no longer supported.
7826 * elfread.c (free_elfinfo): Delete. All uses updated.
7827 (elfstab_offset_sections): Delete. All uses updated.
7828 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7829 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7830 All uses updated.
7831 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7832 All callers updated.
7833
124e13d9
SM
78342015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7835
7836 * common/rsp-low.c (needs_escaping): New.
7837 (remote_escape_output): Add unit_size parameter. Refactor to
7838 support multi-byte addressable units. Rename parameters.
7839 * common/rsp-low.h (remote_escape_output): Add unit_size
7840 parameter and rename others. Update doc.
7841 * remote.c (align_for_efficient_write): New.
7842 (remote_write_bytes_aux): Add unit_size parameter and use it.
7843 Rename some variables. Update doc.
7844 (remote_xfer_partial): Get unit size and use it.
7845 (remote_read_bytes_1): Add unit_size parameter and use it.
7846 Rename some variables. Update doc.
7847 (remote_write_bytes): Same.
7848 (remote_xfer_live_readonly_partial): Same.
7849 (remote_read_bytes): Same.
7850 (remote_flash_write): Update call to remote_write_bytes_aux.
7851 (remote_write_qxfer): Update call to remote_escape_output.
7852 (remote_search_memory): Same.
7853 (remote_hostio_pwrite): Same.
7854
6ae88661
LM
78552015-06-17 Luis Machado <lgustavo@codesourcery.com>
7856
7857 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7858 locations as inserted.
7859 Update and expand comment about permanent locations.
7860 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7861 Move comment to add_location_to_breakpoint.
7862 (update_global_location_list): Don't error out if a permanent
7863 breakpoint is not marked inserted.
7864 Don't error out if a non-permanent breakpoint location is inserted on
7865 top of a permanent breakpoint.
7866
da4616f6
LM
78672015-06-17 Luis Machado <lgustavo@codesourcery.com>
7868
7869 * breakpoint.c (make_breakpoint_permanent): Remove unused
7870 function.
7871 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7872
bc460514
PP
78732015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7874
7875 PR gdb/16999
7876 * NEWS: Mention new GDBHISTSIZE behavior.
7877 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7878 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7879
b58c513b
PP
78802015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7881
7882 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7883 * top.c (init_history): Read from GDBHISTSIZE instead of
7884 HISTSIZE.
7885 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7886
2093d2d3
PP
78872015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7888
7889 * top.c (gdb_safe_append_history): Do not call
7890 history_truncate_file if the history is not stifled.
7891
fc248485
AA
78922015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7893
7894 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7895 * syscalls/s390x-linux.xml: Likewise.
7896
4da680ad
ME
78972015-06-16 Michael Eager <eager@eagercon.com>
7898
7899 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7900
0a75489f
PP
79012015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7902
7903 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7904 target_terminal_ours_for_output() before calling
7905 tui_show_frame_info(), and restore the original terminal
7906 settings afterwards.
7907
95855ca8
MS
79082015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7909
7910 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7911
cfc32360
SM
79122015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7913
7914 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7915 memory unit size.
7916 (mi_cmd_data_write_memory_bytes): Same.
7917
cb6f16cf
SM
79182015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7919
7920 * corefile.c (write_memory): Update doc.
7921 * gdbcore.h (write_memory): Same.
7922
31b7833d
JK
79232015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7924
7925 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7926 (dump_mapping_p): Use it for parameter filterflags.
7927 (linux_find_memory_regions_full): Use it for variable filterflags.
7928
909c2cda
JK
79292015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7930 Jan Kratochvil <jan.kratochvil@redhat.com>
7931
7932 Merge multiple hex conversions.
7933 * monitor.c: Include rsp-low.h.
7934 (fromhex): Remove definition.
7935
03aef70f
JK
79362015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7937 Jan Kratochvil <jan.kratochvil@redhat.com>
7938
7939 Move utility functions to common/.
7940 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7941 Move defs to common/common-utils.c.
7942 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7943 (skip_to_space_const): Move decls to common/common-utils.h.
7944 * common/common-defs.h: Move include of common-types.h before
7945 common-utils.h.
7946 * common/common-utils.c: Include host-defs.h and ctype.h.
7947 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7948 from utils.c.
7949 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7950 cli/cli-utils.c.
7951 * common/common-utils.h (strtoulst): Move decl from utils.h.
7952 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7953 Move from cli/cli-utils.h.
7954 * common/host-defs.h: Include limits.h.
7955 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7956 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7957 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7958 common/common-utils.h.
7959 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7960 (strtoulst): Move to common/common-utils.c.
7961 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7962
d1168cc1
YQ
79632015-06-15 Yao Qi <yao.qi@linaro.org>
7964
7965 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7966
c74f7d1c
JT
79672015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7968
7969 * build-id.c: Don't include elf-bfd.h.
7970 (build_id_bfd_get): Use bfd_build_id.
7971 (build_id_verify): Ditto.
7972 * build-id.h: Ditto.
7973 (find_separate_debug_file_by_buildid): Ditto.
7974 * python/py-objfile.c: Don't include elf-bfd.h.
7975 (objfpy_get_build_id) Use bfd_build_id.
7976 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7977 * coffread.c: Include build-id.h.
7978 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7979
f20c58f5
JT
79802015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7981
7982 * windows-nat.c (do_windows_fetch_inferior_registers)
7983 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7984 conditional with __CYGWIN__.
7985
51f0e40d
AB
79862015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7987
7988 * completer.c: Add arch-utils.h include.
7989 (enum reg_completer_targets): New enum.
7990 (reg_or_group_completer_1): New function containing old
7991 reg_or_group_completer, add and use new parameter to control what
7992 is completed on. Use get_current_arch rather than architecture of
7993 currently selected frame.
7994 (reg_or_group_completer): Call new reg_or_group_completer_1.
7995 (reggroup_completer): Call new reg_or_group_completer_1.
7996 * completer.h (reggroup_completer): Add declaration.
7997 * tui/tui-regs.c: Add 'completer.h' include.
7998 (tui_reg_next_command): Renamed to...
7999 (tui_reg_next): ...this. Adjust parameters and return rather than
8000 display new group.
8001 (tui_reg_prev_command): Renamed to...
8002 (tui_reg_prev): ...this. Adjust parameters and return rather than
8003 display new group.
8004 (tui_reg_float_command): Delete.
8005 (tui_reg_general_command): Delete.
8006 (tui_reg_system_command): Delete.
8007 (tui_reg_command): Rewrite to perform switching of register group.
8008 Add header comment.
8009 (tuireglist): Remove.
8010 (tui_reggroup_completer): New function.
8011 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8012 creation of 'tui reg' command.
8013 * NEWS: Add comment about 'tui reg' changes.
8014
d309493c
SM
80152015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8016
8017 * target.c (target_read): Consider addressable unit size when
8018 reading from a memory object.
8019 (read_memory_robust): Same.
8020 (read_whatever_is_readable): Same.
8021 (target_write_with_progress): Consider addressable unit size
8022 when writing to a memory object.
8023 * target.h (target_read): Update documentation.
8024 (target_write): Add documentation.
8025
3374165f
SM
80262015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8027
8028 * arch-utils.h (default_addressable_memory_unit_size): New.
8029 * arch-utils.c (default_addressable_memory_unit_size): New.
8030 * gdbarch.sh (addressable_memory_unit_size): New.
8031 * gdbarch.h: Re-generate.
8032 * gdbarch.c: Re-generate.
8033
279a6fed
SM
80342015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8035
8036 * target.c (target_read): Rename variables and use
8037 TARGET_XFER_E_IO.
8038 (target_read_with_progress): Same.
8039 (read_memory_robust): Constify parameters and rename
8040 variables.
8041 (read_whatever_is_readable): Constify parameters,
8042 rename variables, adjust formatting.
8043 * target.h (read_memory_robust): Constify parameters.
8044
1e5338b6 80452015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
8046
8047 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8048 synthetic (non-AltiVec) vector types.
8049 (ppc64_sysv_abi_return_value): Likewise.
8050
98aa42ee
AT
80512015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8052
8053 PR breakpoints/16465
8054 * breakpoint.c (create_breakpoint): Save extra_string for
8055 pending breakpoints.
8056
966f0aef
WT
80572015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8058
8059 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8060 and bt_mask to CORE_ADDR.
8061
6449ed0d
GB
80622015-06-11 Gary Benson <gbenson@redhat.com>
8063
8064 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8065 (mnsh_recv_message): Likewise.
8066
34f8ac9f
WT
80672015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8068
8069 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8070 long long int and plongest instead of %ll.
8071
198c808c
GB
80722015-06-11 Gary Benson <gbenson@redhat.com>
8073
8074 * nat/linux-namespaces.c (gdb_wait.h): New include.
8075 (sys/wait.h): Do not include.
8076
e815d2d2
SM
80772015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8078
8079 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8080 end_sequence is true.
8081
8847cac2
JK
80822015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8083
8084 Code cleanup.
8085 * solib-target.c (library_list_start_list): Use explicit NULL
8086 comparison.
8087
24c05f46
JK
80882015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8089
8090 * solib-target.c (library_list_start_list): Do not dereference
8091 variable version in its initialization. Make the VERSION check handle
8092 NULL.
8093 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8094
51aad7cc
GB
80952015-06-10 Gary Benson <gbenson@redhat.com>
8096
8097 * NEWS: Announce support for direct access of executable and
8098 shared library files when attaching to inferiors in containers
8099 on GNU/Linux systems.
8100
15a201c8
GB
81012015-06-10 Gary Benson <gbenson@redhat.com>
8102
8103 * remote.c (struct remote_state) <fs_pid>: New field.
8104 (new_remote_state): Initialize the above.
8105 (PACKET_vFile_setfs): New enum value.
8106 (remote_hostio_set_filesystem): New function.
8107 (remote_hostio_open): Call the above.
8108 (remote_hostio_unlink): Likewise.
8109 (remote_hostio_readlink): Likewise.
8110 (_initialize_remote): Register new "set/show remote
8111 hostio-setfs-packet" command.
8112 * NEWS: Announce new vFile:setfs packet.
8113
7a6a1731
GB
81142015-06-10 Gary Benson <gbenson@redhat.com>
8115
8116 * linux-nat.c (nat/linux-namespaces.h): New include.
8117 (fileio.h): Likewise.
8118 (linux_nat_filesystem_is_local): New function.
8119 (linux_nat_fileio_pid_of): Likewise.
8120 (linux_nat_fileio_open): Likewise.
8121 (linux_nat_fileio_readlink): Likewise.
8122 (linux_nat_fileio_unlink): Likewise.
8123 (linux_nat_add_target): Initialize to_filesystem_is_local,
8124 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8125 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8126 commands.
8127 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8128
07c138c8
GB
81292015-06-10 Gary Benson <gbenson@redhat.com>
8130
8131 * target.h (struct inferior): New forward declaration.
8132 (struct target_ops) <to_filesystem_is_local>: Update comment.
8133 (struct target_ops) <to_fileio_open>: New argument inf.
8134 Update comment. All implementations updated.
8135 (struct target_ops) <to_fileio_unlink>: Likewise.
8136 (struct target_ops) <to_fileio_readlink>: Likewise.
8137 (target_filesystem_is_local): Update comment.
8138 (target_fileio_open): New argument inf. Update comment.
8139 (target_fileio_unlink): Likewise.
8140 (target_fileio_readlink): Likewise.
8141 (target_fileio_read_alloc): Likewise.
8142 (target_fileio_read_stralloc): Likewise.
8143 * target.c (target_fileio_open): New argument inf.
8144 Pass inf to implementation. Update debug printing.
8145 (target_fileio_unlink): Likewise.
8146 (target_fileio_readlink): Likewise.
8147 (target_fileio_read_alloc_1): New argument inf. Pass inf
8148 to target_fileio_open.
8149 (target_fileio_read_alloc): New argument inf. Pass inf to
8150 target_fileio_read_alloc_1.
8151 (target_fileio_read_stralloc): Likewise.
8152 * gdb_bfd.c (inferior.h): New include.
8153 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8154 argument with new argument "inferior". Pass inferior to
8155 target_fileio_open.
8156 (gdb_bfd_open): Supply inferior argument to
8157 gdb_bfd_iovec_fileio_open.
8158 * linux-tdep.c (linux_info_proc): Supply inf argument to
8159 relevant target_fileio calls.
8160 (linux_find_memory_regions_full): Likewise.
8161 (linux_fill_prpsinfo): Likewise.
8162 * remote.c (remote_filesystem_is_local): Supply inf
8163 argument to remote_hostio_open.
8164 (remote_file_put): Likewise.
8165 (remote_file_get): Likewise.
8166 (remote_file_delete): Supply inf argument to
8167 remote_hostio_unlink.
8168
12e2a5fd
GB
81692015-06-10 Gary Benson <gbenson@redhat.com>
8170
8171 * inf-child.c (inf_child_fileio_open): Replace comment.
8172 (inf_child_fileio_pwrite): Likewise.
8173 (inf_child_fileio_pread): Likewise.
8174 (inf_child_fileio_fstat): Insert blank line before comment.
8175 (inf_child_fileio_close): Replace comment.
8176 (inf_child_fileio_unlink): Likewise.
8177 (inf_child_fileio_readlink): Likewise.
8178 * remote.c (remote_hostio_open): Likewise.
8179 (remote_hostio_pread): Likewise.
8180 (remote_hostio_pwrite): Likewise.
8181 (remote_hostio_close): Likewise.
8182 (remote_hostio_unlink): Likewise.
8183 (remote_hostio_readlink): Likewise.
8184 (remote_hostio_fstat): Likewise.
8185 (remote_filesystem_is_local): Likewise.
8186 * target.c (target_fileio_open): Likewise.
8187 (target_fileio_pwrite): Likewise.
8188 (target_fileio_pread): Likewise.
8189 (target_fileio_fstat): Insert blank line before comment.
8190 (target_fileio_close): Replace comment.
8191 (target_fileio_unlink): Likewise.
8192 (target_fileio_readlink): Likewise.
8193 (target_fileio_read_alloc): Likewise.
8194 (target_fileio_read_stralloc): Likewise.
8195
9bc3a976
GB
81962015-06-10 Gary Benson <gbenson@redhat.com>
8197
8198 * linux-thread-db.c (nat/linux-namespaces.h): New include.
8199 (check_pid_namespace_match): Use linux_ns_same rather than
8200 linux_proc_pid_get_ns to spot PID namespace mismatches.
8201 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
8202 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
8203
4b8b5e72
GB
82042015-06-10 Gary Benson <gbenson@redhat.com>
8205
8206 * configure.ac (AC_CHECK_FUNCS): Add setns.
8207 * config.in: Regenerate.
8208 * configure: Likewise.
8209 * nat/linux-namespaces.h: New file.
8210 * nat/linux-namespaces.c: Likewise.
8211 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
8212 (linux-namespaces.o): New rule.
8213 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
8214 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8215 * config/arm/linux.mh (NATDEPFILES): Likewise.
8216 * config/i386/linux.mh (NATDEPFILES): Likewise.
8217 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8218 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8219 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8220 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8221 * config/mips/linux.mh (NATDEPFILES): Likewise.
8222 * config/pa/linux.mh (NATDEPFILES): Likewise.
8223 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8224 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8225 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8226 * config/s390/linux.mh (NATDEPFILES): Likewise.
8227 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8228 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8229 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8230 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8231
ca095836
GB
82322015-06-10 Gary Benson <gbenson@redhat.com>
8233
8234 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8235 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8236 (make_cleanup_close): Likewise.
8237 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8238 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8239 (make_cleanup_close): Likewise.
8240
5d9c55d3
JT
82412015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8242
8243 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8244 from SuspendThread().
8245
040ea00b
JT
82462015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8247
8248 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8249 from OutputDebugString.
8250
7d73c23c
WT
82512015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8252 Mircea Gherzan <mircea.gherzan@intel.com>
8253
8254 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8255 MPX_BT_MASK_32): New macros.
8256 (i386_mpx_set_bounds): New function that implements
8257 the command "set-mpx-bound".
8258 (i386_mpx_enabled): Helper function to test MPX availability.
8259 (i386_mpx_bd_base): Helper function to calculate the base directory
8260 address.
8261 (i386_mpx_get_bt_entry): Helper function to access a bound
8262 table entry.
8263 (i386_mpx_print_bounds): Effectively display bound information.
8264 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8265 "show mpx".
8266 (_initialize_i386_tdep):
8267 Add "bound" to the commands "show mpx" and "set mpx" commands.
8268 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8269 and "show mpx" commands.
8270 * NEWS: List new commands for MPX support.
8271
3ac2e371
GB
82722015-06-09 Gary Benson <gbenson@redhat.com>
8273
8274 * common/fileio.h (fileio_to_host_mode): New declaration.
8275 * common/fileio.c (fileio_to_host_mode): New Function.
8276 * inf-child.c (inf_child_fileio_open): Process mode argument
8277 with fileio_to_host_mode.
8278
ecef18c5
GB
82792015-06-09 Gary Benson <gbenson@redhat.com>
8280
8281 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8282 conditional.
8283
e3dd7556
GB
82842015-06-05 Gary Benson <gbenson@redhat.com>
8285
8286 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8287 * remote.c (remote_filesystem_is_local): ...here.
8288
5b74bf7d
YQ
82892015-06-04 Yao Qi <yao.qi@linaro.org>
8290
8291 * gdbarch.c: Regenerate it.
8292
7f361056
JK
82932015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8294
8295 * arch-utils.c (default_infcall_munmap): New.
8296 * arch-utils.h (default_infcall_munmap): New declaration.
8297 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8298 (munmap_list_free, munmap_listp_free_cleanup): New.
8299 (struct setup_sections_data): Add field munmap_list_headp.
8300 (setup_sections): Call munmap_list_add.
8301 (compile_object_load): New variable munmap_list_head, initialize
8302 setup_sections_data.munmap_list_headp, return munmap_list_head.
8303 * compile/compile-object-load.h (struct munmap_list): New declaration.
8304 (struct compile_module): Add field munmap_list_head.
8305 (munmap_list_free): New declaration.
8306 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8307 munmap_list_head.
8308 (do_module_cleanup): Call munmap_list_free.
8309 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8310 * gdbarch.c: Regenerate.
8311 * gdbarch.h: Regenerate.
8312 * gdbarch.sh (infcall_munmap): New.
8313 * linux-tdep.c (linux_infcall_munmap): New.
8314 (linux_init_abi): Install it.
8315
3b462ec2
SM
83162015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8317
8318 PR gdb/15564
8319 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8320
8d683210
YQ
83212015-06-02 Yao Qi <yao.qi@linaro.org>
8322
8323 * i386-linux-nat.c: Include linux-nat.h.
8324
e0619de6
JK
83252015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8326 Jan Kratochvil <jan.kratochvil@redhat.com>
8327
8328 PR symtab/18392
8329 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8330 assertion.
8331 * dwarf2loc.c (chain_candidate): Likewise.
8332
bd16da51
YQ
83332015-06-01 Yao Qi <yao.qi@linaro.org>
8334
8335 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8336 (store_vfp_regs): Use PTRACE_SETREGSET.
8337
df9d7ec9
YQ
83382015-06-01 Yao Qi <yao.qi@linaro.org>
8339
8340 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8341 (fetch_fpregs): Likewise.
8342 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8343 (store_fpregs): Likewise.
8344
10766686
YQ
83452015-06-01 Yao Qi <yao.qi@linaro.org>
8346
8347 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8348 (fetch_regs): Likewise.
8349 (store_regs): Use PTRACE_SETREGSET.
8350 (store_register): Likewise.
8351
7efe48d1
YQ
83522015-06-01 Yao Qi <yao.qi@linaro.org>
8353
8354 * arm-linux-nat.c (arm_linux_read_description): Check whether
8355 kernel supports PTRACE_GETREGSET.
8356
433bbbf8
YQ
83572015-06-01 Yao Qi <yao.qi@linaro.org>
8358
8359 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8360 * linux-nat.c: ... here.
8361 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8362 to ...
8363 * linux-nat.h: ... here.
8364
ca9b78ce
YQ
83652015-06-01 Yao Qi <yao.qi@linaro.org>
8366
8367 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8368 * i386-linux-nat.c: Likewise.
8369 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8370 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8371 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8372 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8373 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8374
99cee7b7
EZ
83752015-05-30 Eli Zaretskii <eliz@gnu.org>
8376
8377 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8378 compatible to what read_child and write_child return. This
8379 unbreaks that DJGPP build of GDB which was broken since v7.7.
8380
2147f5bd
MG
83812015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8382
8383 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8384
c8f6c93c
RM
83852015-05-29 Roland McGrath <mcgrathr@google.com>
8386
8387 PR gdb/18464
8388 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8389 rather than internal_error for an unrecognized value.
8390
8c6a948d
MF
83912015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8392
8393 * xtensa-tdep.c (xtensa_pseudo_register_read)
8394 (xtensa_pseudo_register_write): Don't alias last pseudo register
8395 to a1.
8396
8dd06f7a
DB
83972015-05-28 Don Breazeal <donb@codesourcery.com>
8398
8399 * infrun.c (follow_fork_inferior): Ensure the use of
8400 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8401 messages.
8402
a051152b
DE
84032015-05-28 Doug Evans <dje@google.com>
8404
8405 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8406
a56cc1ce
YQ
84072015-05-28 Yao Qi <yao.qi@linaro.org>
8408
8409 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8410 (arm_linux_fetch_inferior_registers): Use
8411 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8412 (arm_linux_store_inferior_registers): Likewise.
8413 (arm_linux_read_description): Don't set
8414 arm_linux_has_wmmx_registers.
8415 * arm-tdep.c (arm_gdbarch_init): Set
8416 tdep->have_wmmx_registers according target descriptions.
8417 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8418 field.
8419
330c6ca9
YQ
84202015-05-28 Yao Qi <yao.qi@linaro.org>
8421
8422 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8423 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8424 instead of arm_linux_vfp_register_count.
8425 (store_vfp_regs): Likewise.
8426 (arm_linux_fetch_inferior_registers): Likewise.
8427 (arm_linux_store_inferior_registers): Likewise.
8428 (arm_linux_read_description): Don't set
8429 arm_linux_vfp_register_count.
8430 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8431 Adjust.
8432 * arm-tdep.c (arm_gdbarch_init): Add assert on
8433 vfp_register_count.
8434 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8435 field to vfp_register_count. All users updated.
8436
d403db27
KH
84372015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8438
8439 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8440 ELFOSABI_GNU binaries.
8441
d9b3de22
DE
84422015-05-27 Doug Evans <dje@google.com>
8443
8444 * dwarf2read.c (lnp_state_machine): New typedef.
8445 (lnp_reader_state): New typedef.
8446 (dwarf_record_line_1): Renamed from dwarf_record_line.
8447 All callers updated.
8448 (dwarf_record_line): New function.
8449 (init_lnp_state_machine): New function.
8450 (check_line_address): Replace p_record_line parameter with state.
8451 All callers updated.
8452 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8453 Update to record state in lnp_state_machine.
8454
924c2928
DE
84552015-05-27 Doug Evans <dje@google.com>
8456
8457 * dwarf2read.c (record_line_ftype): New typedef.
8458 (check_line_address): New function.
8459 (dwarf_decode_lines_1): Call it.
8460
27e0867f
DE
84612015-05-27 Doug Evans <dje@google.com>
8462
8463 * NEWS: Mention "set debug dwarf-line".
8464 * dwarf2read.c (dwarf_line_debug): New static global.
8465 (add_include_dir): Add debug dwarf-line support.
8466 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8467 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8468
4dcabcc2
DE
84692015-05-27 Doug Evans <dje@google.com>
8470
8471 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8472 All callers updated.
8473 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8474 * cp-support.h (cp_lookup_nested_symbol): Update.
8475
b2e2f908
DE
84762015-05-27 Doug Evans <dje@google.com>
8477
8478 PR symtab/18258
8479 * block.c (block_find_symbol): New function.
8480 (block_find_non_opaque_type): Ditto.
8481 (block_find_non_opaque_type_preferred): Ditto.
8482 * block.h (block_symbol_matcher_ftype): New typedef.
8483 (block_find_symbol): Declare.
8484 (block_find_non_opaque_type): Ditto.
8485 (block_find_non_opaque_type_preferred): Ditto.
8486 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8487 * psymtab.c (psym_lookup_symbol): Ditto.
8488 * symtab.c (basic_lookup_transparent_type_1): New function.
8489 (basic_lookup_transparent_type): Call it.
8490
f62fce35
YQ
84912015-05-27 Yao Qi <yao.qi@linaro.org>
8492
8493 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8494 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8495
5d98d3cd
YQ
84962015-05-27 Yao Qi <yao.qi@linaro.org>
8497
8498 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8499 before operator &&.
8500 (aarch64_record_load_store): Likewise.
8501
82c7be31
DE
85022015-05-26 Doug Evans <dje@google.com>
8503
8504 PR c++/18141, c++/18417.
8505 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8506 a typedef.
8507
b4f54984
DE
85082015-05-26 Doug Evans <dje@google.com>
8509
8510 * NEWS: Add entries for command renamings.
8511 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8512 All uses updated.
8513 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8514 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8515 All uses updated.
8516 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8517 All callers updated. Fix spelling of DWARF in help text.
8518 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8519 All uses updated.
8520 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8521 All uses updated.
8522 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8523 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8524 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8525 All uses updated.
8526 (show_dwarf_always_disassemble): Renamed from
8527 show_dwarf2_always_disassemble. All callers updated.
8528 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8529 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8530 "set/show dwarf max-cache-age". Rename
8531 "set/show dwarf2 always-disassemble" to
8532 "set/show dwarf always-disassemble". Rename
8533 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8534 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8535
4ea6efe9
DE
85362015-05-26 Doug Evans <dje@google.com>
8537
8538 PR python/18438
8539 * python/py-lazy-string.c (stpy_convert_to_value): Use
8540 gdbpy_gdb_memory_error not PyExc_MemoryError.
8541 (gdbpy_create_lazy_string_object): Ditto.
8542
b93fd21d
AB
85432015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8544
8545 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8546
55b40027
AB
85472015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8548
8549 * tui/tui-regs.c (tui_reg_prev_command): New function.
8550 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8551 * reggroups.c (reggroup_prev): New function.
8552 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8553
99afc88b
OJ
85542015-05-26 Omair Javaid <omair.javaid@linaro.org>
8555 Yao Qi <yao.qi@linaro.org>
8556
8557 * aarch64-linux-tdep.c: Include linux-record.h and
8558 record-full.h.
8559 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8560 (aarch64_syscall): New enum.
8561 (aarch64_canonicalize_syscall): New function.
8562 (aarch64_all_but_pc_registers_record): New function.
8563 (aarch64_linux_syscall_record): New function.
8564 (aarch64_linux_init_abi): Install AArch64 process record
8565 handler. Update to handle syscall recording.
8566 * aarch64-tdep.c: Include record.h and record-full.h.
8567 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8568 (struct aarch64_mem_r): Define.
8569 (aarch64_record_result): New enum.
8570 (struct insn_decode_record): Define.
8571 (insn_decode_record): New typedef.
8572 (aarch64_record_data_proc_reg): New function.
8573 (aarch64_record_data_proc_imm): New function.
8574 (aarch64_record_branch_except_sys): New function.
8575 (aarch64_record_load_store): New function.
8576 (aarch64_record_data_proc_simd_fp): New function.
8577 (aarch64_record_asimd_load_store): New function.
8578 (aarch64_record_decode_insn_handler): New function.
8579 (deallocate_reg_mem): New function.
8580 (aarch64_process_record): New function.
8581 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8582 New field.
8583 (aarch64_process_record): New extern declaration.
8584 * configure.tgt: Add linux-record.o to gdb_target_obs.
8585 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8586
c16a3f52
OJ
85872015-05-26 Omair Javaid <omair.javaid@linaro.org>
8588
8589 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8590 targets.
8591
c9cf6e20
MG
85922015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8593
8594 * amd64-tdep.c: Replace in_function_epilogue_p with
8595 stack_frame_destroyed_p throughout.
8596 * arch-utils.c: Ditto.
8597 * arch-utils.h: Ditto.
8598 * arm-tdep.c: Ditto.
8599 * breakpoint.c: Ditto.
8600 * gdbarch.sh: Ditto.
8601 * hppa-tdep.c: Ditto.
8602 * i386-tdep.c: Ditto.
8603 * mips-tdep.c: Ditto.
8604 * nios2-tdep.c: Ditto.
8605 * rs6000-tdep.c: Ditto.
8606 * s390-linux-tdep.c: Ditto.
8607 * score-tdep.c: Ditto.
8608 * sh-tdep.c: Ditto.
8609 * sparc-tdep.c: Ditto.
8610 * sparc-tdep.h: Ditto.
8611 * sparc64-tdep.c: Ditto.
8612 * spu-tdep.c: Ditto.
8613 * tic6x-tdep.c: Ditto.
8614 * tilegx-tdep.c: Ditto.
8615 * xstormy16-tdep.c: Ditto.
8616 * gdbarch.c, gdbarch.h: Re-generated.
8617
a4ea0946
AB
86182015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8619
8620 * NEWS: Mention 'tui enable' and 'tui disable'.
8621 * tui/tui.c (tui_enable_command): New function.
8622 (tui_disable_command): New function.
8623 (_initialize_tui): New function.
8624
b75c69bb
AB
86252015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8628
c1b009ee
AB
86292015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8632 buf_ptr is freed.
8633
880d1e40
AB
86342015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8637 into ...
8638 (tui_set_layout_for_display_command): ...here, before calling
8639 tui_set_layout. Only set the layout if gdb has not already
8640 entered the TUI_FAILURE state.
8641
a0145030
AB
86422015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8643
8644 * tui/tui-layout.c (layout_completer): New function.
8645 (_initialize_tui_layout): Set completer on layout command.
8646
7bd0be3a
AB
86472015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8648
8649 * tui/tui-layout.c (tui_set_layout): Remove
8650 tui_register_display_type parameter. Remove all checking of this
8651 parameter, and reindent function. Update header comment.
8652 (tui_set_layout_for_display_command): Rename to...
8653 (tui_set_layout_by_name): ...this, and don't check for different
8654 register class types, don't pass a tui_register_display_type to
8655 tui_set_layout. Update header comment.
8656 (layout_names): Remove register set specific names.
8657 * tui/tui-layout.h (tui_set_layout): Remove
8658 tui_register_display_type parameter.
8659 * tui/tui.c (tui_rl_change_windows): Don't pass a
8660 tui_register_display_type to tui_set_layout.
8661 (tui_rl_delete_other_windows): Likewise.
8662 (tui_enable): Likewise.
8663 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8664 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8665 (TUI_GENERAL_REGS_NAME): Remove.
8666 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8667 (TUI_SPECIAL_REGS_NAME): Remove.
8668 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8669 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8670 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8671 (enum tui_register_display_type): Remove.
8672 (struct tui_layout_def): Remove regs_display_type and
8673 float_regs_display_type fields.
8674 (struct tui_data_info): Remove regs_display_type field.
8675 (tui_layout_command): Use new name for
8676 tui_set_layout_for_display_command.
8677 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8678 (tui_clear_win_detail): Don't initialise removed fields of
8679 win_info.
8680 * tui/tui-regs.c (tui_show_registers): Use new name for
8681 tui_set_layout_for_display_command.
8682 * tui/tui.h (tui_set_layout_for_display_command): Rename
8683 declaration to...
8684 (tui_set_layout_by_name): ...this.
8685 * printcmd.c (display_command): Remove tui related layout call,
8686 and reindent.
8687
0b6e5e10
JB
86882015-05-20 Joel Brobecker <brobecker@adacore.com>
8689
8690 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8691 (handle_inferior_event): New function.
8692
1da0522e
JB
86932015-05-20 Joel Brobecker <brobecker@adacore.com>
8694
8695 * ada-lang.c (to_fixed_array_type): Rename local variable
8696 typename into type_name.
8697
5fe75eec
JK
86982015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8699
8700 Fix ASAN crash for gdb.compile/compile.exp.
8701 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8702
a4063588
JK
87032015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8704
8705 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8706 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8707 * compile/compile-object-load.c (setup_sections, compile_object_load):
8708 Likewise.
8709 * compile/compile.c (compile_to_object): Likewise.
8710
37442ce1
DE
87112015-05-16 Doug Evans <xdje42@gmail.com>
8712
8713 * NEWS: Mention support for unbuffered Guile memory ports.
8714 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8715 (ioscm_lseek_address): Improve overflow calculation.
8716 (gdbscm_memory_port_fill_input): Add assert.
8717 (gdbscm_memory_port_write): Handle unbuffered ports.
8718 Handle large writes identical to Guile's fport_write.
8719 (gdbscm_memory_port_seek): Fix seeking past end check.
8720 (gdbscm_memory_port_close): Handle closing unbuffered port.
8721 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8722 (ioscm_init_memory_port): Handle unbuffered ports.
8723 (ioscm_reinit_memory_port): Ditto.
8724 (ioscm_init_memory_port): Update size calculation.
8725 (gdbscm_open_memory): Support zero sized ports.
8726
d976bace
JK
87272015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8728
8729 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8730 variable compiler warnings.
8731
4d18dfad
JK
87322015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8733
8734 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8735
36de76f9
JK
87362015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8737 Phil Muldoon <pmuldoon@redhat.com>
8738
8739 * NEWS (Changes since GDB 7.9): Add compile print.
8740 * compile/compile-c-support.c (add_code_header, add_code_footer)
8741 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8742 COMPILE_I_PRINT_VALUE_SCOPE.
8743 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8744 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8745 New.
8746 * compile/compile-object-load.c: Include block.h.
8747 (get_out_value_type): New function.
8748 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8749 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8750 OUT_VALUE_TYPE.
8751 * compile/compile-object-load.h (struct compile_module): Add fields
8752 out_value_addr and out_value_type.
8753 * compile/compile-object-run.c: Include valprint.h and compile.h.
8754 (struct do_module_cleanup): Add fields out_value_addr and
8755 out_value_type.
8756 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8757 COMPILE_I_PRINT_VALUE_SCOPE.
8758 (compile_object_run): Propagate out_value_addr and out_value_type.
8759 Pass OUT_VALUE_ADDR.
8760 * compile/compile.c: Include valprint.h.
8761 (compile_print_value, compile_print_command): New functions.
8762 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8763 (_initialize_compile): Update compile code help text. Install
8764 compile_print_command.
8765 * compile/compile.h (compile_print_value): New prototype.
8766 * defs.h (enum compile_i_scope_types): Add
8767 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8768
83d3415e
JK
87692015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8770
8771 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8772 Rely on its parameter count.
8773 (compile_object_load): Replace lookup_minimal_symbol_text by
8774 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8775 return value.
8776 * compile/compile-object-load.h (struct compile_module): Replace
8777 func_addr by func_sym.
8778 * compile/compile-object-run.c: Include block.h.
8779 (compile_object_run): Reset module variable after it is freed. Use
8780 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8781
3a9558c4
JK
87822015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8783
8784 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8785 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8786 (c_compute_program): Call generate_register_struct after typedefs.
8787 * compile/compile-loc2c.c (push, pushf_register_address)
8788 (pushf_register): Cast to GCC_UINTPTR.
8789 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8790 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8791 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8792 * compile/compile.c (_initialize_compile): Enable warnings for
8793 COMPILE_ARGS.
8794
5c65b58a
JK
87952015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8796
8797 * cli/cli-script.c (execute_control_command): Update
8798 eval_compile_command caller.
8799 * compile/compile-object-load.c (compile_object_load): Add parameters
8800 scope and scope_data. Set them.
8801 * compile/compile-object-load.h (struct compile_module): Add fields
8802 scope and scope_data.
8803 (compile_object_load): Add parameters scope and scope_data.
8804 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8805 scope and scope_data.
8806 (compile_object_run): Propagate the fields scope and scope_data.
8807 * compile/compile.c (compile_file_command, compile_code_command):
8808 Update eval_compile_command callers.
8809 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8810 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8811 * defs.h (struct command_line): Add field scope_data.
8812
1c88ceb1
JK
88132015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8814
8815 * printcmd.c (struct format_data): Move it to valprint.h.
8816 (print_command_parse_format, print_value): New functions from ...
8817 (print_command_1): ... here. Call them.
8818 * valprint.h (struct format_data): Move it here from printcmd.c.
8819 (print_command_parse_format, print_value): New declarations.
8820
0b738f27
JK
88212015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8822
8823 * compile/compile-object-load.c (compile_object_load): Add
8824 COMPILE_DEBUG message.
8825
aa715135
JG
88262015-05-15 Jerome Guitton <guitton@adacore.com>
8827
8828 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8829 index to get element instead of enum value.
8830 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8831 of index to compute length, but enum values to compute bounds.
8832 (ada_array_length): Use enum position of index instead of enum value.
8833 (pos_atr): Move position computation to...
8834 (ada_evaluate_subexp): Use enum values to compute bounds.
8835 * gdbtypes.c (discrete_position): ...this new function.
8836 * gdbtypes.h (discrete_position): New function declaration.
8837 * valprint.c (val_print_array_elements): Call discrete_position
8838 to handle array indexed by non-contiguous enumeration types.
8839
931e5bc3
JG
88402015-05-15 Jerome Guitton <guitton@adacore.com>
8841
8842 * ada-lang.c (find_parallel_type_by_descriptive_type):
8843 Go through typedefs during lookup.
8844 (to_fixed_array_type): Add support for non-bit packed arrays
8845 as variable-length fields.
8846
4e63d0ac
PA
88472015-05-15 Pedro Alves <palves@redhat.com>
8848 Simon Marchi <simon.marchi@ericsson.com>
8849
8850 * event-loop.c (gdb_notifier) <next_file_handler,
8851 next_poll_fds_index>: New fields.
8852 (get_next_file_handler_to_handle_and_advance): New function.
8853 (delete_file_handler): If deleting the next file handler to
8854 handle, advance to the next file handler.
8855 (gdb_wait_for_event): Bail early if no event fired. Poll file
8856 handlers in round-robin fashion.
8857
52e48b36
PA
88582015-05-15 Pedro Alves <palves@redhat.com>
8859
8860 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8861 'private' to 'priv'.
8862
2465e12e
PA
88632015-05-15 Pedro Alves <palves@redhat.com>
8864
8865 * nat/linux-nat.h: Include "target/waitstatus.h".
8866
13fa0398
YZ
88672015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8868
8869 * python/py-unwind.c (struct reg_info): Move out of ...
8870 (struct cached_frame_info): ... this scope.
8871 (pending_frame_object_type, unwind_info_object_type): Make extern.
8872
9cd4d857
JB
88732015-05-15 Joel Brobecker <brobecker@adacore.com>
8874
8875 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8876 accumSize is never negative.
8877
e3555239
PP
88782015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8879
8880 * tui/tui-command.c: Remove include of <ctype.h>.
8881 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8882
08a76f8a
MG
88832015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8884
8885 * dwarf2read.c (die_needs_namespace): Return 1 for
8886 DW_TAG_inlined_subroutine.
8887
bd49952b
JK
88882015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8889
8890 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8891 (regcache_cpy_no_passthrough): Make it static, add function comment.
8892 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8893 (regcache_cpy_no_passthrough): Remove declaration.
8894
46c03469
JK
88952015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 * gdbthread.h (struct thread_control_state): Update comment for
8898 proceed_to_finish.
8899 * infcall.c (run_inferior_call): Update comment about
8900 proceed_to_finish.
8901 * infcmd.c (get_return_value): Update comment about stop_registers.
8902 (finish_forward): Update comment about proceed_to_finish.
8903 * infrun.c (stop_registers): Remove.
8904 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8905 * infrun.h (stop_registers): Remove.
8906
8a6c4031
JK
89072015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8908
8909 * infcall.c (struct dummy_frame_context_saver)
8910 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8911 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8912 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8913 New.
8914 (call_function_by_hand_dummy): Move discard_cleanups of
8915 inf_status_cleanup before dummy_frame_push. Call
8916 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8917 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8918 * infcall.h (struct dummy_frame_context_saver)
8919 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8920 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8921 New declarations.
8922 * infcmd.c: Include infcall.h.
8923 (get_return_value): Add parameter ctx_saver, use it instead of
8924 stop_registers.
8925 (print_return_value): Add parameter ctx_saver, pass it.
8926 (struct finish_command_continuation_args): Add field ctx_saver.
8927 (finish_command_continuation): Update print_return_value caller.
8928 (finish_command_continuation_free_arg): Free also ctx_saver.
8929 (finish_forward): Call dummy_frame_context_saver_setup.
8930 * inferior.h (struct dummy_frame_context_saver): New declaration.
8931 (get_return_value): Add parameter ctx_saver.
8932 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8933 get_return_value caller.
8934
10989690
JK
89352015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8936
8937 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8938 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8939 (remove_dummy_frame): Process dtor_list.
8940 (pop_dummy_frame): Process dtor_list.
8941 (register_dummy_frame_dtor): Maintain dtor_list.
8942 (find_dummy_frame_dtor): Handle dtor_list.
8943 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8944 Update comments.
8945
5e970501
JK
89462015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8947
8948 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8949 registers_valid.
8950 (compile_object_run): Update do_module_cleanup caller.
8951 * dummy-frame.c: Include infcall.h.
8952 (struct dummy_frame): Update dtor comment.
8953 (remove_dummy_frame): Call dtor.
8954 (pop_dummy_frame): Update dtor caller.
8955 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8956 registers_valid.
8957
1c4eb778
JB
89582015-05-13 Joel Brobecker <brobecker@adacore.com>
8959
8960 GDB 7.9.1 released.
8961
f5f85ab9
JB
89622015-05-13 Joel Brobecker <brobecker@adacore.com>
8963
8964 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8965 Xmethods now being able to specify a result type to that new
8966 sectioin.
8967
242cd84c
PP
89682015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8969
8970 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8971 first before resizing the window.
e3555239 8972 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
8973
89742015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
8975
8976 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8977 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8978 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8979 dummy_dtor parameter.
8980 * infcall.h: Include dummy-frame.h.
8981 (call_function_by_hand_dummy_dtor_ftype): Remove.
8982 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8983 parameter.
8984
ebfd00d2
PP
89852015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8986
8987 PR gdb/17820
8988 * top.c (history_size_setshow_var): Change type to signed.
8989 Initialize to -2. Update documentation.
8990 (set_readline_history_size): Define.
8991 (set_history_size_command): Use it. Remove logic for handling
8992 out-of-range sizes.
8993 (init_history): Use set_readline_history_size(). Test for a
8994 value of -2 instead of 0 when determining whether to set a
8995 default history size.
8996 (init_main): Decode the argument of the "size" command as a
8997 zuinteger_unlimited.
8998
83769d0b
DE
89992015-05-12 Doug Evans <dje@google.com>
9000
9001 * dwarf2read.c (struct file_entry): Tweak comments.
9002 (get_debug_line_section): Tweak comments.
9003
0d71eef5
DB
90042015-05-12 Don Breazeal <donb@codesourcery.com>
9005
9006 * NEWS: Announce fork support in the RSP and support
9007 for fork debugging in extended mode.
9008
cbb8991c
DB
90092015-05-12 Don Breazeal <donb@codesourcery.com>
9010
9011 * remote.c (remote_insert_fork_catchpoint): New function.
9012 (remote_remove_fork_catchpoint): New function.
9013 (remote_insert_vfork_catchpoint): New function.
9014 (remote_remove_vfork_catchpoint): New function.
9015 (pending_fork_parent_callback): New function.
9016 (remove_new_fork_child): New function.
9017 (remote_update_thread_list): Call remote_notif_get_pending_events
9018 and remove_new_fork_child.
9019 (extended_remote_kill): Kill fork child when killing the
9020 parent before follow_fork completes.
9021 (init_extended_remote_ops): Initialize target vector with
9022 new fork catchpoint functions.
9023
c269dbdb
DB
90242015-05-12 Don Breazeal <donb@codesourcery.com>
9025
9026 * remote.c (remove_vfork_event_p): New function.
9027 (remote_follow_fork): Add vfork event type to event checking.
9028 (remote_parse_stop_reply): New stop reasons "vfork" and
9029 "vforkdone" for RSP 'T' Stop Reply Packet.
9030
de0d863e
DB
90312015-05-12 Don Breazeal <donb@codesourcery.com>
9032
9033 * linux-nat.c (linux_nat_ptrace_options): New function.
9034 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9035 Call linux_nat_ptrace_options and use different argument to
9036 linux_enable_event_reporting.
9037 (_initialize_linux_nat): Delete call to
9038 linux_ptrace_set_additional_flags.
c8f6c93c 9039 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
9040 supported_ptrace_options.
9041 (additional_flags): Delete variable.
9042 (linux_check_ptrace_features): Use supported_ptrace_options.
9043 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9044 Likewise, and remove additional_flags check.
9045 (linux_enable_event_reporting): Change 'attached' argument to
9046 'options'. Use supported_ptrace_options.
c8f6c93c 9047 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
9048 supported_ptrace_options.
9049 (linux_ptrace_set_additional_flags): Delete function.
9050 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9051 Delete function prototype.
9052 * remote.c (remote_fork_event_p): New function.
9053 (remote_detach_pid): New function.
9054 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9055 if doing detach-on-fork.
9056 (remote_follow_fork): New function.
9057 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9058 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9059 (init_extended_remote_ops): Initialize to_follow_fork.
9060
89245bc0
DB
90612015-05-12 Don Breazeal <donb@codesourcery.com>
9062
9063 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9064 from static to extern.
9065 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9066 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9067 * PACKET_vfork_event_feature>: New enumeration constants.
9068 (remote_protocol_features): Add table entries for new packets.
9069 (remote_query_supported): Add new feature queries to qSupported
9070 packet.
9071
835205d0
GB
90722015-05-12 Gary Benson <gbenson@redhat.com>
9073
9074 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9075 for fake PIDs as well as real ones.
9076 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9077
4c082a81
SC
90782015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9079
9080 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9081 * python/py-value.c (valpy_reference_value): New function.
9082 (valpy_const_value): Likewise.
9083 (value_object_methods): Add new methods.
9084 * value.c (make_cv_value): New function.
9085 * value.h (make_cv_value): Declare.
9086
afa6c9ab
SL
90872015-05-08 Yao Qi <yao@codesourcery.com>
9088 Sandra Loosemore <sandra@codesourcery.com>
9089
9090 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9091 to 'lh->include_dirs' before accessing to it.
9092 (psymtab_include_file_name): Likewise.
9093 (dwarf_decode_lines_1): Likewise.
9094 (dwarf_decode_lines): Likewise.
9095 (file_file_name): Likewise.
9096
35d54293
SL
90972015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9098
9099 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9100 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9101 (nios2_linux_rt_sigreturn_init): Adjust base address of
9102 register save area.
9103
b73c49b7
SL
91042015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9105
9106 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9107 "trap 31" as the breakpoint instruction on all targets.
9108
dd9f02a0
JK
91092015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9110
9111 * infcmd.c (print_return_value): Remove unused declaration.
9112
6ad395a7
JB
91132015-05-08 Joel Brobecker <brobecker@adacore.com>
9114
9115 * dwarf2read.c (attr_to_dynamic_prop)
9116 <DW_AT_data_member_location>: Use read_type_die isntead of
9117 get_die_type.
9118
8344af1e
JB
91192015-05-08 Joel Brobecker <brobecker@adacore.com>
9120
9121 * ada-lang.c (ada_convert_actual): Add handling of formals
9122 passed inside an aligner type.
9123
80b0912b
JB
91242015-05-08 Joel Brobecker <brobecker@adacore.com>
9125
9126 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9127
df2eb078
SC
91282015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9129
9130 PR python/18291
9131 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9132 Print xmethod matcher status.
9133
2492f0d0
AA
91342015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9135
9136 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9137 register in the regcache when treating the PSWM register, and vice
9138 versa.
9139
1c56a84d
GB
91402015-05-07 Gary Benson <gbenson@redhat.com>
9141
9142 * linux-thread-db.c (struct thread_db_info)
9143 <td_ta_map_id2thr_p>: Remove field.
9144 (try_thread_db_load_1): Remove initialization for the above.
9145
74850322
GB
91462015-05-07 Gary Benson <gbenson@redhat.com>
9147
9148 * linux-thread-db.c (struct thread_db_info)
9149 <td_thr_validate_p>: Remove field.
9150 (try_thread_db_load_1): Remove initialization for the above.
9151
e26efa40
JK
91522015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9153
9154 * compile/compile-object-load.c (compile_object_load): Support
9155 mst_text_gnu_ifunc.
9156
851c9091
JK
91572015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9158
9159 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9160 const. Use new variables for the const compatibility.
9161 (eval_compile_command): Make the cmd_string parameter const.
9162 * compile/compile.h (eval_compile_command): Make the cmd_string
9163 parameter const.
9164
f218b647
JB
91652015-05-06 Joel Brobecker <brobecker@adacore.com>
9166
9167 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9168 comment.
9169 * top.c (deprecated_init_ui_hook): Delete.
9170 (gdb_init): Remove handling of deprecated_init_ui_hook.
9171 * interps.c (clear_interpreter_hooks): Remove handling of
9172 deprecated_init_ui_hook.
9173 * main.c (captured_main): Update comment.
9174
b30a0bc3
JB
91752015-05-06 Joel Brobecker <brobecker@adacore.com>
9176
9177 * solib.c (_initialize_solib): Add "info dll" alias creation.
9178 * windows-nat.c (set_windows_aliases): Delete.
9179 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9180 assignment.
9181 * NEWS: Add news entry about "info dll" now being available
9182 on all platforms.
9183
7c512744
JB
91842015-05-05 Joel Brobecker <brobecker@adacore.com>
9185
9186 * ada-lang.c (value_assign_to_component): Reformat and improve
9187 documentation. Remove all trailing spaces.
9188
0fa7fe50
JB
91892015-05-05 Joel Brobecker <brobecker@adacore.com>
9190
9191 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9192 Stop counting inlined frames as soon as an out-of-line function
9193 is found.
9194
3ea89b92
PMR
91952014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9196
9197 * dwarf2read.c (inherit_abstract_dies): Skip
9198 DW_TAG_GNU_call_site dies while inheriting children of an
9199 abstract DIE into a scope.
9200 (read_lexical_block_scope): Inherit abstract DIE's for
9201 lexical scopes.
9202
2478d075
JB
92032015-05-05 Joel Brobecker <brobecker@adacore.com>
9204
9205 * ada-valprint.c (val_print_packed_array_elements): Delete
9206 variable "len". Add a type-length check when comparing two
9207 consecutive elements of the array. Use the element's actual
9208 length in call to value_contents_eq.
9209 * ada-lang.c (ada_value_primitive_packed_val): Always return
9210 a value whose type has been resolved.
9211
fc958966
JB
92122015-05-05 Joel Brobecker <brobecker@adacore.com>
9213
9214 * ada-lang.c (ada_value_primitive_packed_val): Recompute
9215 BIT_SIZE and LEN if the size of the resolved type is smaller
9216 than BIT_SIZE * HOST_CHAR_BIT.
9217
ca34b84f
JB
92182015-05-05 Joel Brobecker <brobecker@adacore.com>
9219
9220 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9221 correct address in call to value_at. Adjust call to
9222 value_address accordingly.
9223
62c67f3c
JB
92242015-05-05 Joel Brobecker <brobecker@adacore.com>
9225
9226 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9227 to print it.
9228
c3345124
JB
92292015-05-05 Joel Brobecker <brobecker@adacore.com>
9230
9231 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9232 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9233 pinfo->valaddr.
9234 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9235 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9236 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9237 Add handling of addr_stack->valaddr.
9238 (resolve_dynamic_type): Add "valaddr" parameter.
9239 Set pinfo.valaddr field.
9240 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9241 resolve_dynamic_type.
9242 (ada_discrete_type_low_bound): Likewise.
9243 * findvar.c (default_read_var_value): Likewise.
9244 * value.c (value_from_contents_and_address): Likewise.
9245
75ea5859
JB
92462015-05-05 Joel Brobecker <brobecker@adacore.com>
9247
9248 * gdbtypes.c (resolve_dynamic_array): Use
9249 create_array_type_with_stride instead of create_array_type.
9250
0952813b
DD
92512015-04-30 DJ Delorie <dj@redhat.com>
9252
9253 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9254 rl78_decode_opcode
9255
2ce1cdbf
DE
92562015-04-29 Doug Evans <dje@google.com>
9257
9258 PR python/18285
9259 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9260 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9261 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9262 * extension-priv.h (struct extension_language_ops)
9263 <get_xmethod_result_type>: New member.
9264 * extension.c (get_xmethod_result_type): New function.
9265 * extension.h (get_xmethod_result_type): Declare.
9266 * python/py-xmethods.c (get_result_type_method_name): New static
9267 global.
9268 (py_get_result_type_method_name): Ditto.
9269 (gdbpy_get_xmethod_result_type): New function.
9270 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9271 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9272 * python/python.c (python_extension_ops): Add
9273 gdbpy_get_xmethod_result_type.
9274 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9275 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9276 xmethods.
9277 (value_x_unop): Ditto.
9278 * value.c (result_type_of_xmethod): New function.
9279 * value.h (result_type_of_xmethod): Declare.
9280
998d2a3e
GB
92812015-04-29 Gary Benson <gbenson@redhat.com>
9282
9283 * solib.c (solib_find_1): Allow fd argument to be NULL.
9284 (exec_file_find): Update comment.
9285 (solib_find): Likewise.
9286 * exec.c (exec_file_locate_attach): Use NULL as fd
9287 argument to exec_file_find to avoid having to close
9288 the opened file.
9289 * infrun.c (follow_exec): Likewise.
9290
34f5f757
DE
92912015-04-28 Doug Evans <dje@google.com>
9292
9293 PR python/18299
9294 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9295 name or __name__ attributes. Handle gdb module as first argument.
9296
69b4374a
DE
92972015-04-28 Doug Evans <dje@google.com>
9298
9299 PR python/18089
9300 * python/py-prettyprint.c (print_children): Verify result of children
9301 iterator. Provide better error message.
9302 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9303 * python/python.c (gdbpy_print_python_errors_p): New function.
9304
5e7cf078
DE
93052015-04-28 Doug Evans <dje@google.com>
9306
9307 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9308
59fb7612
SS
93092015-04-28 Sasha Smundak <asmundak@google.com>
9310
9311 * NEWS: Mention gdb.Type.optimized_out method.
9312 * python/py-type.c (typy_optimized_out): New function.
9313
cea6e4f1
JB
93142015-04-28 John Baldwin <jhb@FreeBSD.org>
9315
9316 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9317
24b73f8e
PP
93182015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9319
9320 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9321 (initialize_utils): Move call of init_page_info() to ...
9322 * top.c (gdb_init): ... here.
9323
a88d0bb3
PP
93242015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9325
9326 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9327 (tui_sigwinch_handler): Still update our idea of
9328 the terminal's width and height even when TUI is not active.
9329
d6e5e7f7
PP
93302015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9331
9332 * utils.h (set_screen_width_and_height): Declare.
9333 * utils.c (set_screen_width_and_height): Define.
9334 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9335
ff862be4
GB
93362015-04-28 Gary Benson <gbenson@redhat.com>
9337
9338 * infrun.c (solist.h): New include.
9339 (follow_exec): Use exec_file_find to prefix execd_pathname
9340 with gdb_sysroot.
9341
2eb639cb
PP
93422015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9343
9344 * tui/tui-source.c (tui_set_source_content): Avoid calling
9345 strcpy() when offset is 0.
9346
97206799
PP
93472015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9348
9349 PR gdb/18155
9350 * tui/tui-data.c (tui_free_window): Don't free the locator
9351 window when passed an SRC_WIN or a DISASSEM_WIN.
9352
63ed8182
PP
93532015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9354
9355 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9356 (tui_win_content): Move declaration.
9357 (struct tui_gen_win_info): Give 'content' field the
9358 type tui_win_content.
9359 * tui/tui-data.c (init_content_element): Remove redundant and
9360 erroneous casts.
9361 (tui_add_content_elements): Remove erroneous cast.
9362 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9363 casts.
9364 (tui_get_begin_asm_address): Likewise.
9365 * tui/tui-regs.c (tui_show_registers): Likewise.
9366 (tui_show_register_group): Likewise.
9367 (tui_display_registers_from): Likewise.
9368 (tui_check_register_values): Likewise.
9369 * tui/tui-source.c (tui_set_source_content): Likewise.
9370 (tui_set_source_content_nil): Likewise.
9371 (tui_source_is_displayed): Likewise.
9372 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9373 (tui_set_locator_fullname): Likewise.
9374 (tui_set_locator_info): Likewise.
9375 (tui_show_frame_info): Likewise.
9376 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9377 (tui_show_source_line): Likewise.
9378 (tui_horizontal_source_scroll): Likewise.
9379 (tui_update_breakpoint_info): Likewise.
9380 (tui_set_exec_info_content): Likewise.
9381 (tui_show_exec_info_content): Likewise.
9382 (tui_alloc_source_buffer): Likewise.
9383 (tui_line_is_displayed): Likewise.
9384 (tui_addr_is_displayed): Likewise.
9385
d2b41ca0
JB
93862015-04-27 John Baldwin <jhb@FreeBSD.org>
9387
9388 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9389 event if PL_FLAG_EXEC is set.
9390 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9391 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9392 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9393 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9394 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9395
e58e05d6
JB
93962015-04-27 John Baldwin <jhb@FreeBSD.org>
9397
9398 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9399 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9400 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9401 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9402 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9403 [PT_LWPINFO] (fbsd_wait): New function.
9404 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9405 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9406 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9407 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9408 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9409 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9410 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9411 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9412 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9413 "fbsd_wait".
9414 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9415 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9416 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9417 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9418 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9419 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9420 Set "to_post_attach" to "fbsd_post_attach".
9421
8f60fe01
JB
94222015-04-27 John Baldwin <jhb@FreeBSD.org>
9423
9424 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9425 (fbsd_find_memory_regions): Mark static.
9426 (fbsd_nat_add_target): New function.
9427 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9428 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9429 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9430 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9431 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9432 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9433
5fbae7d1
GB
94342015-04-27 Gary Benson <gbenson@redhat.com>
9435
9436 * objfiles.c (allocate_objfile): Do not attempt to expand name
9437 if name is a "target:" filename.
9438 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9439 to load auto-load scripts for objfiles with "target:" filenames.
9440
417c80f9
AA
94412015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9442
9443 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9444 (enum s390_vector_abi_kind): New enum.
9445 (struct gdbarch_tdep)<vector_abi>: New field.
9446 (s390_effective_inner_type): Add parameter min_size. Stop
9447 unwrapping if the inner type is smaller than min_size.
9448 (s390_function_arg_float): Adjust call to
9449 s390_effective_inner_type.
9450 (s390_function_arg_vector): New function.
9451 (s390_function_arg_integer): Adjust comment.
9452 (struct s390_arg_state)<vr>: New field.
9453 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9454 arguments according to vector ABI when appropriate.
9455 (s390_push_dummy_call): Initialize the argument state's field
9456 'vr'. Adjust calls to s390_handle_arg.
9457 (s390_register_return_value): Handle vector return values.
9458 (s390_return_value): Apply the "register" return value convention
9459 to a vector when appropriate.
9460 (s390_gdbarch_init): Initialize tdep->vector_abi.
9461 * NEWS: Announce S390 vector ABI support.
9462
4e65a17e
AA
94632015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9464
9465 * s390-linux-tdep.c (s390_return_value_convention): Remove
9466 function. Inline its logic...
9467 (s390_return_value): ...here. Instead, move the handling of the
9468 "register" return value convention...
9469 (s390_register_return_value): ...here. New function.
9470
80f75320
AA
94712015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9472
9473 * s390-linux-tdep.c
9474 (is_float_singleton): Remove function. Move the "singleton" part
9475 of the logic...
9476 (s390_effective_inner_type): ...here. New function.
9477 (is_float_like): Remove function. Inline its logic...
9478 (s390_function_arg_float): ...here.
9479 (is_pointer_like, is_integer_like, is_struct_like): Remove
9480 functions. Inline their logic...
9481 (s390_function_arg_integer): ...here.
9482 (s390_function_arg_pass_by_reference): Remove function.
9483 (extend_simple_arg): Remove function.
9484 (alignment_of): Remove function.
9485 (struct s390_arg_state): New structure.
9486 (s390_handle_arg): New function.
9487 (s390_push_dummy_call): Move parameter placement logic to the new
9488 function s390_handle_arg. Call it for calculating the stack area
9489 sizes first, and again for actually writing the parameters.
9490
6dbc9c04
AA
94912015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9492
9493 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9494 false if the argument is zero.
9495
9e195661
PMR
94962015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9497
9498 * ada-lang.c (template_to_static_fixed_type): Return input type
9499 when it is already fixed. Cache the input type itself when not
9500 creating a static fixed copy. Make it explicit that we never
9501 molestate the input type.
9502 * gdbtypes.c (resolve_dynamic_struct): Reset the
9503 TYPE_TARGET_TYPE field for resolved copies.
9504
460efde1
JB
95052015-04-27 Joel Brobecker <brobecker@adacore.com>
9506
9507 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9508 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9509 (template_to_static_fixed_type): Call ada_check_typedef only
9510 when necessary.
9511
6faec16b
AB
95122015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * cli/cli-dump.c (srec_dump_command): Add internationalization
9515 mark ups.
9516 (ihex_dump_command): Likewise.
9517 (tekhex_dump_command): Likewise.
9518 (binary_dump_command): Likewise.
9519 (binary_append_command): Likewise.
9520
cf75d6c3
AB
95212015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * cli/cli-dump.c (verilog_cmdlist): New variable.
9524 (dump_verilog_memory): New function.
9525 (dump_verilog_value): New function.
9526 (verilog_dump_command): New function.
9527 (_initialize_cli_dump): Add new commands to support verilog dump
9528 format.
9529 * NEWS: Add entry for "dump verilog".
9530
8cd00c59
PMR
95312015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9532
9533 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9534 descriptive type when there is none.
9535
8900d71e
PP
95362015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9537
9538 * tui/tui-win.c (tui_async_resize_screen): Call
9539 rl_resize_terminal().
9540
f16eab5f
JT
95412015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9542
9543 * windows-nat.c (handle_output_debug_string): Don't change
9544 current_event.dwThreadId.
9545 (get_windows_debug_event): Use thread_id, rather than relying on
9546 current_event.dwThreadId being changed.
9547
68ffc902
JT
95482015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9549
9550 * windows-nat.c (windows_continue): Report an error if
9551 ContinueDebugEvent() fails.
9552
23942819
JT
95532015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9554
9555 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9556
e6ad66bd
JT
95572015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9558
9559 * windows-nat.c (get_windows_debug_event): Replace retval with
9560 thread_id throughout. Update stale comment.
9561
776704b9
JT
95622015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9563
9564 * windows-nat.c (get_windows_debug_event): Don't use ternary
9565 conditional operator.
9566
8aae4344
PM
95672015-04-21 Pierre Muller <muller@sourceware.org>
9568
9569 PR pascal/17815
9570 p-exp.y (yylex): Reorganize code to return the matched pattern
9571 for a field of this.
9572
819843c7
GB
95732015-04-21 Gary Benson <gbenson@redhat.com>
9574
9575 * common/fileio.h (fileio_to_host_openflags): New declaration.
9576 * common/fileio.c (fcntl.h): New include.
9577 (fileio_to_host_openflags): New function, factored out from...
9578 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9579 Single use updated.
9580
0bca7f99
KB
95812015-04-21 Kevin Buettner <kevinb@redhat.com>
9582
9583 * rl78-tdep.c (RL78_SP_ADDR): Define.
9584 (opc_reg_to_gdb_regnum): New static function.
9585 (rl78_analyze_prologue): Recognize instructions forming slightly
9586 more interesting prologues.
9587
e771e4be
PMR
95882015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9589
9590 Revert:
9591 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9592 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9593 TYPE_CODE_REF types so that they are not considered as dynamic
9594 depending on the referenced type.
9595 (resolve_dynamic_type_internal): Likewise.
9596
ee715b5a
PMR
95972015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9598
9599 Revert:
9600 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9601 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9602 "top_level" parameter.
9603 (resolve_dynamic_type_internal): Remove the unused "top_level"
9604 parameter. Update call to is_dynamic_type_internal.
9605 (is_dynamic_type): Update call to is_dynamic_type_internal.
9606 (resolve_dynamic_range): Update call to
9607 resolve_dynamic_type_internal.
9608 (resolve_dynamic_union): Likewise.
9609 (resolve_dynamic_struct): Likewise.
9610 (resolve_dynamic_type): Likewise.
9611
e31d7699
GKB
96122015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9613
9614 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9615 xmalloc.
9616
d214e5e7
TS
96172015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9618
110f9112
TS
9619 * reply_mig_hack.awk: Robustify parsing.
9620
d214e5e7
TS
9621 * reply_mig_hack.awk: Don't bother to declare an intermediate
9622 function pointer variable.
9623
8f61baf8
DE
96242015-04-17 Doug Evans <dje@google.com>
9625
9626 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9627 to "exec_displacement" to avoid confusion with inner use of the name.
9628
dbbf180a
YQ
96292015-04-17 Pedro Alves <palves@redhat.com>
9630
9631 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9632 if HW point of TYPE isn't supported.
9633
059790a0
YQ
96342015-04-17 Yao Qi <yao.qi@linaro.org>
9635 Pedro Alves <palves@redhat.com>
9636
9637 * target.h (target_can_use_hardware_watchpoint): Update comments.
9638 Remove trailing ";".
9639
1b6e6f5c
GB
96402015-04-17 Gary Benson <gbenson@redhat.com>
9641
9642 * remote.c (remote_add_inferior): New argument try_open_exec.
9643 If nonzero, attempt to open the inferior's executable file as
9644 the main executable if no main executable is open already.
9645 All callers updated.
9646 * NEWS: Mention that GDB now supports automatic location and
9647 retrieval of executable + files from remote targets.
9648
c78fa86a
GB
96492015-04-17 Gary Benson <gbenson@redhat.com>
9650
9651 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9652 * remote.c (PACKET_qXfer_exec_file): Likewise.
9653 (remote_protocol_features): Register the
9654 "qXfer:exec-file:read" feature.
9655 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9656 (remote_pid_to_exec_file): New function.
9657 (init_remote_ops): Initialize to_pid_to_exec_file.
9658 (_initialize_remote): Register new "set/show remote
9659 pid-to-exec-file-packet" command.
9660 * NEWS: Announce new qXfer:exec-file:read packet.
9661
e0d86d2c
GB
96622015-04-17 Gary Benson <gbenson@redhat.com>
9663
9664 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9665 New declaration.
9666 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9667 New function, factored out from...
9668 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9669
a9a5a3d1
GB
96702015-04-17 Gary Benson <gbenson@redhat.com>
9671
9672 * exec.c (solist.h): New include.
9673 (exec_file_locate_attach): Prefix absolute executable
9674 paths with gdb_sysroot if set.
9675 * NEWS: Mention that executable paths may be prepended
9676 with sysroot.
9677
af1900b0
GB
96782015-04-17 Gary Benson <gbenson@redhat.com>
9679
9680 * solist.h (exec_file_find): New declaration.
9681 * solib.c (solib_find_1): New function, factored out from...
9682 (solib_find): ...here.
9683 (exec_file_find): New function.
9684
a10de604
GB
96852015-04-17 Gary Benson <gbenson@redhat.com>
9686
9687 * gdbcore.h (exec_file_locate_attach): New declaration.
9688 * exec.c (exec_file_locate_attach): New function, factored
9689 out from...
9690 * infcmd.c (attach_command_post_wait): ...here.
9691
92209ddf
MF
96922015-04-17 Mike Frysinger <vapier@gentoo.org>
9693
9694 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9695
8550d3b3
YQ
96962015-04-16 Yao Qi <yao.qi@linaro.org>
9697
9698 * infrun.c (maybe_software_singlestep): Declare.
9699 (displaced_step_fixup): Call maybe_software_singlestep.
9700
30b3dd9d
DE
97012015-04-15 Doug Evans <dje@google.com>
9702
9703 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9704
61d96d7e
DE
97052015-04-15 Doug Evans <dje@google.com>
9706
9707 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9708
40d2f8d6
SM
97092015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9710
9711 * python/lib/gdb/command/unwinders.py: Add parentheses.
9712
6bbbba9b
YQ
97132015-04-15 Yao Qi <yao.qi@linaro.org>
9714
9715 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9716
2bb2dcab
YQ
97172015-04-15 Yao Qi <yao.qi@linaro.org>
9718
9719 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9720
41f071ef
YQ
97212015-04-15 Yao Qi <yao.qi@linaro.org>
9722
9723 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9724 dsc->insn_size instead of 4.
9725
326a5c7e
GB
97262015-04-14 Gary Benson <gbenson@redhat.com>
9727
9728 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9729 * minidebug.c (lzma_stat): Likewise.
9730 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9731 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9732
dd177e81
SS
97332015-04-13 Stan Shebs <stanshebs@google.com>
9734
9735 * MAINTAINERS: Update my email address.
9736
97de3545
JB
97372015-04-13 John Baldwin <jhb@FreeBSD.org>
9738
9739 * amd64-tdep.c (amd64_target_description): New function.
9740 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9741 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9742 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9743 x86 extended save area.
9744 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9745 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9746 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9747 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9748 "amd64fbsd_read_description".
9749 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9750 (amd64fbsd_supply_xstateregset): New function.
9751 (amd64fbsd_collect_xstateregset): New function.
9752 Add "amd64fbsd_xstateregset".
9753 (amd64fbsd_iterate_over_regset_sections): New function.
9754 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9755 "I386_FBSD_XSAVE_XCR0_OFFSET".
9756 Add "iterate_over_regset_sections" gdbarch method.
9757 Add "core_read_description" gdbarch method.
9758 * i386-tdep.c (i386_target_description): New function.
9759 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9760 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9761 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9762 x86 extended save area.
9763 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9764 * i386bsd-nat.h: Export i386bsd_xsave_len.
9765 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9766 (_initialize_i386fbsd_nat): Set "to_read_description" to
9767 "i386fbsd_read_description".
9768 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9769 (i386fbsd_core_read_description): New function.
9770 (i386fbsd_supply_xstateregset): New function.
9771 (i386fbsd_collect_xstateregset): New function.
9772 Add "i386fbsd_xstateregset".
9773 (i386fbsd_iterate_over_regset_sections): New function.
9774 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9775 "I386_FBSD_XSAVE_XCR0_OFFSET".
9776 Add "iterate_over_regset_sections" gdbarch method.
9777 Add "core_read_description" gdbarch method.
9778 * i386fbsd-tdep.h: New file.
9779
4f45d445
JK
97802015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9781
9782 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9783 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9784 conditional.
9785 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9786 and lb.
9787 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9788 va.
9789 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9790 conditional.
9791 * defs.h (xdb_commands): Remove declaration.
9792 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9793 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9794 * infcmd.c (run_no_args_command, go_command): Remove.
9795 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9796 * infrun.c (xdb_handle_command): Remove.
9797 (_initialize_infrun): Remove xdb_commands for lz and z.
9798 * main.c (xdb_commands): Remove variable.
9799 (captured_main): Remove "xdb" from long_options.
9800 (print_gdb_help): Remove --xdb from help.
9801 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9802 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9803 * stack.c (backtrace_full_command, args_plus_locals_info)
9804 (current_frame_command): Remove.
9805 (_initialize_stack): Remove xdb_commands for t, T and l.
9806 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9807 * thread.c (_initialize_thread): Remove xdb_commands condition.
9808 * tui/tui-layout.c (tui_toggle_layout_command)
9809 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9810 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9811 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9812 (tui_scroll_regs_backward_command): Remove.
9813 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9814 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9815 (_initialize_tui_win): Remove xdb_commands for U and w.
9816 * utils.c (pagination_on_command, pagination_off_command): Remove.
9817 (initialize_utils): Remove xdb_commands for am and sm.
9818
cb71640d
PA
98192015-04-10 Pedro Alves <palves@redhat.com>
9820
9821 * infrun.c (displaced_step_fixup): Switch to the event ptid
9822 earlier. If the thread stopped for a watchpoint and the
9823 target/arch has non-continuable watchpoints, cancel the displaced
9824 step.
9825 (resume): Don't start a displaced step if in-line step-over info
9826 is valid.
9827
8f572e5c
PA
98282015-04-10 Pedro Alves <palves@redhat.com>
9829
9830 * infrun.c (displaced_step_in_progress): New function.
9831 (do_target_resume): Advise target to report all signals if
9832 displaced stepping.
9833
8d707a12
PA
98342015-04-10 Pedro Alves <palves@redhat.com>
9835
9836 PR gdb/18216
9837 * infrun.c (process_event_stop_test): Don't assume a step-resume
9838 is set if tp->stepped_breakpoint is true.
9839
ef713951
YQ
98402015-04-10 Yao Qi <yao.qi@linaro.org>
9841
9842 * arm-tdep.c (install_alu_reg): Update comment.
9843 (thumb_copy_alu_reg): Remove local variable rn. Update
9844 debugging message. Use r2 instead of r1 in the modified
9845 instruction.
9846
906d60cf
PA
98472015-04-10 Pedro Alves <palves@redhat.com>
9848
9849 PR gdb/13858
9850 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9851 linux_displaced_step_location as gdbarch_displaced_step_location
9852 hook.
9853 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9854 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9855 * linux-tdep.c (linux_displaced_step_location): New function,
9856 based on ppc_linux_displaced_step_location.
9857 * linux-tdep.h (linux_displaced_step_location): New declaration.
9858 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9859 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9860 Delete.
9861 (ppc_linux_init_abi): Install linux_displaced_step_location as
9862 gdbarch_displaced_step_location hook, even without Cell/B.E..
9863 (_initialize_ppc_linux_tdep): Don't install
9864 ppc_linux_inferior_created as inferior_created observer.
9865 * s390-linux-tdep.c (s390_gdbarch_init): Install
9866 linux_displaced_step_location as gdbarch_displaced_step_location
9867 hook.
9868
7823a941
GB
98692015-04-09 Gary Benson <gbenson@redhat.com>
9870
9871 * common/common-remote-fileio.h: Rename to...
9872 * common/fileio.h: ...this. Update all references.
9873 (remote_fileio_to_fio_error): Rename to...
9874 (host_to_fileio_error): ...this.
9875 (remote_fileio_to_be): Rename to...
9876 (host_to_bigendian): ...this. Update all callers.
9877 (remote_fileio_to_fio_uint): Rename to...
9878 (host_to_fileio_uint): ...this. Update all callers.
9879 (remote_fileio_to_fio_time): Rename to...
9880 (host_to_fileio_time): ...this. Update all callers.
9881 (remote_fileio_to_fio_stat): Rename to...
9882 (host_to_fileio_stat): ...this.
9883 Update all references.
9884 * common/common-remote-fileio.c: Rename to...
9885 * common/fileio.c: ...this. Update all references.
9886 (remote_fileio_to_fio_error): Rename to...
9887 (host_to_fileio_error): ...this. Update all callers.
9888 (remote_fileio_mode_to_target): Rename to...
9889 (fileio_mode_pack): ...this. Update all callers.
9890 (remote_fileio_to_fio_mode): Rename to...
9891 (host_to_fileio_mode): ...this. Update all callers.
9892 (remote_fileio_to_fio_ulong): Rename to...
9893 (host_to_fileio_ulong): ...this. Update all callers.
9894 (remote_fileio_to_fio_stat): Rename to...
9895 (host_to_fileio_stat): ...this. Update all callers.
9896
f2983cc3
AW
98972015-04-09 Andy Wingo <wingo@igalia.com>
9898
9899 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9900 (frame_functions): Bind gdbscm_frame_read_register to
9901 frame-read-register.
9902 * guile/lib/gdb.scm (frame-read-register): Export.
9903
b88bb450
GB
99042015-04-09 Gary Benson <gbenson@redhat.com>
9905
9906 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9907 New declaration.
9908 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9909 New function, factored out the named functions below.
9910 * inf-child.c (gdb/fileio.h): Remove include.
9911 (common-remote-fileio.h): New include.
9912 (inf_child_errno_to_fileio_error): Remove function. Update
9913 all callers to use remote_fileio_to_fio_error.
9914 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9915
2f2680f3
AW
99162015-04-09 Andy Wingo <wingo@igalia.com>
9917
9918 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9919
5a2d4533
L
99202015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9921
9922 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9923 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9924 * configure: Regenerated.
9925
421693b0
PA
99262015-04-09 Pedro Alves <palves@redhat.com>
9927
9928 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9929 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9930 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9931 * gnulib/import/Makefile.am: Update.
9932 * gnulib/import/Makefile.in: Update.
9933 * gnulib/import/m4/gnulib-cache.m4: Update.
9934 * gnulib/import/m4/gnulib-comp.m4: Update.
9935 * gnulib/import/m4/strtok_r.m4: New file.
9936 * gnulib/import/strtok_r.c: New file.
9937
f543dc83
PA
99382015-04-09 Pedro Alves <palves@redhat.com>
9939
9940 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9941 "called too early to check prototype".
9942
6d62641c
SDJ
99432015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9944
9945 PR python/16699
9946 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9947 use a caching mechanism. Adjust comments and code to reflect
9948 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9949 (cmdpy_completer_handle_brkchars): Adjust call to
9950 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9951 (cmdpy_completer): Likewise.
9952
85558555
YQ
99532015-04-08 Yao Qi <yao.qi@linaro.org>
9954
9955 * spu-tdep.c (spu_gdbarch_init): Don't call
9956 set_gdbarch_cannot_step_breakpoint.
9957
d249a14a
SDJ
99582015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9959
9960 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9961
8a06aea7
PA
99622015-04-07 Pedro Alves <palves@redhat.com>
9963
9964 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9965 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9966 (delete_exited_threads): New declaration.
9967 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9968 * linux-nat.c (linux_nat_update_thread_list): New function.
9969 (linux_nat_add_target): Install it.
9970 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9971 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9972 (delete_exited_threads): New function.
9973
d9b67d9f
PA
99742015-04-07 Pedro Alves <pedro@codesourcery.com>
9975
9976 * infrun.c (resume) <displaced stepping debug output>: Get the
9977 leader thread's regcache, not resume_ptid's.
9978
2c26b84f
DE
99792015-04-06 Doug Evans <xdje42@gmail.com>
9980
9981 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9982 VAR_DOMAIN.
9983 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9984 Include symbol domain in debugging output.
9985
7a85168d
PA
99862015-04-06 Pedro Alves <palves@redhat.com>
9987 Bernd Edlinger <bernd.edlinger@hotmail.de>
9988
9989 * configure.ac: Remove the mingw32-specific stub-termcap.o
9990 fallback, and instead fallback to the stub termcap on all hosts.
9991 * configure: Regenerate.
9992 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9993 symbols.
9994
25755e2b
PMR
99952015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9996
9997 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9998 "top_level" parameter.
9999 (resolve_dynamic_type_internal): Remove the unused "top_level"
10000 parameter. Update call to is_dynamic_type_internal.
10001 (is_dynamic_type): Update call to is_dynamic_type_internal.
10002 (resolve_dynamic_range): Update call to
10003 resolve_dynamic_type_internal.
10004 (resolve_dynamic_union): Likewise.
10005 (resolve_dynamic_struct): Likewise.
10006 (resolve_dynamic_type): Likewise.
10007
961f4160
PMR
100082015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10009
10010 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10011 TYPE_CODE_REF types so that they are not considered as dynamic
10012 depending on the referenced type.
10013 (resolve_dynamic_type_internal): Likewise.
10014
39f3de7c
L
100152015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10016
10017 * Makefile.in (top_srcdir): New.
10018 * configure: Regenerated.
10019
599bd15c
GB
100202015-04-02 Gary Benson <gbenson@redhat.com>
10021
10022 * NEWS: Announce the new default sysroot of "target:".
10023
fed040c6
GB
100242015-04-02 Gary Benson <gbenson@redhat.com>
10025
10026 * main.c (captured_main): Set gdb_sysroot to "target:"
10027 if not otherwise set.
10028
64c0b5de
GB
100292015-04-02 Gary Benson <gbenson@redhat.com>
10030
10031 * exec.c (exec_file_attach): Support "target:" filenames.
10032
b57fbfba
GB
100332015-04-02 Gary Benson <gbenson@redhat.com>
10034
10035 * solib.c (solib_find): Strip "target:" prefix from sysroot
10036 if accessing local files.
10037
97a41605
GB
100382015-04-02 Gary Benson <gbenson@redhat.com>
10039
10040 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10041 checks and error messages.
10042
2938e6cf
GB
100432015-04-02 Gary Benson <gbenson@redhat.com>
10044
10045 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10046 (remote_filename_p): Remove declaration.
10047 (remote_bfd_open): Likewise.
10048 * remote.c (remote_bfd_iovec_open): Remove function.
10049 (remote_bfd_iovec_close): Likewise.
10050 (remote_bfd_iovec_pread): Likewise.
10051 (remote_bfd_iovec_stat): Likewise.
10052 (remote_filename_p): Likewise.
10053 (remote_bfd_open): Likewise.
10054 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10055 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10056 (gdb_bfd_open_maybe_remote): Remove function.
10057 (symfile_bfd_open): Replace remote filename check with
10058 target filename check.
10059 (reread_symbols): Use gdb_bfd_open.
10060 * build-id.c (gdbcore.h): New include.
10061 (build_id_to_debug_bfd): Use gdb_bfd_open.
10062 * infcmd.c (attach_command_post_wait): Remove remote filename
10063 check.
10064 * solib.c (solib_find): Replace remote-specific handling with
10065 target-specific handling. Update comments where necessary.
10066 (solib_bfd_open): Replace remote-specific handling with
10067 target-specific handling.
10068 (gdb_sysroot_changed): New function.
10069 (_initialize_solib): Call the above when gdb_sysroot changes.
10070 * windows-tdep.c (gdbcore.h): New include.
10071 (windows_xfer_shared_library): Use gdb_bfd_open.
10072
f08e97fe
GB
100732015-04-02 Gary Benson <gbenson@redhat.com>
10074
10075 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10076 (is_target_filename): New declaration.
10077 (gdb_bfd_has_target_filename): Likewise.
10078 (gdb_bfd_open): Update documentation comment.
10079 * gdb_bfd.c (target.h): New include.
10080 (gdb/fileio.h): Likewise.
10081 (is_target_filename): New function.
10082 (gdb_bfd_has_target_filename): Likewise.
10083 (fileio_errno_to_host): Likewise.
10084 (gdb_bfd_iovec_fileio_open): Likewise.
10085 (gdb_bfd_iovec_fileio_pread): Likewise.
10086 (gdb_bfd_iovec_fileio_close): Likewise.
10087 (gdb_bfd_iovec_fileio_fstat): Likewise.
10088 (gdb_bfd_open): Use target fileio to access paths prefixed
10089 with "target:" where necessary.
10090
4bd7dc42
GB
100912015-04-02 Gary Benson <gbenson@redhat.com>
10092
10093 * target.h (struct target_ops) <to_filesystem_is_local>:
10094 New field.
10095 (target_filesystem_is_local): New macro.
10096 * target-delegates.c: Regenerate.
10097 * remote.c (remote_filesystem_is_local): New function.
10098 (init_remote_ops): Initialize to_filesystem_is_local.
10099
9b15c1f0
GB
101002015-04-02 Gary Benson <gbenson@redhat.com>
10101
10102 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10103 (target_fileio_fstat): New declaration.
10104 * target.c (target_fileio_fstat): New function.
10105 * inf-child.c (inf_child_fileio_fstat): Likewise.
10106 (inf_child_target): Initialize to_fileio_fstat.
10107 * remote.c (init_remote_ops): Likewise.
10108
d11916aa
SS
101092015-04-01 Sasha Smundak <asmundak@google.com>
10110
10111 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10112 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10113 (py-unwind.o): New recipe.
10114 * NEWS: mention Python frame unwinding.
10115 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10116 gdb/unwinder.py and gdb/command/unwinder.py
10117 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10118 list.
10119 (execute_unwinders): New function.
10120 * python/lib/gdb/command/unwinders.py: New file.
10121 * python/lib/gdb/unwinder.py: New file.
10122 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10123 (objfpy_dealloc): Decrement frame_unwinders reference count.
10124 (objfpy_initialize): Create frame_unwinders list.
10125 (objfpy_get_frame_unwinders): New function.
10126 (objfpy_set_frame_unwinders): Ditto.
10127 (objfile_getset): Add frame_unwinders attribute to Objfile.
10128 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10129 (pspy_dealloc): Decrement frame_unwinders reference count.
10130 (pspy_initialize): Create frame_unwinders list.
10131 (pspy_get_frame_unwinders): New function.
10132 (pspy_set_frame_unwinders): Ditto.
10133 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10134 * python/py-unwind.c: New file.
10135 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10136 (objpy_get_frame_unwinders): New prototype.
10137 (gdbpy_initialize_unwind): New prototype.
10138 * python/python.c (gdbpy_apply_type_printers): Call
10139 gdbpy_initialize_unwind.
10140
6b403daa
PA
101412015-04-01 Pedro Alves <palves@redhat.com>
10142
10143 * infrun.c (resume): Check currently_stepping after clearing
10144 stepped_breakpoint, not before.
10145
1176ecec
PA
101462015-04-01 Pedro Alves <palves@redhat.com>
10147
10148 * infrun.c (print_target_wait_results): Print all the ptid
10149 elements.
10150
de1fe8c8
PA
101512015-04-01 Pedro Alves <palves@redhat.com>
10152
10153 * infrun.c (keep_going): Also discard cleanups if inserting
10154 breakpoints fails.
10155
e6f5c25b
PA
101562015-04-01 Pedro Alves <palves@redhat.com>
10157
10158 * infrun.c (wait_for_inferior): Install the
10159 finish_thread_state_cleanup cleanup across the whole function, not
10160 just around handle_inferior_event.
10161
1ac806b8
PA
101622015-04-01 Pedro Alves <palves@redhat.com>
10163
10164 * infrun.c (resume) <step past permanent breakpoint>: Use
10165 do_target_resume.
10166
2ee52aa4
PA
101672015-04-01 Pedro Alves <palves@redhat.com>
10168
10169 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10170
5445da1b
PMR
101712015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10172
10173 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10174
4eec2deb
PA
101752015-04-01 Pedro Alves <palves@redhat.com>
10176
10177 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10178 list if it was marked exited.
10179
afa59b79
L
101802015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10181
10182 * configure: Regenerated.
10183
df8411da
SDJ
101842015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10185 Jan Kratochvil <jan.kratochvil@redhat.com>
10186 Oleg Nesterov <oleg@redhat.com>
10187
10188 PR corefiles/16092
10189 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10190 New enum identifying the various options of the coredump_filter
10191 file.
10192 (struct smaps_vmflags): New struct.
10193 (use_coredump_filter): New variable.
10194 (decode_vmflags): New function.
10195 (mapping_is_anonymous_p): Likewise.
10196 (dump_mapping_p): Likewise.
10197 (linux_find_memory_regions_full): New variables
10198 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10199 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
10200 parsing of its information. Implement memory mapping filtering
10201 based on its contents.
10202 (show_use_coredump_filter): New function.
10203 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
10204 * NEWS: Mention the possibility of using the
10205 '/proc/PID/coredump_filter' file when generating a corefile.
10206 Mention new command 'set use-coredump-filter'.
10207
416f679e
SDJ
102082015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10209
10210 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
10211 read_memory_unsigned_integer.
10212
711a72d3
L
102132015-03-31 H.J. Lu <hongjiu.lu@intel.com>
10214
10215 * Makefile.in (ZLIB): New.
10216 (ZLIBINC): Likewise.
10217 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10218 (CLIBS): Add $(ZLIB).
10219 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10220 Add -lz to LIBS.
10221 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10222 * top.c (print_gdb_configuration): Remove --with-zlib and
10223 --without-zlib.
10224 * config.in: Regenerated.
10225 * configure: Likewise.
10226
d33279b3
AT
102272015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10228
10229 * NEWS: Mention info os cpus support.
10230 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10231 (struct osdata_type): Add cpus entry, reorder the entries in
10232 alphabetical order.
10233
71b30f27
MK
102342015-03-31 Matthias Klose <doko@ubuntu.com>
10235
10236 * compile/compile.c (compile_to_object): Allow triplets with or
10237 without vendor set.
10238
13ce9222
DE
102392015-03-30 Doug Evans <dje@google.com>
10240
10241 PR c++/18141
10242 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10243 klass in VAR_DOMAIN.
10244
20f796c9
GB
102452015-03-30 Gary Benson <gbenson@redhat.com>
10246
10247 * remote.c (remote_mourn_1): Remove function. Update all callers
10248 to use remote_mourn.
10249 (extended_remote_mourn_1): Remove function. Update all callers
10250 to use extended_remote_mourn.
10251 (extended_remote_attach_1): Remove function. Update all callers
10252 to use extended_remote_attach.
10253
49d45b20
JB
102542015-03-28 James Bowman <james.bowman@ftdichip.com>
10255
10256 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10257 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10258 (ALLDEPFILES): Add ft32-tdep.c.
10259 * configure.tgt: Add FT32 entry.
10260 * ft32-tdep.c: New file, FT32 target-dependent code.
10261 * ft32-tdep.h: New file, FT32 target-dependent code.
10262
1c4ff080
JK
102632015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10264
10265 Revert:
10266 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10267 Code cleanup.
10268 * printcmd.c (print_command_1): Move expr variable scope.
10269
79498702
JB
102702015-03-27 Joel Brobecker <brobecker@adacore.com>
10271
10272 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10273
ce9c0ca1
AK
102742015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10275
10276 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10277 sections.
10278
429e1e81
JB
102792015-03-26 Joel Brobecker <brobecker@adacore.com>
10280
10281 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10282 exception raised while parsing the probe arguments.
10283 Force parsing to be done using the C language parser.
10284 * expression.h (parse_expression_with_language): Declare.
10285 * parse.c (parse_expression_with_language): New function.
10286
4593441b
JT
102872015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10288
10289 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10290
ff908ebf
AW
102912015-03-26 Andy Wingo <wingo@igalia.com>
10292
10293 PR symtab/18148
10294 * dwarf2read.c (struct partial_die_info): Add has_const_value
10295 member.
10296 (add_partial_symbol): Don't punt on symbols that have const_value
10297 attributes.
10298 (read_partial_die): Detect DW_AT_const_value.
10299
f30d5c78
JK
103002015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 Code cleanup.
10303 * printcmd.c (print_command_1): Move expr variable scope.
10304
8d89f51a
JK
103052015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10306
10307 Code cleanup.
10308 * printcmd.c (validate_format): Make the parameter cmdname const.
10309
0b736949
DB
103102015-03-26 Don Breazeal <donb@codesourcery.com>
10311
10312 * remote.c (_initialize_remote): Update comment.
10313
20d35291
PA
103142015-03-26 Pedro Alves <palves@redhat.com>
10315 Jon TURNEY <jon.turney@dronecode.org.uk>
10316
10317 * coffread.c (coff_symfile_read): When constructing the name of an
10318 import stub symbol from import symbol for amd64, only skip the
10319 char after _imp_ if the target is underscored (like i386) and the
10320 char is indeed the target's leading char.
10321
6a3753b3
PA
103222015-03-25 Pedro Alves <palves@redhat.com>
10323
10324 * target.h <to_async>: Replace 'callback' and 'context' parameters
10325 with boolean 'enable' parameter.
10326 (target_async): Replace CALLBACK and CONTEXT parameters with
10327 boolean ENABLE parameter.
10328 * inf-loop.c (inferior_event_handler): Adjust.
10329 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10330 (linux_nat_resume): Adjust.
10331 (async_client_callback, async_client_context): Delete.
10332 (handle_target_event): Call inferior_event_handler directly.
10333 (linux_nat_async): Replace 'callback' and 'context' parameters
10334 with boolean 'enable' parameter. Adjust. Remove references to
10335 async_client_callback and async_client_context.
10336 (linux_nat_close): Adjust.
10337 * record-btrace.c (record_btrace_async): Replace 'callback' and
10338 'context' parameters with boolean 'enable' parameter. Adjust.
10339 (record_btrace_resume): Adjust.
10340 * record-full.c (record_full_async): Replace 'callback' and
10341 'context' parameters with boolean 'enable' parameter. Adjust.
10342 (record_full_resume, record_full_core_resume): Adjust.
10343 * remote.c (struct remote_state) <async_client_callback,
10344 async_client_context>: Delete fields.
10345 (remote_start_remote, extended_remote_attach_1, remote_resume)
10346 (extended_remote_create_inferior): Adjust.
10347 (remote_async_serial_handler): Call inferior_event_handler
10348 directly.
10349 (remote_async): Replace 'callback' and 'context' parameters with
10350 boolean 'enable' parameter. Adjust.
10351 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10352 Adjust.
10353 * target-delegates.c: Regenerate.
10354
1c4b552b
GB
103552015-03-25 Gary Benson <gbenson@redhat.com>
10356 Pedro Alves <palves@redhat.com>
10357
10358 * target.c (fileio_ft_t): New typedef, define object vector.
10359 (fileio_fhandles): New static variable.
10360 (is_closed_fileio_fh): New macro.
10361 (lowest_closed_fd): New static variable.
10362 (acquire_fileio_fd): New function.
10363 (release_fileio_fd): Likewise.
10364 (fileio_fd_to_fh): New macro.
10365 (target_fileio_open): Wrap the file descriptor on success.
10366 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10367 (target_fileio_pread): Likewise.
10368 (target_fileio_close): Likewise.
10369
a25d8bf9
PA
103702015-03-24 Pedro Alves <palves@redhat.com>
10371
10372 * thread.c (thread_apply_all_command): Take exited threads into
10373 account.
10374
44a1ee51
PA
103752015-03-24 Pedro Alves <palves@redhat.com>
10376
10377 * infrun.c (resume, proceed): Mention
10378 switch_back_to_stepped_thread, not switch_back_to_stepping.
10379
f3263aa4
PA
103802015-03-24 Pedro Alves <palves@redhat.com>
10381
10382 * infrun.c (user_visible_resume_ptid): Rewrite going from
10383 most-locked to unlocked instead of the opposite. Move comment ...
10384 * infrun.h (user_visible_resume_ptid): ... here.
10385
2bf6fb9d
PA
103862015-03-24 Pedro Alves <palves@redhat.com>
10387
10388 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10389 to resume the event lwp. Use the lwp's ptid instead of the passed
10390 in (maybe wildcard) ptid.
10391 (stop_wait_callback): Tweak debug log output.
10392 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10393 TRAP_TRACE.
10394 (linux_nat_filter_event): In debug output, distinguish a
10395 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10396 before trying to resume the lwp.
10397
283a9958
JB
103982015-03-24 Joel Brobecker <brobecker@adacore.com>
10399
10400 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10401 pointer indirection.
10402 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10403 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10404
93a8e227
JB
104052015-03-24 Joel Brobecker <brobecker@adacore.com>
10406
10407 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10408 Renames DYN_ATTR_DATA_LOCATION.
10409 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10410 DYN_ATTR_DATA_LOCATION.
10411 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10412 instead of DYN_ATTR_DATA_LOCATION.
10413
64ce06e4
PA
104142015-03-24 Pedro Alves <palves@redhat.com>
10415
10416 * breakpoint.c (until_break_command): Adjust call to proceed.
10417 * gdbthread.h (struct thread_control_state) <stepping_command>:
10418 New field.
10419 * infcall.c (run_inferior_call): Adjust call to proceed.
10420 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10421 Adjust calls to proceed.
10422 (set_step_frame): Set the current thread's step_start_function
10423 here.
10424 (step_once): Adjust calls to proceed.
10425 (jump_command, signal_command, until_next_command)
10426 (finish_backward, finish_forward, proceed_after_attach_callback)
10427 (attach_command_post_wait): Adjust calls to proceed.
10428 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10429 (do_target_resume): New function, factored out from ...
10430 (resume): ... here. Remove 'step' parameter. Instead, check
10431 currently_stepping to determine whether the thread should be
10432 single-stepped.
10433 (proceed): Remove 'step' parameter and don't set the thread's
10434 step_start_function here. Adjust call to 'resume'.
10435 (handle_inferior_event): Adjust calls to 'resume'.
10436 (switch_back_to_stepped_thread): Use do_target_resume instead of
10437 'resume'.
10438 (keep_going): Adjust calls to 'resume'.
10439 * infrun.h (proceed): Remove 'step' parameter.
10440 (resume): Likewise.
10441 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10442 'resume'.
10443 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10444
856e7dd6
PA
104452015-03-24 Pedro Alves <palves@redhat.com>
10446
10447 * gdbthread.h (struct thread_control_state) <stepping_command>:
10448 New field.
10449 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10450 the thread's stepping_command field.
10451 * infrun.c (resume): Check the thread's stepping_command flag to
10452 determine which threads should be resumed. Rename 'entry_step'
10453 local to user_step.
10454 (clear_proceed_status_thread): Clear 'stepping_command'.
10455 (schedlock_applies): Change parameter type to struct thread_info
10456 pointer. Adjust.
10457 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10458 (switch_back_to_stepped_thread): Adjust calls to
10459 'schedlock_applies'.
10460 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10461
885eeb5b
PA
104622015-03-24 Pedro Alves <palves@redhat.com>
10463
10464 * infrun.c (step_start_function): Delete and ...
10465 * gdbthread.h (struct thread_control_state) <step_start_function>:
10466 ... now a field here.
10467 * infrun.c (clear_proceed_status_thread): Clear the thread's
10468 step_start_function.
10469 (proceed, process_event_stop_test, print_stop_event): Adjust.
10470
3333f03a
PA
104712015-03-24 Pedro Alves <palves@redhat.com>
10472
10473 * infrun.c (proceed): No longer handle negative step.
10474
369f6daa
GB
104752015-03-24 Gary Benson <gbenson@redhat.com>
10476
10477 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10478 (x86_linux_prepare_to_resume): Likewise.
10479 * x86-linux-nat.c (x86_linux_new_thread):
10480 Moved to nat/x86-linux.c.
10481 (x86_linux_prepare_to_resume): Likewise.
10482 * nat/x86-linux.c (x86_linux_new_thread): New function.
10483 (x86_linux_prepare_to_resume): Likewise.
10484
8e5d4070
GB
104852015-03-24 Gary Benson <gbenson@redhat.com>
10486
10487 * nat/x86-linux-dregs.h: New file.
10488 * nat/x86-linux-dregs.c: Likewise.
10489 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10490 (x86-linux-dregs.o): New rule.
10491 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10492 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10493 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10494 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10495 (x86_linux_dr_get): Likewise.
10496 (x86_linux_dr_set): Likewise.
10497 (x86_linux_dr_get_addr): Likewise.
10498 (x86_linux_dr_get_control): Likewise.
10499 (x86_linux_dr_get_status): Likewise.
10500 (update_debug_registers_callback): Likewise.
10501 (x86_linux_dr_set_control): Likewise.
10502 (x86_linux_dr_set_addr): Likewise.
10503 (x86_linux_update_debug_registers): Likewise.
10504
2b95d440
GB
105052015-03-24 Gary Benson <gbenson@redhat.com>
10506
10507 * x86-linux-nat.c (x86_linux_update_debug_registers):
10508 New function, factored out from...
10509 (x86_linux_prepare_to_resume): ...this.
10510
14b0bc68
GB
105112015-03-24 Gary Benson <gbenson@redhat.com>
10512
10513 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10514 (x86_linux_dr_set): Likewise.
10515 (x86_linux_dr_get_addr): Likewise.
10516 (x86_linux_dr_get_control): Likewise.
10517 (x86_linux_dr_get_status): Likewise.
10518 (update_debug_registers_callback): Likewise.
10519 (x86_linux_dr_set_control): Likewise.
10520 (x86_linux_dr_set_addr): Likewise.
10521 (x86_linux_prepare_to_resume): Likewise.
10522 (x86_linux_new_thread): Likewise.
10523
5dfe6ca8
GB
105242015-03-24 Gary Benson <gbenson@redhat.com>
10525
10526 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10527 (x86_linux_new_thread): Rename argument.
10528
4b134ca1
GB
105292015-03-24 Gary Benson <gbenson@redhat.com>
10530
10531 * nat/x86-linux.h: New file.
10532 * nat/x86-linux.c: Likewise.
10533 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10534 (x86-linux.o): New rule.
10535 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10536 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10537 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10538 (lwp_set_arch_private_info): New declaration.
10539 (lwp_arch_private_info): Likewise.
10540 * linux-nat.c (lwp_set_arch_private_info): New function.
10541 (lwp_arch_private_info): Likewise.
10542 * x86-linux-nat.c: Include nat/x86-linux.h.
10543 (arch_lwp_info): Removed structure.
10544 (update_debug_registers_callback):
10545 Use lwp_set_debug_registers_changed.
10546 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10547 and lwp_set_debug_registers_changed.
10548 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10549
cff068da
GB
105502015-03-24 Gary Benson <gbenson@redhat.com>
10551
10552 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10553 (lwp_is_stopped): Likewise.
10554 (lwp_stop_reason): Likewise.
10555 * linux-nat.c (ptid_of_lwp): New function.
10556 (lwp_is_stopped): Likewise.
10557 (lwp_is_stopped_by_watchpoint): Likewise.
10558 * x86-linux-nat.c (update_debug_registers_callback):
10559 Use lwp_is_stopped.
10560 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10561 lwp_stop_reason.
10562
b2f7c7e8
GB
105632015-03-24 Gary Benson <gbenson@redhat.com>
10564
10565 * linux-nat.h (linux_stop_lwp): Move declaration to...
10566 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10567
6d4ee8c6
GB
105682015-03-24 Gary Benson <gbenson@redhat.com>
10569
10570 * linux-nat.h: Include nat/linux-nat.h.
10571 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10572 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10573 (iterate_over_lwps_ftype): New typedef.
10574 (iterate_over_lwps): New declaration.
10575 * linux-nat.h (iterate_over_lwps): Update comment. Use
10576 iterate_over_lwps_ftype. Update callback return value check.
10577
70a0bb6b
GB
105782015-03-24 Gary Benson <gbenson@redhat.com>
10579
10580 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10581 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10582
7b669087
GB
105832015-03-24 Gary Benson <gbenson@redhat.com>
10584
10585 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10586 * linux-nat.c (current_lwp_ptid): New function.
10587 * x86-linux-nat.c: Include nat/linux-nat.h.
10588 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10589 (x86_linux_dr_get_control): Likewise.
10590 (x86_linux_dr_get_status): Likewise.
10591 (x86_linux_dr_set_control): Likewise.
10592 (x86_linux_dr_set_addr): Likewise.
10593
15630549
AT
105942015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10595
10596 PR breakpoints/16466
10597 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10598
8a4506c0
JB
105992015-03-23 Joel Brobecker <brobecker@adacore.com>
10600
10601 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10602 * ser-unix.c (hardwire_setparity): Likewise.
10603
236af5e3
YG
106042015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10605
10606 * NEWS: Mention set/show serial parity command.
10607 * monitor.c (monitor_open): Call serial_setparity.
10608 * remote.c (remote_open_1): Likewise.
10609 * ser-base.c (ser_base_serparity): New function.
10610 * ser-base.h (ser_base_setparity): Add declaration.
10611 * ser-go32.c (dos_ops): Set "setparity" field.
10612 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10613 state.Parity.
10614 (ser_windows_setparity): New function.
10615 (hardwire_ops): Add ser_windows_setparity.
10616 (tty_ops): Add NULL for setparity field.
10617 (pipe_ops): Add ser_base_setparity.
10618 (tcp_ops): Likewise.
10619 * ser-pipe.c (pipe_ops): Likewise.
10620 * ser-tcp.c (tcp_ops): Likewise.
10621 * ser-unix.c (hardwire_setparity): Add declaration.
10622 (hardwire_raw): Don't reset PARENB flag.
10623 (hardwire_setparity): New function.
10624 (hardwire_ops): Add hardwire_setparity.
10625 * serial.c (serial_setparity): New function.
10626 (serial_parity): New global.
10627 (parity_none, parity_odd, parity_even, parity_enums, parity):
10628 New static globals.
10629 (set_parity): New function.
10630 (_initialize_serial): Add set/show serial parity commands.
10631 * serial.h (GDBPARITY_NONE): Define.
10632 (GDBPARITY_ODD): Define.
10633 (GDBPARITY_EVEN): Define.
10634 (serial_setparity) Add declaration.
10635 (struct serial_ops): Add setparity field.
10636 * target.h (serial_parity): Add declaration.
10637
32b40af9
KS
106382015-03-23 Keith Seitz <keiths@redhat.com>
10639
10640 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10641
693dca06
KS
106422015-03-23 Keith Seitz <keiths@redhat.com>
10643
10644 * breakpoint.c (parse_breakpoint_sals): Use
10645 linespec_lexer_lex_keyword to ascertain if the user specified
10646 a NULL location.
10647 * linespec.c [IF_KEYWORD_INDEX]: Define.
10648 (linespec_lexer_lex_keyword): Export.
10649 (struct ls_parser) <keyword_ok>: Remove.
10650 A keyword is only a keyword if not followed by another keyword.
10651 (linespec_lexer_lex_one): Remove keyword_ok handling.
10652 Add comment explaining why the parsing stream is not advanced
10653 when a keyword is seen.
10654 (parse_linespec): Remove parser->keyword_ok.
10655 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10656
7e993ebf
KS
106572015-03-23 Keith Seitz <keiths@redhat.com>
10658
10659 PR gdb/18021
10660 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10661 if we find a static method with DW_AT_vtable_elem_location.
10662
b1a0f704
EZ
106632015-03-21 Eli Zaretskii <eliz@gnu.org>
10664
10665 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10666 before the second loop, to avoid undefined behavior. Reported by
10667 Anton Blanchard <anton@samba.org>.
10668
d9823cbb
KB
106692015-03-20 Keven Boell <keven.boell@intel.com>
10670
10671 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10672 data_location usage to linked list.
10673 (resolve_dynamic_type_internal): Adapt data_location to
10674 linked list.
10675 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10676 (copy_type_recursive, copy_type): Add copy of linked list.
10677 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10678 (struct dynamic_prop_list): New struct.
10679 * dwarf2read.c (set_die_type): Set data_location data.
10680
2e7bf1d7
PA
106812015-03-20 Pedro Alves <palves@redhat.com>
10682
10683 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10684 inner block and make it const.
10685 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10686
7a26bd4d
PA
106872015-03-20 Pedro Alves <palves@redhat.com>
10688
10689 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10690 * breakpoint.h (set_breakpoint_condition): Update declaration.
10691
cd46431b
PA
106922015-03-20 Pedro Alves <palves@redhat.com>
10693
10694 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10695
e28566f7
PA
106962015-03-20 Pedro Alves <palves@redhat.com>
10697
10698 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10699
f6fc92f6
PA
107002015-03-20 Pedro Alves <palves@redhat.com>
10701
10702 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10703
c32ed3ef
PA
107042015-03-20 Pedro Alves <palves@redhat.com>
10705
10706 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10707 (nto_init_solib_absolute_prefix): Likewise.
10708
53e78085
PA
107092015-03-20 Pedro Alves <palves@redhat.com>
10710
10711 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10712 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10713
bc23328c
JK
107142015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10715
10716 * config/djgpp/README: Remove gdb.hp.
10717
e8ffc436
YQ
107182015-03-20 Yao Qi <yao.qi@linaro.org>
10719
10720 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10721 set_gdbarch_cannot_step_breakpoint.
10722
23f238d3
PA
107232015-03-19 Pedro Alves <palves@redhat.com>
10724
10725 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10726 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10727 instead call perror_with_name.
10728 (check_ptrace_stopped_lwp_gone): New function.
10729 (linux_resume_one_lwp): Reimplement as wrapper around
10730 linux_resume_one_lwp_throw that swallows errors if the LWP is
10731 gone.
10732 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10733 swallows errors if the LWP is gone. Use
10734 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10735
eb54c8bf
PA
107362015-03-19 Pedro Alves <palves@redhat.com>
10737
10738 * linux-nat.c (status_callback): Return early if the LWP has no
10739 status pending.
10740
b90fc188
PA
107412015-03-19 Pedro Alves <palves@redhat.com>
10742
10743 * linux-nat.c (select_event_lwp_callback): Update comment to no
10744 longer mention SIGTRAP.
10745
670f82d4
TG
107462015-03-18 Tristan Gingold <gingold@adacore.com>
10747
72f4393d
L
10748 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10749 redirection code to ...
10750 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10751 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 10752
464b0089
GB
107532015-03-18 Gary Benson <gbenson@redhat.com>
10754
10755 (remote_protocol_features): Remove the "vFile:fstat" feature.
10756 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10757
f68f11b7
YQ
107582015-03-11 Yao Qi <yao.qi@linaro.org>
10759
10760 PR tdep/18107
10761 * aarch64-linux-tdep.c: Include xml-syscall.h
10762 (aarch64_linux_get_syscall_number): New function.
10763 (aarch64_linux_init_abi): Call
10764 set_gdbarch_get_syscall_number.
10765 * syscalls/aarch64-linux.xml: New file.
10766
393bd0c0
YG
107672015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10768
10769 * ser-base.h (ser_base_setstopbits): Change second argument name
10770 from "rate" to "num".
10771
7f3647e2
GB
107722015-03-17 Gary Benson <gbenson@redhat.com>
10773 Luke Allardyce <lukeallardyce@gmail.com>
10774
10775 PR gdb/18131
10776 * common/common-remote-fileio.h (sys/stat.h): New include.
10777 (stuct stat): Remove forward declaration.
10778
3ce5b6e2
JB
107792015-03-16 John Baldwin <jhb@FreeBSD.org>
10780
10781 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10782 before writing core register notes.
10783
d053f6be
YZ
107842015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10785 Pedro Alves <palves@redhat.com>
10786
10787 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10788 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10789 (tgoto): Wrap with extern "C".
10790
b1a921c8
PA
107912015-03-16 Pedro Alves <palves@redhat.com>
10792 Yuanhui Zhang <asmwarrior@gmail.com>
10793
10794 * stub-termcap.c (tputs): Change prototype.
10795
876d1cd7
YZ
107962015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10797 Pedro Alves <palves@redhat.com>
10798
10799 * windows-nat.c (struct thread_info_struct): Rename to ...
10800 (struct windows_thread_info_struct): ... this.
10801 (thread_info): Rename to ...
10802 (windows_thread_info): ... this.
10803 All users updated.
10804
0800b440
JK
108052015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10806 Pedro Alves <palves@redhat.com>
10807
10808 * NEWS: New Removed targets and native configurations.
10809
108102015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
10811
10812 Remove HPUX.
10813 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10814 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10815 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10816 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10817 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10818 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10819 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10820 hppa-hpux-tdep.c.
10821 * config/ia64/hpux.mh: Remove file.
10822 * config/pa/hpux.mh: Remove file.
10823 * configure: Rebuilt.
10824 * configure.ac (dlgetmodinfo, somread.o): Remove.
10825 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10826 (ia64-*-hpux*): Remove its float format exception.
10827 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10828 * hppa-hpux-nat.c: Remove file.
10829 * hppa-hpux-tdep.c: Remove file.
10830 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10831 Move them here from hppa-tdep.h
10832 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10833 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10834 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10835 Move them to hppa-tdep.c.
10836 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10837 declarations.
10838 * ia64-hpux-nat.c: Remove file.
10839 * ia64-hpux-tdep.c: Remove file.
10840 * ia64-hpux-tdep.h: Remove file.
10841 * inf-ttrace.c: Remove file.
10842 * inf-ttrace.h: Remove file.
10843 * solib-ia64-hpux.c: Remove file.
10844 * solib-ia64-hpux.h: Remove file.
10845 * solib-pa64.c: Remove file.
10846 * solib-pa64.h: Remove file.
10847 * solib-som.c: Remove file.
10848 * solib-som.h: Remove file.
10849 * somread.c: Remove file.
10850
25268153
JB
108512015-03-13 John Baldwin <jhb@FreeBSD.org>
10852
10853 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10854 * config.in: Regenerate.
10855 * configure: Regenerate.
10856 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 10857 define.
25268153
JB
10858 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10859 enumerate memory regions if present.
10860
773eacf5
JB
108612015-03-13 John Baldwin <jhb@FreeBSD.org>
10862
10863 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10864 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10865 expressions.
10866 (i386fbsd_sigtramp_p): Likewise.
10867
01b6bdb0
JB
108682015-03-12 John Baldwin <jhb@FreeBSD.org>
10869
10870 * MAINTAINERS (Write After Approval): Add John Baldwin.
10871
811a659a
GB
108722015-03-12 Gary Benson <gbenson@redhat.com>
10873
10874 * solib.c (_initialize_solib): Make "set/show sysroot" use
10875 add_setshow_optional_filename_cmd so it can be restored to
10876 empty after being set.
10877
10304ef3
SDJ
108782015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10879
10880 * Makefile.in (SFILES): New source break-catch-syscall.c.
10881 (COMMON_OBS): New object break-catch-syscall.o.
10882 * break-catch-syscall.c: New file.
10883 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10884 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10885 (struct syscall_catchpoint): Likewise.
10886 (dtor_catch_syscall): Likewise.
10887 (catch_syscall_inferior_data): Likewise.
10888 (struct catch_syscall_inferior_data): Likewise.
10889 (get_catch_syscall_inferior_data): Likewise.
10890 (catch_syscall_inferior_data_cleanup): Likewise.
10891 (insert_catch_syscall): Likewise.
10892 (remove_catch_syscall): Likewise.
10893 (breakpoint_hit_catch_syscall): Likewise.
10894 (print_it_catch_syscall): Likewise.
10895 (print_one_catch_syscall): Likewise.
10896 (print_mention_catch_syscall): Likewise.
10897 (print_recreate_catch_syscall): Likewise.
10898 (catch_syscall_breakpoint_ops): Likewise.
10899 (syscall_catchpoint_p): Likewise.
10900 (create_syscall_event_catchpoint): Likewise.
10901 (catch_syscall_split_args): Likewise.
10902 (catch_syscall_command_1): Likewise.
10903 (is_syscall_catchpoint_enabled): Likewise.
10904 (catch_syscall_enabled): Likewise.
10905 (catching_syscall_number): Likewise.
10906 (catch_syscall_completer): Likewise.
10907 (clear_syscall_counts): Likewise.
10908 (initialize_breakpoint_ops): Move initialization of syscall
10909 catchpoints to break-catch-syscall.c.
10910 (_initialize_breakpoint): Move code related to syscall catchpoints
10911 to break-catch-syscall.c.
10912
badd37ce
SDJ
109132015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10914
10915 * breakpoint.c (breakpoint_find_if): New function.
10916 * breakpoint.h (breakpoint_find_if): New prototype.
10917
0a93529c
GB
109182015-03-11 Gary Benson <gbenson@redhat.com>
10919
10920 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10921 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10922 (remote_fileio_to_host_ulong): Likewise.
10923 (remote_fileio_to_host_mode): Likewise.
10924 (remote_fileio_to_host_time): Likewise.
10925 (remote_fileio_to_host_stat): Likewise.
10926 * remote.c (PACKET_vFile_fstat): New enum value.
10927 (remote_protocol_features): Register the "vFile:fstat" feature.
10928 (remote_hostio_fstat): New function.
10929 (remote_bfd_iovec_stat): Use the above.
10930 (_initialize_remote): Register new "set/show remote
10931 hostio-fstat-packet" command.
10932 * symfile.c (separate_debug_file_exists): Update comment.
10933 * NEWS: Announce new vFile:fstat packet.
10934
791c0056
GB
109352015-03-11 Gary Benson <gbenson@redhat.com>
10936
10937 * common/common-remote-fileio.h: New file.
10938 * common/common-remote-fileio.c: Likewise.
10939 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10940 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10941 (COMMON_OBS): Add common-remote-fileio.o.
10942 (common-remote-fileio.o): New rule.
10943 * remote-fileio.h (common-remote-fileio.h): New include.
10944 * remote-fileio.c (gdb/fileio.h): Do not include.
10945 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10946 (remote_fileio_to_fio_uint): Likewise.
10947 (remote_fileio_to_fio_time): Likewise.
10948 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10949 (remote_fileio_to_fio_mode): Likewise.
10950 (remote_fileio_to_fio_ulong): Likewise.
10951 (remote_fileio_to_fio_stat): Likewise.
10952
1390d0ef
AW
109532015-03-11 Andy Wingo <wingo@igalia.com>
10954
10955 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10956 we were checking the cached type, not the cached dynamic type.
10957
84a4591a
AW
109582015-03-11 Andy Wingo <wingo@igalia.com>
10959
10960 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10961 other strings, as these are on the GC'd heap, and will be
10962 collected along with the smob.
10963
85642ba0
AW
109642015-03-11 Andy Wingo <wingo@igalia.com>
10965
10966 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10967 (objfile_functions): Bind gdbscm_objfile_progspace to
10968 objfile-progspace.
10969 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10970
92fab5a6
AW
109712015-03-11 Andy Wingo <wingo@igalia.com>
10972
10973 * guile/guile.c (_initialize_guile): Disable automatic
10974 finalization, if Guile offers us that possibility.
10975 * guile/guile.c (call_initialize_gdb_module):
10976 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10977 finalizers in appropriate places.
10978 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10979 scm_set_automatic_finalization_enabled.
10980 * configure: Regenerated.
10981
f054145e
AA
109822015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10983
10984 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10985 SAL, if possible.
10986
18396193
AA
109872015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10988
10989 * s390-linux-nat.c (struct arch_lwp_info): New.
10990 (s390_fix_watch_points): Rename to...
10991 (s390_prepare_to_resume): ...this. Skip the PER info update
10992 unless the watch points have changed.
10993 (s390_refresh_per_info, s390_new_thread): New functions.
10994 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10995 s390_fix_watch_points.
10996 (s390_remove_watchpoint): Likewise.
10997 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10998 Register s390_prepare_to_resume.
10999
9eb1356e
PA
110002015-03-09 Pedro Alves <palves@redhat.com>
11001
11002 Revert:
11003 2015-03-07 Pedro Alves <palves@redhat.com>
11004 * common/gdb_socket.h: New file.
11005 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11006 sys/socket.h.
11007 (net_open): Use union gdb_sockaddr_u.
11008
aac331e4
PA
110092015-03-07 Pedro Alves <palves@redhat.com>
11010
11011 * configure.ac (build_warnings): Move -Wmissing-prototypes
11012 -Wdeclaration-after-statement -Wmissing-parameter-type
11013 -Wold-style-declaration -Wold-style-definition to the C-specific
11014 set.
11015 * configure: Regenerate.
11016
366c75fc
PA
110172015-03-07 Pedro Alves <palves@redhat.com>
11018
11019 * common/gdb_socket.h: New file.
11020 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11021 sys/socket.h.
11022 (net_open): Use union gdb_sockaddr_u.
11023
72df25b2
PA
110242015-03-07 Pedro Alves <palves@redhat.com>
11025
11026 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11027 (exceptions_state_mc_action_iter)
11028 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11029 Don't define.
11030 [__cplusplus] (try_scope_depth): New global.
11031 [__cplusplus] (exception_try_scope_entry)
11032 (exception_try_scope_exit, gdb_exception_sliced_copy)
11033 (exception_rethrow): New functions.
11034 (throw_exception): In C++ mode, throw
11035 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11036 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11037 (throw_it): In C++ mode, use try_scope_depth.
11038 * common/common-exceptions.h [!__cplusplus]
11039 (exceptions_state_mc_action_iter)
11040 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11041 Don't declare.
11042 [__cplusplus] (exception_try_scope_entry)
11043 (exception_try_scope_exit, exception_rethrow): Declare.
11044 [__cplusplus] (struct exception_try_scope): New struct.
11045 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11046 C++ exceptions.
11047 (struct gdb_exception_RETURN_MASK_ALL)
11048 (struct gdb_exception_RETURN_MASK_ERROR)
11049 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11050
284e6217
PA
110512015-03-07 Pedro Alves <palves@redhat.com>
11052
11053 * main.c (handle_command_errors): Remove volatile qualifier from
11054 parameter.
11055
6c63c96a
PA
110562015-03-07 Pedro Alves <palves@redhat.com>
11057
11058 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11059 TRY and CATCH.
11060 * gdbtypes.c (safe_parse_type): Remove empty line.
11061 (types_deeply_equal):
11062 * guile/scm-frame.c (gdbscm_frame_name):
11063 * linux-thread-db.c (find_new_threads_once):
11064 * python/py-breakpoint.c (bppy_get_commands):
11065 * record-btrace.c (record_btrace_insert_breakpoint)
11066 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11067 (record_btrace_start_replaying): Adjust to avoid code between TRY
11068 and CATCH.
11069
492d29ea
PA
110702015-03-07 Pedro Alves <palves@redhat.com>
11071
11072 * common/common-exceptions.c (struct catcher) <exception>: No
11073 longer a pointer to volatile exception. Now an exception value.
11074 <mask>: Delete field.
11075 (exceptions_state_mc_init): Remove all parameters. Adjust.
11076 (exceptions_state_mc): No longer pop the catcher here.
11077 (exceptions_state_mc_catch): New function.
11078 (throw_exception): Adjust.
11079 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11080 all parameters.
11081 (exceptions_state_mc_catch): Declare.
11082 (TRY_CATCH): Rename to ...
11083 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11084 (CATCH, END_CATCH): New.
11085 All callers adjusted.
11086
ece957c8
TT
110872015-03-07 Tom Tromey <tromey@redhat.com>
11088
11089 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11090
7556d4a4
PA
110912015-03-07 Pedro Alves <palves@redhat.com>
11092
11093 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11094 (amd64_epilogue_frame_cache): Normal exception handling code.
11095 * break-catch-throw.c (check_status_exception_catchpoint)
11096 (re_set_exception_catchpoint): Ditto.
11097 * cli/cli-interp.c (safe_execute_command):
11098 * cli/cli-script.c (script_from_file): Ditto.
11099 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11100 Ditto.
11101 * compile/compile-object-run.c (compile_object_run): Ditto.
11102 * cp-abi.c (baseclass_offset): Ditto.
11103 * cp-valprint.c (cp_print_value): Ditto.
11104 * exceptions.c (catch_exceptions_with_msg):
11105 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11106 * frame.c (get_frame_address_in_block_if_available): Ditto.
11107 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11108 (i386_sigtramp_frame_cache): Ditto.
11109 * infcmd.c (post_create_inferior): Ditto.
11110 * linespec.c (parse_linespec, find_linespec_symbols):
11111 * p-valprint.c (pascal_object_print_value): Ditto.
11112 * parse.c (parse_expression_for_completion): Ditto.
11113 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11114 * remote.c (remote_get_noisy_reply): Ditto.
11115 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11116 * solib-svr4.c (solib_svr4_r_map): Ditto.
11117
f873665f 111182015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
11119
11120 * common/common-utils.h (startswith): New inline function.
11121 All places where this logic was used updated to use the above.
11122
68901c4d
PA
111232015-03-05 Pedro Alves <palves@redhat.com>
11124
11125 PR gdb/18002
11126 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11127 after reading the breakpoint's shadow memory.
11128
2dcb2b1a
MK
111292015-03-05 Mark Kettenis <kettenis@gnu.org>
11130
11131 * hppabsd-nat.c: Remove file.
11132 * hppaobsd-nat.c: New file.
11133 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11134 hppaobsd-nat.c.
11135 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11136 hppaobsd-nat.o.
11137
527a273a
PA
111382015-03-04 Pedro Alves <palves@redhat.com>
11139
11140 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11141 (target_decr_pc_after_break): Delete declaration.
11142 * target.c (default_target_decr_pc_after_break)
11143 (target_decr_pc_after_break): Delete.
11144 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11145 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11146 * linux-thread-db.c (check_event): Likewise.
11147 * infrun.c (adjust_pc_after_break): Likewise.
11148 * darwin-nat.c (cancel_breakpoint): Likewise.
11149 * aix-thread.c (aix_thread_wait): Likewise.
11150 * target-delegates.c: Regenerate.
11151
faf09f01
PA
111522015-03-04 Pedro Alves <palves@redhat.com>
11153
11154 * linux-nat.c (save_sigtrap): Check for breakpoints before
11155 checking watchpoints.
11156 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11157 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11158 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11159 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11160 (linux_nat_stopped_by_sw_breakpoint)
11161 (linux_nat_supports_stopped_by_sw_breakpoint)
11162 (linux_nat_stopped_by_hw_breakpoint)
11163 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11164 (linux_nat_wait_1): Don't re-increment the PC if relying on
11165 SIGTRAP's siginfo->si_code.
11166 (linux_nat_add_target): Install new target methods.
11167 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11168 offset if the target already adjusted the PC.
11169 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11170 (GDB_ARCH_TRAP_BRKPT): New.
11171 (TRAP_HWBKPT): Define if not already defined.
11172
f7e6eed5
PA
111732015-03-04 Pedro Alves <palves@redhat.com>
11174
11175 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11176 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11177 Delete field.
11178 <stop_reason>: New field.
11179 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11180 (packet_set_cmd_state): New function.
11181 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11182 features.
11183 (remote_query_supported): If not disabled with the corresponding
11184 "set remote foo-packet" command, report support for the swbreak
11185 and hwbreak features.
11186 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11187 field.
11188 <stop_reason>: New field.
11189 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11190 (remote_wait_as): Adjust.
11191 (remote_stopped_by_sw_breakpoint)
11192 (remote_supports_stopped_by_sw_breakpoint)
11193 (remote_stopped_by_hw_breakpoint)
11194 (remote_supports_stopped_by_hw_breakpoint): New functions.
11195 (remote_stopped_by_watchpoint): New function.
11196 (init_remote_ops): Install them.
11197 (_initialize_remote): Register new "set/show remote
11198 swbreak-feature-packet" and "set/show remote
11199 swbreak-feature-packet" commands.
11200
9e8915c6
PA
112012015-03-04 Pedro Alves <palves@redhat.com>
11202
11203 * btrace.h: Include target/waitstatus.h.
11204 (struct btrace_thread_info) <stop_reason>: New field.
11205 * record-btrace.c (record_btrace_step_thread): Use
11206 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11207 (record_btrace_decr_pc_after_break): Delete.
11208 (record_btrace_stopped_by_sw_breakpoint)
11209 (record_btrace_supports_stopped_by_sw_breakpoint)
11210 (record_btrace_stopped_by_hw_breakpoint)
11211 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
11212 (init_record_btrace_ops): Install them.
11213 * record-full.c (record_full_hw_watchpoint): Delete and replace
11214 with ...
11215 (record_full_stop_reason): ... this throughout.
11216 (record_full_exec_insn): Adjust.
11217 (record_full_wait_1): Adjust. No longer re-increment the PC.
11218 (record_full_wait_1): Adjust. Use
11219 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11220 (record_full_stopped_by_watchpoint): Adjust.
11221 (record_full_stopped_by_sw_breakpoint)
11222 (record_full_supports_stopped_by_sw_breakpoint)
11223 (record_full_supports_stopped_by_sw_breakpoint)
11224 (record_full_stopped_by_hw_breakpoint)
11225 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11226 (init_record_full_ops, init_record_full_core_ops): Install them.
11227 * record.c (record_check_stopped_by_breakpoint): New function.
11228 * record.h: Include target/waitstatus.h.
11229 (record_check_stopped_by_breakpoint): New declaration.
11230
15c66dd6
PA
112312015-03-04 Pedro Alves <palves@redhat.com>
11232
11233 enum lwp_stop_reason -> enum target_stop_reason
11234 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11235 (linux_nat_stopped_by_watchpoint, status_callback)
11236 (linux_nat_wait_1): Adjust.
11237 * linux-nat.h (enum lwp_stop_reason): Delete.
11238 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11239 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11240 * target/waitstatus.h (enum target_stop_reason): New.
11241
1cf4d951
PA
112422015-03-04 Pedro Alves <palves@redhat.com>
11243
11244 * breakpoint.c (need_moribund_for_location_type): New function.
11245 (bpstat_stop_status): Don't skipping checking moribund locations
11246 of breakpoint types which the target tell caused a stop.
11247 (program_breakpoint_here_p): New function, factored out from ...
11248 (bp_loc_is_permanent): ... this.
11249 (update_global_location_list): Don't create a moribund location if
11250 the target supports reporting stops of the type of the removed
11251 breakpoint.
11252 * breakpoint.h (program_breakpoint_here_p): New declaration.
11253 * infrun.c (adjust_pc_after_break): Return early if the target has
11254 already adjusted the PC. Add comments.
11255 (handle_signal_stop): If nothing explains a signal, and the target
11256 tells us the stop was caused by a software breakpoint, check if
11257 there's a breakpoint instruction in the memory. If so, adjust the
11258 PC before presenting the stop to the user. Otherwise, ignore the
11259 trap. If nothing explains a signal, and the target tells us the
11260 stop was caused by a hardware breakpoint, ignore the trap.
11261 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11262 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11263 to_supports_stopped_by_hw_breakpoint>: New fields.
11264 (target_stopped_by_sw_breakpoint)
11265 (target_supports_stopped_by_sw_breakpoint)
11266 (target_stopped_by_hw_breakpoint)
11267 (target_supports_stopped_by_hw_breakpoint): Define.
11268 * target-delegates.c: Regenerate.
11269
79639e11
PA
112702015-03-04 Pedro Alves <palves@redhat.com>
11271
11272 * infrun.c (follow_fork_inferior): Use the whole of the
11273 inferior_ptid and pending_follow.related_pid ptids instead of
11274 building ptids from the process components. Adjust verbose output
11275 to use target_pid_to_str.
11276 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11277 inferior_ptid and pending_follow.related_pid ptids instead of
11278 building ptids from the process components.
11279
e85e8e5e
MK
112802015-03-04 Mark Kettenis <kettenis@gnu.org>
11281
11282 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11283 (inf_ptrace_insert_fork_catchpoint): New function.
11284 (inf_ptrace_remove_fork_catchpoint): New function.
11285 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11286
87de11c0
AA
112872015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11288
11289 * s390-linux-tdep.c (s390_register_name): Return empty string
11290 instead of NULL for registers that shouldn't be visible.
11291
d851a69a
AA
112922015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11293
11294 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11295 XML file for 64-bit targets.
11296
b072f6c1
SM
112972015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11298
11299 * target.h (find_default_create_inferior): Remove declaration.
11300 (find_default_attach): Likewise.
11301
c1593e4f
PA
113022015-03-03 Pedro Alves <palves@redhat.com>
11303
11304 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11305 Use ptid_get_pid to get the overall process id when resuming all
11306 threads.
11307
90ad5e1d
PA
113082015-03-03 Pedro Alves <palves@redhat.com>
11309
11310 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11311 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11312 * inf-ptrace.c (get_ptrace_pid): New function.
11313 (inf_ptrace_resume): Use it.
11314 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11315 to the lower layer.
11316
d68e53f4
MM
113172015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11318
11319 * nat/linux-btrace.c: Include sys/utsname.h.
11320 (linux_determine_kernel_ptr_bits): New.
11321 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11322 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11323 ptr_bits.
11324
986b6601
MM
113252015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11326
11327 * btrace.c (ftrace_update_function): Treat return as tailcall for
11328 "_dl_runtime_resolve".
11329
ce0dfbea
MM
113302015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11331
11332 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11333 * btrace.c (ftrace_debug): Do not print the line range.
11334 (ftrace_skip_file, ftrace_update_lines): Remove.
11335 (ftrace_new_function): Remove lbegin and lend initialization.
11336 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11337 * record-btrace.c (btrace_compute_src_line_range): New.
11338 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11339
95e50b27
PA
113402015-03-02 Pedro Alves <palves@redhat.com>
11341
11342 * infrun.c (follow_exec): Delete all threads of the process except
11343 the event thread. Extended comments.
11344
00e474c2
JB
113452015-03-02 Joel Brobecker <brobecker@adacore.com>
11346
11347 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11348
cc7039d3
JB
113492015-03-02 Joel Brobecker <brobecker@adacore.com>
11350
11351 * utils.h: Remove <stdbool.h> #include.
11352 (producer_is_gcc): Change return type to "int".
11353 * utils.c (producer_is_gcc): Change return type to int.
11354 Return 1 instead of true, and 0 instead of false.
11355 Adjust function documentation accordingly.
11356
550bdf96
AA
113572015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11358
11359 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11360 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11361 present.
11362 (s390_linux_store_inferior_registers): Likewise.
11363 (s390_get_hwcap): Remove function. Embed its logic...
11364 (s390_read_description): ...here. Yield a target description with
11365 vector registers if applicable.
11366 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11367 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11368 "features/s390x-tevx-linux64.c".
11369 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11370 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11371 for "GNU/Linux-specific registers".
11372 (s390_dwarf_reg_r0l): New enum value.
11373 (s390_dwarf_reg_to_regnum): Support vector registers.
11374 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11375 of GPR lower halves.
11376 (regnum_is_vxr_full): New function.
11377 (s390_register_name): New function.
11378 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11379 f0-f15 and v0l-v15l.
11380 (s390_pseudo_register_type): Likewise.
11381 (s390_pseudo_register_read): Likewise.
11382 (s390_pseudo_register_write): Likewise.
11383 (s390_value_from_register): Account for the fact that values are
11384 placed left-justified in vector registers.
11385 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11386 the vector reggroup and omit them from the general reggroup.
11387 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11388 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11389 (s390_iterate_over_regset_sections): Add iterations for the two
11390 new vector regsets.
11391 (s390_core_read_description): Yield a target description with
11392 vector registers if applicable.
11393 (s390_gdbarch_init): Handle target descriptions with vector
11394 registers. Add "register_name" gdbarch method.
11395 (_initialize_s390_tdep): Call new tdesc initialization functions.
11396 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11397 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11398 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11399 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11400 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11401 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11402 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11403 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11404 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11405 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11406 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11407 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11408 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11409 (S390_NUM_REGS): Adjust value.
11410 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11411 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11412 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11413 * NEWS: Announce S/390 vector register support.
11414
446899e4
AA
114152015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11416
11417 * features/s390-tevx-linux64.xml: New file.
11418 * features/s390-vx-linux64.xml: New file.
11419 * features/s390-vx.xml: New file.
11420 * features/s390x-tevx-linux64.xml: New file.
11421 * features/s390x-vx-linux64.xml: New file.
11422 * features/Makefile (WHICH): Add s390-vx-linux64,
11423 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11424 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11425 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11426 macros.
11427 * features/s390-tevx-linux64.c: New generated file.
11428 * features/s390-vx-linux64.c: Likewise.
11429 * features/s390x-tevx-linux64.c: Likewise.
11430 * features/s390x-vx-linux64.c: Likewise.
11431 * regformats/s390-tevx-linux64.dat: Likewise.
11432 * regformats/s390-vx-linux64.dat: Likewise.
11433 * regformats/s390x-tevx-linux64.dat: Likewise.
11434 * regformats/s390x-vx-linux64.dat: Likewise.
11435
b7236fbe
DE
114362015-02-28 Doug Evans <xdje42@gmail.com>
11437
11438 * symtab.h (struct symtab) <next>: Fix comment.
11439
02e62830
SM
114402015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11441
11442 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11443 python_GdbMethods.
11444
bf36a1e7
PA
114452015-02-27 Pedro Alves <palves@redhat.com>
11446
11447 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11448
ad6aff7d
PA
114492015-02-27 Pedro Alves <palves@redhat.com>
11450
11451 * common/common-exceptions.h (exception_none): Declare.
11452 * common/common-exceptions.c (exception_none): Moved from
11453 exceptions.c.
11454 (exceptions_state_mc_init): Use exception_none.
11455 * exceptions.c (exception_none): Move to
11456 common/common-exceptions.c.
11457 * exceptions.h (exception_none): Move to
11458 common/common-exceptions.h.
11459
97c18565
PA
114602015-02-27 Pedro Alves <palves@redhat.com>
11461
11462 * main.c (catch_command_errors, catch_command_errors_const):
11463 Remove 'mask' argument. Adjust.
11464 (captured_main): Adjust callers.
11465
e992c591
PA
114662015-02-27 Pedro Alves <palves@redhat.com>
11467
11468 * python/python-internal.h: Include "extension-priv.h".
11469
64166036
PA
114702015-02-27 Pedro Alves <palves@redhat.com>
11471
11472 * breakpoint.h (enum print_stop_action): Move further up in the
11473 file.
11474
8a526fa6
PA
114752015-02-27 Pedro Alves <palves@redhat.com>
11476
11477 * gdbarch.sh: Include regcache.h.
11478 * gdbarch.h: Regenerate.
11479
0fa9c223
PA
114802015-02-27 Pedro Alves <palves@redhat.com>
11481
11482 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11483 Remove duplicate const.
11484 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11485 duplicate const.
11486
7cf99fb1
PA
114872015-02-27 Pedro Alves <palves@redhat.com>
11488
11489 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11490 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11491 * features/feature_to_c.sh: Tag the generated xml_builtin array
11492 with extern const in C++ mode.
11493
1424c16e
TT
114942015-02-27 Tom Tromey <tromey@redhat.com>
11495
11496 * minidebug.c (struct lzma_stream): Rename to ...
11497 (struct gdb_lzma_stream): ... this.
11498 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11499
10367c7c
PA
115002015-02-27 Pedro Alves <palves@redhat.com>
11501
11502 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11503 function.
11504 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11505 (mi_cmd_stack_list_variables): Use it.
11506
4180215b
PA
115072015-02-27 Pedro Alves <palves@redhat.com>
11508
11509 * x86-linux-nat.c (u_debugreg_offset): New function.
11510 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11511
2f56f7c3
PA
115122015-02-27 Pedro Alves <palves@redhat.com>
11513
11514 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11515 declaration.
11516 Include break-common.h.
11517
570dc176
TT
115182015-02-27 Tom Tromey <tromey@redhat.com>
11519 Pedro Alves <palves@redhat.com>
11520
11521 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11522 local used to iterate over enums.
11523 * completer.c (signal_completer): Likewise.
11524 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11525 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11526 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11527 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11528 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11529 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11530 * tui-wingeneral.c (tui_refresh_all): Likewise.
11531
68c14faa
PA
115322015-02-27 Pedro Alves <palves@redhat.com>
11533
11534 * target.h: Include "infrun.h".
11535
749bab01
PA
115362015-02-27 Pedro Alves <palves@redhat.com>
11537
11538 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11539
3c14e5a3
PA
115402015-02-27 Pedro Alves <palves@redhat.com>
11541
11542 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11543 (IPA_SYM): Use it.
11544 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11545
56000a98
PA
115462015-02-27 Pedro Alves <palves@redhat.com>
11547
11548 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11549 cli_mld_erase_entire_line, and make it extern "C".
11550 * common/common-defs.h (EXTERN_C): New.
11551 * completer.c (_rl_completion_prefix_display_length)
11552 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11553 out of gdb_display_match_list_1.
11554 (_rl_qsort_string_compare): Move declaration out of
11555 gdb_display_match_list_1, and make it extern "C".
11556 * defs.h (re_comp): Use EXTERN_C.
11557 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11558 and make it extern "C".
11559 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11560 and make it extern "C".
11561 (main): Move declaration out of maintenance_set_profile_cmd.
11562 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11563 EXTERN_C.
11564
bcabf420
PA
115652015-02-27 Pedro Alves <palves@redhat.com>
11566
11567 * python/python.c (GdbMethods): Rename to ...
11568 (python_GdbMethods): ... this and make extern.
11569 (GdbModuleDef): Rename to ...
11570 (python_GdbModuleDef): ... this and make extern.
11571
928dbe07
PA
115722015-02-27 Pedro Alves <palves@redhat.com>
11573
11574 * record-btrace.c (set_record_btrace_cmdlist)
11575 (show_record_btrace_cmdlist): Remove redefinitions.
11576
52059ffd
TT
115772015-02-27 Tom Tromey <tromey@redhat.com>
11578 Pedro Alves <palves@redhat.com>
11579
11580 * dwarf2-frame.c (enum cfa_how_kind, struct
11581 dwarf2_frame_state_reg_info): Move out of struct
11582 dwarf2_frame_state.
11583 * dwarf2read.c (struct tu_stats): Move out of struct
11584 dwarf2_per_objfile.
11585 (struct file_entry): Move out of struct line_header.
11586 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11587 typedef_field_list): Move out of struct field_info.
11588 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11589 Move out of struct dynamic_prop.
11590 (union type_owner, union field_location, struct field, struct
11591 range_bounds, union type_specific): Move out of struct main_type.
11592 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11593 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11594 (struct call_site_target, union call_site_parameter_u, struct
11595 call_site_parameter): Move out of struct call_site.
11596 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11597 m32c_prologue.
11598 (enum srcdest_kind): Move out of struct srcdest.
11599 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11600 * prologue-value.h (enum prologue_value_kind): Move out of struct
11601 prologue_value.
11602 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11603 gdbarch_tdep.
11604 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11605 out of struct field_info.
11606 * symfile.h (struct other_sections): Move out of struct
11607 section_addr_info.
11608 * symtab.c (struct symbol_cache_slot): Move out struct
11609 block_symbol_cache.
11610 * target-descriptions.c (enum tdesc_type_kind): Move out of
11611 typedef struct tdesc_type.
11612 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11613 struct tui_line_or_address.
11614 * value.c (enum internalvar_kind, union internalvar_data): Move
11615 out of struct internalvar.
11616 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11617 gdbarch_tdep.
11618
fe978cb0
PA
116192015-02-27 Tom Tromey <tromey@redhat.com>
11620 Pedro Alves <palves@redhat.com>
11621
11622 Rename symbols whose names are reserved C++ keywords throughout.
11623
3bc3d82a
PA
116242015-02-27 Pedro Alves <palves@redhat.com>
11625
11626 * Makefile.in (COMPILER): New, get it from autoconf.
11627 (COMPILE.pre, CC_LD): Use COMPILER.
11628 (CXX): Get from autoconf instead.
11629 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11630 * acinclude.m4: Include build-with-cxx.m4.
11631 * build-with-cxx.m4: New file.
11632 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11633 Disable -Werror by default if building in C++ mode.
11634 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11635 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11636 Run supported-warning-flags tests with the C++ compiler.
11637 Save/restore CXXFLAGS too.
11638 * configure: Regenerate.
11639
07697489
PA
116402015-02-27 Pedro Alves <palves@redhat.com>
11641
11642 * libiberty.m4: New file.
11643 * acinclude.m4: Include libiberty.m4.
11644 * configure.ac: Call libiberty_INIT.
11645 * config.in, configure: Regenerate.
11646
60abeae4
AA
116472015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11648
11649 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11650 31-bit targets, but 64-bit targets as well.
11651 (s390_gnu_triplet_regexp): New function.
11652 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11653 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11654 method.
11655
f44466fb 116562015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
11657
11658 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11659 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11660 from CONTEXT_DEBUGGER.
11661
0def5aaa
DE
116622015-02-26 Doug Evans <dje@google.com>
11663
11664 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11665 CHECK_TYPEDEF.
11666 (set_type_vptr_fieldno): Ditto.
11667 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11668 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11669
77b64a49
PA
116702015-02-26 Pedro Alves <palves@redhat.com>
11671
11672 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11673 * complaints.c (vcomplaint): Pass argument FMT directly to
11674 printf-like functions instead of complaint->fmt.
11675 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11676 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11677 * compile/compile-loc2c.c (pushf, unary, binary): Add
11678 ATTRIBUTE_PRINTF.
11679 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11680 to pushf.
11681 (BINARY): Pass string literal as format string to 'binary'.
11682 * compile/compile-object-load.c (link_callbacks_einfo): Add
11683 ATTRIBUTE_PRINTF.
11684 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11685
532f44ed
PA
116862015-02-26 Pedro Alves <palves@redhat.com>
11687
11688 * windows-termcap.c: Rename to ...
11689 * stub-termcap.c: ... this. Adjust header line.
11690 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11691 windows-termcap.c.
11692 * configure: Regenerate.
11693 * configure.ac: Refer to stub-termcap.o instead of
11694 windows-termcap.o.
11695 * gdb_curses.h: Mention stub-termcap.c instead of
11696 windows-termcap.c.
11697
081a1c2c
JK
116982015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11699
11700 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11701 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11702
2f41223f
AT
117032015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11704
11705 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11706
80c57053
JK
117072015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11708
11709 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11710 bfd_canonicalize_symtab.
11711
cf424aef
JB
117122015-02-25 John Baldwin <jhb@FreeBSD.org>
11713
11714 * amd64fbsd-nat.c: Include sys/user.h.
11715 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11716 instead of KERN_PS_STRINGS to locate the signal trampoline.
11717 * i386fbsd-nat.c: Include sys/user.h.
11718 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11719 instead of KERN_PS_STRINGS to locate the signal trampoline.
11720 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11721 (amd64fbsd_sigtramp_p): New.
11722 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11723 longer set default values.
11724 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11725 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11726 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11727 (i386fbsd_freebsd4_sigtramp_start)
11728 (i386fbsd_freebsd4_sigtramp_middle)
11729 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11730 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11731 (i386fbsd_sigtramp_p): New.
11732 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11733 longer set default values.
11734 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11735
c5cb74ee
JB
117362015-02-25 John Baldwin <jhb@freebsd.org>
11737
11738 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11739 get_frame_register instead of frame_unwind_register_unsigned.
11740
17487d85
JK
117412015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11742
11743 PR build/18033
11744 * compile/compile-c-support.c (c_compute_program): Change // comment.
11745 * compile/compile-object-load.c (setup_sections): Change // comment.
11746
9357a9e6
JB
117472015-02-26 Joel Brobecker <brobecker@adacore.com>
11748
11749 PR build/18033:
11750 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11751
1f10ba14
PA
117522015-02-23 Pedro Alves <palves@redhat.com>
11753
11754 * remote.c (skip_to_semicolon): New function.
11755 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11756 special case the stop reasons that look like hex numbers
11757 upfront. Instead handle real register numbers after matching
11758 all the known stop reasons.
11759
96553a0c
DE
117602015-02-21 Doug Evans <dje@google.com>
11761
11762 PR c++/17976, symtab/17821
11763 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11764 is_in_anonymous. All callers updated.
11765 (find_symbol_in_baseclass): Ditto.
11766 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11767 for symbols in an anonymous namespace.
11768 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11769 DW_AT_name directly.
11770 (dwarf2_name): Convert missing namespace name to
11771 CP_ANONYMOUS_NAMESPACE_STR.
11772
2db9a427
PA
117732015-02-20 Pedro Alves <palves@redhat.com>
11774
11775 * linux-nat.c (linux_handle_extended_wait): Call
11776 thread_db_notice_clone whenever a new clone LWP is detected.
11777 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11778 functions.
11779 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11780 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11781 (linux_unstop_all_lwps): Declare.
11782 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11783 (thread_get_info_callback): Delete.
11784 (thread_from_lwp): Use td_thr_get_info and record_thread.
11785 (thread_db_attach_lwp): Delete.
11786 (thread_db_notice_clone): New function.
11787 (try_thread_db_load_1): If /proc is mounted and shows the
11788 process'es task list, walk over all LWPs and call thread_from_lwp
11789 instead of relying on td_ta_thr_iter.
11790 (attach_thread): Don't call check_thread_signals here. Split the
11791 tail part of the function (which adds the thread to the core GDB
11792 thread list) to ...
11793 (record_thread): ... this function. Call check_thread_signals
11794 here.
11795 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11796 call thread_from_lwp.
11797 (thread_db_update_thread_list): Rename to ...
11798 (thread_db_update_thread_list_org): ... this.
11799 (thread_db_update_thread_list): New function.
11800 (thread_db_find_thread_from_tid): Delete.
11801 (thread_db_get_ada_task_ptid): Simplify.
11802 * nat/linux-procfs.c: Include <sys/stat.h>.
11803 (linux_proc_task_list_dir_exists): New function.
11804 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11805
3b27ef47
PA
118062015-02-20 Pedro Alves <palves@redhat.com>
11807
11808 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11809 main LWP. Handle the case of waitpid returning 0 if we're already
11810 attached to the LWP. Don't set the LWP's last_resume_kind to
11811 resume_stop if we already knew about the LWP.
11812 (linux_nat_filter_event): Add debug logs.
11813
1cc28231
PA
118142015-02-20 Pedro Alves <palves@redhat.com>
11815
11816 * target.h (forward_target_decr_pc_after_break): Delete
11817 declaration.
11818
5c5019c2
PA
118192015-02-20 Pedro Alves <palves@redhat.com>
11820
11821 PR threads/18006
11822 * linux-thread-db.c (thread_get_info_callback): Return early if
11823 the thread's lwp id is -1.
11824
f3978e91
JB
118252015-02-20 Joel Brobecker <brobecker@adacore.com>
11826
11827 GDB 7.9 released.
11828
ffdf88ec
SE
118292015-02-19 Steve Ellcey <sellcey@imgtec.com>
11830
11831 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11832 (dtrace_get_probes) Change type of variable 'dof'.
11833
c9587f88
AT
118342015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11835
11836 PR breakpoints/16812
11837 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11838 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11839 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11840
53cf2ee0
DT
118412015-02-19 David Taylor <dtaylor@emc.com>
11842
11843 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11844
acfe0940
PP
118452015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11846
11847 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11848 function.
11849 (tui_putc): Don't call tui_handle_resize_during_io.
11850 (tui_getc): Likewise.
11851 (tui_mld_getc): Likewise.
11852 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11853 (tui_sigwinch_token): New static variable.
11854 (tui_initialize_win): Adjust documentation. Set
11855 tui_sigwinch_token.
11856 (tui_async_resize_screen): New asynchronous callback.
11857 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11858 invoke tui_async_resize_screen.
11859
f6a88844
JM
118602015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11861
11862 * configure: Regenerated.
11863 * configure.ac: Use GDB_AC_TRANSFORM.
11864 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11865 * acinclude.m4: sinclude transform.m4.
11866 * transform.m4: New file.
11867 (GDB_AC_TRANSFORM): New macro.
11868
b05e3b0d
JM
118692015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11870
11871 * NEWS: Announce the support for DTrace SDT probes.
11872
c3e3045e
JM
118732015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11874
11875 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11876 (amd64_dtrace_parse_probe_argument): New function.
11877 (amd64_dtrace_probe_is_enabled): Likewise.
11878 (amd64_dtrace_enable_probe): Likewise.
11879 (amd64_dtrace_disable_probe): Likewise.
11880 (amd64_linux_init_abi): Register the
11881 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11882 `gdbarch_dtrace_disable_probe' and
11883 `gdbarch_dtrace_probe_is_enabled' hooks.
11884 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11885 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11886 (amd64_dtrace_enable_probe_sequence): Likewise.
11887 (amd64_dtrace_disable_probe_sequence): Likewise.
11888
d4777acb
JM
118892015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11890
11891 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11892 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11893 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11894 handle ELF files.
11895 * Makefile.in (SFILES): dtrace-probe.c added.
11896 * configure: Regenerate.
11897 * dtrace-probe.c: New file.
11898 (SHT_SUNW_dof): New constant.
11899 (dtrace_probe_type): New enum.
11900 (dtrace_probe_arg): New struct.
11901 (dtrace_probe_arg_s): New typedef.
11902 (struct dtrace_probe_enabler): New struct.
11903 (dtrace_probe_enabler_s): New typedef.
11904 (dtrace_probe): New struct.
11905 (dtrace_probe_is_linespec): New function.
11906 (dtrace_dof_sect_type): New enum.
11907 (dtrace_dof_dofh_ident): Likewise.
11908 (dtrace_dof_encoding): Likewise.
11909 (DTRACE_DOF_ENCODE_LSB): Likewise.
11910 (DTRACE_DOF_ENCODE_MSB): Likewise.
11911 (dtrace_dof_hdr): New struct.
11912 (dtrace_dof_sect): Likewise.
11913 (dtrace_dof_provider): Likewise.
11914 (dtrace_dof_probe): Likewise.
11915 (DOF_UINT): New macro.
11916 (DTRACE_DOF_PTR): Likewise.
11917 (DTRACE_DOF_SECT): Likewise.
11918 (dtrace_process_dof_probe): New function.
11919 (dtrace_process_dof): Likewise.
11920 (dtrace_build_arg_exprs): Likewise.
11921 (dtrace_get_arg): Likewise.
11922 (dtrace_get_probes): Likewise.
11923 (dtrace_get_probe_argument_count): Likewise.
11924 (dtrace_can_evaluate_probe_arguments): Likewise.
11925 (dtrace_evaluate_probe_argument): Likewise.
11926 (dtrace_compile_to_ax): Likewise.
11927 (dtrace_probe_destroy): Likewise.
11928 (dtrace_gen_info_probes_table_header): Likewise.
11929 (dtrace_gen_info_probes_table_values): Likewise.
11930 (dtrace_probe_is_enabled): Likewise.
11931 (dtrace_probe_ops): New variable.
11932 (info_probes_dtrace_command): New function.
11933 (_initialize_dtrace_probe): Likewise.
11934 (dtrace_type_name): Likewise.
11935
8b367e17
JM
119362015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11937
11938 * gdbarch.sh (dtrace_parse_probe_argument): New.
11939 (dtrace_probe_is_enabled): Likewise.
11940 (dtrace_enable_probe): Likewise.
11941 (dtrace_disable_probe): Likewise.
11942 * gdbarch.c: Regenerate.
11943 * gdbarch.h: Regenerate.
11944
9aca2ff8
JM
119452015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11946
11947 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11948 stap_probe_ops for `enable_probe' and `disable_probe'.
11949 * probe.c (enable_probes_command): New function.
11950 (disable_probes_command): Likewise.
11951 (_initialize_probe): Define the cli commands `enable probe' and
11952 `disable probe'.
11953 (parse_probe_linespec): New function.
11954 (info_probes_for_ops): Use parse_probe_linespec.
11955 * probe.h (probe_ops): New hooks `enable_probe' and
11956 `disable_probe'.
11957
03e98035
JM
119582015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11959
11960 * probe.c (compute_probe_arg): Moved from stap-probe.c
11961 (compile_probe_arg): Likewise.
11962 (probe_funcs): Likewise.
11963 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11964 (compile_probe_arg): Likewise.
11965 (probe_funcs): Likewise.
11966
6f9b8491
JM
119672015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11968
11969 * probe.c (print_ui_out_not_applicables): New function.
11970 (exists_probe_with_pops): Likewise.
11971 (info_probes_for_ops): Do not include column headers for probe
11972 types for which no probe has been actually found on any object.
11973 Also invoke `print_ui_out_not_applicables' in order to match the
11974 column rows with the header when probes of several types are
11975 listed.
11976 Print the "Type" column.
11977 * probe.h (probe_ops): Added a new probe operation `type_name'.
11978 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11979 (stap_type_name): New function.
11980
69efdff1
PP
119812015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11982
11983 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11984 (key_is_command_char): Delete.
11985
f8e5e23e
PA
119862015-02-17 Pedro Alves <palves@redhat.com>
11987
11988 * tui/tui.c (tui_enable): Resize windows before anything
11989 might show a window.
11990
9f2e0721
MO
119912015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11992
11993 PR gdb/17984
11994 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11995 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11996 call.
11997 * aarch64-tdep.h (tdesc_aarch64): Declare.
11998
171e6b1c
MW
119992015-02-12 Mark Wielaard <mjw@redhat.com>
12000
12001 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12002
d5ff0482
DE
120032015-02-13 Doug Evans <dje@google.com>
12004
12005 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12006 anonymous_namespace to is_in_anonymous for consistency with the rest
12007 of the file.
12008 (cp_lookup_bare_symbol): Fix typo in comment.
12009 (cp_search_static_and_baseclasses): Ditto.
12010 (search_symbol_list): Use vertical space in comment better.
12011 (reset_directive_searched): Ditto. Fix typo.
12012 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12013
9f04ac5f
YQ
120142015-02-13 Yao Qi <yao.qi@arm.com>
12015
12016 * MAINTAINERS: Update my email address.
12017
013d0319
DE
120182015-02-12 Doug Evans <dje@google.com>
12019
b615dd20 12020 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 12021
9a7e538e
DE
120222015-02-12 Doug Evans <dje@google.com>
12023
12024 * completer.c (complete_line): Remove incorrect comment.
12025
e1fcd575
JK
120262015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12027
12028 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12029 (py_print_frame): Use RETURN_MASK_ERROR.
12030
b99bf4e3
JK
120312015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12032
12033 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12034 function comment. Wrap all function that can throw in cleanups.
12035 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12036 cleanups.
12037
800eb1ce
JK
120382015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12039
12040 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12041 Remove the error label.
12042
34019068
JK
120432015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12044
12045 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12046 with goto first, indent the former else codepath left. Put variable
12047 'elided' to a new inner block.
12048
8d4a54e2
JK
120492015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12050
12051 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12052
18ad82c1
PA
120532015-02-11 Pedro Alves <palves@redhat.com>
12054
12055 * xcoffread.c (within_function): Delete.
12056
e36122e9
TT
120572015-02-11 Tom Tromey <tromey@redhat.com>
12058 Pedro Alves <palves@redhat.com>
12059
12060 * breakpoint.c (base_breakpoint_ops): Delete.
12061 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12062 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12063 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12064 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12065 * python/py-arch.c (arch_object_type): Make extern.
12066 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12067 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12068 * python/py-cmd.c (cmdpy_object_type): Make extern.
12069 * python/py-continueevent.c (continue_event_object_type)
12070 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12071 parameter. Update all callers.
12072 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12073 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12074 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12075 * python/py-function.c (fnpy_object_type): Make extern.
12076 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12077 * python/py-infevents.c (call_pre_event_object_type)
12078 (inferior_call_post_event_object_type).
12079 (memory_changed_event_object_type): Make extern.
12080 * python/py-infthread.c (thread_object_type): Make extern.
12081 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12082 * python/py-linetable.c (linetable_entry_object_type)
12083 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12084 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12085 (clear_objfiles_event_object_type): Make extern.
12086 * python/py-objfile.c (objfile_object_type): Make extern.
12087 * python/py-param.c (parmpy_object_type): Make extern.
12088 * python/py-progspace.c (pspace_object_type): Make extern.
12089 * python/py-signalevent.c (signal_event_object_type): Make extern.
12090 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12091 * python/py-type.c (type_object_type, field_object_type)
12092 (type_iterator_object_type): Make extern.
12093 * python/python.c (python_extension_script_ops)
12094 (python_extension_ops): Make extern.
12095 * stap-probe.c (stap_probe_ops): Make extern.
12096
0703599a
PA
120972015-02-11 Pedro Alves <pedro@codesourcery.com>
12098
12099 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12100 because the event thread is not the current thread.
12101
eaaf76ab
DE
121022015-02-11 Doug Evans <xdje42@gmail.com>
12103
12104 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12105 been initialized yet, return NULL.
12106
e7d52ed3
DE
121072015-02-11 Doug Evans <dje@google.com>
12108
12109 * symfile.h (new_symfile_objfile): Delete.
12110 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12111 All callers updated.
12112
fc6b1256
PP
121132015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12114
12115 * tui/tui-io.c (tui_handle_resize_during_io): Call
12116 tui_update_gdb_sizes() after resizing the screen.
12117 * tui/tui.c (tui_enable): Resize the terminal before
12118 calling tui_update_gdb_sizes().
12119
d9080678
PP
121202015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12121
12122 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12123 line before printing a newline.
12124
9f615e3a
MW
121252015-02-11 Mark Wielaard <mjw@redhat.com>
12126
12127 * utils.c (producer_is_gcc): Return true or false.
12128
d9080678 121292015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
12130
12131 * utils.h (producer_is_gcc): Change return type to bool. Add major
12132 argument.
12133 * utils.c (producer_is_gcc): Likewise.
12134 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12135 * dwarf2read.c (check_producer): Likewise.
12136
b052c4fb
PA
121372015-02-10 Pedro Alves <palves@redhat.com>
12138
12139 * infrun.c (displaced_step_fixup): Switch to the event thread
12140 before calling gdbarch_displaced_step_fixup.
12141
3ac240d4
AT
121422015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12143
12144 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12145
c1cc6152
SM
121462015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12147
12148 * ada-varobj.c (ada_name_of_child): Constify parent.
12149 (ada_path_expr_of_child): Same.
12150 (ada_value_of_child): Same.
12151 (ada_type_of_child): Same.
12152 * c-varobj.c (c_is_path_expr_parent): Same.
12153 (c_describe_child): Same.
12154 (c_name_of_child): Same.
12155 (c_value_of_child): Same.
12156 (c_type_of_child): Same.
12157 (cplus_number_of_children): Same.
12158 (cplus_describe_child): Constify var.
12159 (cplus_name_of_child): Constify parent.
12160 (cplus_value_of_child): Same.
12161 (cplus_type_of_child): Same.
12162 * jv-varobj.c (java_name_of_child): Same.
12163 (java_value_of_child): Same.
12164 (java_type_of_child): Same.
12165 * varobj.c (value_of_child): Same.
12166 (varobj_default_is_path_expr_parent): Constify var, parent and return
12167 value.
12168 (varobj_get_path_expr): Constify var, modify path_expr through
12169 mutable_var.
12170 (install_new_value): Constify parent.
12171 (value_of_child): Constify parent.
12172 * varobj.h (struct varobj): Constify parent.
12173 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12174 type_of_child.
12175 (varobj_get_path_expr): Constify var.
12176 (varobj_get_path_expr_parent): Constify var and return value.
12177
c1ee9414
LM
121782015-02-10 Luis Machado <lgustavo@codesourcery.com>
12179
12180 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12181 (arm_prologue_this_id): Move PC and SP limit checks to
12182 arm_prologue_unwind_stop_reason.
12183 (arm_prologue_unwind) <stop_reason> : Set to
12184 arm_prologue_unwind_stop_reason.
12185
f7de9aab
MW
121862015-02-09 Mark Wielaard <mjw@redhat.com>
12187
12188 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12189 DW_LANG_Fortran08 as language_fortran.
12190
0b24eb2d
SDJ
121912015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12192
12193 PR remote/17946
12194 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12195 of pointer against char.
12196
a2c2acaf
MW
121972015-02-09 Mark Wielaard <mjw@redhat.com>
12198
12199 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12200 (c_type_print_modifier): Likewise.
12201 * dwarf2read.c (read_tag_atomic_type): New function.
12202 (read_type_die_1): Handle DW_TAG_atomic_type.
12203 * gdbtypes.c (make_atomic_type): New function.
12204 (recursive_dump_type): Handle TYPE_ATOMIC.
12205 * gdbtypes.h (enum type_flag_values): Renumber.
12206 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
12207 (TYPE_ATOMIC): New macro.
12208 (make_atomic_type): Declare.
12209
31fd9caa
MM
122102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12211
12212 * btrace.c (ftrace_find_call): Skip gaps.
12213 (ftrace_new_function): Initialize level.
12214 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
12215 (ftrace_new_switch): Update
12216 level computation.
12217 (ftrace_new_gap): New.
12218 (ftrace_update_function): Create new function after gap.
12219 (btrace_compute_ftrace_bts): Create gap on error.
12220 (btrace_stitch_bts): Update parameters. Clear trace if it
12221 becomes empty.
12222 (btrace_stitch_trace): Update parameters. Update callers.
12223 (btrace_clear): Reset the number of gaps.
12224 (btrace_insn_get): Return NULL if the iterator points to a gap.
12225 (btrace_insn_number): Return zero if the iterator points to a gap.
12226 (btrace_insn_end): Allow gaps at the end.
12227 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12228 (btrace_find_insn_by_number): Assert that the found iterator does
12229 not point to a gap.
12230 (btrace_call_next, btrace_call_prev): Assert that the last function
12231 is not a gap.
12232 * btrace.h (btrace_bts_error): New.
12233 (btrace_function): Update comment.
12234 (btrace_function) <insn, insn_offset, number>: Update comment.
12235 (btrace_function) <errcode>: New.
12236 (btrace_thread_info) <ngaps>: New.
12237 (btrace_thread_info) <replay>: Update comment.
12238 (btrace_insn_get): Update comment.
12239 * record-btrace.c (btrace_ui_out_decode_error): New.
12240 (record_btrace_info): Print number of gaps.
12241 (btrace_insn_history, btrace_call_history): Call
12242 btrace_ui_out_decode_error for gaps.
12243 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12244
afb778a2
MM
122452015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12246
12247 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12248 * nat/linux-btrace.c: (btrace_this_cpu): New.
12249 (cpu_supports_bts): Call btrace_this_cpu.
12250 (intel_supports_bts): Add cpu parameter.
12251
7d5c24b3
MM
122522015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12253
12254 * btrace.h (btrace_insn_class): New.
12255 (btrace_insn) <size, iclass>: New.
12256 * btrace.c (ftrace_find_call): Update parameters. Update users.
12257 Use instruction classification.
12258 (ftrace_new_return): Update parameters. Update users.
12259 (ftrace_update_function): Update parameters. Update users. Use
12260 instruction classification.
12261 (ftrace_update_insns): Update parameters. Update users.
12262 (ftrace_classify_insn): New.
12263 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12264 TRY_CATCH around call to gdb_insn_length.
12265
76235df1
MM
122662015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12267
12268 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12269 Update parameters. Update users.
12270
d33501a5
MM
122712015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12272
12273 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12274 (btrace_conf_bts_attributes): New.
12275 (btrace_conf_children): Add attributes.
12276 * common/btrace-common.h (btrace_config_bts): New.
12277 (btrace_config)<bts>: New.
12278 (btrace_config): Update comment.
12279 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12280 Use config.
12281 * features/btrace-conf.dtd: Increment version. Add size
12282 attribute to bts element.
12283 * record-btrace.c (set_record_btrace_bts_cmdlist,
12284 show_record_btrace_bts_cmdlist): New.
12285 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12286 record_btrace_print_conf, cmd_set_record_btrace_bts,
12287 cmd_show_record_btrace_bts): New.
12288 (record_btrace_info): Call record_btrace_print_conf.
12289 (_initialize_record_btrace): Add commands.
12290 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12291 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12292 (btrace_sync_conf): Synchronize bts size.
12293 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12294 * NEWS: Announce new commands and new packets.
12295
f4abbc16
MM
122962015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12297
12298 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12299 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12300 (x86_linux_btrace_conf): New.
12301 (x86_linux_create_target): Initialize to_btrace_conf.
12302 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12303 Check format. Split into this and ...
12304 (linux_enable_bts): ... this.
12305 (linux_btrace_conf): New.
12306 (perf_event_skip_record): Renamed into ...
12307 (perf_event_skip_bts_record): ... this. Updated users.
12308 (linux_disable_btrace): Split into this and ...
12309 (linux_disable_bts): ... this.
12310 (linux_read_btrace): Check format.
12311 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12312 (linux_btrace_conf): New.
12313 (btrace_target_info)<ptid>: Moved.
12314 (btrace_target_info)<conf>: New.
12315 (btrace_target_info): Split into this and ...
12316 (btrace_tinfo_bts): ... this. Updated users.
12317 * btrace.c (btrace_enable): Update parameters.
12318 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12319 (btrace_conf_children, btrace_conf_attributes)
12320 (btrace_conf_elements): New.
12321 * btrace.h (btrace_enable): Update parameters.
12322 (btrace_conf, parse_xml_btrace_conf): New.
12323 * common/btrace-common.h (btrace_config): New.
12324 * feature/btrace-conf.dtd: New.
12325 * record-btrace.c (record_btrace_conf): New.
12326 (record_btrace_cmdlist): New.
12327 (record_btrace_enable_warn, record_btrace_open): Pass
12328 &record_btrace_conf.
12329 (record_btrace_info): Print recording format.
12330 (cmd_record_btrace_bts_start): New.
12331 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12332 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12333 Add "record bts" alias command.
12334 * remote.c (remote_state)<btrace_config>: New.
12335 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12336 (remote_protocol_features): Add qXfer:btrace-conf:read.
12337 (remote_open_1): Call remote_btrace_reset.
12338 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12339 (btrace_target_info)<conf>: New.
12340 (btrace_sync_conf, btrace_read_config): New.
12341 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12342 btrace_read_conf.
12343 (remote_btrace_conf): New.
12344 (init_remote_ops): Initialize to_btrace_conf.
12345 (_initialize_remote): Add qXfer:btrace-conf packet.
12346 * target.c (target_enable_btrace): Update parameters.
12347 (target_btrace_conf): New.
12348 * target.h (target_enable_btrace): Update parameters.
12349 (target_btrace_conf): New.
12350 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12351 (target_ops)<to_enable_btrace>: Update parameters and comment.
12352 (target_ops)<to_btrace_conf>: New.
12353 * target-delegates: Regenerate.
12354 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12355 (target_debug_print_const_struct_btrace_target_info_p): New.
12356 * NEWS: Announce new command and new packet.
12357
aadf7753
MM
123582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12359
12360 * nat/linux-btrace.h (perf_event_buffer): New.
12361 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12362 <bts>: ... this.
12363 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12364 (perf_event_buffer_size, perf_event_buffer_begin)
12365 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12366 Updated users.
12367 (perf_event_new_data): New.
12368
043c3577
MM
123692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12370
12371 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12372 * record-btrace.c (record_btrace_open): Remove call to
12373 target_supports_btrace.
12374 * remote.c (remote_supports_btrace): Update parameters.
12375 * target.c (target_supports_btrace): Update parameters.
12376 * target.h (to_supports_btrace, target_supports_btrace): Update
12377 parameters.
12378 * target-delegates.c: Regenerate.
12379 * target-debug.h (target_debug_print_enum_btrace_format): New.
12380 * nat/linux-btrace.c
12381 (kernel_supports_btrace): Rename into ...
12382 (kernel_supports_bts): ... this. Update users. Update warning text.
12383 (intel_supports_btrace): Rename into ...
12384 (intel_supports_bts): ... this. Update users.
12385 (cpu_supports_btrace): Rename into ...
12386 (cpu_supports_bts): ... this. Update users.
12387 (linux_supports_btrace): Update parameters. Split into this and ...
12388 (linux_supports_bts): ... this.
12389 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12390
734b0e4b
MM
123912015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12392
12393 * Makefile.in (SFILES): Add common/btrace-common.c.
12394 (COMMON_OBS): Add common/btrace-common.o.
12395 (btrace-common.o): Add build rules.
12396 * btrace.c (parse_xml_btrace): Update parameters.
12397 (parse_xml_btrace_block): Set format field.
12398 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12399 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12400 (btrace_compute_ftrace): Split into this and...
12401 (btrace_compute_ftrace_bts): ...this.
12402 (btrace_stitch_trace): Split into this and...
12403 (btrace_stitch_bts): ...this.
12404 * btrace.h (parse_xml_btrace): Update parameters.
12405 (make_cleanup_btrace_data): New.
12406 * common/btrace-common.c: New.
12407 * common/btrace-common.h: Include common-defs.h.
12408 (btrace_block_s): Update comment.
12409 (btrace_format): New.
12410 (btrace_format_string): New.
12411 (btrace_data_bts): New.
12412 (btrace_data): New.
12413 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12414 * remote.c (remote_read_btrace): Update parameters.
12415 * target.c (target_read_btrace): Update parameters.
12416 * target.h (target_read_btrace): Update parameters.
12417 (target_ops)<to_read_btrace>: Update parameters.
12418 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12419 * target-delegates.c: Regenerate.
12420 * target-debug (target_debug_print_struct_btrace_data_p): New.
12421 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12422 (linux_read_bts): ...this.
12423 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12424
bd2e0e9e
DE
124252015-02-06 Doug Evans <dje@google.com>
12426
12427 * remote-m32r-sdi.c: Include symfile.h.
12428
f176c4b5
DE
124292015-02-06 Doug Evans <dje@google.com>
12430
12431 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12432 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12433 to here.
12434
d6c146e9
PA
124352015-02-06 Pedro Alves <palves@redhat.com>
12436
12437 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12438
b9d61307
SM
124392015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12440
12441 PR gdb/15678
12442 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12443 (enable_count_command): Check args for NULL value.
12444
e9fbd043
DE
124452015-02-05 Doug Evans <xdje42@gmail.com>
12446
12447 * guile/scm-frame.c: Fix spelling errors in a comment.
12448
881d5d5d
JK
124492015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12450
12451 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12452 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12453 return type.
12454
20ba1ce6
PA
124552015-02-04 Pedro Alves <palves@redhat.com>
12456
12457 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12458 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12459 returns true.
12460 (resume_stopped_resumed_lwps): Don't check whether the thread is
12461 marked as executing.
12462 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12463
f962539a
AA
124642015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12465
12466 * regset.h (struct regset): Add flags field.
12467 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12468 * corelow.c (get_core_register_section): Add warning if the size
12469 exceeds the requested size and the regset does not have the
12470 REGSET_VARIABLE_SIZE flag set.
12471 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12472 flag.
12473 * armbsd-tdep.c (armbsd_gregset): Likewise.
12474 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12475 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12476 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12477 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12478
dde9acd6
AA
124792015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12480
12481 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12482 For ".reg-xstate", explicitly specify the requested section size
12483 via X86_XSTATE_SIZE instead of just 0 on input and
12484 X86_XSTATE_MAX_SIZE on output.
12485 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12486 Likewise.
12487
1528345d
AA
124882015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12489
12490 PR corefiles/17808:
12491 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12492 function type, particularly its SIZE parameter.
12493 * gdbarch.h: Regenerate.
12494 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12495 actual against required size using ">=" instead of "==".
12496 (amd64_collect_fpregset): Likewise.
12497 * i386-tdep.c (i386_supply_gregset): Likewise.
12498 (i386_collect_gregset): Likewise.
12499 (i386_supply_fpregset): Likewise.
12500 (i386_collect_fpregset): Likewise.
12501 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12502 (mips_fill_gregset_wrapper): Likewise.
12503 (mips_supply_fpregset_wrapper): Likewise.
12504 (mips_fill_fpregset_wrapper): Likewise.
12505 (mips64_supply_gregset_wrapper): Likewise.
12506 (mips64_fill_gregset_wrapper): Likewise.
12507 (mips64_supply_fpregset_wrapper): Likewise.
12508 (mips64_fill_fpregset_wrapper): Likewise.
12509 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12510 (am33_supply_fpregset_method): Likewise.
12511 (am33_collect_gregset_method): Likewise.
12512 (am33_collect_fpregset_method): Likewise.
12513
518be979
DE
125142015-02-04 Doug Evans <dje@google.com>
12515 Pedro Alves <palves@redhat.com>
12516 Eli Zaretskii <eliz@gnu.org>
12517
12518 PR tui/17810
12519 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12520 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12521 * tui/tui-file.c: #include tui/tui-command.h.
12522 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12523 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12524 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12525
80bd5fab
PA
125262015-02-04 Pedro Alves <palves@redhat.com>
12527
12528 Fix build breakage.
12529 * event-loop.c (gdb_do_one_event): Add default switch case.
12530
a7606d80
JK
125312015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12532
12533 Filter out inferior gcc option -fpreprocessed.
12534 * compile/compile.c (filter_args): New function.
12535 (get_args): Use it.
12536
70b66289
PA
125372015-02-03 Pedro Alves <palves@redhat.com>
12538
12539 * event-loop.c: Don't declare nor define a queue type for
12540 gdb_event_p.
12541 (event_queue): Delete.
12542 (create_event, create_file_event, gdb_event_xfree)
12543 (initialize_event_loop, process_event): Delete.
12544 (gdb_do_one_event): Return as soon as one event is handled.
12545 (handle_file_event): Change prototype. Used the passed in
12546 file_handler pointer and ready_mask instead of looping over all
12547 file handlers.
12548 (gdb_wait_for_event): Update the poll/select timeouts before
12549 blocking. Run event handlers directly instead of queueing events.
12550 Return as soon as one event is handled.
12551 (struct async_event_handler_data): Delete.
12552 (invoke_async_event_handler): Delete.
12553 (check_async_event_handlers): Change return type to int. Run
12554 event handlers directly instead of queueing events. Return as
12555 soon as one event is handled.
12556 (handle_timer_event): Delete.
12557 (update_wait_timeout): New function, factored out from
12558 poll_timers.
12559 (poll_timers): Reimplement.
12560 * event-loop.h (initialize_event_loop): Delete declaration.
12561 * top.c (gdb_init): Don't call initialize_event_loop.
12562
b7d2e916
PA
125632015-02-03 Pedro Alves <palves@redhat.com>
12564
12565 * event-loop.c (clear_async_event_handler): New function.
12566 * event-loop.h (clear_async_event_handler): New declaration.
12567 * record-btrace.c (record_btrace_async): New function.
12568 (init_record_btrace_ops): Install record_btrace_async.
12569 * record-full.c (record_full_async): New function.
12570 (record_full_resume): Don't mark the async event source here.
12571 (init_record_full_ops): Install record_full_async.
12572 (record_full_core_resume): Don't mark the async event source here.
12573 (init_record_full_core_ops): Install record_full_async.
12574 * remote.c (remote_async): Mark and clear the async stop reply
12575 queue event-loop token as appropriate.
12576
d9d41e78
PA
125772015-02-03 Pedro Alves <palves@redhat.com>
12578
12579 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12580 target_is_async_p instead of target_can_async.
12581 (linux_nat_wait): Use target_is_async_p instead of
12582 target_can_async. Don't enable async here.
12583 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12584 target_is_async_p instead of target_can_async.
12585
aa3de267
SM
125862015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12587
12588 * varobj.h (lang_varobj_ops): Mention which return values need
12589 to be freed.
12590
2c811c0f
JB
125912015-02-02 Joel Brobecker <brobecker@adacore.com>
12592
12593 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12594
b1eedac9
JB
125952015-02-02 Joel Brobecker <brobecker@adacore.com>
12596
12597 PR gdb/17856:
12598 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12599 results found in the cache.
12600
66c168ae
JB
126012015-02-02 Joel Brobecker <brobecker@adacore.com>
12602
12603 PR gdb/17854:
12604 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12605 when allocating a new one.
12606
4bdc02b2
TT
126072015-02-01 Tom Tromey <tom@tromey.com>
12608
12609 * MAINTAINERS: Remove myself.
12610
ae6ae975
DE
126112015-01-31 Doug Evans <xdje42@gmail.com>
12612
12613 * dwarf2read.c (process_structure_scope): Update setting of
12614 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12615 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12616 (set_type_vptr_fieldno): New function.
12617 (internal_type_vptr_basetype): New function.
12618 (set_type_vptr_basetype): New function.
12619 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12620 TYPE_VPTR_BASETYPE.
12621 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12622 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12623 (print_cplus_stuff): ... moved here.
12624 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12625 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12626 moved to ...
12627 (struct cplus_struct_type): ... here. All uses updated.
12628 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12629 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12630 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12631 * stabsread.c (read_tilde_fields): Update setting of
12632 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12633
09e2d7c7
DE
126342015-01-31 Doug Evans <xdje42@gmail.com>
12635
12636 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12637 to self_p.
12638 (cp_print_class_member): Rename local domain to self_type.
12639 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12640 domain_type to self_type.
12641 (set_die_type) <need_gnat_info>: Handle
12642 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12643 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12644 TYPE_SPECIFIC_SELF_TYPE.
12645 * gdbtypes.c (internal_type_self_type): New function.
12646 (set_type_self_type): New function.
12647 (smash_to_memberptr_type): Rename parameter domain to self_type.
12648 Update setting of TYPE_SELF_TYPE.
12649 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12650 (smash_to_method_type): Rename parameter domain to self_type.
12651 Update setting of TYPE_SELF_TYPE.
12652 (check_stub_method): Call smash_to_method_type.
12653 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12654 (copy_type_recursive): Ditto.
12655 * gdbtypes.h (enum type_specific_kind): New value
12656 TYPE_SPECIFIC_SELF_TYPE.
12657 (struct main_type) <type_specific>: New member self_type.
12658 (struct cplus_struct_type) <fn_field.type>: Update comment.
12659 (TYPE_SELF_TYPE): Rewrite.
12660 (internal_type_self_type, set_type_self_type): Declare.
12661 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12662 self_type.
12663 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12664 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12665 TYPE_TARGET_TYPE.
12666 * stabsread.c (read_member_functions): Mark methods with
12667 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12668 TYPE_SELF_TYPE.
12669
4bfb94b8
DE
126702015-01-31 Doug Evans <xdje42@gmail.com>
12671
12672 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12673 All uses updated.
12674
5f4ce105
DE
126752015-01-31 Doug Evans <xdje42@gmail.com>
12676
12677 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12678 or unions. Return zero if union.
12679 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12680 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12681 gnuv3_get_vtable.
12682 (compute_vtable_size): Assert only passed structs.
12683 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12684
f6b3afbf
DE
126852015-01-31 Doug Evans <xdje42@gmail.com>
12686
12687 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12688 kinds.
12689
cfb069a8
GB
126902015-01-31 Gary Benson <gbenson@redhat.com>
12691 Doug Evans <dje@google.com>
12692
12693 PR cli/9007
12694 PR cli/11920
12695 PR cli/15548
12696 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12697 reached.
12698 * common/common-exceptions.h (enum errors)
12699 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12700 * completer.h (get_max_completions_reached_message): New declaration.
12701 (max_completions): Likewise.
12702 (completion_tracker_t): New typedef.
12703 (new_completion_tracker): New declaration.
12704 (make_cleanup_free_completion_tracker): Likewise.
12705 (maybe_add_completion_enum): New enum.
12706 (maybe_add_completion): New declaration.
12707 (throw_max_completions_reached_error): Likewise.
12708 * completer.c (max_completions): New global variable.
12709 (new_completion_tracker): New function.
12710 (free_completion_tracker): Likewise.
12711 (make_cleanup_free_completion_tracker): Likewise.
12712 (maybe_add_completions): Likewise.
12713 (throw_max_completions_reached_error): Likewise.
12714 (complete_line): Remove duplicates and limit result to max_completions
12715 entries.
12716 (get_max_completions_reached_message): New function.
12717 (gdb_display_match_list): Handle max_completions.
12718 (_initialize_completer): New declaration and function.
12719 * symtab.c: Include completer.h.
12720 (completion_tracker): New static variable.
12721 (completion_list_add_name): Call maybe_add_completion.
12722 (default_make_symbol_completion_list_break_on_1): Renamed from
12723 default_make_symbol_completion_list_break_on. Maintain
12724 completion_tracker across calls to completion_list_add_name.
12725 (default_make_symbol_completion_list_break_on): New function.
12726 * top.c (init_main): Set rl_completion_display_matches_hook.
12727 * tui/tui-io.c: Include completer.h.
12728 (tui_old_rl_display_matches_hook): New static global.
12729 (tui_rl_display_match_list): Notify user if max-completions reached.
12730 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12731 * NEWS (New Options): Mention set/show max-completions.
12732
e11c72c7
GB
127332015-01-31 Gary Benson <gbenson@redhat.com>
12734
12735 * symtab.c (struct add_name_data) <code>: New field.
12736 Updated comments.
12737 (add_symtab_completions): New function.
12738 (symtab_expansion_callback): Likewise.
12739 (default_make_symbol_completion_list_break_on): Set datum.code.
12740 Move minimal symbol scan before calling expand_symtabs_matching.
12741 Scan known primary symtabs for externs and statics before calling
12742 expand_symtabs_matching. Pass symtab_expansion_callback as
12743 expansion_notify argument to expand_symtabs_matching. Do not scan
12744 primary symtabs for externs and statics after calling
12745 expand_symtabs_matching.
12746
276d885b
GB
127472015-01-31 Gary Benson <gbenson@redhat.com>
12748
12749 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12750 (struct quick_symbol_functions) <expand_symtabs_matching>:
12751 New argument expansion_notify. All uses updated.
12752 (expand_symtabs_matching): New argument expansion_notify.
12753 All uses updated.
12754 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12755 Also print expansion notify.
12756 * symtab.c (expand_symtabs_matching_via_partial): Call
12757 expansion_notify whenever a partial symbol table is expanded.
12758 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12759 expansion_notify whenever a symbol table is instantiated.
12760
82083d6d
DE
127612015-01-31 Doug Evans <xdje42@gmail.com>
12762
12763 * cli-out.c: #include completer.h, readline/readline.h.
12764 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12765 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12766 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12767 * cli-out.h (cli_display_match_list): Declare.
12768 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12769 (ELLIPSIS_LEN): Ditto.
12770 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12771 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12772 (gdb_fnprint, gdb_print_filename): Ditto.
12773 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12774 (gdb_display_match_list): Ditto.
12775 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12776 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12777 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12778 (match_list_displayer): New struct.
12779 (gdb_display_match_list): Declare.
12780 * top.c (init_main): Set rl_completion_display_matches_hook.
12781 * tui/tui-io.c: #include completer.h.
12782 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12783 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12784 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12785 (tui_mld_getc, tui_mld_read_key): Ditto.
12786 (tui_rl_display_match_list): Rewrite.
12787 (tui_handle_resize_during_io): New arg for_completion. All callers
12788 updated.
12789
f57d2163
DE
127902015-01-31 Doug Evans <xdje42@gmail.com>
12791
12792 Add symbol lookup cache.
12793 * NEWS: Document new options and commands.
12794 * symtab.c (symbol_cache_key): New static global.
12795 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12796 (SYMBOL_LOOKUP_FAILED): New macro.
12797 (symbol_cache_slot_state): New enum.
12798 (block_symbol_cache): New struct.
12799 (symbol_cache): New struct.
12800 (new_symbol_cache_size, symbol_cache_size): New static globals.
12801 (hash_symbol_entry, eq_symbol_entry): New functions.
12802 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12803 (make_symbol_cache, free_symbol_cache): New functions.
12804 (get_symbol_cache, symbol_cache_cleanup): New function.
12805 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12806 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12807 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12808 (symbol_cache_flush, symbol_cache_dump): New functions.
12809 (maintenance_print_symbol_cache): New function.
12810 (maintenance_flush_symbol_cache): New function.
12811 (symbol_cache_stats): New function.
12812 (maintenance_print_symbol_cache_statistics): New function.
12813 (symtab_new_objfile_observer): New function.
12814 (symtab_free_objfile_observer): New function.
12815 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12816 (_initialize_symtab): Init symbol_cache_key. New parameter
12817 maint symbol-cache-size. New maint commands print symbol-cache,
12818 print symbol-cache-statistics, flush-symbol-cache.
12819 Install new_objfile, free_objfile observers.
12820
e700d1b2
JB
128212015-01-31 Joel Brobecker <brobecker@adacore.com>
12822
12823 PR symtab/17855
12824 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12825 to end.
12826
9f050062
DE
128272015-01-31 Doug Evans <xdje42@gmail.com>
12828
12829 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12830 * auto-load.c: #include ctype.h.
12831 (struct auto_load_pspace_info): Replace member loaded_scripts with
12832 new members loaded_script_files, loaded_script_texts.
12833 (auto_load_pspace_data_cleanup): Update.
12834 (init_loaded_scripts_info): Update.
12835 (get_auto_load_pspace_data_for_loading): Update.
12836 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12837 updated.
12838 (maybe_add_script_text): New function.
12839 (clear_section_scripts): Update.
12840 (source_script_file, execute_script_contents): New functions.
12841 (source_section_scripts): Add support for
12842 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12843 (print_scripts): New function.
12844 (auto_load_info_scripts): Also print inlined scripts.
12845 (maybe_print_unsupported_script_warning): Renamed from
12846 unsupported_script_warning_print. All callers updated.
12847 (maybe_print_script_not_found_warning): Renamed from
12848 script_not_found_warning_print. All callers updated.
12849 * extension-priv.h (struct extension_language_script_ops): New member
12850 objfile_script_executor.
12851 * extension.c (ext_lang_objfile_script_executor): New function.
12852 * extension.h (objfile_script_executor_func): New typedef.
12853 (ext_lang_objfile_script_executor): Declare.
12854 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12855 * guile/guile.c (guile_extension_script_ops): Update.
12856 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12857 * python/python.c (python_extension_script_ops): Update.
12858 (gdbpy_execute_objfile_script): New function.
12859
312809f8
EZ
128602015-01-31 Eli Zaretskii <eliz@gnu.org>
12861
12862 * tui/tui-io.c (tui_expand_tabs): New function.
12863 (tui_puts, tui_redisplay_readline): Expand TABs into the
12864 appropriate number of spaces.
12865 * tui/tui-regs.c: Include tui-io.h.
12866 (tui_register_format): Call tui_expand_tabs to expand TABs into
12867 the appropriate number of spaces.
12868 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12869
b6577aab
DE
128702015-01-30 Doug Evans <dje@google.com>
12871
12872 * NEWS: "info source" command now display producer string if present.
12873 * source.c (source_info): Print producer string if present.
12874
6da58d3e
SM
128752015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12876
12877 * varobj.c (varobj_delete): Fix comment.
12878
837ce252
SM
128792015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12880
12881 * varobj.c (create_child): Modify comment.
12882
b09e2c59
SM
128832015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12884
12885 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12886 parameter.
12887 (ada_name_of_variable): Same.
12888 (ada_path_expr_of_child): Same.
12889 (ada_value_of_variable): Same.
12890 (ada_value_is_changeable_p): Same.
12891 (ada_value_has_mutated): Same.
12892 * c-varobj.c (varobj_is_anonymous_child): Same.
12893 (c_is_path_expr_parent): Same.
12894 (c_number_of_children): Same.
12895 (c_name_of_variable): Same.
12896 (c_path_expr_of_child): Same.
12897 (get_type): Same.
12898 (c_value_of_variable): Same.
12899 (cplus_number_of_children): Same.
12900 (cplus_name_of_variable): Same.
12901 (cplus_path_expr_of_child): Same.
12902 (cplus_value_of_variable): Same.
12903 * jv-varobj.c (java_number_of_children): Same.
12904 (java_name_of_variable): Same.
12905 (java_path_expr_of_child): Same.
12906 (java_value_of_variable): Same.
12907 * varobj.c (number_of_children): Same.
12908 (name_of_variable): Same.
12909 (is_root_p): Same.
12910 (varobj_ensure_python_env): Same.
12911 (varobj_get_objname): Same.
12912 (varobj_get_expression): Same.
12913 (varobj_get_display_format): Same.
12914 (varobj_get_display_hint): Same.
12915 (varobj_has_more): Same.
12916 (varobj_get_thread_id): Same.
12917 (varobj_get_frozen): Same.
12918 (dynamic_varobj_has_child_method): Same.
12919 (varobj_get_gdb_type): Same.
12920 (is_path_expr_parent): Same.
12921 (varobj_default_is_path_expr_parent): Same.
12922 (varobj_get_language): Same.
12923 (varobj_get_attributes): Same.
12924 (varobj_is_dynamic_p): Same.
12925 (varobj_get_child_range): Same.
12926 (varobj_value_has_mutated): Same.
12927 (varobj_get_value_type): Same.
12928 (number_of_children): Same.
12929 (name_of_variable): Same.
12930 (check_scope): Same.
12931 (varobj_editable_p): Same.
12932 (varobj_value_is_changeable_p): Same.
12933 (varobj_floating_p): Same.
12934 (varobj_default_value_is_changeable_p): Same.
12935
2568868e
SM
129362015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12937
12938 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12939 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12940 child->path_expr.
12941 (cplus_path_expr_of_child): Same.
12942
ca83fa81
SM
129432015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12944
12945 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12946 result.
12947 (mi_cmd_var_info_expression): Same.
12948 * varobj.c (varobj_get_expression): Mention in the comment that
12949 the result must by freed by the caller.
12950
afa269ae
SM
129512015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12952
12953 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12954 varobj_get_type.
12955 (varobj_update_one): Same.
12956 * varobj.c (update_type_if_necessary): Free curr_type_str and
12957 new_type_str.
12958 (varobj_get_type): Specify in comment that the result needs to be
12959 freed by the caller.
12960
cd366ee8
DE
129612015-01-29 Doug Evans <dje@google.com>
12962
12963 PR symtab/17890
12964 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12965
38360086
MW
129662015-01-25 Mark Wielaard <mjw@redhat.com>
12967
12968 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12969 * utils.c (producer_is_gcc_ge_4): Likewise.
12970 (producer_is_gcc): New function.
12971 * utils.h (producer_is_gcc): New declaration.
12972
df25ebbd
JB
129732015-01-29 Joel Brobecker <brobecker@adacore.com>
12974
12975 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12976 kind.
12977 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12978 parameter by "addr_stack" parameter.
12979 (resolve_dynamic_range): Replace "addr" parameter by
12980 "stack_addr" parameter. Update function documentation.
12981 Update code accordingly.
12982 (resolve_dynamic_array, resolve_dynamic_union)
12983 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12984 (resolve_dynamic_type): Update code, following the changes made
12985 to resolve_dynamic_type_internal's interface.
12986 * dwarf2loc.h (struct property_addr_info): New.
12987 (dwarf2_evaluate_property): Replace "address" parameter
12988 by "addr_stack" parameter. Adjust function documentation.
12989 (struct dwarf2_offset_baton): New.
12990 (struct dwarf2_property_baton): Update documentation of
12991 field "referenced_type" to be more general. New field
12992 "offset_info" in union data field.
12993 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12994 parameter by "addr_stack" parameter. Adjust code accordingly.
12995 Add support for PROP_ADDR_OFFSET properties.
12996 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12997 DW_AT_data_member_location attributes as well. Use case
12998 statements instead of if/else condition.
12999
4a0ca9ec
JB
130002015-01-29 Joel Brobecker <brobecker@adacore.com>
13001
13002 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13003 Return zero if PARENT_VALUE is NULL and parent_type's
13004 range type is dynamic.
13005
ddb87a81
JB
130062015-01-29 Joel Brobecker <brobecker@adacore.com>
13007
13008 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13009 nonzero if the type's subtype is dynamic.
13010 (resolve_dynamic_range): Also resolve the range's subtype.
13011
3d7ad9b4 130122015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 13013
3d7ad9b4 13014 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
13015 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13016
3a8b707a
DE
130172015-01-27 Doug Evans <dje@google.com>
13018
13019 * NEWS: Mention gdb.Objfile.username.
13020 * python/py-objfile.c (objfpy_get_username): New function.
13021 (objfile_getset): Add "username".
13022
d35b90fb
MW
130232015-01-24 Mark Wielaard <mjw@redhat.com>
13024
13025 * stack.c (return_command): Markup warning message with _.
13026
734ae125
DE
130272015-01-24 Doug Evans <xdje42@gmail.com>
13028
13029 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13030
527f3840
JK
130312015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13032
13033 Fix 100x slowdown regression on DWZ files.
13034 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13035 (struct line_header): Add offset and offset_in_dwz.
13036 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13037 (free_line_header_voidp): New declaration.
13038 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13039 functions.
13040 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13041 (handle_DW_AT_stmt_list): Use line_header_hash.
13042 (free_line_header_voidp): New function.
13043 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13044 (dwarf_decode_lines): New parameter decode_mapping, use it.
13045 (dwarf2_free_objfile): Free line_header_hash.
13046
f7e5394d
SM
130472015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13048
13049 PR gdb/17416
13050 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13051 value_ind.
13052
743649fd
MW
130532015-01-15 Mark Wielaard <mjw@redhat.com>
13054
13055 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13056 DW_AT_noreturn.
13057 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13058 calling_convention an 8 bit bit field.
13059 (TYPE_NO_RETURN): New macro.
13060 * infcmd.c (finish_command): Query if function does not return
13061 normally.
13062 * stack.c (return_command): Likewise.
13063
198297aa
PA
130642015-01-23 Pedro Alves <palves@redhat.com>
13065
13066 * linux-nat.c (linux_is_async_p): New macro.
13067 (linux_nat_is_async_p):
13068 (linux_nat_terminal_inferior): Check whether the target can async
13069 instead of whether it is already async.
13070 (linux_nat_terminal_ours): Don't check whether the target is
13071 async.
13072 (linux_async_pipe): Use linux_is_async_p.
13073
253828f1
JK
130742015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13075
13076 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13077 '-ascending'.
13078 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13079 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13080 Sort tp_array using tp_array_compar.
13081 (_initialize_thread): Extend thread_apply_all_command help.
13082
f0e8c4c5
JK
130832015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13084
13085 * corelow.c (core_open): Call also thread_command.
13086 * gdbthread.h (thread_command): New prototype moved from ...
13087 * thread.c (thread_command): ... here.
13088 (thread_command): Make it global.
13089
03b79603
PA
130902015-01-22 Pedro Alves <palves@redhat.com>
13091
13092 * configure.ac [*mingw32*]: Check $curses_found instead of
13093 $prefer_curses.
13094 * configure: Regenerate.
13095 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13096 HAVE_NCURSES_NCURSES_H checks.
13097
6b8a872f
EZ
130982015-01-22 Eli Zaretskii <eliz@gnu.org>
13099
bbbbffbb 13100 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
13101 fails with the 1st arg NULL, try again with "unknown". Don't test
13102 the "cup" capability: it isn't supported by the Windows port of
13103 ncurses, but the Windows console driver is still capable of
13104 supporting TUI.
13105
4b62a76e
JK
131062015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13107
13108 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13109
82a864f9
EZ
131102015-01-22 Eli Zaretskii <eliz@gnu.org>
13111
13112 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13113 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13114 reason that "make TAGS" is broken.
13115
b35018fd
CG
131162015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13117
13118 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13119 and check additional store instructions.
13120
ffbc4646
WW
131212015-01-21 Wei-cheng Wang <cole945@gmail.com>
13122
13123 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13124
ddeca1df
WW
131252015-01-21 Wei-cheng Wang <cole945@gmail.com>
13126
13127 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13128 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13129 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13130 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13131 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13132 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13133 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13134 ppc_process_record_op19, ppc_process_record_op31,
13135 ppc_process_record_op59, ppc_process_record_op60,
13136 ppc_process_record_op63): Likewise.
13137
049bb5de
JB
131382015-01-20 Joel Brobecker <brobecker@adacore.com>
13139
13140 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13141 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13142 strerror.
13143
42b87c63 131442015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
13145
13146 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13147 ppc_process_record_op31, ppc_process_record_op59,
13148 ppc_process_record_op60, ppc_process_record_op63,
13149 ppc_process_record): Fix -Wformat warning.
13150 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13151 Remove unused variables.
13152
569340fc
CG
131532015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13154
13155 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13156
63413d85
EZ
131572015-01-19 Eli Zaretskii <eliz@gnu.org>
13158
13159 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13160 CONFIG_OBS if not building with a curses library.
13161 * configure: Regenerate.
13162
13163 * windows-termcap.c: Include defs.h. Make the whole body empty if
13164 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13165 HAVE_NCURSES_NCURSES_H is defined.
13166
16d8013c
JB
131672015-01-19 Joel Brobecker <brobecker@adacore.com>
13168
13169 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13170 from end of line to start of next line.
13171
cf90fd9a
WW
131722015-01-17 Wei-cheng Wang <cole945@gmail.com>
13173
13174 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13175 Scan PLT stub backward for reverse debugging.
13176 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13177
b4cdae6f
WW
131782015-01-17 Wei-cheng Wang <cole945@gmail.com>
13179 Ulrich Weigand <uweigand@de.ibm.com>
13180
13181 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13182 gdb_target_obs.
13183 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13184 record.
13185 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13186 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13187 (ppc_linux_init_abi): Set process_record, process_record_signal.
13188 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13189 ppc_linux_record_tdep to gdbarch_tdep.
13190 (ppc_process_record): New declaration.
13191 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13192 ppc_process_record_op19, ppc_process_record_op31,
13193 ppc_process_record_op59, ppc_process_record_op60,
13194 ppc_process_record_op63, ppc_process_record): New functions.
13195
2608dbf8
WW
131962015-01-17 Wei-cheng Wang <cole945@gmail.com>
13197
13198 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13199 rs6000_in_function_epilogue_frame_p and add an argument
13200 for frame_info.
13201 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
13202 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
13203 New functions.
13204 (rs6000_epilogue_frame_unwind): New.
13205 (rs6000_gdbarch_init): Append epilogue unwinder.
13206
4c347be6
SDJ
132072015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13208
13209 * nat/linux-personality.c: Replace "#ifndef
13210 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
13211 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
13212 systems.
13213
9f2850ba
EZ
132142015-01-16 Eli Zaretskii <eliz@gnu.org>
13215
6cdb25f4
EZ
13216 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13217 functions.
13218 (_initialize_tui_win) <border-kind, border-mode>:
13219 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
13220 (tui_set_tab_width_command): Fix the commentary.
13221
6cdb25f4
EZ
13222 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13223
bf555842
EZ
13224 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13225 Doc fix.
cb86fcc1
EZ
13226 (tui_set_tab_width_command): Delete and recreate the source and
13227 the disassembly windows, to show the effect of the changed tab
13228 size immediately.
bf555842 13229
9f2850ba
EZ
13230 * tui/tui-data.h (LINE_PREFIX): Make shorter
13231 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13232 "Thread NNNNN.XXXX" thread ID notation on Windows.
13233
95761b2d
JK
132342015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13235
13236 Fix gcc-5 compilation.
13237 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13238
8cc73a39
SDJ
132392015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13240
13241 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13242 (linux-personality.o): New rule.
13243 * common/common-defs.h: Include <stdint.h>.
13244 * config/aarch64/linux.mh (NATDEPFILES): Include
13245 linux-personality.o.
13246 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13247 * config/arm/linux.mh (NATDEPFILES): Likewise.
13248 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13249 * config/i386/linux.mh (NATDEPFILES): Likewise.
13250 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13251 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13252 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13253 * config/mips/linux.mh (NATDEPFILES): Likewise.
13254 * config/pa/linux.mh (NATDEPFILES): Likewise.
13255 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13256 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13257 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13258 * config/s390/linux.mh (NATDEPFILES): Likewise.
13259 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13260 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13261 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13262 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13263 * defs.h: Remove #include <stdint.h> (moved to
13264 common/common-defs.h).
13265 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13266 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13267 nat/linux-personality.c).
13268 (linux_nat_create_inferior): Remove code to disable address space
13269 randomization (moved to nat/linux-personality.c). Create cleanup
13270 to disable address space randomization.
13271 * nat/linux-personality.c: New file.
13272 * nat/linux-personality.h: Likewise.
13273
fb23d554
SDJ
132742015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13275
13276 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13277 common/posix-strerror.c.
13278 (posix-strerror.o): New rule.
13279 (mingw-strerror.o): Likewise.
13280 * common/common-utils.h (safe_strerror): Move prototype to here,
13281 from utils.h.
13282 * common/common.host: New file.
13283 * common/mingw-strerror.c: Likewise.
13284 * common/posix-strerror.c: Likewise.
13285 * configure: Regenerated.
13286 * configure.ac: Source common/common.host. Add variable
13287 common_host_obs to gdb_host_obs.
13288 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13289 gdb/common/posix-strerror.c when warning about the use of
13290 strerror.
13291 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13292 common/mingw-strerror.c.
13293 * posix-hdep.c (safe_strerror): Remove definition; move it to
13294 common/posix-hdep.c.
13295 * utils.h (safe_strerror): Remove prototype; move to
13296 common/common-utils.h.
13297
3af8af43
JB
132982015-01-15 Joel Brobecker <brobecker@adacore.com>
13299
13300 GDB 7.8.2 released.
13301
bafffb51
JB
133022015-01-15 Joel Brobecker <brobecker@adacore.com>
13303
13304 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13305 ___XA type if the array has already been fixed.
13306
cdf43629
YQ
133072015-01-14 Yao Qi <yao@codesourcery.com>
13308
13309 * Makefile.in (ppc-linux.o): New rule.
13310 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13311 * configure.ac: AC_CHECK_FUNCS(getauxval).
13312 * config.in: Re-generated.
13313 * configure: Re-generated.
13314 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13315 Declare.
13316 * nat/ppc-linux.c: New file.
13317 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13318 Call ppc64_64bit_inferior_p.
13319
514c5338
YQ
133202015-01-14 Yao Qi <yao@codesourcery.com>
13321
13322 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13323 nat/ppc-linux.h.
13324 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13325 (PPC_FEATURE_HAS_DFP): Likewise.
13326 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13327 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13328 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13329 Include "nat/ppc-linux.h".
13330 * nat/ppc-linux.h: New file.
13331 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13332
5589af0e
PA
133332015-01-14 Pedro Alves <palves@redhat.com>
13334
13335 PR gdb/17525
13336 * breakpoint.c: Include "interps.h".
13337 (bpstat_do_actions_1): Also check whether the interpreter is
13338 async.
13339
6c400b59
PA
133402015-01-14 Pedro Alves <palves@redhat.com>
13341
13342 PR cli/17828
13343 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13344 reinstall if the interpreter is sync.
13345
e02c96a7
DE
133462015-01-13 Doug Evans <dje@google.com>
13347
13348 * objfiles.c (objfile_filename): New function.
13349 * objfiles.h (objfile_filename): Declare it.
13350 (objfile_name): Add function comment.
13351 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13352 bfd file name (which may be realpath'd), and the original name.
13353
3b2f13ff
JB
133542015-01-13 Joel Brobecker <brobecker@adacore.com>
13355
13356 * NEWS: Create a new section for the next release branch.
13357 Rename the section of the current branch, now that it has
13358 been cut.
13359
b4cfe7f8
JB
133602015-01-13 Joel Brobecker <brobecker@adacore.com>
13361
13362 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13363 * version.in: Bump version to 7.9.50.DATE-cvs.
13364
92fc2e69
JB
133652015-01-13 Joel Brobecker <brobecker@adacore.com>
13366
13367 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13368 Remove trailing new-line in argument of call to warning.
13369
f71f0b0d
JB
133702015-01-13 Joel Brobecker <brobecker@adacore.com>
13371
13372 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13373 new-line in argument of call to "warning".
13374
04dccad0
JB
133752015-01-13 Joel Brobecker <brobecker@adacore.com>
13376
13377 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13378 in static block, then try searching for primitive types.
13379
08b13bdd
PP
133802015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13381
13382 * top.h (gdb_add_history): Declare.
13383 * top.c (command_count): New variable.
13384 (gdb_add_history): New function.
13385 (gdb_safe_append_history): New static function.
13386 (quit_force): Call it.
13387 (command_line_input): Use gdb_add_history instead of
13388 add_history.
13389 * event-top.c (command_line_handler): Likewise.
13390
4ac15b59
JC
133912015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13392
13393 PR gdb/17046
13394 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13395 <setjmp.h> #include.
13396
005e54bb
DE
133972015-01-11 Doug Evans <xdje42@gmail.com>
13398
13399 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13400
439250fb
DE
134012015-01-11 Doug Evans <xdje42@gmail.com>
13402
13403 PR gdb/15830
13404 * NEWS: The "maint demangle" command is renamed as "demangle".
13405 * demangle.c: #include cli/cli-utils.h, language.h.
13406 (demangle_command): New function.
13407 (_initialize_demangle): Add new command "demangle".
13408 * maint.c (maintenance_demangle): Stub out.
13409 (_initialize_maint_cmds): Update help text for "maint demangle",
13410 and mark as deprecated.
13411
ebf3aa72
MK
134122015-01-11 Mark Kettenis <kettenis@gnu.org>
13413
13414 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13415 inferior_thread is a function.
13416
6bf045cd
PP
134172015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13418
13419 * Makefile.in (.y.c): Don't munge yacc's #line
13420 directives.
13421
588dcc3e
PP
134222015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13423
13424 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13425 to prompt for input.
13426 * tui/tui-hooks.c (tui_query_hook): Remove.
13427 (tui_install_hooks): Don't set deprecated_query_hook.
13428 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13429 height calculation. Always update the command window's cur_line.
13430
9c02b525
PA
134312015-01-09 Pedro Alves <palves@redhat.com>
13432
13433 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13434 function.
13435 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13436 declaration.
13437 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13438 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13439 stop_reason.
13440 (check_stopped_by_watchpoint): New function.
13441 (save_sigtrap): Reimplement.
13442 (linux_nat_stopped_by_watchpoint): Adjust.
13443 (linux_nat_lp_status_is_event): Delete.
13444 (stop_wait_callback): Only call save_sigtrap after storing the
13445 pending status.
13446 (status_callback): If the thread had been stopped for a breakpoint
13447 that has since been removed, discard the event and resume the LWP.
13448 (count_events_callback, select_event_lwp_callback): Use
13449 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13450 (cancel_breakpoint): Rename to ...
13451 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13452 stopped for a software breakpoint or hardware breakpoint.
13453 (select_event_lwp): Only give preference to the stepping LWP in
13454 all-stop mode. Adjust comments.
13455 (stop_and_resume_callback): Remove references to new_pending_p.
13456 (linux_nat_filter_event): Likewise. Leave exit events of the
13457 leader thread pending here. Handle signal short circuiting here.
13458 Only call save_sigtrap after storing the pending waitstatus.
13459 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13460 new_pending. Don't handle leaving events the caller is not
13461 interested in pending here, nor handle signal short-circuiting
13462 here. Also give equal priority to all LWPs that have had events
13463 in non-stop mode. If reporting a software breakpoint event,
13464 unadjust the LWP's PC.
13465 * linux-nat.h (enum lwp_stop_reason): New.
13466 (struct lwp_info) <stop_pc>: New field.
13467 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13468 (struct lwp_info) <stop_reason>: New field.
13469 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13470
8af756ef
PA
134712015-01-09 Pedro Alves <palves@redhat.com>
13472
13473 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13474 Set the LWP's 'resumed' flag.
13475
8a99810d
PA
134762015-01-09 Pedro Alves <palves@redhat.com>
13477
13478 * linux-nat.c (linux_resume_one_lwp): New function.
13479 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13480 (linux_nat_resume): Use lwp_status_pending_p and
13481 linux_resume_one_lwp.
13482 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13483 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13484 (status_callback, running_callback): Use lwp_status_pending_p.
13485 (lwp_status_pending_p): New function.
13486 (stop_and_resume_callback): Use lwp_status_pending_p.
13487 (linux_nat_filter_event): Use linux_resume_one_lwp.
13488 (linux_nat_wait_1): Always use status_callback to look for an LWP
13489 with a pending status. Use linux_resume_one_lwp.
13490 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13491 linux_resume_one_lwp.
13492
f7ce857f
PA
134932015-01-09 Pedro Alves <palves@redhat.com>
13494
13495 * breakpoint.c (bp_location_inserted_here_p): New function,
13496 factored out from ...
13497 (breakpoint_inserted_here_p): ... here. Use
13498 ALL_BP_LOCATIONS_AT_ADDR.
13499 (software_breakpoint_inserted_here_p): Use
13500 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13501
c1a747c1
PA
135022014-01-09 Pedro Alves <palves@redhat.com>
13503
13504 Skip enabling event reporting if the kernel supports
13505 PTRACE_EVENT_CLONE.
13506 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13507 (thread_db_use_events): New function.
13508 (try_thread_db_load_1): Check thread_db_use_events before enabling
13509 event reporting.
13510 (update_thread_state): New function.
13511 (attach_thread): Use it. Check thread_db_use_events before
13512 enabling event reporting.
13513 (thread_db_detach): Check thread_db_use_events before disabling
13514 event reporting.
13515 (find_new_threads_callback): Check thread_db_use_events before
13516 enabling event reporting. Update the thread's state if not using
13517 libthread_db events.
13518
a33e3959
PA
135192015-01-09 Pedro Alves <palves@redhat.com>
13520
13521 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13522 about to wait for is > 0.
13523 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13524 the kernel thread ID is -1.
13525
8784d563
PA
135262015-01-09 Pedro Alves <palves@redhat.com>
13527
13528 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13529 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13530 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13531 ptrace option flags.
13532 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13533 field.
13534 * nat/linux-procfs.c: Include <dirent.h>.
13535 (linux_proc_get_int): New parameter "warn". Handle it.
13536 (linux_proc_get_tgid): Adjust.
13537 (linux_proc_get_tracerpid): Rename to ...
13538 (linux_proc_get_tracerpid_nowarn): ... this.
13539 (linux_proc_pid_get_state): New function, factored out from
13540 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13541 and handle it.
13542 (linux_proc_pid_is_gone): New function.
13543 (linux_proc_pid_is_stopped): Adjust.
13544 (linux_proc_pid_is_zombie_maybe_warn)
13545 (linux_proc_pid_is_zombie_nowarn): New functions.
13546 (linux_proc_pid_is_zombie): Use
13547 linux_proc_pid_is_zombie_maybe_warn.
13548 (linux_proc_attach_tgid_threads): New function.
13549 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13550 (linux_proc_get_tracerpid): Rename to ...
13551 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13552 (linux_proc_pid_is_gone): New declaration.
13553 (linux_proc_pid_is_zombie): Update comment.
13554 (linux_proc_pid_is_zombie_nowarn): New declaration.
13555 (linux_proc_attach_lwp_func): New typedef.
13556 (linux_proc_attach_tgid_threads): New declaration.
13557 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13558 use nowarn functions.
13559 (linux_ptrace_attach_fail_reason_string): Move here from
13560 gdbserver/linux-low.c and rename.
13561 (ptrace_supports_feature): If the current ptrace options are not
13562 known yet, check them now, instead of asserting.
13563 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13564 Declare.
13565
883ed13e
PA
135662015-01-09 Pedro Alves <palves@redhat.com>
13567
13568 * linux-thread-db.c (thread_db_find_new_threads_silently)
13569 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13570 (find_new_threads_once): Print debug output on gdb_stdlog.
13571
1710aab8
CG
135722015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13573 Pedro Alves <palves@redhat.com>
13574
13575 * compile/compile.c: Include "gdb_wait.h".
13576 (do_rmdir): Check return value, and free 'zap'.
13577
b597c318
YQ
135782015-01-08 Pedro Alves <palves@redhat.com>
13579 Yao Qi <yao@codesourcery.com>
13580
13581 * dwarf2loc.c (indirect_pieced_value): Don't call
13582 gdb_sign_extend. Call extract_signed_integer instead.
13583 * utils.c (gdb_sign_extend): Remove.
13584 * utils.h (gdb_sign_extend): Remove declaration.
13585
025ac414
PM
135862015-01-07 Pierre Muller <muller@sourceware.org>
13587
13588 PR symtab/17811
13589 * stabsread.c (define_symbol): Set language for C++ special symbols.
13590
fa5af12a
PP
135912015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13592
13593 * inflow.c (initial_gdb_ttystate): Tweak comment.
13594
ea42d6f8
JB
135952015-01-07 Joel Brobecker <brobecker@adacore.com>
13596
13597 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13598 comment documenting function.
13599
6a06d660
PP
136002015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13601
13602 * terminal.h (set_initial_gdb_ttystate): Declare.
13603 * inflow.c (initial_gdb_ttystate): New static variable.
13604 (set_initial_gdb_ttystate): New setter.
13605 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13606 instead of our current terminal state.
13607 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13608
e810d75b
JB
136092015-01-07 Joel Brobecker <brobecker@adacore.com>
13610
13611 * guile/scm-type.c (tyscm_array_1): Add comment.
13612 * python/py-type.c (typy_array_1): Add comment.
13613
fce10a84
JB
136142015-01-06 Joel Brobecker <brobecker@adacore.com>
13615
13616 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13617 error if N2 is equal to N1 - 1.
13618
8503d6e1
JB
136192015-01-06 Joel Brobecker <brobecker@adacore.com>
13620
13621 * python/py-type.c (typy_array_1): Do not raise negative-length
13622 exception if N2 is equal to N1 - 1.
13623
4d29c0a8
DE
136242015-01-03 Doug Evans <xdje42@gmail.com>
13625
13626 * c-exp.y: Whitespace cleanup.
13627 (classify_inner_name): Remove extra ;.
13628
eaa6a9a4
MR
136292015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13630
13631 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13632 offset signed.
13633
02fe9972
DE
136342015-01-02 Doug Evans <dje@google.com>
13635
13636 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13637
e2ada9cb
DE
136382015-01-02 Doug Evans <dje@google.com>
13639
13640 * symtab.h (struct symbol): Fix typo in comment.
13641
32d0add0
JB
136422015-01-01 Joel Brobecker <brobecker@adacore.com>
13643
13644 Update year range in copyright notice of all files.
13645
76f2b779
JB
136462015-01-01 Joel Brobecker <brobecker@adacore.com>
13647
13648 * top.c (print_gdb_version): Update copyright year to 2015.
13649
077309e2 136502015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 13651
077309e2 13652 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 13653
077309e2 13654For older changes see ChangeLog-2014.
c906108c
SS
13655\f
13656Local Variables:
13657mode: change-log
13658left-margin: 8
13659fill-column: 74
13660version-control: never
57da7796 13661coding: utf-8
c906108c 13662End:
This page took 2.518832 seconds and 4 git commands to generate.