infinite loop stopping at "pop" insn on x64-windows
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-11-23 Joel Brobecker <brobecker@adacore.com>
2
3 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
4 Increment PC in while loop skipping "pop reg" instructions.
5
6 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7
8 * arm-tdep.c (arm_exidx_unwind_sniffer): Do not check for a frame
9 stuck on a system call if the given frame is the innermost frame.
10
11 2015-11-23 Joel Brobecker <brobecker@adacore.com>
12
13 * dwarf2read.c (read_structure_type): Set the type's length
14 to zero if it has a DW_AT_byte_size attribute which is not
15 a constant.
16
17 2015-11-23 Tristan Gingold <gingold@adacore.com>
18
19 * darwin-nat.c (darwin_ptrace): Avoid a cast.
20 (darwin_resume_thread): Ditto. And always set or reset
21 single step.
22
23 2015-11-23 Tristan Gingold <gingold@adacore.com>
24
25 * darwin-nat.c (darwin_read_dyld_info): Write address in
26 big-endian order.
27 * solib-darwin.c (darwin_validate_exec_header): New function,
28 extracted from...
29 (darwin_read_exec_load_addr_from_dyld): ...here.
30 (darwin_read_exec_load_addr_at_init): New function.
31 (darwin_solib_read_all_image_info_addr): Adjust after
32 darwin_read_dyld_info change.
33 (darwin_solib_create_inferior_hook): Support PIE.
34
35 2015-11-23 Tristan Gingold <gingold@adacore.com>
36
37 * darwin-nat.c (darwin_ptrace): Add a cast to fix warning.
38 (darwin_resume, cancel_breakpoint, _initialize_darwin_inferior):
39 Likewise.
40 (darwin_read_write_inferior): Rewrite using mach_vm_read_overwrite.
41
42 2015-11-19 Don Breazeal <donb@codesourcery.com>
43
44 * target.c (read_memory_robust): Call read_whatever_is_readable
45 with arguments in the correct order.
46
47 2015-11-19 Pedro Alves <palves@redhat.com>
48
49 * remote.c (remote_query_supported): Send the "xmlRegisters="
50 feature last.
51
52 2015-11-19 Simon Marchi <simon.marchi@ericsson.com>
53
54 * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
55 form of iov_len computation.
56
57 2015-11-19 Pedro Alves <palves@redhat.com>
58
59 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
60 mode.
61 * configure: Regenerate.
62
63 2015-11-19 Pedro Alves <palves@redhat.com>
64
65 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
66 * configure: Regenerate.
67
68 2015-11-19 Pedro Alves <palves@redhat.com>
69
70 * breakpoint.c (software_watchpoint_add_no_memory_location)
71 (is_no_memory_software_watchpoint): New functions.
72 (update_watchpoint): Use
73 software_watchpoint_add_memoryless_location.
74 (breakpoint_address_bits): Use is_no_memory_software_watchpoint.
75
76 2015-11-19 Simon Marchi <simon.marchi@ericsson.com>
77 Pedro Alves <palves@redhat.com>
78
79 * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
80 intermediate 'int' variable.
81
82 2015-11-19 Pedro Alves <palves@redhat.com>
83
84 * linux-thread-db.c (try_thread_db_load_1): Add cast.
85
86 2015-11-19 Pedro Alves <palves@redhat.com>
87
88 * remote.c (remote_unpush_target): Use
89 pop_all_targets_at_and_above instead of pop_all_targets_above.
90 * target.c (unpush_target_and_assert): New function, factored out
91 from ...
92 (pop_all_targets_above): ... here.
93 (pop_all_targets_at_and_above): New function.
94 * target.h (pop_all_targets_at_and_above): Declare.
95
96 2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
97
98 * valops.c (value_string): Constify 'ptr' parameter.
99 * value.h (value_string): Constify 'ptr' parameter.
100
101 2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
102 Pedro Alves <palves@redhat.com>
103
104 * break-catch-sig.c (signal_catchpoint_print_one): Add cast.
105 * c-exp.y (parse_string_or_char, yylex): Add casts.
106 * c-lang.c (evaluate_subexp_c): Add casts.
107 * d-exp.y (parse_string_or_char, yylex): Add casts.
108 * go-exp.y (parse_string_or_char, build_packaged_name): Add casts.
109 * p-valprint.c (pascal_object_print_value_fields): Add casts.
110 * valprint.c (generic_emit_char, generic_printstr): Add casts.
111
112 2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
113
114 * valops.c (value_cstring): Constify 'ptr' parameter.
115 * value.h (value_cstring): Constify 'ptr' parameter.
116
117 2015-11-18 Yao Qi <yao.qi@linaro.org>
118
119 * aarch64-tdep.c (pass_in_v): Add argument len. Add local array
120 reg. Callers updated.
121
122 2015-11-17 Yao Qi <yao.qi@linaro.org>
123
124 * infrun.c (resume): Check control.trap_expected only
125 when deciding the set of threads to resume.
126
127 2015-11-17 Pedro Alves <palves@redhat.com>
128
129 * cp-namespace.c (cp_lookup_bare_symbol)
130 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
131 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
132 (cp_lookup_nested_symbol): Use null_block_symbol.
133 * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
134 (d_lookup_symbol_imports, d_lookup_symbol_module): Use
135 null_block_symbol.
136 * symtab.c (null_block_symbol): New global.
137 * symtab.h (null_block_symbol): Declare.
138
139 2015-11-17 Pedro Alves <palves@redhat.com>
140
141 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
142 (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
143 Replace __cplusplus checks with GDB_XCPT checks throughout.
144 * common/common-exceptions.c: Replace __cplusplus checks with
145 GDB_XCPT checks throughout.
146
147 2015-11-17 Pedro Alves <palves@redhat.com>
148
149 * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
150 _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
151
152 2015-11-17 Pedro Alves <palves@redhat.com>
153
154 * common/common-defs.h (__STDC_CONSTANT_MACROS)
155 (__STDC_LIMIT_MACROS): Define before including stdint.h.
156
157 2015-11-17 Pedro Alves <palves@redhat.com>
158
159 * windows-nat.c (handle_exception): Return 0 for first chance
160 exceptions.
161 (get_windows_debug_event): Adjust.
162
163 2015-11-17 Pedro Alves <palves@redhat.com>
164
165 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
166 signal number for terminator.
167
168 2015-11-17 Pedro Alves <palves@redhat.com>
169
170 * ser-tcp.c (net_open) : Cast getsockopt argument to char *
171 instead of void *. Update comment.
172 (net_read_prim): Cast recv argument to char * instead of void *.
173 (net_write_prim): Cast send argument to char *. Add comment.
174
175 2015-11-17 Pedro Alves <palves@redhat.com>
176
177 * win32-i386-low.c (update_debug_registers_callback)
178 (win32_get_current_dr): Add cast.
179 * win32-low.c (thread_rec, delete_thread_info)
180 (continue_one_thread): Add casts.
181 (strwinerror): Cast FormatMessage argument to LPTSTR instead of
182 LPVOID.
183 (win32_create_inferior, suspend_one_thread): Add casts.
184
185 2015-11-17 Pedro Alves <palves@redhat.com>
186
187 * windows-nat.c (AdjustTokenPrivileges_ftype)
188 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
189 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
190 (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
191 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
192 (GetConsoleFontSize_ftype): New typedefs.
193 (AdjustTokenPrivileges, DebugActiveProcessStop)
194 (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
195 (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
196 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
197 Adjust.
198 (GetModuleFileNameEx_ftype): New typedef.
199 (GetModuleFileNameEx): Use it.
200 (_initialize_loadable): Define GPA macro and use it.
201
202 2015-11-17 Pedro Alves <palves@redhat.com>
203
204 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
205 HMODULE.
206
207 2015-11-17 Pedro Alves <palves@redhat.com>
208
209 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
210 || __CYGWIN__]: Add casts.
211 * utils.c (gdb_filename_fnmatch): Add cast.
212 * windows-nat.c (windows_create_inferior): Add cast.
213
214 2015-11-17 Pedro Alves <palves@redhat.com>
215
216 * ser-mingw.c (CancelIo_ftype): New typedef.
217 (CancelIo): Use CancelIo_ftype.
218 (ser_windows_close, ser_windows_wait_handle)
219 (ser_windows_read_prim, stop_select_thread)
220 (console_select_thread, pipe_select_thread, file_select_thread)
221 (ser_console_wait_handle, ser_console_done_wait_handle)
222 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
223 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
224 (net_windows_socket_check_pending, net_windows_select_thread)
225 (net_windows_wait_handle, net_windows_done_wait_handle)
226 (net_windows_close): Add casts.
227 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
228 void*.
229
230 2015-11-17 Simon Marchi <simon.marchi@ericsson.com>
231
232 * c-exp.y (exp): Adjust, change enum c_string_type to
233 c_string_type.
234 (parse_string_or_char): Likewise.
235 * c-lang.c (charset_for_string_type): Likewise.
236 (classify_type): Likewise.
237 (c_printchar): Likewise.
238 (c_printstr): Likewise.
239 (evaluate_subexp_c): Likewise. And change cast to enum
240 c_string_type_values.
241 * c-lang.h: Include "common/enum_flags.h".
242 (enum c_string_type): Rename to...
243 (enum c_string_type_values): ...this.
244 (c_string_type): Define new enum flags type.
245
246 2015-11-17 Pedro Alves <palves@redhat.com>
247
248 * btrace.h: Include common/enum-flags.h.
249 (btrace_insn_flags): Define.
250 (struct btrace_insn) <flags>: Change type.
251 (btrace_function_flags): Define.
252 (struct btrace_function) <flags>: Change type.
253 (btrace_thread_flags): Define.
254 (struct btrace_thread_info) <flags>: Change type.
255 * c-exp.y (token_flags): Rename to ...
256 (token_flag): ... this.
257 (token_flags): Define.
258 (struct token) <flags>: Change type.
259 * common/enum-flags.h: New file.
260 * compile/compile-c-types.c (convert_qualified): Change type of
261 'quals' local.
262 * compile/compile-internal.h: Include "common/enum-flags.h".
263 (gcc_qualifiers_flags): Define.
264 * completer.c (enum reg_completer_targets): Rename to ...
265 (enum reg_completer_target): ... this.
266 (reg_completer_targets): Define.
267 (reg_or_group_completer_1): Change type of 'targets' parameter.
268 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
269 of 'psl_flags' local.
270 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
271 * infrun.c: Include "common/enum-flags.h".
272 (enum step_over_what): Rename to ...
273 (enum step_over_what_flag): ... this.
274 (step_over_what): Change type.
275 (start_step_over): Change type of 'step_what' local.
276 (thread_still_needs_step_over): Now returns a step_over_what.
277 Adjust.
278 (keep_going_pass_signal): Change type of 'step_what' local.
279 * linux-tdep.c: Include "common/enum-flags.h".
280 (enum filterflags): Rename to ...
281 (enum filter_flag): ... this.
282 (filter_flags): Define.
283 (dump_mapping_p): Change type of 'filterflags' parameter.
284 (linux_find_memory_regions_full): Change type of 'filterflags'
285 local.
286 (linux_find_memory_regions_full): Pass the address of an unsigned
287 int to sscanf instead of the address of an enum.
288 * record-btrace.c (btrace_print_lines): Change type of local
289 'psl_flags'.
290 (btrace_call_history): Replace 'flags' parameter
291 with 'int_flags' parameter. Adjust.
292 (record_btrace_call_history, record_btrace_call_history_range)
293 (record_btrace_call_history_from): Rename 'flags' parameter to
294 'int_flags'. Use record_print_flags.
295 * record.h: Include "common/enum-flags.h".
296 (record_print_flags): Define.
297 * source.c: Include "common/enum-flags.h".
298 (print_source_lines_base, print_source_lines): Change type of
299 flags parameter.
300 * symtab.h: Include "common/enum-flags.h".
301 (enum print_source_lines_flags): Rename to ...
302 (enum print_source_lines_flag): ... this.
303 (print_source_lines_flags): Define.
304 (print_source_lines): Change prototype.
305
306 2015-11-17 Pedro Alves <palves@redhat.com>
307
308 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
309 error instead of TARGET_XFER_E_IO.
310 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
311 memory_error.
312
313 2015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
314
315 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
316 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
317 value.
318 * dwarf2read.c (read_subrange_type): Likewise.
319
320 2015-11-16 Yao Qi <yao.qi@linaro.org>
321
322 * aarch64-tdep.c (aarch64_extract_return_value): Change array
323 buf's length to V_REGISTER_SIZE.
324
325 2015-11-16 Yao Qi <yao.qi@linaro.org>
326
327 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
328 from bfd_byte * to value *. Caller updated.
329 (pass_in_x): Likewise.
330 (pass_in_v_or_stack): Likewise.
331 (pass_on_stack): Likewise.
332
333 2015-11-16 Yao Qi <yao.qi@linaro.org>
334
335 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
336 instead of value_contents_writeable.
337 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
338
339 2015-11-16 Yao Qi <yao.qi@linaro.org>
340
341 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
342 to buf. Pass buf instead of val to push_stack_item.
343
344 2015-11-13 Yao Qi <yao.qi@linaro.org>
345
346 PR tdep/19051
347 * arm-tdep.c (arm_type_align): Return the right alignment
348 value for vector.
349 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
350 128-bit vector types.
351 (arm_return_in_memory): Handel vector type.
352
353 2015-11-13 Yao Qi <yao.qi@linaro.org>
354
355 * arm-tdep.c (arm_return_in_memory): Rewrite it.
356 (arm_return_value): Call arm_return_in_memory for
357 TYPE_CODE_COMPLEX.
358
359 2015-11-12 Yao Qi <yao.qi@linaro.org>
360
361 * arm-tdep.c (push_stack_item): Change contents type to
362 const gdb_byte *.
363
364 2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
365
366 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
367 cast to PTRACE_TYPE_RET *.
368 (inf_ptrace_store_register): Likewise.
369
370 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
373 info sub-commands.
374 * gnu-nat.c (add_task_commands): Likewise.
375 * macrocmd.c (_initialize_macrocmd): Likewise.
376
377 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * cli/cli-decode.c (add_info): Switch to class_info.
380
381 2015-11-09 Joel Brobecker <brobecker@adacore.com>
382
383 * ada-lang.c (ada_is_wrapper_field): Add special handling
384 for fields called "RETVAL".
385
386 2015-11-09 Yao Qi <yao.qi@linaro.org>
387
388 * arm-tdep.c (arm_exidx_new_objfile): Use
389 ELF_STRING_ARM_unwind.
390
391 2015-11-09 Yao Qi <yao.qi@linaro.org>
392
393 * infrun.c (displaced_step_in_progress_thread): New function.
394 (handle_inferior_event_1): Call it.
395
396 2015-11-05 Yao Qi <yao.qi@linaro.org>
397
398 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
399 aarch64_decode_insn and decode instruction by aarch64_inst.
400
401 2015-11-05 Yao Qi <yao.qi@linaro.org>
402
403 * aarch64-tdep.c (extract_signed_bitfield): Remove.
404 (decode_masked_match): Remove.
405 (aarch64_decode_add_sub_imm): Remove.
406 (aarch64_decode_br): Remove.
407 (aarch64_decode_eret): Remove.
408 (aarch64_decode_movz): Remove.
409 (aarch64_decode_orr_shifted_register_x): Remove.
410 (aarch64_decode_ret): Remove.
411 (aarch64_decode_stp_offset): Remove.
412 (aarch64_decode_stur): Remove.
413 (aarch64_analyze_prologue): Call aarch64_decode_insn
414 and use aarch64_inst to decode instructions.
415
416 2015-11-05 Yao Qi <yao.qi@linaro.org>
417
418 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
419 wback.
420 (aarch64_decode_stp_offset_wb): Removed.
421 (aarch64_analyze_prologue): Don't use
422 aarch64_decode_stp_offset_wb.
423
424 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
425
426 PR/18376
427 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
428 (s390_software_single_step): New function.
429 (s390_displaced_step_hw_singlestep): New function.
430 (s390_gdbarch_init): Fill gdbarch slots with the above.
431
432 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
433
434 PR/18376
435 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
436 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
437 (s390_linux_record_tdep): New static global variable.
438 (s390x_linux_record_tdep): New static global variable.
439 (s390_all_but_pc_registers_record): New function.
440 (s390_canonicalize_syscall): New function.
441 (s390_linux_syscall_record): New function.
442 (s390_linux_record_signal): New function.
443 (s390_record_calc_disp_common): New function.
444 (s390_record_calc_disp): New function.
445 (s390_record_calc_disp_vsce): New function.
446 (s390_record_calc_rl): New function.
447 (s390_record_gpr_g): New function.
448 (s390_record_gpr_h): New function.
449 (s390_record_vr): New function.
450 (s390_process_record): New function.
451 (s390_init_linux_record_tdep): New function.
452 (s390_gdbarch_init): Fill record function slots.
453
454 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
455
456 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
457 memory storage.
458
459 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
460
461 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
462 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
463 (_initialize_record): Document the /s modifier.
464 * NEWS: Announce record instruction-history's new /s modifier.
465
466 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
467
468 * record-btrace.c (struct btrace_line_range): New.
469 (btrace_mk_line_range, btrace_line_range_add)
470 (btrace_line_range_is_empty, btrace_line_range_contains_range)
471 (btrace_find_line_range, btrace_print_lines): New.
472 (btrace_insn_history): Add source interleaving algorithm.
473
474 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
475
476 * disasm.h (DISASSEMBLY_SPECULATION): New.
477 (struct disasm_insn): New.
478 (gdb_pretty_print_insn): New.
479 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
480 Update users. Print instruction number and indicate speculative
481 execution, if requested.
482
483 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
484
485 * disasm.c (dump_insns): Split into this and ...
486 (gdb_pretty_print_insn): ... this.
487
488 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
491 (xtensa_linux_fetch_inferior_registers): Likewise.
492 (xtensa_linux_store_inferior_registers): Likewise.
493
494 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * arm-linux-nat.c (arm_linux_read_description): Add cast.
497
498 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
499
500 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
501 type of rw to enum target_hw_bp_type.
502 (ppc_linux_remove_mask_watchpoint): Likewise.
503 * target.c (target_insert_mask_watchpoint): Likewise.
504 (target_remove_mask_watchpoint): Likewise.
505 * target.h (target_insert_mask_watchpoint): Likewise.
506 (target_remove_mask_watchpoint): Likewise.
507 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
508 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
509 * target-delegates.c: Regenerate.
510
511 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
514 (get_sim_inferior_data): Likewise.
515 (sim_inferior_data_cleanup): Likewise.
516 (gdbsim_close_inferior): Likewise.
517 (gdbsim_resume_inferior): Likewise.
518 (gdbsim_wait): Likewise.
519 (simulator_command): Likewise.
520 (sim_command_completer): Likewise.
521
522 2015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
523
524 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
525
526 2015-10-30 Pedro Alves <palves@redhat.com>
527
528 * breakpoint.c (breakpoint_in_range_p)
529 (breakpoint_location_address_range_overlap): New functions.
530 * breakpoint.h (breakpoint_in_range_p): New declaration.
531 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
532 in the scratch pad range, don't displaced step.
533
534 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
535
536 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
537 size_stack_t, size_size_t, size_iovec.
538
539 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
540
541 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
542 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
543 (amd64_x32_linux_init_abi): Fix size_termios.
544
545 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
546
547 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
548
549 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
550
551 * linux-record.c (record_linux_system_call): Fix old_select.
552
553 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
554
555 * linux-record.c (record_linux_system_call): Fix newstatat.
556
557 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
558
559 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
560
561 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
562
563 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
564 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
565 (amd64_x32_linux_init_abi): Add size_time_t.
566 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
567 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
568 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
569 handling.
570 * linux-record.h (struct linux_record_tdep): Add size_time_t.
571 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
572
573 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
574
575 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
576
577 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
578
579 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
580 size_dirent{,64}, add size_old_dirent.
581 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
582 add size_old_dirent.
583 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
584 size_old_dirent.
585 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
586 add size_old_dirent.
587 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
588 add size_old_dirent.
589 * linux-record.c (record_linux_system_call): Fix handling of readdir
590 and getdents{,64}.
591 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
592 add size_old_dirent.
593 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
594 size_dirent{,64}, add size_old_dirent.
595
596 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
597
598 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
599 size_sigset_t, size_old_sigaction, size_old_sigset_t.
600 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
601 size_sigset_t, size_old_sigaction, size_old_sigset_t.
602 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
603 size_old_sigaction, size_old_sigset_t.
604 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
605 size_old_sigaction, size_old_sigset_t.
606 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
607 size_old_sigaction, size_old_sigset_t.
608 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
609 size_sigset_t, size_old_sigaction, size_old_sigset_t.
610
611 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
612
613 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
614 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
615
616 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
617
618 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
619 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
620 (amd64_x32_linux_init_abi): Remove size_siginfo.
621 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
622 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
623 * linux-record.c (record_linux_system_call): Change size_siginfo
624 to size_siginfo_t.
625 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
626 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
627
628 2015-10-29 Pedro Alves <palves@redhat.com>
629
630 * mdebugread.c (add_data_symbol): New function, factored out from
631 ...
632 (parse_symbol): ... here. Delete 'theclass' local.
633
634 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * jit.c (jit_target_read_impl): Add cast.
637
638 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * jit.c (jit_reader_load): Add cast.
641
642 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * dwarf2read.c (partial_die_full_name): Add cast.
645
646 2015-10-29 Pedro Alves <palves@redhat.com>
647
648 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
649
650 2015-10-29 Pedro Alves <palves@redhat.com>
651
652 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
653
654 2015-10-29 Eli Zaretskii <eliz@gnu.org>
655
656 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
657 in the environment.
658
659 2015-10-29 Pedro Alves <palves@redhat.com>
660
661 * gnu-v2-abi.c (gnuv2_is_destructor_name)
662 (gnuv2_is_constructor_name): Add casts.
663
664 2015-10-29 Pedro Alves <palves@redhat.com>
665
666 * common/common-exceptions.c (exception_none): Add cast.
667
668 2015-10-29 Pedro Alves <palves@redhat.com>
669
670 * compile/compile-c-types.c (struct type_map_instance)
671 <gcc_type>: Rename to gcc_type_handle.
672 (insert_type, convert_type): Adjust.
673
674 2015-10-29 Pedro Alves <palves@redhat.com>
675
676 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
677 assume that "break" breaks out of a TRY/CATCH.
678 * python/py-framefilter.c (py_print_single_arg): Don't assume
679 "continue" breaks out of a TRY/CATCH.
680 * python/py-value.c (valpy_binop_throw): New function, factored
681 out from ...
682 (valpy_binop): ... this.
683 (valpy_richcompare_throw): New function, factored
684 out from ...
685 (valpy_richcompare): ... this.
686 * solib.c (solib_read_symbols): Don't assume "break" breaks out
687 of a TRY/CATCH.
688 * common/common-exceptions.h [USE_RAW_CXX_TRY]
689 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
690
691 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
692
693 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
694 as move along with [d]addu.
695
696 2015-10-28 Yao Qi <yao.qi@linaro.org>
697
698 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
699 aarch64_decode_insn.
700
701 2015-10-27 Pedro Alves <palves@redhat.com>
702
703 * common/print-utils.c (host_address_to_string): Rename to ...
704 (host_address_to_string_1): ... this.
705 * common/print-utils.h (host_address_to_string): Reimplement as
706 wrapper around host_address_to_string_1.
707 * utils.c (gdb_print_host_address): Rename to ...
708 (gdb_print_host_address_1): ... this.
709 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
710 around host_address_to_string_1.
711
712 2015-10-27 Pedro Alves <palves@redhat.com>
713
714 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
715 memory_error. Rename local 'status' to 'res'.
716 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
717 memory_error.
718 * corefile.c (read_stack, read_code, write_memory): Always pass
719 TARGET_XFER_E_IO to memory_error.
720 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
721 memory_error. Rename parameter 'status' to 'err'.
722 (dump_insns): Rename local 'status' to 'err'.
723 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
724 to 'errp'. Rename local 'status' to 'err'. Always pass
725 TARGET_XFER_E_IO to memory_error.
726 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
727 * target.c (target_read_memory, target_read_raw_memory)
728 (target_read_stack, target_read_code, target_write_memory)
729 (target_write_raw_memory): Return -1 on error instead of
730 TARGET_XFER_E_IO.
731 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
732 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
733
734 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * guile/guile-internal.h (gdbscm_with_guile): Change return
737 types to const char *.
738 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
739 (struct c_data) <func>: Likewise.
740 (struct c_data) <result>: Change type to const char *.
741 (scscm_eval_scheme_string): Change return type to
742 const char *.
743 (scscm_source_scheme_script): Likewise.
744 (gdbscm_safe_eval_string): Change type of result variable to
745 const char * and remove cast.
746 (gdbscm_safe_source_script): Likewise.
747 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
748 Change return type to const char *.
749 (gdbscm_disasm_read_memory): Change type of status to
750 const char *.
751
752 2015-10-27 Pedro Alves <palves@redhat.com>
753
754 * source.c (openp): New local 'last_errno'. Use it to
755 save/restore errno.
756
757 2015-10-27 Pedro Alves <palves@redhat.com>
758
759 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
760
761 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * ctf.c (SET_ENUM_FIELD): New macro.
764 (ctf_read_status): Use it.
765 (ctf_read_tp): Use it.
766
767 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
768
769 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
770 scm_t_dynwind_flags casts.
771 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
772 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
773 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
774
775 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * ax.h (ax_raw_byte): New declaration.
778 * ax-general.c (ax_raw_byte): New function.
779 (ax_simple): Use ax_raw_byte.
780 * ax-gdb.c (gen_printf): Likewise.
781
782 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
783
784 * ada-lang.h (GROW_VECT): Add cast.
785
786 2015-10-26 Doug Evans <xdje42@gmail.com>
787
788 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
789
790 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
791
792 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
793 pointer.
794 (simple_search_memory): Cast return of memmem.
795
796 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
797
798 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
799
800 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
803 -1 on error.
804
805 2015-10-26 Doug Evans <dje@google.com>
806
807 PR symtab/17391
808 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
809 instead of gdbarch_dwarf2_reg_to_regnum.
810 (dwarf2_frame_cache): Ditto.
811 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
812 gdbarch_dwarf2_reg_to_regnum.
813 (get_reg_value): Ditto.
814 (dwarf2_fetch_cfa_info): Ditto.
815 (dwarf2_frame_prev_register): Ditto.
816 * dwarf2loc.c: #include "complaints.h".
817 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
818 instead of gdbarch_dwarf2_reg_to_regnum.
819 (dwarf_expr_get_reg_value): Ditto.
820 (read_pieced_value): Ditto.
821 (write_pieced_value): Ditto.
822 (dwarf2_evaluate_loc_desc_full): Ditto.
823 (dwarf_reg_to_regnum): New function.
824 (throw_bad_regnum_error): New function.
825 (dwarf_reg_to_regnum_or_error): Renamed from
826 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
827 All callers updated. Call throw_bad_regnum_error.
828 (locexpr_regname): Improve text of bad register number.
829 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
830 (dwarf_reg_to_regnum_or_error): Update prototype.
831 * dwarf2expr.c: #include "dwarf2loc.h".
832 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
833 gdbarch_dwarf2_reg_to_regnum.
834 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
835 * gdbarch.h: Regenerate.
836 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
837 register.
838 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
839 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
840 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
841 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
842 Remove warning for bad register.
843 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
844 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
845 i386_svr4_reg_to_regnum. Return -1 for bad registers.
846 (i386_svr4_reg_to_regnum): New function.
847 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
848 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
849 on bad registers, return -1.
850 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
851 Remove warning for bad register.
852 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
853 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
854 Remove warning for bad register. Return -1 for bad register.
855 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
856 for bad register, return -1.
857 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
858 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
859 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
860 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
861 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
862 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
863 for bad regs.
864 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
865 bad regs. Fix error result.
866 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
867 (reg_value_complaint): Update complaint text.
868 * mdebugread.c (reg_value_complaint): New function.
869 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
870
871 2015-10-26 Doug Evans <dje@google.com>
872
873 PR python/18938
874 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
875 All callers updated.
876
877 2015-10-26 Doug Evans <dje@google.com>
878
879 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
880 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
881 (maintenance_print_psymbols): Print address map.
882
883 2015-10-26 Doug Evans <dje@google.com>
884
885 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
886
887 2015-10-26 Doug Evans <dje@google.com>
888
889 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
890 gdbserver/linux-low.c.
891 (WSETSTOP): Simplify.
892
893 2015-10-26 Doug Evans <dje@google.com>
894
895 * linux-thread-db.c (find_new_threads_callback): Ditto.
896 (thread_db_pid_to_str): Ditto.
897
898 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
899
900 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
901 local char array to scm_mode_bits, use a cast instead.
902
903 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
904
905 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
906 result. Change type of element_block_ptr. Change allocation to
907 use XNEWVEC.
908
909 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
910
911 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
912 catch_errors call instead of NULL.
913
914 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
917 char pointer to scm_mode_bits.
918
919 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
922 cast.
923
924 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
927 "data" local variable and use it.
928
929 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
932 domain_enum cast.
933 (gdbscm_lookup_symbol): Likewise.
934
935 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
936
937 * d-exp.y: Remove an obsolete comment and propagate the block
938 information to the produced expression.
939
940 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
943 cast.
944 (tui_add_content_elements): Likewise.
945
946 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
947
948 * cli/cli-setshow.c (do_set_command): Constify p.
949
950 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
953 (void *) cast with (gdb_byte *).
954
955 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
956
957 * proc-service.c (ps_pdread): Add cast.
958
959 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
960
961 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
962 valbuf.
963
964 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
965
966 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
967 (ia64_push_dummy_call): Remove cast and change type of "to" to
968 array of gdb_byte.
969
970 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
973
974 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
975
976 * observer.h (observer_${event}_notification_stub): Add cast.
977
978 2015-10-23 Yao Qi <yao.qi@linaro.org>
979
980 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
981 dsd.insn_count to zero.
982
983 2015-10-22 Pedro Alves <palves@redhat.com>
984
985 * infrun.c (stop_after_trap): Delete.
986 (clear_proceed_status, handle_signal_stop, struct
987 infcall_control_state, save_infcall_control_state)
988 (restore_infcall_control_state): Remove references to
989 stop_after_trap.
990
991 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
992
993 * python/python.c (_initialize_python): Add cast.
994
995 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
996
997 * nto-tdep.c (nto_inferior_data): Add cast.
998
999 2015-10-22 Pedro Alves <palves@redhat.com>
1000
1001 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
1002 windows_wait and windows_resume directly instead of
1003 wait_for_inferior and resume.
1004
1005 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * xtensa-tdep.h (XTREG): Add casts.
1008 (XTREG_END): Likewise.
1009
1010 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1013
1014 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1017
1018 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1019
1020 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
1021 buf to gdb_byte*.
1022 (supply_32bit_reg): Add cast.
1023 (mips64_fill_gregset): Likewise.
1024
1025 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 PR python/18073
1028 * python/py-type.c (typy_get_composite): Allow returning a
1029 function type.
1030
1031 2015-10-21 Keven Boell <keven.boell@intel.com>
1032
1033 * dwarf2read.c (set_die_type): Add read of
1034 DW_AT_allocated and DW_AT_associated.
1035 * f-typeprint.c: New include of typeprint.h
1036 (f_print_type): Add check for allocated/associated
1037 status of type.
1038 (f_type_print_varspec_suffix): Add check for
1039 * gdbtypes.c (create_array_type_with_stride):
1040 Add check for valid data location of type in
1041 case allocated or associated attributes are set.
1042 Length of an array should be only calculated if
1043 allocated or associated is resolved as true.
1044 (is_dynamic_type_internal): Add check for allocated/
1045 associated.
1046 (resolve_dynamic_array): Evaluate allocated/associated
1047 properties.
1048 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
1049 <DYN_PROP_ASSOCIATED>: New enums.
1050 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
1051 (type_not_allocated): New function.
1052 (type_not_associated): New function.
1053 * valarith.c (value_subscripted_rvalue): Add check for
1054 allocated/associated.
1055 * valprint.c: New include of typeprint.h.
1056 (valprint_check_validity): Add check for allocated/associated.
1057 (value_check_printable): Add check for allocated/
1058 associated.
1059 * typeprint.h (val_print_not_allocated): New function.
1060 (val_print_not_associated): New function.
1061 * typeprint.c (val_print_not_allocated): New function.
1062 (val_print_not_associated): New function.
1063
1064 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
1065
1066 * Makefile.in: Add arm.c/o.
1067 * arch/arm.c: New file.
1068 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
1069 (MAKE_THUMB_ADDR): Likewise.
1070 (UNMAKE_THUMB_ADDR): Likewise.
1071 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
1072 (IS_THUMB_ADDR): Move to arm.h.
1073 (MAKE_THUMB_ADDR): Likewise.
1074 (UNMAKE_THUMB_ADDR): Likewise.
1075 * configure.tgt: Add arm.o to all ARM configs.
1076
1077 2015-10-21 Yao Qi <yao.qi@linaro.org>
1078
1079 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1080 Remove argument exp_vCont_s.
1081 * gdb.base/range-stepping.exp: Callers updated.
1082 * gdb.trace/range-stepping.exp: Likewise.
1083
1084 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1085
1086 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
1087 (nto_sniff_abi_note_section): New function.
1088 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
1089 binary.
1090
1091 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1092
1093 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
1094 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
1095 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
1096 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
1097 New functions.
1098 (_initialize_nto_tdep): New forward declaration, new function.
1099 * nto-tdep.h (struct nto_inferior_data): New struct.
1100 (nto_inferior_data): New function declaration.
1101
1102 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1103
1104 * findvar.c (address_from_register): Check REGNUM validity.
1105
1106 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1107
1108 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
1109 (init_procfs_targets): Wire new function.
1110
1111 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1112
1113 * nto-procfs.c (sys/auxv.h): Include.
1114 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
1115 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
1116 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
1117
1118 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1119
1120 * nto-procfs.c (nto_procfs_path): Rename to...
1121 (nodestr): ... this, and change type.
1122 (nto_node): Use new variable and logic accordingly.
1123 (procfs_open_1): Use new variable name. Use local buffer to construct
1124 procfrs path.
1125 (procfs_pidlist): Use NODESTR to construct procfs path.
1126 (procfs_files_info): Use NODESTR to output meaningful text.
1127 (do_attach): Construct procfs using NODESTR.
1128 (procfs_create_inferior): Compare pointer to NULL.
1129
1130 2015-10-19 Josh Stone <jistone@redhat.com>
1131
1132 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1133 return state, even when not actively catching syscalls at all.
1134 (linux_handle_extended_wait): Mark syscall_state like an entry.
1135 (wait_lwp): Set syscall_state ignored for other traps.
1136 (linux_nat_filter_event): Likewise.
1137
1138 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
1139
1140 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1141 when handling 'E', 'T', 'S', 'X' and 'W' packets.
1142 Do not set rs->waiting_for_stop_reply back to 1.
1143
1144 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
1145
1146 * nto-procfs.c (common/filestuff.h): Include.
1147 (procfs_can_use_hw_breakpoint): Fix enum name.
1148 (procfs_open_1): Fix compiler warning.
1149 (procfs_pidlist): Make static.
1150 (procfs_meminfo): Make static, fix type name, add missing argument.
1151 (procfs_store_registers): Make static.
1152 (procfs_thread_info): Remove unused function.
1153 (_initialize_procfs): Forward declare.
1154
1155 2015-10-16 Yao Qi <yao.qi@arm.com>
1156
1157 * MAINTAINERS: Update my email address.
1158
1159 2015-10-15 Yao Qi <yao.qi@linaro.org>
1160
1161 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1162 Call gdbarch_breakpoint_from_pc to instruction length.
1163 (aarch64_linux_remove_hw_breakpoint): Likewise.
1164 * common/common-regcache.h (regcache_register_size): Declare.
1165 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1166 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1167 the process is 32bit, otherwise set alignment to 4.
1168 (aarch64_handle_breakpoint): Update comments.
1169 * regcache.c (regcache_register_size): New function.
1170
1171 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1172
1173 * gdbarch.sh (core_regset_section): Remove.
1174 * gdbarch.h: Regenerate.
1175
1176 2015-10-14 Yao Qi <yao.qi@linaro.org>
1177
1178 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1179 out of it.
1180 (enum aarch64_memory_operand_type): New.
1181
1182 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
1183
1184 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1185
1186 2015-10-13 Pedro Alves <palves@redhat.com>
1187
1188 * ada-lang.c (ada_enum_name): Constify local.
1189 * ada-typeprint.c (print_range_bound): Constify locals.
1190 * c-varobj.c (c_describe_child): Likewise.
1191 * cli/cli-setshow.c (do_set_command): Likewise.
1192 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1193 * dwarf2read.c (find_file_and_directory): Likewise.
1194 (anonymous_struct_prefix, dwarf2_name): Likewise.
1195 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1196 * go-lang.c (unpack_mangled_go_symbol): Likewise.
1197 * jv-typeprint.c (java_type_print_base): Likewise.
1198 * ser-tcp.c (net_open): Likewise.
1199 * symfile.c (deduce_language_from_filename): Likewise.
1200 * symtab.c (gdb_mangle_name): Likewise.
1201 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1202
1203 2015-10-13 Pedro Alves <palves@redhat.com>
1204
1205 * infrun.c (restore_execution_direction): New function.
1206 (fetch_inferior_event): Use it instead of
1207 make_cleanup_restore_integer.
1208 (execution_direction): Change type to enum
1209 exec_direction_kind.
1210 * infrun.h (execution_direction): Likewise.
1211
1212 2015-10-13 Pedro Alves <palves@redhat.com>
1213
1214 * ada-lang.c (ada_value_primitive_packed_val): Constify
1215 locals. Use value_contents_writeable. Remove casts.
1216
1217 2015-10-13 Pedro Alves <palves@redhat.com>
1218
1219 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1220 and alloca calls.
1221
1222 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1225 write_memory with write_memory_unsigned_integer.
1226
1227 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 * solib-dsbt.c (cmp_name): Constify arguments.
1230 * solib-frv.c (cmp_name): Likewise.
1231 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1232 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1233 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1234 (gdb_bfd_lookup_symbol): Likewise.
1235 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1236 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1237
1238 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1239
1240 * stack.c (parse_frame_specification): Remove message parameter,
1241 replace with fixed string in function body, update function
1242 comment.
1243 (frame_info): Remove message to parse_frame_specification.
1244 (select_frame_command): Likewise.
1245
1246 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * stack.c (parse_frame_specification): Delete.
1249 (parse_frame_specification_1): Rename to
1250 parse_frame_specification.
1251 (frame_info): Use parse_frame_specification.
1252 (select_frame_command): Likewise.
1253 (return_command): Use select_frame and print_stack_frame rather
1254 than frame_command and select_frame_command.
1255 (func_command): Use get_current_frame rather than
1256 parse_frame_specification.
1257
1258 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * stack.c (func_command): Return early when there is no ARG
1261 string.
1262
1263 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * stack.c: Include safe-ctype.h not ctype.h.
1266 (parse_frame_specification): Use ISSPACE not isspace.
1267 (backtrace_command): Use TOLOWER not tolower.
1268
1269 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * mep-tdep.c (current_me_module): Add cast.
1272 (mep_gdbarch_init): Likewise.
1273
1274 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1277 (m32c_write_reg_t): ...this and...
1278 (m32c_read_reg_t): ...this.
1279 (struct m32c_reg): Update types of read and write.
1280 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1281 adjust definition.
1282 (m32c_banked_read): Likewise.
1283 (m32c_sb_read): Likewise.
1284 (m32c_part_read): Likewise.
1285 (m32c_cat_read): Likewise.
1286 (m32c_r3r2r1r0_read): Likewise.
1287 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1288 and adjust definition.
1289 (m32c_banked_write): Likewise.
1290 (m32c_sb_write): Likewise.
1291 (m32c_part_write): Likewise.
1292 (m32c_cat_write): Likewise.
1293 (m32c_r3r2r1r0_write): Likewise.
1294
1295 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1298
1299 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1302 gdb_sys_no_syscall instead of -1.
1303
1304 2015-10-12 Yao Qi <yao.qi@linaro.org>
1305
1306 * NEWS: Mention the change.
1307
1308 2015-10-12 Yao Qi <yao.qi@linaro.org>
1309
1310 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1311 (aarch64_emit_load_store): ... it. All callers updated.
1312
1313 2015-10-12 Yao Qi <yao.qi@linaro.org>
1314
1315 * arch/aarch64-insn.c (emit_insn): Rename to ...
1316 (aarch64_emit_insn): ... it. All callers updated.
1317
1318 2015-10-12 Yao Qi <yao.qi@linaro.org>
1319
1320 * aarch64-linux-tdep.c: Include arch-utils.h.
1321 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1322 set_gdbarch_displaced_step_copy_insn,
1323 set_gdbarch_displaced_step_fixup,
1324 set_gdbarch_displaced_step_free_closure,
1325 set_gdbarch_displaced_step_location,
1326 and set_gdbarch_displaced_step_hw_singlestep.
1327 * aarch64-tdep.c (struct displaced_step_closure): New.
1328 (struct aarch64_displaced_step_data): New.
1329 (aarch64_displaced_step_b): New function.
1330 (aarch64_displaced_step_b_cond): Likewise.
1331 (aarch64_register): Likewise.
1332 (aarch64_displaced_step_cb): Likewise.
1333 (aarch64_displaced_step_tb): Likewise.
1334 (aarch64_displaced_step_adr): Likewise.
1335 (aarch64_displaced_step_ldr_literal): Likewise.
1336 (aarch64_displaced_step_others): Likewise.
1337 (aarch64_displaced_step_copy_insn): Likewise.
1338 (aarch64_displaced_step_fixup): Likewise.
1339 (aarch64_displaced_step_hw_singlestep): Likewise.
1340 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1341 (aarch64_displaced_step_copy_insn): Declare.
1342 (aarch64_displaced_step_fixup): Declare.
1343 (aarch64_displaced_step_hw_singlestep): Declare.
1344 * arch/aarch64-insn.c (emit_insn): Moved from
1345 gdbserver/linux-aarch64-low.c.
1346 (emit_load_store): Likewise.
1347 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1348 gdbserver/linux-aarch64-low.c.
1349 (struct aarch64_register): Likewise.
1350 (struct aarch64_memory_operand): Likewise.
1351 (ENCODE): Likewise.
1352 (can_encode_int32): New macro.
1353 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1354 (emit_tb, emit_nop): Likewise.
1355 (emit_insn): Declare.
1356 (emit_load_store): Declare.
1357
1358 2015-10-12 Yao Qi <yao.qi@linaro.org>
1359
1360 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1361 gdbserver/linux-aarch64-low.c.
1362 (aarch64_relocate_instruction): Likewise.
1363 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
1364 (struct aarch64_insn_data): Moved from
1365 gdbserver/linux-aarch64-low.c.
1366 (struct aarch64_insn_visitor): Likewise.
1367 (aarch64_relocate_instruction): Declare.
1368
1369 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1370
1371 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
1372 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
1373 to the returned value.
1374
1375 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1376
1377 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
1378 is large enough for BIT_SIZE. Update function comment.
1379
1380 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1381
1382 * ada-lang.c (ada_value_primitive_packed_val): Move
1383 src_len variable to local block where used. Override
1384 BIT_SIZE if bigger than size of resolved type.
1385
1386 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1387
1388 * gdbtypes.h (is_scalar_type): Add extern declaration.
1389 * gdbtypes.c (is_scalar_type): Make non-static.
1390 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1391 to compute IS_SCALAR instead of doing it ourselves.
1392
1393 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1394
1395 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1396 of case where TYPE is dynamic.
1397
1398 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1399
1400 * ada-lang.c (ada_unpack_from_contents): New function,
1401 extracted from ada_value_primitive_packed_val.
1402 (ada_value_primitive_packed_val): Replace extracted out code
1403 by call to ada_unpack_from_contents.
1404
1405 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1406
1407 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1408 variable declarations.
1409
1410 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1411
1412 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1413 of local variables src and unpacked to "gdb_type *" instead of
1414 "unsigned char *".
1415
1416 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1417
1418 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1419 of various local variables more explicit and consistent.
1420 No real code change otherwise.
1421
1422 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1423
1424 * i386-tdep.h (struct gdbarch_tdep): Change type of
1425 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1426
1427 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1428
1429 * cris-tdep.c (struct instruction_environment): Change type of
1430 byte_order to enum bfd_endian.
1431
1432 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1433
1434 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1435 enum gdb_syscall casts.
1436
1437 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1438
1439 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1440 * arm-tdep.c (struct stack_item): Likewise.
1441 (push_stack_item): Add gdb_byte* cast.
1442 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1443 (push_stack_item): Add gdb_byte* cast.
1444 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1445 and add cast.
1446 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1447 (push_stack_item): Add gdb_byte* cast.
1448 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1449 add cast.
1450 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1451 gdb_byte*.
1452 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1453 gdb_byte* and remove unnecessary cast.
1454 (h8300h_extract_return_value): Likewise.
1455 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1456 (h8300h_store_return_value): Likewise.
1457 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1458 gdb_byte* and remove unnecessary cast.
1459 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1460 and add cast.
1461 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1462 gdb_byte* and remove unnecessary cast.
1463 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1464 valbuf.
1465 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1466 (mep_pseudo_cr64_read): Likewise.
1467 (mep_pseudo_csr_write): Likewise.
1468 (mep_pseudo_cr32_write): Likewise.
1469 (mep_pseudo_cr64_write): Likewise.
1470 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1471 gdb_byte* and add cast.
1472 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1473 gdb_byte* and remove unnecessary cast.
1474 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1475 valbuf.
1476 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1477 gdb_byte*.
1478 * printcmd.c (void): Likewise.
1479 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1480 gdb_byte* and add cast.
1481 (infpy_write_memory): Likewise.
1482 (infpy_search_memory): Likewise.
1483 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1484 and add cast.
1485 (regcache_raw_write_unsigned): Likewise.
1486 (regcache_cooked_write_signed): Likewise.
1487 (regcache_cooked_write_unsigned): Likewise.
1488 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1489 gdb_byte*.
1490
1491 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1492
1493 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1494 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1495
1496 2015-10-09 Eli Zaretskii <eliz@gnu.org>
1497
1498 * stack.c (print_stack_frame):
1499 * utils.c (printchar): Fix typos in commentary.
1500
1501 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1502
1503 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1504 (PostfixExpression): Support `expr.sizeof' expressions.
1505 (PrimaryExpression): Support `typeof(expr)' expressions.
1506
1507 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1508
1509 * MAINTAINERS: Update my email address.
1510
1511 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1512
1513 * record-btrace.c (record_btrace_resume): Fix void return.
1514
1515 2015-10-07 Yao Qi <yao.qi@linaro.org>
1516
1517 * aarch64-tdep.c: Include opcode/aarch64.h.
1518 (submask): Move it above.
1519 (bit): Likewise.
1520 (bits): Likewise.
1521 (aarch64_software_single_step): Call aarch64_decode_insn.
1522 Decode instruction by aarch64_inst instead of using
1523 aarch64_decode_bcond and decode_masked_match.
1524
1525 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1526
1527 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1528 only when the file is binary.
1529
1530 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1531
1532 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1533 subroutine handling.
1534
1535 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1536
1537 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1538
1539 2015-09-30 Doug Evans <dje@google.com>
1540
1541 * dwarf2read.c (setup_type_unit_groups): Add comment.
1542
1543 2015-09-30 Pedro Alves <palves@redhat.com>
1544
1545 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1546 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1547 (x86_linux_create_target): Don't install
1548 x86_linux_always_non_stop_p.
1549
1550 2015-09-30 Don Breazeal <donb@codesourcery.com>
1551
1552 * remote.c (remote_parse_stop_reply): Call strprefix instead
1553 of strncmp.
1554
1555 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1556
1557 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1558 * gdbarch.h: Regenerate.
1559 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1560 struct gdbarch_tdep_info *.
1561 * mips-tdep.c (mips_gdbarch_init): Likewise.
1562 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1563 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1564 * spu-multiarch.c (spu_gdbarch): Likewise.
1565
1566 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1567
1568 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1569 record a NULL value.
1570
1571 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1572
1573 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1574 and union arguments the same as pointer arguments when determining
1575 size of argument.
1576
1577 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1578
1579 * ft32-tdep.c: #include "opcode/ft32.h".
1580 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1581 (ft32_analyze_prologue): Use FT32_* macros.
1582
1583 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1584
1585 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1586 comment.
1587
1588 2015-09-28 Doug Evans <dje@google.com>
1589
1590 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1591
1592 2015-09-28 Doug Evans <dje@google.com>
1593
1594 * common/filestuff.c (make_cleanup_close): Update comment.
1595
1596 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * btrace.c (parse_xml_btrace_block): Fix cast of
1599 xml_find_attribute's return value.
1600 * memory-map.c (memory_map_start_memory): Likewise.
1601 * solib-svr4.c (library_list_start_library): Likewise.
1602 * solib-target.c (library_list_start_segment): Likewise.
1603 (library_list_start_section): Likewise.
1604 * tracepoint.c (traceframe_info_start_memory): Likewise.
1605
1606 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1607
1608 * d-namespace.c (d_lookup_symbol): New arg langdef.
1609 All callers updated. Support looking up symbol as a primitive type.
1610 (lookup_module_scope): New arg langdef. All callers updated.
1611 Call d_lookup_symbol directly for simple bare symbols.
1612
1613 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1614
1615 * macrocmd.c (print_macro_callback): Add cast(s).
1616 * macrotab.c (macro_bcache_str): Likewise.
1617 (new_macro_definition): Likewise.
1618 * main.c (captured_main): Likewise.
1619 * maint.c (print_bfd_section_info): Likewise.
1620 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1621 (basic_type): Likewise.
1622 * memattr.c (mem_region_cmp): Likewise.
1623 * memory-map.c (memory_map_start_memory): Likewise.
1624 (memory_map_end_memory): Likewise.
1625 (memory_map_start_property): Likewise.
1626 (memory_map_end_property): Likewise.
1627 (clear_result): Likewise.
1628 * memrange.c (compare_mem_ranges): Likewise.
1629 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1630 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1631 * mi/mi-console.c (mi_console_file_delete): Likewise.
1632 (mi_console_file_fputs): Likewise.
1633 (mi_console_raw_packet): Likewise.
1634 (mi_console_file_flush): Likewise.
1635 (mi_console_set_raw): Likewise.
1636 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1637 (mi_new_thread): Likewise.
1638 (mi_thread_exit): Likewise.
1639 (mi_record_changed): Likewise.
1640 (mi_inferior_added): Likewise.
1641 (mi_inferior_appeared): Likewise.
1642 (mi_inferior_exit): Likewise.
1643 (mi_inferior_removed): Likewise.
1644 (mi_interp_data): Likewise.
1645 (mi_on_normal_stop): Likewise.
1646 (mi_traceframe_changed): Likewise.
1647 (mi_tsv_created): Likewise.
1648 (mi_tsv_deleted): Likewise.
1649 (mi_tsv_modified): Likewise.
1650 (mi_breakpoint_created): Likewise.
1651 (mi_breakpoint_deleted): Likewise.
1652 (mi_breakpoint_modified): Likewise.
1653 (mi_output_running_pid): Likewise.
1654 (mi_inferior_count): Likewise.
1655 (mi_solib_loaded): Likewise.
1656 (mi_solib_unloaded): Likewise.
1657 (mi_command_param_changed): Likewise.
1658 (mi_memory_changed): Likewise.
1659 (report_initial_inferior): Likewise.
1660 (mi_ui_out): Likewise.
1661 (mi_set_logging): Likewise.
1662 * mi/mi-main.c (collect_cores): Likewise.
1663 (print_one_inferior): Likewise.
1664 (free_vector_of_ints): Likewise.
1665 (free_splay_tree): Likewise.
1666 (mi_execute_command): Likewise.
1667 * mi/mi-out.c (mi_table_body): Likewise.
1668 (mi_table_end): Likewise.
1669 (mi_table_header): Likewise.
1670 (mi_begin): Likewise.
1671 (mi_end): Likewise.
1672 (mi_field_int): Likewise.
1673 (mi_field_string): Likewise.
1674 (mi_field_fmt): Likewise.
1675 (mi_flush): Likewise.
1676 (mi_redirect): Likewise.
1677 (field_separator): Likewise.
1678 (mi_open): Likewise.
1679 (mi_close): Likewise.
1680 (mi_out_buffered): Likewise.
1681 (mi_out_rewind): Likewise.
1682 (mi_out_put): Likewise.
1683 (mi_version): Likewise.
1684 (mi_out_data_dtor): Likewise.
1685 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1686 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1687 * minidebug.c (lzma_open): Likewise.
1688 (lzma_pread): Likewise.
1689 (lzma_close): Likewise.
1690 (lzma_stat): Likewise.
1691 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1692 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1693 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1694 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1695 (mips_micro_frame_cache): Likewise.
1696 (mips_insn32_frame_cache): Likewise.
1697 (mips_stub_frame_cache): Likewise.
1698 (gdb_print_insn_mips): Likewise.
1699 (value_of_mips_user_reg): Likewise.
1700 (mips_gdbarch_init): Likewise.
1701 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1702 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1703 (mipsnbsd_supply_gregset): Likewise.
1704 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1705 (am33_collect_gregset_method): Likewise.
1706 (am33_collect_fpregset_method): Likewise.
1707 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1708 * moxie-tdep.c (moxie_frame_cache): Likewise.
1709 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1710 (msp430_analyze_frame_prologue): Likewise.
1711 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1712 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1713 (nios2_collect_gregset): Likewise.
1714 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1715 (nios2_stub_frame_cache): Likewise.
1716 * objc-lang.c (find_methods): Likewise.
1717 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1718 (get_objfile_pspace_data): Likewise.
1719 (get_objfile_bfd_data): Likewise.
1720 (objfile_bfd_data_free): Likewise.
1721 (add_to_objfile_sections): Likewise.
1722 (do_free_objfile_cleanup): Likewise.
1723 (resume_section_map_updates_cleanup): Likewise.
1724 * opencl-lang.c (builtin_opencl_type): Likewise.
1725 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1726 * osdata.c (osdata_start_osdata): Likewise.
1727 (osdata_start_item): Likewise.
1728 (osdata_start_column): Likewise.
1729 (osdata_end_column): Likewise.
1730 (clear_parsing_data): Likewise.
1731 (osdata_free_cleanup): Likewise.
1732 * parse.c (type_stack_cleanup): Likewise.
1733 (exp_uses_objfile_iter): Likewise.
1734 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1735 (ppc_linux_collect_gregset): Likewise.
1736 (ppu2spu_prev_arch): Likewise.
1737 (ppu2spu_this_id): Likewise.
1738 (ppu2spu_prev_register): Likewise.
1739 (ppu2spu_unwind_register): Likewise.
1740 (ppu2spu_sniffer): Likewise.
1741 (ppu2spu_dealloc_cache): Likewise.
1742 (ppc_linux_init_abi): Likewise.
1743 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1744 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1745 * progspace.c (restore_program_space): Likewise.
1746 * psymtab.c (find_pc_sect_psymtab): Likewise.
1747 (compare_psymbols): Likewise.
1748 (psymbol_bcache_full): Likewise.
1749 (allocate_psymtab): Likewise.
1750 (discard_psymtabs_upto): Likewise.
1751 * python/py-block.c (set_block): Likewise.
1752 (del_objfile_blocks): Likewise.
1753 * python/py-breakpoint.c (build_bp_list): Likewise.
1754 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1755 (build_inferior_list): Likewise.
1756 (py_free_inferior): Likewise.
1757 * python/py-objfile.c (py_free_objfile): Likewise.
1758 (objfile_to_objfile_object): Likewise.
1759 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1760 * python/py-progspace.c (py_free_pspace): Likewise.
1761 (pspace_to_pspace_object): Likewise.
1762 * python/py-symbol.c (set_symbol): Likewise.
1763 (del_objfile_symbols): Likewise.
1764 * python/py-symtab.c (set_sal): Likewise.
1765 (set_symtab): Likewise.
1766 (del_objfile_symtab): Likewise.
1767 (del_objfile_sal): Likewise.
1768 * python/py-type.c (save_objfile_types): Likewise.
1769 (set_type): Likewise.
1770 * python/py-unwind.c (pyuw_prev_register): Likewise.
1771 (pyuw_on_new_gdbarch): Likewise.
1772 * python/py-utils.c (py_decref): Likewise.
1773 (py_xdecref): Likewise.
1774 (gdb_py_generic_dict): Likewise.
1775 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1776 (gdbpy_clone_xmethod_worker_data): Likewise.
1777 (gdbpy_get_xmethod_arg_types): Likewise.
1778 (gdbpy_get_xmethod_result_type): Likewise.
1779 (gdbpy_invoke_xmethod): Likewise.
1780 * python/python.c (gdbpy_apply_type_printers): Likewise.
1781 (gdbpy_free_type_printers): Likewise.
1782 * record-btrace.c (record_btrace_disable_callback): Likewise.
1783 (bfcache_hash): Likewise.
1784 (bfcache_eq): Likewise.
1785 (btrace_get_frame_function): Likewise.
1786 (record_btrace_frame_unwind_stop_reason): Likewise.
1787 (record_btrace_frame_this_id): Likewise.
1788 (record_btrace_frame_prev_register): Likewise.
1789 (record_btrace_frame_dealloc_cache): Likewise.
1790 * record-full.c (record_full_message_wrapper): Likewise.
1791 (record_full_save_cleanups): Likewise.
1792 * regcache.c (regcache_descr): Likewise.
1793 (do_regcache_xfree): Likewise.
1794 (do_regcache_invalidate): Likewise.
1795 (do_cooked_read): Likewise.
1796 (regcache_transfer_regset): Likewise.
1797 * reggroups.c (reggroup_add): Likewise.
1798 (reggroup_next): Likewise.
1799 (reggroup_prev): Likewise.
1800 * remote-fileio.c (do_remote_fileio_request): Likewise.
1801 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1802 (do_notif_event_xfree): Likewise.
1803 * remote.c (get_remote_arch_state): Likewise.
1804 (remote_pspace_data_cleanup): Likewise.
1805 (get_remote_exec_file): Likewise.
1806 (set_pspace_remote_exec_file): Likewise.
1807 (compare_pnums): Likewise.
1808 (clear_threads_listing_context): Likewise.
1809 (remote_newthread_step): Likewise.
1810 (start_thread): Likewise.
1811 (end_thread): Likewise.
1812 (remove_child_of_pending_fork): Likewise.
1813 (remove_stop_reply_for_inferior): Likewise.
1814 (remove_stop_reply_of_remote_state): Likewise.
1815 (remote_notif_remove_once_on_match): Likewise.
1816 (stop_reply_match_ptid_and_ws): Likewise.
1817 (kill_child_of_pending_fork): Likewise.
1818 (register_remote_g_packet_guess): Likewise.
1819 (remote_read_description_p): Likewise.
1820 (remote_read_description): Likewise.
1821 (free_actions_list_cleanup_wrapper): Likewise.
1822 (remote_async_serial_handler): Likewise.
1823 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1824 (rl78_analyze_frame_prologue): Likewise.
1825 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1826 (ppc_supply_fpregset): Likewise.
1827 (ppc_supply_vsxregset): Likewise.
1828 (ppc_supply_vrregset): Likewise.
1829 (ppc_collect_gregset): Likewise.
1830 (ppc_collect_fpregset): Likewise.
1831 (ppc_collect_vsxregset): Likewise.
1832 (ppc_collect_vrregset): Likewise.
1833 (e500_move_ev_register): Likewise.
1834 (do_regcache_raw_write): Likewise.
1835 (rs6000_frame_cache): Likewise.
1836 (rs6000_epilogue_frame_cache): Likewise.
1837 (rs6000_gdbarch_init): Likewise.
1838 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1839 (rx_analyze_frame_prologue): Likewise.
1840 (rx_frame_type): Likewise.
1841 (rx_frame_sniffer_common): Likewise.
1842 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1843 (s390_frame_unwind_cache): Likewise.
1844 (s390_stub_frame_unwind_cache): Likewise.
1845 (s390_sigtramp_frame_unwind_cache): Likewise.
1846 * score-tdep.c (score_make_prologue_cache): Likewise.
1847 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1848 (sentinel_frame_prev_arch): Likewise.
1849 * ser-base.c (fd_event): Likewise.
1850 (push_event): Likewise.
1851 (ser_base_write): Likewise.
1852 * ser-pipe.c (pipe_close): Likewise.
1853 * serial.c (serial_write): Likewise.
1854 * sh-tdep.c (sh_frame_cache): Likewise.
1855 (sh_stub_this_id): Likewise.
1856 * sh64-tdep.c (sh64_frame_cache): Likewise.
1857 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1858 (library_list_start_library): Likewise.
1859 (library_list_start_list): Likewise.
1860 (solib_aix_free_library_list): Likewise.
1861 * solib-darwin.c (get_darwin_info): Likewise.
1862 * solib-dsbt.c (get_dsbt_info): Likewise.
1863 * solib-spu.c (append_ocl_sos): Likewise.
1864 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1865 (get_svr4_info): Likewise.
1866 (library_list_start_library): Likewise.
1867 (svr4_library_list_start_list): Likewise.
1868 (hash_probe_and_action): Likewise.
1869 (equal_probe_and_action): Likewise.
1870 (svr4_update_solib_event_breakpoint): Likewise.
1871 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1872 (svr4_fetch_link_map_offsets): Likewise.
1873 (svr4_have_link_map_offsets): Likewise.
1874 * solib-target.c (library_list_start_segment): Likewise.
1875 (library_list_start_section): Likewise.
1876 (library_list_start_library): Likewise.
1877 (library_list_end_library): Likewise.
1878 (library_list_start_list): Likewise.
1879 (solib_target_free_library_list): Likewise.
1880 * solib.c (solib_ops): Likewise.
1881 (set_solib_ops): Likewise.
1882 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1883 * sparc-tdep.c (sparc_frame_cache): Likewise.
1884 (sparc32_frame_cache): Likewise.
1885 (sparc32_supply_gregset): Likewise.
1886 (sparc32_collect_gregset): Likewise.
1887 (sparc32_supply_fpregset): Likewise.
1888 (sparc32_collect_fpregset): Likewise.
1889 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1890 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1891 (sparc64_collect_gregset): Likewise.
1892 (sparc64_supply_fpregset): Likewise.
1893 (sparc64_collect_fpregset): Likewise.
1894 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1895 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1896 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1897 (sparc64obsd_trapframe_cache): Likewise.
1898 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1899 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1900 * spu-multiarch.c (spu_gdbarch): Likewise.
1901 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1902 (spu2ppu_prev_arch): Likewise.
1903 (spu2ppu_this_id): Likewise.
1904 (spu2ppu_prev_register): Likewise.
1905 (spu2ppu_dealloc_cache): Likewise.
1906 (spu_dis_asm_print_address): Likewise.
1907 (gdb_print_insn_spu): Likewise.
1908 (spu_get_overlay_table): Likewise.
1909 * stabsread.c (rs6000_builtin_type): Likewise.
1910 * stack.c (do_print_variable_and_value): Likewise.
1911 * stap-probe.c (get_stap_base_address_1): Likewise.
1912 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1913 (debug_qf_find_last_source_symtab): Likewise.
1914 (debug_qf_forget_cached_source_info): Likewise.
1915 (debug_qf_map_symtabs_matching_filename): Likewise.
1916 (debug_qf_lookup_symbol): Likewise.
1917 (debug_qf_print_stats): Likewise.
1918 (debug_qf_dump): Likewise.
1919 (debug_qf_relocate): Likewise.
1920 (debug_qf_expand_symtabs_for_function): Likewise.
1921 (debug_qf_expand_all_symtabs): Likewise.
1922 (debug_qf_expand_symtabs_with_fullname): Likewise.
1923 (debug_qf_map_matching_symbols): Likewise.
1924 (debug_qf_expand_symtabs_matching): Likewise.
1925 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1926 (debug_qf_map_symbol_filenames): Likewise.
1927 (debug_sym_get_probes): Likewise.
1928 (debug_sym_new_init): Likewise.
1929 (debug_sym_init): Likewise.
1930 (debug_sym_read): Likewise.
1931 (debug_sym_read_psymbols): Likewise.
1932 (debug_sym_finish): Likewise.
1933 (debug_sym_offsets): Likewise.
1934 (debug_sym_read_linetable): Likewise.
1935 (debug_sym_relocate): Likewise.
1936 (uninstall_symfile_debug_logging): Likewise.
1937 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1938 * symfile.c (place_section): Likewise.
1939 (add_section_size_callback): Likewise.
1940 (load_progress): Likewise.
1941 (load_section_callback): Likewise.
1942 (clear_memory_write_data): Likewise.
1943 (allocate_symtab): Likewise.
1944 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1945 * symtab.c (lookup_symtab_callback): Likewise.
1946 (hash_demangled_name_entry): Likewise.
1947 (eq_demangled_name_entry): Likewise.
1948 (get_symbol_cache): Likewise.
1949 (symbol_cache_cleanup): Likewise.
1950 (set_symbol_cache_size): Likewise.
1951 (symbol_cache_flush): Likewise.
1952 (maintenance_print_symbol_cache): Likewise.
1953 (maintenance_print_symbol_cache_statistics): Likewise.
1954 (delete_filename_seen_cache): Likewise.
1955 (output_partial_symbol_filename): Likewise.
1956 (search_symbols_file_matches): Likewise.
1957 (search_symbols_name_matches): Likewise.
1958 (do_free_completion_list): Likewise.
1959 (maybe_add_partial_symtab_filename): Likewise.
1960 (get_main_info): Likewise.
1961 (main_info_cleanup): Likewise.
1962 * target-dcache.c (target_dcache_cleanup): Likewise.
1963 (target_dcache_init_p): Likewise.
1964 (target_dcache_invalidate): Likewise.
1965 (target_dcache_get): Likewise.
1966 (target_dcache_get_or_init): Likewise.
1967 * target-descriptions.c (target_find_description): Likewise.
1968 (tdesc_find_type): Likewise.
1969 (tdesc_data_cleanup): Likewise.
1970 (tdesc_find_arch_register): Likewise.
1971 (tdesc_register_name): Likewise.
1972 (tdesc_register_type): Likewise.
1973 (tdesc_register_reggroup_p): Likewise.
1974 (set_tdesc_pseudo_register_name): Likewise.
1975 (set_tdesc_pseudo_register_type): Likewise.
1976 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1977 (tdesc_use_registers): Likewise.
1978 (free_target_description): Likewise.
1979 * target-memory.c (compare_block_starting_address): Likewise.
1980 (cleanup_request_data): Likewise.
1981 (cleanup_write_requests_vector): Likewise.
1982 * target.c (open_target): Likewise.
1983 (cleanup_restore_target_terminal): Likewise.
1984 (free_memory_read_result_vector): Likewise.
1985 * thread.c (disable_thread_stack_temporaries): Likewise.
1986 (finish_thread_state_cleanup): Likewise.
1987 (do_restore_current_thread_cleanup): Likewise.
1988 (restore_current_thread_cleanup_dtor): Likewise.
1989 (set_thread_refcount): Likewise.
1990 (tp_array_compar): Likewise.
1991 (do_captured_thread_select): Likewise.
1992 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1993 (tic6x_stub_this_id): Likewise.
1994 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1995 * top.c (do_restore_instream_cleanup): Likewise.
1996 (gdb_readline_wrapper_cleanup): Likewise.
1997 (kill_or_detach): Likewise.
1998 (print_inferior_quit_action): Likewise.
1999 * tracefile-tfile.c (match_blocktype): Likewise.
2000 (build_traceframe_info): Likewise.
2001 * tracefile.c (trace_file_writer_xfree): Likewise.
2002 * tracepoint.c (memrange_cmp): Likewise.
2003 (do_collect_symbol): Likewise.
2004 (do_clear_collection_list): Likewise.
2005 (do_restore_current_traceframe_cleanup): Likewise.
2006 (restore_current_traceframe_cleanup_dtor): Likewise.
2007 (free_current_marker): Likewise.
2008 (traceframe_info_start_memory): Likewise.
2009 (traceframe_info_start_tvar): Likewise.
2010 (free_result): Likewise.
2011 * tramp-frame.c (tramp_frame_cache): Likewise.
2012 * tui/tui-file.c (tui_file_delete): Likewise.
2013 (tui_fileopen): Likewise.
2014 (tui_sfileopen): Likewise.
2015 (tui_file_isatty): Likewise.
2016 (tui_file_rewind): Likewise.
2017 (tui_file_put): Likewise.
2018 (tui_file_fputs): Likewise.
2019 (tui_file_get_strbuf): Likewise.
2020 (tui_file_adjust_strbuf): Likewise.
2021 (tui_file_flush): Likewise.
2022 * tui/tui-layout.c (make_command_window): Likewise.
2023 (make_data_window): Likewise.
2024 (show_source_disasm_command): Likewise.
2025 (show_data): Likewise.
2026 (make_source_or_disasm_window): Likewise.
2027 (show_source_or_disasm_and_command): Likewise.
2028 * tui/tui-out.c (tui_field_int): Likewise.
2029 (tui_field_string): Likewise.
2030 (tui_field_fmt): Likewise.
2031 (tui_text): Likewise.
2032 * typeprint.c (hash_typedef_field): Likewise.
2033 (eq_typedef_field): Likewise.
2034 (do_free_typedef_hash): Likewise.
2035 (copy_typedef_hash_element): Likewise.
2036 (do_free_global_table): Likewise.
2037 (find_global_typedef): Likewise.
2038 (find_typedef_in_hash): Likewise.
2039 * ui-file.c (ui_file_write_for_put): Likewise.
2040 (do_ui_file_xstrdup): Likewise.
2041 (mem_file_delete): Likewise.
2042 (mem_file_rewind): Likewise.
2043 (mem_file_put): Likewise.
2044 (mem_file_write): Likewise.
2045 (stdio_file_delete): Likewise.
2046 (stdio_file_flush): Likewise.
2047 (stdio_file_read): Likewise.
2048 (stdio_file_write): Likewise.
2049 (stdio_file_write_async_safe): Likewise.
2050 (stdio_file_fputs): Likewise.
2051 (stdio_file_isatty): Likewise.
2052 (stdio_file_fseek): Likewise.
2053 (tee_file_delete): Likewise.
2054 (tee_file_flush): Likewise.
2055 (tee_file_write): Likewise.
2056 (tee_file_fputs): Likewise.
2057 (tee_file_isatty): Likewise.
2058 * ui-out.c (do_cleanup_table_end): Likewise.
2059 (do_cleanup_end): Likewise.
2060 * user-regs.c (user_reg_add): Likewise.
2061 (user_reg_map_name_to_regnum): Likewise.
2062 (usernum_to_user_reg): Likewise.
2063 (maintenance_print_user_registers): Likewise.
2064 * utils.c (do_bfd_close_cleanup): Likewise.
2065 (do_fclose_cleanup): Likewise.
2066 (do_obstack_free): Likewise.
2067 (do_ui_file_delete): Likewise.
2068 (do_ui_out_redirect_pop): Likewise.
2069 (do_free_section_addr_info): Likewise.
2070 (restore_integer): Likewise.
2071 (do_unpush_target): Likewise.
2072 (do_htab_delete_cleanup): Likewise.
2073 (do_restore_ui_file): Likewise.
2074 (do_value_free): Likewise.
2075 (do_free_so): Likewise.
2076 (free_current_contents): Likewise.
2077 (do_regfree_cleanup): Likewise.
2078 (core_addr_hash): Likewise.
2079 (core_addr_eq): Likewise.
2080 (do_free_char_ptr_vec): Likewise.
2081 * v850-tdep.c (v850_frame_cache): Likewise.
2082 * varobj.c (do_free_variable_cleanup): Likewise.
2083 * vax-tdep.c (vax_supply_gregset): Likewise.
2084 (vax_frame_cache): Likewise.
2085 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
2086 * xml-support.c (gdb_xml_body_text): Likewise.
2087 (gdb_xml_values_cleanup): Likewise.
2088 (gdb_xml_start_element): Likewise.
2089 (gdb_xml_start_element_wrapper): Likewise.
2090 (gdb_xml_end_element): Likewise.
2091 (gdb_xml_end_element_wrapper): Likewise.
2092 (gdb_xml_cleanup): Likewise.
2093 (gdb_xml_fetch_external_entity): Likewise.
2094 (gdb_xml_parse_attr_enum): Likewise.
2095 (xinclude_start_include): Likewise.
2096 (xinclude_end_include): Likewise.
2097 (xml_xinclude_default): Likewise.
2098 (xml_xinclude_start_doctype): Likewise.
2099 (xml_xinclude_end_doctype): Likewise.
2100 (xml_xinclude_cleanup): Likewise.
2101 (xml_fetch_content_from_file): Likewise.
2102 * xml-syscall.c (free_syscalls_info): Likewise.
2103 (syscall_start_syscall): Likewise.
2104 * xml-tdesc.c (tdesc_end_arch): Likewise.
2105 (tdesc_end_osabi): Likewise.
2106 (tdesc_end_compatible): Likewise.
2107 (tdesc_start_target): Likewise.
2108 (tdesc_start_feature): Likewise.
2109 (tdesc_start_reg): Likewise.
2110 (tdesc_start_union): Likewise.
2111 (tdesc_start_struct): Likewise.
2112 (tdesc_start_flags): Likewise.
2113 (tdesc_start_field): Likewise.
2114 (tdesc_start_vector): Likewise.
2115 (fetch_available_features_from_target): Likewise.
2116 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
2117 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
2118 (xtensa_frame_cache): Likewise.
2119 (xtensa_frame_prev_register): Likewise.
2120 (xtensa_extract_return_value): Likewise.
2121
2122 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2123
2124 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
2125 (aarch64_make_stub_cache): Likewise.
2126 (value_of_aarch64_user_reg): Likewise.
2127 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2128 (get_ada_inferior_data): Likewise.
2129 (get_ada_pspace_data): Likewise.
2130 (ada_pspace_data_cleanup): Likewise.
2131 (ada_complete_symbol_matcher): Likewise.
2132 (ada_exc_search_name_matches): Likewise.
2133 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2134 (get_ada_tasks_inferior_data): Likewise.
2135 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2136 (splay_obstack_alloc): Likewise.
2137 (splay_obstack_free): Likewise.
2138 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2139 (alpha_linux_collect_gregset): Likewise.
2140 (alpha_linux_supply_fpregset): Likewise.
2141 (alpha_linux_collect_fpregset): Likewise.
2142 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2143 * alpha-tdep.c (alpha_lds): Likewise.
2144 (alpha_sts): Likewise.
2145 (alpha_sigtramp_frame_unwind_cache): Likewise.
2146 (alpha_heuristic_frame_unwind_cache): Likewise.
2147 (alpha_supply_int_regs): Likewise.
2148 (alpha_fill_int_regs): Likewise.
2149 (alpha_supply_fp_regs): Likewise.
2150 (alpha_fill_fp_regs): Likewise.
2151 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2152 (alphanbsd_aout_supply_gregset): Likewise.
2153 (alphanbsd_supply_gregset): Likewise.
2154 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2155 (amd64_x32_linux_init_abi): Likewise.
2156 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2157 (amd64_collect_native_gregset): Likewise.
2158 * amd64-tdep.c (amd64_frame_cache): Likewise.
2159 (amd64_sigtramp_frame_cache): Likewise.
2160 (amd64_epilogue_frame_cache): Likewise.
2161 (amd64_supply_fxsave): Likewise.
2162 (amd64_supply_xsave): Likewise.
2163 (amd64_collect_fxsave): Likewise.
2164 (amd64_collect_xsave): Likewise.
2165 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2166 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2167 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2168 (arm_linux_collect_gregset): Likewise.
2169 (arm_linux_supply_nwfpe): Likewise.
2170 (arm_linux_collect_nwfpe): Likewise.
2171 (arm_linux_supply_vfp): Likewise.
2172 (arm_linux_collect_vfp): Likewise.
2173 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2174 (arm_prologue_unwind_stop_reason): Likewise.
2175 (arm_prologue_this_id): Likewise.
2176 (arm_prologue_prev_register): Likewise.
2177 (arm_exidx_data_free): Likewise.
2178 (arm_find_exidx_entry): Likewise.
2179 (arm_stub_this_id): Likewise.
2180 (arm_m_exception_this_id): Likewise.
2181 (arm_m_exception_prev_register): Likewise.
2182 (arm_normal_frame_base): Likewise.
2183 (gdb_print_insn_arm): Likewise.
2184 (arm_objfile_data_free): Likewise.
2185 (arm_record_special_symbol): Likewise.
2186 (value_of_arm_user_reg): Likewise.
2187 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2188 (armbsd_supply_gregset): Likewise.
2189 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2190 (get_auto_load_pspace_data): Likewise.
2191 (hash_loaded_script_entry): Likewise.
2192 (eq_loaded_script_entry): Likewise.
2193 (clear_section_scripts): Likewise.
2194 (collect_matching_scripts): Likewise.
2195 * auxv.c (auxv_inferior_data_cleanup): Likewise.
2196 (get_auxv_inferior_data): Likewise.
2197 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2198 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2199 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2200 (target_bfd_xclose): Likewise.
2201 (target_bfd_get_section_table): Likewise.
2202 * bfin-tdep.c (bfin_frame_cache): Likewise.
2203 * block.c (find_block_in_blockvector): Likewise.
2204 (call_site_for_pc): Likewise.
2205 (block_find_non_opaque_type_preferred): Likewise.
2206 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2207 (signal_catchpoint_remove_location): Likewise.
2208 (signal_catchpoint_breakpoint_hit): Likewise.
2209 (signal_catchpoint_print_one): Likewise.
2210 (signal_catchpoint_print_mention): Likewise.
2211 (signal_catchpoint_print_recreate): Likewise.
2212 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2213 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2214 (bp_location_compare_addrs): Likewise.
2215 (get_first_locp_gte_addr): Likewise.
2216 (check_tracepoint_command): Likewise.
2217 (do_map_commands_command): Likewise.
2218 (get_breakpoint_objfile_data): Likewise.
2219 (free_breakpoint_probes): Likewise.
2220 (do_captured_breakpoint_query): Likewise.
2221 (compare_breakpoints): Likewise.
2222 (bp_location_compare): Likewise.
2223 (bpstat_remove_breakpoint_callback): Likewise.
2224 (do_delete_breakpoint_cleanup): Likewise.
2225 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2226 (bsd_uthread_set_collect_uthread): Likewise.
2227 (bsd_uthread_activate): Likewise.
2228 (bsd_uthread_fetch_registers): Likewise.
2229 (bsd_uthread_store_registers): Likewise.
2230 * btrace.c (check_xml_btrace_version): Likewise.
2231 (parse_xml_btrace_block): Likewise.
2232 (parse_xml_btrace_pt_config_cpu): Likewise.
2233 (parse_xml_btrace_pt_raw): Likewise.
2234 (parse_xml_btrace_pt): Likewise.
2235 (parse_xml_btrace_conf_bts): Likewise.
2236 (parse_xml_btrace_conf_pt): Likewise.
2237 (do_btrace_data_cleanup): Likewise.
2238 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2239 * charset.c (cleanup_iconv): Likewise.
2240 (do_cleanup_iterator): Likewise.
2241 * cli-out.c (cli_uiout_dtor): Likewise.
2242 (cli_table_begin): Likewise.
2243 (cli_table_body): Likewise.
2244 (cli_table_end): Likewise.
2245 (cli_table_header): Likewise.
2246 (cli_begin): Likewise.
2247 (cli_end): Likewise.
2248 (cli_field_int): Likewise.
2249 (cli_field_skip): Likewise.
2250 (cli_field_string): Likewise.
2251 (cli_field_fmt): Likewise.
2252 (cli_spaces): Likewise.
2253 (cli_text): Likewise.
2254 (cli_message): Likewise.
2255 (cli_wrap_hint): Likewise.
2256 (cli_flush): Likewise.
2257 (cli_redirect): Likewise.
2258 (out_field_fmt): Likewise.
2259 (field_separator): Likewise.
2260 (cli_out_set_stream): Likewise.
2261 * cli/cli-cmds.c (compare_symtabs): Likewise.
2262 * cli/cli-dump.c (call_dump_func): Likewise.
2263 (restore_section_callback): Likewise.
2264 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2265 (do_restore_user_call_depth): Likewise.
2266 (do_free_command_lines_cleanup): Likewise.
2267 * coff-pe-read.c (get_section_vmas): Likewise.
2268 (pe_as16): Likewise.
2269 (pe_as32): Likewise.
2270 * coffread.c (coff_symfile_read): Likewise.
2271 * common/agent.c (agent_look_up_symbols): Likewise.
2272 * common/filestuff.c (do_close_cleanup): Likewise.
2273 * common/format.c (free_format_pieces_cleanup): Likewise.
2274 * common/vec.c (vec_o_reserve): Likewise.
2275 * compile/compile-c-support.c (print_one_macro): Likewise.
2276 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2277 (eq_symbol_error): Likewise.
2278 (del_symbol_error): Likewise.
2279 (error_symbol_once): Likewise.
2280 (gcc_convert_symbol): Likewise.
2281 (gcc_symbol_address): Likewise.
2282 (hash_symname): Likewise.
2283 (eq_symname): Likewise.
2284 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2285 (eq_type_map_instance): Likewise.
2286 (insert_type): Likewise.
2287 (convert_type): Likewise.
2288 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2289 (setup_sections): Likewise.
2290 (link_hash_table_free): Likewise.
2291 (copy_sections): Likewise.
2292 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2293 * compile/compile.c (compile_print_value): Likewise.
2294 (do_rmdir): Likewise.
2295 (cleanup_compile_instance): Likewise.
2296 (cleanup_unlink_file): Likewise.
2297 * completer.c (free_completion_tracker): Likewise.
2298 * corelow.c (add_to_spuid_list): Likewise.
2299 * cp-namespace.c (reset_directive_searched): Likewise.
2300 * cp-support.c (reset_directive_searched): Likewise.
2301 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2302 (cris_frame_unwind_cache): Likewise.
2303 * d-lang.c (builtin_d_type): Likewise.
2304 * d-namespace.c (reset_directive_searched): Likewise.
2305 * dbxread.c (dbx_free_symfile_info): Likewise.
2306 (do_free_bincl_list_cleanup): Likewise.
2307 * disasm.c (hash_dis_line_entry): Likewise.
2308 (eq_dis_line_entry): Likewise.
2309 (dis_asm_print_address): Likewise.
2310 (fprintf_disasm): Likewise.
2311 (do_ui_file_delete): Likewise.
2312 * doublest.c (convert_floatformat_to_doublest): Likewise.
2313 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2314 (dummy_frame_prev_register): Likewise.
2315 (dummy_frame_this_id): Likewise.
2316 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2317 (cache_eq): Likewise.
2318 (cache_find): Likewise.
2319 (tailcall_frame_this_id): Likewise.
2320 (dwarf2_tailcall_prev_register_first): Likewise.
2321 (tailcall_frame_prev_register): Likewise.
2322 (tailcall_frame_dealloc_cache): Likewise.
2323 (tailcall_frame_prev_arch): Likewise.
2324 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2325 (dwarf2_frame_set_init_reg): Likewise.
2326 (dwarf2_frame_init_reg): Likewise.
2327 (dwarf2_frame_set_signal_frame_p): Likewise.
2328 (dwarf2_frame_signal_frame_p): Likewise.
2329 (dwarf2_frame_set_adjust_regnum): Likewise.
2330 (dwarf2_frame_adjust_regnum): Likewise.
2331 (clear_pointer_cleanup): Likewise.
2332 (dwarf2_frame_cache): Likewise.
2333 (find_cie): Likewise.
2334 (dwarf2_frame_find_fde): Likewise.
2335 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2336 (free_dwarf_expr_context_cleanup): Likewise.
2337 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2338 (locexpr_get_frame_base): Likewise.
2339 (loclist_find_frame_base_location): Likewise.
2340 (loclist_get_frame_base): Likewise.
2341 (dwarf_expr_dwarf_call): Likewise.
2342 (dwarf_expr_get_base_type): Likewise.
2343 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2344 (dwarf_expr_get_obj_addr): Likewise.
2345 (entry_data_value_coerce_ref): Likewise.
2346 (entry_data_value_copy_closure): Likewise.
2347 (entry_data_value_free_closure): Likewise.
2348 (get_frame_address_in_block_wrapper): Likewise.
2349 (dwarf2_evaluate_property): Likewise.
2350 (dwarf2_compile_property_to_c): Likewise.
2351 (needs_frame_read_addr_from_reg): Likewise.
2352 (needs_frame_get_reg_value): Likewise.
2353 (needs_frame_frame_base): Likewise.
2354 (needs_frame_frame_cfa): Likewise.
2355 (needs_frame_tls_address): Likewise.
2356 (needs_frame_dwarf_call): Likewise.
2357 (needs_dwarf_reg_entry_value): Likewise.
2358 (get_ax_pc): Likewise.
2359 (locexpr_read_variable): Likewise.
2360 (locexpr_read_variable_at_entry): Likewise.
2361 (locexpr_read_needs_frame): Likewise.
2362 (locexpr_describe_location): Likewise.
2363 (locexpr_tracepoint_var_ref): Likewise.
2364 (locexpr_generate_c_location): Likewise.
2365 (loclist_read_variable): Likewise.
2366 (loclist_read_variable_at_entry): Likewise.
2367 (loclist_describe_location): Likewise.
2368 (loclist_tracepoint_var_ref): Likewise.
2369 (loclist_generate_c_location): Likewise.
2370 * dwarf2read.c (line_header_hash_voidp): Likewise.
2371 (line_header_eq_voidp): Likewise.
2372 (dwarf2_has_info): Likewise.
2373 (dwarf2_get_section_info): Likewise.
2374 (locate_dwz_sections): Likewise.
2375 (hash_file_name_entry): Likewise.
2376 (eq_file_name_entry): Likewise.
2377 (delete_file_name_entry): Likewise.
2378 (dw2_setup): Likewise.
2379 (dw2_get_file_names_reader): Likewise.
2380 (dw2_find_pc_sect_compunit_symtab): Likewise.
2381 (hash_signatured_type): Likewise.
2382 (eq_signatured_type): Likewise.
2383 (add_signatured_type_cu_to_table): Likewise.
2384 (create_debug_types_hash_table): Likewise.
2385 (lookup_dwo_signatured_type): Likewise.
2386 (lookup_dwp_signatured_type): Likewise.
2387 (lookup_signatured_type): Likewise.
2388 (hash_type_unit_group): Likewise.
2389 (eq_type_unit_group): Likewise.
2390 (get_type_unit_group): Likewise.
2391 (process_psymtab_comp_unit_reader): Likewise.
2392 (sort_tu_by_abbrev_offset): Likewise.
2393 (process_skeletonless_type_unit): Likewise.
2394 (psymtabs_addrmap_cleanup): Likewise.
2395 (dwarf2_read_symtab): Likewise.
2396 (psymtab_to_symtab_1): Likewise.
2397 (die_hash): Likewise.
2398 (die_eq): Likewise.
2399 (load_full_comp_unit_reader): Likewise.
2400 (reset_die_in_process): Likewise.
2401 (free_cu_line_header): Likewise.
2402 (handle_DW_AT_stmt_list): Likewise.
2403 (hash_dwo_file): Likewise.
2404 (eq_dwo_file): Likewise.
2405 (hash_dwo_unit): Likewise.
2406 (eq_dwo_unit): Likewise.
2407 (create_dwo_cu_reader): Likewise.
2408 (create_dwo_unit_in_dwp_v1): Likewise.
2409 (create_dwo_unit_in_dwp_v2): Likewise.
2410 (lookup_dwo_unit_in_dwp): Likewise.
2411 (dwarf2_locate_dwo_sections): Likewise.
2412 (dwarf2_locate_common_dwp_sections): Likewise.
2413 (dwarf2_locate_v2_dwp_sections): Likewise.
2414 (hash_dwp_loaded_cutus): Likewise.
2415 (eq_dwp_loaded_cutus): Likewise.
2416 (lookup_dwo_cutu): Likewise.
2417 (abbrev_table_free_cleanup): Likewise.
2418 (dwarf2_free_abbrev_table): Likewise.
2419 (find_partial_die_in_comp_unit): Likewise.
2420 (free_line_header_voidp): Likewise.
2421 (follow_die_offset): Likewise.
2422 (follow_die_sig_1): Likewise.
2423 (free_heap_comp_unit): Likewise.
2424 (free_stack_comp_unit): Likewise.
2425 (dwarf2_free_objfile): Likewise.
2426 (per_cu_offset_and_type_hash): Likewise.
2427 (per_cu_offset_and_type_eq): Likewise.
2428 (get_die_type_at_offset): Likewise.
2429 (partial_die_hash): Likewise.
2430 (partial_die_eq): Likewise.
2431 (dwarf2_per_objfile_free): Likewise.
2432 (hash_strtab_entry): Likewise.
2433 (eq_strtab_entry): Likewise.
2434 (add_string): Likewise.
2435 (hash_symtab_entry): Likewise.
2436 (eq_symtab_entry): Likewise.
2437 (delete_symtab_entry): Likewise.
2438 (cleanup_mapped_symtab): Likewise.
2439 (add_indices_to_cpool): Likewise.
2440 (hash_psymtab_cu_index): Likewise.
2441 (eq_psymtab_cu_index): Likewise.
2442 (add_address_entry_worker): Likewise.
2443 (unlink_if_set): Likewise.
2444 (write_one_signatured_type): Likewise.
2445 (save_gdb_index_command): Likewise.
2446 * elfread.c (elf_symtab_read): Likewise.
2447 (elf_gnu_ifunc_cache_hash): Likewise.
2448 (elf_gnu_ifunc_cache_eq): Likewise.
2449 (elf_gnu_ifunc_record_cache): Likewise.
2450 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2451 (elf_get_probes): Likewise.
2452 (probe_key_free): Likewise.
2453 * f-lang.c (builtin_f_type): Likewise.
2454 * frame-base.c (frame_base_append_sniffer): Likewise.
2455 (frame_base_set_default): Likewise.
2456 (frame_base_find_by_frame): Likewise.
2457 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2458 (frame_unwind_append_unwinder): Likewise.
2459 (frame_unwind_find_by_frame): Likewise.
2460 * frame.c (frame_addr_hash): Likewise.
2461 (frame_addr_hash_eq): Likewise.
2462 (frame_stash_find): Likewise.
2463 (do_frame_register_read): Likewise.
2464 (unwind_to_current_frame): Likewise.
2465 (frame_cleanup_after_sniffer): Likewise.
2466 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2467 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2468 * ft32-tdep.c (ft32_frame_cache): Likewise.
2469 * gcore.c (do_bfd_delete_cleanup): Likewise.
2470 (gcore_create_callback): Likewise.
2471 * gdb_bfd.c (hash_bfd): Likewise.
2472 (eq_bfd): Likewise.
2473 (gdb_bfd_open): Likewise.
2474 (free_one_bfd_section): Likewise.
2475 (gdb_bfd_ref): Likewise.
2476 (gdb_bfd_unref): Likewise.
2477 (get_section_descriptor): Likewise.
2478 (gdb_bfd_map_section): Likewise.
2479 (gdb_bfd_crc): Likewise.
2480 (gdb_bfd_mark_parent): Likewise.
2481 (gdb_bfd_record_inclusion): Likewise.
2482 (gdb_bfd_requires_relocations): Likewise.
2483 (print_one_bfd): Likewise.
2484 * gdbtypes.c (type_pair_hash): Likewise.
2485 (type_pair_eq): Likewise.
2486 (builtin_type): Likewise.
2487 (objfile_type): Likewise.
2488 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2489 (vtable_address_point_offset): Likewise.
2490 (gnuv3_get_vtable): Likewise.
2491 (hash_value_and_voffset): Likewise.
2492 (eq_value_and_voffset): Likewise.
2493 (compare_value_and_voffset): Likewise.
2494 (compute_vtable_size): Likewise.
2495 (gnuv3_get_typeid_type): Likewise.
2496 * go-lang.c (builtin_go_type): Likewise.
2497 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2498 (bkscm_eq_block_smob): Likewise.
2499 (bkscm_objfile_block_map): Likewise.
2500 (bkscm_del_objfile_blocks): Likewise.
2501 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2502 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2503 (gdbscm_disasm_print_address): Likewise.
2504 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2505 (frscm_eq_frame_smob): Likewise.
2506 (frscm_inferior_frame_map): Likewise.
2507 (frscm_del_inferior_frames): Likewise.
2508 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2509 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2510 (ofscm_objfile_smob_from_objfile): Likewise.
2511 * guile/scm-ports.c (ioscm_write): Likewise.
2512 (ioscm_file_port_delete): Likewise.
2513 (ioscm_file_port_rewind): Likewise.
2514 (ioscm_file_port_put): Likewise.
2515 (ioscm_file_port_write): Likewise.
2516 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2517 (psscm_pspace_smob_from_pspace): Likewise.
2518 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2519 (scscm_recording_unwind_handler): Likewise.
2520 (gdbscm_with_catch): Likewise.
2521 (scscm_call_0_body): Likewise.
2522 (scscm_call_1_body): Likewise.
2523 (scscm_call_2_body): Likewise.
2524 (scscm_call_3_body): Likewise.
2525 (scscm_call_4_body): Likewise.
2526 (scscm_apply_1_body): Likewise.
2527 (scscm_eval_scheme_string): Likewise.
2528 (gdbscm_safe_eval_string): Likewise.
2529 (scscm_source_scheme_script): Likewise.
2530 (gdbscm_safe_source_script): Likewise.
2531 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2532 (gdbscm_call_scm_from_stringn): Likewise.
2533 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2534 (syscm_eq_symbol_smob): Likewise.
2535 (syscm_get_symbol_map): Likewise.
2536 (syscm_del_objfile_symbols): Likewise.
2537 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2538 (stscm_eq_symtab_smob): Likewise.
2539 (stscm_objfile_symtab_map): Likewise.
2540 (stscm_del_objfile_symtabs): Likewise.
2541 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2542 (tyscm_eq_type_smob): Likewise.
2543 (tyscm_type_map): Likewise.
2544 (tyscm_copy_type_recursive): Likewise.
2545 (save_objfile_types): Likewise.
2546 * guile/scm-utils.c (extract_arg): Likewise.
2547 * h8300-tdep.c (h8300_frame_cache): Likewise.
2548 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2549 * hppa-tdep.c (compare_unwind_entries): Likewise.
2550 (find_unwind_entry): Likewise.
2551 (hppa_frame_cache): Likewise.
2552 (hppa_stub_frame_unwind_cache): Likewise.
2553 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2554 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2555 (hppaobsd_supply_fpregset): Likewise.
2556 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2557 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2558 * i386-tdep.c (i386_frame_cache): Likewise.
2559 (i386_epilogue_frame_cache): Likewise.
2560 (i386_sigtramp_frame_cache): Likewise.
2561 (i386_supply_gregset): Likewise.
2562 (i386_collect_gregset): Likewise.
2563 (i386_gdbarch_init): Likewise.
2564 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2565 (i386obsd_trapframe_cache): Likewise.
2566 * i387-tdep.c (i387_supply_fsave): Likewise.
2567 (i387_collect_fsave): Likewise.
2568 (i387_supply_fxsave): Likewise.
2569 (i387_collect_fxsave): Likewise.
2570 (i387_supply_xsave): Likewise.
2571 (i387_collect_xsave): Likewise.
2572 * ia64-tdep.c (ia64_frame_cache): Likewise.
2573 (ia64_sigtramp_frame_cache): Likewise.
2574 * infcmd.c (attach_command_continuation): Likewise.
2575 (attach_command_continuation_free_args): Likewise.
2576 * inferior.c (restore_inferior): Likewise.
2577 (delete_thread_of_inferior): Likewise.
2578 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2579 (get_inflow_inferior_data): Likewise.
2580 (inflow_inferior_exit): Likewise.
2581 * infrun.c (displaced_step_clear_cleanup): Likewise.
2582 (restore_current_uiout_cleanup): Likewise.
2583 (release_stop_context_cleanup): Likewise.
2584 (do_restore_infcall_suspend_state_cleanup): Likewise.
2585 (do_restore_infcall_control_state_cleanup): Likewise.
2586 (restore_inferior_ptid): Likewise.
2587 * inline-frame.c (block_starting_point_at): Likewise.
2588 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2589 * jit.c (get_jit_objfile_data): Likewise.
2590 (get_jit_program_space_data): Likewise.
2591 (jit_object_close_impl): Likewise.
2592 (jit_find_objf_with_entry_addr): Likewise.
2593 (jit_breakpoint_deleted): Likewise.
2594 (jit_unwind_reg_set_impl): Likewise.
2595 (jit_unwind_reg_get_impl): Likewise.
2596 (jit_dealloc_cache): Likewise.
2597 (jit_frame_sniffer): Likewise.
2598 (jit_frame_prev_register): Likewise.
2599 (jit_prepend_unwinder): Likewise.
2600 (jit_inferior_exit_hook): Likewise.
2601 (free_objfile_data): Likewise.
2602 * jv-lang.c (jv_per_objfile_free): Likewise.
2603 (get_dynamics_objfile): Likewise.
2604 (get_java_class_symtab): Likewise.
2605 (builtin_java_type): Likewise.
2606 * language.c (language_string_char_type): Likewise.
2607 (language_bool_type): Likewise.
2608 (language_lookup_primitive_type): Likewise.
2609 (language_lookup_primitive_type_as_symbol): Likewise.
2610 * linespec.c (hash_address_entry): Likewise.
2611 (eq_address_entry): Likewise.
2612 (iterate_inline_only): Likewise.
2613 (iterate_name_matcher): Likewise.
2614 (decode_line_2_compare_items): Likewise.
2615 (collect_one_symbol): Likewise.
2616 (compare_symbols): Likewise.
2617 (compare_msymbols): Likewise.
2618 (add_symtabs_to_list): Likewise.
2619 (collect_symbols): Likewise.
2620 (compare_msyms): Likewise.
2621 (add_minsym): Likewise.
2622 (cleanup_linespec_result): Likewise.
2623 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2624 * linux-nat.c (delete_lwp_cleanup): Likewise.
2625 (count_events_callback): Likewise.
2626 (select_event_lwp_callback): Likewise.
2627 (resume_stopped_resumed_lwps): Likewise.
2628 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2629 (invalidate_linux_cache_inf): Likewise.
2630 (get_linux_inferior_data): Likewise.
2631 (linux_find_memory_regions_thunk): Likewise.
2632 (linux_make_mappings_callback): Likewise.
2633 (linux_corefile_thread_callback): Likewise.
2634 (find_mapping_size): Likewise.
2635 * linux-thread-db.c (find_new_threads_callback): Likewise.
2636 * lm32-tdep.c (lm32_frame_cache): Likewise.
2637 * m2-lang.c (builtin_m2_type): Likewise.
2638 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2639 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2640 (m32r_linux_supply_gregset): Likewise.
2641 (m32r_linux_collect_gregset): Likewise.
2642 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2643 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2644 * m68k-tdep.c (m68k_frame_cache): Likewise.
2645 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2646 (m68kbsd_supply_gregset): Likewise.
2647 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2648 * m88k-tdep.c (m88k_frame_cache): Likewise.
2649 (m88k_supply_gregset): Likewise.
2650
2651 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2652
2653 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2654 to allocation result assignment.
2655 * ada-exp.y (write_object_renaming): Likewise.
2656 (write_ambiguous_var): Likewise.
2657 (ada_nget_field_index): Likewise.
2658 (write_var_or_type): Likewise.
2659 * ada-lang.c (ada_decode_symbol): Likewise.
2660 (ada_value_assign): Likewise.
2661 (value_pointer): Likewise.
2662 (cache_symbol): Likewise.
2663 (add_nonlocal_symbols): Likewise.
2664 (ada_name_for_lookup): Likewise.
2665 (symbol_completion_add): Likewise.
2666 (ada_to_fixed_type_1): Likewise.
2667 (ada_get_next_arg): Likewise.
2668 (defns_collected): Likewise.
2669 * ada-lex.l (processId): Likewise.
2670 (processString): Likewise.
2671 * ada-tasks.c (read_known_tasks_array): Likewise.
2672 (read_known_tasks_list): Likewise.
2673 * ada-typeprint.c (decoded_type_name): Likewise.
2674 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2675 * amd64-tdep.c (amd64_push_arguments): Likewise.
2676 (amd64_displaced_step_copy_insn): Likewise.
2677 (amd64_classify_insn_at): Likewise.
2678 (amd64_relocate_instruction): Likewise.
2679 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2680 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2681 (initialize_current_architecture): Likewise.
2682 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2683 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2684 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2685 (arm_push_dummy_call): Likewise.
2686 (extend_buffer_earlier): Likewise.
2687 (arm_adjust_breakpoint_address): Likewise.
2688 (arm_skip_stub): Likewise.
2689 * auto-load.c (filename_is_in_pattern): Likewise.
2690 (maybe_add_script_file): Likewise.
2691 (maybe_add_script_text): Likewise.
2692 (auto_load_objfile_script_1): Likewise.
2693 * auxv.c (ld_so_xfer_auxv): Likewise.
2694 * ax-general.c (new_agent_expr): Likewise.
2695 (grow_expr): Likewise.
2696 (ax_reg_mask): Likewise.
2697 * bcache.c (bcache_full): Likewise.
2698 * breakpoint.c (program_breakpoint_here_p): Likewise.
2699 * btrace.c (parse_xml_raw): Likewise.
2700 * build-id.c (build_id_to_debug_bfd): Likewise.
2701 * buildsym.c (end_symtab_with_blockvector): Likewise.
2702 * c-exp.y (string_exp): Likewise.
2703 (qualified_name): Likewise.
2704 (write_destructor_name): Likewise.
2705 (operator_stoken): Likewise.
2706 (parse_number): Likewise.
2707 (scan_macro_expansion): Likewise.
2708 (yylex): Likewise.
2709 (c_print_token): Likewise.
2710 * c-lang.c (c_get_string): Likewise.
2711 (emit_numeric_character): Likewise.
2712 * charset.c (wchar_iterate): Likewise.
2713 * cli/cli-cmds.c (complete_command): Likewise.
2714 (make_command): Likewise.
2715 * cli/cli-dump.c (restore_section_callback): Likewise.
2716 (restore_binary_file): Likewise.
2717 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2718 * cli/cli-script.c (execute_control_command): Likewise.
2719 * cli/cli-setshow.c (do_set_command): Likewise.
2720 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2721 (read_pe_exported_syms): Likewise.
2722 * coffread.c (coff_read_struct_type): Likewise.
2723 (coff_read_enum_type): Likewise.
2724 * common/btrace-common.c (btrace_data_append): Likewise.
2725 * common/buffer.c (buffer_grow): Likewise.
2726 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2727 * common/format.c (parse_format_string): Likewise.
2728 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2729 * common/xml-utils.c (xml_escape_text): Likewise.
2730 * compile/compile-object-load.c (copy_sections): Likewise.
2731 (compile_object_load): Likewise.
2732 * compile/compile-object-run.c (compile_object_run): Likewise.
2733 * completer.c (filename_completer): Likewise.
2734 * corefile.c (read_memory_typed_address): Likewise.
2735 (write_memory_unsigned_integer): Likewise.
2736 (write_memory_signed_integer): Likewise.
2737 (complete_set_gnutarget): Likewise.
2738 * corelow.c (get_core_register_section): Likewise.
2739 * cp-name-parser.y (d_grab): Likewise.
2740 (allocate_info): Likewise.
2741 (cp_new_demangle_parse_info): Likewise.
2742 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2743 (cp_lookup_symbol_in_namespace): Likewise.
2744 (lookup_namespace_scope): Likewise.
2745 (find_symbol_in_baseclass): Likewise.
2746 (cp_lookup_nested_symbol): Likewise.
2747 (cp_lookup_transparent_type_loop): Likewise.
2748 * cp-support.c (copy_string_to_obstack): Likewise.
2749 (make_symbol_overload_list): Likewise.
2750 (make_symbol_overload_list_namespace): Likewise.
2751 (make_symbol_overload_list_adl_namespace): Likewise.
2752 (first_component_command): Likewise.
2753 * cp-valprint.c (cp_print_value): Likewise.
2754 * ctf.c (ctf_xfer_partial): Likewise.
2755 * d-exp.y (StringExp): Likewise.
2756 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2757 (lookup_module_scope): Likewise.
2758 (find_symbol_in_baseclass): Likewise.
2759 (d_lookup_nested_symbol): Likewise.
2760 * dbxread.c (find_stab_function_addr): Likewise.
2761 (read_dbx_symtab): Likewise.
2762 (dbx_end_psymtab): Likewise.
2763 (cp_set_block_scope): Likewise.
2764 * dcache.c (dcache_alloc): Likewise.
2765 * demangle.c (_initialize_demangler): Likewise.
2766 * dicos-tdep.c (dicos_load_module_p): Likewise.
2767 * dictionary.c (dict_create_hashed_expandable): Likewise.
2768 (dict_create_linear_expandable): Likewise.
2769 (expand_hashtable): Likewise.
2770 (add_symbol_linear_expandable): Likewise.
2771 * dwarf2-frame.c (add_cie): Likewise.
2772 (add_fde): Likewise.
2773 (dwarf2_build_frame_info): Likewise.
2774 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2775 (dwarf_expr_fetch_address): Likewise.
2776 (add_piece): Likewise.
2777 (execute_stack_op): Likewise.
2778 * dwarf2loc.c (chain_candidate): Likewise.
2779 (dwarf_entry_parameter_to_value): Likewise.
2780 (read_pieced_value): Likewise.
2781 (write_pieced_value): Likewise.
2782 * dwarf2read.c (dwarf2_read_section): Likewise.
2783 (add_type_unit): Likewise.
2784 (read_comp_units_from_section): Likewise.
2785 (fixup_go_packaging): Likewise.
2786 (dwarf2_compute_name): Likewise.
2787 (dwarf2_physname): Likewise.
2788 (create_dwo_unit_in_dwp_v1): Likewise.
2789 (create_dwo_unit_in_dwp_v2): Likewise.
2790 (read_func_scope): Likewise.
2791 (read_call_site_scope): Likewise.
2792 (dwarf2_attach_fields_to_type): Likewise.
2793 (process_structure_scope): Likewise.
2794 (mark_common_block_symbol_computed): Likewise.
2795 (read_common_block): Likewise.
2796 (abbrev_table_read_table): Likewise.
2797 (guess_partial_die_structure_name): Likewise.
2798 (fixup_partial_die): Likewise.
2799 (add_file_name): Likewise.
2800 (dwarf2_const_value_data): Likewise.
2801 (dwarf2_const_value_attr): Likewise.
2802 (build_error_marker_type): Likewise.
2803 (guess_full_die_structure_name): Likewise.
2804 (anonymous_struct_prefix): Likewise.
2805 (typename_concat): Likewise.
2806 (dwarf2_canonicalize_name): Likewise.
2807 (dwarf2_name): Likewise.
2808 (write_constant_as_bytes): Likewise.
2809 (dwarf2_fetch_constant_bytes): Likewise.
2810 (copy_string): Likewise.
2811 (parse_macro_definition): Likewise.
2812 * elfread.c (elf_symfile_segments): Likewise.
2813 (elf_rel_plt_read): Likewise.
2814 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2815 (elf_gnu_ifunc_resolve_by_got): Likewise.
2816 (elf_read_minimal_symbols): Likewise.
2817 (elf_gnu_ifunc_record_cache): Likewise.
2818 * event-top.c (top_level_prompt): Likewise.
2819 (command_line_handler): Likewise.
2820 * exec.c (resize_section_table): Likewise.
2821 * expprint.c (print_subexp_standard): Likewise.
2822 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2823 * findcmd.c (parse_find_args): Likewise.
2824 * findvar.c (address_from_register): Likewise.
2825 * frame.c (get_prev_frame_always): Likewise.
2826 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2827 (get_section_descriptor): Likewise.
2828 * gdb_obstack.c (obconcat): Likewise.
2829 (obstack_strdup): Likewise.
2830 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2831 (create_set_type): Likewise.
2832 (lookup_unsigned_typename): Likewise.
2833 (lookup_signed_typename): Likewise.
2834 (resolve_dynamic_union): Likewise.
2835 (resolve_dynamic_struct): Likewise.
2836 (add_dyn_prop): Likewise.
2837 (copy_dynamic_prop_list): Likewise.
2838 (arch_flags_type): Likewise.
2839 (append_composite_type_field_raw): Likewise.
2840 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2841 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2842 * go-exp.y (string_exp): Likewise.
2843 * go-lang.c (go_demangle): Likewise.
2844 * guile/guile.c (compute_scheme_string): Likewise.
2845 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2846 (gdbscm_canonicalize_command_name): Likewise.
2847 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2848 (ioscm_init_memory_port): Likewise.
2849 (ioscm_reinit_memory_port): Likewise.
2850 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2851 (gdbscm_gc_dup_argv): Likewise.
2852 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2853 * hppa-tdep.c (internalize_unwinds): Likewise.
2854 (read_unwind_info): Likewise.
2855 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2856 (windows_core_xfer_shared_libraries): Likewise.
2857 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2858 (i386_stap_parse_special_token_triplet): Likewise.
2859 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2860 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2861 * inf-child.c (inf_child_fileio_readlink): Likewise.
2862 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2863 (inf_ptrace_store_register): Likewise.
2864 * infrun.c (follow_exec): Likewise.
2865 (displaced_step_prepare_throw): Likewise.
2866 (save_stop_context): Likewise.
2867 (save_infcall_suspend_state): Likewise.
2868 * jit.c (jit_read_descriptor): Likewise.
2869 (jit_read_code_entry): Likewise.
2870 (jit_symtab_line_mapping_add_impl): Likewise.
2871 (finalize_symtab): Likewise.
2872 (jit_unwind_reg_get_impl): Likewise.
2873 * jv-exp.y (QualifiedName): Likewise.
2874 * jv-lang.c (get_java_utf8_name): Likewise.
2875 (type_from_class): Likewise.
2876 (java_demangle_type_signature): Likewise.
2877 (java_class_name_from_physname): Likewise.
2878 * jv-typeprint.c (java_type_print_base): Likewise.
2879 * jv-valprint.c (java_value_print): Likewise.
2880 * language.c (add_language): Likewise.
2881 * linespec.c (add_sal_to_sals_basic): Likewise.
2882 (add_sal_to_sals): Likewise.
2883 (decode_objc): Likewise.
2884 (find_linespec_symbols): Likewise.
2885 * linux-fork.c (fork_save_infrun_state): Likewise.
2886 * linux-nat.c (linux_nat_detach): Likewise.
2887 (linux_nat_fileio_readlink): Likewise.
2888 * linux-record.c (record_linux_sockaddr): Likewise.
2889 (record_linux_msghdr): Likewise.
2890 (Do): Likewise.
2891 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2892 (linux_collect_regset_section_cb): Likewise.
2893 (linux_get_siginfo_data): Likewise.
2894 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2895 (try_thread_db_load_from_dir): Likewise.
2896 (thread_db_load_search): Likewise.
2897 (info_auto_load_libthread_db): Likewise.
2898 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2899 (m32c_m16c_pointer_to_address): Likewise.
2900 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2901 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2902 * machoread.c (macho_check_dsym): Likewise.
2903 * macroexp.c (resize_buffer): Likewise.
2904 (gather_arguments): Likewise.
2905 (maybe_expand): Likewise.
2906 * macrotab.c (new_macro_key): Likewise.
2907 (new_source_file): Likewise.
2908 (new_macro_definition): Likewise.
2909 * mdebugread.c (parse_symbol): Likewise.
2910 (parse_type): Likewise.
2911 (parse_partial_symbols): Likewise.
2912 (psymtab_to_symtab_1): Likewise.
2913 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2914 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2915 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2916 (mi_cmd_data_read_memory_bytes): Likewise.
2917 (mi_cmd_data_write_memory_bytes): Likewise.
2918 (mi_cmd_trace_frame_collected): Likewise.
2919 * mi/mi-parse.c (mi_parse_argv): Likewise.
2920 (mi_parse): Likewise.
2921 * minidebug.c (lzma_open): Likewise.
2922 (lzma_pread): Likewise.
2923 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2924 (mips_print_fp_register): Likewise.
2925 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2926 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2927 * mt-tdep.c (mt_register_name): Likewise.
2928 (mt_registers_info): Likewise.
2929 (mt_push_dummy_call): Likewise.
2930 * namespace.c (add_using_directive): Likewise.
2931 * nat/linux-btrace.c (perf_event_read): Likewise.
2932 (linux_enable_bts): Likewise.
2933 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2934 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2935 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2936 (nto_parse_redirection): Likewise.
2937 * objc-lang.c (objc_demangle): Likewise.
2938 (find_methods): Likewise.
2939 * objfiles.c (get_objfile_bfd_data): Likewise.
2940 (set_objfile_main_name): Likewise.
2941 (allocate_objfile): Likewise.
2942 (objfile_relocate): Likewise.
2943 (update_section_map): Likewise.
2944 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2945 * p-exp.y (exp): Likewise.
2946 (yylex): Likewise.
2947 * p-valprint.c (pascal_object_print_value): Likewise.
2948 * parse.c (initialize_expout): Likewise.
2949 (mark_completion_tag): Likewise.
2950 (copy_name): Likewise.
2951 (parse_float): Likewise.
2952 (type_stack_reserve): Likewise.
2953 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2954 (ppu2spu_prev_register): Likewise.
2955 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2956 * printcmd.c (printf_wide_c_string): Likewise.
2957 (printf_pointer): Likewise.
2958 * probe.c (parse_probes): Likewise.
2959 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2960 (cmdpy_init): Likewise.
2961 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2962 * python/py-symtab.c (set_sal): Likewise.
2963 * python/py-unwind.c (pyuw_sniffer): Likewise.
2964 * python/python.c (python_interactive_command): Likewise.
2965 (compute_python_string): Likewise.
2966 * ravenscar-thread.c (get_running_thread_id): Likewise.
2967 * record-full.c (record_full_exec_insn): Likewise.
2968 (record_full_core_open_1): Likewise.
2969 * regcache.c (regcache_raw_read_signed): Likewise.
2970 (regcache_raw_read_unsigned): Likewise.
2971 (regcache_cooked_read_signed): Likewise.
2972 (regcache_cooked_read_unsigned): Likewise.
2973 * remote-fileio.c (remote_fileio_func_open): Likewise.
2974 (remote_fileio_func_rename): Likewise.
2975 (remote_fileio_func_unlink): Likewise.
2976 (remote_fileio_func_stat): Likewise.
2977 (remote_fileio_func_system): Likewise.
2978 * remote-mips.c (mips_xfer_memory): Likewise.
2979 (mips_load_srec): Likewise.
2980 (pmon_end_download): Likewise.
2981 * remote.c (new_remote_state): Likewise.
2982 (map_regcache_remote_table): Likewise.
2983 (remote_register_number_and_offset): Likewise.
2984 (init_remote_state): Likewise.
2985 (get_memory_packet_size): Likewise.
2986 (remote_pass_signals): Likewise.
2987 (remote_program_signals): Likewise.
2988 (remote_start_remote): Likewise.
2989 (remote_check_symbols): Likewise.
2990 (remote_query_supported): Likewise.
2991 (extended_remote_attach): Likewise.
2992 (process_g_packet): Likewise.
2993 (store_registers_using_G): Likewise.
2994 (putpkt_binary): Likewise.
2995 (read_frame): Likewise.
2996 (compare_sections_command): Likewise.
2997 (remote_hostio_pread): Likewise.
2998 (remote_hostio_readlink): Likewise.
2999 (remote_file_put): Likewise.
3000 (remote_file_get): Likewise.
3001 (remote_pid_to_exec_file): Likewise.
3002 (_initialize_remote): Likewise.
3003 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3004 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3005 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3006 (bfd_uses_spe_extensions): Likewise.
3007 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
3008 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
3009 * solib-dsbt.c (decode_loadmap): Likewise.
3010 (fetch_loadmap): Likewise.
3011 (scan_dyntag): Likewise.
3012 (enable_break): Likewise.
3013 (dsbt_relocate_main_executable): Likewise.
3014 * solib-frv.c (fetch_loadmap): Likewise.
3015 (enable_break2): Likewise.
3016 (frv_relocate_main_executable): Likewise.
3017 * solib-spu.c (spu_relocate_main_executable): Likewise.
3018 (spu_bfd_open): Likewise.
3019 * solib-svr4.c (lm_info_read): Likewise.
3020 (read_program_header): Likewise.
3021 (find_program_interpreter): Likewise.
3022 (scan_dyntag): Likewise.
3023 (elf_locate_base): Likewise.
3024 (open_symbol_file_object): Likewise.
3025 (read_program_headers_from_bfd): Likewise.
3026 (svr4_relocate_main_executable): Likewise.
3027 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
3028 * solib.c (solib_find_1): Likewise.
3029 (exec_file_find): Likewise.
3030 (solib_find): Likewise.
3031 * source.c (openp): Likewise.
3032 (print_source_lines_base): Likewise.
3033 (forward_search_command): Likewise.
3034 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
3035 * spu-tdep.c (spu2ppu_prev_register): Likewise.
3036 (spu_get_overlay_table): Likewise.
3037 * stabsread.c (patch_block_stabs): Likewise.
3038 (define_symbol): Likewise.
3039 (again:): Likewise.
3040 (read_member_functions): Likewise.
3041 (read_one_struct_field): Likewise.
3042 (read_enum_type): Likewise.
3043 (common_block_start): Likewise.
3044 * stack.c (read_frame_arg): Likewise.
3045 (backtrace_command): Likewise.
3046 * stap-probe.c (stap_parse_register_operand): Likewise.
3047 * symfile.c (syms_from_objfile_1): Likewise.
3048 (find_separate_debug_file): Likewise.
3049 (load_command): Likewise.
3050 (load_progress): Likewise.
3051 (load_section_callback): Likewise.
3052 (reread_symbols): Likewise.
3053 (add_filename_language): Likewise.
3054 (allocate_compunit_symtab): Likewise.
3055 (read_target_long_array): Likewise.
3056 (simple_read_overlay_table): Likewise.
3057 * symtab.c (symbol_set_names): Likewise.
3058 (resize_symbol_cache): Likewise.
3059 (rbreak_command): Likewise.
3060 (completion_list_add_name): Likewise.
3061 (completion_list_objc_symbol): Likewise.
3062 (add_filename_to_list): Likewise.
3063 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
3064 * target-memory.c (target_write_memory_blocks): Likewise.
3065 * target.c (target_read_string): Likewise.
3066 (read_whatever_is_readable): Likewise.
3067 (target_read_alloc_1): Likewise.
3068 (simple_search_memory): Likewise.
3069 (target_fileio_read_alloc_1): Likewise.
3070 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3071 * top.c (command_line_input): Likewise.
3072 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3073 * tracefile.c (tracefile_fetch_registers): Likewise.
3074 * tracepoint.c (add_memrange): Likewise.
3075 (init_collection_list): Likewise.
3076 (add_aexpr): Likewise.
3077 (trace_dump_actions): Likewise.
3078 (parse_trace_status): Likewise.
3079 (parse_tracepoint_definition): Likewise.
3080 (parse_tsv_definition): Likewise.
3081 (parse_static_tracepoint_marker_definition): Likewise.
3082 * tui/tui-file.c (tui_sfileopen): Likewise.
3083 (tui_file_adjust_strbuf): Likewise.
3084 * tui/tui-io.c (tui_expand_tabs): Likewise.
3085 * tui/tui-source.c (tui_set_source_content): Likewise.
3086 * typeprint.c (find_global_typedef): Likewise.
3087 * ui-file.c (do_ui_file_xstrdup): Likewise.
3088 (ui_file_obsavestring): Likewise.
3089 (mem_file_write): Likewise.
3090 * utils.c (make_hex_string): Likewise.
3091 (get_regcomp_error): Likewise.
3092 (puts_filtered_tabular): Likewise.
3093 (gdb_realpath_keepfile): Likewise.
3094 (ldirname): Likewise.
3095 (gdb_bfd_errmsg): Likewise.
3096 (substitute_path_component): Likewise.
3097 * valops.c (search_struct_method): Likewise.
3098 (find_oload_champ_namespace_loop): Likewise.
3099 * valprint.c (print_decimal_chars): Likewise.
3100 (read_string): Likewise.
3101 (generic_emit_char): Likewise.
3102 * varobj.c (varobj_delete): Likewise.
3103 (varobj_value_get_print_value): Likewise.
3104 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
3105 * windows-tdep.c (display_one_tib): Likewise.
3106 * xcoffread.c (read_xcoff_symtab): Likewise.
3107 (process_xcoff_symbol): Likewise.
3108 (swap_sym): Likewise.
3109 (scan_xcoff_symtab): Likewise.
3110 (xcoff_initial_scan): Likewise.
3111 * xml-support.c (gdb_xml_end_element): Likewise.
3112 (xml_process_xincludes): Likewise.
3113 (xml_fetch_content_from_file): Likewise.
3114 * xml-syscall.c (xml_list_of_syscalls): Likewise.
3115 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3116
3117 2015-09-23 James Bowman <james.bowman@ftdichip.com>
3118
3119 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
3120 instead of builtin_func_ptr.
3121 (ft32_pointer_to_address): New function.
3122 (ft32_address_class_type_flags): New function.
3123 (ft32_address_class_type_flags_to_name): New function.
3124 (ft32_address_class_name_to_type_flags): New function.
3125 (ft32_gdbarch_init): Set tdep->pc_type. Call
3126 set_gdbarch_pointer_to_address,
3127 set_gdbarch_address_class_type_flags
3128 set_gdbarch_address_class_name_to_type_flags,
3129 and set_gdbarch_address_class_type_flags_to_name.
3130 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3131
3132 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
3133
3134 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3135 value is a reference, actually dereference it in order to get
3136 the underlying value.
3137
3138 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
3139
3140 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3141
3142 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3143
3144 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3145 * linespec.c (linespec_lexer_lex_string): Same.
3146
3147 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3148
3149 * NEWS: Mention support for fast tracepoints on aarch64-linux.
3150
3151 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3152
3153 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3154 variable. Call aarch64_decode_adr instead of
3155 aarch64_decode_adrp.
3156 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3157 (aarch64_decode_adr): New function declaration.
3158 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3159 (aarch64_decode_adr): New function, factored out from
3160 aarch64_decode_adrp to decode both adr and adrp instructions.
3161
3162 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3163
3164 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3165 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3166 (aarch64-insn.o): New rule.
3167 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3168 (aarch64*-*-linux*): Likewise.
3169 * arch/aarch64-insn.c: New file.
3170 * arch/aarch64-insn.h: New file.
3171 * aarch64-tdep.c: Include arch/aarch64-insn.h.
3172 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
3173 arch/aarch64-insn.h.
3174 (decode_add_sub_imm): Rename to ...
3175 (aarch64_decode_add_sub_imm): ... this.
3176 (decode_adrp): Rename to ...
3177 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
3178 Declare in arch/aarch64-insn.h.
3179 (decode_b): Rename to ...
3180 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
3181 Declare in arch/aarch64-insn.h.
3182 (decode_bcond): Rename to ...
3183 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
3184 Declare in arch/aarch64-insn.h.
3185 (decode_br): Rename to ...
3186 (aarch64_decode_br): ... this.
3187 (decode_cb): Rename to ...
3188 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
3189 Declare in arch/aarch64-insn.h.
3190 (decode_eret): Rename to ...
3191 (aarch64_decode_eret): ... this.
3192 (decode_movz): Rename to ...
3193 (aarch64_decode_movz): ... this.
3194 (decode_orr_shifted_register_x): Rename to ...
3195 (aarch64_decode_orr_shifted_register_x): ... this.
3196 (decode_ret): Rename to ...
3197 (aarch64_decode_ret): ... this.
3198 (decode_stp_offset): Rename to ...
3199 (aarch64_decode_stp_offset): ... this.
3200 (decode_stp_offset_wb): Rename to ...
3201 (aarch64_decode_stp_offset_wb): ... this.
3202 (decode_stur): Rename to ...
3203 (aarch64_decode_stur): ... this.
3204 (decode_tb): Rename to ...
3205 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3206 Declare in arch/aarch64-insn.h.
3207 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3208
3209 2015-09-20 Doug Evans <xdje42@gmail.com>
3210
3211 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3212
3213 2015-09-20 Doug Evans <xdje42@gmail.com>
3214
3215 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3216 variable name that collides with a parameter.
3217
3218 2015-09-20 Joel Brobecker <brobecker@adacore.com>
3219
3220 * dwarf2loc.c (locexpr_get_frame_base): Renames
3221 block_op_get_frame_base.
3222 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3223 block_op_get_frame_base by reference to locexpr_get_frame_base.
3224 (loclist_get_frame_base): New function, near identical copy of
3225 locexpr_get_frame_base.
3226 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3227 block_op_get_frame_base by reference to loclist_get_frame_base.
3228
3229 2015-09-19 Doug Evans <xdje42@gmail.com>
3230
3231 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3232 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3233
3234 2015-09-18 Doug Evans <xdje42@gmail.com>
3235
3236 * linux-thread-db.c (record_thread): Return the created thread.
3237 (thread_from_lwp): Likewise.
3238 (thread_db_get_thread_local_address): Update.
3239
3240 2015-09-18 Doug Evans <xdje42@gmail.com>
3241
3242 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3243 move only member demangled_name up. All uses updated.
3244
3245 2015-09-18 Doug Evans <xdje42@gmail.com>
3246
3247 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3248 kind of minimal symbol in the error message.
3249 * objfiles.c (objfile_flavour_name): New function.
3250 * objfiles.h (objfile_flavour_name): Declare.
3251
3252 2015-09-18 Yao Qi <yao.qi@linaro.org>
3253
3254 * nat/aarch64-linux.c: Include elf/common.h,
3255 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3256 (aarch64_ps_get_thread_area): New function.
3257 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3258 (aarch64_ps_get_thread_area): Declare.
3259 * aarch64-linux-nat.c (ps_get_thread_area): Call
3260 aarch64_ps_get_thread_area.
3261
3262 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3263
3264 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3265
3266 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3267
3268 * NEWS: Announce new scheduler-locking mode.
3269 * infrun.c (schedlock_replay): New.
3270 (scheduler_enums): Add schedlock_replay.
3271 (scheduler_mode): Change default to schedlock_replay.
3272 (user_visible_resume_ptid): Handle schedlock_replay.
3273 (clear_proceed_status_thread): Stop replaying if resumed thread is
3274 not replaying.
3275 (schedlock_applies): Handle schedlock_replay.
3276 (_initialize_infrun): Document new scheduler-locking mode.
3277 * record-btrace.c (record_btrace_resume): Remove code to stop other
3278 threads when not replaying the resumed thread.
3279
3280 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3281
3282 * record-btrace.c ((record_btrace_will_replay): New.
3283 (init_record_btrace_ops): Initialize to_record_will_replay.
3284 * record-full.c ((record_full_will_replay): New.
3285 (init_record_full_ops): Initialize to_record_will_replay.
3286 * target-delegates.c: Regenerated.
3287 * target.c (target_record_will_replay): New.
3288 * target.h (struct target_ops) <to_record_will_replay>: New.
3289 (target_record_will_replay): New.
3290
3291 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3292
3293 * record-btrace.c (record_btrace_resume): Call
3294 target_record_stop_replaying.
3295 (record_btrace_stop_replaying_all): New.
3296 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3297 * record-full.c (record_full_stop_replaying): New.
3298 (init_record_full_ops ): Initialize to_record_stop_replaying.
3299 * target-delegates.c: Regenerated.
3300 * target.c (target_record_stop_replaying): New.
3301 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3302 (target_record_stop_replaying): New.
3303
3304 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3305
3306 * record-btrace.c (record_btrace_xfer_partial)
3307 (record_btrace_store_registers, record_btrace_prepare_to_store):
3308 Call record_btrace_is_replaying with inferior_ptid instead of
3309 minus_one_ptid.
3310 (record_btrace_store_registers): Change error message.
3311
3312 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3313
3314 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3315 Update users to pass minus_one_ptid.
3316 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3317 * record.c (cmd_record_delete): Pass inferior_ptid to
3318 target_record_is_replaying.
3319 * target-delegates.c: Regenerated.
3320 * target.c (target_record_is_replaying): Add ptid argument.
3321 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3322 argument.
3323 (target_record_is_replaying): Add ptid argument.
3324
3325 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3326
3327 * record-btrace.c (record_btrace_open): Remove non_stop check.
3328 * NEWS: Announce that record btrace supports non-stop mode.
3329
3330 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3331
3332 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3333 in the TARKET_WAITKIND_NO_HISTORY case.
3334
3335 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3336
3337 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3338 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3339
3340 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3341
3342 * record-btrace.c (get_thread_current_frame): New.
3343 (record_btrace_start_replaying): Call get_thread_current_frame.
3344
3345 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3346
3347 * record-btrace.c (record_btrace_resume_thread): A move request
3348 overwrites a previous move request.
3349 (record_btrace_find_resume_thread): Removed.
3350 (record_btrace_resume): Resume all requested threads.
3351
3352 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3353
3354 * record-btrace.c: Include vec.h.
3355 (record_btrace_find_thread_to_move): Removed.
3356 (btrace_step_no_resumed, btrace_step_again)
3357 (record_btrace_stop_replaying_at_end): New.
3358 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3359 (record_btrace_single_step_forward): Remove calls to
3360 record_btrace_stop_replaying.
3361 (record_btrace_step_thread): Do only one step for BTHR_CONT and
3362 BTHR_RCONT. Keep threads at the end of their history moving.
3363 (record_btrace_wait): Call record_btrace_step_thread for all threads
3364 until one reports an event. Call record_btrace_stop_replaying_at_end
3365 for the eventing thread.
3366
3367 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3368
3369 * record-btrace.c (record_btrace_single_step_forward): Return
3370 NO_HISTORY if a step brings us to the end of the execution history.
3371
3372 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3373
3374 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
3375 to ...
3376 (record_btrace_single_step_forward): ... here and
3377 (record_btrace_single_step_backward): ... here.
3378
3379 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3380
3381 * record-btrace.c (btrace_step_spurious)
3382 (record_btrace_single_step_forward)
3383 (record_btrace_single_step_backward): New.
3384 (record_btrace_step_thread): Call record_btrace_single_step_forward
3385 and record_btrace_single_step_backward.
3386
3387 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3388
3389 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3390 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3391
3392 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3393
3394 * record-btrace.c (btrace_thread_flag_to_str)
3395 (record_btrace_cancel_resume): New.
3396 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3397 (record_btrace_resume): Print execution direction.
3398 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3399 (record_btrace_wait): Call record_btrace_cancel_resume.
3400
3401 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3402
3403 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3404 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3405 (record_btrace_find_thread_to_move): Also accept threads that have
3406 BTHR_STOP set.
3407 (btrace_step_stopped_on_request, record_btrace_stop): New.
3408 (record_btrace_step_thread): Support BTHR_STOP.
3409 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3410 (init_record_btrace_ops): Initialize to_stop.
3411
3412 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3413
3414 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3415 target_is_non_stop_p ().
3416
3417 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3418
3419 * ada-typeprint.c (print_array_type): Do not describe arrays as
3420 packed when they embed dynamic elements.
3421
3422 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3423
3424 * symtab.h (address_class): Document that TLS variables
3425 are handled by LOC_UNRESOLVED.
3426 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3427 * printcmd.c (address_info): Don't relocate TLS variables.
3428
3429 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3430
3431 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3432 (decode_adrp): Likewise.
3433 (decode_b): Likewise.
3434 (decode_bcond): Likewise.
3435 (decode_br): Likewise.
3436 (decode_cb): Likewise.
3437 (decode_eret): Likewise.
3438 (decode_movz): Likewise.
3439 (decode_orr_shifted_register_x): Likewise.
3440 (decode_ret): Likewise.
3441 (decode_stp_offset): Likewise.
3442 (decode_stp_offset_wb): Likewise.
3443 (decode_stur): Likewise.
3444 (decode_tb): Likewise.
3445 (aarch64_analyze_prologue): Likewise.
3446 (pass_in_x): Likewise.
3447 (pass_in_v): Likewise.
3448 (pass_on_stack): Likewise.
3449 (aarch64_push_dummy_call): Likewise.
3450 (aarch64_extract_return_value): Likewise.
3451 (aarch64_store_return_value): Likewise.
3452 (aarch64_return_value): Likewise.
3453 (aarch64_record_asimd_load_store): Likewise.
3454 (aarch64_record_load_store): Likewise.
3455 (aarch64_record_data_proc_simd_fp): Likewise.
3456
3457 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3458
3459 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3460 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3461 (ppc64_skip_trampoline_code_1): ... here.
3462 (ppc64_skip_trampoline_code): New wrapper function.
3463 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3464
3465 2015-09-15 Yao Qi <yao.qi@linaro.org>
3466
3467 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3468 function.
3469 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3470 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3471 if target_can_do_single_step returns 1.
3472 * remote.c (struct vCont_action_support) <s, S>: New fields.
3473 (PACKET_vContSupported): New enum.
3474 (remote_protocol_features): New element for vContSupported.
3475 (remote_query_supported): Append "vContSupported+".
3476 (remote_vcont_probe): Remove support_s and support_S, use
3477 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3478 vCont packet if c and C actions are not supported.
3479 (remote_can_do_single_step): New function.
3480 (init_remote_ops): Install it to to_can_do_single_step.
3481 (_initialize_remote): Call add_packet_config_cmd.
3482 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3483 (target_can_do_single_step): New macro.
3484 * target-delegates.c: Re-generated.
3485
3486 2015-09-15 Yao Qi <yao.qi@linaro.org>
3487
3488 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3489 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3490 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3491 New function.
3492 (aarch64_siginfo_from_compat_siginfo): New function.
3493 * nat/aarch64-linux.h: Include signal.h.
3494 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3495 (compat_timer_t, compat_clock_t): Likewise.
3496 (struct compat_timeval): New.
3497 (union compat_sigval): New.
3498 (struct compat_siginfo): New.
3499 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3500 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3501 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3502 (cpt_si_band, cpt_si_fd): Likewise.
3503
3504 2015-09-14 Pedro Alves <palves@redhat.com>
3505
3506 * infrun.c (current_stop_id): New global.
3507 (get_stop_id, new_stop_id): New functions.
3508 (fetch_inferior_event): Handle normal_stop proceeding the target.
3509 (struct stop_context): New.
3510 (save_stop_context, release_stop_context_cleanup)
3511 (stop_context_changed): New functions.
3512 (normal_stop): Return true if the hook-stop changes the stop
3513 context.
3514 * infrun.h (get_stop_id): Declare.
3515 (normal_stop): Now returns int. Add documentation.
3516
3517 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3518
3519 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3520 comment. Handle packed arrays.
3521
3522 2015-09-14 Pedro Alves <palves@redhat.com>
3523
3524 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3525 mention of maint set/show target-non-stop.
3526
3527 2015-09-11 Don Breazeal <donb@codesourcery.com>
3528
3529 * NEWS: Announce new remote packets for the exec-events
3530 feature and the exec-events feature and associated commands.
3531
3532 2015-09-11 Don Breazeal <donb@codesourcery.com>
3533
3534 * remote.c (remote_exec_event_p): New function.
3535 (remote_insert_exec_catchpoint): New function.
3536 (remote_remove_exec_catchpoint): New function.
3537 (init_extended_remote_ops): Initialize extended_remote_ops
3538 members to_insert_exec_catchpoint and
3539 to_remove_exec_catchpoint.
3540
3541 2015-09-11 Don Breazeal <donb@codesourcery.com>
3542 Luis Machado <lgustavo@codesourcery.com>
3543
3544 * infrun.c (follow_exec): Use process-style ptid for
3545 exec message. Call add_inferior_with_spaces and
3546 target_follow_exec.
3547 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3548 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3549 * remote.c (remote_pspace_data): New static variable.
3550 (remote_pspace_data_cleanup): New function.
3551 (get_remote_exec_file): New function.
3552 (set_remote_exec_file_1): New function.
3553 (set_remote_exec_file): New function.
3554 (show_remote_exec_file): New function.
3555 (remote_exec_file): Delete static variable.
3556 (anonymous enum) <PACKET_exec_event_feature>: New
3557 enumeration constant.
3558 (remote_protocol_features): Add entry for exec-events feature.
3559 (remote_query_supported): Add client side of qSupported query
3560 for exec-events feature.
3561 (remote_follow_exec): New function.
3562 (remote_parse_stop_reply): Handle 'exec' stop reason.
3563 (extended_remote_run, extended_remote_create_inferior): Call
3564 get_remote_exec_file and set_remote_exec_file_1.
3565 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3566 member.
3567 (_initialize_remote): Call
3568 register_program_space_data_with_cleanup. Call
3569 add_packet_config_cmd for remote exec-events feature.
3570 Modify call to add_setshow_string_noescape_cmd for exec-file
3571 to use new functions set_remote_exec_file and
3572 show_remote_exec_file.
3573 * target-debug.h, target-delegates.c: Regenerated.
3574 * target.c (target_follow_exec): New function.
3575 * target.h (struct target_ops) <to_follow_exec>: New member.
3576 (target_follow_exec): Declare new function.
3577
3578 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3579
3580 * aarch64-tdep.c (decode_cb): Move up comment describing the
3581 encoding.
3582 (decode_tb): Fix a typo in comment above the function. Move up
3583 comment describing the encoding.
3584
3585 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3586
3587 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3588
3589 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3590
3591 PR gdb/18947
3592 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3593 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3594
3595 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3596
3597 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3598 operations.
3599
3600 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3601
3602 * ada-lang.c (ada_search_struct_field): Constify parameters
3603 and/or variables..
3604 (xget_renaming_scope): Likewise.
3605 (ada_is_redundant_range_encoding): Likewise.
3606 (scan_discrim_bound): Likewise.
3607 (to_fixed_range_type): Likewise.
3608
3609 2015-09-10 Yao Qi <yao.qi@linaro.org>
3610
3611 * breakpoint.c (download_tracepoint_locations): New local
3612 can_download_tracepoint. Check the result of
3613 target_can_download_tracepoint and save it in
3614 can_download_tracepoint if there are tracepoints to download.
3615 * linux-nat.h (enum tribool): Move it to ...
3616 * common/common-types.h: ... here.
3617
3618 2015-09-09 Pedro Alves <palves@redhat.com>
3619
3620 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3621 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3622
3623 2015-09-09 Pedro Alves <palves@redhat.com>
3624
3625 * continuations.c (add_continuation, restore_thread_cleanup)
3626 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3627 (do_all_continuations_thread, do_all_continuations)
3628 (discard_all_continuations_thread_callback)
3629 (discard_all_continuations_thread, discard_all_continuations)
3630 (add_intermediate_continuation)
3631 (do_all_intermediate_continuations_thread_callback)
3632 (do_all_intermediate_continuations_thread)
3633 (do_all_intermediate_continuations)
3634 (discard_all_intermediate_continuations_thread_callback)
3635 (discard_all_intermediate_continuations_thread)
3636 (discard_all_intermediate_continuations): Delete.
3637 * continuations.h (add_continuation, do_all_continuations)
3638 (do_all_continuations_thread, discard_all_continuations)
3639 (discard_all_continuations_thread, add_intermediate_continuation)
3640 (do_all_intermediate_continuations)
3641 (do_all_intermediate_continuations_thread)
3642 (discard_all_intermediate_continuations)
3643 (discard_all_intermediate_continuations_thread): Delete
3644 declarations.
3645 * event-top.c (stdin_event_handler): Delete references to
3646 continuations.
3647 * gdbthread.h (struct thread_info): Delete continuations and
3648 intermediate_continuations fields.
3649 * inf-loop.c (inferior_event_handler): Remove references to
3650 continuations.
3651 * infrun.c (infrun_thread_stop_requested_callback): Remove
3652 references to continuations.
3653 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3654 * thread.c: Don't include "continuations.h".
3655 (clear_thread_inferior_resources): Remove references to
3656 continuations.
3657
3658 2015-09-09 Pedro Alves <palves@redhat.com>
3659
3660 * infcall.c (struct dummy_frame_context_saver): Delete.
3661 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3662 (dummy_frame_context_saver_drop)
3663 (dummy_frame_context_saver_cleanup)
3664 (dummy_frame_context_saver_get_regs)
3665 (dummy_frame_context_saver_setup): Delete.
3666 * infcall.h (dummy_frame_context_saver_drop)
3667 (dummy_frame_context_saver_cleanup)
3668 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3669 Delete.
3670 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3671 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3672 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3673
3674 2015-09-09 Pedro Alves <palves@redhat.com>
3675
3676 * breakpoint.c: Include "thread-fsm.h".
3677 (struct until_break_command_continuation_args): Delete.
3678 (struct until_break_fsm): New.
3679 (until_break_fsm_ops): New global.
3680 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3681 (until_break_command_continuation): Delete.
3682 (until_break_fsm_clean_up): New function.
3683 (until_break_fsm_async_reply_reason): New function.
3684 (until_break_command): Adjust to create an until_break_fsm instead
3685 of a continuation.
3686 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3687 here.
3688 * infcmd.c (struct until_next_fsm): New.
3689 (until_next_fsm_ops): New global.
3690 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3691 (until_next_continuation): Delete.
3692 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3693 functions.
3694 (until_next_command): Adjust to create a new until_next_fsm
3695 instead of a continuation.
3696
3697 2015-09-09 Pedro Alves <palves@redhat.com>
3698
3699 * infcall.c: Include thread_fsm.h.
3700 (struct call_return_meta_info): New.
3701 (get_call_return_value): New function, factored out from
3702 call_function_by_hand_dummy.
3703 (struct call_thread_fsm): New.
3704 (call_thread_fsm_ops): New global.
3705 (new_call_thread_fsm, call_thread_fsm_should_stop)
3706 (call_thread_fsm_should_notify_stop): New functions.
3707 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3708 the thread.
3709 (call_function_by_hand_dummy): Create a new call_thread_fsm
3710 instance, associate it with the thread, and wait for the FSM to
3711 finish. If finished successfully, fetch the function's result
3712 value out of the FSM.
3713 * infrun.c (fetch_inferior_event): If the FSM says the stop
3714 shouldn't be notified, don't call normal_stop.
3715 (maybe_remove_breakpoints): New function, factored out from ...
3716 (normal_stop): ... here. Simplify.
3717 * infrun.h (maybe_remove_breakpoints): Declare.
3718 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3719 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3720 (thread_fsm_should_notify_stop): Declare.
3721
3722 2015-09-09 Pedro Alves <palves@redhat.com>
3723
3724 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3725 * breakpoint.c (handle_jit_event): Print debug output.
3726 (bpstat_what): Split event callback handling to ...
3727 (bpstat_run_callbacks): ... this new function.
3728 (momentary_bkpt_print_it): No longer handle bp_finish here.
3729 * breakpoint.h (bpstat_run_callbacks): Declare.
3730 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3731 <thread_fsm>: New field.
3732 (thread_cancel_execution_command): Declare.
3733 * infcmd.c: Include thread-fsm.h.
3734 (struct step_command_fsm): New.
3735 (step_command_fsm_ops): New global.
3736 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3737 (step_1): Adjust to use step_command_fsm_prepare and
3738 prepare_one_step.
3739 (struct step_1_continuation_args): Delete.
3740 (step_1_continuation): Delete.
3741 (step_command_fsm_should_stop): New function.
3742 (step_once): Delete.
3743 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3744 (prepare_one_step): New function, based on step_once.
3745 (until_next_command): Remove step_multi reference.
3746 (struct return_value_info): New.
3747 (print_return_value): Rename to ...
3748 (print_return_value_1): ... this. New struct return_value_info
3749 parameter. Adjust.
3750 (print_return_value): Reimplement as wrapper around
3751 print_return_value_1.
3752 (struct finish_command_fsm): New.
3753 (finish_command_continuation): Delete.
3754 (finish_command_fsm_ops): New global.
3755 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3756 functions.
3757 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3758 New.
3759 (finish_command_continuation_free_arg): Delete.
3760 (finish_command_fsm_async_reply_reason): New.
3761 (finish_backward, finish_forward): Change symbol parameter to a
3762 finish_command_fsm. Adjust.
3763 (finish_command): Create a finish_command_fsm. Adjust.
3764 * infrun.c: Include "thread-fsm.h".
3765 (clear_proceed_status_thread): Delete the thread's FSM.
3766 (infrun_thread_stop_requested_callback): Cancel the thread's
3767 execution command.
3768 (clean_up_just_stopped_threads_fsms): New function.
3769 (fetch_inferior_event): Handle the event_thread's should_stop
3770 method saying the command isn't done yet.
3771 (process_event_stop_test): Run breakpoint callbacks here.
3772 (print_stop_event): Rename to ...
3773 (print_stop_location): ... this.
3774 (restore_current_uiout_cleanup): New function.
3775 (print_stop_event): Reimplement.
3776 (normal_stop): No longer notify the end_stepping_range observers
3777 here handle "step N" nor "finish" here. No longer call
3778 print_stop_event here.
3779 * infrun.h (struct return_value_info): Forward declare.
3780 (print_return_value): Declare.
3781 (print_stop_event): Change prototype.
3782 * thread-fsm.c: New file.
3783 * thread-fsm.h: New file.
3784 * thread.c: Include "thread-fsm.h".
3785 (thread_cancel_execution_command): New function.
3786 (clear_thread_inferior_resources): Call it.
3787 * cli/cli-interp.c (cli_on_normal_stop): New function.
3788 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3789 observer.
3790 * mi/mi-interp.c: Include "thread-fsm.h".
3791 (restore_current_uiout_cleanup): Delete.
3792 (mi_on_normal_stop): If the thread has an FSM associated, and it
3793 finished, ask it for the async-reply-reason to print. Always call
3794 print_stop_event here, regardless of the top-level interpreter.
3795 Check bpstat_what to tell whether an asynchronous breakpoint hit
3796 triggered.
3797 * tui/tui-interp.c (tui_on_normal_stop): New function.
3798 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3799
3800 2015-09-09 Pedro Alves <palves@redhat.com>
3801
3802 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3803 check whether the target can async.
3804 * inf-loop.c (inferior_event_handler): Only call target_async if
3805 the target can async.
3806 * infcall.c: Include top.h and interps.h.
3807 (run_inferior_call): For the interpreter to sync mode while
3808 running the infcall. Call wait_sync_command_done instead of
3809 wait_for_inferior plus normal_stop.
3810 * infcmd.c (prepare_execution_command): Don't check whether the
3811 target can async when running in the foreground.
3812 (step_1): Delete synchronous case handling.
3813 (step_once): Always install a continuation, even in sync mode.
3814 (until_next_command, finish_forward): Don't check whether the
3815 target can async.
3816 (attach_command_post_wait, notice_new_inferior): Always install a
3817 continuation, even in sync mode.
3818 * infrun.c (mark_infrun_async_event_handler): New function.
3819 (proceed): In sync mode, mark infrun's event source instead of
3820 waiting for events here.
3821 (fetch_inferior_event): If the target can't async, do a blocking
3822 wait.
3823 (prepare_to_wait): In sync mode, mark infrun's event source.
3824 (infrun_async_inferior_event_handler): No longer bail out if the
3825 target can't async.
3826 * infrun.h (mark_infrun_async_event_handler): New declaration.
3827 * linux-nat.c (linux_nat_wait_1): Remove calls to
3828 set_sigint_trap/clear_sigint_trap.
3829 (linux_nat_terminal_inferior): No longer check whether the target
3830 can async.
3831 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3832 comment.
3833 (mi_execute_command_input_handler): No longer check whether the
3834 target is async. Update and simplify comment.
3835 * target.c (default_target_wait): New function.
3836 * target.h (struct target_ops) <to_wait>: Now defaults to
3837 default_target_wait.
3838 (default_target_wait): Declare.
3839 * top.c (wait_sync_command_done): New function, factored out from
3840 ...
3841 (maybe_wait_sync_command_done): ... this.
3842 * top.h (wait_sync_command_done): Declare.
3843 * target-delegates.c: Regenerate.
3844
3845 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3846
3847 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3848 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3849 Remove include of sys/utsname.h.
3850 (linux_determine_kernel_ptr_bits): Remove.
3851 (linux_determine_kernel_start): New.
3852 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3853 Update check.
3854 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3855 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3856 initialization.
3857 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3858 assignment.
3859
3860 2015-09-07 Pedro Alves <palves@redhat.com>
3861
3862 * guile/guile-internal.h (as_a_scm_t_subr): New.
3863 * guile/guile.c (misc_guile_functions): Use it.
3864 * guile/scm-arch.c (arch_functions): Use it.
3865 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3866 Use it.
3867 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3868 * guile/scm-cmd.c (command_functions): Use it.
3869 * guile/scm-disasm.c (disasm_functions): Use it.
3870 * guile/scm-exception.c (exception_functions)
3871 (private_exception_functions): Use it.
3872 * guile/scm-frame.c (frame_functions)
3873 * guile/scm-gsmob.c (gsmob_functions): Use it.
3874 * guile/scm-iterator.c (iterator_functions): Use it.
3875 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3876 * guile/scm-math.c (math_functions): Use it.
3877 * guile/scm-objfile.c (objfile_functions): Use it.
3878 * guile/scm-param.c (parameter_functions): Use it.
3879 * guile/scm-ports.c (port_functions, private_port_functions): Use
3880 it.
3881 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3882 * guile/scm-progspace.c (pspace_functions): Use it.
3883 * guile/scm-string.c (string_functions): Use it.
3884 * guile/scm-symbol.c (symbol_functions): Use it.
3885 * guile/scm-symtab.c (symtab_functions): Use it.
3886 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3887 it.
3888 * guile/scm-value.c (value_functions): Use it.
3889
3890 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3893 (tui_next_win): Likewise.
3894 (tui_prev_win): Likewise.
3895 (tui_partial_win_by_name): Likewise.
3896 (tui_init_generic_part): Likewise.
3897 (init_content_element): Likewise.
3898 (tui_del_window): Likewise.
3899 (tui_free_window): Likewise.
3900 (tui_del_data_windows): Likewise.
3901 (tui_free_data_content): Likewise.
3902 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3903 * tui/tui-regs.c (tui_show_register_group): Likewise.
3904 * tui/tui-win.c (tui_resize_all): Likewise.
3905 (tui_set_focus): Likewise.
3906 (tui_set_win_height): Likewise.
3907 (make_invisible_and_set_new_height): Likewise.
3908 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3909 * tui/tui-wingeneral.c (make_visible): Likewise.
3910
3911 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3914
3915 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3918 pointer.
3919 * dbxread.c (dbx_end_psymtab): Likewise.
3920 * gnu-nat.c (gnu_write_inferior): Likewise.
3921 * mdebugread.c (cross_ref): Likewise.
3922 * p-valprint.c (pascal_val_print): Likewise.
3923 * xcoffread.c (xcoff_end_psymtab): Likewise.
3924
3925 2015-09-04 Yao Qi <yao.qi@linaro.org>
3926
3927 * NEWS: Mention the aarch64 multi-arch debugging support.
3928
3929 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3930
3931 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3932 type instead of a TYPE_CODE_INT one for the string_char_type
3933 and the ada_primitive_type_char types.
3934
3935 2015-09-03 Yao Qi <yao.qi@linaro.org>
3936
3937 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3938 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3939 aarch64_linux_region_ok_for_watchpoint.
3940 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3941 New function.
3942 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3943 Declare it.
3944
3945 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3946
3947 * gdb_obstack.h (obstack_strdup): Declare.
3948 * gdb_obstack.c (obstack_strdup): Define.
3949 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3950 * gdbarch.c: Regenerate.
3951 * gdbarch.h: Regenerate.
3952 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3953
3954 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3955
3956 * gdbtypes.c (copy_type_recursive): Update documentation.
3957
3958 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3959
3960 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3961 as zero.
3962
3963 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3964
3965 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3966
3967 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3968
3969 * solib-svr4.c (solib_event_probe_action): Call
3970 get_probe_argument_count using TRY...CATCH.
3971 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3972
3973 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3974
3975 * probe.h (struct probe_ops) <get_probe_argument_count,
3976 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3977 the comment that the function can throw an exception.
3978 (get_probe_argument_count): Likewise.
3979 (evaluate_probe_argument): Likewise.
3980 * stap-probe.c (stap_get_opcode): Call error instead of
3981 internal_error.
3982 (stap_get_expected_argument_type): Likewise. Add argument
3983 'probe'. Improve error message by mentioning the probe's name.
3984 (stap_parse_probe_arguments): Adjust call to
3985 stap_get_expected_argument_type.
3986 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3987 not zero. Call internal_error if GDB requests an argument but the
3988 probe has no arguments.
3989
3990 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3991
3992 * ada-lang.c (ada_resolve_function): Do not ask the user what
3993 match to use when in completion mode.
3994
3995 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3996
3997 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3998 cast of NULL.
3999
4000 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
4001
4002 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4003 call_abi using XSHAL_ABI macro.
4004
4005 2015-08-29 Doug Evans <xdje42@gmail.com>
4006
4007 * symtab.h (struct symbol): Tweak comment.
4008
4009 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
4010
4011 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4012 gdbarch obstack instead of on the heap. Update commentary
4013 accordingly.
4014
4015 2015-08-28 Joel Brobecker <brobecker@adacore.com>
4016
4017 GDB 7.10 released.
4018
4019 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
4020
4021 * NEWS: Update entry about non-8-bits addressable memory.
4022
4023 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4024
4025 Revert:
4026 2014-11-06 Doug Evans <xdje42@gmail.com>
4027 * solib.c (solib_global_lookup): Fetch arch from objfile,
4028 not target_gdbarch.
4029
4030 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4031
4032 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4033 attempt to relocate a TLS variable offset.
4034
4035 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4036
4037 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4038 registered yet. Set inferior_ptid while calling target_read_memory.
4039
4040 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4041
4042 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
4043 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
4044 * linux-nat.c (check_stopped_by_breakpoint): Use
4045 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4046
4047 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4048
4049 * linux-thread-db.c (thread_db_get_thread_local_address): If the
4050 thread was not yet discovered, use thread_from_lwp instead of
4051 calling thread_db_find_new_threads_1.
4052
4053 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4054
4055 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4056 statements.
4057
4058 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4059
4060 * NEWS: Document support for non-8-bits addressable memory.
4061
4062 2015-08-27 Pedro Alves <palves@redhat.com>
4063
4064 * configure.ac: Remove AC_TYPE_SIGNAL call.
4065 * configure, config.in: Regenerate.
4066
4067 2015-08-27 Pedro Alves <palves@redhat.com>
4068
4069 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
4070 * extension-priv.h: Include signal.h.
4071 (struct signal_handler) <handler>: Change type to sighandler_t.
4072 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
4073 * inflow.c (sigint_ours, sigquit_ours): Change type to
4074 sighandler_t.
4075 (child_terminal_inferior): Remove casts.
4076 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
4077 (osig): Change type to sighandler_t.
4078 * nto-procfs.c (ofunc): Change type to sighandler_t.
4079 (procfs_wait): Remove casts.
4080 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
4081 * remote-sim.c (gdbsim_wait): Use sighandler_t.
4082 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
4083
4084 2015-08-27 Pedro Alves <palves@redhat.com>
4085
4086 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
4087 * gnulib/aclocal.m4: Renegerate.
4088 * gnulib/config.in: Renegerate.
4089 * gnulib/configure: Renegerate.
4090 * gnulib/import/Makefile.am: Update.
4091 * gnulib/import/Makefile.in: Regenerate.
4092 * gnulib/import/m4/gnulib-cache.m4: Update.
4093 * gnulib/import/m4/gnulib-comp.m4: Update.
4094 * gnulib/import/m4/signal_h.m4: New file.
4095 * gnulib/import/signal.in.h: New file.
4096
4097 2015-08-27 Pedro Alves <palves@redhat.com>
4098
4099 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4100 (MIN_MEMORY_PACKET_SIZE): New.
4101 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
4102 (get_memory_packet_size): Adjust. No longer limit the max packet
4103 size.
4104 (set_memory_packet_size): Adjust, and remove dead code.
4105 (remote_check_symbols): Use xmalloc and a cleanup instead of
4106 alloca.
4107 (remote_packet_size): No longer cap the packet size.
4108 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
4109
4110 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
4111
4112 * compile/compile.c (compile_to_object): Mention language in
4113 error message.
4114
4115 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
4116
4117 * target.c (target_pre_inferior): Unset attach_flag.
4118
4119 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4120
4121 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4122 * gdbarch.c: Re-generate.
4123
4124 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4125
4126 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4127 function with the XNEW-family equivalent.
4128 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4129 * ada-exp.y (write_ambiguous_var): Likewise.
4130 * ada-lang.c (resolve_subexp): Likewise.
4131 (user_select_syms): Likewise.
4132 (assign_aggregate): Likewise.
4133 (ada_evaluate_subexp): Likewise.
4134 (cache_symbol): Likewise.
4135 * addrmap.c (allocate_key): Likewise.
4136 (addrmap_create_mutable): Likewise.
4137 * aix-thread.c (sync_threadlists): Likewise.
4138 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4139 (alpha_gdbarch_init): Likewise.
4140 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4141 * arm-linux-nat.c (arm_linux_add_process): Likewise.
4142 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4143 * arm-tdep.c (push_stack_item): Likewise.
4144 (arm_displaced_step_copy_insn): Likewise.
4145 (arm_gdbarch_init): Likewise.
4146 (_initialize_arm_tdep): Likewise.
4147 * avr-tdep.c (push_stack_item): Likewise.
4148 * ax-general.c (new_agent_expr): Likewise.
4149 * block.c (block_initialize_namespace): Likewise.
4150 * breakpoint.c (alloc_counted_command_line): Likewise.
4151 (update_dprintf_command_list): Likewise.
4152 (parse_breakpoint_sals): Likewise.
4153 (decode_static_tracepoint_spec): Likewise.
4154 (until_break_command): Likewise.
4155 (clear_command): Likewise.
4156 (update_global_location_list): Likewise.
4157 (get_breakpoint_objfile_data) Likewise.
4158 * btrace.c (ftrace_new_function): Likewise.
4159 (btrace_set_insn_history): Likewise.
4160 (btrace_set_call_history): Likewise.
4161 * buildsym.c (add_symbol_to_list): Likewise.
4162 (record_pending_block): Likewise.
4163 (start_subfile): Likewise.
4164 (start_buildsym_compunit): Likewise.
4165 (push_subfile): Likewise.
4166 (end_symtab_get_static_block): Likewise.
4167 (buildsym_init): Likewise.
4168 * cli/cli-cmds.c (source_command): Likewise.
4169 * cli/cli-decode.c (add_cmd): Likewise.
4170 * cli/cli-script.c (build_command_line): Likewise.
4171 (setup_user_args): Likewise.
4172 (realloc_body_list): Likewise.
4173 (process_next_line): Likewise.
4174 (copy_command_lines): Likewise.
4175 * cli/cli-setshow.c (do_set_command): Likewise.
4176 * coff-pe-read.c (read_pe_exported_syms): Likewise.
4177 * coffread.c (coff_locate_sections): Likewise.
4178 (coff_symtab_read): Likewise.
4179 (coff_read_struct_type): Likewise.
4180 * common/cleanups.c (make_my_cleanup2): Likewise.
4181 * common/common-exceptions.c (throw_it): Likewise.
4182 * common/filestuff.c (make_cleanup_close): Likewise.
4183 * common/format.c (parse_format_string): Likewise.
4184 * common/queue.h (DEFINE_QUEUE_P): Likewise.
4185 * compile/compile-object-load.c (munmap_list_add): Likewise.
4186 (compile_object_load): Likewise.
4187 * compile/compile-object-run.c (compile_object_run): Likewise.
4188 * compile/compile.c (append_args): Likewise.
4189 * corefile.c (specify_exec_file_hook): Likewise.
4190 * cp-support.c (make_symbol_overload_list): Likewise.
4191 * cris-tdep.c (push_stack_item): Likewise.
4192 (cris_gdbarch_init): Likewise.
4193 * ctf.c (ctf_trace_file_writer_new): Likewise.
4194 * dbxread.c (init_header_files): Likewise.
4195 (add_new_header_file): Likewise.
4196 (init_bincl_list): Likewise.
4197 (dbx_end_psymtab): Likewise.
4198 (start_psymtab): Likewise.
4199 (dbx_end_psymtab): Likewise.
4200 * dcache.c (dcache_init): Likewise.
4201 * dictionary.c (dict_create_hashed): Likewise.
4202 (dict_create_hashed_expandable): Likewise.
4203 (dict_create_linear): Likewise.
4204 (dict_create_linear_expandable): Likewise.
4205 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4206 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4207 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4208 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4209 (decode_frame_entry_1): Likewise.
4210 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4211 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4212 * dwarf2read.c (dwarf2_has_info): Likewise.
4213 (create_signatured_type_table_from_index): Likewise.
4214 (dwarf2_read_index): Likewise.
4215 (dw2_get_file_names_reader): Likewise.
4216 (create_all_type_units): Likewise.
4217 (read_cutu_die_from_dwo): Likewise.
4218 (init_tu_and_read_dwo_dies): Likewise.
4219 (init_cutu_and_read_dies): Likewise.
4220 (create_all_comp_units): Likewise.
4221 (queue_comp_unit): Likewise.
4222 (inherit_abstract_dies): Likewise.
4223 (read_call_site_scope): Likewise.
4224 (dwarf2_add_field): Likewise.
4225 (dwarf2_add_typedef): Likewise.
4226 (dwarf2_add_member_fn): Likewise.
4227 (attr_to_dynamic_prop): Likewise.
4228 (abbrev_table_alloc_abbrev): Likewise.
4229 (abbrev_table_read_table): Likewise.
4230 (add_include_dir): Likewise.
4231 (add_file_name): Likewise.
4232 (dwarf_decode_line_header): Likewise.
4233 (dwarf2_const_value_attr): Likewise.
4234 (dwarf_alloc_block): Likewise.
4235 (parse_macro_definition): Likewise.
4236 (set_die_type): Likewise.
4237 (write_psymtabs_to_index): Likewise.
4238 (create_cus_from_index): Likewise.
4239 (dwarf2_create_include_psymtab): Likewise.
4240 (process_psymtab_comp_unit_reader): Likewise.
4241 (build_type_psymtab_dependencies): Likewise.
4242 (read_comp_units_from_section): Likewise.
4243 (compute_compunit_symtab_includes): Likewise.
4244 (create_dwo_unit_in_dwp_v1): Likewise.
4245 (create_dwo_unit_in_dwp_v2): Likewise.
4246 (read_func_scope): Likewise.
4247 (process_structure_scope): Likewise.
4248 (mark_common_block_symbol_computed): Likewise.
4249 (load_partial_dies): Likewise.
4250 (dwarf2_symbol_mark_computed): Likewise.
4251 * elfread.c (elf_symfile_segments): Likewise.
4252 (elf_read_minimal_symbols): Likewise.
4253 * environ.c (make_environ): Likewise.
4254 * eval.c (evaluate_subexp_standard): Likewise.
4255 * event-loop.c (create_file_handler): Likewise.
4256 (create_async_signal_handler): Likewise.
4257 (create_async_event_handler): Likewise.
4258 (create_timer): Likewise.
4259 * exec.c (build_section_table): Likewise.
4260 * fbsd-nat.c (fbsd_remember_child): Likewise.
4261 * fork-child.c (fork_inferior): Likewise.
4262 * frv-tdep.c (new_variant): Likewise.
4263 * gdbarch.sh (gdbarch_alloc): Likewise.
4264 (append_name): Likewise.
4265 * gdbtypes.c (rank_function): Likewise.
4266 (copy_type_recursive): Likewise.
4267 (add_dyn_prop): Likewise.
4268 * gnu-nat.c (make_proc): Likewise.
4269 (make_inf): Likewise.
4270 (gnu_write_inferior): Likewise.
4271 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4272 (build_std_type_info_type): Likewise.
4273 * guile/scm-param.c (compute_enum_list): Likewise.
4274 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4275 * guile/scm-value.c (gdbscm_value_call): Likewise.
4276 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4277 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4278 (read_unwind_info): Likewise.
4279 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4280 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4281 (call_function_by_hand_dummy): Likewise.
4282 * infcmd.c (step_once): Likewise.
4283 (finish_forward): Likewise.
4284 (attach_command): Likewise.
4285 (notice_new_inferior): Likewise.
4286 * inferior.c (add_inferior_silent): Likewise.
4287 * infrun.c (add_displaced_stepping_state): Likewise.
4288 (save_infcall_control_state): Likewise.
4289 (save_inferior_ptid): Likewise.
4290 (_initialize_infrun): Likewise.
4291 * jit.c (bfd_open_from_target_memory): Likewise.
4292 (jit_gdbarch_data_init): Likewise.
4293 * language.c (add_language): Likewise.
4294 * linespec.c (decode_line_2): Likewise.
4295 * linux-nat.c (add_to_pid_list): Likewise.
4296 (add_initial_lwp): Likewise.
4297 * linux-thread-db.c (add_thread_db_info): Likewise.
4298 (record_thread): Likewise.
4299 (info_auto_load_libthread_db): Likewise.
4300 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4302 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4303 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4304 * macrocmd.c (macro_define_command): Likewise.
4305 * macroexp.c (gather_arguments): Likewise.
4306 * macroscope.c (sal_macro_scope): Likewise.
4307 * macrotab.c (new_macro_table): Likewise.
4308 * mdebugread.c (push_parse_stack): Likewise.
4309 (parse_partial_symbols): Likewise.
4310 (parse_symbol): Likewise.
4311 (psymtab_to_symtab_1): Likewise.
4312 (new_block): Likewise.
4313 (new_psymtab): Likewise.
4314 (mdebug_build_psymtabs): Likewise.
4315 (add_pending): Likewise.
4316 (elfmdebug_build_psymtabs): Likewise.
4317 * mep-tdep.c (mep_gdbarch_init): Likewise.
4318 * mi/mi-main.c (mi_execute_command): Likewise.
4319 * mi/mi-parse.c (mi_parse_argv): Likewise.
4320 * minidebug.c (lzma_open): Likewise.
4321 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4322 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4323 * mips-tdep.c (mips_gdbarch_init): Likewise.
4324 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4325 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4326 * mt-tdep.c (mt_registers_info): Likewise.
4327 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4328 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4329 (linux_enable_pt): Likewise.
4330 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4331 (linux_xfer_osdata_processgroups): Likewise.
4332 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4333 * nto-procfs.c (procfs_meminfo): Likewise.
4334 * objc-lang.c (start_msglist): Likewise.
4335 (selectors_info): Likewise.
4336 (classes_info): Likewise.
4337 (find_methods): Likewise.
4338 * objfiles.c (allocate_objfile): Likewise.
4339 (update_section_map): Likewise.
4340 * osabi.c (gdbarch_register_osabi): Likewise.
4341 (gdbarch_register_osabi_sniffer): Likewise.
4342 * parse.c (start_arglist): Likewise.
4343 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4344 (hwdebug_insert_point): Likewise.
4345 * printcmd.c (display_command): Likewise.
4346 (ui_printf): Likewise.
4347 * procfs.c (create_procinfo): Likewise.
4348 (load_syscalls): Likewise.
4349 (proc_get_LDT_entry): Likewise.
4350 (proc_update_threads): Likewise.
4351 * prologue-value.c (make_pv_area): Likewise.
4352 (pv_area_store): Likewise.
4353 * psymtab.c (extend_psymbol_list): Likewise.
4354 (init_psymbol_list): Likewise.
4355 (allocate_psymtab): Likewise.
4356 * python/py-inferior.c (add_thread_object): Likewise.
4357 * python/py-param.c (compute_enum_values): Likewise.
4358 * python/py-value.c (valpy_call): Likewise.
4359 * python/py-varobj.c (py_varobj_iter_next): Likewise.
4360 * python/python.c (ensure_python_env): Likewise.
4361 * record-btrace.c (record_btrace_start_replaying): Likewise.
4362 * record-full.c (record_full_reg_alloc): Likewise.
4363 (record_full_mem_alloc): Likewise.
4364 (record_full_end_alloc): Likewise.
4365 (record_full_core_xfer_partial): Likewise.
4366 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
4367 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
4368 * remote-notif.c (remote_notif_state_allocate): Likewise.
4369 * remote.c (demand_private_info): Likewise.
4370 (remote_notif_stop_alloc_reply): Likewise.
4371 (remote_enable_btrace): Likewise.
4372 * reverse.c (save_bookmark_command): Likewise.
4373 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4374 * rx-tdep.c (rx_gdbarch_init): Likewise.
4375 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4376 * ser-go32.c (dos_get_tty_state): Likewise.
4377 (dos_copy_tty_state): Likewise.
4378 * ser-mingw.c (ser_windows_open): Likewise.
4379 (ser_console_wait_handle): Likewise.
4380 (ser_console_get_tty_state): Likewise.
4381 (make_pipe_state): Likewise.
4382 (net_windows_open): Likewise.
4383 * ser-unix.c (hardwire_get_tty_state): Likewise.
4384 (hardwire_copy_tty_state): Likewise.
4385 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4386 * solib-dsbt.c (dsbt_current_sos): Likewise.
4387 (dsbt_relocate_main_executable): Likewise.
4388 * solib-frv.c (frv_current_sos): Likewise.
4389 (frv_relocate_main_executable): Likewise.
4390 * solib-spu.c (spu_bfd_fopen): Likewise.
4391 * solib-svr4.c (lm_info_read): Likewise.
4392 (svr4_copy_library_list): Likewise.
4393 (svr4_default_sos): Likewise.
4394 * source.c (find_source_lines): Likewise.
4395 (line_info): Likewise.
4396 (add_substitute_path_rule): Likewise.
4397 * spu-linux-nat.c (spu_bfd_open): Likewise.
4398 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4399 * stabsread.c (dbx_lookup_type): Likewise.
4400 (read_type): Likewise.
4401 (read_member_functions): Likewise.
4402 (read_struct_fields): Likewise.
4403 (read_baseclasses): Likewise.
4404 (read_args): Likewise.
4405 (_initialize_stabsread): Likewise.
4406 * stack.c (func_command): Likewise.
4407 * stap-probe.c (handle_stap_probe): Likewise.
4408 * symfile.c (addrs_section_sort): Likewise.
4409 (addr_info_make_relative): Likewise.
4410 (load_section_callback): Likewise.
4411 (add_symbol_file_command): Likewise.
4412 (init_filename_language_table): Likewise.
4413 * symtab.c (create_filename_seen_cache): Likewise.
4414 (sort_search_symbols_remove_dups): Likewise.
4415 (search_symbols): Likewise.
4416 * target.c (make_cleanup_restore_target_terminal): Likewise.
4417 * thread.c (new_thread): Likewise.
4418 (enable_thread_stack_temporaries): Likewise.
4419 (make_cleanup_restore_current_thread): Likewise.
4420 (thread_apply_all_command): Likewise.
4421 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4422 * top.c (gdb_readline_wrapper): Likewise.
4423 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4424 * tracepoint.c (trace_find_line_command): Likewise.
4425 (all_tracepoint_actions_and_cleanup): Likewise.
4426 (make_cleanup_restore_current_traceframe): Likewise.
4427 (get_uploaded_tp): Likewise.
4428 (get_uploaded_tsv): Likewise.
4429 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4430 (tui_alloc_win_info): Likewise.
4431 (tui_alloc_content): Likewise.
4432 (tui_add_content_elements): Likewise.
4433 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4434 (tui_set_disassem_content): Likewise.
4435 * ui-file.c (ui_file_new): Likewise.
4436 (stdio_file_new): Likewise.
4437 (tee_file_new): Likewise.
4438 * utils.c (make_cleanup_restore_integer): Likewise.
4439 (add_internal_problem_command): Likewise.
4440 * v850-tdep.c (v850_gdbarch_init): Likewise.
4441 * valops.c (find_oload_champ): Likewise.
4442 * value.c (allocate_value_lazy): Likewise.
4443 (record_latest_value): Likewise.
4444 (create_internalvar): Likewise.
4445 * varobj.c (install_variable): Likewise.
4446 (new_variable): Likewise.
4447 (new_root_variable): Likewise.
4448 (cppush): Likewise.
4449 (_initialize_varobj): Likewise.
4450 * windows-nat.c (windows_make_so): Likewise.
4451 * x86-nat.c (x86_add_process): Likewise.
4452 * xcoffread.c (arrange_linetable): Likewise.
4453 (allocate_include_entry): Likewise.
4454 (process_linenos): Likewise.
4455 (SYMBOL_DUP): Likewise.
4456 (xcoff_start_psymtab): Likewise.
4457 (xcoff_end_psymtab): Likewise.
4458 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4459 * xtensa-tdep.c (xtensa_register_type): Likewise.
4460 * gdbarch.c: Regenerate.
4461 * gdbarch.h: Regenerate.
4462
4463 2015-08-25 Don Breazeal <donb@codesourcery.com>
4464
4465 * infrun.c (follow_exec): Re-order operations for
4466 handling follow-exec-mode "new".
4467 (handle_inferior_event_1): Assign ecs->event_thread
4468 to the current thread.
4469 * remote.c (get_remote_arch_state): Add an assertion.
4470
4471 2015-08-26 Pedro Alves <palves@redhat.com>
4472
4473 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4474
4475 2015-08-25 Pedro Alves <palves@redhat.com>
4476
4477 PR gdb/18804
4478 * defs.h (maybe_quit): Declare.
4479 (QUIT): Now calls maybe_quit.
4480 * event-loop.c (clear_async_signal_handler)
4481 (async_signal_handler_is_marked): New functions.
4482 * event-loop.h (async_signal_handler_is_marked)
4483 (clear_async_signal_handler): New declarations.
4484 * remote.c (remote_check_pending_interrupt): New function.
4485 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4486 longer check whether the target is async. If waiting for a stop
4487 reply, and a Ctrl-C as been sent to the target, offer to
4488 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4489 Otherwise do not disconnect and throw a quit.
4490 (_initialize_remote): Install remote_check_pending_interrupt as
4491 to_check_pending_interrupt.
4492 * target.c (target_check_pending_interrupt): New function.
4493 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4494 field.
4495 (target_check_pending_interrupt): New declaration.
4496 * utils.c (maybe_quit): New function.
4497 * target-delegates.c: Regenerate.
4498
4499 2015-08-25 Yao Qi <yao.qi@linaro.org>
4500
4501 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4502 Rename local variable pid to tid, and get lwpid of lwp. Update
4503 debug output.
4504
4505 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4506
4507 * ada-lang.c (ada_read_var_value): Add a var_block argument
4508 and pass it to default_read_var_value.
4509 * block.c (block_static_link): New accessor.
4510 * block.h (block_static_link): Declare it.
4511 * buildsym.c (finish_block_internal): Add a static_link
4512 argument. If there is a static link, associate it to the new
4513 block.
4514 (finish_block): Add a static link argument and pass it to
4515 finish_block_internal.
4516 (end_symtab_get_static_block): Update calls to finish_block and
4517 to finish_block_internal.
4518 (end_symtab_with_blockvector): Update call to
4519 finish_block_internal.
4520 * buildsym.h: Forward-declare struct dynamic_prop.
4521 (struct context_stack): Add a static_link field.
4522 (finish_block): Add a static link argument.
4523 * c-exp.y: Remove an obsolete comment (evaluation of variables
4524 already start from the selected frame, and now they climb *up*
4525 the call stack) and propagate the block information to the
4526 produced expression.
4527 * d-exp.y: Likewise.
4528 * f-exp.y: Likewise.
4529 * go-exp.y: Likewise.
4530 * jv-exp.y: Likewise.
4531 * m2-exp.y: Likewise.
4532 * p-exp.y: Likewise.
4533 * coffread.c (coff_symtab_read): Update calls to finish_block.
4534 * dbxread.c (process_one_symbol): Likewise.
4535 * xcoffread.c (read_xcoff_symtab): Likewise.
4536 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4537 "sym" parameter to struct block_symbol, update its uses and pass
4538 its block to calls to read_var_value.
4539 (convert_symbol_sym): Update the calls to convert_one_symbol.
4540 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4541 call to read_var_value.
4542 * dwarf2loc.c (block_op_get_frame_base): New.
4543 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4544 get_frame_base method.
4545 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4546 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4547 instead of the selected frame in order to evaluate the
4548 expression.
4549 (dwarf2_evaluate_property): Add a frame argument. Update call
4550 to dwarf2_locexpr_baton_eval to provide a frame in available and
4551 to handle the absence of address stack.
4552 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4553 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4554 declaration.
4555 (read_func_scope): Record any available static link description.
4556 Update call to finish_block.
4557 (read_lexical_block_scope): Update call to finish_block.
4558 * findvar.c (follow_static_link): New.
4559 (get_hosting_frame): New.
4560 (default_read_var_value): Add a var_block argument. Use
4561 get_hosting_frame to handle non-local references.
4562 (read_var_value): Add a var_block argument and pass it to the
4563 LA_READ_VAR_VALUE method.
4564 * gdbtypes.c (resolve_dynamic_range): Update calls to
4565 dwarf2_evaluate_property.
4566 (resolve_dynamic_type_internal): Likewise.
4567 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4568 read_var_value, passing it the block coming from symbol lookup.
4569 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4570 read_var_value (TODO).
4571 * infcmd.c (finish_command_continuation): Update call to
4572 read_var_value, passing it the block coming from symbol lookup.
4573 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4574 * language.h (struct language_defn): Add a var_block argument to
4575 the LA_READ_VAR_VALUE method.
4576 * objfiles.c (struct static_link_htab_entry): New.
4577 (static_link_htab_entry_hash): New.
4578 (static_link_htab_entry_eq): New.
4579 (objfile_register_static_link): New.
4580 (objfile_lookup_static_link): New.
4581 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4582 * objfiles.h: Include hashtab.h.
4583 (struct objfile): Add a static_links field.
4584 (objfile_register_static_link): New.
4585 (objfile_lookup_static_link): New.
4586 * printcmd.c (print_variable_and_value): Update call to
4587 read_var_value.
4588 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4589 * python/py-frame.c (frapy_read_var): Update call to
4590 read_var_value, passing it the block coming from symbol lookup.
4591 * python/py-framefilter.c (extract_sym): Add a sym_block
4592 parameter and set the pointed value to NULL (TODO).
4593 (enumerate_args): Update call to extract_sym.
4594 (enumerate_locals): Update calls to extract_sym and to
4595 read_var_value.
4596 * python/py-symbol.c (sympy_value): Update call to
4597 read_var_value (TODO).
4598 * stack.c (read_frame_local): Update call to read_var_value.
4599 (read_frame_arg): Likewise.
4600 (return_command): Likewise.
4601 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4602 method.
4603 (struct symbol): Add a block field.
4604 (SYMBOL_BLOCK): New accessor.
4605 * valops.c (value_of_variable): Remove frame/block handling and
4606 pass the block argument to read_var_value, which does this job
4607 now.
4608 (value_struct_elt_for_reference): Update calls to
4609 read_var_value.
4610 (value_of_this): Pass the block found to read_var_value.
4611 * value.h (read_var_value): Add a var_block argument.
4612 (default_read_var_value): Likewise.
4613
4614 2015-08-25 Yao Qi <yao.qi@linaro.org>
4615
4616 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4617 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4618 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4619
4620 2015-08-25 Yao Qi <yao.qi@linaro.org>
4621
4622 * Makefile.in (aarch64-liunx.o): New rule.
4623 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4624 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4625 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4626 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4627 extern.
4628 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4629 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4630 * nat/aarch64-linux.c: New file.
4631 * nat/aarch64-linux.h: New file.
4632
4633 2015-08-25 Yao Qi <yao.qi@linaro.org>
4634
4635 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4636 lwp_arch_private_info and ptid_of_lwp.
4637
4638 2015-08-25 Yao Qi <yao.qi@linaro.org>
4639
4640 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4641 Move it to nat/aarch64-linux-hw-point.c.
4642 (debug_reg_change_callback): Likewise.
4643 (aarch64_notify_debug_reg_change): :Likewise.
4644 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4645 (aarch64_dr_update_callback_param): New.
4646 (debug_reg_change_callback): New function.
4647 (aarch64_notify_debug_reg_change): Likewise.
4648 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4649 Remove the declaration.
4650
4651 2015-08-25 Yao Qi <yao.qi@linaro.org>
4652
4653 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4654 Call current_lwp_ptid.
4655
4656 2015-08-25 Yao Qi <yao.qi@linaro.org>
4657
4658 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4659 debug_printf.
4660
4661 2015-08-25 Yao Qi <yao.qi@linaro.org>
4662
4663 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4664 ptid_get_pid rather than ptid_get_lwp.
4665
4666 2015-08-24 Pedro Alves <palves@redhat.com>
4667
4668 * NEWS (New commands): Mention set/show remote
4669 multiprocess-extensions-packet.
4670 * remote.c (remote_query_supported): Only tell the server to use
4671 the multiprocess extensions if the user hasn't force-disabled them
4672 with "set remote multiprocess-extensions-packet off".
4673
4674 2015-08-24 Pedro Alves <palves@redhat.com>
4675
4676 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4677 1029a8112290f6eee9d7878a391c49db42c999bd.
4678 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4679 Regenerate.
4680 * gnulib/import/Makefile.am: Update.
4681 * gnulib/import/Makefile.in: Update.
4682 * gnulib/import/alloca.in.h: Update.
4683 * gnulib/import/basename-lgpl.c: Update.
4684 * gnulib/import/canonicalize-lgpl.c: Update.
4685 * gnulib/import/config.charset: Update.
4686 * gnulib/import/dirent.in.h: Update.
4687 * gnulib/import/dirfd.c: Update.
4688 * gnulib/import/dirname-lgpl.c: Update.
4689 * gnulib/import/dirname.h: Update.
4690 * gnulib/import/dosname.h: Update.
4691 * gnulib/import/errno.in.h: Update.
4692 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4693 * gnulib/import/extra/snippet/c++defs.h: Update.
4694 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4695 * gnulib/import/extra/update-copyright: Update.
4696 * gnulib/import/float+.h: Update.
4697 * gnulib/import/float.c: Update.
4698 * gnulib/import/float.in.h: Update.
4699 * gnulib/import/fnmatch.c: Update.
4700 * gnulib/import/fnmatch.in.h: Update.
4701 * gnulib/import/fnmatch_loop.c: Update.
4702 * gnulib/import/fpucw.h: Update.
4703 * gnulib/import/frexp.c: Update.
4704 * gnulib/import/frexpl.c: Update.
4705 * gnulib/import/gettimeofday.c: Update.
4706 * gnulib/import/inttypes.in.h: Update.
4707 * gnulib/import/isnan.c: Update.
4708 * gnulib/import/isnand-nolibm.h: Update.
4709 * gnulib/import/isnand.c: Update.
4710 * gnulib/import/isnanl-nolibm.h: Update.
4711 * gnulib/import/isnanl.c: Update.
4712 * gnulib/import/itold.c: Update.
4713 * gnulib/import/localcharset.c: Update.
4714 * gnulib/import/localcharset.h: Update.
4715 * gnulib/import/lstat.c: Update.
4716 * gnulib/import/m4/00gnulib.m4: Update.
4717 * gnulib/import/m4/absolute-header.m4: Update.
4718 * gnulib/import/m4/alloca.m4: Update.
4719 * gnulib/import/m4/canonicalize.m4: Update.
4720 * gnulib/import/m4/codeset.m4: Update.
4721 * gnulib/import/m4/configmake.m4: Update.
4722 * gnulib/import/m4/dirent_h.m4: Update.
4723 * gnulib/import/m4/dirfd.m4: Update.
4724 * gnulib/import/m4/dirname.m4: Update.
4725 * gnulib/import/m4/double-slash-root.m4: Update.
4726 * gnulib/import/m4/eealloc.m4: Update.
4727 * gnulib/import/m4/errno_h.m4: Update.
4728 * gnulib/import/m4/exponentd.m4: Update.
4729 * gnulib/import/m4/exponentl.m4: Update.
4730 * gnulib/import/m4/extensions.m4: Update.
4731 * gnulib/import/m4/extern-inline.m4: Update.
4732 * gnulib/import/m4/fcntl-o.m4: Update.
4733 * gnulib/import/m4/float_h.m4: Update.
4734 * gnulib/import/m4/fnmatch.m4: Update.
4735 * gnulib/import/m4/fpieee.m4: Update.
4736 * gnulib/import/m4/frexp.m4: Update.
4737 * gnulib/import/m4/frexpl.m4: Update.
4738 * gnulib/import/m4/gettimeofday.m4: Update.
4739 * gnulib/import/m4/glibc21.m4: Update.
4740 * gnulib/import/m4/gnulib-cache.m4: Update.
4741 * gnulib/import/m4/gnulib-common.m4: Update.
4742 * gnulib/import/m4/gnulib-comp.m4: Update.
4743 * gnulib/import/m4/gnulib-tool.m4: Update.
4744 * gnulib/import/m4/include_next.m4: Update.
4745 * gnulib/import/m4/inttypes-pri.m4: Update.
4746 * gnulib/import/m4/inttypes.m4: Update.
4747 * gnulib/import/m4/isnand.m4: Update.
4748 * gnulib/import/m4/isnanl.m4: Update.
4749 * gnulib/import/m4/largefile.m4: Update.
4750 * gnulib/import/m4/localcharset.m4: Update.
4751 * gnulib/import/m4/locale-fr.m4: Update.
4752 * gnulib/import/m4/locale-ja.m4: Update.
4753 * gnulib/import/m4/locale-zh.m4: Update.
4754 * gnulib/import/m4/longlong.m4: Update.
4755 * gnulib/import/m4/lstat.m4: Update.
4756 * gnulib/import/m4/malloc.m4: Update.
4757 * gnulib/import/m4/malloca.m4: Update.
4758 * gnulib/import/m4/math_h.m4: Update.
4759 * gnulib/import/m4/mbrtowc.m4: Update.
4760 * gnulib/import/m4/mbsinit.m4: Update.
4761 * gnulib/import/m4/mbsrtowcs.m4: Update.
4762 * gnulib/import/m4/mbstate_t.m4: Update.
4763 * gnulib/import/m4/memchr.m4: Update.
4764 * gnulib/import/m4/memmem.m4: Update.
4765 * gnulib/import/m4/mmap-anon.m4: Update.
4766 * gnulib/import/m4/multiarch.m4: Update.
4767 * gnulib/import/m4/nocrash.m4: Update.
4768 * gnulib/import/m4/off_t.m4: Update.
4769 * gnulib/import/m4/pathmax.m4: Update.
4770 * gnulib/import/m4/readlink.m4: Update.
4771 * gnulib/import/m4/rename.m4: Update.
4772 * gnulib/import/m4/rmdir.m4: Update.
4773 * gnulib/import/m4/ssize_t.m4: Update.
4774 * gnulib/import/m4/stat.m4: Update.
4775 * gnulib/import/m4/stdbool.m4: Update.
4776 * gnulib/import/m4/stddef_h.m4: Update.
4777 * gnulib/import/m4/stdint.m4: Update.
4778 * gnulib/import/m4/stdio_h.m4: Update.
4779 * gnulib/import/m4/stdlib_h.m4: Update.
4780 * gnulib/import/m4/string_h.m4: Update.
4781 * gnulib/import/m4/strstr.m4: Update.
4782 * gnulib/import/m4/strtok_r.m4: Update.
4783 * gnulib/import/m4/sys_socket_h.m4: Update.
4784 * gnulib/import/m4/sys_stat_h.m4: Update.
4785 * gnulib/import/m4/sys_time_h.m4: Update.
4786 * gnulib/import/m4/sys_types_h.m4: Update.
4787 * gnulib/import/m4/time_h.m4: Update.
4788 * gnulib/import/m4/unistd_h.m4: Update.
4789 * gnulib/import/m4/warn-on-use.m4: Update.
4790 * gnulib/import/m4/wchar_h.m4: Update.
4791 * gnulib/import/m4/wchar_t.m4: Update.
4792 * gnulib/import/m4/wctype_h.m4: Update.
4793 * gnulib/import/m4/wint_t.m4: Update.
4794 * gnulib/import/malloc.c: Update.
4795 * gnulib/import/malloca.c: Update.
4796 * gnulib/import/malloca.h: Update.
4797 * gnulib/import/math.in.h: Update.
4798 * gnulib/import/mbrtowc.c: Update.
4799 * gnulib/import/mbsinit.c: Update.
4800 * gnulib/import/mbsrtowcs-impl.h: Update.
4801 * gnulib/import/mbsrtowcs-state.c: Update.
4802 * gnulib/import/mbsrtowcs.c: Update.
4803 * gnulib/import/memchr.c: Update.
4804 * gnulib/import/memmem.c: Update.
4805 * gnulib/import/pathmax.h: Update.
4806 * gnulib/import/readlink.c: Update.
4807 * gnulib/import/ref-add.sin: Update.
4808 * gnulib/import/ref-del.sin: Update.
4809 * gnulib/import/rename.c: Update.
4810 * gnulib/import/rmdir.c: Update.
4811 * gnulib/import/same-inode.h: Update.
4812 * gnulib/import/stat.c: Update.
4813 * gnulib/import/stdbool.in.h: Update.
4814 * gnulib/import/stddef.in.h: Update.
4815 * gnulib/import/stdint.in.h: Update.
4816 * gnulib/import/stdio.c: Update.
4817 * gnulib/import/stdio.in.h: Update.
4818 * gnulib/import/stdlib.in.h: Update.
4819 * gnulib/import/str-two-way.h: Update.
4820 * gnulib/import/streq.h: Update.
4821 * gnulib/import/string.in.h: Update.
4822 * gnulib/import/stripslash.c: Update.
4823 * gnulib/import/strnlen1.c: Update.
4824 * gnulib/import/strnlen1.h: Update.
4825 * gnulib/import/strstr.c: Update.
4826 * gnulib/import/strtok_r.c: Update.
4827 * gnulib/import/sys_stat.in.h: Update.
4828 * gnulib/import/sys_time.in.h: Update.
4829 * gnulib/import/sys_types.in.h: Update.
4830 * gnulib/import/time.in.h: Update.
4831 * gnulib/import/unistd.in.h: Update.
4832 * gnulib/import/verify.h: Update.
4833 * gnulib/import/wchar.in.h: Update.
4834 * gnulib/import/wctype.in.h: Update.
4835 * gnulib/import/gettimeofday.c: New file.
4836 * gnulib/import/m4/absolute-header.m4: New file.
4837 * gnulib/import/m4/gettimeofday.m4: New file.
4838 * gnulib/import/m4/sys_socket_h.m4: New file.
4839 * gnulib/import/m4/sys_time_h.m4: New file.
4840 * gnulib/import/stdio.c: Delete file.
4841 * gnulib/import/sys_time.in.h: New file.
4842
4843 2015-08-24 Pedro Alves <palves@redhat.com>
4844
4845 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4846 * common/gdb_sys_time.h: New file.
4847 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4848 * gdb_select.h: Likewise.
4849 * gdb_usleep.c: Likewise.
4850 * maint.c: Likewise.
4851 * mi/mi-main.c: Likewise.
4852 * mi/mi-parse.h: Likewise.
4853 * remote-fileio.c: Likewise.
4854 * remote-m32r-sdi.c: Likewise.
4855 * remote.c: Likewise.
4856 * ser-base.c: Likewise.
4857 * ser-pipe.c: Likewise.
4858 * ser-tcp.c: Likewise.
4859 * ser-unix.c: Likewise.
4860 * symfile.c: Likewise.
4861 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4862 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4863 * utils.c: Likewise.
4864
4865 2015-08-24 Pedro Alves <palves@redhat.com>
4866
4867 * NEWS: Mention removed support for the various ROM monitors.
4868 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4869 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4870 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4871 gdb_target_obs.
4872 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4873 gdb_target_obs.
4874 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4875 dsrec.o from gdb_target_obs.
4876 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4877 from gdb_target_obs.
4878 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4879 gdb_target_obs.
4880 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4881 dink32-rom.o from gdb_target_obs.
4882 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4883 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4884 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4885 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4886
4887 2015-08-21 Pedro Alves <palves@redhat.com>
4888
4889 * frame.c (null_frame_id): Explicitly zero-initialize.
4890
4891 2015-08-21 Tom Tromey <tromey@redhat.com>
4892
4893 * dwarf2read.c (struct dwarf2_section_info): Rename field
4894 'asection' to 'section'.
4895 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4896 (dwarf2_locate_sections, dwarf2_locate_sections)
4897 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4898 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4899 (dwarf2_locate_v2_dwp_sections): Adjust.
4900
4901 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4902
4903 * top.h (gdb_in_secondary_prompt_p): Declare.
4904 * top.c (gdb_secondary_prompt_depth): Define.
4905 (gdb_in_secondary_prompt_p): Define.
4906 (gdb_readline_wrapper_cleanup): Decrement
4907 gdb_secondary_prompt_depth.
4908 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4909 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4910 are in a secondary prompt.
4911
4912 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4913
4914 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4915 emit the newline.
4916
4917 2015-08-21 Gary Benson <gbenson@redhat.com>
4918
4919 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4920
4921 2015-08-21 Gary Benson <gbenson@redhat.com>
4922
4923 * target.h (struct target_ops) <to_fileio_open>: New argument
4924 warn_if_slow. Update comment. All implementations updated.
4925 (target_fileio_open_warn_if_slow): New declaration.
4926 * target.c (target_fileio_open): Renamed as...
4927 (target_fileio_open_1): ...this. New argument warn_if_slow.
4928 Pass warn_if_slow to implementation. Update debug printing.
4929 (target_fileio_open): New function.
4930 (target_fileio_open_warn_if_slow): Likewise.
4931 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4932 target_fileio_open_warn_if_slow.
4933
4934 2015-08-21 Gary Benson <gbenson@redhat.com>
4935
4936 * nat/linux-namespaces.c (linux_mntns_access_fs):
4937 Do not overwrite old_chain.
4938
4939 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4940
4941 * arch/xtensa.h: New file.
4942 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4943 (ps_get_thread_area): New function.
4944 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4945 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4946 * xtensa-tdep.c (osabi.h): New #include.
4947 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4948 xtensa-specific hooks.
4949 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4950 member and move the structure to arch/xtensa.h.
4951
4952 2015-08-21 Pedro Alves <palves@redhat.com>
4953
4954 * remote.c (struct readahead_cache): New.
4955 (struct remote_state) <readahead_cache>: New field.
4956 (remote_open_1): Invalidate the cache.
4957 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4958 functions.
4959 (remote_hostio_pwrite): Invalidate the readahead cache.
4960 (remote_hostio_pread): Rename to ...
4961 (remote_hostio_pread_vFile): ... this.
4962 (remote_hostio_pread_from_cache): New function.
4963 (remote_hostio_pread): Reimplement.
4964 (remote_hostio_close): Invalidate the readahead cache.
4965
4966 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4967
4968 PR build/18843
4969 * procfs.c: Include "filestuff.h".
4970
4971 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4972
4973 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4974 curch.
4975 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4976 cur_line or curch, instead call wmove().
4977 (init_win_info) [CMD_WIN]: Likewise.
4978 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4979 instead call getcury().
4980 (tui_redisplay_readline): Don't set cur_line or curch.
4981 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4982 getcury().
4983 (tui_cont_sig): Remove call to wmove.
4984 (tui_getc): Don't read cur_line or curch, instead call getcury()
4985 or getyx(). Don't set curch.
4986 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4987 set cur_line or curch. Always move cursor to (0,0).
4988
4989 2015-08-20 Pedro Alves <palves@redhat.com>
4990
4991 * infrun.c (print_target_wait_results): Make extern.
4992 * infrun.h (print_target_wait_results): Declare.
4993 * remote.c (set_stop_requested_callback): Delete.
4994 (process_initial_stop_replies): New function.
4995 (remote_start_remote): Use it.
4996 (stop_reply_queue_length): New function.
4997
4998 2015-08-20 Pedro Alves <palves@redhat.com>
4999
5000 * dwarf2read.c (process_full_comp_unit): To tell whether
5001 start_subfile managed to deduce a language, test for
5002 language_unknown instead of language_c.
5003
5004 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
5005
5006 * ada-lex.l: Reset the start condition to INITIAL in the rule that
5007 matches attributes.
5008
5009 2015-08-19 Kevin Buettner <kevinb@redhat.com>
5010
5011 * dwarf2read.c (dwarf2_string_attr): New function.
5012 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
5013 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
5014 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
5015 (anonymous_struct_prefix, prepare_one_comp_unit): Use
5016 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
5017
5018 2015-08-18 Doug Evans <dje@google.com>
5019 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5020
5021 PR mi/18833
5022 * cli/cli-logging.c (pop_output_files): Don't restore redirection
5023 if MI-like.
5024 * mi/mi-out.c: #include "vec.h".
5025 (ui_filep): New type.
5026 (DEV_VEC_P (ui_filep)): New type.
5027 (struct ui_out_data) <buffer, original_buffer>: Delete.
5028 (struct ui_out_data) <streams>: New member.
5029 (mi_ui_out_impl): Add data_destroy field.
5030 (mi_field_string, mi_field_fmt): Update.
5031 (mi_flush, mi_redirect, field_separator): Update.
5032 (mi_open, mi_close): Update.
5033 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
5034 (mi_out_data_ctor, mi_out_data_dtor): New functions.
5035 (mi_out_new): Call mi_out_data_ctor.
5036
5037 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
5038
5039 * remote.c (strprefix): New.
5040 (remote_parse_stop_reply): Use strprefix instead of strncmp
5041 to ensure exact match of keyword.
5042
5043 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5044
5045 * gdb_bfd.c (debug_bfd_cache): New variable.
5046 (show_bfd_cache_debug): New function.
5047 (gdb_bfd_open): Add debug logging.
5048 (gdb_bfd_ref): Likewise.
5049 (gdb_bfd_unref): Likewise.
5050 (_initialize_gdb_bfd): Add new set/show command.
5051 * NEWS: Mention new command.
5052
5053 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * gdb_bfd.c (bfd_sharing): New variable.
5056 (show_bfd_sharing): New function.
5057 (gdb_bfd_open): Check bfd_sharing variable.
5058 (_initialize_gdb_bfd): Add new set/show command.
5059 * NEWS: Mention new command.
5060
5061 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5062
5063 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
5064 field.
5065 (struct gdb_bfd_cache_search): Likewise.
5066 (eq_bfd): Compare the size, inode, and device id fields.
5067 (gdb_bfd_open): Initialise the size, inode, and device id fields.
5068 (gdb_bfd_ref): Likewise.
5069 (gdb_bfd_unref): Likewise.
5070
5071 2015-08-18 Pedro Alves <palves@redhat.com>
5072
5073 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
5074 target implements to_always_non_stop_p, call it.
5075 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
5076 (x86_linux_create_target): Install it as to_always_non_stop_p
5077 method.
5078
5079 2015-08-17 Doug Evans <dje@google.com>
5080
5081 * ui-out.c (default_ui_out_impl): Add comment.
5082
5083 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
5084
5085 * d-exp.y (type_aggregate_p): New function.
5086 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
5087 (classify_inner_name): Likewise.
5088 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
5089
5090 2015-08-15 Doug Evans <xdje42@gmail.com>
5091
5092 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
5093 updated.
5094 (add_psymbol_to_list): Ditto.
5095
5096 2015-08-15 Doug Evans <xdje42@gmail.com>
5097
5098 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
5099 updated. Call end_psymtab_common.
5100 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
5101 end_psymtab_common.
5102 (build_type_psymtabs_reader): Ditto.
5103 * psympriv.h (sort_pst_symbols): Delete.
5104 (end_psymtab_common): Declare.
5105 * psymtab.c (sort_pst_symbols): Make static.
5106 (end_psymtab_common): New function.
5107 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
5108
5109 2015-08-15 Doug Evans <xdje42@gmail.com>
5110
5111 * defs.h (LANGUAGE_BITS): Define.
5112 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
5113 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
5114 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
5115 (minimal_symbol_type): Add nr_minsym_types.
5116 (MINSYM_TYPE_BITS): Define.
5117 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
5118 (domain_enum_tag): Add NR_DOMAINS.
5119 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
5120 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
5121
5122 2015-08-15 Doug Evans <xdje42@gmail.com>
5123
5124 * objfiles.h: Whitespace cleanup.
5125 * psympriv.h: Whitespace cleanup.
5126 * psymtab.c: Whitespace/coding convention cleanup.
5127
5128 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
5129
5130 * inferior.c (detach_inferior_command): Don't call
5131 any_thread_of_process when pid is 0.
5132 (kill_inferior_command): Likewise.
5133
5134 2015-08-14 Doug Evans <xdje42@gmail.com>
5135
5136 PR gdb/11833
5137 * NEWS: Document new /s modifier for the disassemble command.
5138 * cli/cli-cmds.c (disassemble_command): Add support for /s.
5139 (_initialize_cli_cmds): Update online docs of disassemble command.
5140 * disasm.c: #include "source.h".
5141 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5142 All uses updated.
5143 (dis_line_entry): New struct.
5144 (hash_dis_line_entry, eq_dis_line_entry): New functions.
5145 (allocate_dis_line_table): New functions.
5146 (maybe_add_dis_line_entry, line_has_code_p): New functions.
5147 (dump_insns): New arg end_pc. All callers updated.
5148 (do_mixed_source_and_assembly_deprecated): Renamed from
5149 do_mixed_source_and_assembly. All callers updated.
5150 (do_mixed_source_and_assembly): New function.
5151 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5152 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5153 DISASSEMBLY_SOURCE. All uses updated.
5154 (DISASSEMBLY_SOURCE): New macro.
5155 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5156
5157 2015-08-14 Keith Seitz <keiths@redhat.com>
5158
5159 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5160 `typename' to `type_name' to avoid C++ reserved word.
5161
5162 2015-08-14 Keith Seitz <keiths@redhat.com>
5163
5164 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5165 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5166 silence ARI errors.
5167
5168 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5169
5170 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5171 xstrprintf instead of malloc and sprintf.
5172 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5173 (lex_one_token): Likewise.
5174
5175 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5176
5177 * solib-svr4.c (read_program_header): Add base_addr argument to
5178 report the runtime address of the segment.
5179 (find_program_interpreter): Update read_program_header call to pass
5180 a NULL pointer for the new argument.
5181 (scan_dyntag): Add ptr_addr argument to report the runtime address
5182 of the tag payload.
5183 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5184 read_program_header to get the base address of the dynamic segment.
5185 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5186 read_program_header.
5187 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5188
5189 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5190
5191 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5192
5193 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5194
5195 * d-exp.y (%union): Add voidval.
5196 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5197 name in the lexing stage.
5198 (PostfixExpression): Move symbol completion handling in grammar here
5199 from PrimaryExpression.
5200 (PrimaryExpression): Move routines to handle resolving identifier
5201 tokens in the grammar here from push_expression_name.
5202 (IdentifierExp): Remove the handling of alternating '.' and identifier
5203 tokens.
5204 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5205 (BasicType): Remove C-style typename rules.
5206 (d_type_from_name, d_module_from_name, push_variable)
5207 (push_fieldnames, push_type_name, push_module_name)
5208 (push_expression_name): Remove.
5209 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5210 (token_and_value): New type.
5211 (token_fifo, popping, name_obstack): New globals.
5212 (classify_name): New function.
5213 (classify_inner_name): Likewise.
5214 (yylex): Likewise.
5215 (d_parse): Initialize token_fifo, popping and name_obstack.
5216
5217 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5218
5219 * Makefile.in (SFILES): Add d-namespace.c.
5220 (COMMON_OBS): Add d-namespace.o.
5221 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5222 la_lookup_symbol_nonlocal callback function pointer.
5223 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5224 (d_lookup_nested_symbol): New declaration.
5225 * d-namespace.c: New file.
5226
5227 2015-08-13 Pedro Alves <palves@redhat.com>
5228
5229 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5230 cleanup after the decref cleanup, not before.
5231
5232 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5233
5234 * ada-lang.c: Include namespace.h
5235 (aux_add_nonlocal_symbols): Fix a function name in comment.
5236 (ada_add_block_renamings): New.
5237 (add_nonlocal_symbols): Add global renamings handling.
5238 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5239 to...
5240 (ada_add_all_symbols): ... this new function.
5241 (ada_add_block_symbols): Try to match the input name against the
5242 "using directives list", perform a recursive symbol lookup on
5243 the matched declarations.
5244 * block.h (struct block): Move the_namespace to top-level as
5245 namespace_info. Remove the language_specific field.
5246 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5247 * buildsym.h (using_directives): Rename into...
5248 (local_using_directives): ... this.
5249 (global_using_directives): New.
5250 (struct context_stack): Rename the using_directives field into
5251 local_using_directives.
5252 * buildsym.c (finish_block_internal): Deal with the proper
5253 using directives repository (local or global).
5254 (prepare_for_building): Reset local_using_directives. Assert
5255 that there is no pending global using directive.
5256 (reset_symtab_globals): Reset global_using_directives and
5257 local_using_directives.
5258 (end_symtab_get_static_block): Don't ignore symtabs that have
5259 only using directives.
5260 (push_context): Update references to local_using_directives.
5261 (buildsym_init): Do not reset using_directives.
5262 * cp-support.c: Include namespace.h.
5263 * cp-support.h (struct using_direct): Move to namespace.h.
5264 (cp_add_using_directives): Move to namespace.h.
5265 * cp-namespace.c: Include namespace.h
5266 (cp_add_using_directive): Move to namespace.c, rename it to
5267 add_using_directive, add a "using_directives" argument and use
5268 it as the pending using directives repository. All callers
5269 updated.
5270 * dwarf2read.c (using_directives): New.
5271 (read_import_statement): Call using_directives.
5272 (read_func_scope): Update references to local_using_directives.
5273 (read_lexical_block_scope): Likewise.
5274 (read_namespace): Update the heading comment, call
5275 using_directives.
5276 * namespace.h: New file.
5277 * namespace.c: New file.
5278 * Makefile.in (SFILES): Add namespace.c.
5279 (COMMON_OBS): Add namespace.o
5280
5281 2015-08-12 Joel Brobecker <brobecker@adacore.com>
5282
5283 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5284 compute RETADDR.
5285
5286 2015-08-12 Keith Seitz <keiths@redhat.com>
5287
5288 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5289 reserved C++ keyword "explicit" to "explicit_loc".
5290 * breakpoint.c (create_overlay_event_breakpoint)
5291 (create_longjmp_master_breakpoint)
5292 (create_std_terminate_master_breakpoint)
5293 (create_exception_master_breakpoint, update_static_tracepoint):
5294 Rename reserved C++ keyword "explicit" to "explicit_loc".
5295 * completer.c (collect_explicit_location_matches)
5296 (explicit_location_completer): Rename reserved C++ keyword
5297 "explicit" to "explicit_loc".
5298 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5299 (canonicalize_linespec, create_sals_line_offset)
5300 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5301 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5302 "explicit" to "explicit_loc".
5303 * location.c (struct event_location) <explicit>: Rename to
5304 "explicit_loc".
5305 (initialize_explicit_location, new_explicit_location)
5306 (explicit_location_to_string_internal, explicit_location_to_linespec):
5307 Rename reserved C++ keyword "explicit" to "explicit_loc".
5308 * location.h (explicit_location_to_string)
5309 (explicit_location_to_linespec, initialize_explicit_location)
5310 (new_explicit_location): Rename reserved C++ keyword "explicit"
5311 to "explicit_loc".
5312 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5313 keyword "explicit" to "explicit_loc".
5314
5315 2015-08-12 Keith Seitz <keiths@redhat.com>
5316
5317 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5318 and only call decode_line_1 when it is non-NULL.
5319
5320 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
5321
5322 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5323 location address is not meaningful.
5324 (breakpoint_address_is_meaningful): Update comment.
5325
5326 2015-08-11 Keith Seitz <keiths@redhat.com>
5327
5328 * NEWS: Mention explicit locations.
5329 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5330 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5331 (_initialize_breakpoint): Update documentation for
5332 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5333
5334 2015-08-11 Keith Seitz <keiths@redhat.com>
5335
5336 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5337 explicit locations, options "--source", "--function",
5338 "--label", and "--line".
5339
5340 2015-08-11 Keith Seitz <keiths@redhat.com>
5341
5342 * completer.c: Include location.h.
5343 (enum match_type): New enum.
5344 (location_completer): Rename to ...
5345 (linespec_completer): ... this.
5346 (collect_explicit_location_matches, backup_text_ptr)
5347 (explicit_location_completer): New functions.
5348 (location_completer): "New" function; handle linespec
5349 and explicit location completions.
5350 (complete_line_internal): Remove all location completer-specific
5351 handling.
5352 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5353 (find_toplevel_char): Export.
5354 (linespec_parse_line_offset): Export.
5355 Issue error if STRING is not numerical.
5356 (gdb_get_linespec_parser_quote_characters): New function.
5357 * linespec.h (linespec_parse_line_offset): Declare.
5358 (get_gdb_linespec_parser_quote_characters): Declare.
5359 (is_ada_operator): Declare.
5360 (find_toplevel_char): Declare.
5361 (linespec_lexer_lex_keyword): Declare.
5362 * location.c (explicit_to_event_location): New function.
5363 (explicit_location_lex_one): New function.
5364 (string_to_explicit_location): New function.
5365 (string_to_event_location): Handle explicit locations.
5366 * location.h (explicit_to_event_location): Declare.
5367 (string_to_explicit_location): Declare.
5368
5369 2015-08-11 Keith Seitz <keiths@redhat.com>
5370
5371 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5372 linespec into explicit location.
5373 * breakpoint.c (create_overlay_breakpoint)
5374 (create_longjmp_master_breakpoint)
5375 (create_std_terminate_master_breakpoint)
5376 (create_exception_master_breakpoint): Convert linespec into explicit
5377 location.
5378 (update_static_tracepoint): Convert linespec into explicit location.
5379 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5380 location.h.
5381 (struct linespec) <expression, expr_pc, source_filename>
5382 <function_name, label_name, line_offset>: Replace with ...
5383 <explicit>: ... this.
5384 <is_linespec>: New member.
5385 (PARSER_EXPLICIT): New accessor macro.
5386 (undefined_label_error): New function.
5387 (source_file_not_found_error): New function.
5388 (linespec_parse_basic): The parser result is now an explicit location.
5389 Use PARSER_EXPLICIT to access it.
5390 Use undefined_label_error.
5391 (canonicalize_linespec): Convert canonical linespec into explicit
5392 location.
5393 Move string representation of location to explicit_location_to_linespec
5394 and use it and explicit_location_to_string to save string
5395 representations of the canonical location.
5396 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5397 explicit location. Update all references.
5398 (convert_explicit_location_to_sals): New function.
5399 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5400 result's explicit location.
5401 (linespec_state_constructor): Initialize is_linespec.
5402 Use PARSER_EXPLICIT.
5403 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5404 result.
5405 (event_location_to_sals): For linespec locations, set is_linespec.
5406 Handle explicit locations.
5407 (decode_objc): 'ls' contains an explicit location now. Update all
5408 references.
5409 (symtabs_from_filename): Use source_file_not_found_error.
5410 * location.c (struct event_location.u) <explicit>: New member.
5411 (initialize_explicit_location): New function.
5412 (initialize_event_location): Initialize explicit locations.
5413 (new_explicit_location, get_explicit_location)
5414 (get_explicit_location_const): New functions.
5415 (explicit_to_string_internal): New function; most of contents moved
5416 from canonicalize_linespec.
5417 (explicit_location_to_string): New function.
5418 (explicit_location_to_linespec): New function.
5419 (copy_event_location, delete_event_location)
5420 (event_location_to_string_const, event_location_empty_p): Handle
5421 explicit locations.
5422 * location.h (enum offset_relative_sign, struct line_offset): Move
5423 here from linespec.h.
5424 (enum event_location_type): Add EXPLICIT_LOCATION.
5425 (struct explicit_location): New structure.
5426 (explicit_location_to_string): Declare.
5427 (explicit_location_to_linespec): Declare.
5428 (new_explicit_location, get_explicit_locationp
5429 (get_explicit_location_const, initialize_explicit_location): Declare.
5430
5431 2015-08-11 Keith Seitz <keiths@redhat.com>
5432
5433 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5434 linespec for stap probe to probe location.
5435 * breakpoint.c (create_longjmp_master_breakpoint)
5436 (create_exception_master_breakpoint): Likewise.
5437 (break_command_1): Remove local variable `arg_cp'.
5438 Check location type to set appropriate breakpoint ops methods.
5439 (trace_command): Likewise.
5440 * linespec.c (event_location_to_sals): Assert on probe locations.
5441 * location.c (EL_PROBE): Add macro definition.
5442 (new_probe_location, get_probe_location): New functions.
5443 (copy_event_location, delete_event_location, event_location_to_string)
5444 (string_to_event_location, event_location_empty_p): Handle probe
5445 locations.
5446 * location.h (enum event_location_type): Add PROBE_LOCATION.
5447 (new_probe_location, get_probe_location): Declare.
5448 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5449 Convert linespec into probe location.
5450
5451 2015-08-11 Keith Seitz <keiths@redhat.com>
5452
5453 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5454 Convert linespec to address location.
5455 * linespec.c (canonicalize_linespec): Do not handle address
5456 locations here.
5457 (convert_address_location_to_sals): New function; contents moved
5458 from ...
5459 (convert_linespc_to_sals): ... here.
5460 (parse_linespec): Remove address locations from linespec grammar.
5461 Remove handling of address locations.
5462 (linespec_lex_to_end): Remove handling of address linespecs.
5463 (event_location_to_sals): Handle ADDRESS_LOCATION.
5464 (linespec_expression_to_pc): Export.
5465 * linespec.h (linespec_expression_to_pc): Add declaration.
5466 * location.c (struct event_location.u) <address>: New member.
5467 (new_address_location, get_address_location): New functions.
5468 (copy_event_location, delete_event_location, event_location_to_string)
5469 (string_to_event_location, event_location_empty_p): Handle address
5470 locations.
5471 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5472 (new_address_location, get_address_location): Declare.
5473 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5474 to address location.
5475 * spu-tdep.c (spu_catch_start): Likewise.
5476
5477 2015-08-11 Keith Seitz <keiths@redhat.com>
5478
5479 * ax-gdb.c: Include location.h.
5480 (agent_command_1) Use linespec location instead of address
5481 string.
5482 * break-catch-throw.c: Include location.h.
5483 (re_set_exception_catchpoint): Use linespec locations instead
5484 of address strings.
5485 * breakpoint.c: Include location.h.
5486 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5487 (create_std_terminate_master_breakpoint)
5488 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5489 Use linespec location instead of address string.
5490 (print_breakpoint_location): Use locations and
5491 event_location_to_string.
5492 Print extra_string for pending locations for non-MI streams.
5493 (print_one_breakpoint_location): Use locations and
5494 event_location_to_string.
5495 (init_raw_breakpoint_without_location): Initialize b->location.
5496 (create_thread_event_breakpoint): Use linespec location instead of
5497 address string.
5498 (init_breakpoint_sal): Likewise.
5499 Only save extra_string if it is non-NULL and not the empty string.
5500 Use event_location_to_string instead of `addr_string'.
5501 Constify `p' and `endp'.
5502 Use skip_spaces_const/skip_space_const instead of non-const versions.
5503 Copy the location into the breakpoint.
5504 If LOCATION is NULL, save the breakpoint address as a linespec location
5505 instead of an address string.
5506 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5507 event_location. All uses updated.
5508 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5509 (parse_breakpoint_sals): Use locations instead of address strings.
5510 Remove check for empty linespec with conditional.
5511 Refactor.
5512 (decode_static_tracepoint_spec): Make argument const and update
5513 function.
5514 (create_breakpoint): Change `arg' to a struct event_location and
5515 rename.
5516 Remove `copy_arg' and `addr_start'.
5517 If EXTRA_STRING is empty, set it to NULL.
5518 Don't populate `canonical' for pending breakpoints.
5519 Pass `extra_string' to find_condition_and_thread.
5520 Clear `extra_string' if `rest' was NULL.
5521 Do not error with "garbage after location" if setting a dprintf
5522 breakpoint.
5523 Copy the location into the breakpoint instead of an address string.
5524 (break_command_1): Use string_to_event_location and pass this to
5525 create_breakpoint instead of an address string.
5526 Check against `arg_cp' for a probe linespec.
5527 (dprintf_command): Use string_to_event_location and pass this to
5528 create_breakpoint instead of an address string.
5529 Throw an exception if no format string was specified.
5530 (print_recreate_ranged_breakpoint): Use event_location_to_string
5531 instead of address strings.
5532 (break_range_command, until_break_command)
5533 (init_ada_exception_breakpoint): Use locations instead
5534 of address strings.
5535 (say_where): Print out extra_string for pending locations.
5536 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5537 the breakpoint.
5538 (base_breakpoint_create_sals_from_location): Use struct event_location
5539 instead of address string.
5540 Remove `addr_start' and `copy_arg' parameters.
5541 (base_breakpoint_decode_location): Use struct event_location instead of
5542 address string.
5543 (bkpt_re_set): Use locations instead of address strings.
5544 Use event_location_empty_p to check for unset location.
5545 (bkpt_print_recreate): Use event_location_to_string instead of
5546 an address string.
5547 Print out extra_string for pending locations.
5548 (bkpt_create_sals_from_location, bkpt_decode_location)
5549 (bkpt_probe_create_sals_from_location): Use struct event_location
5550 instead of address string.
5551 (bkpt_probe_decode_location): Use struct event_location instead of
5552 address string.
5553 (tracepoint_print_recreate): Use event_location_to_string to
5554 recreate the tracepoint.
5555 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5556 (tracepoint_probe_create_sals_from_location)
5557 (tracepoint_probe_decode_location): Use struct event_location
5558 instead of address string.
5559 (dprintf_print_recreate): Use event_location_to_string to recreate
5560 the dprintf.
5561 (dprintf_re_set): Remove check for valid/missing format string.
5562 (strace_marker_create_sals_from_location)
5563 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5564 (update_static_tracepoint): Use struct event_location instead of
5565 address string.
5566 (location_to_sals): Likewise.
5567 Pass `extra_string' to find_condition_and_thread.
5568 For newly resolved pending breakpoint locations, clear the location's
5569 string representation.
5570 Assert that the breakpoint's condition string is NULL when
5571 condition_not_parsed.
5572 (breakpoint_re_set_default, create_sals_from_location_default)
5573 (decode_location_default, trace_command, ftrace_command)
5574 (strace_command, create_tracepoint_from_upload): Use locations
5575 instead of address strings.
5576 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5577 Use struct event_location instead of address string.
5578 Update all uses.
5579 <decode_location>: Likewise.
5580 (struct breakpoint) <addr_string>: Change to struct event_location
5581 and rename `location'.
5582 <addr_string_range_end>: Change to struct event_location and rename
5583 `location_range_end'.
5584 (create_breakpoint): Use struct event_location instead of address
5585 string.
5586 * cli/cli-cmds.c: Include location.h.
5587 (edit_command, list_command): Use locations instead of address strings.
5588 * elfread.c: Include location.h.
5589 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5590 * guile/scm-breakpoint.c: Include location.h.
5591 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5592 (gdbscm_register_breakpoint): Use locations instead of address
5593 strings.
5594 * linespec.c: Include location.h.
5595 (struct ls_parser) <stream>: Change to const char *.
5596 (PARSER_STREAM): Update.
5597 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5598 keywords must be followed by whitespace.
5599 (canonicalize_linespec): Save a linespec location into `canonical'.
5600 Save a canonical linespec into `canonical'.
5601 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5602 All uses updated.
5603 Update function description.
5604 (linespec_parser_new): Initialize `parser'.
5605 Update initialization of parsing stream.
5606 (event_location_to_sals): New function.
5607 (decode_line_full): Change `argptr' to a struct event_location and
5608 rename it `location'.
5609 Use locations instead of address strings.
5610 Call event_location_to_sals instead of parse_linespec.
5611 (decode_line_1): Likewise.
5612 (decode_line_with_current_source, decode_line_with_last_displayed)
5613 Use locations instead of address strings.
5614 (decode_objc): Likewise.
5615 Change `argptr' to const char * and rename `arg'.
5616 (destroy_linespec_result): Delete the linespec result's location
5617 instead of freeing the address string.
5618 * linespec.h (struct linespec_result) <addr_string>: Change to
5619 struct event_location and rename to ...
5620 <location>: ... this.
5621 (decode_line_1, decode_line_full): Change `argptr' to struct
5622 event_location. All callers updated.
5623 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5624 (mi_cmd_break_insert_1): Use locations instead of address strings.
5625 Throw an error if there was "garbage" at the end of the specified
5626 linespec.
5627 * probe.c: Include location.h.
5628 (parse_probes): Change `argptr' to struct event_location.
5629 Use event locations instead of address strings.
5630 * probe.h (parse_probes): Change `argptr' to struct event_location.
5631 * python/py-breakpoint.c: Include location.h.
5632 (bppy_get_location): Constify local variable `str'.
5633 Use event_location_to_string.
5634 (bppy_init): Use locations instead of address strings.
5635 * python/py-finishbreakpoint.c: Include location.h.
5636 (bpfinishpy_init): Remove local variable `addr_str'.
5637 Use locations instead of address strings.
5638 * python/python.c: Include location.h.
5639 (gdbpy_decode_line): Use locations instead of address strings.
5640 * remote.c: Include location.h.
5641 (remote_download_tracepoint): Use locations instead of address
5642 strings.
5643 * spu-tdep.c: Include location.h.
5644 (spu_catch_start): Remove local variable `buf'.
5645 Use locations instead of address strings.
5646 * tracepoint.c: Include location.h.
5647 (scope_info): Use locations instead of address strings.
5648 (encode_source_string): Constify parameter `src'.
5649 * tracepoint.h (encode_source_string): Likewise.
5650
5651 2015-08-11 Keith Seitz <keiths@redhat.com>
5652
5653 * Makefile.in (SFILES): Add location.c.
5654 (HFILES_NO_SRCDIR): Add location.h.
5655 (COMMON_OBS): Add location.o.
5656 * linespec.c (linespec_lex_to_end): New function.
5657 * linespec.h (linespec_lex_to_end): Declare.
5658 * location.c: New file.
5659 * location.h: New file.
5660
5661 2015-08-11 Keith Seitz <keiths@redhat.com>
5662
5663 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5664 Renamed to create_sals_from_location.
5665 <decode_linespec>: Renamed to decode_location.
5666 Update all callers.
5667 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5668 (create_sals_from_location_default): ... this.
5669 (addr_string_to_sals): Renamed to ...
5670 (location_to_sals): ... this.
5671 (decode_linespec_default): Renamed to ...
5672 (decode_location_default): ... this.
5673 (base_breakpoint_create_sals_from_address): Renamed to ...
5674 (base_breakpoint_create_sals_from_location): ... this.
5675 (bkpt_create_sals_from_address): Renamed to ...
5676 (bkpt_create_sals_from_location): ... this.
5677 (bkpt_decode_linespec): Renamed to ...
5678 (bkpt_decode_location): ... this.
5679 (bkpt_probe_create_sals_from_address): Renamed to ...
5680 (bkpt_probe_create_sals_from_location): ... this.
5681 (tracepoint_create_sals_from_address): Renamed to ...
5682 (tracepoint_create_sals_from_location): ... this.
5683 (tracepoint_decode_linespec): Renamed to ...
5684 (tracepoint_decode_location): ... this.
5685 (tracepoint_probe_create_sals_from_address): Renamed to ...
5686 (tracepoint_probe_create_sals_from_location): ... this.
5687 (tracepoint_probe_decode_linespec): Renamed to ...
5688 (tracepoint_probe_decode_location): ... this.
5689 (strace_marker_create_sals_from_address): Renamed to ...
5690 (strace_marker_create_sals_from_location): ... this.
5691 (decode_linespec_default): Renamed to ...
5692 (decode_location_default): ... this.
5693
5694 2015-08-10 Doug Evans <dje@google.com>
5695 Keith Seitz <keiths@redhat.com>
5696
5697 PR gdb/17960
5698 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5699 make_file_symbol_completion_list and made static.
5700 (make_file_symbol_completion_list): New function.
5701
5702 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5703
5704 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5705 trailing new-line at end of warning message.
5706 (proceed): Add i18n marker to error messages.
5707
5708 2015-08-07 Pedro Alves <palves@redhat.com>
5709
5710 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5711
5712 2015-08-07 Pedro Alves <palves@redhat.com>
5713
5714 * s390-linux-tdep.c (is_non_branch_ril)
5715 (s390_displaced_step_copy_insn): New functions.
5716 (s390_displaced_step_fixup): Update comment.
5717 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5718 gdbarch_displaced_step_copy_insn hook.
5719
5720 2015-08-07 Pedro Alves <palves@redhat.com>
5721
5722 * infrun.c (displaced_step_prepare_throw): Return -1 if
5723 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5724 comment.
5725 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5726 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5727 in file.
5728 (ppc_displaced_step_copy_insn): New function.
5729 (ppc_displaced_step_fixup): Update comment.
5730 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5731 gdbarch_displaced_step_copy_insn hook.
5732 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5733 NULL return.
5734 * gdbarch.h: Regenerate.
5735
5736 2015-08-07 Pedro Alves <palves@redhat.com>
5737
5738 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5739 field.
5740 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5741 Return false if dispaced stepping failed before.
5742 (resume): Pass the current inferior to
5743 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5744 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5745 displaced_stepping_failed flag, and fall back to an in-line
5746 step-over.
5747
5748 2015-08-07 Pedro Alves <palves@redhat.com>
5749
5750 * darwin-nat.c (darwin_stop): Rename to ...
5751 (darwin_interrupt): ... this.
5752 (_initialize_darwin_inferior): Adjust.
5753 * gnu-nat.c (gnu_stop): Delete.
5754 (gnu_target): Don't install gnu_stop.
5755 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5756 (inf_ptrace_interrupt): ... this.
5757 (inf_ptrace_target): Adjust.
5758 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5759 target_stop.
5760 * linux-nat (linux_nat_stop): Rename to ...
5761 (linux_nat_interrupt): ... this.
5762 (linux_nat_stop): Reimplement.
5763 (linux_nat_add_target): Install linux_nat_interrupt.
5764 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5765 (nto_handle_sigint_twice): ... this.
5766 (nto_interrupt): Rename to ...
5767 (nto_handle_sigint): ... this. Call target_interrupt instead of
5768 target_stop.
5769 (procfs_wait): Adjust.
5770 (procfs_stop): Rename to ...
5771 (procfs_interrupt): ... this.
5772 (init_procfs_targets): Adjust.
5773 * procfs.c (procfs_stop): Rename to ...
5774 (procfs_interrupt): ... this.
5775 (procfs_target): Adjust.
5776 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5777 (m32r_interrupt): ... this.
5778 (init_m32r_ops): Adjust.
5779 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5780 (gdbsim_interrupt_inferior): ... this.
5781 (gdbsim_stop): Rename to ...
5782 (gdbsim_interrupt): ... this.
5783 (gdbsim_cntrl_c): Adjust.
5784 (init_gdbsim_ops): Adjust.
5785 * remote.c (sync_remote_interrupt): Adjust comments.
5786 (remote_stop_as): Rename to ...
5787 (remote_interrupt_as): ... this.
5788 (remote_stop): Adjust comment.
5789 (remote_interrupt): New function.
5790 (init_remote_ops): Install remote_interrupt.
5791 * target.c (target_interrupt): New function.
5792 * target.h (struct target_ops) <to_interrupt>: New field.
5793 (target_interrupt): New declaration.
5794 * windows-nat.c (windows_stop): Rename to ...
5795 (windows_interrupt): ... this.
5796 * target-delegates.c: Regenerate.
5797
5798 2015-08-07 Pedro Alves <palves@redhat.com>
5799
5800 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5801 threads" as alternative to "switching back to stepped thread".
5802
5803 2015-08-07 Pedro Alves <palves@redhat.com>
5804
5805 * NEWS: Mention "maint set/show target-non-stop".
5806 * breakpoint.c (update_global_location_list): Check
5807 target_is_non_stop_p instead of non_stop.
5808 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5809 * infrun.c (show_can_use_displaced_stepping)
5810 (can_use_displaced_stepping_p, start_step_over_inferior):
5811 Likewise.
5812 (internal_resume_ptid): New function.
5813 (resume): Use it.
5814 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5815 all-stop mode but the target is always in non-stop mode, start all
5816 the other threads that are implicitly resumed too.
5817 (for_each_just_stopped_thread, fetch_inferior_event)
5818 (adjust_pc_after_break, stop_all_threads): Check
5819 target_is_non_stop_p instead of non_stop.
5820 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5821 with the target always in non-stop mode.
5822 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5823 instead of non_stop.
5824 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5825 instead of non_stop.
5826 (keep_going_stepped_thread): Use internal_resume_ptid.
5827 (stop_waiting): If in all-stop mode, and the target is in non-stop
5828 mode, stop all threads.
5829 (keep_going_pass): Likewise, when starting a new in-line step-over
5830 sequence.
5831 * linux-nat.c (get_pending_status, select_event_lwp)
5832 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5833 target_is_non_stop_p instead of non_stop.
5834 (linux_nat_always_non_stop_p): New function.
5835 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5836 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5837 * target-delegates.c: Regenerate.
5838 * target.c (target_is_non_stop_p): New function.
5839 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5840 (maint_set_target_non_stop_command)
5841 (maint_show_target_non_stop_command): New functions.
5842 (_initilize_target): Install "maint set/show target-non-stop"
5843 commands.
5844 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5845 (target_non_stop_enabled): New declaration.
5846 (target_is_non_stop_p): New declaration.
5847
5848 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5849
5850 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5851 has a pending status, return true.
5852 * gdbthread.h: Include target/waitstatus.h.
5853 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5854 stop_pc>: New fields.
5855 (struct thread_info) <resumed>: New field.
5856 (set_resumed): Declare.
5857 * infrun.c: Include "event-loop.h".
5858 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5859 (infrun_async): New function.
5860 (clear_step_over_info): Add debug output.
5861 (displaced_step_in_progress_any_inferior): New function.
5862 (displaced_step_fixup): New returns int.
5863 (start_step_over): Handle in-line step-overs too. Assert the
5864 thread is marked resumed.
5865 (resume_cleanups): Clear the thread's resumed flag.
5866 (resume): Set the thread's resumed flag. Return early if the
5867 thread has a pending status. Allow stepping a breakpoint with no
5868 signal.
5869 (proceed): Adjust to check 'resumed' instead of 'executing'.
5870 (clear_proceed_status_thread): If the thread has a pending status,
5871 and that status is a finished step, discard the pending status.
5872 (clear_proceed_status): Don't clear step_over_info here.
5873 (random_pending_event_thread, do_target_wait): New functions.
5874 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5875 do_target_wait.
5876 (wait_one): New function.
5877 (THREAD_STOPPED_BY): New macro.
5878 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5879 (thread_stopped_by_hw_breakpoint): New functions.
5880 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5881 functions.
5882 (handle_inferior_event): Also call set_resumed(false) on all
5883 threads implicitly stopped by the event.
5884 (restart_threads, resumed_thread_with_pending_status): New
5885 functions.
5886 (finish_step_over): If we were doing an in-line step-over before,
5887 and no longer are after trying to start a new step-over, restart
5888 all threads. If we have multiple threads with pending events,
5889 save the current event and go through the event loop again.
5890 (handle_signal_stop): Return early if finish_step_over returns
5891 false.
5892 <random signal>: If we get a signal while stepping over a
5893 breakpoint in-line in non-stop mode, restart all threads. Clear
5894 step_over_info before delivering the signal.
5895 (keep_going_stepped_thread): Use internal_error instead of
5896 gdb_assert. Mark the thread as resumed.
5897 (keep_going_pass_signal): Assert the thread isn't already resumed.
5898 If some other thread is doing an in-line step-over, defer the
5899 resume. If we just started a new in-line step-over, stop all
5900 threads. Don't clear step_over_info.
5901 (infrun_async_inferior_event_handler): New function.
5902 (_initialize_infrun): Create async event handler with
5903 infrun_async_inferior_event_handler as callback.
5904 (infrun_async): New declaration.
5905 * target.c (target_async): New function.
5906 * target.h (target_async): Declare macro and readd as function
5907 declaration.
5908 * target/waitstatus.h (enum target_stop_reason)
5909 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5910 * thread.c (new_thread): Clear the new waitstatus field.
5911 (set_resumed): New function.
5912
5913 2015-08-07 Pedro Alves <palves@redhat.com>
5914
5915 * infrun.c (keep_going_stepped_thread): New function, factored out
5916 from ...
5917 (switch_back_to_stepped_thread): ... here.
5918
5919 2015-08-07 Pedro Alves <palves@redhat.com>
5920
5921 * infrun.c (currently_stepping): Extend intro comment.
5922 * target.h (target_resume): Extend intro comment.
5923
5924 2015-08-07 Pedro Alves <palves@redhat.com>
5925
5926 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5927 of inferior_ptid. If the stepped thread vanished, return 0
5928 instead of resuming here. Use reset_ecs. Print the prev_pc and
5929 the current stop_pc in log message. Clear trap_expected if the
5930 thread advanced. Don't pass currently_stepping to
5931 do_target_resume.
5932
5933 2015-08-07 Pedro Alves <palves@redhat.com>
5934
5935 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5936 * infrun.c (struct execution_control_state): Move higher up in the
5937 file.
5938 (reset_ecs): New function.
5939 (start_step_over): Now returns int. Rewrite to use
5940 keep_going_pass_signal instead of manually starting a displaced step.
5941 (resume): Don't call set_running here. If displaced stepping
5942 can't start now, clear trap_expected.
5943 (find_thread_needs_step_over): Delete function.
5944 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5945 If the current thread needs a step over, push it in the step-over
5946 chain. Don't set insert breakpoints nor call resume directly
5947 here. Instead rewrite to use start_step_over and
5948 keep_going_pass_signal.
5949 (finish_step_over): New function.
5950 (handle_signal_stop): Call finish_step_over instead of
5951 start_step_over.
5952 (switch_back_to_stepped_thread): If the event thread needs another
5953 step-over do that first. Use start_step_over.
5954 (keep_going_pass_signal): New function, factored out from ...
5955 (keep_going): ... here.
5956 (_initialize_infrun): Comment moved here.
5957 * thread.c (set_running_thread): New function.
5958 (set_running, finish_thread_state): Use set_running_thread.
5959
5960 2015-08-07 Pedro Alves <palves@redhat.com>
5961
5962 * gdbthread.h (struct thread_info) <step_over_prev,
5963 step_over_next>: New fields.
5964 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5965 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5966 declarations.
5967 * infrun.c (struct displaced_step_request): Delete.
5968 (struct displaced_step_inferior_state) <step_request_queue>:
5969 Delete field.
5970 (displaced_step_prepare): Assert that trap_expected is set. Use
5971 thread_step_over_chain_enqueue. Split starting a new displaced
5972 step to ...
5973 (start_step_over): ... this new function.
5974 (resume): Assert the thread isn't waiting for a step over already.
5975 (proceed): Assert the thread isn't waiting for a step over
5976 already.
5977 (infrun_thread_stop_requested): Adjust to remove threads from the
5978 embedded step-over chain.
5979 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5980 displaced_step_fixup.
5981 (handle_signal_stop): Call start_step_over after
5982 displaced_step_fixup.
5983 * infrun.h (step_over_queue_head): New declaration.
5984 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5985 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5986 (thread_step_over_chain_enqueue)
5987 (thread_step_over_chain_remove): New functions.
5988 (delete_thread_1): Remove thread from the step-over chain.
5989
5990 2015-08-07 Pedro Alves <palves@redhat.com>
5991
5992 * infrun.c (thread_still_needs_step_over): Rename to ...
5993 (thread_still_needs_step_over_bp): ... this.
5994 (enum step_over_what): New.
5995 (thread_still_needs_step_over): Reimplement.
5996
5997 2015-08-07 Pedro Alves <palves@redhat.com>
5998
5999 * remote.c (remote_wait_as): If not waiting for a stop reply,
6000 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
6001 requested, don't block waiting forever.
6002
6003 2015-08-07 Pedro Alves <pedro@codesourcery.com>
6004
6005 * infrun.c (adjust_pc_after_break): Now takes thread_info and
6006 waitstatus pointers instead of an ecs. Adjust.
6007 (handle_inferior_event): Adjust caller.
6008
6009 2015-08-07 Pedro Alves <palves@redhat.com>
6010
6011 * infrun.c (handle_inferior_event): If we get
6012 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
6013 mode, mark all threads of the exiting process as not-executing.
6014 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
6015 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
6016 exiting process, if inferior_ptid still points at a process.
6017 * thread.c (struct current_thread_cleanup) <next>: New field.
6018 (current_thread_cleanup_chain): New global.
6019 (restore_current_thread_ptid_changed): New function.
6020 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
6021 current_thread_cleanup_chain list.
6022 (make_cleanup_restore_current_thread): Add the cleanup data to the
6023 current_thread_cleanup_chain list.
6024 (_initialize_thread): Install restore_current_thread_ptid_changed
6025 as thread_ptid_changed observer.
6026
6027 2015-08-07 Joel Brobecker <brobecker@adacore.com>
6028
6029 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
6030 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
6031 smaller than expected.
6032
6033 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6034
6035 * stack.c (get_frame_language): Moved ...
6036 * frame.c (get_frame_language): ... to here.
6037 * language.h (get_frame_language): Declaration moved to frame.h.
6038 * frame.h: Add language.h include, for language enum.
6039 (get_frame_language): Declaration moved from language.h.
6040 * language.c: Add frame.h include.
6041 * top.c: Add frame.h include.
6042 * symtab.h (struct obj_section): Declare.
6043 (struct cmd_list_element): Declare.
6044
6045 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * language.c (show_language_command): Find selected frame before
6048 asking for the language of that frame.
6049 (set_language_command): Likewise.
6050 * language.h (get_frame_language): Add frame parameter.
6051 * stack.c (get_frame_language): Add frame parameter, assert
6052 parameter is not NULL, update comment and reindent.
6053 * top.c (check_frame_language_change): Pass the selected frame
6054 into get_frame_language.
6055
6056 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6057
6058 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
6059 (pt_btrace_insn_flags): New.
6060 (ftrace_add_pt): Call pt_btrace_insn_flags.
6061 * btrace.h (btrace_insn_flag): New.
6062 (btrace_insn) <flags>: New.
6063 * record-btrace.c (btrace_insn_history): Print insn prefix.
6064 * NEWS: Announce it.
6065
6066 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6067
6068 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6069 * configure: Regenerate.
6070
6071 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
6072
6073 * Makefile.in (LIBICONV): Define.
6074 (CLIBS): Add LIBICONV.
6075 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6076 * configure: Regenerate.
6077
6078 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6079 Pedro Alves <palves@redhat.com>
6080
6081 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
6082 (arm_set_abi): Likewise.
6083 * ax-general.c (ax_print): Likewise.
6084 * c-exp.y (exp : string_exp): Likewise.
6085 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
6086 (do_compile_dwarf_expr_to_c): Likewise.
6087 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
6088 Likewise.
6089 * dwarf2expr.c (execute_stack_op): Likewise.
6090 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
6091 (disassemble_dwarf_expression): Likewise.
6092 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
6093 (read_array_order): Likewise.
6094 (abbrev_table_read_table): Likewise.
6095 (read_attribute_value): Likewise.
6096 (skip_unknown_opcode): Likewise.
6097 (dwarf_decode_macro_bytes): Likewise.
6098 (dwarf_decode_macros): Likewise.
6099 * eval.c (value_f90_subarray): Likewise.
6100 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6101 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6102 * infrun.c (handle_command): Likewise.
6103 * memory-map.c (memory_map_start_memory): Likewise.
6104 * osabi.c (set_osabi): Likewise.
6105 * parse.c (operator_length_standard): Likewise.
6106 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
6107 single return point.
6108 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6109 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6110 (gdbpy_lookup_global_symbol): Likewise.
6111 * record-full.c (record_full_restore): Likewise.
6112 * regcache.c (regcache_register_status): Likewise.
6113 (regcache_raw_read): Likewise.
6114 (regcache_cooked_read): Likewise.
6115 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6116 * symtab.c (initialize_ordinary_address_classes): Likewise.
6117 * target-debug.h (target_debug_print_signals): Likewise.
6118 * utils.c (do_restore_current_language): Likewise.
6119
6120 2015-08-06 Clem Dickey <clemd@acm.org>
6121
6122 PR python/17136
6123 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6124
6125 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * complaints.c (enum complaint_series): Add newlines and remove
6128 out of date comment.
6129 (struct complaints) <series>: Change type to enum
6130 complaint_series and remove out of date comment.
6131 (symfile_complaint_hook): Use equivalent enum value
6132 ISOLATED_MESSAGE instead of 0.
6133
6134 2015-08-06 Pedro Alves <palves@redhat.com>
6135
6136 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6137 returned > 0.
6138
6139 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6140
6141 * common/agent.c (symbol_list) <required>: Remove.
6142
6143 2015-08-06 Pedro Alves <palves@redhat.com>
6144
6145 * target/waitstatus.h (enum target_stop_reason)
6146 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6147
6148 2015-08-05 Pedro Alves <palves@redhat.com>
6149 Joel Brobecker <brobecker@adacore.com>
6150
6151 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
6152 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6153 case where BS->STOP is not set.
6154
6155 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
6156
6157 * nat/gdb_thread_db.h: Add copyright header.
6158 Protect against multiple inclusion.
6159
6160 2015-08-05 Yao Qi <yao.qi@linaro.org>
6161
6162 * aarch64-linux-nat.c (get_thread_id): Remove.
6163 (debug_reg_change_callback): Call ptid_get_lwp instead of
6164 get_thread_id.
6165 (fetch_gregs_from_thread): Likewise.
6166 (store_gregs_to_thread): Likewise.
6167 (fetch_fpregs_from_thread): Likewise.
6168 (store_fpregs_to_thread): Likewise.
6169 (aarch64_linux_get_debug_reg_capacity): Likewise.
6170 * arm-linux-nat.c (get_thread_id): Remove.
6171 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6172 * xtensa-linux-nat.c (get_thread_id): Remove.
6173 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6174 * arm-linux-nat.c (get_thread_id): Remove.
6175 (GET_THREAD_ID): Remove.
6176 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6177 (store_fpregs, fetch_regs, store_regs): Likewise.
6178 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6179 (fetch_vfp_regs, store_vfp_regs): Likewise.
6180 (arm_linux_read_description): Likewise.
6181 (arm_linux_get_hwbp_cap): Likewise.
6182 * xtensa-linux-nat.c (get_thread_id): Remove.
6183 (GET_THREAD_ID): Remove.
6184 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6185 GET_THREAD_ID.
6186
6187 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6188
6189 * python/py-linetable.c: Fix case of Linetable to LineTable
6190 in docstrings and code comments.
6191 * python/py-symtab.c: Same.
6192
6193 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6196
6197 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6198
6199 PR gdb/18767
6200 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6201 use.
6202
6203 2015-08-04 Pedro Alves <palves@redhat.com>
6204
6205 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6206 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6207 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6208 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6209 (td_thr_validate_ftype, td_thr_get_info_ftype)
6210 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6211 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6212 New typedefs.
6213 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6214 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6215 local macros and use them instead of verbose_dlsym and dlsym
6216 calls.
6217
6218 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6219
6220 * nios2-tdep.h: Include opcode/nios2.h here.
6221 (NIOS2_CDX_OPCODE_SIZE): New.
6222 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6223 * nios2-tdep.c: Don't include opcode/nios2.h here.
6224 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6225 4-byte read fails.
6226 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6227 (nios2_match_addi, nios2_match_orhi): Likewise.
6228 (nios2_match_stw, nios2_match_ldw): Likewise.
6229 (nios2_match_rdctl): Likewise.
6230 (nios2_match_stwm, nios2_match_ldwm): New.
6231 (nios2_match_branch): Add cases for R2 encodings.
6232 (nios2_match_jmpi, nios2_match_calli): Likewise.
6233 (nios2_match_jmpr, nios2_match_callr): Likewise.
6234 (nios2_match_break, nios2_match_trap): Likewise.
6235 (nios2_in_epilogue_p): Add R2 support.
6236 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6237 prologues.
6238 (nios2_breakpoint_from_pc): Handle R2 instructions.
6239 (nios2_get_next_pc): Likewise. Adjust call to
6240 tdep->syscall_next_pc.
6241 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6242 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6243 instruction field macros instead of literal hex values.
6244 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6245 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6246 Use size field from OP instead of assuming all instructions
6247 are the same size.
6248 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6249
6250 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6251
6252 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6253 variable warning with some compilers.
6254
6255 2015-08-03 Yao Qi <yao.qi@linaro.org>
6256
6257 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6258 in comment. Replace "rw" with "type".
6259 (arm_linux_remove_watchpoint): Change type of "rw" to
6260 "enum target_hw_bp_type".
6261
6262 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6263
6264 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6265 lookup_symbol.
6266 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6267 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6268 * mt-tdep.c (mt_skip_prologue): Likewise.
6269 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6270
6271 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6272
6273 * ada-exp.y (write_object_renaming): Replace struct
6274 ada_symbol_info with struct block_symbol. Update field
6275 references accordingly.
6276 (block_lookup, select_possible_type_sym): Likewise.
6277 (find_primitive_type): Likewise. Also update call to
6278 ada_lookup_symbol to extract the symbol itself.
6279 (write_var_or_type, write_name_assoc): Likewise.
6280 * ada-lang.h (struct ada_symbol_info): Remove.
6281 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6282 struct block_symbol.
6283 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6284 (ada_lookup_symbol): Return struct block_symbol instead of a
6285 mere symbol.
6286 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6287 with struct block_symbol.
6288 (resolve_subexp, ada_resolve_function, sort_choices,
6289 user_select_syms, is_nonfunction, add_defn_to_vec,
6290 num_defns_collected, defns_collected,
6291 symbols_are_identical_enums, remove_extra_symbols,
6292 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6293 ada_lookup_symbol_list, ada_iterate_over_symbols,
6294 ada_lookup_encoded_symbol, get_var_value): Likewise.
6295 (ada_lookup_symbol): Return a block_symbol instead of a mere
6296 symbol. Replace struct ada_symbol_info with struct
6297 block_symbol.
6298 (ada_lookup_symbol_nonlocal): Likewise.
6299 (standard_lookup): Make block passing explicit through
6300 lookup_symbol_in_language.
6301 * ada-tasks.c (get_tcb_types_info): Update the calls to
6302 lookup_symbol_in_language to extract the mere symbol out of the
6303 returned value.
6304 (ada_tasks_inferior_data_sniffer): Likewise.
6305 * ax-gdb.c (gen_static_field): Likewise for the call to
6306 lookup_symbol.
6307 (gen_maybe_namespace_elt): Deal with struct block_symbol from
6308 lookup functions.
6309 (gen_expr): Likewise.
6310 * c-exp.y: Likewise. Remove uses of block_found.
6311 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6312 (classify_name): Likewise. Rename the "sym" local variable to
6313 "bsym".
6314 * c-valprint.c (print_unpacked_pointer): Likewise.
6315 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6316 "sym" parameter from struct symbol * to struct block_symbol.
6317 Use it to remove uses of block_found. Deal with struct
6318 block_symbol from lookup functions.
6319 (gcc_convert_symbol): Likewise. Update the call to
6320 convert_symbol_sym.
6321 * compile/compile-object-load.c (compile_object_load): Deal with
6322 struct block_symbol from lookup functions.
6323 * cp-namespace.c (cp_lookup_nested_symbol_1,
6324 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6325 cp_search_static_and_baseclasses,
6326 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6327 cp_lookup_symbol_imports_or_template,
6328 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6329 lookup_namespace_scope, cp_lookup_nonlocal,
6330 find_symbol_in_baseclass): Return struct block_symbol instead of
6331 mere symbols and deal with struct block_symbol from lookup
6332 functions.
6333 * cp-support.c (inspect_type, replace_typedefs,
6334 cp_lookup_rtti_type): Deal with struct block_symbol from
6335 lookup functions.
6336 * cp-support.h (cp_lookup_symbol_nonlocal,
6337 cp_lookup_symbol_from_namespace,
6338 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
6339 Return struct block_symbol instead of mere symbols.
6340 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6341 push_module_name):
6342 Deal with struct block_symbol from lookup functions. Remove
6343 uses of block_found.
6344 * eval.c (evaluate_subexp_standard): Update call to
6345 cp_lookup_symbol_namespace.
6346 * f-exp.y: Deal with struct block_symbol from lookup functions.
6347 Remove uses of block_found.
6348 (yylex): Likewise.
6349 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6350 lookup_enum, lookup_template_type, check_typedef): Deal with
6351 struct block_symbol from lookup functions.
6352 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6353 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6354 (gdbscm_lookup_global_symbol): Likewise.
6355 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6356 * go-exp.y: Likewise. Remove uses of block_found.
6357 (package_name_p, classify_packaged_name, classify_name):
6358 Likewise.
6359 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6360 * jv-exp.y (push_variable): Likewise.
6361 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6362 * language.c (language_bool_type): Likewise.
6363 * language.h (struct language_defn): Update
6364 la_lookup_symbol_nonlocal to return a struct block_symbol rather
6365 than a mere symbol.
6366 * linespec.c (find_label_symbols): Deal with struct block_symbol
6367 from lookup functions.
6368 * m2-exp.y: Likewise. Remove uses of block_found.
6369 (yylex): Likewise.
6370 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6371 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
6372 * p-exp.y: Likewise. Remove uses of block_found.
6373 (yylex): Likewise.
6374 * p-valprint.c (pascal_val_print): Likewise.
6375 * parse.c (write_dollar_variable): Likewise. Remove uses of
6376 block_found.
6377 * parser-defs.h (struct symtoken): Turn the SYM field into a
6378 struct block_symbol.
6379 * printcmd.c (address_info): Deal with struct block_symbol from
6380 lookup functions.
6381 * python/py-frame.c (frapy_read_var): Likewise.
6382 * python/py-symbol.c (gdbpy_lookup_symbol,
6383 gdbpy_lookup_global_symbol): Likewise.
6384 * skip.c (skip_function_command): Likewise.
6385 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
6386 block_symbol instead of a mere symbol.
6387 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6388 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6389 * solib.c (solib_global_lookup): Likewise.
6390 * solist.h (solib_global_lookup): Likewise.
6391 (struct target_so_ops): Update lookup_lib_global_symbol to
6392 return a struct block_symbol rather than a mere symbol.
6393 * source.c (select_source_symtab): Deal with struct block_symbol
6394 from lookup functions.
6395 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6396 Likewise.
6397 * symfile.c (set_initial_language): Likewise.
6398 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
6399 block_symbol.
6400 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6401 (struct symbol_cache_slot): Turn the FOUND field into a struct
6402 block_symbol.
6403 (block_found): Remove.
6404 (eq_symbol_entry): Update to deal with struct block_symbol in
6405 cache slots.
6406 (symbol_cache_lookup): Return a struct block_symbol rather than
6407 a mere symbol.
6408 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6409 appropriately the cache slots. Update callers.
6410 (symbol_cache_dump): Update cache slots handling to the type
6411 change.
6412 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6413 lookup_symbol_aux, lookup_local_symbol,
6414 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6415 lookup_symbol_in_objfile_symtabs,
6416 lookup_symbol_in_objfile_from_linkage_name,
6417 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6418 lookup_symbol_in_static_block, lookup_static_symbol,
6419 lookup_global_symbol):
6420 Return a struct block_symbol rather than a mere symbol. Deal
6421 with struct block_symbol from other lookup functions. Remove
6422 uses of block_found.
6423 (lookup_symbol_in_block): Remove uses of block_found.
6424 (struct global_sym_lookup_data): Turn the RESULT field into a
6425 struct block_symbol.
6426 (lookup_symbol_global_iterator_cb): Update references to the
6427 RESULT field.
6428 (search_symbols): Deal with struct block_symbol from lookup
6429 functions.
6430 * symtab.h (struct block_symbol): New structure.
6431 (block_found): Remove.
6432 (lookup_symbol_in_language, lookup_symbol,
6433 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6434 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6435 lookup_global_symbol_from_objfile): Return a struct block_symbol
6436 rather than just a mere symbol. Update comments to remove
6437 mentions of block_found.
6438 * valops.c (find_function_in_inferior,
6439 value_struct_elt_for_reference, value_maybe_namespace_elt,
6440 value_of_this): Deal with struct block_symbol from lookup
6441 functions.
6442 * value.c (value_static_field, value_fn_field): Likewise.
6443
6444 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6445
6446 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6447 instead of integer.
6448
6449 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6450 Pedro Alves <palves@redhat.com>
6451
6452 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6453 type or value instead of integer.
6454 (aarch64_linux_insert_watchpoint): Likewise.
6455 (aarch64_linux_remove_watchpoint): Likewise.
6456 * ada-lang.c (ada_op_print_tab): Likewise.
6457 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6458 (amd64_linux_syscall_record_common): Likewise.
6459 * arch-utils.c (target_byte_order_user): Likewise.
6460 (default_byte_order): Likewise.
6461 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6462 (arm_linux_get_hwbp_type): Likewise.
6463 (arm_linux_hw_watchpoint_initialize): Likewise.
6464 (arm_linux_insert_watchpoint): Likewise.
6465 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6466 (arm_linux_syscall_record): Likewise.
6467 * breakpoint.c (update_watchpoint): Likewise.
6468 (breakpoint_here_p): Likewise.
6469 (bpstat_print): Likewise.
6470 (enable_breakpoint_disp): Likewise.
6471 * c-lang.c (c_op_print_tab): Likewise.
6472 * cli/cli-decode.c (add_info_alias): Likewise.
6473 * d-lang.c (d_op_print_tab): Likewise.
6474 * eval.c (evaluate_subexp_standard): Likewise.
6475 * f-exp.y (dot_ops): Likewise.
6476 (f77_keywords): Likewise.
6477 * f-lang.c (f_op_print_tab): Likewise.
6478 * go-lang.c (go_op_print_tab): Likewise.
6479 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6480 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6481 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6482 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6483 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6484 (struct scm_from_stringn_data): Likewise.
6485 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6486 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6487 (ia64_linux_remove_watchpoint): Likewise.
6488 (ia64_linux_can_use_hw_breakpoint): Likewise.
6489 * infrun.c (print_stop_event): Likewise.
6490 * jv-lang.c (java_op_print_tab): Likewise.
6491 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6492 * linux-nat.h (struct lwp_info): Likewise.
6493 * linux-thread-db.c (enable_thread_event): Likewise.
6494 * m2-lang.c (m2_op_print_tab): Likewise.
6495 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6496 (mi_cmd_stack_list_variables): Likewise.
6497 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6498 * mi/mi-out.c (mi_table_begin): Likewise.
6499 (mi_table_header): Likewise.
6500 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6501 (mips_linux_insert_watchpoint): Likewise.
6502 (mips_linux_remove_watchpoint): Likewise.
6503 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6504 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6505 (mips_linux_watch_type_to_irw): Likewise.
6506 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6507 (procfs_insert_hw_watchpoint): Likewise.
6508 (procfs_remove_hw_watchpoint): Likewise.
6509 (procfs_hw_watchpoint): Likewise.
6510 (procfs_can_use_hw_breakpoint): Likewise.
6511 (procfs_remove_hw_watchpoint): Likewise.
6512 (procfs_insert_hw_watchpoint): Likewise.
6513 * p-lang.c (pascal_op_print_tab): Likewise.
6514 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6515 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6516 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6517 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6518 (procfs_insert_watchpoint): Likewise.
6519 (procfs_remove_watchpoint): Likewise.
6520 * psymtab.c (recursively_search_psymtabs): Likewise.
6521 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6522 (m32r_insert_watchpoint): Likewise.
6523 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6524 (mips_insert_watchpoint): Likewise.
6525 (mips_remove_watchpoint): Likewise.
6526 * remote.c (watchpoint_to_Z_packet): Likewise.
6527 (remote_insert_watchpoint): Likewise.
6528 (remote_remove_watchpoint): Likewise.
6529 (remote_check_watch_resources): Likewise.
6530 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6531 (s390_remove_watchpoint): Likewise.
6532 (s390_can_use_hw_breakpoint): Likewise.
6533 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6534 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6535 * target.h (struct target_ops): Likewise.
6536 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6537 * ui-out.c (struct ui_out_hdr): Likewise.
6538 (append_header_to_list): Likewise.
6539 (get_next_header): Likewise.
6540 (verify_field): Likewise.
6541 (ui_out_begin): Likewise.
6542 (ui_out_field_int): Likewise.
6543 (ui_out_field_fmt_int): Likewise.
6544 (ui_out_field_skip): Likewise.
6545 (ui_out_field_string): Likewise.
6546 (ui_out_field_fmt): Likewise.
6547 * varobj.c (new_variable): Likewise.
6548 * x86-nat.c (x86_insert_watchpoint): Likewise.
6549 (x86_remove_watchpoint): Likewise.
6550 (x86_can_use_hw_breakpoint): Likewise.
6551 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6552 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6553 previously anonymous enumeration type..
6554 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6555 value.
6556 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6557 (target_debug_print_enum_bptype): New.
6558 * target-delegates.c: Regenerate.
6559
6560 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6561
6562 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6563 already says and disallow non-stack memory writes in the prologue.
6564
6565 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6566
6567 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6568 reflect how current GCC emits stack overflow checks. Match
6569 both trap and break instructions for backward compatbility.
6570 Disallow other trap and break instructions in the prologue.
6571
6572 2015-07-30 Pedro Alves <palves@redhat.com>
6573
6574 PR threads/18600
6575 * linux-nat.c (wait_lwp): Report to the core when thread group
6576 leader exits.
6577
6578 2015-07-30 Pedro Alves <palves@redhat.com>
6579 Simon Marchi <simon.marchi@ericsson.com>
6580
6581 PR threads/18600
6582 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6583 mark the new thread as resumed. Remove STOPPING parameter.
6584 (wait_lwp): Adjust call to linux_handle_extended_wait.
6585 (linux_nat_filter_event): Adjust call to
6586 linux_handle_extended_wait.
6587 (resume_stopped_resumed_lwps): Add debug output.
6588
6589 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6590
6591 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6592 isize argument.
6593 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6594 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6595 gdbarch_fast_tracepoint_valid_at.
6596 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6597 * gdbarch.h: Regenerate.
6598 * gdbarch.c: Regenerate.
6599 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6600 argument. Do not set it.
6601 * remote.c (remote_download_tracepoint): Adjust call to
6602 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6603 the instruction length.
6604
6605 2015-07-30 Yao Qi <yao.qi@linaro.org>
6606
6607 * arm-tdep.h (enum gdb_regnum): Move it to ...
6608 * arch/arm.h: ... here. New file.
6609 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6610
6611 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6612
6613 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6614 Change its type to int *.
6615 (decode_br): Rename link argument to is_blr. Change its type to
6616 int *.
6617 (decode_cb): Rename op argument to is_cbnz. Change its type to
6618 int *.
6619 (decode_tb): Rename op argument to is_tbnz. Change its type to
6620 int *. Set is_tbnz to either 1 or 0.
6621 (aarch64_analyze_prologue): Change type of is_link to int. Add
6622 new variables is_cbnz and is_tbnz. Adjust call to
6623 aarch64_decode_cb and aarch64_decode_tb.
6624
6625 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6626
6627 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6628 parameter.
6629 (mips_linux_new_thread): Likewise.
6630 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6631
6632 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6633
6634 * top.c: Include "tui/tui.h".
6635 (undo_terminal_modifications_before_exit): New static function.
6636 (quit_force): Use it.
6637
6638 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6639
6640 * target.c (terminal_state): Initialize to terminal_is_ours.
6641
6642 2015-07-29 Yao Qi <yao.qi@linaro.org>
6643
6644 PR record/18691
6645 * dcache.c (dcache_read_memory_partial): Call
6646 raw_memory_xfer_partial.
6647 * target.c (raw_memory_xfer_partial): Make it non-static.
6648 * target.h (raw_memory_xfer_partial): Declare.
6649
6650 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6651
6652 * c-valprint.c (c_val_print_array): Consider addressable memory
6653 unit size.
6654 (c_val_print_ptr): Likewise.
6655 (c_val_print_int): Likewise.
6656 * findvar.c (read_frame_register_value): Likewise.
6657 * valarith.c (find_size_for_pointer_math): Likewise.
6658 (value_ptrdiff): Likewise.
6659 (value_subscripted_rvalue): Likewise.
6660 * valops.c (read_value_memory): Likewise (and rename variables).
6661 (value_assign): Likewise.
6662 (value_repeat): Likewise.
6663 (value_array): Likewise.
6664 (value_slice): Likewise.
6665 * valprint.c (generic_val_print_ptr): Likewise.
6666 (generic_val_print_enum): Likewise.
6667 (generic_val_print_bool): Likewise.
6668 (generic_val_print_int): Likewise.
6669 (generic_val_print_char): Likewise.
6670 (generic_val_print_float): Likewise.
6671 (generic_val_print_decfloat): Likewise.
6672 (generic_val_print_complex): Likewise.
6673 (val_print_scalar_formatted): Likewise.
6674 (val_print_array_elements): Likewise.
6675 * value.c (set_value_parent): Likewise.
6676 (value_contents_copy_raw): Likewise.
6677 (set_internalvar_component): Likewise.
6678 (value_primitive_field): Likewise.
6679 (value_fetch_lazy): Likewise.
6680 * value.h (read_value_memory): Update comment.
6681
6682 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6683
6684 * value.c (get_value_arch): New function.
6685 * value.h (get_value_arch): New declaration.
6686
6687 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6688
6689 * value.c (struct value): Update comments.
6690
6691 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6692
6693 * gdbtypes.c (type_length_units): New function.
6694 * gdbtypes.h (type_length_units): New declaration.
6695 (struct type) <length>: Update comment.
6696
6697 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6698
6699 * valprint.c (generic_val_print): Factor out complex
6700 printing code to ...
6701 (generic_val_print_complex): ... this new function.
6702
6703 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6704
6705 * valprint.c (generic_val_print): Factor out decfloat
6706 printing code to ...
6707 (generic_val_print_decfloat): ... this new function.
6708
6709 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6710
6711 * valprint.c (generic_val_print): Factor out float
6712 printing code to ...
6713 (generic_val_print_float): ... this new function.
6714
6715 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6716
6717 * valprint.c (generic_val_print): Factor out char
6718 printing code to ...
6719 (generic_val_print_char): ... this new function.
6720
6721 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * valprint.c (generic_val_print): Factor out integer
6724 printing code to ...
6725 (generic_val_print_int): ... this new function.
6726
6727 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6728
6729 * valprint.c (generic_val_print): Factor out bool
6730 printing code to ...
6731 (generic_val_print_bool): ... this new function.
6732
6733 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6734
6735 * valprint.c (generic_val_print): Factor out function/method
6736 printing code to ...
6737 (generic_val_print_func): ... this new function.
6738
6739 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6740
6741 * valprint.c (generic_val_print): Factor out flags
6742 printing code to ...
6743 (generic_val_print_flags): ... this new function.
6744
6745 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6746
6747 * valprint.c (generic_val_print): Factor out enum
6748 printing code to ...
6749 (generic_val_print_enum): ... this new function.
6750
6751 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6752
6753 * valprint.c (generic_val_print): Factor out reference
6754 printing code to ...
6755 (generic_val_print_ref): ... this new function.
6756
6757 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6758
6759 * valprint.c (generic_val_print): Factor out memberptr
6760 printing code to ...
6761 (generic_val_print_memberptr): ... this new function.
6762
6763 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6764
6765 * valprint.c (generic_val_print): Factor out pointer
6766 printing code to ...
6767 (generic_val_print_ptr): ... this new function.
6768
6769 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6770
6771 * valprint.c (generic_val_print): Factor out array
6772 printing code to ...
6773 (generic_val_print_array): ... this new function.
6774
6775 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6776
6777 * valprint.c (generic_val_print): Factor out
6778 print_unpacked_pointer code to ...
6779 (print_unpacked_pointer): ... this new function.
6780
6781 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6782
6783 * event-top.c (handle_sigterm): Don't inspect
6784 target_can_async_p. Always set the quit flag and always mark
6785 the async signal handler.
6786
6787 2015-07-27 Yao Qi <yao.qi@linaro.org>
6788
6789 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6790
6791 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6792
6793 * remote.c (read_ptid): Return null_ptid when no thread id
6794 is found.
6795 (remote_current_thread): Add log warning for malformed
6796 qC reply.
6797 (remote_start_remote): Add log warning when current thread
6798 not found.
6799
6800 2015-07-24 Pedro Alves <palves@redhat.com>
6801
6802 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6803 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6804 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6805
6806 2015-07-24 Pedro Alves <palves@redhat.com>
6807
6808 PR gdb/18717
6809 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6810 is resumed, and extend the debug log.
6811
6812 2015-07-24 Pedro Alves <palves@redhat.com>
6813
6814 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6815
6816 2015-07-24 Pedro Alves <palves@redhat.com>
6817
6818 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6819 sys/ptrace.h.
6820 * alpha-linux-nat.c: Likewise.
6821 * amd64-linux-nat.c: Likewise.
6822 * arm-linux-nat.c: Likewise.
6823 * hppa-linux-nat.c: Likewise.
6824 * i386-linux-nat.c: Likewise.
6825 * ia64-linux-nat.c: Likewise.
6826 * linux-fork.c: Likewise.
6827 * linux-nat.c: Likewise.
6828 * m32r-linux-nat.c: Likewise.
6829 * m68klinux-nat.c: Likewise.
6830 * mips-linux-nat.c: Likewise.
6831 * nat/linux-btrace.c: Likewise.
6832 * nat/linux-ptrace.c: Likewise.
6833 * nat/linux-ptrace.h
6834 * nat/mips-linux-watch.c: Likewise.
6835 * nat/x86-linux-dregs.c: Likewise.
6836 * ppc-linux-nat.c: Likewise.
6837 * s390-linux-nat.c: Likewise.
6838 * spu-linux-nat.c: Likewise.
6839 * tilegx-linux-nat.c: Likewise.
6840 * x86-linux-nat.c: Likewise.
6841 * xtensa-linux-nat.c: Likewise.
6842
6843 2015-07-24 Pedro Alves <palves@redhat.com>
6844
6845 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6846 __ptrace_request as first parameter type instead of int.
6847 (PTRACE_TYPE_ARG1): Define.
6848 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6849 that casts first argument to PTRACE_TYPE_ARG1.
6850 * config.in: Regenerate.
6851 * configure: Regenerate.
6852
6853 2015-07-24 Pedro Alves <palves@redhat.com>
6854
6855 * gdb_ptrace.h: Move ...
6856 * nat/gdb_ptrace.h: ... here.
6857 * inf-ptrace.c: Adjust.
6858
6859 2015-07-24 Pedro Alves <palves@redhat.com>
6860
6861 * acinclude.m4: Include ptrace.m4.
6862 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6863 * ptrace.m4: ... to this new file.
6864
6865 2015-07-23 Doug Evans <dje@google.com>
6866
6867 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6868 (load_cu): Handle dummy CUs.
6869 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6870 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6871
6872 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6873
6874 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6875 documentation to say that it returns a list rather than
6876 a FrozenSet.
6877 (linetable_object_methods): Update the docstring of the
6878 "source_line" entry.
6879
6880 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6881
6882 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6883 type to the recursive call instead of the original (maybe
6884 TYPE_CODE_TYPEDEF) type.
6885
6886 2015-07-23 Yao Qi <yao.qi@linaro.org>
6887
6888 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6889 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6890 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6891
6892 2015-07-21 Yao Qi <yao.qi@linaro.org>
6893
6894 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6895 Move it to nat/aarch64-linux-hw-point.c.
6896 (aarch64_linux_child_post_startup_inferior): Update.
6897 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6898 New function.
6899 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6900 Declare it.
6901
6902 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6903
6904 * common/btrace-common.c (btrace_data_append): Change case label.
6905
6906 2015-07-20 Yao Qi <yao.qi@linaro.org>
6907
6908 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6909 Re-indent the code.
6910 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6911 "unsigned long long".
6912
6913 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6914
6915 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6916 to be set for SEC_ALLOC sections too.
6917
6918 2015-07-17 Yao Qi <yao.qi@linaro.org>
6919
6920 * Makefile.in (HFILES_NO_SRCDIR): Add
6921 nat/aarch64-linux-hw-point.h.
6922 (aarch64-linux-hw-point.o): New rule.
6923 * nat/aarch64-linux-hw-point.h: New file.
6924 * nat/aarch64-linux-hw-point.c: New file.
6925 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6926 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6927 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6928 (AARCH64_HWP_ALIGNMENT): Likewise.
6929 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6930 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6931 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6932 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6933 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6934 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6935 (struct aarch64_debug_reg_state): Likewise.
6936 (struct arch_lwp_info): Likewise.
6937 (aarch64_linux_set_debug_regs): Likewise.
6938 (aarch64_notify_debug_reg_change): Remove static.
6939 (aarch64_align_watchpoint): Likewise.
6940 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6941 (aarch64_watchpoint_length): Likewise.
6942 (aarch64_point_encode_ctrl_reg): Likewise
6943 (aarch64_point_is_aligned): Likewise.
6944 (aarch64_dr_state_insert_one_point): Likewise.
6945 (aarch64_dr_state_remove_one_point): Likewise.
6946 (aarch64_handle_breakpoint): Likewise.
6947 (aarch64_handle_aligned_watchpoint): Likewise.
6948 (aarch64_handle_unaligned_watchpoint): Likewise.
6949 (aarch64_handle_watchpoint): Likewise.
6950 * config/aarch64/linux.mh (NAT_FILE): Add
6951 aarch64-linux-hw-point.o.
6952
6953 2015-07-17 Yao Qi <yao.qi@linaro.org>
6954
6955 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6956 state and don't call aarch64_get_debug_reg_state. All callers
6957 update.
6958 (aarch64_linux_insert_hw_breakpoint): Call
6959 aarch64_get_debug_reg_state earlier.
6960 (aarch64_linux_remove_hw_breakpoint): Likewise.
6961 (aarch64_handle_aligned_watchpoint): Add argument state and
6962 don't call aarch64_get_debug_reg_state. All callers update.
6963 (aarch64_handle_unaligned_watchpoint): Likewise.
6964 (aarch64_handle_watchpoint): Add argument state.
6965 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6966 earlier.
6967 (aarch64_linux_remove_watchpoint): Likewise.
6968
6969 2015-07-17 Yao Qi <yao.qi@linaro.org>
6970
6971 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6972 debug_printf.
6973 (aarch64_handle_unaligned_watchpoint): Likewise.
6974
6975 2015-07-17 Yao Qi <yao.qi@linaro.org>
6976
6977 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6978 argument type's type to 'enum target_hw_bp_type'.
6979 (aarch64_dr_state_remove_one_point): Likewise.
6980 (aarch64_handle_breakpoint): Likewise.
6981 (aarch64_linux_insert_hw_breakpoint): Likewise.
6982 (aarch64_linux_remove_hw_breakpoint): Likewise.
6983 (aarch64_handle_aligned_watchpoint): Likewise.
6984
6985 2015-07-17 Yao Qi <yao.qi@linaro.org>
6986
6987 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6988 ptid_get_pid instead of get_thread_id.
6989
6990 2015-07-17 Yao Qi <yao.qi@linaro.org>
6991
6992 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6993 (add_current_inferior_and_thread): Don't initialise ptid.
6994
6995 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6996
6997 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6998 unavailable if invalid.
6999
7000 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7001
7002 Revert the previous 6 commits:
7003 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7004 Move gdb_regex* to common/
7005 Prepare linux_find_memory_regions_full & co. for move
7006 Move linux_find_memory_regions_full & co.
7007 gdbserver build-id attribute generator
7008 Validate symbol file using build-id
7009
7010 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7011 Jan Kratochvil <jan.kratochvil@redhat.com>
7012
7013 Validate symbol file using build-id.
7014 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
7015 and 'show validate-build-id'. Add build-id attribute.
7016 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
7017 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
7018 * solib-frv.c (_initialize_frv_solib): Ditto.
7019 * solib-spu.c (set_spu_solib_ops): Ditto.
7020 * solib-svr4.c: Include rsp-low.h.
7021 (NOTE_GNU_BUILD_ID_NAME): New define.
7022 (svr4_validate): New function.
7023 (svr4_copy_library_list): Duplicate field build_id.
7024 (library_list_start_library): Parse 'build-id' attribute.
7025 (svr4_library_attributes): Add 'build-id' attribute.
7026 (_initialize_svr4_solib): Assign validate value.
7027 * solib-target.c (solib.h): Include.
7028 (_initialize_solib_target): Assign validate value.
7029 * solib.c (validate_build_id, show_validate_build_id): New.
7030 (solib_map_sections): Use ops->validate.
7031 (clear_so): Free build_id.
7032 (default_solib_validate): New function.
7033 (_initialize_solib): Add "validate-build-id".
7034 * solib.h (default_solib_validate): New declaration.
7035 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
7036 (target_so_ops): New field 'validate'.
7037
7038 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7039 Jan Kratochvil <jan.kratochvil@redhat.com>
7040
7041 gdbserver build-id attribute generator.
7042 * features/library-list-svr4.dtd (library-list-svr4): New
7043 'build-id' attribute.
7044
7045 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7046 Jan Kratochvil <jan.kratochvil@redhat.com>
7047
7048 Move linux_find_memory_regions_full & co.
7049 * linux-tdep.c (nat/linux-maps.h): Include.
7050 (gdb_regex.h): Remove the include.
7051 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
7052 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
7053 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
7054 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
7055 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
7056 and target/target.h.
7057 (struct smaps_vmflags, read_mapping, decode_vmflags)
7058 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
7059 (linux_find_memory_regions_full): Move from linux-tdep.c.
7060 * nat/linux-maps.h (read_mapping): New declaration.
7061 (linux_find_memory_region_ftype, enum filterflags): Moved from
7062 linux-tdep.c.
7063 (linux_find_memory_regions_full): New declaration.
7064 * target.c (target/target-utils.h): Include.
7065 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
7066 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
7067 definitions to target/target-utils.c.
7068 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
7069 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
7070 from target.c.
7071 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
7072 (read_alloc): New declaration.
7073 (read_stralloc_func_ftype): New typedef.
7074 (read_stralloc): New declaration.
7075 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
7076
7077 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7078 Jan Kratochvil <jan.kratochvil@redhat.com>
7079
7080 Prepare linux_find_memory_regions_full & co. for move.
7081 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
7082 (linux_find_memory_regions_full): Change signature and prepare
7083 for moving to linux-maps.
7084 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
7085 (linux_find_memory_regions_thunk): New.
7086 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
7087 (linux_find_memory_regions_gdb): New.
7088 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
7089 (linux_make_mappings_corefile_notes): Use
7090 linux_find_memory_regions_gdb.
7091 * target.c (read_alloc_pread_ftype): New typedef.
7092 (target_fileio_read_alloc_1_pread): New function.
7093 (read_alloc): Refactor from target_fileio_read_alloc_1.
7094 (read_stralloc_func_ftype): New typedef.
7095 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
7096 (read_stralloc): Refactored from target_fileio_read_stralloc.
7097 (target_fileio_read_stralloc): New implementation, use read_stralloc.
7098
7099 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7100
7101 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
7102 common/gdb_regex.h.
7103 (COMMON_OBS): Add gdb_regex.o.
7104 (gdb_regex.o): New.
7105 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
7106 --without-included-regex and USE_INCLUDED_REGEX.
7107 * common/gdb_regex.c: New file from utils.c functions.
7108 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
7109 file wrapping define name.
7110 * configure: Rebuilt.
7111 * configure.ac (gdb_use_included_regex, --without-included-regex)
7112 (USE_INCLUDED_REGEX): Move them to common/common.m4.
7113 * gdb_regex.h: Move it to common/gdb_regex.h.
7114 * utils.c: Remove include gdb_regex.h.
7115 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
7116 (compile_rx_or_error): Move them to common/gdb_regex.c.
7117
7118 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7119 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7122 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
7123 common/target-utils.h.
7124 (COMMON_OBS): Add target-utils.o.
7125 (linux-maps.o, target-utils.o): New.
7126 * target/target-utils.c: New file.
7127 * target/target-utils.h: New file.
7128 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7129 * config/i386/linux64.mh (NATDEPFILES): Ditto.
7130 * nat/linux-maps.c: New file.
7131 * nat/linux-maps.h: New file.
7132
7133 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
7134 Pedro Alves <palves@redhat.com>
7135
7136 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7137 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7138 (perf_event_read_bts): Change the type of SIZE and READ.
7139 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7140 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
7141 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
7142 mmap page.
7143 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
7144 buffer size to UINT_MAX.
7145 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7146 DATA_TAIL.
7147 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7148 <last_head>: Change type.
7149 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7150 * common/btrace-common.c (btrace_data_append): Change the type of
7151 SIZE.
7152 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
7153 check.
7154
7155 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 * gdbtypes.h (CHECK_TYPEDEF): Remove.
7158 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7159 with check_typedef.
7160 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7161 (ada_array_length): Likewise.
7162 (find_parallel_type_by_descriptive_type): Likewise.
7163 (ada_check_typedef): Likewise.
7164 * arm-tdep.c (arm_return_in_memory): Likewise.
7165 * ax-gdb.c (gen_trace_static_fields): Likewise.
7166 (gen_struct_ref_recursive): Likewise.
7167 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7168 (variable: block COLONCOLON name): Likewise.
7169 (qualified_name: TYPENAME COLONCOLON name): Likewise.
7170 * c-lang.c (classify_type): Likewise.
7171 * c-typeprint.c (c_print_type): Likewise.
7172 (c_print_typedef): Likewise.
7173 (c_type_print_base): Likewise.
7174 * c-valprint.c (c_val_print): Likewise.
7175 * compile/compile-c-types.c (convert_type): Likewise.
7176 * compile/compile-object-load.c (get_out_value_type): Likewise.
7177 * completer.c (add_struct_fields): Likewise.
7178 (expression_completer): Likewise.
7179 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7180 (cp_lookup_nested_symbol_1): Likewise.
7181 (cp_lookup_nested_symbol): Likewise.
7182 * cp-valprint.c (cp_print_value_fields): Likewise.
7183 (cp_print_static_field): Likewise.
7184 * d-valprint.c (d_val_print): Likewise.
7185 * eval.c (evaluate_subexp_standard): Likewise.
7186 (evaluate_subexp_for_sizeof): Likewise.
7187 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7188 * f-typeprint.c (f_type_print_base): Likewise.
7189 * f-valprint.c (f_val_print): Likewise.
7190 * gdbtypes.c (get_discrete_bounds): Likewise.
7191 (create_array_type_with_stride): Likewise.
7192 (type_name_no_tag_or_error): Likewise.
7193 (lookup_struct_elt_type): Likewise.
7194 (get_unsigned_type_max): Likewise.
7195 (internal_type_vptr_fieldno): Likewise.
7196 (set_type_vptr_fieldno): Likewise.
7197 (internal_type_vptr_basetype): Likewise.
7198 (set_type_vptr_basetype): Likewise.
7199 (get_vptr_fieldno): Likewise.
7200 (is_integral_type): Likewise.
7201 (is_scalar_type): Likewise.
7202 (is_scalar_type_recursive): Likewise.
7203 (distance_to_ancestor): Likewise.
7204 (is_unique_ancestor_worker): Likewise.
7205 (check_types_equal): Likewise.
7206 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7207
7208 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7209
7210 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7211 also test for language_d.
7212 (dwarf2_compute_name): Likewise.
7213 (read_func_scope): Likewise.
7214 (read_structure_type): Likewise.
7215 (new_symbol_full): Likewise.
7216 (determine_prefix): Likewise.
7217 (read_import_statement): Use dot as the separator for language_d.
7218 (typename_concat): Likewise, but don't prefix the D main function.
7219
7220 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7221
7222 * nat/linux-namespaces.c (setns): Rename from this ...
7223 (do_setns): ... to this. Support calling setns if it exists.
7224 (mnsh_handle_setns): Call do_setns.
7225
7226 2015-07-13 Yao Qi <yao.qi@linaro.org>
7227
7228 * exec.c (exec_file_attach): Add period at the end of error
7229 message.
7230
7231 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7232
7233 * tui/tui-win.c (window_name_completer): New function.
7234 (focus_completer): Call window_name_completer. All old content
7235 moved into window_name_completer.
7236 (winheight_completer): New function.
7237 (_initialize_tui_win): Rename variable. Add completer to
7238 winheight command. Update doc string on winheight.
7239
7240 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7241
7242 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7243 all nios2 mach variants.
7244
7245 2015-07-10 Kevin Buettner <kevinb@redhat.com>
7246
7247 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7248 of target_read_memory.
7249
7250 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7251
7252 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7253 string copy.
7254 (parse_scrolling_args): Likewise.
7255
7256 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7257
7258 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7259 names in this function.
7260
7261 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7262
7263 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7264 (CMD_NAME): Likewise.
7265 (DATA_NAME): Likewise.
7266 (DISASSEM_NAME): Likewise.
7267 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7268 (tui_set_win_height): Likewise.
7269 (parse_scrolling_args): Likewise.
7270
7271 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7272
7273 * record-btrace.c (record_btrace_goto_begin)
7274 (record_btrace_goto_end, record_btrace_goto): Move call to
7275 print_stack_frame ...
7276 (record_btrace_set_replay): ... here. Set stop_pc.
7277 * record-full.c (record_full_goto_entry): Set stop_pc.
7278
7279 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7280
7281 * NEWS: Mention support for tracepoints on aarch64-linux.
7282
7283 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7284
7285 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7286 function. Return 1.
7287 (the_low_target): Install it.
7288
7289 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7290
7291 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7292 * gdb.trace/collection.exp: Likewise.
7293 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7294 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7295 * gdb.trace/report.exp: Likewise.
7296 * gdb.trace/trace-break.exp: Likewise.
7297 * gdb.trace/unavailable.exp: Likewise.
7298 * gdb.trace/while-dyn.exp: Likewise.
7299
7300 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7301
7302 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7303 (aarch64_gen_return_address): New function.
7304 (aarch64_gdbarch_init): Hook it.
7305
7306 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7307
7308 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7309 swallow NOT_AVAILABLE_ERROR.
7310 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7311 available_p is not set.
7312 (aarch64_stub_frame_unwind_stop_reason): New function.
7313 (aarch64_stub_unwind): Install it.
7314
7315 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7316
7317 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7318 field.
7319 (aarch64_make_prologue_cache_1): New function, factored out from
7320 aarch64_make_prologue_cache. Do not allocate cache. Set
7321 available_p.
7322 (aarch64_make_prologue_cache): Reimplement wrapping
7323 aarch64_make_prologue_cache_1, and swallowing
7324 NOT_AVAILABLE_ERROR.
7325 (aarch64_prologue_frame_unwind_stop_reason): New function.
7326 Return UNWIND_UNAVAILABLE if available_p is not set.
7327 (aarch64_prologue_unwind): Install it.
7328 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7329 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7330 frame_id_build_unavailable_stack if available_p is not set.
7331
7332 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7333
7334 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7335 fields.
7336 (aarch64_scan_prologue): Set prev_pc.
7337 (aarch64_make_prologue_cache): Set func.
7338 (aarch64_make_stub_cache): Set prev_pc.
7339 (aarch64_prologue_this_id): Remove local variables id, pc and
7340 func. Read prev_pc and func from cache.
7341 (aarch64_stub_this_id): Read prev_pc from cache.
7342
7343 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7344
7345 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7346 argument this_cache. Remove unused local variables reg and
7347 unwound_fp. Return early if this_cache is already set. Set
7348 this_cache.
7349 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7350
7351 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7352
7353 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7354 New argument this_cache. Return early if this_cache is already
7355 set. Set this_cache.
7356 (aarch64_prologue_this_id): Update call to
7357 aarch64_make_prologue_cache.
7358 (aarch64_prologue_prev_register): Likewise.
7359 (aarch64_normal_frame_base): Likewise.
7360
7361 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7362
7363 * c-valprint.c (c_val_print): Factor out memberptr printing code
7364 from c_val_print to ...
7365 (c_val_print_memberptr): ... this new function.
7366
7367 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7368
7369 * c-valprint.c (c_val_print): Factor out int printing code to ...
7370 (c_val_print_int): ... this new function.
7371
7372 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7373
7374 * c-valprint.c (c_val_print): Factor out struct and union
7375 printing code to ...
7376 (c_val_print_struct): ... this new function ...
7377 (c_val_print_union): ... and this new function.
7378
7379 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7380
7381 * c-valprint.c (c_val_print): Factor out pointer printing code
7382 to ...
7383 (c_val_print_ptr): ... this new function.
7384
7385 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7386
7387 * c-valprint.c (c_valprint): Factor our array printing code from
7388 c_val_print to ...
7389 (c_val_print_array): ... this new function.
7390
7391 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7392
7393 * c-valprint.c (c_val_print): Factor out pointer printing code
7394 to ...
7395 (print_unpacked_pointer): ... this new function.
7396
7397 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7398
7399 * c-valprint.c (c_val_print): Remove an assignment to i and move
7400 its declaration.
7401
7402 2015-07-09 Yao Qi <yao.qi@linaro.org>
7403
7404 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7405 argument ptid. Update comments. Caller update.
7406
7407 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7408
7409 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7410 mnt packets.
7411
7412 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7413
7414 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7415
7416 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7417
7418 * progspace.c (delete_program_space): Add missing spaces.
7419
7420 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7421
7422 * inferior.c (delete_inferior_1): Rename to ...
7423 (delete_inferior): ..., remove 'silent' parameter, delete
7424 program space when unused and remove call to prune_program_spaces.
7425 Remove the old, unused, delete_inferior.
7426 (delete_inferior_silent): Remove.
7427 (prune_inferiors): Change call from delete_inferior_1 to
7428 delete_inferior and remove 'silent' parameter. Remove call to
7429 prune_program_spaces.
7430 (remove_inferior_command): Idem.
7431 * inferior.h (delete_inferior_1): Rename to...
7432 (delete_inferior): ..., remove 'silent' parameter and remove the
7433 original delete_inferior.
7434 (delete_inferior_silent): Remove.
7435 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7436 delete_inferior_1 to delete_inferior and remove 'silent'
7437 parameter.
7438 * progspace.c (prune_program_spaces): Remove.
7439 (pspace_empty_p): Rename to...
7440 (program_space_empty_p): ... and make non-static.
7441 (delete_program_space): New.
7442 * progspace.h (prune_program_spaces): Remove declaration.
7443 (program_space_empty_p): New declaration.
7444 (delete_program_space): New declaration.
7445 * monitor.c (monitor_close): Replace call to
7446 delete_thread_silent and delete_inferior_silent with
7447 discard_all_inferiors.
7448
7449 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7450
7451 * defs.h (deprecated_register_changed_hook): Remove prototype.
7452 * interps.c (clear_iterpreter_hooks): Remove reference to
7453 deprecated_register_changed_hook.
7454 * top.c (deprecated_register_changed_hook): Remove prototype.
7455 * valops.c (value_assign): Remove reference to
7456 deprecated_register_changed_hook.
7457 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7458 Add comment documenting the function.
7459 (tui_register_changed_observer): Define.
7460 (tui_install_hooks): Remove reference to
7461 deprecated_register_changed_hook. Set
7462 tui_register_changed_observer.
7463 (tui_remove_hooks): Remove reference to
7464 deprecated_register_changed_hook. Unset
7465 tui_register_changed_observer.
7466
7467 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7468
7469 PR compile/18484
7470 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7471
7472 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
7473
7474 PR exp/18617
7475 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7476
7477 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7478
7479 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7480
7481 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7482
7483 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7484 Use safe_strerror() instead of strerror().
7485
7486 2015-07-07 Yao Qi <yao.qi@linaro.org>
7487
7488 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7489 * features/arm-with-m-fpa-layout.c: Regenerated.
7490 * features/arm-with-m-vfp-d16.xml: Likewise.
7491 * features/arm-with-m-vfp-d16.c: Regenerated.
7492 * features/arm-with-m.xml: Likewise.
7493 * features/arm-with-m.c: Regenerated.
7494 * features/arm-with-neon.xml: Likewise.
7495 * features/arm-with-neon.c: Regenerated.
7496 * features/arm-with-vfpv2.xml: Likewise.
7497 * features/arm-with-vfpv2.c: Regenerated.
7498 * features/arm-with-vfpv3.xml: Likewise.
7499 * features/arm-with-vfpv3.c: Regenerated.
7500
7501 2015-07-07 Yao Qi <yao.qi@linaro.org>
7502
7503 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7504 arm-linux-nat.c.
7505 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7506 elf/external.h.
7507 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7508 if target is 32-bit.
7509 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7510 if target is 32-bit.
7511 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7512 if target is 32-bit.
7513 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7514 if target is 32-bit.
7515 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7516 (aarch64_linux_read_description): Return the right target
7517 description.
7518 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7519 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7520 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7521 arm-linux-tdep.o.
7522
7523 2015-07-07 Yao Qi <yao.qi@linaro.org>
7524
7525 * aarch32-linux-nat.c: New file.
7526 * aarch32-linux-nat.h: New file.
7527 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7528 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7529 aarch32_gp_regcache_supply.
7530 (store_regs): Move code to aarch32-linux-nat.c. Call
7531 aarch32_gp_regcache_collect.
7532 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7533 aarch32_vfp_regcache_supply.
7534 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7535 aarch32_vfp_regcache_collect.
7536 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7537
7538 2015-07-07 Yao Qi <yao.qi@linaro.org>
7539
7540 * arm-linux-nat.c (store_fpregister): Remove.
7541 (store_register): Likewise.
7542 (fetch_fpregister): Likewise.
7543 (fetch_register): Likewise.
7544 (arm_linux_store_inferior_registers): Call store_regs and
7545 store_fpregs instead.
7546 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7547 fetch_regs instead.
7548
7549 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7550
7551 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7552 and focus commands.
7553
7554 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7555
7556 * NEWS: Create a new section for the next release branch.
7557 Rename the section of the current branch, now that it has
7558 been cut.
7559
7560 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7561
7562 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7563 * version.in: Bump version to 7.10.50.DATE-cvs.
7564
7565 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7566
7567 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7568 breakpoints in a special way.
7569 (remove_breakpoint): Likewise.
7570 (mark_breakpoints_out): Likewise.
7571
7572 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7573
7574 * doc/gdb.texinfo (TUI): Add comma after @xref.
7575
7576 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7577
7578 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7579 instead of casting the structure type.
7580
7581 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7582
7583 * valops.c (search_struct_field): Remove OFFSET parameter.
7584 (value_cast_structs): Adjust calls to search_struct_field.
7585 (value_struct_elt): Same.
7586 (find_overload_match): Same.
7587
7588 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7589
7590 * value.c (value_fetch_lazy): Update comment, change return
7591 value to void.
7592 * value.h (value_fetch_lazy): Change return value to void.
7593
7594 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7597 (tui_win_name): Make parameter and result const.
7598 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7599
7600 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7601
7602 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7603 use printf_unfiltered.
7604 (set_mpx_cmd): Add missing trailing space to command string
7605 literal.
7606 (_initialize_i386_tdep): Give the "mpx" prefix command its
7607 correct name.
7608
7609 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7610
7611 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7612 (enum rx_frame_type): New.
7613 (struct rx_prologue): Add new field `frame_type'.
7614 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7615 parameter in the prologue struct. Add code for recording
7616 locations of PC and PSW for fast interrupt and exception frames.
7617 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7618 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7619 (rx_frame_type): New function.
7620 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7621 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7622 `this_cache'.
7623 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7624 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7625 RX_FRAME_TYPE_FAST_INTERRUPT.
7626 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7627 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7628 (rx_frame_unwind): Use rx_frame_sniffer instead of
7629 default_frame_sniffer.
7630 (rx_frame_unwind): New unwinder.
7631 (rx_gdbarch_init): Register new unwinder.
7632
7633 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7634
7635 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7636 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7637 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7638 and RX_FPSW_REGNUM.
7639 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7640
7641 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7642
7643 Fix GCC false warning.
7644 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7645
7646 2015-07-02 Yao Qi <yao.qi@linaro.org>
7647
7648 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7649 typo in the debugging message.
7650
7651 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7652
7653 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7654 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7655 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7656 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7657 (btrace_maint_clear): New.
7658 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7659 (pt_print_packet, btrace_maint_decode_pt)
7660 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7661 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7662 (maint_btrace_packet_history_cmd)
7663 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7664 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7665 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7666 (maint_info_btrace_cmd, _initialize_btrace): New.
7667 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7668 (btrace_maint_packet_history, btrace_maint_info): New.
7669 (btrace_thread_info) <maint>: New.
7670 * NEWS: Announce it.
7671
7672 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7673
7674 * btrace.c (btrace_fetch): Append the new trace data.
7675 (btrace_clear): Clear the stored trace data.
7676 * btrace.h (btrace_thread_info) <data>: New.
7677 * common/btrace-common.h (btrace_data_clear)
7678 (btrace_data_append): New.
7679 * common/btrace-common.c (btrace_data_clear)
7680 (btrace_data_append): New.
7681
7682 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7683
7684 * nat/linux-btrace.c (linux_enable_bts): Check for
7685 PERF_ATTR_SIZE_VER5.
7686 Check for data_offset and data_size fields. Use them.
7687
7688 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7689
7690 * NEWS: Announce new commands "record btrace pt" and "record pt".
7691 Announce new options "set|show record btrace pt buffer-size".
7692 * btrace.c: Include "rsp-low.h".
7693 Include "inttypes.h".
7694 (btrace_add_pc): Add forward declaration.
7695 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7696 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7697 (btrace_compute_ftrace_pt): New.
7698 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7699 (check_xml_btrace_version): Update version check.
7700 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7701 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7702 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7703 (btrace_pt_children): New.
7704 (btrace_children): Add support for "pt".
7705 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7706 (btrace_conf_children): Add support for "pt".
7707 * btrace.h: Include "intel-pt.h".
7708 (btrace_pt_error): New.
7709 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7710 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7711 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7712 (struct btrace_config_pt): New.
7713 (struct btrace_config)<pt>: New.
7714 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7715 (struct btrace_data)<pt>: New.
7716 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7717 (pt): New.
7718 * features/btrace.dtd (btrace)<pt>: New.
7719 (pt, pt-config, cpu): New.
7720 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7721 (perf_event_pt_event_type, kernel_supports_pt)
7722 (linux_supports_pt): New.
7723 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7724 (linux_enable_bts): Free tinfo on error.
7725 (linux_enable_pt): New.
7726 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7727 (linux_disable_pt): New.
7728 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7729 (linux_fill_btrace_pt_config, linux_read_pt): New.
7730 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7731 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7732 (struct btrace_target_info)<pt>: New.
7733 * record-btrace.c (set_record_btrace_pt_cmdlist)
7734 (show_record_btrace_pt_cmdlist): New.
7735 (record_btrace_print_pt_conf): New.
7736 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7737 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7738 (cmd_record_btrace_pt_start): New.
7739 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7740 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7741 (_initialize_record_btrace): Add new commands.
7742 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7743 (remote_protocol_features): Add "Qbtrace:pt".
7744 Add "Qbtrace-conf:pt:size".
7745 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7746 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7747 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7748 (_initialize_remote): Add new commands.
7749
7750 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7751
7752 * configure.ac: check for libipt
7753 * configure: Regenerate.
7754 * config.in: Regenerate.
7755 * Makefile.in (LIBIPT): New.
7756 (CLIBS): Add $LIBIPT.
7757 * NEWS: document new configure options
7758
7759 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7760
7761 * compile/compile-object-load.c (compile_object_load): Replace debug
7762 message "lookup undefined ELF symbol" by 3 more specific messages.
7763
7764 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7765
7766 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7767 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7768 (rl78_gdbarch_init): Initialize rl78_psw_type.
7769
7770 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7771
7772 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7773 Update commentary. Always refresh the registers when frame
7774 information has changed.
7775 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7776 Change return type to int. Return 1 if frame information has
7777 changed, 0 otherwise.
7778 (tui_before_prompt): Update commentary.
7779 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7780 int.
7781
7782 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7783
7784 PR tui/13378
7785 * frame.c (select_frame): Remove reference to
7786 deprecated_selected_frame_level_changed_hook.
7787 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7788 declaration.
7789 * stack.c (deprecated_selected_frame_level_changed_hook):
7790 Likewise.
7791 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7792 Rename to ...
7793 (tui_refresh_frame_and_register_information): ... this. Bail
7794 out if there is no stack. Don't update register information
7795 unless registers_too_p is true.
7796 (tui_print_frame_info_listing_hook): Rename to ...
7797 (tui_dummy_print_frame_info_listing_hook): ... this.
7798 (tui_before_prompt): New function.
7799 (tui_normal_stop): New function.
7800 (tui_before_prompt_observer): New observer.
7801 (tui_normal_stop_observer): New observer.
7802 (tui_install_hooks): Set
7803 deprecated_print_frame_info_listing_hook to
7804 tui_dummy_print_frame_info_listing_hook. Register
7805 tui_before_prompt_observer to call tui_before_prompt and
7806 tui_normal_stop_observer to call tui_normal_stop. Remove
7807 reference to deprecated_selected_frame_level_changed_hook.
7808 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7809 and tui_normal_stop_observer. Remove reference to
7810 deprecated_selected_frame_level_changed_hook.
7811
7812 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7813
7814 PR tui/13378
7815 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7816 return an int instead of void. Return whether the locator
7817 window has changed.
7818 (tui_show_frame_info): If the locator info has not changed, then
7819 bail out early to avoid refreshing the windows.
7820
7821 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7822
7823 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7824 LOCATOR_WIN to tui_alloc_content.
7825
7826 2015-06-30 Yao Qi <yao.qi@linaro.org>
7827
7828 PR tdep/18605
7829 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7830 instructions.
7831
7832 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7833
7834 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7835 (rx_dwarf_reg_to_regnum): New function.
7836 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7837 unwinding.
7838
7839 2015-06-29 Pedro Alves <palves@redhat.com>
7840
7841 PR threads/18127
7842 * infcall.c (run_inferior_call): On infcall success, if the thread
7843 was marked stopped before, reset it back to stopped.
7844 * infrun.c (resume): Don't suppress the set_running calls when
7845 doing an infcall.
7846 (normal_stop): Only discard the finish_thread_state cleanup if the
7847 infcall succeeded.
7848
7849 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7850
7851 * MAINTAINERS (Write After Approval): Update my email address.
7852
7853 2015-06-26 Keith Seitz <keiths@redhat.com>
7854 Doug Evans <dje@google.com>
7855
7856 PR 16253
7857 * block.c (block_lookup_symbol): For non-function blocks,
7858 continue to search for a symbol with an exact domain match
7859 Otherwise, return any previously found "best domain" symbol.
7860 (block_lookup_symbol_primary): Likewise.
7861
7862 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7863
7864 * NEWS: Mention the new option "history remove-duplicates".
7865 * top.c (history_remove_duplicates): New static variable.
7866 (show_history_remove_duplicates): New static function.
7867 (gdb_add_history): Conditionally remove duplicate history
7868 entries.
7869 (init_main): Add "history remove-duplicates" option.
7870
7871 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7872
7873 * tui/tui-win.c (focus_completer): New static function.
7874 (_initialize_tui_win): Set the completion function of the
7875 "focus" command to focus_completer.
7876
7877 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7878
7879 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7880 and language_asm..
7881 * symtab.c (find_function_start_sal): Likewise.
7882
7883 2015-06-25 Gary Benson <gbenson@redhat.com>
7884
7885 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7886 it is the empty string after trailing slashes have been stripped.
7887
7888 2015-06-25 Gary Benson <gbenson@redhat.com>
7889
7890 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7891 * infrun.c (follow_exec): Likewise.
7892 * remote.c (remote_filesystem_is_local): Likewise.
7893 * solib.c (solib_find_1): Likewise.
7894
7895 2015-06-24 Keith Seitz <keiths@redhat.com>
7896
7897 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7898 return value from lrealpath.
7899
7900 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7901
7902 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7903
7904 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7905
7906 * remote-sim.c: Include gdb_bfd.h.
7907 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7908 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7909
7910 2015-06-24 Yao Qi <yao.qi@linaro.org>
7911
7912 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7913 set_gdbarch_get_siginfo_type.
7914 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7915 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7916 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7917 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7918 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7919 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7920 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7921 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7922 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7923 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7924
7925 2015-06-24 Gary Benson <gbenson@redhat.com>
7926
7927 * common/buffer.c (stdint.h): Do not include.
7928 * common/print-utils.c (stdint.h): Likewise.
7929 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7930 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7931 * ft32-tdep.c (gdb_assert.h): Likewise.
7932 * guile/scm-utils.c (stdint.h): Likewise.
7933 * i386-linux-tdep.c (stdint.h): Likewise.
7934 * i386-tdep.c (stdint.h): Likewise.
7935 * nat/linux-btrace.c (stdint.h): Likewise.
7936 * nat/linux-btrace.h (stdint.h): Likewise.
7937 * nat/linux-ptrace.c (stdint.h): Likewise.
7938 * nat/mips-linux-watch.h (stdint.h): Likewise.
7939 * ppc-linux-nat.c (stdint.h): Likewise.
7940 * python/python-internal.h (stdint.h): Likewise.
7941 * stub-termcap.c (stdlib.h): Likewise.
7942 * target/target.h (stdint.h): Likewise.
7943 * xtensa-linux-nat.c (stdint.h): Likewise.
7944
7945 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7946
7947 * top.c (init_history): Look at errno after calling strtol to
7948 properly map large GDBHISTSIZE values to infinity.
7949
7950 2015-06-23 Doug Evans <dje@google.com>
7951
7952 * inferior.h (struct inferior_suspend_state): Delete, unused.
7953 All references deleted.
7954
7955 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7956
7957 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7958 (microblaze_push_dummy_call): Likewise.
7959 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7960 and set_gdbarch_push_dummy_call.
7961
7962 2015-06-23 Yao Qi <yao.qi@linaro.org>
7963
7964 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7965 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7966 (amd64_linux_store_inferior_registers): Likewise.
7967 * arm-linux-nat.c (fetch_fpregister): Likewise.
7968 (fetch_fpregs, store_fpregister): Likewise.
7969 (store_fpregister, store_fpregs): Likewise.
7970 (fetch_register, fetch_regs): Likewise.
7971 (store_register, store_regs): Likewise.
7972 (fetch_vfp_regs, store_vfp_regs): Likewise.
7973 (arm_linux_read_description): Check have_ptrace_getregset is
7974 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7975 or TRIBOOL_FALSE.
7976 * i386-linux-nat.c (fetch_xstateregs): Check
7977 have_ptrace_getregset is not TRIBOOL_TRUE.
7978 (store_xstateregs): Likewise.
7979 * linux-nat.c (have_ptrace_getregset): Change its type to
7980 enum tribool.
7981 * linux-nat.h (tribool): New enum.
7982 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7983 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7984
7985 2015-06-19 Doug Evans <dje@google.com>
7986
7987 * NEWS: Mention Sun's version of stabs is no longer supported.
7988 * elfread.c (free_elfinfo): Delete. All uses updated.
7989 (elfstab_offset_sections): Delete. All uses updated.
7990 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7991 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7992 All uses updated.
7993 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7994 All callers updated.
7995
7996 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7997
7998 * common/rsp-low.c (needs_escaping): New.
7999 (remote_escape_output): Add unit_size parameter. Refactor to
8000 support multi-byte addressable units. Rename parameters.
8001 * common/rsp-low.h (remote_escape_output): Add unit_size
8002 parameter and rename others. Update doc.
8003 * remote.c (align_for_efficient_write): New.
8004 (remote_write_bytes_aux): Add unit_size parameter and use it.
8005 Rename some variables. Update doc.
8006 (remote_xfer_partial): Get unit size and use it.
8007 (remote_read_bytes_1): Add unit_size parameter and use it.
8008 Rename some variables. Update doc.
8009 (remote_write_bytes): Same.
8010 (remote_xfer_live_readonly_partial): Same.
8011 (remote_read_bytes): Same.
8012 (remote_flash_write): Update call to remote_write_bytes_aux.
8013 (remote_write_qxfer): Update call to remote_escape_output.
8014 (remote_search_memory): Same.
8015 (remote_hostio_pwrite): Same.
8016
8017 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
8018
8019 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8020 locations as inserted.
8021 Update and expand comment about permanent locations.
8022 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8023 Move comment to add_location_to_breakpoint.
8024 (update_global_location_list): Don't error out if a permanent
8025 breakpoint is not marked inserted.
8026 Don't error out if a non-permanent breakpoint location is inserted on
8027 top of a permanent breakpoint.
8028
8029 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
8030
8031 * breakpoint.c (make_breakpoint_permanent): Remove unused
8032 function.
8033 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8034
8035 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8036
8037 PR gdb/16999
8038 * NEWS: Mention new GDBHISTSIZE behavior.
8039 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8040 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
8041
8042 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8043
8044 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8045 * top.c (init_history): Read from GDBHISTSIZE instead of
8046 HISTSIZE.
8047 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8048
8049 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8050
8051 * top.c (gdb_safe_append_history): Do not call
8052 history_truncate_file if the history is not stifled.
8053
8054 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8055
8056 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8057 * syscalls/s390x-linux.xml: Likewise.
8058
8059 2015-06-16 Michael Eager <eager@eagercon.com>
8060
8061 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8062
8063 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
8064
8065 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8066 target_terminal_ours_for_output() before calling
8067 tui_show_frame_info(), and restore the original terminal
8068 settings afterwards.
8069
8070 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
8071
8072 * arm-linux-nat.c: Include nat/linux-ptrace.h.
8073
8074 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8075
8076 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8077 memory unit size.
8078 (mi_cmd_data_write_memory_bytes): Same.
8079
8080 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8081
8082 * corefile.c (write_memory): Update doc.
8083 * gdbcore.h (write_memory): Same.
8084
8085 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8086
8087 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8088 (dump_mapping_p): Use it for parameter filterflags.
8089 (linux_find_memory_regions_full): Use it for variable filterflags.
8090
8091 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8092 Jan Kratochvil <jan.kratochvil@redhat.com>
8093
8094 Merge multiple hex conversions.
8095 * monitor.c: Include rsp-low.h.
8096 (fromhex): Remove definition.
8097
8098 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8099 Jan Kratochvil <jan.kratochvil@redhat.com>
8100
8101 Move utility functions to common/.
8102 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8103 Move defs to common/common-utils.c.
8104 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8105 (skip_to_space_const): Move decls to common/common-utils.h.
8106 * common/common-defs.h: Move include of common-types.h before
8107 common-utils.h.
8108 * common/common-utils.c: Include host-defs.h and ctype.h.
8109 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8110 from utils.c.
8111 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8112 cli/cli-utils.c.
8113 * common/common-utils.h (strtoulst): Move decl from utils.h.
8114 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8115 Move from cli/cli-utils.h.
8116 * common/host-defs.h: Include limits.h.
8117 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8118 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8119 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8120 common/common-utils.h.
8121 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8122 (strtoulst): Move to common/common-utils.c.
8123 * utils.h (strtoulst): Moved decl to common/common-utils.h.
8124
8125 2015-06-15 Yao Qi <yao.qi@linaro.org>
8126
8127 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8128
8129 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
8130
8131 * build-id.c: Don't include elf-bfd.h.
8132 (build_id_bfd_get): Use bfd_build_id.
8133 (build_id_verify): Ditto.
8134 * build-id.h: Ditto.
8135 (find_separate_debug_file_by_buildid): Ditto.
8136 * python/py-objfile.c: Don't include elf-bfd.h.
8137 (objfpy_get_build_id) Use bfd_build_id.
8138 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8139 * coffread.c: Include build-id.h.
8140 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8141
8142 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8143
8144 * windows-nat.c (do_windows_fetch_inferior_registers)
8145 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8146 conditional with __CYGWIN__.
8147
8148 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
8149
8150 * completer.c: Add arch-utils.h include.
8151 (enum reg_completer_targets): New enum.
8152 (reg_or_group_completer_1): New function containing old
8153 reg_or_group_completer, add and use new parameter to control what
8154 is completed on. Use get_current_arch rather than architecture of
8155 currently selected frame.
8156 (reg_or_group_completer): Call new reg_or_group_completer_1.
8157 (reggroup_completer): Call new reg_or_group_completer_1.
8158 * completer.h (reggroup_completer): Add declaration.
8159 * tui/tui-regs.c: Add 'completer.h' include.
8160 (tui_reg_next_command): Renamed to...
8161 (tui_reg_next): ...this. Adjust parameters and return rather than
8162 display new group.
8163 (tui_reg_prev_command): Renamed to...
8164 (tui_reg_prev): ...this. Adjust parameters and return rather than
8165 display new group.
8166 (tui_reg_float_command): Delete.
8167 (tui_reg_general_command): Delete.
8168 (tui_reg_system_command): Delete.
8169 (tui_reg_command): Rewrite to perform switching of register group.
8170 Add header comment.
8171 (tuireglist): Remove.
8172 (tui_reggroup_completer): New function.
8173 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8174 creation of 'tui reg' command.
8175 * NEWS: Add comment about 'tui reg' changes.
8176
8177 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8178
8179 * target.c (target_read): Consider addressable unit size when
8180 reading from a memory object.
8181 (read_memory_robust): Same.
8182 (read_whatever_is_readable): Same.
8183 (target_write_with_progress): Consider addressable unit size
8184 when writing to a memory object.
8185 * target.h (target_read): Update documentation.
8186 (target_write): Add documentation.
8187
8188 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8189
8190 * arch-utils.h (default_addressable_memory_unit_size): New.
8191 * arch-utils.c (default_addressable_memory_unit_size): New.
8192 * gdbarch.sh (addressable_memory_unit_size): New.
8193 * gdbarch.h: Re-generate.
8194 * gdbarch.c: Re-generate.
8195
8196 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8197
8198 * target.c (target_read): Rename variables and use
8199 TARGET_XFER_E_IO.
8200 (target_read_with_progress): Same.
8201 (read_memory_robust): Constify parameters and rename
8202 variables.
8203 (read_whatever_is_readable): Constify parameters,
8204 rename variables, adjust formatting.
8205 * target.h (read_memory_robust): Constify parameters.
8206
8207 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
8208
8209 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8210 synthetic (non-AltiVec) vector types.
8211 (ppc64_sysv_abi_return_value): Likewise.
8212
8213 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8214
8215 PR breakpoints/16465
8216 * breakpoint.c (create_breakpoint): Save extra_string for
8217 pending breakpoints.
8218
8219 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8220
8221 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8222 and bt_mask to CORE_ADDR.
8223
8224 2015-06-11 Gary Benson <gbenson@redhat.com>
8225
8226 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8227 (mnsh_recv_message): Likewise.
8228
8229 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8230
8231 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8232 long long int and plongest instead of %ll.
8233
8234 2015-06-11 Gary Benson <gbenson@redhat.com>
8235
8236 * nat/linux-namespaces.c (gdb_wait.h): New include.
8237 (sys/wait.h): Do not include.
8238
8239 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8240
8241 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8242 end_sequence is true.
8243
8244 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8245
8246 Code cleanup.
8247 * solib-target.c (library_list_start_list): Use explicit NULL
8248 comparison.
8249
8250 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8251
8252 * solib-target.c (library_list_start_list): Do not dereference
8253 variable version in its initialization. Make the VERSION check handle
8254 NULL.
8255 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8256
8257 2015-06-10 Gary Benson <gbenson@redhat.com>
8258
8259 * NEWS: Announce support for direct access of executable and
8260 shared library files when attaching to inferiors in containers
8261 on GNU/Linux systems.
8262
8263 2015-06-10 Gary Benson <gbenson@redhat.com>
8264
8265 * remote.c (struct remote_state) <fs_pid>: New field.
8266 (new_remote_state): Initialize the above.
8267 (PACKET_vFile_setfs): New enum value.
8268 (remote_hostio_set_filesystem): New function.
8269 (remote_hostio_open): Call the above.
8270 (remote_hostio_unlink): Likewise.
8271 (remote_hostio_readlink): Likewise.
8272 (_initialize_remote): Register new "set/show remote
8273 hostio-setfs-packet" command.
8274 * NEWS: Announce new vFile:setfs packet.
8275
8276 2015-06-10 Gary Benson <gbenson@redhat.com>
8277
8278 * linux-nat.c (nat/linux-namespaces.h): New include.
8279 (fileio.h): Likewise.
8280 (linux_nat_filesystem_is_local): New function.
8281 (linux_nat_fileio_pid_of): Likewise.
8282 (linux_nat_fileio_open): Likewise.
8283 (linux_nat_fileio_readlink): Likewise.
8284 (linux_nat_fileio_unlink): Likewise.
8285 (linux_nat_add_target): Initialize to_filesystem_is_local,
8286 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8287 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8288 commands.
8289 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8290
8291 2015-06-10 Gary Benson <gbenson@redhat.com>
8292
8293 * target.h (struct inferior): New forward declaration.
8294 (struct target_ops) <to_filesystem_is_local>: Update comment.
8295 (struct target_ops) <to_fileio_open>: New argument inf.
8296 Update comment. All implementations updated.
8297 (struct target_ops) <to_fileio_unlink>: Likewise.
8298 (struct target_ops) <to_fileio_readlink>: Likewise.
8299 (target_filesystem_is_local): Update comment.
8300 (target_fileio_open): New argument inf. Update comment.
8301 (target_fileio_unlink): Likewise.
8302 (target_fileio_readlink): Likewise.
8303 (target_fileio_read_alloc): Likewise.
8304 (target_fileio_read_stralloc): Likewise.
8305 * target.c (target_fileio_open): New argument inf.
8306 Pass inf to implementation. Update debug printing.
8307 (target_fileio_unlink): Likewise.
8308 (target_fileio_readlink): Likewise.
8309 (target_fileio_read_alloc_1): New argument inf. Pass inf
8310 to target_fileio_open.
8311 (target_fileio_read_alloc): New argument inf. Pass inf to
8312 target_fileio_read_alloc_1.
8313 (target_fileio_read_stralloc): Likewise.
8314 * gdb_bfd.c (inferior.h): New include.
8315 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8316 argument with new argument "inferior". Pass inferior to
8317 target_fileio_open.
8318 (gdb_bfd_open): Supply inferior argument to
8319 gdb_bfd_iovec_fileio_open.
8320 * linux-tdep.c (linux_info_proc): Supply inf argument to
8321 relevant target_fileio calls.
8322 (linux_find_memory_regions_full): Likewise.
8323 (linux_fill_prpsinfo): Likewise.
8324 * remote.c (remote_filesystem_is_local): Supply inf
8325 argument to remote_hostio_open.
8326 (remote_file_put): Likewise.
8327 (remote_file_get): Likewise.
8328 (remote_file_delete): Supply inf argument to
8329 remote_hostio_unlink.
8330
8331 2015-06-10 Gary Benson <gbenson@redhat.com>
8332
8333 * inf-child.c (inf_child_fileio_open): Replace comment.
8334 (inf_child_fileio_pwrite): Likewise.
8335 (inf_child_fileio_pread): Likewise.
8336 (inf_child_fileio_fstat): Insert blank line before comment.
8337 (inf_child_fileio_close): Replace comment.
8338 (inf_child_fileio_unlink): Likewise.
8339 (inf_child_fileio_readlink): Likewise.
8340 * remote.c (remote_hostio_open): Likewise.
8341 (remote_hostio_pread): Likewise.
8342 (remote_hostio_pwrite): Likewise.
8343 (remote_hostio_close): Likewise.
8344 (remote_hostio_unlink): Likewise.
8345 (remote_hostio_readlink): Likewise.
8346 (remote_hostio_fstat): Likewise.
8347 (remote_filesystem_is_local): Likewise.
8348 * target.c (target_fileio_open): Likewise.
8349 (target_fileio_pwrite): Likewise.
8350 (target_fileio_pread): Likewise.
8351 (target_fileio_fstat): Insert blank line before comment.
8352 (target_fileio_close): Replace comment.
8353 (target_fileio_unlink): Likewise.
8354 (target_fileio_readlink): Likewise.
8355 (target_fileio_read_alloc): Likewise.
8356 (target_fileio_read_stralloc): Likewise.
8357
8358 2015-06-10 Gary Benson <gbenson@redhat.com>
8359
8360 * linux-thread-db.c (nat/linux-namespaces.h): New include.
8361 (check_pid_namespace_match): Use linux_ns_same rather than
8362 linux_proc_pid_get_ns to spot PID namespace mismatches.
8363 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
8364 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
8365
8366 2015-06-10 Gary Benson <gbenson@redhat.com>
8367
8368 * configure.ac (AC_CHECK_FUNCS): Add setns.
8369 * config.in: Regenerate.
8370 * configure: Likewise.
8371 * nat/linux-namespaces.h: New file.
8372 * nat/linux-namespaces.c: Likewise.
8373 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
8374 (linux-namespaces.o): New rule.
8375 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
8376 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8377 * config/arm/linux.mh (NATDEPFILES): Likewise.
8378 * config/i386/linux.mh (NATDEPFILES): Likewise.
8379 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8380 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8381 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8382 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8383 * config/mips/linux.mh (NATDEPFILES): Likewise.
8384 * config/pa/linux.mh (NATDEPFILES): Likewise.
8385 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8386 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8387 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8388 * config/s390/linux.mh (NATDEPFILES): Likewise.
8389 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8390 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8391 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8392 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8393
8394 2015-06-10 Gary Benson <gbenson@redhat.com>
8395
8396 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8397 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8398 (make_cleanup_close): Likewise.
8399 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8400 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8401 (make_cleanup_close): Likewise.
8402
8403 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8404
8405 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8406 from SuspendThread().
8407
8408 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8409
8410 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8411 from OutputDebugString.
8412
8413 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8414 Mircea Gherzan <mircea.gherzan@intel.com>
8415
8416 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8417 MPX_BT_MASK_32): New macros.
8418 (i386_mpx_set_bounds): New function that implements
8419 the command "set-mpx-bound".
8420 (i386_mpx_enabled): Helper function to test MPX availability.
8421 (i386_mpx_bd_base): Helper function to calculate the base directory
8422 address.
8423 (i386_mpx_get_bt_entry): Helper function to access a bound
8424 table entry.
8425 (i386_mpx_print_bounds): Effectively display bound information.
8426 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8427 "show mpx".
8428 (_initialize_i386_tdep):
8429 Add "bound" to the commands "show mpx" and "set mpx" commands.
8430 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8431 and "show mpx" commands.
8432 * NEWS: List new commands for MPX support.
8433
8434 2015-06-09 Gary Benson <gbenson@redhat.com>
8435
8436 * common/fileio.h (fileio_to_host_mode): New declaration.
8437 * common/fileio.c (fileio_to_host_mode): New Function.
8438 * inf-child.c (inf_child_fileio_open): Process mode argument
8439 with fileio_to_host_mode.
8440
8441 2015-06-09 Gary Benson <gbenson@redhat.com>
8442
8443 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8444 conditional.
8445
8446 2015-06-05 Gary Benson <gbenson@redhat.com>
8447
8448 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8449 * remote.c (remote_filesystem_is_local): ...here.
8450
8451 2015-06-04 Yao Qi <yao.qi@linaro.org>
8452
8453 * gdbarch.c: Regenerate it.
8454
8455 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8456
8457 * arch-utils.c (default_infcall_munmap): New.
8458 * arch-utils.h (default_infcall_munmap): New declaration.
8459 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8460 (munmap_list_free, munmap_listp_free_cleanup): New.
8461 (struct setup_sections_data): Add field munmap_list_headp.
8462 (setup_sections): Call munmap_list_add.
8463 (compile_object_load): New variable munmap_list_head, initialize
8464 setup_sections_data.munmap_list_headp, return munmap_list_head.
8465 * compile/compile-object-load.h (struct munmap_list): New declaration.
8466 (struct compile_module): Add field munmap_list_head.
8467 (munmap_list_free): New declaration.
8468 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8469 munmap_list_head.
8470 (do_module_cleanup): Call munmap_list_free.
8471 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8472 * gdbarch.c: Regenerate.
8473 * gdbarch.h: Regenerate.
8474 * gdbarch.sh (infcall_munmap): New.
8475 * linux-tdep.c (linux_infcall_munmap): New.
8476 (linux_init_abi): Install it.
8477
8478 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8479
8480 PR gdb/15564
8481 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8482
8483 2015-06-02 Yao Qi <yao.qi@linaro.org>
8484
8485 * i386-linux-nat.c: Include linux-nat.h.
8486
8487 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8488 Jan Kratochvil <jan.kratochvil@redhat.com>
8489
8490 PR symtab/18392
8491 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8492 assertion.
8493 * dwarf2loc.c (chain_candidate): Likewise.
8494
8495 2015-06-01 Yao Qi <yao.qi@linaro.org>
8496
8497 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8498 (store_vfp_regs): Use PTRACE_SETREGSET.
8499
8500 2015-06-01 Yao Qi <yao.qi@linaro.org>
8501
8502 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8503 (fetch_fpregs): Likewise.
8504 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8505 (store_fpregs): Likewise.
8506
8507 2015-06-01 Yao Qi <yao.qi@linaro.org>
8508
8509 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8510 (fetch_regs): Likewise.
8511 (store_regs): Use PTRACE_SETREGSET.
8512 (store_register): Likewise.
8513
8514 2015-06-01 Yao Qi <yao.qi@linaro.org>
8515
8516 * arm-linux-nat.c (arm_linux_read_description): Check whether
8517 kernel supports PTRACE_GETREGSET.
8518
8519 2015-06-01 Yao Qi <yao.qi@linaro.org>
8520
8521 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8522 * linux-nat.c: ... here.
8523 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8524 to ...
8525 * linux-nat.h: ... here.
8526
8527 2015-06-01 Yao Qi <yao.qi@linaro.org>
8528
8529 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8530 * i386-linux-nat.c: Likewise.
8531 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8532 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8533 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8534 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8535 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8536
8537 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8538
8539 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8540 compatible to what read_child and write_child return. This
8541 unbreaks that DJGPP build of GDB which was broken since v7.7.
8542
8543 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8544
8545 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8546
8547 2015-05-29 Roland McGrath <mcgrathr@google.com>
8548
8549 PR gdb/18464
8550 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8551 rather than internal_error for an unrecognized value.
8552
8553 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8554
8555 * xtensa-tdep.c (xtensa_pseudo_register_read)
8556 (xtensa_pseudo_register_write): Don't alias last pseudo register
8557 to a1.
8558
8559 2015-05-28 Don Breazeal <donb@codesourcery.com>
8560
8561 * infrun.c (follow_fork_inferior): Ensure the use of
8562 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8563 messages.
8564
8565 2015-05-28 Doug Evans <dje@google.com>
8566
8567 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8568
8569 2015-05-28 Yao Qi <yao.qi@linaro.org>
8570
8571 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8572 (arm_linux_fetch_inferior_registers): Use
8573 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8574 (arm_linux_store_inferior_registers): Likewise.
8575 (arm_linux_read_description): Don't set
8576 arm_linux_has_wmmx_registers.
8577 * arm-tdep.c (arm_gdbarch_init): Set
8578 tdep->have_wmmx_registers according target descriptions.
8579 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8580 field.
8581
8582 2015-05-28 Yao Qi <yao.qi@linaro.org>
8583
8584 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8585 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8586 instead of arm_linux_vfp_register_count.
8587 (store_vfp_regs): Likewise.
8588 (arm_linux_fetch_inferior_registers): Likewise.
8589 (arm_linux_store_inferior_registers): Likewise.
8590 (arm_linux_read_description): Don't set
8591 arm_linux_vfp_register_count.
8592 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8593 Adjust.
8594 * arm-tdep.c (arm_gdbarch_init): Add assert on
8595 vfp_register_count.
8596 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8597 field to vfp_register_count. All users updated.
8598
8599 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8600
8601 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8602 ELFOSABI_GNU binaries.
8603
8604 2015-05-27 Doug Evans <dje@google.com>
8605
8606 * dwarf2read.c (lnp_state_machine): New typedef.
8607 (lnp_reader_state): New typedef.
8608 (dwarf_record_line_1): Renamed from dwarf_record_line.
8609 All callers updated.
8610 (dwarf_record_line): New function.
8611 (init_lnp_state_machine): New function.
8612 (check_line_address): Replace p_record_line parameter with state.
8613 All callers updated.
8614 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8615 Update to record state in lnp_state_machine.
8616
8617 2015-05-27 Doug Evans <dje@google.com>
8618
8619 * dwarf2read.c (record_line_ftype): New typedef.
8620 (check_line_address): New function.
8621 (dwarf_decode_lines_1): Call it.
8622
8623 2015-05-27 Doug Evans <dje@google.com>
8624
8625 * NEWS: Mention "set debug dwarf-line".
8626 * dwarf2read.c (dwarf_line_debug): New static global.
8627 (add_include_dir): Add debug dwarf-line support.
8628 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8629 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8630
8631 2015-05-27 Doug Evans <dje@google.com>
8632
8633 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8634 All callers updated.
8635 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8636 * cp-support.h (cp_lookup_nested_symbol): Update.
8637
8638 2015-05-27 Doug Evans <dje@google.com>
8639
8640 PR symtab/18258
8641 * block.c (block_find_symbol): New function.
8642 (block_find_non_opaque_type): Ditto.
8643 (block_find_non_opaque_type_preferred): Ditto.
8644 * block.h (block_symbol_matcher_ftype): New typedef.
8645 (block_find_symbol): Declare.
8646 (block_find_non_opaque_type): Ditto.
8647 (block_find_non_opaque_type_preferred): Ditto.
8648 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8649 * psymtab.c (psym_lookup_symbol): Ditto.
8650 * symtab.c (basic_lookup_transparent_type_1): New function.
8651 (basic_lookup_transparent_type): Call it.
8652
8653 2015-05-27 Yao Qi <yao.qi@linaro.org>
8654
8655 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8656 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8657
8658 2015-05-27 Yao Qi <yao.qi@linaro.org>
8659
8660 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8661 before operator &&.
8662 (aarch64_record_load_store): Likewise.
8663
8664 2015-05-26 Doug Evans <dje@google.com>
8665
8666 PR c++/18141, c++/18417.
8667 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8668 a typedef.
8669
8670 2015-05-26 Doug Evans <dje@google.com>
8671
8672 * NEWS: Add entries for command renamings.
8673 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8674 All uses updated.
8675 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8676 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8677 All uses updated.
8678 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8679 All callers updated. Fix spelling of DWARF in help text.
8680 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8681 All uses updated.
8682 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8683 All uses updated.
8684 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8685 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8686 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8687 All uses updated.
8688 (show_dwarf_always_disassemble): Renamed from
8689 show_dwarf2_always_disassemble. All callers updated.
8690 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8691 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8692 "set/show dwarf max-cache-age". Rename
8693 "set/show dwarf2 always-disassemble" to
8694 "set/show dwarf always-disassemble". Rename
8695 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8696 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8697
8698 2015-05-26 Doug Evans <dje@google.com>
8699
8700 PR python/18438
8701 * python/py-lazy-string.c (stpy_convert_to_value): Use
8702 gdbpy_gdb_memory_error not PyExc_MemoryError.
8703 (gdbpy_create_lazy_string_object): Ditto.
8704
8705 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8706
8707 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8708
8709 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8710
8711 * tui/tui-regs.c (tui_reg_prev_command): New function.
8712 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8713 * reggroups.c (reggroup_prev): New function.
8714 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8715
8716 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8717 Yao Qi <yao.qi@linaro.org>
8718
8719 * aarch64-linux-tdep.c: Include linux-record.h and
8720 record-full.h.
8721 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8722 (aarch64_syscall): New enum.
8723 (aarch64_canonicalize_syscall): New function.
8724 (aarch64_all_but_pc_registers_record): New function.
8725 (aarch64_linux_syscall_record): New function.
8726 (aarch64_linux_init_abi): Install AArch64 process record
8727 handler. Update to handle syscall recording.
8728 * aarch64-tdep.c: Include record.h and record-full.h.
8729 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8730 (struct aarch64_mem_r): Define.
8731 (aarch64_record_result): New enum.
8732 (struct insn_decode_record): Define.
8733 (insn_decode_record): New typedef.
8734 (aarch64_record_data_proc_reg): New function.
8735 (aarch64_record_data_proc_imm): New function.
8736 (aarch64_record_branch_except_sys): New function.
8737 (aarch64_record_load_store): New function.
8738 (aarch64_record_data_proc_simd_fp): New function.
8739 (aarch64_record_asimd_load_store): New function.
8740 (aarch64_record_decode_insn_handler): New function.
8741 (deallocate_reg_mem): New function.
8742 (aarch64_process_record): New function.
8743 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8744 New field.
8745 (aarch64_process_record): New extern declaration.
8746 * configure.tgt: Add linux-record.o to gdb_target_obs.
8747 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8748
8749 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8750
8751 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8752 targets.
8753
8754 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8755
8756 * amd64-tdep.c: Replace in_function_epilogue_p with
8757 stack_frame_destroyed_p throughout.
8758 * arch-utils.c: Ditto.
8759 * arch-utils.h: Ditto.
8760 * arm-tdep.c: Ditto.
8761 * breakpoint.c: Ditto.
8762 * gdbarch.sh: Ditto.
8763 * hppa-tdep.c: Ditto.
8764 * i386-tdep.c: Ditto.
8765 * mips-tdep.c: Ditto.
8766 * nios2-tdep.c: Ditto.
8767 * rs6000-tdep.c: Ditto.
8768 * s390-linux-tdep.c: Ditto.
8769 * score-tdep.c: Ditto.
8770 * sh-tdep.c: Ditto.
8771 * sparc-tdep.c: Ditto.
8772 * sparc-tdep.h: Ditto.
8773 * sparc64-tdep.c: Ditto.
8774 * spu-tdep.c: Ditto.
8775 * tic6x-tdep.c: Ditto.
8776 * tilegx-tdep.c: Ditto.
8777 * xstormy16-tdep.c: Ditto.
8778 * gdbarch.c, gdbarch.h: Re-generated.
8779
8780 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8781
8782 * NEWS: Mention 'tui enable' and 'tui disable'.
8783 * tui/tui.c (tui_enable_command): New function.
8784 (tui_disable_command): New function.
8785 (_initialize_tui): New function.
8786
8787 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8788
8789 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8790
8791 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8792
8793 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8794 buf_ptr is freed.
8795
8796 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8797
8798 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8799 into ...
8800 (tui_set_layout_for_display_command): ...here, before calling
8801 tui_set_layout. Only set the layout if gdb has not already
8802 entered the TUI_FAILURE state.
8803
8804 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8805
8806 * tui/tui-layout.c (layout_completer): New function.
8807 (_initialize_tui_layout): Set completer on layout command.
8808
8809 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8810
8811 * tui/tui-layout.c (tui_set_layout): Remove
8812 tui_register_display_type parameter. Remove all checking of this
8813 parameter, and reindent function. Update header comment.
8814 (tui_set_layout_for_display_command): Rename to...
8815 (tui_set_layout_by_name): ...this, and don't check for different
8816 register class types, don't pass a tui_register_display_type to
8817 tui_set_layout. Update header comment.
8818 (layout_names): Remove register set specific names.
8819 * tui/tui-layout.h (tui_set_layout): Remove
8820 tui_register_display_type parameter.
8821 * tui/tui.c (tui_rl_change_windows): Don't pass a
8822 tui_register_display_type to tui_set_layout.
8823 (tui_rl_delete_other_windows): Likewise.
8824 (tui_enable): Likewise.
8825 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8826 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8827 (TUI_GENERAL_REGS_NAME): Remove.
8828 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8829 (TUI_SPECIAL_REGS_NAME): Remove.
8830 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8831 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8832 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8833 (enum tui_register_display_type): Remove.
8834 (struct tui_layout_def): Remove regs_display_type and
8835 float_regs_display_type fields.
8836 (struct tui_data_info): Remove regs_display_type field.
8837 (tui_layout_command): Use new name for
8838 tui_set_layout_for_display_command.
8839 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8840 (tui_clear_win_detail): Don't initialise removed fields of
8841 win_info.
8842 * tui/tui-regs.c (tui_show_registers): Use new name for
8843 tui_set_layout_for_display_command.
8844 * tui/tui.h (tui_set_layout_for_display_command): Rename
8845 declaration to...
8846 (tui_set_layout_by_name): ...this.
8847 * printcmd.c (display_command): Remove tui related layout call,
8848 and reindent.
8849
8850 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8851
8852 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8853 (handle_inferior_event): New function.
8854
8855 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8856
8857 * ada-lang.c (to_fixed_array_type): Rename local variable
8858 typename into type_name.
8859
8860 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8861
8862 Fix ASAN crash for gdb.compile/compile.exp.
8863 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8864
8865 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8866
8867 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8868 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8869 * compile/compile-object-load.c (setup_sections, compile_object_load):
8870 Likewise.
8871 * compile/compile.c (compile_to_object): Likewise.
8872
8873 2015-05-16 Doug Evans <xdje42@gmail.com>
8874
8875 * NEWS: Mention support for unbuffered Guile memory ports.
8876 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8877 (ioscm_lseek_address): Improve overflow calculation.
8878 (gdbscm_memory_port_fill_input): Add assert.
8879 (gdbscm_memory_port_write): Handle unbuffered ports.
8880 Handle large writes identical to Guile's fport_write.
8881 (gdbscm_memory_port_seek): Fix seeking past end check.
8882 (gdbscm_memory_port_close): Handle closing unbuffered port.
8883 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8884 (ioscm_init_memory_port): Handle unbuffered ports.
8885 (ioscm_reinit_memory_port): Ditto.
8886 (ioscm_init_memory_port): Update size calculation.
8887 (gdbscm_open_memory): Support zero sized ports.
8888
8889 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8890
8891 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8892 variable compiler warnings.
8893
8894 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8895
8896 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8897
8898 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8899 Phil Muldoon <pmuldoon@redhat.com>
8900
8901 * NEWS (Changes since GDB 7.9): Add compile print.
8902 * compile/compile-c-support.c (add_code_header, add_code_footer)
8903 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8904 COMPILE_I_PRINT_VALUE_SCOPE.
8905 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8906 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8907 New.
8908 * compile/compile-object-load.c: Include block.h.
8909 (get_out_value_type): New function.
8910 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8911 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8912 OUT_VALUE_TYPE.
8913 * compile/compile-object-load.h (struct compile_module): Add fields
8914 out_value_addr and out_value_type.
8915 * compile/compile-object-run.c: Include valprint.h and compile.h.
8916 (struct do_module_cleanup): Add fields out_value_addr and
8917 out_value_type.
8918 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8919 COMPILE_I_PRINT_VALUE_SCOPE.
8920 (compile_object_run): Propagate out_value_addr and out_value_type.
8921 Pass OUT_VALUE_ADDR.
8922 * compile/compile.c: Include valprint.h.
8923 (compile_print_value, compile_print_command): New functions.
8924 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8925 (_initialize_compile): Update compile code help text. Install
8926 compile_print_command.
8927 * compile/compile.h (compile_print_value): New prototype.
8928 * defs.h (enum compile_i_scope_types): Add
8929 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8930
8931 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8934 Rely on its parameter count.
8935 (compile_object_load): Replace lookup_minimal_symbol_text by
8936 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8937 return value.
8938 * compile/compile-object-load.h (struct compile_module): Replace
8939 func_addr by func_sym.
8940 * compile/compile-object-run.c: Include block.h.
8941 (compile_object_run): Reset module variable after it is freed. Use
8942 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8943
8944 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8945
8946 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8947 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8948 (c_compute_program): Call generate_register_struct after typedefs.
8949 * compile/compile-loc2c.c (push, pushf_register_address)
8950 (pushf_register): Cast to GCC_UINTPTR.
8951 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8952 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8953 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8954 * compile/compile.c (_initialize_compile): Enable warnings for
8955 COMPILE_ARGS.
8956
8957 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8958
8959 * cli/cli-script.c (execute_control_command): Update
8960 eval_compile_command caller.
8961 * compile/compile-object-load.c (compile_object_load): Add parameters
8962 scope and scope_data. Set them.
8963 * compile/compile-object-load.h (struct compile_module): Add fields
8964 scope and scope_data.
8965 (compile_object_load): Add parameters scope and scope_data.
8966 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8967 scope and scope_data.
8968 (compile_object_run): Propagate the fields scope and scope_data.
8969 * compile/compile.c (compile_file_command, compile_code_command):
8970 Update eval_compile_command callers.
8971 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8972 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8973 * defs.h (struct command_line): Add field scope_data.
8974
8975 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8976
8977 * printcmd.c (struct format_data): Move it to valprint.h.
8978 (print_command_parse_format, print_value): New functions from ...
8979 (print_command_1): ... here. Call them.
8980 * valprint.h (struct format_data): Move it here from printcmd.c.
8981 (print_command_parse_format, print_value): New declarations.
8982
8983 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8984
8985 * compile/compile-object-load.c (compile_object_load): Add
8986 COMPILE_DEBUG message.
8987
8988 2015-05-15 Jerome Guitton <guitton@adacore.com>
8989
8990 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8991 index to get element instead of enum value.
8992 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8993 of index to compute length, but enum values to compute bounds.
8994 (ada_array_length): Use enum position of index instead of enum value.
8995 (pos_atr): Move position computation to...
8996 (ada_evaluate_subexp): Use enum values to compute bounds.
8997 * gdbtypes.c (discrete_position): ...this new function.
8998 * gdbtypes.h (discrete_position): New function declaration.
8999 * valprint.c (val_print_array_elements): Call discrete_position
9000 to handle array indexed by non-contiguous enumeration types.
9001
9002 2015-05-15 Jerome Guitton <guitton@adacore.com>
9003
9004 * ada-lang.c (find_parallel_type_by_descriptive_type):
9005 Go through typedefs during lookup.
9006 (to_fixed_array_type): Add support for non-bit packed arrays
9007 as variable-length fields.
9008
9009 2015-05-15 Pedro Alves <palves@redhat.com>
9010 Simon Marchi <simon.marchi@ericsson.com>
9011
9012 * event-loop.c (gdb_notifier) <next_file_handler,
9013 next_poll_fds_index>: New fields.
9014 (get_next_file_handler_to_handle_and_advance): New function.
9015 (delete_file_handler): If deleting the next file handler to
9016 handle, advance to the next file handler.
9017 (gdb_wait_for_event): Bail early if no event fired. Poll file
9018 handlers in round-robin fashion.
9019
9020 2015-05-15 Pedro Alves <palves@redhat.com>
9021
9022 * linux-tdep.c (linux_find_memory_regions_full): Rename local
9023 'private' to 'priv'.
9024
9025 2015-05-15 Pedro Alves <palves@redhat.com>
9026
9027 * nat/linux-nat.h: Include "target/waitstatus.h".
9028
9029 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
9030
9031 * python/py-unwind.c (struct reg_info): Move out of ...
9032 (struct cached_frame_info): ... this scope.
9033 (pending_frame_object_type, unwind_info_object_type): Make extern.
9034
9035 2015-05-15 Joel Brobecker <brobecker@adacore.com>
9036
9037 * ada-lang.c (ada_value_primitive_packed_val): Make sure
9038 accumSize is never negative.
9039
9040 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
9041
9042 * tui/tui-command.c: Remove include of <ctype.h>.
9043 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9044
9045 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
9046
9047 * dwarf2read.c (die_needs_namespace): Return 1 for
9048 DW_TAG_inlined_subroutine.
9049
9050 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9051
9052 * regcache.c (regcache_cpy_no_passthrough): New declaration.
9053 (regcache_cpy_no_passthrough): Make it static, add function comment.
9054 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9055 (regcache_cpy_no_passthrough): Remove declaration.
9056
9057 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9058
9059 * gdbthread.h (struct thread_control_state): Update comment for
9060 proceed_to_finish.
9061 * infcall.c (run_inferior_call): Update comment about
9062 proceed_to_finish.
9063 * infcmd.c (get_return_value): Update comment about stop_registers.
9064 (finish_forward): Update comment about proceed_to_finish.
9065 * infrun.c (stop_registers): Remove.
9066 (clear_proceed_status, normal_stop): Remove stop_registers handling.
9067 * infrun.h (stop_registers): Remove.
9068
9069 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9070
9071 * infcall.c (struct dummy_frame_context_saver)
9072 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9073 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9074 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9075 New.
9076 (call_function_by_hand_dummy): Move discard_cleanups of
9077 inf_status_cleanup before dummy_frame_push. Call
9078 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9079 Use dummy_frame_context_saver_get_regs instead of stop_registers.
9080 * infcall.h (struct dummy_frame_context_saver)
9081 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9082 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9083 New declarations.
9084 * infcmd.c: Include infcall.h.
9085 (get_return_value): Add parameter ctx_saver, use it instead of
9086 stop_registers.
9087 (print_return_value): Add parameter ctx_saver, pass it.
9088 (struct finish_command_continuation_args): Add field ctx_saver.
9089 (finish_command_continuation): Update print_return_value caller.
9090 (finish_command_continuation_free_arg): Free also ctx_saver.
9091 (finish_forward): Call dummy_frame_context_saver_setup.
9092 * inferior.h (struct dummy_frame_context_saver): New declaration.
9093 (get_return_value): Add parameter ctx_saver.
9094 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9095 get_return_value caller.
9096
9097 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9098
9099 * dummy-frame.c (struct dummy_frame_dtor_list): New.
9100 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9101 (remove_dummy_frame): Process dtor_list.
9102 (pop_dummy_frame): Process dtor_list.
9103 (register_dummy_frame_dtor): Maintain dtor_list.
9104 (find_dummy_frame_dtor): Handle dtor_list.
9105 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9106 Update comments.
9107
9108 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9109
9110 * compile/compile-object-run.c (do_module_cleanup): Add parameter
9111 registers_valid.
9112 (compile_object_run): Update do_module_cleanup caller.
9113 * dummy-frame.c: Include infcall.h.
9114 (struct dummy_frame): Update dtor comment.
9115 (remove_dummy_frame): Call dtor.
9116 (pop_dummy_frame): Update dtor caller.
9117 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9118 registers_valid.
9119
9120 2015-05-13 Joel Brobecker <brobecker@adacore.com>
9121
9122 GDB 7.9.1 released.
9123
9124 2015-05-13 Joel Brobecker <brobecker@adacore.com>
9125
9126 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
9127 Xmethods now being able to specify a result type to that new
9128 sectioin.
9129
9130 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9131
9132 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9133 first before resizing the window.
9134 * tui/tui.c (tui_enable): Likewise.
9135
9136 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9137
9138 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9139 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9140 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9141 dummy_dtor parameter.
9142 * infcall.h: Include dummy-frame.h.
9143 (call_function_by_hand_dummy_dtor_ftype): Remove.
9144 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9145 parameter.
9146
9147 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9148
9149 PR gdb/17820
9150 * top.c (history_size_setshow_var): Change type to signed.
9151 Initialize to -2. Update documentation.
9152 (set_readline_history_size): Define.
9153 (set_history_size_command): Use it. Remove logic for handling
9154 out-of-range sizes.
9155 (init_history): Use set_readline_history_size(). Test for a
9156 value of -2 instead of 0 when determining whether to set a
9157 default history size.
9158 (init_main): Decode the argument of the "size" command as a
9159 zuinteger_unlimited.
9160
9161 2015-05-12 Doug Evans <dje@google.com>
9162
9163 * dwarf2read.c (struct file_entry): Tweak comments.
9164 (get_debug_line_section): Tweak comments.
9165
9166 2015-05-12 Don Breazeal <donb@codesourcery.com>
9167
9168 * NEWS: Announce fork support in the RSP and support
9169 for fork debugging in extended mode.
9170
9171 2015-05-12 Don Breazeal <donb@codesourcery.com>
9172
9173 * remote.c (remote_insert_fork_catchpoint): New function.
9174 (remote_remove_fork_catchpoint): New function.
9175 (remote_insert_vfork_catchpoint): New function.
9176 (remote_remove_vfork_catchpoint): New function.
9177 (pending_fork_parent_callback): New function.
9178 (remove_new_fork_child): New function.
9179 (remote_update_thread_list): Call remote_notif_get_pending_events
9180 and remove_new_fork_child.
9181 (extended_remote_kill): Kill fork child when killing the
9182 parent before follow_fork completes.
9183 (init_extended_remote_ops): Initialize target vector with
9184 new fork catchpoint functions.
9185
9186 2015-05-12 Don Breazeal <donb@codesourcery.com>
9187
9188 * remote.c (remove_vfork_event_p): New function.
9189 (remote_follow_fork): Add vfork event type to event checking.
9190 (remote_parse_stop_reply): New stop reasons "vfork" and
9191 "vforkdone" for RSP 'T' Stop Reply Packet.
9192
9193 2015-05-12 Don Breazeal <donb@codesourcery.com>
9194
9195 * linux-nat.c (linux_nat_ptrace_options): New function.
9196 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9197 Call linux_nat_ptrace_options and use different argument to
9198 linux_enable_event_reporting.
9199 (_initialize_linux_nat): Delete call to
9200 linux_ptrace_set_additional_flags.
9201 * nat/linux-ptrace.c (current_ptrace_options): Rename to
9202 supported_ptrace_options.
9203 (additional_flags): Delete variable.
9204 (linux_check_ptrace_features): Use supported_ptrace_options.
9205 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9206 Likewise, and remove additional_flags check.
9207 (linux_enable_event_reporting): Change 'attached' argument to
9208 'options'. Use supported_ptrace_options.
9209 (ptrace_supports_feature): Change comment. Use
9210 supported_ptrace_options.
9211 (linux_ptrace_set_additional_flags): Delete function.
9212 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9213 Delete function prototype.
9214 * remote.c (remote_fork_event_p): New function.
9215 (remote_detach_pid): New function.
9216 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9217 if doing detach-on-fork.
9218 (remote_follow_fork): New function.
9219 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9220 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9221 (init_extended_remote_ops): Initialize to_follow_fork.
9222
9223 2015-05-12 Don Breazeal <donb@codesourcery.com>
9224
9225 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9226 from static to extern.
9227 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9228 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9229 * PACKET_vfork_event_feature>: New enumeration constants.
9230 (remote_protocol_features): Add table entries for new packets.
9231 (remote_query_supported): Add new feature queries to qSupported
9232 packet.
9233
9234 2015-05-12 Gary Benson <gbenson@redhat.com>
9235
9236 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9237 for fake PIDs as well as real ones.
9238 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9239
9240 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9241
9242 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9243 * python/py-value.c (valpy_reference_value): New function.
9244 (valpy_const_value): Likewise.
9245 (value_object_methods): Add new methods.
9246 * value.c (make_cv_value): New function.
9247 * value.h (make_cv_value): Declare.
9248
9249 2015-05-08 Yao Qi <yao@codesourcery.com>
9250 Sandra Loosemore <sandra@codesourcery.com>
9251
9252 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9253 to 'lh->include_dirs' before accessing to it.
9254 (psymtab_include_file_name): Likewise.
9255 (dwarf_decode_lines_1): Likewise.
9256 (dwarf_decode_lines): Likewise.
9257 (file_file_name): Likewise.
9258
9259 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9260
9261 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9262 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9263 (nios2_linux_rt_sigreturn_init): Adjust base address of
9264 register save area.
9265
9266 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9267
9268 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9269 "trap 31" as the breakpoint instruction on all targets.
9270
9271 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9272
9273 * infcmd.c (print_return_value): Remove unused declaration.
9274
9275 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9276
9277 * dwarf2read.c (attr_to_dynamic_prop)
9278 <DW_AT_data_member_location>: Use read_type_die isntead of
9279 get_die_type.
9280
9281 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9282
9283 * ada-lang.c (ada_convert_actual): Add handling of formals
9284 passed inside an aligner type.
9285
9286 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9287
9288 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9289
9290 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9291
9292 PR python/18291
9293 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9294 Print xmethod matcher status.
9295
9296 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9297
9298 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9299 register in the regcache when treating the PSWM register, and vice
9300 versa.
9301
9302 2015-05-07 Gary Benson <gbenson@redhat.com>
9303
9304 * linux-thread-db.c (struct thread_db_info)
9305 <td_ta_map_id2thr_p>: Remove field.
9306 (try_thread_db_load_1): Remove initialization for the above.
9307
9308 2015-05-07 Gary Benson <gbenson@redhat.com>
9309
9310 * linux-thread-db.c (struct thread_db_info)
9311 <td_thr_validate_p>: Remove field.
9312 (try_thread_db_load_1): Remove initialization for the above.
9313
9314 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9315
9316 * compile/compile-object-load.c (compile_object_load): Support
9317 mst_text_gnu_ifunc.
9318
9319 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9320
9321 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9322 const. Use new variables for the const compatibility.
9323 (eval_compile_command): Make the cmd_string parameter const.
9324 * compile/compile.h (eval_compile_command): Make the cmd_string
9325 parameter const.
9326
9327 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9328
9329 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9330 comment.
9331 * top.c (deprecated_init_ui_hook): Delete.
9332 (gdb_init): Remove handling of deprecated_init_ui_hook.
9333 * interps.c (clear_interpreter_hooks): Remove handling of
9334 deprecated_init_ui_hook.
9335 * main.c (captured_main): Update comment.
9336
9337 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9338
9339 * solib.c (_initialize_solib): Add "info dll" alias creation.
9340 * windows-nat.c (set_windows_aliases): Delete.
9341 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9342 assignment.
9343 * NEWS: Add news entry about "info dll" now being available
9344 on all platforms.
9345
9346 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9347
9348 * ada-lang.c (value_assign_to_component): Reformat and improve
9349 documentation. Remove all trailing spaces.
9350
9351 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9352
9353 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9354 Stop counting inlined frames as soon as an out-of-line function
9355 is found.
9356
9357 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9358
9359 * dwarf2read.c (inherit_abstract_dies): Skip
9360 DW_TAG_GNU_call_site dies while inheriting children of an
9361 abstract DIE into a scope.
9362 (read_lexical_block_scope): Inherit abstract DIE's for
9363 lexical scopes.
9364
9365 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9366
9367 * ada-valprint.c (val_print_packed_array_elements): Delete
9368 variable "len". Add a type-length check when comparing two
9369 consecutive elements of the array. Use the element's actual
9370 length in call to value_contents_eq.
9371 * ada-lang.c (ada_value_primitive_packed_val): Always return
9372 a value whose type has been resolved.
9373
9374 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9375
9376 * ada-lang.c (ada_value_primitive_packed_val): Recompute
9377 BIT_SIZE and LEN if the size of the resolved type is smaller
9378 than BIT_SIZE * HOST_CHAR_BIT.
9379
9380 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9381
9382 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9383 correct address in call to value_at. Adjust call to
9384 value_address accordingly.
9385
9386 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9387
9388 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9389 to print it.
9390
9391 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9392
9393 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9394 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9395 pinfo->valaddr.
9396 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9397 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9398 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9399 Add handling of addr_stack->valaddr.
9400 (resolve_dynamic_type): Add "valaddr" parameter.
9401 Set pinfo.valaddr field.
9402 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9403 resolve_dynamic_type.
9404 (ada_discrete_type_low_bound): Likewise.
9405 * findvar.c (default_read_var_value): Likewise.
9406 * value.c (value_from_contents_and_address): Likewise.
9407
9408 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9409
9410 * gdbtypes.c (resolve_dynamic_array): Use
9411 create_array_type_with_stride instead of create_array_type.
9412
9413 2015-04-30 DJ Delorie <dj@redhat.com>
9414
9415 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9416 rl78_decode_opcode
9417
9418 2015-04-29 Doug Evans <dje@google.com>
9419
9420 PR python/18285
9421 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9422 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9423 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9424 * extension-priv.h (struct extension_language_ops)
9425 <get_xmethod_result_type>: New member.
9426 * extension.c (get_xmethod_result_type): New function.
9427 * extension.h (get_xmethod_result_type): Declare.
9428 * python/py-xmethods.c (get_result_type_method_name): New static
9429 global.
9430 (py_get_result_type_method_name): Ditto.
9431 (gdbpy_get_xmethod_result_type): New function.
9432 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9433 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9434 * python/python.c (python_extension_ops): Add
9435 gdbpy_get_xmethod_result_type.
9436 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9437 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9438 xmethods.
9439 (value_x_unop): Ditto.
9440 * value.c (result_type_of_xmethod): New function.
9441 * value.h (result_type_of_xmethod): Declare.
9442
9443 2015-04-29 Gary Benson <gbenson@redhat.com>
9444
9445 * solib.c (solib_find_1): Allow fd argument to be NULL.
9446 (exec_file_find): Update comment.
9447 (solib_find): Likewise.
9448 * exec.c (exec_file_locate_attach): Use NULL as fd
9449 argument to exec_file_find to avoid having to close
9450 the opened file.
9451 * infrun.c (follow_exec): Likewise.
9452
9453 2015-04-28 Doug Evans <dje@google.com>
9454
9455 PR python/18299
9456 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9457 name or __name__ attributes. Handle gdb module as first argument.
9458
9459 2015-04-28 Doug Evans <dje@google.com>
9460
9461 PR python/18089
9462 * python/py-prettyprint.c (print_children): Verify result of children
9463 iterator. Provide better error message.
9464 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9465 * python/python.c (gdbpy_print_python_errors_p): New function.
9466
9467 2015-04-28 Doug Evans <dje@google.com>
9468
9469 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9470
9471 2015-04-28 Sasha Smundak <asmundak@google.com>
9472
9473 * NEWS: Mention gdb.Type.optimized_out method.
9474 * python/py-type.c (typy_optimized_out): New function.
9475
9476 2015-04-28 John Baldwin <jhb@FreeBSD.org>
9477
9478 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9479
9480 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9481
9482 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9483 (initialize_utils): Move call of init_page_info() to ...
9484 * top.c (gdb_init): ... here.
9485
9486 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9487
9488 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9489 (tui_sigwinch_handler): Still update our idea of
9490 the terminal's width and height even when TUI is not active.
9491
9492 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9493
9494 * utils.h (set_screen_width_and_height): Declare.
9495 * utils.c (set_screen_width_and_height): Define.
9496 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9497
9498 2015-04-28 Gary Benson <gbenson@redhat.com>
9499
9500 * infrun.c (solist.h): New include.
9501 (follow_exec): Use exec_file_find to prefix execd_pathname
9502 with gdb_sysroot.
9503
9504 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9505
9506 * tui/tui-source.c (tui_set_source_content): Avoid calling
9507 strcpy() when offset is 0.
9508
9509 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9510
9511 PR gdb/18155
9512 * tui/tui-data.c (tui_free_window): Don't free the locator
9513 window when passed an SRC_WIN or a DISASSEM_WIN.
9514
9515 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9516
9517 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9518 (tui_win_content): Move declaration.
9519 (struct tui_gen_win_info): Give 'content' field the
9520 type tui_win_content.
9521 * tui/tui-data.c (init_content_element): Remove redundant and
9522 erroneous casts.
9523 (tui_add_content_elements): Remove erroneous cast.
9524 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9525 casts.
9526 (tui_get_begin_asm_address): Likewise.
9527 * tui/tui-regs.c (tui_show_registers): Likewise.
9528 (tui_show_register_group): Likewise.
9529 (tui_display_registers_from): Likewise.
9530 (tui_check_register_values): Likewise.
9531 * tui/tui-source.c (tui_set_source_content): Likewise.
9532 (tui_set_source_content_nil): Likewise.
9533 (tui_source_is_displayed): Likewise.
9534 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9535 (tui_set_locator_fullname): Likewise.
9536 (tui_set_locator_info): Likewise.
9537 (tui_show_frame_info): Likewise.
9538 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9539 (tui_show_source_line): Likewise.
9540 (tui_horizontal_source_scroll): Likewise.
9541 (tui_update_breakpoint_info): Likewise.
9542 (tui_set_exec_info_content): Likewise.
9543 (tui_show_exec_info_content): Likewise.
9544 (tui_alloc_source_buffer): Likewise.
9545 (tui_line_is_displayed): Likewise.
9546 (tui_addr_is_displayed): Likewise.
9547
9548 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9549
9550 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9551 event if PL_FLAG_EXEC is set.
9552 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9553 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9554 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9555 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9556 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9557
9558 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9559
9560 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9561 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9562 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9563 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9564 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9565 [PT_LWPINFO] (fbsd_wait): New function.
9566 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9567 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9568 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9569 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9570 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9571 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9572 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9573 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9574 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9575 "fbsd_wait".
9576 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9577 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9578 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9579 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9580 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9581 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9582 Set "to_post_attach" to "fbsd_post_attach".
9583
9584 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9585
9586 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9587 (fbsd_find_memory_regions): Mark static.
9588 (fbsd_nat_add_target): New function.
9589 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9590 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9591 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9592 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9593 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9594 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9595
9596 2015-04-27 Gary Benson <gbenson@redhat.com>
9597
9598 * objfiles.c (allocate_objfile): Do not attempt to expand name
9599 if name is a "target:" filename.
9600 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9601 to load auto-load scripts for objfiles with "target:" filenames.
9602
9603 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9604
9605 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9606 (enum s390_vector_abi_kind): New enum.
9607 (struct gdbarch_tdep)<vector_abi>: New field.
9608 (s390_effective_inner_type): Add parameter min_size. Stop
9609 unwrapping if the inner type is smaller than min_size.
9610 (s390_function_arg_float): Adjust call to
9611 s390_effective_inner_type.
9612 (s390_function_arg_vector): New function.
9613 (s390_function_arg_integer): Adjust comment.
9614 (struct s390_arg_state)<vr>: New field.
9615 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9616 arguments according to vector ABI when appropriate.
9617 (s390_push_dummy_call): Initialize the argument state's field
9618 'vr'. Adjust calls to s390_handle_arg.
9619 (s390_register_return_value): Handle vector return values.
9620 (s390_return_value): Apply the "register" return value convention
9621 to a vector when appropriate.
9622 (s390_gdbarch_init): Initialize tdep->vector_abi.
9623 * NEWS: Announce S390 vector ABI support.
9624
9625 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9626
9627 * s390-linux-tdep.c (s390_return_value_convention): Remove
9628 function. Inline its logic...
9629 (s390_return_value): ...here. Instead, move the handling of the
9630 "register" return value convention...
9631 (s390_register_return_value): ...here. New function.
9632
9633 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9634
9635 * s390-linux-tdep.c
9636 (is_float_singleton): Remove function. Move the "singleton" part
9637 of the logic...
9638 (s390_effective_inner_type): ...here. New function.
9639 (is_float_like): Remove function. Inline its logic...
9640 (s390_function_arg_float): ...here.
9641 (is_pointer_like, is_integer_like, is_struct_like): Remove
9642 functions. Inline their logic...
9643 (s390_function_arg_integer): ...here.
9644 (s390_function_arg_pass_by_reference): Remove function.
9645 (extend_simple_arg): Remove function.
9646 (alignment_of): Remove function.
9647 (struct s390_arg_state): New structure.
9648 (s390_handle_arg): New function.
9649 (s390_push_dummy_call): Move parameter placement logic to the new
9650 function s390_handle_arg. Call it for calculating the stack area
9651 sizes first, and again for actually writing the parameters.
9652
9653 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9654
9655 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9656 false if the argument is zero.
9657
9658 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9659
9660 * ada-lang.c (template_to_static_fixed_type): Return input type
9661 when it is already fixed. Cache the input type itself when not
9662 creating a static fixed copy. Make it explicit that we never
9663 molestate the input type.
9664 * gdbtypes.c (resolve_dynamic_struct): Reset the
9665 TYPE_TARGET_TYPE field for resolved copies.
9666
9667 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9668
9669 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9670 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9671 (template_to_static_fixed_type): Call ada_check_typedef only
9672 when necessary.
9673
9674 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9675
9676 * cli/cli-dump.c (srec_dump_command): Add internationalization
9677 mark ups.
9678 (ihex_dump_command): Likewise.
9679 (tekhex_dump_command): Likewise.
9680 (binary_dump_command): Likewise.
9681 (binary_append_command): Likewise.
9682
9683 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9684
9685 * cli/cli-dump.c (verilog_cmdlist): New variable.
9686 (dump_verilog_memory): New function.
9687 (dump_verilog_value): New function.
9688 (verilog_dump_command): New function.
9689 (_initialize_cli_dump): Add new commands to support verilog dump
9690 format.
9691 * NEWS: Add entry for "dump verilog".
9692
9693 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9694
9695 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9696 descriptive type when there is none.
9697
9698 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9699
9700 * tui/tui-win.c (tui_async_resize_screen): Call
9701 rl_resize_terminal().
9702
9703 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9704
9705 * windows-nat.c (handle_output_debug_string): Don't change
9706 current_event.dwThreadId.
9707 (get_windows_debug_event): Use thread_id, rather than relying on
9708 current_event.dwThreadId being changed.
9709
9710 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9711
9712 * windows-nat.c (windows_continue): Report an error if
9713 ContinueDebugEvent() fails.
9714
9715 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9716
9717 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9718
9719 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9720
9721 * windows-nat.c (get_windows_debug_event): Replace retval with
9722 thread_id throughout. Update stale comment.
9723
9724 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9725
9726 * windows-nat.c (get_windows_debug_event): Don't use ternary
9727 conditional operator.
9728
9729 2015-04-21 Pierre Muller <muller@sourceware.org>
9730
9731 PR pascal/17815
9732 p-exp.y (yylex): Reorganize code to return the matched pattern
9733 for a field of this.
9734
9735 2015-04-21 Gary Benson <gbenson@redhat.com>
9736
9737 * common/fileio.h (fileio_to_host_openflags): New declaration.
9738 * common/fileio.c (fcntl.h): New include.
9739 (fileio_to_host_openflags): New function, factored out from...
9740 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9741 Single use updated.
9742
9743 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9744
9745 * rl78-tdep.c (RL78_SP_ADDR): Define.
9746 (opc_reg_to_gdb_regnum): New static function.
9747 (rl78_analyze_prologue): Recognize instructions forming slightly
9748 more interesting prologues.
9749
9750 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9751
9752 Revert:
9753 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9754 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9755 TYPE_CODE_REF types so that they are not considered as dynamic
9756 depending on the referenced type.
9757 (resolve_dynamic_type_internal): Likewise.
9758
9759 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9760
9761 Revert:
9762 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9763 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9764 "top_level" parameter.
9765 (resolve_dynamic_type_internal): Remove the unused "top_level"
9766 parameter. Update call to is_dynamic_type_internal.
9767 (is_dynamic_type): Update call to is_dynamic_type_internal.
9768 (resolve_dynamic_range): Update call to
9769 resolve_dynamic_type_internal.
9770 (resolve_dynamic_union): Likewise.
9771 (resolve_dynamic_struct): Likewise.
9772 (resolve_dynamic_type): Likewise.
9773
9774 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9775
9776 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9777 xmalloc.
9778
9779 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9780
9781 * reply_mig_hack.awk: Robustify parsing.
9782
9783 * reply_mig_hack.awk: Don't bother to declare an intermediate
9784 function pointer variable.
9785
9786 2015-04-17 Doug Evans <dje@google.com>
9787
9788 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9789 to "exec_displacement" to avoid confusion with inner use of the name.
9790
9791 2015-04-17 Pedro Alves <palves@redhat.com>
9792
9793 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9794 if HW point of TYPE isn't supported.
9795
9796 2015-04-17 Yao Qi <yao.qi@linaro.org>
9797 Pedro Alves <palves@redhat.com>
9798
9799 * target.h (target_can_use_hardware_watchpoint): Update comments.
9800 Remove trailing ";".
9801
9802 2015-04-17 Gary Benson <gbenson@redhat.com>
9803
9804 * remote.c (remote_add_inferior): New argument try_open_exec.
9805 If nonzero, attempt to open the inferior's executable file as
9806 the main executable if no main executable is open already.
9807 All callers updated.
9808 * NEWS: Mention that GDB now supports automatic location and
9809 retrieval of executable + files from remote targets.
9810
9811 2015-04-17 Gary Benson <gbenson@redhat.com>
9812
9813 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9814 * remote.c (PACKET_qXfer_exec_file): Likewise.
9815 (remote_protocol_features): Register the
9816 "qXfer:exec-file:read" feature.
9817 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9818 (remote_pid_to_exec_file): New function.
9819 (init_remote_ops): Initialize to_pid_to_exec_file.
9820 (_initialize_remote): Register new "set/show remote
9821 pid-to-exec-file-packet" command.
9822 * NEWS: Announce new qXfer:exec-file:read packet.
9823
9824 2015-04-17 Gary Benson <gbenson@redhat.com>
9825
9826 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9827 New declaration.
9828 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9829 New function, factored out from...
9830 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9831
9832 2015-04-17 Gary Benson <gbenson@redhat.com>
9833
9834 * exec.c (solist.h): New include.
9835 (exec_file_locate_attach): Prefix absolute executable
9836 paths with gdb_sysroot if set.
9837 * NEWS: Mention that executable paths may be prepended
9838 with sysroot.
9839
9840 2015-04-17 Gary Benson <gbenson@redhat.com>
9841
9842 * solist.h (exec_file_find): New declaration.
9843 * solib.c (solib_find_1): New function, factored out from...
9844 (solib_find): ...here.
9845 (exec_file_find): New function.
9846
9847 2015-04-17 Gary Benson <gbenson@redhat.com>
9848
9849 * gdbcore.h (exec_file_locate_attach): New declaration.
9850 * exec.c (exec_file_locate_attach): New function, factored
9851 out from...
9852 * infcmd.c (attach_command_post_wait): ...here.
9853
9854 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9855
9856 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9857
9858 2015-04-16 Yao Qi <yao.qi@linaro.org>
9859
9860 * infrun.c (maybe_software_singlestep): Declare.
9861 (displaced_step_fixup): Call maybe_software_singlestep.
9862
9863 2015-04-15 Doug Evans <dje@google.com>
9864
9865 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9866
9867 2015-04-15 Doug Evans <dje@google.com>
9868
9869 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9870
9871 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9872
9873 * python/lib/gdb/command/unwinders.py: Add parentheses.
9874
9875 2015-04-15 Yao Qi <yao.qi@linaro.org>
9876
9877 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9878
9879 2015-04-15 Yao Qi <yao.qi@linaro.org>
9880
9881 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9882
9883 2015-04-15 Yao Qi <yao.qi@linaro.org>
9884
9885 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9886 dsc->insn_size instead of 4.
9887
9888 2015-04-14 Gary Benson <gbenson@redhat.com>
9889
9890 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9891 * minidebug.c (lzma_stat): Likewise.
9892 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9893 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9894
9895 2015-04-13 Stan Shebs <stanshebs@google.com>
9896
9897 * MAINTAINERS: Update my email address.
9898
9899 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9900
9901 * amd64-tdep.c (amd64_target_description): New function.
9902 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9903 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9904 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9905 x86 extended save area.
9906 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9907 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9908 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9909 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9910 "amd64fbsd_read_description".
9911 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9912 (amd64fbsd_supply_xstateregset): New function.
9913 (amd64fbsd_collect_xstateregset): New function.
9914 Add "amd64fbsd_xstateregset".
9915 (amd64fbsd_iterate_over_regset_sections): New function.
9916 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9917 "I386_FBSD_XSAVE_XCR0_OFFSET".
9918 Add "iterate_over_regset_sections" gdbarch method.
9919 Add "core_read_description" gdbarch method.
9920 * i386-tdep.c (i386_target_description): New function.
9921 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9922 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9923 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9924 x86 extended save area.
9925 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9926 * i386bsd-nat.h: Export i386bsd_xsave_len.
9927 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9928 (_initialize_i386fbsd_nat): Set "to_read_description" to
9929 "i386fbsd_read_description".
9930 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9931 (i386fbsd_core_read_description): New function.
9932 (i386fbsd_supply_xstateregset): New function.
9933 (i386fbsd_collect_xstateregset): New function.
9934 Add "i386fbsd_xstateregset".
9935 (i386fbsd_iterate_over_regset_sections): New function.
9936 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9937 "I386_FBSD_XSAVE_XCR0_OFFSET".
9938 Add "iterate_over_regset_sections" gdbarch method.
9939 Add "core_read_description" gdbarch method.
9940 * i386fbsd-tdep.h: New file.
9941
9942 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9943
9944 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9945 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9946 conditional.
9947 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9948 and lb.
9949 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9950 va.
9951 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9952 conditional.
9953 * defs.h (xdb_commands): Remove declaration.
9954 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9955 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9956 * infcmd.c (run_no_args_command, go_command): Remove.
9957 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9958 * infrun.c (xdb_handle_command): Remove.
9959 (_initialize_infrun): Remove xdb_commands for lz and z.
9960 * main.c (xdb_commands): Remove variable.
9961 (captured_main): Remove "xdb" from long_options.
9962 (print_gdb_help): Remove --xdb from help.
9963 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9964 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9965 * stack.c (backtrace_full_command, args_plus_locals_info)
9966 (current_frame_command): Remove.
9967 (_initialize_stack): Remove xdb_commands for t, T and l.
9968 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9969 * thread.c (_initialize_thread): Remove xdb_commands condition.
9970 * tui/tui-layout.c (tui_toggle_layout_command)
9971 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9972 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9973 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9974 (tui_scroll_regs_backward_command): Remove.
9975 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9976 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9977 (_initialize_tui_win): Remove xdb_commands for U and w.
9978 * utils.c (pagination_on_command, pagination_off_command): Remove.
9979 (initialize_utils): Remove xdb_commands for am and sm.
9980
9981 2015-04-10 Pedro Alves <palves@redhat.com>
9982
9983 * infrun.c (displaced_step_fixup): Switch to the event ptid
9984 earlier. If the thread stopped for a watchpoint and the
9985 target/arch has non-continuable watchpoints, cancel the displaced
9986 step.
9987 (resume): Don't start a displaced step if in-line step-over info
9988 is valid.
9989
9990 2015-04-10 Pedro Alves <palves@redhat.com>
9991
9992 * infrun.c (displaced_step_in_progress): New function.
9993 (do_target_resume): Advise target to report all signals if
9994 displaced stepping.
9995
9996 2015-04-10 Pedro Alves <palves@redhat.com>
9997
9998 PR gdb/18216
9999 * infrun.c (process_event_stop_test): Don't assume a step-resume
10000 is set if tp->stepped_breakpoint is true.
10001
10002 2015-04-10 Yao Qi <yao.qi@linaro.org>
10003
10004 * arm-tdep.c (install_alu_reg): Update comment.
10005 (thumb_copy_alu_reg): Remove local variable rn. Update
10006 debugging message. Use r2 instead of r1 in the modified
10007 instruction.
10008
10009 2015-04-10 Pedro Alves <palves@redhat.com>
10010
10011 PR gdb/13858
10012 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10013 linux_displaced_step_location as gdbarch_displaced_step_location
10014 hook.
10015 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10016 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10017 * linux-tdep.c (linux_displaced_step_location): New function,
10018 based on ppc_linux_displaced_step_location.
10019 * linux-tdep.h (linux_displaced_step_location): New declaration.
10020 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10021 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10022 Delete.
10023 (ppc_linux_init_abi): Install linux_displaced_step_location as
10024 gdbarch_displaced_step_location hook, even without Cell/B.E..
10025 (_initialize_ppc_linux_tdep): Don't install
10026 ppc_linux_inferior_created as inferior_created observer.
10027 * s390-linux-tdep.c (s390_gdbarch_init): Install
10028 linux_displaced_step_location as gdbarch_displaced_step_location
10029 hook.
10030
10031 2015-04-09 Gary Benson <gbenson@redhat.com>
10032
10033 * common/common-remote-fileio.h: Rename to...
10034 * common/fileio.h: ...this. Update all references.
10035 (remote_fileio_to_fio_error): Rename to...
10036 (host_to_fileio_error): ...this.
10037 (remote_fileio_to_be): Rename to...
10038 (host_to_bigendian): ...this. Update all callers.
10039 (remote_fileio_to_fio_uint): Rename to...
10040 (host_to_fileio_uint): ...this. Update all callers.
10041 (remote_fileio_to_fio_time): Rename to...
10042 (host_to_fileio_time): ...this. Update all callers.
10043 (remote_fileio_to_fio_stat): Rename to...
10044 (host_to_fileio_stat): ...this.
10045 Update all references.
10046 * common/common-remote-fileio.c: Rename to...
10047 * common/fileio.c: ...this. Update all references.
10048 (remote_fileio_to_fio_error): Rename to...
10049 (host_to_fileio_error): ...this. Update all callers.
10050 (remote_fileio_mode_to_target): Rename to...
10051 (fileio_mode_pack): ...this. Update all callers.
10052 (remote_fileio_to_fio_mode): Rename to...
10053 (host_to_fileio_mode): ...this. Update all callers.
10054 (remote_fileio_to_fio_ulong): Rename to...
10055 (host_to_fileio_ulong): ...this. Update all callers.
10056 (remote_fileio_to_fio_stat): Rename to...
10057 (host_to_fileio_stat): ...this. Update all callers.
10058
10059 2015-04-09 Andy Wingo <wingo@igalia.com>
10060
10061 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10062 (frame_functions): Bind gdbscm_frame_read_register to
10063 frame-read-register.
10064 * guile/lib/gdb.scm (frame-read-register): Export.
10065
10066 2015-04-09 Gary Benson <gbenson@redhat.com>
10067
10068 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10069 New declaration.
10070 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10071 New function, factored out the named functions below.
10072 * inf-child.c (gdb/fileio.h): Remove include.
10073 (common-remote-fileio.h): New include.
10074 (inf_child_errno_to_fileio_error): Remove function. Update
10075 all callers to use remote_fileio_to_fio_error.
10076 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10077
10078 2015-04-09 Andy Wingo <wingo@igalia.com>
10079
10080 * MAINTAINERS (Write After Approval): Add Andy Wingo.
10081
10082 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
10083
10084 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10085 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10086 * configure: Regenerated.
10087
10088 2015-04-09 Pedro Alves <palves@redhat.com>
10089
10090 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10091 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10092 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10093 * gnulib/import/Makefile.am: Update.
10094 * gnulib/import/Makefile.in: Update.
10095 * gnulib/import/m4/gnulib-cache.m4: Update.
10096 * gnulib/import/m4/gnulib-comp.m4: Update.
10097 * gnulib/import/m4/strtok_r.m4: New file.
10098 * gnulib/import/strtok_r.c: New file.
10099
10100 2015-04-09 Pedro Alves <palves@redhat.com>
10101
10102 * gnulib/update-gnulib.sh (aclocal version check): Filter out
10103 "called too early to check prototype".
10104
10105 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
10106
10107 PR python/16699
10108 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10109 use a caching mechanism. Adjust comments and code to reflect
10110 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10111 (cmdpy_completer_handle_brkchars): Adjust call to
10112 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
10113 (cmdpy_completer): Likewise.
10114
10115 2015-04-08 Yao Qi <yao.qi@linaro.org>
10116
10117 * spu-tdep.c (spu_gdbarch_init): Don't call
10118 set_gdbarch_cannot_step_breakpoint.
10119
10120 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
10121
10122 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10123
10124 2015-04-07 Pedro Alves <palves@redhat.com>
10125
10126 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10127 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10128 (delete_exited_threads): New declaration.
10129 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10130 * linux-nat.c (linux_nat_update_thread_list): New function.
10131 (linux_nat_add_target): Install it.
10132 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10133 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10134 (delete_exited_threads): New function.
10135
10136 2015-04-07 Pedro Alves <pedro@codesourcery.com>
10137
10138 * infrun.c (resume) <displaced stepping debug output>: Get the
10139 leader thread's regcache, not resume_ptid's.
10140
10141 2015-04-06 Doug Evans <xdje42@gmail.com>
10142
10143 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10144 VAR_DOMAIN.
10145 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10146 Include symbol domain in debugging output.
10147
10148 2015-04-06 Pedro Alves <palves@redhat.com>
10149 Bernd Edlinger <bernd.edlinger@hotmail.de>
10150
10151 * configure.ac: Remove the mingw32-specific stub-termcap.o
10152 fallback, and instead fallback to the stub termcap on all hosts.
10153 * configure: Regenerate.
10154 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10155 symbols.
10156
10157 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10158
10159 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10160 "top_level" parameter.
10161 (resolve_dynamic_type_internal): Remove the unused "top_level"
10162 parameter. Update call to is_dynamic_type_internal.
10163 (is_dynamic_type): Update call to is_dynamic_type_internal.
10164 (resolve_dynamic_range): Update call to
10165 resolve_dynamic_type_internal.
10166 (resolve_dynamic_union): Likewise.
10167 (resolve_dynamic_struct): Likewise.
10168 (resolve_dynamic_type): Likewise.
10169
10170 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10171
10172 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10173 TYPE_CODE_REF types so that they are not considered as dynamic
10174 depending on the referenced type.
10175 (resolve_dynamic_type_internal): Likewise.
10176
10177 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10178
10179 * Makefile.in (top_srcdir): New.
10180 * configure: Regenerated.
10181
10182 2015-04-02 Gary Benson <gbenson@redhat.com>
10183
10184 * NEWS: Announce the new default sysroot of "target:".
10185
10186 2015-04-02 Gary Benson <gbenson@redhat.com>
10187
10188 * main.c (captured_main): Set gdb_sysroot to "target:"
10189 if not otherwise set.
10190
10191 2015-04-02 Gary Benson <gbenson@redhat.com>
10192
10193 * exec.c (exec_file_attach): Support "target:" filenames.
10194
10195 2015-04-02 Gary Benson <gbenson@redhat.com>
10196
10197 * solib.c (solib_find): Strip "target:" prefix from sysroot
10198 if accessing local files.
10199
10200 2015-04-02 Gary Benson <gbenson@redhat.com>
10201
10202 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10203 checks and error messages.
10204
10205 2015-04-02 Gary Benson <gbenson@redhat.com>
10206
10207 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10208 (remote_filename_p): Remove declaration.
10209 (remote_bfd_open): Likewise.
10210 * remote.c (remote_bfd_iovec_open): Remove function.
10211 (remote_bfd_iovec_close): Likewise.
10212 (remote_bfd_iovec_pread): Likewise.
10213 (remote_bfd_iovec_stat): Likewise.
10214 (remote_filename_p): Likewise.
10215 (remote_bfd_open): Likewise.
10216 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10217 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10218 (gdb_bfd_open_maybe_remote): Remove function.
10219 (symfile_bfd_open): Replace remote filename check with
10220 target filename check.
10221 (reread_symbols): Use gdb_bfd_open.
10222 * build-id.c (gdbcore.h): New include.
10223 (build_id_to_debug_bfd): Use gdb_bfd_open.
10224 * infcmd.c (attach_command_post_wait): Remove remote filename
10225 check.
10226 * solib.c (solib_find): Replace remote-specific handling with
10227 target-specific handling. Update comments where necessary.
10228 (solib_bfd_open): Replace remote-specific handling with
10229 target-specific handling.
10230 (gdb_sysroot_changed): New function.
10231 (_initialize_solib): Call the above when gdb_sysroot changes.
10232 * windows-tdep.c (gdbcore.h): New include.
10233 (windows_xfer_shared_library): Use gdb_bfd_open.
10234
10235 2015-04-02 Gary Benson <gbenson@redhat.com>
10236
10237 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10238 (is_target_filename): New declaration.
10239 (gdb_bfd_has_target_filename): Likewise.
10240 (gdb_bfd_open): Update documentation comment.
10241 * gdb_bfd.c (target.h): New include.
10242 (gdb/fileio.h): Likewise.
10243 (is_target_filename): New function.
10244 (gdb_bfd_has_target_filename): Likewise.
10245 (fileio_errno_to_host): Likewise.
10246 (gdb_bfd_iovec_fileio_open): Likewise.
10247 (gdb_bfd_iovec_fileio_pread): Likewise.
10248 (gdb_bfd_iovec_fileio_close): Likewise.
10249 (gdb_bfd_iovec_fileio_fstat): Likewise.
10250 (gdb_bfd_open): Use target fileio to access paths prefixed
10251 with "target:" where necessary.
10252
10253 2015-04-02 Gary Benson <gbenson@redhat.com>
10254
10255 * target.h (struct target_ops) <to_filesystem_is_local>:
10256 New field.
10257 (target_filesystem_is_local): New macro.
10258 * target-delegates.c: Regenerate.
10259 * remote.c (remote_filesystem_is_local): New function.
10260 (init_remote_ops): Initialize to_filesystem_is_local.
10261
10262 2015-04-02 Gary Benson <gbenson@redhat.com>
10263
10264 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10265 (target_fileio_fstat): New declaration.
10266 * target.c (target_fileio_fstat): New function.
10267 * inf-child.c (inf_child_fileio_fstat): Likewise.
10268 (inf_child_target): Initialize to_fileio_fstat.
10269 * remote.c (init_remote_ops): Likewise.
10270
10271 2015-04-01 Sasha Smundak <asmundak@google.com>
10272
10273 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10274 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10275 (py-unwind.o): New recipe.
10276 * NEWS: mention Python frame unwinding.
10277 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10278 gdb/unwinder.py and gdb/command/unwinder.py
10279 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10280 list.
10281 (execute_unwinders): New function.
10282 * python/lib/gdb/command/unwinders.py: New file.
10283 * python/lib/gdb/unwinder.py: New file.
10284 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10285 (objfpy_dealloc): Decrement frame_unwinders reference count.
10286 (objfpy_initialize): Create frame_unwinders list.
10287 (objfpy_get_frame_unwinders): New function.
10288 (objfpy_set_frame_unwinders): Ditto.
10289 (objfile_getset): Add frame_unwinders attribute to Objfile.
10290 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10291 (pspy_dealloc): Decrement frame_unwinders reference count.
10292 (pspy_initialize): Create frame_unwinders list.
10293 (pspy_get_frame_unwinders): New function.
10294 (pspy_set_frame_unwinders): Ditto.
10295 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10296 * python/py-unwind.c: New file.
10297 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10298 (objpy_get_frame_unwinders): New prototype.
10299 (gdbpy_initialize_unwind): New prototype.
10300 * python/python.c (gdbpy_apply_type_printers): Call
10301 gdbpy_initialize_unwind.
10302
10303 2015-04-01 Pedro Alves <palves@redhat.com>
10304
10305 * infrun.c (resume): Check currently_stepping after clearing
10306 stepped_breakpoint, not before.
10307
10308 2015-04-01 Pedro Alves <palves@redhat.com>
10309
10310 * infrun.c (print_target_wait_results): Print all the ptid
10311 elements.
10312
10313 2015-04-01 Pedro Alves <palves@redhat.com>
10314
10315 * infrun.c (keep_going): Also discard cleanups if inserting
10316 breakpoints fails.
10317
10318 2015-04-01 Pedro Alves <palves@redhat.com>
10319
10320 * infrun.c (wait_for_inferior): Install the
10321 finish_thread_state_cleanup cleanup across the whole function, not
10322 just around handle_inferior_event.
10323
10324 2015-04-01 Pedro Alves <palves@redhat.com>
10325
10326 * infrun.c (resume) <step past permanent breakpoint>: Use
10327 do_target_resume.
10328
10329 2015-04-01 Pedro Alves <palves@redhat.com>
10330
10331 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10332
10333 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10334
10335 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10336
10337 2015-04-01 Pedro Alves <palves@redhat.com>
10338
10339 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10340 list if it was marked exited.
10341
10342 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10343
10344 * configure: Regenerated.
10345
10346 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10347 Jan Kratochvil <jan.kratochvil@redhat.com>
10348 Oleg Nesterov <oleg@redhat.com>
10349
10350 PR corefiles/16092
10351 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10352 New enum identifying the various options of the coredump_filter
10353 file.
10354 (struct smaps_vmflags): New struct.
10355 (use_coredump_filter): New variable.
10356 (decode_vmflags): New function.
10357 (mapping_is_anonymous_p): Likewise.
10358 (dump_mapping_p): Likewise.
10359 (linux_find_memory_regions_full): New variables
10360 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10361 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
10362 parsing of its information. Implement memory mapping filtering
10363 based on its contents.
10364 (show_use_coredump_filter): New function.
10365 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
10366 * NEWS: Mention the possibility of using the
10367 '/proc/PID/coredump_filter' file when generating a corefile.
10368 Mention new command 'set use-coredump-filter'.
10369
10370 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10371
10372 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
10373 read_memory_unsigned_integer.
10374
10375 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
10376
10377 * Makefile.in (ZLIB): New.
10378 (ZLIBINC): Likewise.
10379 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10380 (CLIBS): Add $(ZLIB).
10381 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10382 Add -lz to LIBS.
10383 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10384 * top.c (print_gdb_configuration): Remove --with-zlib and
10385 --without-zlib.
10386 * config.in: Regenerated.
10387 * configure: Likewise.
10388
10389 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10390
10391 * NEWS: Mention info os cpus support.
10392 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10393 (struct osdata_type): Add cpus entry, reorder the entries in
10394 alphabetical order.
10395
10396 2015-03-31 Matthias Klose <doko@ubuntu.com>
10397
10398 * compile/compile.c (compile_to_object): Allow triplets with or
10399 without vendor set.
10400
10401 2015-03-30 Doug Evans <dje@google.com>
10402
10403 PR c++/18141
10404 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10405 klass in VAR_DOMAIN.
10406
10407 2015-03-30 Gary Benson <gbenson@redhat.com>
10408
10409 * remote.c (remote_mourn_1): Remove function. Update all callers
10410 to use remote_mourn.
10411 (extended_remote_mourn_1): Remove function. Update all callers
10412 to use extended_remote_mourn.
10413 (extended_remote_attach_1): Remove function. Update all callers
10414 to use extended_remote_attach.
10415
10416 2015-03-28 James Bowman <james.bowman@ftdichip.com>
10417
10418 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10419 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10420 (ALLDEPFILES): Add ft32-tdep.c.
10421 * configure.tgt: Add FT32 entry.
10422 * ft32-tdep.c: New file, FT32 target-dependent code.
10423 * ft32-tdep.h: New file, FT32 target-dependent code.
10424
10425 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10426
10427 Revert:
10428 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10429 Code cleanup.
10430 * printcmd.c (print_command_1): Move expr variable scope.
10431
10432 2015-03-27 Joel Brobecker <brobecker@adacore.com>
10433
10434 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10435
10436 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10437
10438 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10439 sections.
10440
10441 2015-03-26 Joel Brobecker <brobecker@adacore.com>
10442
10443 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10444 exception raised while parsing the probe arguments.
10445 Force parsing to be done using the C language parser.
10446 * expression.h (parse_expression_with_language): Declare.
10447 * parse.c (parse_expression_with_language): New function.
10448
10449 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10450
10451 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10452
10453 2015-03-26 Andy Wingo <wingo@igalia.com>
10454
10455 PR symtab/18148
10456 * dwarf2read.c (struct partial_die_info): Add has_const_value
10457 member.
10458 (add_partial_symbol): Don't punt on symbols that have const_value
10459 attributes.
10460 (read_partial_die): Detect DW_AT_const_value.
10461
10462 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10463
10464 Code cleanup.
10465 * printcmd.c (print_command_1): Move expr variable scope.
10466
10467 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10468
10469 Code cleanup.
10470 * printcmd.c (validate_format): Make the parameter cmdname const.
10471
10472 2015-03-26 Don Breazeal <donb@codesourcery.com>
10473
10474 * remote.c (_initialize_remote): Update comment.
10475
10476 2015-03-26 Pedro Alves <palves@redhat.com>
10477 Jon TURNEY <jon.turney@dronecode.org.uk>
10478
10479 * coffread.c (coff_symfile_read): When constructing the name of an
10480 import stub symbol from import symbol for amd64, only skip the
10481 char after _imp_ if the target is underscored (like i386) and the
10482 char is indeed the target's leading char.
10483
10484 2015-03-25 Pedro Alves <palves@redhat.com>
10485
10486 * target.h <to_async>: Replace 'callback' and 'context' parameters
10487 with boolean 'enable' parameter.
10488 (target_async): Replace CALLBACK and CONTEXT parameters with
10489 boolean ENABLE parameter.
10490 * inf-loop.c (inferior_event_handler): Adjust.
10491 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10492 (linux_nat_resume): Adjust.
10493 (async_client_callback, async_client_context): Delete.
10494 (handle_target_event): Call inferior_event_handler directly.
10495 (linux_nat_async): Replace 'callback' and 'context' parameters
10496 with boolean 'enable' parameter. Adjust. Remove references to
10497 async_client_callback and async_client_context.
10498 (linux_nat_close): Adjust.
10499 * record-btrace.c (record_btrace_async): Replace 'callback' and
10500 'context' parameters with boolean 'enable' parameter. Adjust.
10501 (record_btrace_resume): Adjust.
10502 * record-full.c (record_full_async): Replace 'callback' and
10503 'context' parameters with boolean 'enable' parameter. Adjust.
10504 (record_full_resume, record_full_core_resume): Adjust.
10505 * remote.c (struct remote_state) <async_client_callback,
10506 async_client_context>: Delete fields.
10507 (remote_start_remote, extended_remote_attach_1, remote_resume)
10508 (extended_remote_create_inferior): Adjust.
10509 (remote_async_serial_handler): Call inferior_event_handler
10510 directly.
10511 (remote_async): Replace 'callback' and 'context' parameters with
10512 boolean 'enable' parameter. Adjust.
10513 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10514 Adjust.
10515 * target-delegates.c: Regenerate.
10516
10517 2015-03-25 Gary Benson <gbenson@redhat.com>
10518 Pedro Alves <palves@redhat.com>
10519
10520 * target.c (fileio_ft_t): New typedef, define object vector.
10521 (fileio_fhandles): New static variable.
10522 (is_closed_fileio_fh): New macro.
10523 (lowest_closed_fd): New static variable.
10524 (acquire_fileio_fd): New function.
10525 (release_fileio_fd): Likewise.
10526 (fileio_fd_to_fh): New macro.
10527 (target_fileio_open): Wrap the file descriptor on success.
10528 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10529 (target_fileio_pread): Likewise.
10530 (target_fileio_close): Likewise.
10531
10532 2015-03-24 Pedro Alves <palves@redhat.com>
10533
10534 * thread.c (thread_apply_all_command): Take exited threads into
10535 account.
10536
10537 2015-03-24 Pedro Alves <palves@redhat.com>
10538
10539 * infrun.c (resume, proceed): Mention
10540 switch_back_to_stepped_thread, not switch_back_to_stepping.
10541
10542 2015-03-24 Pedro Alves <palves@redhat.com>
10543
10544 * infrun.c (user_visible_resume_ptid): Rewrite going from
10545 most-locked to unlocked instead of the opposite. Move comment ...
10546 * infrun.h (user_visible_resume_ptid): ... here.
10547
10548 2015-03-24 Pedro Alves <palves@redhat.com>
10549
10550 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10551 to resume the event lwp. Use the lwp's ptid instead of the passed
10552 in (maybe wildcard) ptid.
10553 (stop_wait_callback): Tweak debug log output.
10554 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10555 TRAP_TRACE.
10556 (linux_nat_filter_event): In debug output, distinguish a
10557 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10558 before trying to resume the lwp.
10559
10560 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10561
10562 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10563 pointer indirection.
10564 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10565 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10566
10567 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10568
10569 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10570 Renames DYN_ATTR_DATA_LOCATION.
10571 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10572 DYN_ATTR_DATA_LOCATION.
10573 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10574 instead of DYN_ATTR_DATA_LOCATION.
10575
10576 2015-03-24 Pedro Alves <palves@redhat.com>
10577
10578 * breakpoint.c (until_break_command): Adjust call to proceed.
10579 * gdbthread.h (struct thread_control_state) <stepping_command>:
10580 New field.
10581 * infcall.c (run_inferior_call): Adjust call to proceed.
10582 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10583 Adjust calls to proceed.
10584 (set_step_frame): Set the current thread's step_start_function
10585 here.
10586 (step_once): Adjust calls to proceed.
10587 (jump_command, signal_command, until_next_command)
10588 (finish_backward, finish_forward, proceed_after_attach_callback)
10589 (attach_command_post_wait): Adjust calls to proceed.
10590 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10591 (do_target_resume): New function, factored out from ...
10592 (resume): ... here. Remove 'step' parameter. Instead, check
10593 currently_stepping to determine whether the thread should be
10594 single-stepped.
10595 (proceed): Remove 'step' parameter and don't set the thread's
10596 step_start_function here. Adjust call to 'resume'.
10597 (handle_inferior_event): Adjust calls to 'resume'.
10598 (switch_back_to_stepped_thread): Use do_target_resume instead of
10599 'resume'.
10600 (keep_going): Adjust calls to 'resume'.
10601 * infrun.h (proceed): Remove 'step' parameter.
10602 (resume): Likewise.
10603 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10604 'resume'.
10605 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10606
10607 2015-03-24 Pedro Alves <palves@redhat.com>
10608
10609 * gdbthread.h (struct thread_control_state) <stepping_command>:
10610 New field.
10611 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10612 the thread's stepping_command field.
10613 * infrun.c (resume): Check the thread's stepping_command flag to
10614 determine which threads should be resumed. Rename 'entry_step'
10615 local to user_step.
10616 (clear_proceed_status_thread): Clear 'stepping_command'.
10617 (schedlock_applies): Change parameter type to struct thread_info
10618 pointer. Adjust.
10619 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10620 (switch_back_to_stepped_thread): Adjust calls to
10621 'schedlock_applies'.
10622 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10623
10624 2015-03-24 Pedro Alves <palves@redhat.com>
10625
10626 * infrun.c (step_start_function): Delete and ...
10627 * gdbthread.h (struct thread_control_state) <step_start_function>:
10628 ... now a field here.
10629 * infrun.c (clear_proceed_status_thread): Clear the thread's
10630 step_start_function.
10631 (proceed, process_event_stop_test, print_stop_event): Adjust.
10632
10633 2015-03-24 Pedro Alves <palves@redhat.com>
10634
10635 * infrun.c (proceed): No longer handle negative step.
10636
10637 2015-03-24 Gary Benson <gbenson@redhat.com>
10638
10639 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10640 (x86_linux_prepare_to_resume): Likewise.
10641 * x86-linux-nat.c (x86_linux_new_thread):
10642 Moved to nat/x86-linux.c.
10643 (x86_linux_prepare_to_resume): Likewise.
10644 * nat/x86-linux.c (x86_linux_new_thread): New function.
10645 (x86_linux_prepare_to_resume): Likewise.
10646
10647 2015-03-24 Gary Benson <gbenson@redhat.com>
10648
10649 * nat/x86-linux-dregs.h: New file.
10650 * nat/x86-linux-dregs.c: Likewise.
10651 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10652 (x86-linux-dregs.o): New rule.
10653 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10654 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10655 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10656 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10657 (x86_linux_dr_get): Likewise.
10658 (x86_linux_dr_set): Likewise.
10659 (x86_linux_dr_get_addr): Likewise.
10660 (x86_linux_dr_get_control): Likewise.
10661 (x86_linux_dr_get_status): Likewise.
10662 (update_debug_registers_callback): Likewise.
10663 (x86_linux_dr_set_control): Likewise.
10664 (x86_linux_dr_set_addr): Likewise.
10665 (x86_linux_update_debug_registers): Likewise.
10666
10667 2015-03-24 Gary Benson <gbenson@redhat.com>
10668
10669 * x86-linux-nat.c (x86_linux_update_debug_registers):
10670 New function, factored out from...
10671 (x86_linux_prepare_to_resume): ...this.
10672
10673 2015-03-24 Gary Benson <gbenson@redhat.com>
10674
10675 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10676 (x86_linux_dr_set): Likewise.
10677 (x86_linux_dr_get_addr): Likewise.
10678 (x86_linux_dr_get_control): Likewise.
10679 (x86_linux_dr_get_status): Likewise.
10680 (update_debug_registers_callback): Likewise.
10681 (x86_linux_dr_set_control): Likewise.
10682 (x86_linux_dr_set_addr): Likewise.
10683 (x86_linux_prepare_to_resume): Likewise.
10684 (x86_linux_new_thread): Likewise.
10685
10686 2015-03-24 Gary Benson <gbenson@redhat.com>
10687
10688 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10689 (x86_linux_new_thread): Rename argument.
10690
10691 2015-03-24 Gary Benson <gbenson@redhat.com>
10692
10693 * nat/x86-linux.h: New file.
10694 * nat/x86-linux.c: Likewise.
10695 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10696 (x86-linux.o): New rule.
10697 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10698 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10699 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10700 (lwp_set_arch_private_info): New declaration.
10701 (lwp_arch_private_info): Likewise.
10702 * linux-nat.c (lwp_set_arch_private_info): New function.
10703 (lwp_arch_private_info): Likewise.
10704 * x86-linux-nat.c: Include nat/x86-linux.h.
10705 (arch_lwp_info): Removed structure.
10706 (update_debug_registers_callback):
10707 Use lwp_set_debug_registers_changed.
10708 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10709 and lwp_set_debug_registers_changed.
10710 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10711
10712 2015-03-24 Gary Benson <gbenson@redhat.com>
10713
10714 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10715 (lwp_is_stopped): Likewise.
10716 (lwp_stop_reason): Likewise.
10717 * linux-nat.c (ptid_of_lwp): New function.
10718 (lwp_is_stopped): Likewise.
10719 (lwp_is_stopped_by_watchpoint): Likewise.
10720 * x86-linux-nat.c (update_debug_registers_callback):
10721 Use lwp_is_stopped.
10722 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10723 lwp_stop_reason.
10724
10725 2015-03-24 Gary Benson <gbenson@redhat.com>
10726
10727 * linux-nat.h (linux_stop_lwp): Move declaration to...
10728 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10729
10730 2015-03-24 Gary Benson <gbenson@redhat.com>
10731
10732 * linux-nat.h: Include nat/linux-nat.h.
10733 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10734 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10735 (iterate_over_lwps_ftype): New typedef.
10736 (iterate_over_lwps): New declaration.
10737 * linux-nat.h (iterate_over_lwps): Update comment. Use
10738 iterate_over_lwps_ftype. Update callback return value check.
10739
10740 2015-03-24 Gary Benson <gbenson@redhat.com>
10741
10742 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10743 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10744
10745 2015-03-24 Gary Benson <gbenson@redhat.com>
10746
10747 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10748 * linux-nat.c (current_lwp_ptid): New function.
10749 * x86-linux-nat.c: Include nat/linux-nat.h.
10750 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10751 (x86_linux_dr_get_control): Likewise.
10752 (x86_linux_dr_get_status): Likewise.
10753 (x86_linux_dr_set_control): Likewise.
10754 (x86_linux_dr_set_addr): Likewise.
10755
10756 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10757
10758 PR breakpoints/16466
10759 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10760
10761 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10762
10763 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10764 * ser-unix.c (hardwire_setparity): Likewise.
10765
10766 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10767
10768 * NEWS: Mention set/show serial parity command.
10769 * monitor.c (monitor_open): Call serial_setparity.
10770 * remote.c (remote_open_1): Likewise.
10771 * ser-base.c (ser_base_serparity): New function.
10772 * ser-base.h (ser_base_setparity): Add declaration.
10773 * ser-go32.c (dos_ops): Set "setparity" field.
10774 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10775 state.Parity.
10776 (ser_windows_setparity): New function.
10777 (hardwire_ops): Add ser_windows_setparity.
10778 (tty_ops): Add NULL for setparity field.
10779 (pipe_ops): Add ser_base_setparity.
10780 (tcp_ops): Likewise.
10781 * ser-pipe.c (pipe_ops): Likewise.
10782 * ser-tcp.c (tcp_ops): Likewise.
10783 * ser-unix.c (hardwire_setparity): Add declaration.
10784 (hardwire_raw): Don't reset PARENB flag.
10785 (hardwire_setparity): New function.
10786 (hardwire_ops): Add hardwire_setparity.
10787 * serial.c (serial_setparity): New function.
10788 (serial_parity): New global.
10789 (parity_none, parity_odd, parity_even, parity_enums, parity):
10790 New static globals.
10791 (set_parity): New function.
10792 (_initialize_serial): Add set/show serial parity commands.
10793 * serial.h (GDBPARITY_NONE): Define.
10794 (GDBPARITY_ODD): Define.
10795 (GDBPARITY_EVEN): Define.
10796 (serial_setparity) Add declaration.
10797 (struct serial_ops): Add setparity field.
10798 * target.h (serial_parity): Add declaration.
10799
10800 2015-03-23 Keith Seitz <keiths@redhat.com>
10801
10802 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10803
10804 2015-03-23 Keith Seitz <keiths@redhat.com>
10805
10806 * breakpoint.c (parse_breakpoint_sals): Use
10807 linespec_lexer_lex_keyword to ascertain if the user specified
10808 a NULL location.
10809 * linespec.c [IF_KEYWORD_INDEX]: Define.
10810 (linespec_lexer_lex_keyword): Export.
10811 (struct ls_parser) <keyword_ok>: Remove.
10812 A keyword is only a keyword if not followed by another keyword.
10813 (linespec_lexer_lex_one): Remove keyword_ok handling.
10814 Add comment explaining why the parsing stream is not advanced
10815 when a keyword is seen.
10816 (parse_linespec): Remove parser->keyword_ok.
10817 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10818
10819 2015-03-23 Keith Seitz <keiths@redhat.com>
10820
10821 PR gdb/18021
10822 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10823 if we find a static method with DW_AT_vtable_elem_location.
10824
10825 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10826
10827 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10828 before the second loop, to avoid undefined behavior. Reported by
10829 Anton Blanchard <anton@samba.org>.
10830
10831 2015-03-20 Keven Boell <keven.boell@intel.com>
10832
10833 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10834 data_location usage to linked list.
10835 (resolve_dynamic_type_internal): Adapt data_location to
10836 linked list.
10837 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10838 (copy_type_recursive, copy_type): Add copy of linked list.
10839 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10840 (struct dynamic_prop_list): New struct.
10841 * dwarf2read.c (set_die_type): Set data_location data.
10842
10843 2015-03-20 Pedro Alves <palves@redhat.com>
10844
10845 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10846 inner block and make it const.
10847 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10848
10849 2015-03-20 Pedro Alves <palves@redhat.com>
10850
10851 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10852 * breakpoint.h (set_breakpoint_condition): Update declaration.
10853
10854 2015-03-20 Pedro Alves <palves@redhat.com>
10855
10856 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10857
10858 2015-03-20 Pedro Alves <palves@redhat.com>
10859
10860 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10861
10862 2015-03-20 Pedro Alves <palves@redhat.com>
10863
10864 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10865
10866 2015-03-20 Pedro Alves <palves@redhat.com>
10867
10868 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10869 (nto_init_solib_absolute_prefix): Likewise.
10870
10871 2015-03-20 Pedro Alves <palves@redhat.com>
10872
10873 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10874 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10875
10876 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10877
10878 * config/djgpp/README: Remove gdb.hp.
10879
10880 2015-03-20 Yao Qi <yao.qi@linaro.org>
10881
10882 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10883 set_gdbarch_cannot_step_breakpoint.
10884
10885 2015-03-19 Pedro Alves <palves@redhat.com>
10886
10887 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10888 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10889 instead call perror_with_name.
10890 (check_ptrace_stopped_lwp_gone): New function.
10891 (linux_resume_one_lwp): Reimplement as wrapper around
10892 linux_resume_one_lwp_throw that swallows errors if the LWP is
10893 gone.
10894 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10895 swallows errors if the LWP is gone. Use
10896 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10897
10898 2015-03-19 Pedro Alves <palves@redhat.com>
10899
10900 * linux-nat.c (status_callback): Return early if the LWP has no
10901 status pending.
10902
10903 2015-03-19 Pedro Alves <palves@redhat.com>
10904
10905 * linux-nat.c (select_event_lwp_callback): Update comment to no
10906 longer mention SIGTRAP.
10907
10908 2015-03-18 Tristan Gingold <gingold@adacore.com>
10909
10910 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10911 redirection code to ...
10912 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10913 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10914
10915 2015-03-18 Gary Benson <gbenson@redhat.com>
10916
10917 (remote_protocol_features): Remove the "vFile:fstat" feature.
10918 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10919
10920 2015-03-11 Yao Qi <yao.qi@linaro.org>
10921
10922 PR tdep/18107
10923 * aarch64-linux-tdep.c: Include xml-syscall.h
10924 (aarch64_linux_get_syscall_number): New function.
10925 (aarch64_linux_init_abi): Call
10926 set_gdbarch_get_syscall_number.
10927 * syscalls/aarch64-linux.xml: New file.
10928
10929 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10930
10931 * ser-base.h (ser_base_setstopbits): Change second argument name
10932 from "rate" to "num".
10933
10934 2015-03-17 Gary Benson <gbenson@redhat.com>
10935 Luke Allardyce <lukeallardyce@gmail.com>
10936
10937 PR gdb/18131
10938 * common/common-remote-fileio.h (sys/stat.h): New include.
10939 (stuct stat): Remove forward declaration.
10940
10941 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10942
10943 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10944 before writing core register notes.
10945
10946 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10947 Pedro Alves <palves@redhat.com>
10948
10949 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10950 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10951 (tgoto): Wrap with extern "C".
10952
10953 2015-03-16 Pedro Alves <palves@redhat.com>
10954 Yuanhui Zhang <asmwarrior@gmail.com>
10955
10956 * stub-termcap.c (tputs): Change prototype.
10957
10958 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10959 Pedro Alves <palves@redhat.com>
10960
10961 * windows-nat.c (struct thread_info_struct): Rename to ...
10962 (struct windows_thread_info_struct): ... this.
10963 (thread_info): Rename to ...
10964 (windows_thread_info): ... this.
10965 All users updated.
10966
10967 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10968 Pedro Alves <palves@redhat.com>
10969
10970 * NEWS: New Removed targets and native configurations.
10971
10972 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10973
10974 Remove HPUX.
10975 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10976 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10977 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10978 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10979 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10980 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10981 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10982 hppa-hpux-tdep.c.
10983 * config/ia64/hpux.mh: Remove file.
10984 * config/pa/hpux.mh: Remove file.
10985 * configure: Rebuilt.
10986 * configure.ac (dlgetmodinfo, somread.o): Remove.
10987 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10988 (ia64-*-hpux*): Remove its float format exception.
10989 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10990 * hppa-hpux-nat.c: Remove file.
10991 * hppa-hpux-tdep.c: Remove file.
10992 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10993 Move them here from hppa-tdep.h
10994 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10995 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10996 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10997 Move them to hppa-tdep.c.
10998 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10999 declarations.
11000 * ia64-hpux-nat.c: Remove file.
11001 * ia64-hpux-tdep.c: Remove file.
11002 * ia64-hpux-tdep.h: Remove file.
11003 * inf-ttrace.c: Remove file.
11004 * inf-ttrace.h: Remove file.
11005 * solib-ia64-hpux.c: Remove file.
11006 * solib-ia64-hpux.h: Remove file.
11007 * solib-pa64.c: Remove file.
11008 * solib-pa64.h: Remove file.
11009 * solib-som.c: Remove file.
11010 * solib-som.h: Remove file.
11011 * somread.c: Remove file.
11012
11013 2015-03-13 John Baldwin <jhb@FreeBSD.org>
11014
11015 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11016 * config.in: Regenerate.
11017 * configure: Regenerate.
11018 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
11019 define.
11020 (fbsd_find_memory_regions): Use kinfo_getvmmap to
11021 enumerate memory regions if present.
11022
11023 2015-03-13 John Baldwin <jhb@FreeBSD.org>
11024
11025 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11026 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11027 expressions.
11028 (i386fbsd_sigtramp_p): Likewise.
11029
11030 2015-03-12 John Baldwin <jhb@FreeBSD.org>
11031
11032 * MAINTAINERS (Write After Approval): Add John Baldwin.
11033
11034 2015-03-12 Gary Benson <gbenson@redhat.com>
11035
11036 * solib.c (_initialize_solib): Make "set/show sysroot" use
11037 add_setshow_optional_filename_cmd so it can be restored to
11038 empty after being set.
11039
11040 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11041
11042 * Makefile.in (SFILES): New source break-catch-syscall.c.
11043 (COMMON_OBS): New object break-catch-syscall.o.
11044 * break-catch-syscall.c: New file.
11045 * breakpoint.c: Remove inclusion of "xml-syscall.h".
11046 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11047 (struct syscall_catchpoint): Likewise.
11048 (dtor_catch_syscall): Likewise.
11049 (catch_syscall_inferior_data): Likewise.
11050 (struct catch_syscall_inferior_data): Likewise.
11051 (get_catch_syscall_inferior_data): Likewise.
11052 (catch_syscall_inferior_data_cleanup): Likewise.
11053 (insert_catch_syscall): Likewise.
11054 (remove_catch_syscall): Likewise.
11055 (breakpoint_hit_catch_syscall): Likewise.
11056 (print_it_catch_syscall): Likewise.
11057 (print_one_catch_syscall): Likewise.
11058 (print_mention_catch_syscall): Likewise.
11059 (print_recreate_catch_syscall): Likewise.
11060 (catch_syscall_breakpoint_ops): Likewise.
11061 (syscall_catchpoint_p): Likewise.
11062 (create_syscall_event_catchpoint): Likewise.
11063 (catch_syscall_split_args): Likewise.
11064 (catch_syscall_command_1): Likewise.
11065 (is_syscall_catchpoint_enabled): Likewise.
11066 (catch_syscall_enabled): Likewise.
11067 (catching_syscall_number): Likewise.
11068 (catch_syscall_completer): Likewise.
11069 (clear_syscall_counts): Likewise.
11070 (initialize_breakpoint_ops): Move initialization of syscall
11071 catchpoints to break-catch-syscall.c.
11072 (_initialize_breakpoint): Move code related to syscall catchpoints
11073 to break-catch-syscall.c.
11074
11075 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11076
11077 * breakpoint.c (breakpoint_find_if): New function.
11078 * breakpoint.h (breakpoint_find_if): New prototype.
11079
11080 2015-03-11 Gary Benson <gbenson@redhat.com>
11081
11082 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11083 * remote-fileio.c (remote_fileio_to_host_uint): New function.
11084 (remote_fileio_to_host_ulong): Likewise.
11085 (remote_fileio_to_host_mode): Likewise.
11086 (remote_fileio_to_host_time): Likewise.
11087 (remote_fileio_to_host_stat): Likewise.
11088 * remote.c (PACKET_vFile_fstat): New enum value.
11089 (remote_protocol_features): Register the "vFile:fstat" feature.
11090 (remote_hostio_fstat): New function.
11091 (remote_bfd_iovec_stat): Use the above.
11092 (_initialize_remote): Register new "set/show remote
11093 hostio-fstat-packet" command.
11094 * symfile.c (separate_debug_file_exists): Update comment.
11095 * NEWS: Announce new vFile:fstat packet.
11096
11097 2015-03-11 Gary Benson <gbenson@redhat.com>
11098
11099 * common/common-remote-fileio.h: New file.
11100 * common/common-remote-fileio.c: Likewise.
11101 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11102 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11103 (COMMON_OBS): Add common-remote-fileio.o.
11104 (common-remote-fileio.o): New rule.
11105 * remote-fileio.h (common-remote-fileio.h): New include.
11106 * remote-fileio.c (gdb/fileio.h): Do not include.
11107 (remote_fileio_to_be): Moved to common-remote-fileio.h.
11108 (remote_fileio_to_fio_uint): Likewise.
11109 (remote_fileio_to_fio_time): Likewise.
11110 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11111 (remote_fileio_to_fio_mode): Likewise.
11112 (remote_fileio_to_fio_ulong): Likewise.
11113 (remote_fileio_to_fio_stat): Likewise.
11114
11115 2015-03-11 Andy Wingo <wingo@igalia.com>
11116
11117 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11118 we were checking the cached type, not the cached dynamic type.
11119
11120 2015-03-11 Andy Wingo <wingo@igalia.com>
11121
11122 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11123 other strings, as these are on the GC'd heap, and will be
11124 collected along with the smob.
11125
11126 2015-03-11 Andy Wingo <wingo@igalia.com>
11127
11128 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11129 (objfile_functions): Bind gdbscm_objfile_progspace to
11130 objfile-progspace.
11131 * guile/lib/gdb.scm: Add objfile-progspace to exports.
11132
11133 2015-03-11 Andy Wingo <wingo@igalia.com>
11134
11135 * guile/guile.c (_initialize_guile): Disable automatic
11136 finalization, if Guile offers us that possibility.
11137 * guile/guile.c (call_initialize_gdb_module):
11138 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11139 finalizers in appropriate places.
11140 * configure.ac (AC_TRY_LIBGUILE): Add a check for
11141 scm_set_automatic_finalization_enabled.
11142 * configure: Regenerated.
11143
11144 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11145
11146 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11147 SAL, if possible.
11148
11149 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11150
11151 * s390-linux-nat.c (struct arch_lwp_info): New.
11152 (s390_fix_watch_points): Rename to...
11153 (s390_prepare_to_resume): ...this. Skip the PER info update
11154 unless the watch points have changed.
11155 (s390_refresh_per_info, s390_new_thread): New functions.
11156 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11157 s390_fix_watch_points.
11158 (s390_remove_watchpoint): Likewise.
11159 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11160 Register s390_prepare_to_resume.
11161
11162 2015-03-09 Pedro Alves <palves@redhat.com>
11163
11164 Revert:
11165 2015-03-07 Pedro Alves <palves@redhat.com>
11166 * common/gdb_socket.h: New file.
11167 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11168 sys/socket.h.
11169 (net_open): Use union gdb_sockaddr_u.
11170
11171 2015-03-07 Pedro Alves <palves@redhat.com>
11172
11173 * configure.ac (build_warnings): Move -Wmissing-prototypes
11174 -Wdeclaration-after-statement -Wmissing-parameter-type
11175 -Wold-style-declaration -Wold-style-definition to the C-specific
11176 set.
11177 * configure: Regenerate.
11178
11179 2015-03-07 Pedro Alves <palves@redhat.com>
11180
11181 * common/gdb_socket.h: New file.
11182 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11183 sys/socket.h.
11184 (net_open): Use union gdb_sockaddr_u.
11185
11186 2015-03-07 Pedro Alves <palves@redhat.com>
11187
11188 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11189 (exceptions_state_mc_action_iter)
11190 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11191 Don't define.
11192 [__cplusplus] (try_scope_depth): New global.
11193 [__cplusplus] (exception_try_scope_entry)
11194 (exception_try_scope_exit, gdb_exception_sliced_copy)
11195 (exception_rethrow): New functions.
11196 (throw_exception): In C++ mode, throw
11197 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11198 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11199 (throw_it): In C++ mode, use try_scope_depth.
11200 * common/common-exceptions.h [!__cplusplus]
11201 (exceptions_state_mc_action_iter)
11202 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11203 Don't declare.
11204 [__cplusplus] (exception_try_scope_entry)
11205 (exception_try_scope_exit, exception_rethrow): Declare.
11206 [__cplusplus] (struct exception_try_scope): New struct.
11207 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11208 C++ exceptions.
11209 (struct gdb_exception_RETURN_MASK_ALL)
11210 (struct gdb_exception_RETURN_MASK_ERROR)
11211 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11212
11213 2015-03-07 Pedro Alves <palves@redhat.com>
11214
11215 * main.c (handle_command_errors): Remove volatile qualifier from
11216 parameter.
11217
11218 2015-03-07 Pedro Alves <palves@redhat.com>
11219
11220 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11221 TRY and CATCH.
11222 * gdbtypes.c (safe_parse_type): Remove empty line.
11223 (types_deeply_equal):
11224 * guile/scm-frame.c (gdbscm_frame_name):
11225 * linux-thread-db.c (find_new_threads_once):
11226 * python/py-breakpoint.c (bppy_get_commands):
11227 * record-btrace.c (record_btrace_insert_breakpoint)
11228 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11229 (record_btrace_start_replaying): Adjust to avoid code between TRY
11230 and CATCH.
11231
11232 2015-03-07 Pedro Alves <palves@redhat.com>
11233
11234 * common/common-exceptions.c (struct catcher) <exception>: No
11235 longer a pointer to volatile exception. Now an exception value.
11236 <mask>: Delete field.
11237 (exceptions_state_mc_init): Remove all parameters. Adjust.
11238 (exceptions_state_mc): No longer pop the catcher here.
11239 (exceptions_state_mc_catch): New function.
11240 (throw_exception): Adjust.
11241 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11242 all parameters.
11243 (exceptions_state_mc_catch): Declare.
11244 (TRY_CATCH): Rename to ...
11245 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11246 (CATCH, END_CATCH): New.
11247 All callers adjusted.
11248
11249 2015-03-07 Tom Tromey <tromey@redhat.com>
11250
11251 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11252
11253 2015-03-07 Pedro Alves <palves@redhat.com>
11254
11255 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11256 (amd64_epilogue_frame_cache): Normal exception handling code.
11257 * break-catch-throw.c (check_status_exception_catchpoint)
11258 (re_set_exception_catchpoint): Ditto.
11259 * cli/cli-interp.c (safe_execute_command):
11260 * cli/cli-script.c (script_from_file): Ditto.
11261 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11262 Ditto.
11263 * compile/compile-object-run.c (compile_object_run): Ditto.
11264 * cp-abi.c (baseclass_offset): Ditto.
11265 * cp-valprint.c (cp_print_value): Ditto.
11266 * exceptions.c (catch_exceptions_with_msg):
11267 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11268 * frame.c (get_frame_address_in_block_if_available): Ditto.
11269 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11270 (i386_sigtramp_frame_cache): Ditto.
11271 * infcmd.c (post_create_inferior): Ditto.
11272 * linespec.c (parse_linespec, find_linespec_symbols):
11273 * p-valprint.c (pascal_object_print_value): Ditto.
11274 * parse.c (parse_expression_for_completion): Ditto.
11275 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11276 * remote.c (remote_get_noisy_reply): Ditto.
11277 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11278 * solib-svr4.c (solib_svr4_r_map): Ditto.
11279
11280 2015-03-06 Gary Benson <gbenson@redhat.com>
11281
11282 * common/common-utils.h (startswith): New inline function.
11283 All places where this logic was used updated to use the above.
11284
11285 2015-03-05 Pedro Alves <palves@redhat.com>
11286
11287 PR gdb/18002
11288 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11289 after reading the breakpoint's shadow memory.
11290
11291 2015-03-05 Mark Kettenis <kettenis@gnu.org>
11292
11293 * hppabsd-nat.c: Remove file.
11294 * hppaobsd-nat.c: New file.
11295 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11296 hppaobsd-nat.c.
11297 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11298 hppaobsd-nat.o.
11299
11300 2015-03-04 Pedro Alves <palves@redhat.com>
11301
11302 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11303 (target_decr_pc_after_break): Delete declaration.
11304 * target.c (default_target_decr_pc_after_break)
11305 (target_decr_pc_after_break): Delete.
11306 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11307 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11308 * linux-thread-db.c (check_event): Likewise.
11309 * infrun.c (adjust_pc_after_break): Likewise.
11310 * darwin-nat.c (cancel_breakpoint): Likewise.
11311 * aix-thread.c (aix_thread_wait): Likewise.
11312 * target-delegates.c: Regenerate.
11313
11314 2015-03-04 Pedro Alves <palves@redhat.com>
11315
11316 * linux-nat.c (save_sigtrap): Check for breakpoints before
11317 checking watchpoints.
11318 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11319 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11320 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11321 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11322 (linux_nat_stopped_by_sw_breakpoint)
11323 (linux_nat_supports_stopped_by_sw_breakpoint)
11324 (linux_nat_stopped_by_hw_breakpoint)
11325 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11326 (linux_nat_wait_1): Don't re-increment the PC if relying on
11327 SIGTRAP's siginfo->si_code.
11328 (linux_nat_add_target): Install new target methods.
11329 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11330 offset if the target already adjusted the PC.
11331 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11332 (GDB_ARCH_TRAP_BRKPT): New.
11333 (TRAP_HWBKPT): Define if not already defined.
11334
11335 2015-03-04 Pedro Alves <palves@redhat.com>
11336
11337 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11338 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11339 Delete field.
11340 <stop_reason>: New field.
11341 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11342 (packet_set_cmd_state): New function.
11343 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11344 features.
11345 (remote_query_supported): If not disabled with the corresponding
11346 "set remote foo-packet" command, report support for the swbreak
11347 and hwbreak features.
11348 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11349 field.
11350 <stop_reason>: New field.
11351 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11352 (remote_wait_as): Adjust.
11353 (remote_stopped_by_sw_breakpoint)
11354 (remote_supports_stopped_by_sw_breakpoint)
11355 (remote_stopped_by_hw_breakpoint)
11356 (remote_supports_stopped_by_hw_breakpoint): New functions.
11357 (remote_stopped_by_watchpoint): New function.
11358 (init_remote_ops): Install them.
11359 (_initialize_remote): Register new "set/show remote
11360 swbreak-feature-packet" and "set/show remote
11361 swbreak-feature-packet" commands.
11362
11363 2015-03-04 Pedro Alves <palves@redhat.com>
11364
11365 * btrace.h: Include target/waitstatus.h.
11366 (struct btrace_thread_info) <stop_reason>: New field.
11367 * record-btrace.c (record_btrace_step_thread): Use
11368 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11369 (record_btrace_decr_pc_after_break): Delete.
11370 (record_btrace_stopped_by_sw_breakpoint)
11371 (record_btrace_supports_stopped_by_sw_breakpoint)
11372 (record_btrace_stopped_by_hw_breakpoint)
11373 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
11374 (init_record_btrace_ops): Install them.
11375 * record-full.c (record_full_hw_watchpoint): Delete and replace
11376 with ...
11377 (record_full_stop_reason): ... this throughout.
11378 (record_full_exec_insn): Adjust.
11379 (record_full_wait_1): Adjust. No longer re-increment the PC.
11380 (record_full_wait_1): Adjust. Use
11381 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11382 (record_full_stopped_by_watchpoint): Adjust.
11383 (record_full_stopped_by_sw_breakpoint)
11384 (record_full_supports_stopped_by_sw_breakpoint)
11385 (record_full_supports_stopped_by_sw_breakpoint)
11386 (record_full_stopped_by_hw_breakpoint)
11387 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11388 (init_record_full_ops, init_record_full_core_ops): Install them.
11389 * record.c (record_check_stopped_by_breakpoint): New function.
11390 * record.h: Include target/waitstatus.h.
11391 (record_check_stopped_by_breakpoint): New declaration.
11392
11393 2015-03-04 Pedro Alves <palves@redhat.com>
11394
11395 enum lwp_stop_reason -> enum target_stop_reason
11396 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11397 (linux_nat_stopped_by_watchpoint, status_callback)
11398 (linux_nat_wait_1): Adjust.
11399 * linux-nat.h (enum lwp_stop_reason): Delete.
11400 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11401 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11402 * target/waitstatus.h (enum target_stop_reason): New.
11403
11404 2015-03-04 Pedro Alves <palves@redhat.com>
11405
11406 * breakpoint.c (need_moribund_for_location_type): New function.
11407 (bpstat_stop_status): Don't skipping checking moribund locations
11408 of breakpoint types which the target tell caused a stop.
11409 (program_breakpoint_here_p): New function, factored out from ...
11410 (bp_loc_is_permanent): ... this.
11411 (update_global_location_list): Don't create a moribund location if
11412 the target supports reporting stops of the type of the removed
11413 breakpoint.
11414 * breakpoint.h (program_breakpoint_here_p): New declaration.
11415 * infrun.c (adjust_pc_after_break): Return early if the target has
11416 already adjusted the PC. Add comments.
11417 (handle_signal_stop): If nothing explains a signal, and the target
11418 tells us the stop was caused by a software breakpoint, check if
11419 there's a breakpoint instruction in the memory. If so, adjust the
11420 PC before presenting the stop to the user. Otherwise, ignore the
11421 trap. If nothing explains a signal, and the target tells us the
11422 stop was caused by a hardware breakpoint, ignore the trap.
11423 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11424 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11425 to_supports_stopped_by_hw_breakpoint>: New fields.
11426 (target_stopped_by_sw_breakpoint)
11427 (target_supports_stopped_by_sw_breakpoint)
11428 (target_stopped_by_hw_breakpoint)
11429 (target_supports_stopped_by_hw_breakpoint): Define.
11430 * target-delegates.c: Regenerate.
11431
11432 2015-03-04 Pedro Alves <palves@redhat.com>
11433
11434 * infrun.c (follow_fork_inferior): Use the whole of the
11435 inferior_ptid and pending_follow.related_pid ptids instead of
11436 building ptids from the process components. Adjust verbose output
11437 to use target_pid_to_str.
11438 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11439 inferior_ptid and pending_follow.related_pid ptids instead of
11440 building ptids from the process components.
11441
11442 2015-03-04 Mark Kettenis <kettenis@gnu.org>
11443
11444 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11445 (inf_ptrace_insert_fork_catchpoint): New function.
11446 (inf_ptrace_remove_fork_catchpoint): New function.
11447 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11448
11449 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11450
11451 * s390-linux-tdep.c (s390_register_name): Return empty string
11452 instead of NULL for registers that shouldn't be visible.
11453
11454 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11455
11456 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11457 XML file for 64-bit targets.
11458
11459 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11460
11461 * target.h (find_default_create_inferior): Remove declaration.
11462 (find_default_attach): Likewise.
11463
11464 2015-03-03 Pedro Alves <palves@redhat.com>
11465
11466 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11467 Use ptid_get_pid to get the overall process id when resuming all
11468 threads.
11469
11470 2015-03-03 Pedro Alves <palves@redhat.com>
11471
11472 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11473 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11474 * inf-ptrace.c (get_ptrace_pid): New function.
11475 (inf_ptrace_resume): Use it.
11476 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11477 to the lower layer.
11478
11479 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11480
11481 * nat/linux-btrace.c: Include sys/utsname.h.
11482 (linux_determine_kernel_ptr_bits): New.
11483 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11484 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11485 ptr_bits.
11486
11487 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11488
11489 * btrace.c (ftrace_update_function): Treat return as tailcall for
11490 "_dl_runtime_resolve".
11491
11492 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11493
11494 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11495 * btrace.c (ftrace_debug): Do not print the line range.
11496 (ftrace_skip_file, ftrace_update_lines): Remove.
11497 (ftrace_new_function): Remove lbegin and lend initialization.
11498 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11499 * record-btrace.c (btrace_compute_src_line_range): New.
11500 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11501
11502 2015-03-02 Pedro Alves <palves@redhat.com>
11503
11504 * infrun.c (follow_exec): Delete all threads of the process except
11505 the event thread. Extended comments.
11506
11507 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11508
11509 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11510
11511 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11512
11513 * utils.h: Remove <stdbool.h> #include.
11514 (producer_is_gcc): Change return type to "int".
11515 * utils.c (producer_is_gcc): Change return type to int.
11516 Return 1 instead of true, and 0 instead of false.
11517 Adjust function documentation accordingly.
11518
11519 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11520
11521 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11522 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11523 present.
11524 (s390_linux_store_inferior_registers): Likewise.
11525 (s390_get_hwcap): Remove function. Embed its logic...
11526 (s390_read_description): ...here. Yield a target description with
11527 vector registers if applicable.
11528 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11529 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11530 "features/s390x-tevx-linux64.c".
11531 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11532 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11533 for "GNU/Linux-specific registers".
11534 (s390_dwarf_reg_r0l): New enum value.
11535 (s390_dwarf_reg_to_regnum): Support vector registers.
11536 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11537 of GPR lower halves.
11538 (regnum_is_vxr_full): New function.
11539 (s390_register_name): New function.
11540 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11541 f0-f15 and v0l-v15l.
11542 (s390_pseudo_register_type): Likewise.
11543 (s390_pseudo_register_read): Likewise.
11544 (s390_pseudo_register_write): Likewise.
11545 (s390_value_from_register): Account for the fact that values are
11546 placed left-justified in vector registers.
11547 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11548 the vector reggroup and omit them from the general reggroup.
11549 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11550 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11551 (s390_iterate_over_regset_sections): Add iterations for the two
11552 new vector regsets.
11553 (s390_core_read_description): Yield a target description with
11554 vector registers if applicable.
11555 (s390_gdbarch_init): Handle target descriptions with vector
11556 registers. Add "register_name" gdbarch method.
11557 (_initialize_s390_tdep): Call new tdesc initialization functions.
11558 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11559 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11560 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11561 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11562 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11563 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11564 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11565 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11566 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11567 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11568 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11569 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11570 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11571 (S390_NUM_REGS): Adjust value.
11572 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11573 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11574 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11575 * NEWS: Announce S/390 vector register support.
11576
11577 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11578
11579 * features/s390-tevx-linux64.xml: New file.
11580 * features/s390-vx-linux64.xml: New file.
11581 * features/s390-vx.xml: New file.
11582 * features/s390x-tevx-linux64.xml: New file.
11583 * features/s390x-vx-linux64.xml: New file.
11584 * features/Makefile (WHICH): Add s390-vx-linux64,
11585 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11586 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11587 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11588 macros.
11589 * features/s390-tevx-linux64.c: New generated file.
11590 * features/s390-vx-linux64.c: Likewise.
11591 * features/s390x-tevx-linux64.c: Likewise.
11592 * features/s390x-vx-linux64.c: Likewise.
11593 * regformats/s390-tevx-linux64.dat: Likewise.
11594 * regformats/s390-vx-linux64.dat: Likewise.
11595 * regformats/s390x-tevx-linux64.dat: Likewise.
11596 * regformats/s390x-vx-linux64.dat: Likewise.
11597
11598 2015-02-28 Doug Evans <xdje42@gmail.com>
11599
11600 * symtab.h (struct symtab) <next>: Fix comment.
11601
11602 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11603
11604 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11605 python_GdbMethods.
11606
11607 2015-02-27 Pedro Alves <palves@redhat.com>
11608
11609 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11610
11611 2015-02-27 Pedro Alves <palves@redhat.com>
11612
11613 * common/common-exceptions.h (exception_none): Declare.
11614 * common/common-exceptions.c (exception_none): Moved from
11615 exceptions.c.
11616 (exceptions_state_mc_init): Use exception_none.
11617 * exceptions.c (exception_none): Move to
11618 common/common-exceptions.c.
11619 * exceptions.h (exception_none): Move to
11620 common/common-exceptions.h.
11621
11622 2015-02-27 Pedro Alves <palves@redhat.com>
11623
11624 * main.c (catch_command_errors, catch_command_errors_const):
11625 Remove 'mask' argument. Adjust.
11626 (captured_main): Adjust callers.
11627
11628 2015-02-27 Pedro Alves <palves@redhat.com>
11629
11630 * python/python-internal.h: Include "extension-priv.h".
11631
11632 2015-02-27 Pedro Alves <palves@redhat.com>
11633
11634 * breakpoint.h (enum print_stop_action): Move further up in the
11635 file.
11636
11637 2015-02-27 Pedro Alves <palves@redhat.com>
11638
11639 * gdbarch.sh: Include regcache.h.
11640 * gdbarch.h: Regenerate.
11641
11642 2015-02-27 Pedro Alves <palves@redhat.com>
11643
11644 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11645 Remove duplicate const.
11646 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11647 duplicate const.
11648
11649 2015-02-27 Pedro Alves <palves@redhat.com>
11650
11651 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11652 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11653 * features/feature_to_c.sh: Tag the generated xml_builtin array
11654 with extern const in C++ mode.
11655
11656 2015-02-27 Tom Tromey <tromey@redhat.com>
11657
11658 * minidebug.c (struct lzma_stream): Rename to ...
11659 (struct gdb_lzma_stream): ... this.
11660 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11661
11662 2015-02-27 Pedro Alves <palves@redhat.com>
11663
11664 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11665 function.
11666 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11667 (mi_cmd_stack_list_variables): Use it.
11668
11669 2015-02-27 Pedro Alves <palves@redhat.com>
11670
11671 * x86-linux-nat.c (u_debugreg_offset): New function.
11672 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11673
11674 2015-02-27 Pedro Alves <palves@redhat.com>
11675
11676 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11677 declaration.
11678 Include break-common.h.
11679
11680 2015-02-27 Tom Tromey <tromey@redhat.com>
11681 Pedro Alves <palves@redhat.com>
11682
11683 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11684 local used to iterate over enums.
11685 * completer.c (signal_completer): Likewise.
11686 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11687 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11688 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11689 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11690 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11691 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11692 * tui-wingeneral.c (tui_refresh_all): Likewise.
11693
11694 2015-02-27 Pedro Alves <palves@redhat.com>
11695
11696 * target.h: Include "infrun.h".
11697
11698 2015-02-27 Pedro Alves <palves@redhat.com>
11699
11700 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11701
11702 2015-02-27 Pedro Alves <palves@redhat.com>
11703
11704 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11705 (IPA_SYM): Use it.
11706 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11707
11708 2015-02-27 Pedro Alves <palves@redhat.com>
11709
11710 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11711 cli_mld_erase_entire_line, and make it extern "C".
11712 * common/common-defs.h (EXTERN_C): New.
11713 * completer.c (_rl_completion_prefix_display_length)
11714 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11715 out of gdb_display_match_list_1.
11716 (_rl_qsort_string_compare): Move declaration out of
11717 gdb_display_match_list_1, and make it extern "C".
11718 * defs.h (re_comp): Use EXTERN_C.
11719 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11720 and make it extern "C".
11721 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11722 and make it extern "C".
11723 (main): Move declaration out of maintenance_set_profile_cmd.
11724 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11725 EXTERN_C.
11726
11727 2015-02-27 Pedro Alves <palves@redhat.com>
11728
11729 * python/python.c (GdbMethods): Rename to ...
11730 (python_GdbMethods): ... this and make extern.
11731 (GdbModuleDef): Rename to ...
11732 (python_GdbModuleDef): ... this and make extern.
11733
11734 2015-02-27 Pedro Alves <palves@redhat.com>
11735
11736 * record-btrace.c (set_record_btrace_cmdlist)
11737 (show_record_btrace_cmdlist): Remove redefinitions.
11738
11739 2015-02-27 Tom Tromey <tromey@redhat.com>
11740 Pedro Alves <palves@redhat.com>
11741
11742 * dwarf2-frame.c (enum cfa_how_kind, struct
11743 dwarf2_frame_state_reg_info): Move out of struct
11744 dwarf2_frame_state.
11745 * dwarf2read.c (struct tu_stats): Move out of struct
11746 dwarf2_per_objfile.
11747 (struct file_entry): Move out of struct line_header.
11748 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11749 typedef_field_list): Move out of struct field_info.
11750 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11751 Move out of struct dynamic_prop.
11752 (union type_owner, union field_location, struct field, struct
11753 range_bounds, union type_specific): Move out of struct main_type.
11754 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11755 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11756 (struct call_site_target, union call_site_parameter_u, struct
11757 call_site_parameter): Move out of struct call_site.
11758 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11759 m32c_prologue.
11760 (enum srcdest_kind): Move out of struct srcdest.
11761 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11762 * prologue-value.h (enum prologue_value_kind): Move out of struct
11763 prologue_value.
11764 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11765 gdbarch_tdep.
11766 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11767 out of struct field_info.
11768 * symfile.h (struct other_sections): Move out of struct
11769 section_addr_info.
11770 * symtab.c (struct symbol_cache_slot): Move out struct
11771 block_symbol_cache.
11772 * target-descriptions.c (enum tdesc_type_kind): Move out of
11773 typedef struct tdesc_type.
11774 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11775 struct tui_line_or_address.
11776 * value.c (enum internalvar_kind, union internalvar_data): Move
11777 out of struct internalvar.
11778 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11779 gdbarch_tdep.
11780
11781 2015-02-27 Tom Tromey <tromey@redhat.com>
11782 Pedro Alves <palves@redhat.com>
11783
11784 Rename symbols whose names are reserved C++ keywords throughout.
11785
11786 2015-02-27 Pedro Alves <palves@redhat.com>
11787
11788 * Makefile.in (COMPILER): New, get it from autoconf.
11789 (COMPILE.pre, CC_LD): Use COMPILER.
11790 (CXX): Get from autoconf instead.
11791 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11792 * acinclude.m4: Include build-with-cxx.m4.
11793 * build-with-cxx.m4: New file.
11794 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11795 Disable -Werror by default if building in C++ mode.
11796 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11797 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11798 Run supported-warning-flags tests with the C++ compiler.
11799 Save/restore CXXFLAGS too.
11800 * configure: Regenerate.
11801
11802 2015-02-27 Pedro Alves <palves@redhat.com>
11803
11804 * libiberty.m4: New file.
11805 * acinclude.m4: Include libiberty.m4.
11806 * configure.ac: Call libiberty_INIT.
11807 * config.in, configure: Regenerate.
11808
11809 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11810
11811 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11812 31-bit targets, but 64-bit targets as well.
11813 (s390_gnu_triplet_regexp): New function.
11814 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11815 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11816 method.
11817
11818 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11819
11820 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11821 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11822 from CONTEXT_DEBUGGER.
11823
11824 2015-02-26 Doug Evans <dje@google.com>
11825
11826 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11827 CHECK_TYPEDEF.
11828 (set_type_vptr_fieldno): Ditto.
11829 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11830 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11831
11832 2015-02-26 Pedro Alves <palves@redhat.com>
11833
11834 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11835 * complaints.c (vcomplaint): Pass argument FMT directly to
11836 printf-like functions instead of complaint->fmt.
11837 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11838 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11839 * compile/compile-loc2c.c (pushf, unary, binary): Add
11840 ATTRIBUTE_PRINTF.
11841 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11842 to pushf.
11843 (BINARY): Pass string literal as format string to 'binary'.
11844 * compile/compile-object-load.c (link_callbacks_einfo): Add
11845 ATTRIBUTE_PRINTF.
11846 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11847
11848 2015-02-26 Pedro Alves <palves@redhat.com>
11849
11850 * windows-termcap.c: Rename to ...
11851 * stub-termcap.c: ... this. Adjust header line.
11852 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11853 windows-termcap.c.
11854 * configure: Regenerate.
11855 * configure.ac: Refer to stub-termcap.o instead of
11856 windows-termcap.o.
11857 * gdb_curses.h: Mention stub-termcap.c instead of
11858 windows-termcap.c.
11859
11860 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11861
11862 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11863 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11864
11865 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11866
11867 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11868
11869 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11870
11871 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11872 bfd_canonicalize_symtab.
11873
11874 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11875
11876 * amd64fbsd-nat.c: Include sys/user.h.
11877 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11878 instead of KERN_PS_STRINGS to locate the signal trampoline.
11879 * i386fbsd-nat.c: Include sys/user.h.
11880 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11881 instead of KERN_PS_STRINGS to locate the signal trampoline.
11882 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11883 (amd64fbsd_sigtramp_p): New.
11884 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11885 longer set default values.
11886 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11887 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11888 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11889 (i386fbsd_freebsd4_sigtramp_start)
11890 (i386fbsd_freebsd4_sigtramp_middle)
11891 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11892 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11893 (i386fbsd_sigtramp_p): New.
11894 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11895 longer set default values.
11896 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11897
11898 2015-02-25 John Baldwin <jhb@freebsd.org>
11899
11900 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11901 get_frame_register instead of frame_unwind_register_unsigned.
11902
11903 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11904
11905 PR build/18033
11906 * compile/compile-c-support.c (c_compute_program): Change // comment.
11907 * compile/compile-object-load.c (setup_sections): Change // comment.
11908
11909 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11910
11911 PR build/18033:
11912 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11913
11914 2015-02-23 Pedro Alves <palves@redhat.com>
11915
11916 * remote.c (skip_to_semicolon): New function.
11917 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11918 special case the stop reasons that look like hex numbers
11919 upfront. Instead handle real register numbers after matching
11920 all the known stop reasons.
11921
11922 2015-02-21 Doug Evans <dje@google.com>
11923
11924 PR c++/17976, symtab/17821
11925 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11926 is_in_anonymous. All callers updated.
11927 (find_symbol_in_baseclass): Ditto.
11928 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11929 for symbols in an anonymous namespace.
11930 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11931 DW_AT_name directly.
11932 (dwarf2_name): Convert missing namespace name to
11933 CP_ANONYMOUS_NAMESPACE_STR.
11934
11935 2015-02-20 Pedro Alves <palves@redhat.com>
11936
11937 * linux-nat.c (linux_handle_extended_wait): Call
11938 thread_db_notice_clone whenever a new clone LWP is detected.
11939 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11940 functions.
11941 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11942 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11943 (linux_unstop_all_lwps): Declare.
11944 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11945 (thread_get_info_callback): Delete.
11946 (thread_from_lwp): Use td_thr_get_info and record_thread.
11947 (thread_db_attach_lwp): Delete.
11948 (thread_db_notice_clone): New function.
11949 (try_thread_db_load_1): If /proc is mounted and shows the
11950 process'es task list, walk over all LWPs and call thread_from_lwp
11951 instead of relying on td_ta_thr_iter.
11952 (attach_thread): Don't call check_thread_signals here. Split the
11953 tail part of the function (which adds the thread to the core GDB
11954 thread list) to ...
11955 (record_thread): ... this function. Call check_thread_signals
11956 here.
11957 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11958 call thread_from_lwp.
11959 (thread_db_update_thread_list): Rename to ...
11960 (thread_db_update_thread_list_org): ... this.
11961 (thread_db_update_thread_list): New function.
11962 (thread_db_find_thread_from_tid): Delete.
11963 (thread_db_get_ada_task_ptid): Simplify.
11964 * nat/linux-procfs.c: Include <sys/stat.h>.
11965 (linux_proc_task_list_dir_exists): New function.
11966 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11967
11968 2015-02-20 Pedro Alves <palves@redhat.com>
11969
11970 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11971 main LWP. Handle the case of waitpid returning 0 if we're already
11972 attached to the LWP. Don't set the LWP's last_resume_kind to
11973 resume_stop if we already knew about the LWP.
11974 (linux_nat_filter_event): Add debug logs.
11975
11976 2015-02-20 Pedro Alves <palves@redhat.com>
11977
11978 * target.h (forward_target_decr_pc_after_break): Delete
11979 declaration.
11980
11981 2015-02-20 Pedro Alves <palves@redhat.com>
11982
11983 PR threads/18006
11984 * linux-thread-db.c (thread_get_info_callback): Return early if
11985 the thread's lwp id is -1.
11986
11987 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11988
11989 GDB 7.9 released.
11990
11991 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11992
11993 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11994 (dtrace_get_probes) Change type of variable 'dof'.
11995
11996 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11997
11998 PR breakpoints/16812
11999 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12000 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12001 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12002
12003 2015-02-19 David Taylor <dtaylor@emc.com>
12004
12005 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12006
12007 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
12008
12009 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12010 function.
12011 (tui_putc): Don't call tui_handle_resize_during_io.
12012 (tui_getc): Likewise.
12013 (tui_mld_getc): Likewise.
12014 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12015 (tui_sigwinch_token): New static variable.
12016 (tui_initialize_win): Adjust documentation. Set
12017 tui_sigwinch_token.
12018 (tui_async_resize_screen): New asynchronous callback.
12019 (tui_sigwinch_handler): Adjust documentation. Asynchronously
12020 invoke tui_async_resize_screen.
12021
12022 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
12023
12024 * configure: Regenerated.
12025 * configure.ac: Use GDB_AC_TRANSFORM.
12026 * Makefile.in (aclocal_m4_deps): Added transform.m4.
12027 * acinclude.m4: sinclude transform.m4.
12028 * transform.m4: New file.
12029 (GDB_AC_TRANSFORM): New macro.
12030
12031 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12032
12033 * NEWS: Announce the support for DTrace SDT probes.
12034
12035 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12036
12037 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12038 (amd64_dtrace_parse_probe_argument): New function.
12039 (amd64_dtrace_probe_is_enabled): Likewise.
12040 (amd64_dtrace_enable_probe): Likewise.
12041 (amd64_dtrace_disable_probe): Likewise.
12042 (amd64_linux_init_abi): Register the
12043 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12044 `gdbarch_dtrace_disable_probe' and
12045 `gdbarch_dtrace_probe_is_enabled' hooks.
12046 (amd64_dtrace_disabled_probe_sequence_1): New constant.
12047 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12048 (amd64_dtrace_enable_probe_sequence): Likewise.
12049 (amd64_dtrace_disable_probe_sequence): Likewise.
12050
12051 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12052
12053 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12054 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12055 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12056 handle ELF files.
12057 * Makefile.in (SFILES): dtrace-probe.c added.
12058 * configure: Regenerate.
12059 * dtrace-probe.c: New file.
12060 (SHT_SUNW_dof): New constant.
12061 (dtrace_probe_type): New enum.
12062 (dtrace_probe_arg): New struct.
12063 (dtrace_probe_arg_s): New typedef.
12064 (struct dtrace_probe_enabler): New struct.
12065 (dtrace_probe_enabler_s): New typedef.
12066 (dtrace_probe): New struct.
12067 (dtrace_probe_is_linespec): New function.
12068 (dtrace_dof_sect_type): New enum.
12069 (dtrace_dof_dofh_ident): Likewise.
12070 (dtrace_dof_encoding): Likewise.
12071 (DTRACE_DOF_ENCODE_LSB): Likewise.
12072 (DTRACE_DOF_ENCODE_MSB): Likewise.
12073 (dtrace_dof_hdr): New struct.
12074 (dtrace_dof_sect): Likewise.
12075 (dtrace_dof_provider): Likewise.
12076 (dtrace_dof_probe): Likewise.
12077 (DOF_UINT): New macro.
12078 (DTRACE_DOF_PTR): Likewise.
12079 (DTRACE_DOF_SECT): Likewise.
12080 (dtrace_process_dof_probe): New function.
12081 (dtrace_process_dof): Likewise.
12082 (dtrace_build_arg_exprs): Likewise.
12083 (dtrace_get_arg): Likewise.
12084 (dtrace_get_probes): Likewise.
12085 (dtrace_get_probe_argument_count): Likewise.
12086 (dtrace_can_evaluate_probe_arguments): Likewise.
12087 (dtrace_evaluate_probe_argument): Likewise.
12088 (dtrace_compile_to_ax): Likewise.
12089 (dtrace_probe_destroy): Likewise.
12090 (dtrace_gen_info_probes_table_header): Likewise.
12091 (dtrace_gen_info_probes_table_values): Likewise.
12092 (dtrace_probe_is_enabled): Likewise.
12093 (dtrace_probe_ops): New variable.
12094 (info_probes_dtrace_command): New function.
12095 (_initialize_dtrace_probe): Likewise.
12096 (dtrace_type_name): Likewise.
12097
12098 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12099
12100 * gdbarch.sh (dtrace_parse_probe_argument): New.
12101 (dtrace_probe_is_enabled): Likewise.
12102 (dtrace_enable_probe): Likewise.
12103 (dtrace_disable_probe): Likewise.
12104 * gdbarch.c: Regenerate.
12105 * gdbarch.h: Regenerate.
12106
12107 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12108
12109 * stap-probe.c (stap_probe_ops): Add NULLs in the static
12110 stap_probe_ops for `enable_probe' and `disable_probe'.
12111 * probe.c (enable_probes_command): New function.
12112 (disable_probes_command): Likewise.
12113 (_initialize_probe): Define the cli commands `enable probe' and
12114 `disable probe'.
12115 (parse_probe_linespec): New function.
12116 (info_probes_for_ops): Use parse_probe_linespec.
12117 * probe.h (probe_ops): New hooks `enable_probe' and
12118 `disable_probe'.
12119
12120 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12121
12122 * probe.c (compute_probe_arg): Moved from stap-probe.c
12123 (compile_probe_arg): Likewise.
12124 (probe_funcs): Likewise.
12125 * stap-probe.c (compute_probe_arg): Moved to probe.c.
12126 (compile_probe_arg): Likewise.
12127 (probe_funcs): Likewise.
12128
12129 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12130
12131 * probe.c (print_ui_out_not_applicables): New function.
12132 (exists_probe_with_pops): Likewise.
12133 (info_probes_for_ops): Do not include column headers for probe
12134 types for which no probe has been actually found on any object.
12135 Also invoke `print_ui_out_not_applicables' in order to match the
12136 column rows with the header when probes of several types are
12137 listed.
12138 Print the "Type" column.
12139 * probe.h (probe_ops): Added a new probe operation `type_name'.
12140 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12141 (stap_type_name): New function.
12142
12143 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
12144
12145 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12146 (key_is_command_char): Delete.
12147
12148 2015-02-17 Pedro Alves <palves@redhat.com>
12149
12150 * tui/tui.c (tui_enable): Resize windows before anything
12151 might show a window.
12152
12153 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
12154
12155 PR gdb/17984
12156 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12157 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12158 call.
12159 * aarch64-tdep.h (tdesc_aarch64): Declare.
12160
12161 2015-02-12 Mark Wielaard <mjw@redhat.com>
12162
12163 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12164
12165 2015-02-13 Doug Evans <dje@google.com>
12166
12167 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12168 anonymous_namespace to is_in_anonymous for consistency with the rest
12169 of the file.
12170 (cp_lookup_bare_symbol): Fix typo in comment.
12171 (cp_search_static_and_baseclasses): Ditto.
12172 (search_symbol_list): Use vertical space in comment better.
12173 (reset_directive_searched): Ditto. Fix typo.
12174 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12175
12176 2015-02-13 Yao Qi <yao.qi@arm.com>
12177
12178 * MAINTAINERS: Update my email address.
12179
12180 2015-02-12 Doug Evans <dje@google.com>
12181
12182 * symtab.c (completion_list_add_name): Fix memory leak.
12183
12184 2015-02-12 Doug Evans <dje@google.com>
12185
12186 * completer.c (complete_line): Remove incorrect comment.
12187
12188 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12189
12190 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12191 (py_print_frame): Use RETURN_MASK_ERROR.
12192
12193 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12194
12195 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12196 function comment. Wrap all function that can throw in cleanups.
12197 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12198 cleanups.
12199
12200 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12201
12202 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12203 Remove the error label.
12204
12205 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12206
12207 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12208 with goto first, indent the former else codepath left. Put variable
12209 'elided' to a new inner block.
12210
12211 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12212
12213 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12214
12215 2015-02-11 Pedro Alves <palves@redhat.com>
12216
12217 * xcoffread.c (within_function): Delete.
12218
12219 2015-02-11 Tom Tromey <tromey@redhat.com>
12220 Pedro Alves <palves@redhat.com>
12221
12222 * breakpoint.c (base_breakpoint_ops): Delete.
12223 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12224 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12225 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12226 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12227 * python/py-arch.c (arch_object_type): Make extern.
12228 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12229 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12230 * python/py-cmd.c (cmdpy_object_type): Make extern.
12231 * python/py-continueevent.c (continue_event_object_type)
12232 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12233 parameter. Update all callers.
12234 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12235 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12236 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12237 * python/py-function.c (fnpy_object_type): Make extern.
12238 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12239 * python/py-infevents.c (call_pre_event_object_type)
12240 (inferior_call_post_event_object_type).
12241 (memory_changed_event_object_type): Make extern.
12242 * python/py-infthread.c (thread_object_type): Make extern.
12243 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12244 * python/py-linetable.c (linetable_entry_object_type)
12245 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12246 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12247 (clear_objfiles_event_object_type): Make extern.
12248 * python/py-objfile.c (objfile_object_type): Make extern.
12249 * python/py-param.c (parmpy_object_type): Make extern.
12250 * python/py-progspace.c (pspace_object_type): Make extern.
12251 * python/py-signalevent.c (signal_event_object_type): Make extern.
12252 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12253 * python/py-type.c (type_object_type, field_object_type)
12254 (type_iterator_object_type): Make extern.
12255 * python/python.c (python_extension_script_ops)
12256 (python_extension_ops): Make extern.
12257 * stap-probe.c (stap_probe_ops): Make extern.
12258
12259 2015-02-11 Pedro Alves <pedro@codesourcery.com>
12260
12261 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12262 because the event thread is not the current thread.
12263
12264 2015-02-11 Doug Evans <xdje42@gmail.com>
12265
12266 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12267 been initialized yet, return NULL.
12268
12269 2015-02-11 Doug Evans <dje@google.com>
12270
12271 * symfile.h (new_symfile_objfile): Delete.
12272 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12273 All callers updated.
12274
12275 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12276
12277 * tui/tui-io.c (tui_handle_resize_during_io): Call
12278 tui_update_gdb_sizes() after resizing the screen.
12279 * tui/tui.c (tui_enable): Resize the terminal before
12280 calling tui_update_gdb_sizes().
12281
12282 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12283
12284 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12285 line before printing a newline.
12286
12287 2015-02-11 Mark Wielaard <mjw@redhat.com>
12288
12289 * utils.c (producer_is_gcc): Return true or false.
12290
12291 2015-02-10 Mark Wielaard <mjw@redhat.com>
12292
12293 * utils.h (producer_is_gcc): Change return type to bool. Add major
12294 argument.
12295 * utils.c (producer_is_gcc): Likewise.
12296 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12297 * dwarf2read.c (check_producer): Likewise.
12298
12299 2015-02-10 Pedro Alves <palves@redhat.com>
12300
12301 * infrun.c (displaced_step_fixup): Switch to the event thread
12302 before calling gdbarch_displaced_step_fixup.
12303
12304 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12305
12306 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12307
12308 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12309
12310 * ada-varobj.c (ada_name_of_child): Constify parent.
12311 (ada_path_expr_of_child): Same.
12312 (ada_value_of_child): Same.
12313 (ada_type_of_child): Same.
12314 * c-varobj.c (c_is_path_expr_parent): Same.
12315 (c_describe_child): Same.
12316 (c_name_of_child): Same.
12317 (c_value_of_child): Same.
12318 (c_type_of_child): Same.
12319 (cplus_number_of_children): Same.
12320 (cplus_describe_child): Constify var.
12321 (cplus_name_of_child): Constify parent.
12322 (cplus_value_of_child): Same.
12323 (cplus_type_of_child): Same.
12324 * jv-varobj.c (java_name_of_child): Same.
12325 (java_value_of_child): Same.
12326 (java_type_of_child): Same.
12327 * varobj.c (value_of_child): Same.
12328 (varobj_default_is_path_expr_parent): Constify var, parent and return
12329 value.
12330 (varobj_get_path_expr): Constify var, modify path_expr through
12331 mutable_var.
12332 (install_new_value): Constify parent.
12333 (value_of_child): Constify parent.
12334 * varobj.h (struct varobj): Constify parent.
12335 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12336 type_of_child.
12337 (varobj_get_path_expr): Constify var.
12338 (varobj_get_path_expr_parent): Constify var and return value.
12339
12340 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
12341
12342 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12343 (arm_prologue_this_id): Move PC and SP limit checks to
12344 arm_prologue_unwind_stop_reason.
12345 (arm_prologue_unwind) <stop_reason> : Set to
12346 arm_prologue_unwind_stop_reason.
12347
12348 2015-02-09 Mark Wielaard <mjw@redhat.com>
12349
12350 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12351 DW_LANG_Fortran08 as language_fortran.
12352
12353 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12354
12355 PR remote/17946
12356 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12357 of pointer against char.
12358
12359 2015-02-09 Mark Wielaard <mjw@redhat.com>
12360
12361 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12362 (c_type_print_modifier): Likewise.
12363 * dwarf2read.c (read_tag_atomic_type): New function.
12364 (read_type_die_1): Handle DW_TAG_atomic_type.
12365 * gdbtypes.c (make_atomic_type): New function.
12366 (recursive_dump_type): Handle TYPE_ATOMIC.
12367 * gdbtypes.h (enum type_flag_values): Renumber.
12368 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
12369 (TYPE_ATOMIC): New macro.
12370 (make_atomic_type): Declare.
12371
12372 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12373
12374 * btrace.c (ftrace_find_call): Skip gaps.
12375 (ftrace_new_function): Initialize level.
12376 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
12377 (ftrace_new_switch): Update
12378 level computation.
12379 (ftrace_new_gap): New.
12380 (ftrace_update_function): Create new function after gap.
12381 (btrace_compute_ftrace_bts): Create gap on error.
12382 (btrace_stitch_bts): Update parameters. Clear trace if it
12383 becomes empty.
12384 (btrace_stitch_trace): Update parameters. Update callers.
12385 (btrace_clear): Reset the number of gaps.
12386 (btrace_insn_get): Return NULL if the iterator points to a gap.
12387 (btrace_insn_number): Return zero if the iterator points to a gap.
12388 (btrace_insn_end): Allow gaps at the end.
12389 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12390 (btrace_find_insn_by_number): Assert that the found iterator does
12391 not point to a gap.
12392 (btrace_call_next, btrace_call_prev): Assert that the last function
12393 is not a gap.
12394 * btrace.h (btrace_bts_error): New.
12395 (btrace_function): Update comment.
12396 (btrace_function) <insn, insn_offset, number>: Update comment.
12397 (btrace_function) <errcode>: New.
12398 (btrace_thread_info) <ngaps>: New.
12399 (btrace_thread_info) <replay>: Update comment.
12400 (btrace_insn_get): Update comment.
12401 * record-btrace.c (btrace_ui_out_decode_error): New.
12402 (record_btrace_info): Print number of gaps.
12403 (btrace_insn_history, btrace_call_history): Call
12404 btrace_ui_out_decode_error for gaps.
12405 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12406
12407 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12408
12409 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12410 * nat/linux-btrace.c: (btrace_this_cpu): New.
12411 (cpu_supports_bts): Call btrace_this_cpu.
12412 (intel_supports_bts): Add cpu parameter.
12413
12414 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12415
12416 * btrace.h (btrace_insn_class): New.
12417 (btrace_insn) <size, iclass>: New.
12418 * btrace.c (ftrace_find_call): Update parameters. Update users.
12419 Use instruction classification.
12420 (ftrace_new_return): Update parameters. Update users.
12421 (ftrace_update_function): Update parameters. Update users. Use
12422 instruction classification.
12423 (ftrace_update_insns): Update parameters. Update users.
12424 (ftrace_classify_insn): New.
12425 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12426 TRY_CATCH around call to gdb_insn_length.
12427
12428 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12429
12430 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12431 Update parameters. Update users.
12432
12433 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12434
12435 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12436 (btrace_conf_bts_attributes): New.
12437 (btrace_conf_children): Add attributes.
12438 * common/btrace-common.h (btrace_config_bts): New.
12439 (btrace_config)<bts>: New.
12440 (btrace_config): Update comment.
12441 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12442 Use config.
12443 * features/btrace-conf.dtd: Increment version. Add size
12444 attribute to bts element.
12445 * record-btrace.c (set_record_btrace_bts_cmdlist,
12446 show_record_btrace_bts_cmdlist): New.
12447 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12448 record_btrace_print_conf, cmd_set_record_btrace_bts,
12449 cmd_show_record_btrace_bts): New.
12450 (record_btrace_info): Call record_btrace_print_conf.
12451 (_initialize_record_btrace): Add commands.
12452 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12453 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12454 (btrace_sync_conf): Synchronize bts size.
12455 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12456 * NEWS: Announce new commands and new packets.
12457
12458 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12459
12460 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12461 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12462 (x86_linux_btrace_conf): New.
12463 (x86_linux_create_target): Initialize to_btrace_conf.
12464 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12465 Check format. Split into this and ...
12466 (linux_enable_bts): ... this.
12467 (linux_btrace_conf): New.
12468 (perf_event_skip_record): Renamed into ...
12469 (perf_event_skip_bts_record): ... this. Updated users.
12470 (linux_disable_btrace): Split into this and ...
12471 (linux_disable_bts): ... this.
12472 (linux_read_btrace): Check format.
12473 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12474 (linux_btrace_conf): New.
12475 (btrace_target_info)<ptid>: Moved.
12476 (btrace_target_info)<conf>: New.
12477 (btrace_target_info): Split into this and ...
12478 (btrace_tinfo_bts): ... this. Updated users.
12479 * btrace.c (btrace_enable): Update parameters.
12480 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12481 (btrace_conf_children, btrace_conf_attributes)
12482 (btrace_conf_elements): New.
12483 * btrace.h (btrace_enable): Update parameters.
12484 (btrace_conf, parse_xml_btrace_conf): New.
12485 * common/btrace-common.h (btrace_config): New.
12486 * feature/btrace-conf.dtd: New.
12487 * record-btrace.c (record_btrace_conf): New.
12488 (record_btrace_cmdlist): New.
12489 (record_btrace_enable_warn, record_btrace_open): Pass
12490 &record_btrace_conf.
12491 (record_btrace_info): Print recording format.
12492 (cmd_record_btrace_bts_start): New.
12493 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12494 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12495 Add "record bts" alias command.
12496 * remote.c (remote_state)<btrace_config>: New.
12497 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12498 (remote_protocol_features): Add qXfer:btrace-conf:read.
12499 (remote_open_1): Call remote_btrace_reset.
12500 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12501 (btrace_target_info)<conf>: New.
12502 (btrace_sync_conf, btrace_read_config): New.
12503 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12504 btrace_read_conf.
12505 (remote_btrace_conf): New.
12506 (init_remote_ops): Initialize to_btrace_conf.
12507 (_initialize_remote): Add qXfer:btrace-conf packet.
12508 * target.c (target_enable_btrace): Update parameters.
12509 (target_btrace_conf): New.
12510 * target.h (target_enable_btrace): Update parameters.
12511 (target_btrace_conf): New.
12512 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12513 (target_ops)<to_enable_btrace>: Update parameters and comment.
12514 (target_ops)<to_btrace_conf>: New.
12515 * target-delegates: Regenerate.
12516 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12517 (target_debug_print_const_struct_btrace_target_info_p): New.
12518 * NEWS: Announce new command and new packet.
12519
12520 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12521
12522 * nat/linux-btrace.h (perf_event_buffer): New.
12523 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12524 <bts>: ... this.
12525 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12526 (perf_event_buffer_size, perf_event_buffer_begin)
12527 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12528 Updated users.
12529 (perf_event_new_data): New.
12530
12531 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12532
12533 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12534 * record-btrace.c (record_btrace_open): Remove call to
12535 target_supports_btrace.
12536 * remote.c (remote_supports_btrace): Update parameters.
12537 * target.c (target_supports_btrace): Update parameters.
12538 * target.h (to_supports_btrace, target_supports_btrace): Update
12539 parameters.
12540 * target-delegates.c: Regenerate.
12541 * target-debug.h (target_debug_print_enum_btrace_format): New.
12542 * nat/linux-btrace.c
12543 (kernel_supports_btrace): Rename into ...
12544 (kernel_supports_bts): ... this. Update users. Update warning text.
12545 (intel_supports_btrace): Rename into ...
12546 (intel_supports_bts): ... this. Update users.
12547 (cpu_supports_btrace): Rename into ...
12548 (cpu_supports_bts): ... this. Update users.
12549 (linux_supports_btrace): Update parameters. Split into this and ...
12550 (linux_supports_bts): ... this.
12551 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12552
12553 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12554
12555 * Makefile.in (SFILES): Add common/btrace-common.c.
12556 (COMMON_OBS): Add common/btrace-common.o.
12557 (btrace-common.o): Add build rules.
12558 * btrace.c (parse_xml_btrace): Update parameters.
12559 (parse_xml_btrace_block): Set format field.
12560 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12561 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12562 (btrace_compute_ftrace): Split into this and...
12563 (btrace_compute_ftrace_bts): ...this.
12564 (btrace_stitch_trace): Split into this and...
12565 (btrace_stitch_bts): ...this.
12566 * btrace.h (parse_xml_btrace): Update parameters.
12567 (make_cleanup_btrace_data): New.
12568 * common/btrace-common.c: New.
12569 * common/btrace-common.h: Include common-defs.h.
12570 (btrace_block_s): Update comment.
12571 (btrace_format): New.
12572 (btrace_format_string): New.
12573 (btrace_data_bts): New.
12574 (btrace_data): New.
12575 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12576 * remote.c (remote_read_btrace): Update parameters.
12577 * target.c (target_read_btrace): Update parameters.
12578 * target.h (target_read_btrace): Update parameters.
12579 (target_ops)<to_read_btrace>: Update parameters.
12580 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12581 * target-delegates.c: Regenerate.
12582 * target-debug (target_debug_print_struct_btrace_data_p): New.
12583 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12584 (linux_read_bts): ...this.
12585 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12586
12587 2015-02-06 Doug Evans <dje@google.com>
12588
12589 * remote-m32r-sdi.c: Include symfile.h.
12590
12591 2015-02-06 Doug Evans <dje@google.com>
12592
12593 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12594 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12595 to here.
12596
12597 2015-02-06 Pedro Alves <palves@redhat.com>
12598
12599 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12600
12601 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12602
12603 PR gdb/15678
12604 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12605 (enable_count_command): Check args for NULL value.
12606
12607 2015-02-05 Doug Evans <xdje42@gmail.com>
12608
12609 * guile/scm-frame.c: Fix spelling errors in a comment.
12610
12611 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12612
12613 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12614 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12615 return type.
12616
12617 2015-02-04 Pedro Alves <palves@redhat.com>
12618
12619 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12620 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12621 returns true.
12622 (resume_stopped_resumed_lwps): Don't check whether the thread is
12623 marked as executing.
12624 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12625
12626 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12627
12628 * regset.h (struct regset): Add flags field.
12629 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12630 * corelow.c (get_core_register_section): Add warning if the size
12631 exceeds the requested size and the regset does not have the
12632 REGSET_VARIABLE_SIZE flag set.
12633 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12634 flag.
12635 * armbsd-tdep.c (armbsd_gregset): Likewise.
12636 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12637 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12638 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12639 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12640
12641 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12642
12643 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12644 For ".reg-xstate", explicitly specify the requested section size
12645 via X86_XSTATE_SIZE instead of just 0 on input and
12646 X86_XSTATE_MAX_SIZE on output.
12647 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12648 Likewise.
12649
12650 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12651
12652 PR corefiles/17808:
12653 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12654 function type, particularly its SIZE parameter.
12655 * gdbarch.h: Regenerate.
12656 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12657 actual against required size using ">=" instead of "==".
12658 (amd64_collect_fpregset): Likewise.
12659 * i386-tdep.c (i386_supply_gregset): Likewise.
12660 (i386_collect_gregset): Likewise.
12661 (i386_supply_fpregset): Likewise.
12662 (i386_collect_fpregset): Likewise.
12663 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12664 (mips_fill_gregset_wrapper): Likewise.
12665 (mips_supply_fpregset_wrapper): Likewise.
12666 (mips_fill_fpregset_wrapper): Likewise.
12667 (mips64_supply_gregset_wrapper): Likewise.
12668 (mips64_fill_gregset_wrapper): Likewise.
12669 (mips64_supply_fpregset_wrapper): Likewise.
12670 (mips64_fill_fpregset_wrapper): Likewise.
12671 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12672 (am33_supply_fpregset_method): Likewise.
12673 (am33_collect_gregset_method): Likewise.
12674 (am33_collect_fpregset_method): Likewise.
12675
12676 2015-02-04 Doug Evans <dje@google.com>
12677 Pedro Alves <palves@redhat.com>
12678 Eli Zaretskii <eliz@gnu.org>
12679
12680 PR tui/17810
12681 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12682 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12683 * tui/tui-file.c: #include tui/tui-command.h.
12684 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12685 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12686 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12687
12688 2015-02-04 Pedro Alves <palves@redhat.com>
12689
12690 Fix build breakage.
12691 * event-loop.c (gdb_do_one_event): Add default switch case.
12692
12693 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12694
12695 Filter out inferior gcc option -fpreprocessed.
12696 * compile/compile.c (filter_args): New function.
12697 (get_args): Use it.
12698
12699 2015-02-03 Pedro Alves <palves@redhat.com>
12700
12701 * event-loop.c: Don't declare nor define a queue type for
12702 gdb_event_p.
12703 (event_queue): Delete.
12704 (create_event, create_file_event, gdb_event_xfree)
12705 (initialize_event_loop, process_event): Delete.
12706 (gdb_do_one_event): Return as soon as one event is handled.
12707 (handle_file_event): Change prototype. Used the passed in
12708 file_handler pointer and ready_mask instead of looping over all
12709 file handlers.
12710 (gdb_wait_for_event): Update the poll/select timeouts before
12711 blocking. Run event handlers directly instead of queueing events.
12712 Return as soon as one event is handled.
12713 (struct async_event_handler_data): Delete.
12714 (invoke_async_event_handler): Delete.
12715 (check_async_event_handlers): Change return type to int. Run
12716 event handlers directly instead of queueing events. Return as
12717 soon as one event is handled.
12718 (handle_timer_event): Delete.
12719 (update_wait_timeout): New function, factored out from
12720 poll_timers.
12721 (poll_timers): Reimplement.
12722 * event-loop.h (initialize_event_loop): Delete declaration.
12723 * top.c (gdb_init): Don't call initialize_event_loop.
12724
12725 2015-02-03 Pedro Alves <palves@redhat.com>
12726
12727 * event-loop.c (clear_async_event_handler): New function.
12728 * event-loop.h (clear_async_event_handler): New declaration.
12729 * record-btrace.c (record_btrace_async): New function.
12730 (init_record_btrace_ops): Install record_btrace_async.
12731 * record-full.c (record_full_async): New function.
12732 (record_full_resume): Don't mark the async event source here.
12733 (init_record_full_ops): Install record_full_async.
12734 (record_full_core_resume): Don't mark the async event source here.
12735 (init_record_full_core_ops): Install record_full_async.
12736 * remote.c (remote_async): Mark and clear the async stop reply
12737 queue event-loop token as appropriate.
12738
12739 2015-02-03 Pedro Alves <palves@redhat.com>
12740
12741 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12742 target_is_async_p instead of target_can_async.
12743 (linux_nat_wait): Use target_is_async_p instead of
12744 target_can_async. Don't enable async here.
12745 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12746 target_is_async_p instead of target_can_async.
12747
12748 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12749
12750 * varobj.h (lang_varobj_ops): Mention which return values need
12751 to be freed.
12752
12753 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12754
12755 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12756
12757 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12758
12759 PR gdb/17856:
12760 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12761 results found in the cache.
12762
12763 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12764
12765 PR gdb/17854:
12766 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12767 when allocating a new one.
12768
12769 2015-02-01 Tom Tromey <tom@tromey.com>
12770
12771 * MAINTAINERS: Remove myself.
12772
12773 2015-01-31 Doug Evans <xdje42@gmail.com>
12774
12775 * dwarf2read.c (process_structure_scope): Update setting of
12776 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12777 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12778 (set_type_vptr_fieldno): New function.
12779 (internal_type_vptr_basetype): New function.
12780 (set_type_vptr_basetype): New function.
12781 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12782 TYPE_VPTR_BASETYPE.
12783 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12784 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12785 (print_cplus_stuff): ... moved here.
12786 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12787 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12788 moved to ...
12789 (struct cplus_struct_type): ... here. All uses updated.
12790 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12791 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12792 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12793 * stabsread.c (read_tilde_fields): Update setting of
12794 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12795
12796 2015-01-31 Doug Evans <xdje42@gmail.com>
12797
12798 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12799 to self_p.
12800 (cp_print_class_member): Rename local domain to self_type.
12801 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12802 domain_type to self_type.
12803 (set_die_type) <need_gnat_info>: Handle
12804 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12805 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12806 TYPE_SPECIFIC_SELF_TYPE.
12807 * gdbtypes.c (internal_type_self_type): New function.
12808 (set_type_self_type): New function.
12809 (smash_to_memberptr_type): Rename parameter domain to self_type.
12810 Update setting of TYPE_SELF_TYPE.
12811 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12812 (smash_to_method_type): Rename parameter domain to self_type.
12813 Update setting of TYPE_SELF_TYPE.
12814 (check_stub_method): Call smash_to_method_type.
12815 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12816 (copy_type_recursive): Ditto.
12817 * gdbtypes.h (enum type_specific_kind): New value
12818 TYPE_SPECIFIC_SELF_TYPE.
12819 (struct main_type) <type_specific>: New member self_type.
12820 (struct cplus_struct_type) <fn_field.type>: Update comment.
12821 (TYPE_SELF_TYPE): Rewrite.
12822 (internal_type_self_type, set_type_self_type): Declare.
12823 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12824 self_type.
12825 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12826 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12827 TYPE_TARGET_TYPE.
12828 * stabsread.c (read_member_functions): Mark methods with
12829 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12830 TYPE_SELF_TYPE.
12831
12832 2015-01-31 Doug Evans <xdje42@gmail.com>
12833
12834 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12835 All uses updated.
12836
12837 2015-01-31 Doug Evans <xdje42@gmail.com>
12838
12839 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12840 or unions. Return zero if union.
12841 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12842 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12843 gnuv3_get_vtable.
12844 (compute_vtable_size): Assert only passed structs.
12845 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12846
12847 2015-01-31 Doug Evans <xdje42@gmail.com>
12848
12849 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12850 kinds.
12851
12852 2015-01-31 Gary Benson <gbenson@redhat.com>
12853 Doug Evans <dje@google.com>
12854
12855 PR cli/9007
12856 PR cli/11920
12857 PR cli/15548
12858 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12859 reached.
12860 * common/common-exceptions.h (enum errors)
12861 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12862 * completer.h (get_max_completions_reached_message): New declaration.
12863 (max_completions): Likewise.
12864 (completion_tracker_t): New typedef.
12865 (new_completion_tracker): New declaration.
12866 (make_cleanup_free_completion_tracker): Likewise.
12867 (maybe_add_completion_enum): New enum.
12868 (maybe_add_completion): New declaration.
12869 (throw_max_completions_reached_error): Likewise.
12870 * completer.c (max_completions): New global variable.
12871 (new_completion_tracker): New function.
12872 (free_completion_tracker): Likewise.
12873 (make_cleanup_free_completion_tracker): Likewise.
12874 (maybe_add_completions): Likewise.
12875 (throw_max_completions_reached_error): Likewise.
12876 (complete_line): Remove duplicates and limit result to max_completions
12877 entries.
12878 (get_max_completions_reached_message): New function.
12879 (gdb_display_match_list): Handle max_completions.
12880 (_initialize_completer): New declaration and function.
12881 * symtab.c: Include completer.h.
12882 (completion_tracker): New static variable.
12883 (completion_list_add_name): Call maybe_add_completion.
12884 (default_make_symbol_completion_list_break_on_1): Renamed from
12885 default_make_symbol_completion_list_break_on. Maintain
12886 completion_tracker across calls to completion_list_add_name.
12887 (default_make_symbol_completion_list_break_on): New function.
12888 * top.c (init_main): Set rl_completion_display_matches_hook.
12889 * tui/tui-io.c: Include completer.h.
12890 (tui_old_rl_display_matches_hook): New static global.
12891 (tui_rl_display_match_list): Notify user if max-completions reached.
12892 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12893 * NEWS (New Options): Mention set/show max-completions.
12894
12895 2015-01-31 Gary Benson <gbenson@redhat.com>
12896
12897 * symtab.c (struct add_name_data) <code>: New field.
12898 Updated comments.
12899 (add_symtab_completions): New function.
12900 (symtab_expansion_callback): Likewise.
12901 (default_make_symbol_completion_list_break_on): Set datum.code.
12902 Move minimal symbol scan before calling expand_symtabs_matching.
12903 Scan known primary symtabs for externs and statics before calling
12904 expand_symtabs_matching. Pass symtab_expansion_callback as
12905 expansion_notify argument to expand_symtabs_matching. Do not scan
12906 primary symtabs for externs and statics after calling
12907 expand_symtabs_matching.
12908
12909 2015-01-31 Gary Benson <gbenson@redhat.com>
12910
12911 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12912 (struct quick_symbol_functions) <expand_symtabs_matching>:
12913 New argument expansion_notify. All uses updated.
12914 (expand_symtabs_matching): New argument expansion_notify.
12915 All uses updated.
12916 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12917 Also print expansion notify.
12918 * symtab.c (expand_symtabs_matching_via_partial): Call
12919 expansion_notify whenever a partial symbol table is expanded.
12920 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12921 expansion_notify whenever a symbol table is instantiated.
12922
12923 2015-01-31 Doug Evans <xdje42@gmail.com>
12924
12925 * cli-out.c: #include completer.h, readline/readline.h.
12926 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12927 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12928 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12929 * cli-out.h (cli_display_match_list): Declare.
12930 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12931 (ELLIPSIS_LEN): Ditto.
12932 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12933 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12934 (gdb_fnprint, gdb_print_filename): Ditto.
12935 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12936 (gdb_display_match_list): Ditto.
12937 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12938 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12939 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12940 (match_list_displayer): New struct.
12941 (gdb_display_match_list): Declare.
12942 * top.c (init_main): Set rl_completion_display_matches_hook.
12943 * tui/tui-io.c: #include completer.h.
12944 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12945 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12946 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12947 (tui_mld_getc, tui_mld_read_key): Ditto.
12948 (tui_rl_display_match_list): Rewrite.
12949 (tui_handle_resize_during_io): New arg for_completion. All callers
12950 updated.
12951
12952 2015-01-31 Doug Evans <xdje42@gmail.com>
12953
12954 Add symbol lookup cache.
12955 * NEWS: Document new options and commands.
12956 * symtab.c (symbol_cache_key): New static global.
12957 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12958 (SYMBOL_LOOKUP_FAILED): New macro.
12959 (symbol_cache_slot_state): New enum.
12960 (block_symbol_cache): New struct.
12961 (symbol_cache): New struct.
12962 (new_symbol_cache_size, symbol_cache_size): New static globals.
12963 (hash_symbol_entry, eq_symbol_entry): New functions.
12964 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12965 (make_symbol_cache, free_symbol_cache): New functions.
12966 (get_symbol_cache, symbol_cache_cleanup): New function.
12967 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12968 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12969 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12970 (symbol_cache_flush, symbol_cache_dump): New functions.
12971 (maintenance_print_symbol_cache): New function.
12972 (maintenance_flush_symbol_cache): New function.
12973 (symbol_cache_stats): New function.
12974 (maintenance_print_symbol_cache_statistics): New function.
12975 (symtab_new_objfile_observer): New function.
12976 (symtab_free_objfile_observer): New function.
12977 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12978 (_initialize_symtab): Init symbol_cache_key. New parameter
12979 maint symbol-cache-size. New maint commands print symbol-cache,
12980 print symbol-cache-statistics, flush-symbol-cache.
12981 Install new_objfile, free_objfile observers.
12982
12983 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12984
12985 PR symtab/17855
12986 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12987 to end.
12988
12989 2015-01-31 Doug Evans <xdje42@gmail.com>
12990
12991 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12992 * auto-load.c: #include ctype.h.
12993 (struct auto_load_pspace_info): Replace member loaded_scripts with
12994 new members loaded_script_files, loaded_script_texts.
12995 (auto_load_pspace_data_cleanup): Update.
12996 (init_loaded_scripts_info): Update.
12997 (get_auto_load_pspace_data_for_loading): Update.
12998 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12999 updated.
13000 (maybe_add_script_text): New function.
13001 (clear_section_scripts): Update.
13002 (source_script_file, execute_script_contents): New functions.
13003 (source_section_scripts): Add support for
13004 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13005 (print_scripts): New function.
13006 (auto_load_info_scripts): Also print inlined scripts.
13007 (maybe_print_unsupported_script_warning): Renamed from
13008 unsupported_script_warning_print. All callers updated.
13009 (maybe_print_script_not_found_warning): Renamed from
13010 script_not_found_warning_print. All callers updated.
13011 * extension-priv.h (struct extension_language_script_ops): New member
13012 objfile_script_executor.
13013 * extension.c (ext_lang_objfile_script_executor): New function.
13014 * extension.h (objfile_script_executor_func): New typedef.
13015 (ext_lang_objfile_script_executor): Declare.
13016 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13017 * guile/guile.c (guile_extension_script_ops): Update.
13018 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13019 * python/python.c (python_extension_script_ops): Update.
13020 (gdbpy_execute_objfile_script): New function.
13021
13022 2015-01-31 Eli Zaretskii <eliz@gnu.org>
13023
13024 * tui/tui-io.c (tui_expand_tabs): New function.
13025 (tui_puts, tui_redisplay_readline): Expand TABs into the
13026 appropriate number of spaces.
13027 * tui/tui-regs.c: Include tui-io.h.
13028 (tui_register_format): Call tui_expand_tabs to expand TABs into
13029 the appropriate number of spaces.
13030 * tui/tui-io.h: Add prototype for tui_expand_tabs.
13031
13032 2015-01-30 Doug Evans <dje@google.com>
13033
13034 * NEWS: "info source" command now display producer string if present.
13035 * source.c (source_info): Print producer string if present.
13036
13037 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13038
13039 * varobj.c (varobj_delete): Fix comment.
13040
13041 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13042
13043 * varobj.c (create_child): Modify comment.
13044
13045 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13046
13047 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13048 parameter.
13049 (ada_name_of_variable): Same.
13050 (ada_path_expr_of_child): Same.
13051 (ada_value_of_variable): Same.
13052 (ada_value_is_changeable_p): Same.
13053 (ada_value_has_mutated): Same.
13054 * c-varobj.c (varobj_is_anonymous_child): Same.
13055 (c_is_path_expr_parent): Same.
13056 (c_number_of_children): Same.
13057 (c_name_of_variable): Same.
13058 (c_path_expr_of_child): Same.
13059 (get_type): Same.
13060 (c_value_of_variable): Same.
13061 (cplus_number_of_children): Same.
13062 (cplus_name_of_variable): Same.
13063 (cplus_path_expr_of_child): Same.
13064 (cplus_value_of_variable): Same.
13065 * jv-varobj.c (java_number_of_children): Same.
13066 (java_name_of_variable): Same.
13067 (java_path_expr_of_child): Same.
13068 (java_value_of_variable): Same.
13069 * varobj.c (number_of_children): Same.
13070 (name_of_variable): Same.
13071 (is_root_p): Same.
13072 (varobj_ensure_python_env): Same.
13073 (varobj_get_objname): Same.
13074 (varobj_get_expression): Same.
13075 (varobj_get_display_format): Same.
13076 (varobj_get_display_hint): Same.
13077 (varobj_has_more): Same.
13078 (varobj_get_thread_id): Same.
13079 (varobj_get_frozen): Same.
13080 (dynamic_varobj_has_child_method): Same.
13081 (varobj_get_gdb_type): Same.
13082 (is_path_expr_parent): Same.
13083 (varobj_default_is_path_expr_parent): Same.
13084 (varobj_get_language): Same.
13085 (varobj_get_attributes): Same.
13086 (varobj_is_dynamic_p): Same.
13087 (varobj_get_child_range): Same.
13088 (varobj_value_has_mutated): Same.
13089 (varobj_get_value_type): Same.
13090 (number_of_children): Same.
13091 (name_of_variable): Same.
13092 (check_scope): Same.
13093 (varobj_editable_p): Same.
13094 (varobj_value_is_changeable_p): Same.
13095 (varobj_floating_p): Same.
13096 (varobj_default_value_is_changeable_p): Same.
13097
13098 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13099
13100 * varobj.c (varobj_get_path_expr): Set var->path_expr.
13101 * c-varobj.c (c_path_expr_of_child): Set local var instead of
13102 child->path_expr.
13103 (cplus_path_expr_of_child): Same.
13104
13105 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13106
13107 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13108 result.
13109 (mi_cmd_var_info_expression): Same.
13110 * varobj.c (varobj_get_expression): Mention in the comment that
13111 the result must by freed by the caller.
13112
13113 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13114
13115 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13116 varobj_get_type.
13117 (varobj_update_one): Same.
13118 * varobj.c (update_type_if_necessary): Free curr_type_str and
13119 new_type_str.
13120 (varobj_get_type): Specify in comment that the result needs to be
13121 freed by the caller.
13122
13123 2015-01-29 Doug Evans <dje@google.com>
13124
13125 PR symtab/17890
13126 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13127
13128 2015-01-25 Mark Wielaard <mjw@redhat.com>
13129
13130 * dwarf2read.c (checkproducer): Call producer_is_gcc.
13131 * utils.c (producer_is_gcc_ge_4): Likewise.
13132 (producer_is_gcc): New function.
13133 * utils.h (producer_is_gcc): New declaration.
13134
13135 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13136
13137 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13138 kind.
13139 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13140 parameter by "addr_stack" parameter.
13141 (resolve_dynamic_range): Replace "addr" parameter by
13142 "stack_addr" parameter. Update function documentation.
13143 Update code accordingly.
13144 (resolve_dynamic_array, resolve_dynamic_union)
13145 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13146 (resolve_dynamic_type): Update code, following the changes made
13147 to resolve_dynamic_type_internal's interface.
13148 * dwarf2loc.h (struct property_addr_info): New.
13149 (dwarf2_evaluate_property): Replace "address" parameter
13150 by "addr_stack" parameter. Adjust function documentation.
13151 (struct dwarf2_offset_baton): New.
13152 (struct dwarf2_property_baton): Update documentation of
13153 field "referenced_type" to be more general. New field
13154 "offset_info" in union data field.
13155 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13156 parameter by "addr_stack" parameter. Adjust code accordingly.
13157 Add support for PROP_ADDR_OFFSET properties.
13158 * dwarf2read.c (attr_to_dynamic_prop): Add support for
13159 DW_AT_data_member_location attributes as well. Use case
13160 statements instead of if/else condition.
13161
13162 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13163
13164 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13165 Return zero if PARENT_VALUE is NULL and parent_type's
13166 range type is dynamic.
13167
13168 2015-01-29 Joel Brobecker <brobecker@adacore.com>
13169
13170 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13171 nonzero if the type's subtype is dynamic.
13172 (resolve_dynamic_range): Also resolve the range's subtype.
13173
13174 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
13175
13176 Pushed by Joel Brobecker <brobecker@adacore.com>.
13177 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13178
13179 2015-01-27 Doug Evans <dje@google.com>
13180
13181 * NEWS: Mention gdb.Objfile.username.
13182 * python/py-objfile.c (objfpy_get_username): New function.
13183 (objfile_getset): Add "username".
13184
13185 2015-01-24 Mark Wielaard <mjw@redhat.com>
13186
13187 * stack.c (return_command): Markup warning message with _.
13188
13189 2015-01-24 Doug Evans <xdje42@gmail.com>
13190
13191 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13192
13193 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13194
13195 Fix 100x slowdown regression on DWZ files.
13196 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13197 (struct line_header): Add offset and offset_in_dwz.
13198 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13199 (free_line_header_voidp): New declaration.
13200 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13201 functions.
13202 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13203 (handle_DW_AT_stmt_list): Use line_header_hash.
13204 (free_line_header_voidp): New function.
13205 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13206 (dwarf_decode_lines): New parameter decode_mapping, use it.
13207 (dwarf2_free_objfile): Free line_header_hash.
13208
13209 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13210
13211 PR gdb/17416
13212 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13213 value_ind.
13214
13215 2015-01-15 Mark Wielaard <mjw@redhat.com>
13216
13217 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13218 DW_AT_noreturn.
13219 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13220 calling_convention an 8 bit bit field.
13221 (TYPE_NO_RETURN): New macro.
13222 * infcmd.c (finish_command): Query if function does not return
13223 normally.
13224 * stack.c (return_command): Likewise.
13225
13226 2015-01-23 Pedro Alves <palves@redhat.com>
13227
13228 * linux-nat.c (linux_is_async_p): New macro.
13229 (linux_nat_is_async_p):
13230 (linux_nat_terminal_inferior): Check whether the target can async
13231 instead of whether it is already async.
13232 (linux_nat_terminal_ours): Don't check whether the target is
13233 async.
13234 (linux_async_pipe): Use linux_is_async_p.
13235
13236 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13237
13238 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13239 '-ascending'.
13240 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13241 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13242 Sort tp_array using tp_array_compar.
13243 (_initialize_thread): Extend thread_apply_all_command help.
13244
13245 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13246
13247 * corelow.c (core_open): Call also thread_command.
13248 * gdbthread.h (thread_command): New prototype moved from ...
13249 * thread.c (thread_command): ... here.
13250 (thread_command): Make it global.
13251
13252 2015-01-22 Pedro Alves <palves@redhat.com>
13253
13254 * configure.ac [*mingw32*]: Check $curses_found instead of
13255 $prefer_curses.
13256 * configure: Regenerate.
13257 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13258 HAVE_NCURSES_NCURSES_H checks.
13259
13260 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13261
13262 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13263 fails with the 1st arg NULL, try again with "unknown". Don't test
13264 the "cup" capability: it isn't supported by the Windows port of
13265 ncurses, but the Windows console driver is still capable of
13266 supporting TUI.
13267
13268 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13269
13270 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13271
13272 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13273
13274 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13275 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13276 reason that "make TAGS" is broken.
13277
13278 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13279
13280 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13281 and check additional store instructions.
13282
13283 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13284
13285 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13286
13287 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13288
13289 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13290 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13291 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13292 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13293 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13294 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13295 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13296 ppc_process_record_op19, ppc_process_record_op31,
13297 ppc_process_record_op59, ppc_process_record_op60,
13298 ppc_process_record_op63): Likewise.
13299
13300 2015-01-20 Joel Brobecker <brobecker@adacore.com>
13301
13302 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13303 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13304 strerror.
13305
13306 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
13307
13308 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13309 ppc_process_record_op31, ppc_process_record_op59,
13310 ppc_process_record_op60, ppc_process_record_op63,
13311 ppc_process_record): Fix -Wformat warning.
13312 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13313 Remove unused variables.
13314
13315 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13316
13317 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13318
13319 2015-01-19 Eli Zaretskii <eliz@gnu.org>
13320
13321 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13322 CONFIG_OBS if not building with a curses library.
13323 * configure: Regenerate.
13324
13325 * windows-termcap.c: Include defs.h. Make the whole body empty if
13326 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13327 HAVE_NCURSES_NCURSES_H is defined.
13328
13329 2015-01-19 Joel Brobecker <brobecker@adacore.com>
13330
13331 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13332 from end of line to start of next line.
13333
13334 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13335
13336 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13337 Scan PLT stub backward for reverse debugging.
13338 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13339
13340 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13341 Ulrich Weigand <uweigand@de.ibm.com>
13342
13343 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13344 gdb_target_obs.
13345 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13346 record.
13347 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13348 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13349 (ppc_linux_init_abi): Set process_record, process_record_signal.
13350 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13351 ppc_linux_record_tdep to gdbarch_tdep.
13352 (ppc_process_record): New declaration.
13353 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13354 ppc_process_record_op19, ppc_process_record_op31,
13355 ppc_process_record_op59, ppc_process_record_op60,
13356 ppc_process_record_op63, ppc_process_record): New functions.
13357
13358 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13359
13360 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13361 rs6000_in_function_epilogue_frame_p and add an argument
13362 for frame_info.
13363 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
13364 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
13365 New functions.
13366 (rs6000_epilogue_frame_unwind): New.
13367 (rs6000_gdbarch_init): Append epilogue unwinder.
13368
13369 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13370
13371 * nat/linux-personality.c: Replace "#ifndef
13372 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
13373 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
13374 systems.
13375
13376 2015-01-16 Eli Zaretskii <eliz@gnu.org>
13377
13378 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13379 functions.
13380 (_initialize_tui_win) <border-kind, border-mode>:
13381 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
13382 (tui_set_tab_width_command): Fix the commentary.
13383
13384 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13385
13386 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13387 Doc fix.
13388 (tui_set_tab_width_command): Delete and recreate the source and
13389 the disassembly windows, to show the effect of the changed tab
13390 size immediately.
13391
13392 * tui/tui-data.h (LINE_PREFIX): Make shorter
13393 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13394 "Thread NNNNN.XXXX" thread ID notation on Windows.
13395
13396 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13397
13398 Fix gcc-5 compilation.
13399 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13400
13401 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13402
13403 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13404 (linux-personality.o): New rule.
13405 * common/common-defs.h: Include <stdint.h>.
13406 * config/aarch64/linux.mh (NATDEPFILES): Include
13407 linux-personality.o.
13408 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13409 * config/arm/linux.mh (NATDEPFILES): Likewise.
13410 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13411 * config/i386/linux.mh (NATDEPFILES): Likewise.
13412 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13413 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13414 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13415 * config/mips/linux.mh (NATDEPFILES): Likewise.
13416 * config/pa/linux.mh (NATDEPFILES): Likewise.
13417 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13418 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13419 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13420 * config/s390/linux.mh (NATDEPFILES): Likewise.
13421 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13422 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13423 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13424 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13425 * defs.h: Remove #include <stdint.h> (moved to
13426 common/common-defs.h).
13427 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13428 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13429 nat/linux-personality.c).
13430 (linux_nat_create_inferior): Remove code to disable address space
13431 randomization (moved to nat/linux-personality.c). Create cleanup
13432 to disable address space randomization.
13433 * nat/linux-personality.c: New file.
13434 * nat/linux-personality.h: Likewise.
13435
13436 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13437
13438 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13439 common/posix-strerror.c.
13440 (posix-strerror.o): New rule.
13441 (mingw-strerror.o): Likewise.
13442 * common/common-utils.h (safe_strerror): Move prototype to here,
13443 from utils.h.
13444 * common/common.host: New file.
13445 * common/mingw-strerror.c: Likewise.
13446 * common/posix-strerror.c: Likewise.
13447 * configure: Regenerated.
13448 * configure.ac: Source common/common.host. Add variable
13449 common_host_obs to gdb_host_obs.
13450 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13451 gdb/common/posix-strerror.c when warning about the use of
13452 strerror.
13453 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13454 common/mingw-strerror.c.
13455 * posix-hdep.c (safe_strerror): Remove definition; move it to
13456 common/posix-hdep.c.
13457 * utils.h (safe_strerror): Remove prototype; move to
13458 common/common-utils.h.
13459
13460 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13461
13462 GDB 7.8.2 released.
13463
13464 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13465
13466 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13467 ___XA type if the array has already been fixed.
13468
13469 2015-01-14 Yao Qi <yao@codesourcery.com>
13470
13471 * Makefile.in (ppc-linux.o): New rule.
13472 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13473 * configure.ac: AC_CHECK_FUNCS(getauxval).
13474 * config.in: Re-generated.
13475 * configure: Re-generated.
13476 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13477 Declare.
13478 * nat/ppc-linux.c: New file.
13479 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13480 Call ppc64_64bit_inferior_p.
13481
13482 2015-01-14 Yao Qi <yao@codesourcery.com>
13483
13484 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13485 nat/ppc-linux.h.
13486 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13487 (PPC_FEATURE_HAS_DFP): Likewise.
13488 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13489 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13490 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13491 Include "nat/ppc-linux.h".
13492 * nat/ppc-linux.h: New file.
13493 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13494
13495 2015-01-14 Pedro Alves <palves@redhat.com>
13496
13497 PR gdb/17525
13498 * breakpoint.c: Include "interps.h".
13499 (bpstat_do_actions_1): Also check whether the interpreter is
13500 async.
13501
13502 2015-01-14 Pedro Alves <palves@redhat.com>
13503
13504 PR cli/17828
13505 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13506 reinstall if the interpreter is sync.
13507
13508 2015-01-13 Doug Evans <dje@google.com>
13509
13510 * objfiles.c (objfile_filename): New function.
13511 * objfiles.h (objfile_filename): Declare it.
13512 (objfile_name): Add function comment.
13513 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13514 bfd file name (which may be realpath'd), and the original name.
13515
13516 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13517
13518 * NEWS: Create a new section for the next release branch.
13519 Rename the section of the current branch, now that it has
13520 been cut.
13521
13522 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13523
13524 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13525 * version.in: Bump version to 7.9.50.DATE-cvs.
13526
13527 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13528
13529 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13530 Remove trailing new-line in argument of call to warning.
13531
13532 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13533
13534 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13535 new-line in argument of call to "warning".
13536
13537 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13538
13539 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13540 in static block, then try searching for primitive types.
13541
13542 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13543
13544 * top.h (gdb_add_history): Declare.
13545 * top.c (command_count): New variable.
13546 (gdb_add_history): New function.
13547 (gdb_safe_append_history): New static function.
13548 (quit_force): Call it.
13549 (command_line_input): Use gdb_add_history instead of
13550 add_history.
13551 * event-top.c (command_line_handler): Likewise.
13552
13553 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13554
13555 PR gdb/17046
13556 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13557 <setjmp.h> #include.
13558
13559 2015-01-11 Doug Evans <xdje42@gmail.com>
13560
13561 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13562
13563 2015-01-11 Doug Evans <xdje42@gmail.com>
13564
13565 PR gdb/15830
13566 * NEWS: The "maint demangle" command is renamed as "demangle".
13567 * demangle.c: #include cli/cli-utils.h, language.h.
13568 (demangle_command): New function.
13569 (_initialize_demangle): Add new command "demangle".
13570 * maint.c (maintenance_demangle): Stub out.
13571 (_initialize_maint_cmds): Update help text for "maint demangle",
13572 and mark as deprecated.
13573
13574 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13575
13576 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13577 inferior_thread is a function.
13578
13579 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13580
13581 * Makefile.in (.y.c): Don't munge yacc's #line
13582 directives.
13583
13584 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13585
13586 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13587 to prompt for input.
13588 * tui/tui-hooks.c (tui_query_hook): Remove.
13589 (tui_install_hooks): Don't set deprecated_query_hook.
13590 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13591 height calculation. Always update the command window's cur_line.
13592
13593 2015-01-09 Pedro Alves <palves@redhat.com>
13594
13595 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13596 function.
13597 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13598 declaration.
13599 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13600 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13601 stop_reason.
13602 (check_stopped_by_watchpoint): New function.
13603 (save_sigtrap): Reimplement.
13604 (linux_nat_stopped_by_watchpoint): Adjust.
13605 (linux_nat_lp_status_is_event): Delete.
13606 (stop_wait_callback): Only call save_sigtrap after storing the
13607 pending status.
13608 (status_callback): If the thread had been stopped for a breakpoint
13609 that has since been removed, discard the event and resume the LWP.
13610 (count_events_callback, select_event_lwp_callback): Use
13611 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13612 (cancel_breakpoint): Rename to ...
13613 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13614 stopped for a software breakpoint or hardware breakpoint.
13615 (select_event_lwp): Only give preference to the stepping LWP in
13616 all-stop mode. Adjust comments.
13617 (stop_and_resume_callback): Remove references to new_pending_p.
13618 (linux_nat_filter_event): Likewise. Leave exit events of the
13619 leader thread pending here. Handle signal short circuiting here.
13620 Only call save_sigtrap after storing the pending waitstatus.
13621 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13622 new_pending. Don't handle leaving events the caller is not
13623 interested in pending here, nor handle signal short-circuiting
13624 here. Also give equal priority to all LWPs that have had events
13625 in non-stop mode. If reporting a software breakpoint event,
13626 unadjust the LWP's PC.
13627 * linux-nat.h (enum lwp_stop_reason): New.
13628 (struct lwp_info) <stop_pc>: New field.
13629 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13630 (struct lwp_info) <stop_reason>: New field.
13631 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13632
13633 2015-01-09 Pedro Alves <palves@redhat.com>
13634
13635 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13636 Set the LWP's 'resumed' flag.
13637
13638 2015-01-09 Pedro Alves <palves@redhat.com>
13639
13640 * linux-nat.c (linux_resume_one_lwp): New function.
13641 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13642 (linux_nat_resume): Use lwp_status_pending_p and
13643 linux_resume_one_lwp.
13644 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13645 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13646 (status_callback, running_callback): Use lwp_status_pending_p.
13647 (lwp_status_pending_p): New function.
13648 (stop_and_resume_callback): Use lwp_status_pending_p.
13649 (linux_nat_filter_event): Use linux_resume_one_lwp.
13650 (linux_nat_wait_1): Always use status_callback to look for an LWP
13651 with a pending status. Use linux_resume_one_lwp.
13652 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13653 linux_resume_one_lwp.
13654
13655 2015-01-09 Pedro Alves <palves@redhat.com>
13656
13657 * breakpoint.c (bp_location_inserted_here_p): New function,
13658 factored out from ...
13659 (breakpoint_inserted_here_p): ... here. Use
13660 ALL_BP_LOCATIONS_AT_ADDR.
13661 (software_breakpoint_inserted_here_p): Use
13662 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13663
13664 2014-01-09 Pedro Alves <palves@redhat.com>
13665
13666 Skip enabling event reporting if the kernel supports
13667 PTRACE_EVENT_CLONE.
13668 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13669 (thread_db_use_events): New function.
13670 (try_thread_db_load_1): Check thread_db_use_events before enabling
13671 event reporting.
13672 (update_thread_state): New function.
13673 (attach_thread): Use it. Check thread_db_use_events before
13674 enabling event reporting.
13675 (thread_db_detach): Check thread_db_use_events before disabling
13676 event reporting.
13677 (find_new_threads_callback): Check thread_db_use_events before
13678 enabling event reporting. Update the thread's state if not using
13679 libthread_db events.
13680
13681 2015-01-09 Pedro Alves <palves@redhat.com>
13682
13683 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13684 about to wait for is > 0.
13685 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13686 the kernel thread ID is -1.
13687
13688 2015-01-09 Pedro Alves <palves@redhat.com>
13689
13690 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13691 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13692 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13693 ptrace option flags.
13694 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13695 field.
13696 * nat/linux-procfs.c: Include <dirent.h>.
13697 (linux_proc_get_int): New parameter "warn". Handle it.
13698 (linux_proc_get_tgid): Adjust.
13699 (linux_proc_get_tracerpid): Rename to ...
13700 (linux_proc_get_tracerpid_nowarn): ... this.
13701 (linux_proc_pid_get_state): New function, factored out from
13702 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13703 and handle it.
13704 (linux_proc_pid_is_gone): New function.
13705 (linux_proc_pid_is_stopped): Adjust.
13706 (linux_proc_pid_is_zombie_maybe_warn)
13707 (linux_proc_pid_is_zombie_nowarn): New functions.
13708 (linux_proc_pid_is_zombie): Use
13709 linux_proc_pid_is_zombie_maybe_warn.
13710 (linux_proc_attach_tgid_threads): New function.
13711 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13712 (linux_proc_get_tracerpid): Rename to ...
13713 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13714 (linux_proc_pid_is_gone): New declaration.
13715 (linux_proc_pid_is_zombie): Update comment.
13716 (linux_proc_pid_is_zombie_nowarn): New declaration.
13717 (linux_proc_attach_lwp_func): New typedef.
13718 (linux_proc_attach_tgid_threads): New declaration.
13719 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13720 use nowarn functions.
13721 (linux_ptrace_attach_fail_reason_string): Move here from
13722 gdbserver/linux-low.c and rename.
13723 (ptrace_supports_feature): If the current ptrace options are not
13724 known yet, check them now, instead of asserting.
13725 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13726 Declare.
13727
13728 2015-01-09 Pedro Alves <palves@redhat.com>
13729
13730 * linux-thread-db.c (thread_db_find_new_threads_silently)
13731 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13732 (find_new_threads_once): Print debug output on gdb_stdlog.
13733
13734 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13735 Pedro Alves <palves@redhat.com>
13736
13737 * compile/compile.c: Include "gdb_wait.h".
13738 (do_rmdir): Check return value, and free 'zap'.
13739
13740 2015-01-08 Pedro Alves <palves@redhat.com>
13741 Yao Qi <yao@codesourcery.com>
13742
13743 * dwarf2loc.c (indirect_pieced_value): Don't call
13744 gdb_sign_extend. Call extract_signed_integer instead.
13745 * utils.c (gdb_sign_extend): Remove.
13746 * utils.h (gdb_sign_extend): Remove declaration.
13747
13748 2015-01-07 Pierre Muller <muller@sourceware.org>
13749
13750 PR symtab/17811
13751 * stabsread.c (define_symbol): Set language for C++ special symbols.
13752
13753 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13754
13755 * inflow.c (initial_gdb_ttystate): Tweak comment.
13756
13757 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13758
13759 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13760 comment documenting function.
13761
13762 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13763
13764 * terminal.h (set_initial_gdb_ttystate): Declare.
13765 * inflow.c (initial_gdb_ttystate): New static variable.
13766 (set_initial_gdb_ttystate): New setter.
13767 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13768 instead of our current terminal state.
13769 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13770
13771 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13772
13773 * guile/scm-type.c (tyscm_array_1): Add comment.
13774 * python/py-type.c (typy_array_1): Add comment.
13775
13776 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13777
13778 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13779 error if N2 is equal to N1 - 1.
13780
13781 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13782
13783 * python/py-type.c (typy_array_1): Do not raise negative-length
13784 exception if N2 is equal to N1 - 1.
13785
13786 2015-01-03 Doug Evans <xdje42@gmail.com>
13787
13788 * c-exp.y: Whitespace cleanup.
13789 (classify_inner_name): Remove extra ;.
13790
13791 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13792
13793 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13794 offset signed.
13795
13796 2015-01-02 Doug Evans <dje@google.com>
13797
13798 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13799
13800 2015-01-02 Doug Evans <dje@google.com>
13801
13802 * symtab.h (struct symbol): Fix typo in comment.
13803
13804 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13805
13806 Update year range in copyright notice of all files.
13807
13808 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13809
13810 * top.c (print_gdb_version): Update copyright year to 2015.
13811
13812 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13813
13814 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13815
13816 For older changes see ChangeLog-2014.
13817 \f
13818 Local Variables:
13819 mode: change-log
13820 left-margin: 8
13821 fill-column: 74
13822 version-control: never
13823 coding: utf-8
13824 End:
This page took 0.30537 seconds and 5 git commands to generate.