S390: Add syscall info for syscalls up to 374
[external/binutils.git] / gdb / ChangeLog
1 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2
3         * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
4         to 374.
5         * syscalls/s390x-linux.xml: Likewise.
6
7 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8
9         * linux-record.c (record_mem_at_reg): New helper function.
10         (record_linux_system_call): Exploit new helper function where
11         applicable.
12
13 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14
15         * linux-record.c: Fix whitespace issues; tabify, remove trailing
16         spaces.
17
18 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
19
20         * linux-record.c (record_linux_system_call): Add missing return
21         statements to handling of pipe and pipe2 syscalls.
22
23 2016-03-16  Doug Evans  <dje@google.com>
24
25         * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
26
27 2016-03-16  Yao Qi  <yao.qi@linaro.org>
28
29         * arm-linux-tdep.c (arm_linux_init_abi): Fix
30         arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
31         arm_linux_record_tdep.arg3.  Set arm_linux_record_tdep.arg4,
32         arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
33         arm_linux_record_tdep.arg7.
34
35 2016-03-15  Keith Seitz  <keiths@redhat.com>
36
37         PR breakpoints/18303
38         * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
39         look for "::" instead of simply ":".
40         (cp_search_static_and_baseclasses): Return null_block_symbol for
41         malformed input.
42         Remove assertions.
43         * cp-support.c (cp_find_first_component_aux): Do not return
44         a prefix length for ':' unless the next character is also ':'.
45
46 2016-03-15  Doug Evans  <dje@google.com>
47
48         * features/aarch64-core.xml (cpsr_flags): New flags type.
49         (cpsr): Use it.
50         * features/aarch64.c: Regenerate.
51
52 2016-03-15  Doug Evans  <dje@google.com>
53
54         * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
55         * features/i386/32bit-sse.xml (i386_eflags): Ditto.
56         * features/i386/64bit-core.xml (i386_eflags): Ditto.
57         * features/i386/64bit-sse.xml (i386_eflags): Ditto.
58         * features/i386/x32-core.xml (i386_eflags): Ditto.
59
60 2016-03-15  Doug Evans  <dje@google.com>
61             Wei-cheng Wang  <cole945@gmail.com>
62
63         Extend flags to support multibit and enum bitfields.
64         * NEWS: Document new features.
65         * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
66         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
67         * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
68         (append_flags_type_field): New function.
69         (append_flags_type_flag): Call it.
70         * gdbtypes.h (append_flags_type_field): Declare.
71         * target-descriptions.c (struct tdesc_type_flag): Delete.
72         (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
73         (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
74         (struct tdesc_type) <u.f>: Delete.
75         (tdesc_predefined_types): Add "bool".
76         (tdesc_predefined_type): New function.
77         (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
78         Update TDESC_TYPE_FLAGS support.
79         (tdesc_free_type): Handle TDESC_TYPE_ENUM.  Update TDESC_TYPE_FLAGS.
80         (tdesc_create_flags): Update.
81         (tdesc_create_enum): New function.
82         (tdesc_add_field): Initialize start,end to -1.
83         (tdesc_add_typed_bitfield): New function.
84         (tdesc_add_bitfield): Call it.
85         (tdesc_add_flag): Allow TDESC_TYPE_STRUCT.  Update.
86         (tdesc_add_enum_value): New function.
87         (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
88         TDESC_TYPE_STRUCT.  Handle TDESC_TYPE_ENUM.
89         * target-descriptions.h (tdesc_create_enum): Declare.
90         (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
91         * valprint.c (generic_val_print_enum_1): New function.
92         (generic_val_print_enum): Call it.
93         (val_print_type_code_flags): Make static.  Handle multibit bitfields
94         and enum bitfields.
95         * valprint.h (val_print_type_code_flags): Delete.
96         * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
97         Delete.  All uses removed.
98         (tdesc_start_enum): New function.
99         (tdesc_start_field): Handle multibit and enum bitfields.
100         (tdesc_start_enum_value): New function.
101         (enum_value_attributes, enum_children, enum_attributes): New static
102         globals.
103         (feature_children): Add "enum".
104         * features/gdb-target.dtd (enum, evalue): New elements.
105
106 2016-03-15  Doug Evans  <dje@google.com>
107
108         * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
109         from LONGEST to int.
110         (struct tdesc_type) <u.f.size>: Ditto.
111         (tdesc_set_struct_size): Change type of "size" arg from LONGEST
112         to int.  Add assertion size > 0.
113         (tdesc_create_flags): Ditto.
114         * target-descriptions.h (tdesc_set_struct_size): Update.
115         (tdesc_create_flags): Update.
116         * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
117         (MAX_VECTOR_SIZE): New macro.
118         (tdesc_start_struct): Catch conversion errors from LONGEST to int.
119         (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
120
121 2016-03-15  Doug Evans  <dje@google.com>
122
123         * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
124         TYPE_CODE_FLAGS instead of "field_type", for consistency.
125         * features/i386/amd64-avx-linux.c: Regenerate.
126         * features/i386/amd64-avx.c: Regenerate.
127         * features/i386/amd64-avx512-linux.c: Regenerate.
128         * features/i386/amd64-avx512.c: Regenerate.
129         * features/i386/amd64-linux.c: Regenerate.
130         * features/i386/amd64-mpx-linux.c: Regenerate.
131         * features/i386/amd64-mpx.c: Regenerate.
132         * features/i386/amd64.c: Regenerate.
133         * features/i386/i386-avx-linux.c: Regenerate.
134         * features/i386/i386-avx.c: Regenerate.
135         * features/i386/i386-avx512-linux.c: Regenerate.
136         * features/i386/i386-avx512.c: Regenerate.
137         * features/i386/i386-linux.c: Regenerate.
138         * features/i386/i386-mmx-linux.c: Regenerate.
139         * features/i386/i386-mmx.c: Regenerate.
140         * features/i386/i386-mpx-linux.c: Regenerate.
141         * features/i386/i386-mpx.c: Regenerate.
142         * features/i386/i386.c: Regenerate.
143         * features/i386/x32-avx-linux.c: Regenerate.
144         * features/i386/x32-avx.c: Regenerate.
145         * features/i386/x32-avx512-linux.c: Regenerate.
146         * features/i386/x32-avx512.c: Regenerate.
147         * features/i386/x32-linux.c: Regenerate.
148         * features/i386/x32.c: Regenerate.
149
150 2016-03-15  Pedro Alves  <palves@redhat.com>
151
152         PR gdb/19676
153         * linux-thread-db.c (try_thread_db_load_1): Leave
154         info->td_ta_thr_iter_p NULL iff debugging a live process and we
155         have /proc access.
156         (find_new_threads_once): Assert that we have a non-NULL
157         info->td_ta_thr_iter_p instead of checking whether the target has
158         execution.
159
160 2016-03-15  Pedro Alves  <palves@redhat.com>
161
162         PR gdb/19676
163         * infrun.c (displaced_step_prepare): Also disable displaced
164         stepping on NOT_SUPPORTED_ERROR.
165         * linux-tdep.c (linux_displaced_step_location): If reading auxv
166         fails, throw NOT_SUPPORTED_ERROR instead of generic error.
167
168 2016-03-13  Marcin Koƛcielnicki  <koriakin@0x04.net>
169
170         * s390-linux-tdep.c (s390_gen_return_address): New function.
171         (s390_gdbarch_init): Fill gen_return_address hook.
172
173 2016-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
174
175         * symmisc.c (maintenance_info_line_tables): New function.
176         (maintenance_print_one_line_table): New function.
177         (_initialize_symmisc): Register 'maint info line-table' command.
178         * NEWS: Mention new command.
179
180 2016-03-11  Marcin Koƛcielnicki  <koriakin@0x04.net>
181
182         * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
183         (s390_ax_pseudo_register_push_stack): New function.
184         (s390_gdbarch_init): Fill ax_pseudo_register_collect and
185         ax_pseudo_register_push_stack hooks.
186
187 2016-03-10  Simon Marchi  <simon.marchi@polymtl.ca>
188
189         * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
190         gdb/function/as_string.py.
191         * python/lib/gdb/function/as_string.py: New file.
192         * NEWS: Mention the new $_as_string function.
193
194 2016-03-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
195
196         * target.h: Fix doc string of target_can_use_hardware_watchpoint.
197
198 2016-03-09  Pedro Alves  <palves@redhat.com>
199
200         * event-top.c (more_to_come): Delete.
201         (struct readline_input_state): Delete.
202         (readline_input_state): Delete.
203         (get_command_line_buffer): New function.
204         (command_handler): Update comments.  Don't handle NULL commands
205         here.  Do not execute commented lines.
206         (command_line_append_input_line): New function.
207         (handle_line_of_input): New function, partly based on
208         command_line_handler and command_line_input.
209         (command_line_handler): Rewrite.
210         * event-top.h (command_handler): New declaration.
211         (command_loop): Defer command execution to command_handler.
212         (command_line_input): Update comments.  Simplify, using struct
213         buffer and handle_line_of_input.
214         * top.h (struct buffer): New forward declaration.
215         (handle_line_of_input): New declaration.
216
217 2016-03-09  Pedro Alves  <palves@redhat.com>
218
219         * event-top.c (command_line_handler): Use xfree + xstrdup instead
220         of xrealloc + strcpy.
221         * main.c (captured_main): Use xstrdup instead of xmalloc plus
222         manual clear.
223         * top.c (saved_command_line): Rewrite comment.
224         (saved_command_line_size): Delete.
225         (command_line_input): Use xfree + xstrdup instead of xrealloc +
226         strcpy.
227         * top.h (saved_command_line_size): Delete declaration.
228
229 2016-03-09  Pedro Alves  <palves@redhat.com>
230
231         * event-top.c: Include buffer.h.
232         (gdb_readline_no_editing_callback): Use struct buffer instead
233         of xrealloc.
234
235 2016-03-09  Pedro Alves  <palves@redhat.com>
236
237         * common/buffer.h (buffer_grow_char): New function.
238         * top.c: Include buffer.h.
239         (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
240         'prompt'.  Use struct buffer instead of xrealloc.
241
242 2016-03-09  Pedro Alves  <palves@redhat.com>
243
244         * defs.h (gdb_readline): Delete declaration.
245         * top.c (gdb_readline): Rename to ...
246         (gdb_readline_no_editing): ... this, and make static.
247
248 2016-03-09  Pedro Alves  <palves@redhat.com>
249
250         * utils.c (prompt_for_continue): Update comments.
251
252 2016-03-09  Pedro Alves  <palves@redhat.com>
253
254         * event-top.c (async_annotation_suffix): Delete.
255         (top_level_prompt, command_line_handler): Don't use
256         'async_annotation_suffix' and simplify.
257         * event-top.h (async_annotation_suffix): Delete declaration.
258         (init_main): Remove reference to 'async_annotation_suffix'.
259
260 2016-03-09  Pedro Alves  <palves@redhat.com>
261
262         * event-top.c (gdb_readline2): Rename to ...
263         (gdb_readline_no_editing_callback): ... this.
264         (change_line_handler, stdin_event_handler)
265         (gdb_setup_readline): Adjust.
266         * event-top.h (gdb_readline2): Rename to ...
267         (gdb_readline_no_editing_callback): ... this, and move closer to
268         other readline-related declarations.
269         * mi/mi-interp.c (mi_interpreter_resume): Adjust.
270
271 2016-03-09  Pedro Alves  <palves@redhat.com>
272
273         * top.c (window_hook): Delete.
274         (command_loop): Remove references to window_hook.
275
276 2016-03-09  Pedro Alves  <palves@redhat.com>
277
278         * gdb.base/command-line-input.exp: New file.
279
280 2016-03-09  Marcin Koƛcielnicki  <koriakin@0x04.net>
281
282         * corefile.c (safe_read_memory_unsigned_integer): New function.
283         * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
284         * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
285
286 2016-03-09  Marcin Koƛcielnicki  <koriakin@0x04.net>
287
288         * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
289         (rs6000_gen_return_address): New function.
290         (rs6000_gdbarch_init): Wire in the above.
291
292 2016-03-09  Marcin Koƛcielnicki  <koriakin@0x04.net>
293
294         * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
295         (rs6000_gdbarch_init): Wire in the above.
296
297 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
298
299         * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
300         instructions that do nothing or are conditional traps.
301
302 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
303
304         * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
305         frame func's PC in info->func before any other failure can occur.
306         (s390_frame_this_id): Use frame_id_build_unavailable_stack if
307         info->func has been filled out.
308
309 2016-03-09  Pedro Alves  <palves@redhat.com>
310
311         * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
312
313 2016-03-09  Pedro Alves  <palves@redhat.com>
314
315         * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
316
317 2016-03-09  Pedro Alves  <palves@redhat.com>
318
319         * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
320         order is BFD_ENDIAN_BIG or if the cris version is unsupported.
321
322 2016-03-09  Pedro Alves  <palves@redhat.com>
323
324         * doublest.c: Extend comments.
325         (floatformat_to_doublest, floatformat_from_doublest): Copy the
326         floatformat's total size, not the host type's size.
327
328 2016-03-09  Pedro Alves  <palves@redhat.com>
329
330         * doublest.c (floatformat_totalsize_bytes): New function.
331         (floatformat_from_type): Assert that the type's length is at least
332         as long as the floatformat's totalsize.
333         * doublest.h (floatformat_totalsize_bytes): New declaration.
334         * gdbtypes.c (arch_float_type): Assert that the type's length is
335         at least as long as the floatformat's totalsize.
336
337 2016-03-09  Pedro Alves  <palves@redhat.com>
338
339         * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
340         format to floatformats_ieee_double.
341
342 2016-03-07  Pedro Alves  <palves@redhat.com>
343
344         * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
345         before calling bfd_get_flavour.
346
347 2016-03-05  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
348
349         * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
350         (avr_push_dummy_call): Correct last needed argument register.
351         Write MSB of argument into register and subsequent bytes into
352         other registers in decreasing order.
353
354 2016-03-04  Yao Qi  <yao.qi@linaro.org>
355
356         * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
357         condition check.  Record the right D register number.
358
359 2016-03-04  Yao Qi  <yao.qi@linaro.org>
360
361         * arm-tdep.c (arm_record_extension_space): Remove code
362         printing "Process record does not support".
363         (arm_record_data_proc_misc_ld_str): Likewise.
364         (decode_insn): Call arm_record_extension_space if condition
365         is 0xf.  Call arm_record_unsupported_insn if ret isn't
366         ARM_RECORD_SUCCESS.  Use 'ret' instead of 'insn_id' to hold
367         the value of thumb2_record_decode_insn_handler.
368
369 2016-03-04  Simon Marchi  <simon.marchi@ericsson.com>
370
371         * features/feature_to_c.sh: Print the help when passing no
372         argument.
373
374 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
375
376         * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
377
378 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
379
380         * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
381
382 2016-03-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
383
384         * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
385         exception when attempting to access the inferior's backchain.
386
387 2016-02-29  Yao Qi  <yao.qi@linaro.org>
388
389         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
390         eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
391         Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
392         for aarch64_sys_epoll_create1.
393
394 2016-02-29  Yao Qi  <yao.qi@linaro.org>
395
396         * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
397         <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
398         <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
399         * linux-record.c (record_linux_system_call): Handle them.
400
401 2016-02-28  Iain Buclaw  <ibuclaw@gdcproject.org>
402
403         * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
404         cyclic imports.
405
406 2016-02-26  Keith Seitz  <keiths@redhat.com>
407
408         * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
409         to avoid invalid conversion from void *.
410
411 2016-02-26  Yao Qi  <yao.qi@linaro.org>
412
413         * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
414         per bit 8.  Check bit 20 instead of bit 4 for VMOV
415         instruction.  Record D registers for instructions changing
416         S registers.  Change of the order of length and address
417         in record_buf_mem array.
418
419 2016-02-26  Yao Qi  <yao.qi@linaro.org>
420
421         * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
422         number of Rd.
423
424 2016-02-25  Doug Evans  <dje@google.com>
425
426         * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
427         compiler warning.
428         (recv_long_data): Ditto.
429
430 2016-02-25  Simon Marchi  <simon.marchi@ericsson.com>
431
432         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
433         Initialize variables.
434
435 2016-02-25  Antoine Tremblay  <antoine.tremblay@ericsson.com>
436
437         * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
438         (ax_reg_mask): Likewise.
439
440 2016-02-24  Pedro Alves  <palves@redhat.com>
441
442         * linux-nat.c (save_sigtrap) Delete.
443         (stop_wait_callback): Call save_stop_reason instead of
444         save_sigtrap.
445         (check_stopped_by_breakpoint): Rename to ...
446         (save_stop_reason): ... this.  Bits of save_sigtrap folded here.
447         Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
448         GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.  Factor out
449         common code between the USE_SIGTRAP_SIGINFO and
450         !USE_SIGTRAP_SIGINFO blocks.
451         (linux_nat_filter_event): Call save_stop_reason instead of
452         save_sigtrap.
453         * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
454         si_code for MIPS.
455         * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table.  Add
456         comments on MIPS behavior.
457         (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
458
459 2016-02-24  Marcin Koƛcielnicki  <koriakin@0x04.net>
460
461         * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
462         to avoid spurious warnings.
463
464 2016-02-24  Gary Benson  <gbenson@redhat.com>
465
466         * exec.c (exec_file_locate_attach): Do not attempt to
467         locate main executable locally if not found in sysroot.
468
469 2016-02-24  Joel Brobecker  <brobecker@adacore.com>
470
471         GDB 7.11 released.
472
473 2016-02-24  Wei-cheng Wang  <cole945@gmail.com>
474
475         * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
476         unavailable PC/SP to build unavailable frame.
477
478 2016-02-23  Doug Evans  <dje@google.com>
479
480         Extend "skip" command to support -file, -gfile, -function, -rfunction.
481         * NEWS: Document new features.
482         * skip.c: #include "fnmatch.h", "gdb_regex.h".
483         (skiplist_entry) <file>: Renamed from filename.
484         <function>: Renamed from function_name.
485         <file_is_glob, function_is_regexp>: New members.
486         <compiled_function_regexp, compiled_function_regexp_is_valid>:
487         New members.
488         (make_skip_entry): New function.
489         (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
490         (make_free_skiplist_entry_cleanup): New function.
491         (skip_file_command): Update.
492         (skip_function, skip_function_command): Update.
493         (compile_skip_regexp): New functions.
494         (skip_command): Add support for new options.
495         (skip_info): Update.
496         (skip_file_p, skip_gfile_p): New functions.
497         (skip_function_p, skip_rfunction_p): New functions.
498         (function_name_is_marked_for_skip): Update and simplify.
499         (_initialize_step_skip): Update.
500         * symtab.c: #include "fnmatch.h".
501         (compare_glob_filenames_for_search): New function.
502         * symtab.h (compare_glob_filenames_for_search): Declare.
503         * utils.c (count_path_elements): New function.
504         (strip_leading_path_elements): New function.
505         * utils.h (count_path_elements): Declare.
506         (strip_leading_path_elements): Declare.
507
508 2016-02-23  Simon Marchi  <simon.marchi@ericsson.com>
509
510         * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
511         (thumb_process_displaced_insn): Likewise.
512         (arm_process_displaced_insn): Adjust calls.
513
514 2016-02-23  Yao Qi  <yao.qi@linaro.org>
515
516         * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
517         Remove.
518         <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
519         <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
520         <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
521         <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
522         <aarch64_sys_linkat, aarch64_sys_renameat>: New.
523         <aarch64_sys_faccessat>: New.
524         <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
525         <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
526         <aarch64_sys_newfstatat>: New.
527         (UNSUPPORTED_SYSCALL_MAP): New macro.
528         (aarch64_canonicalize_syscall): Add missing syscalls.
529
530 2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
531
532         * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
533
534 2016-02-22  Yao Qi  <yao.qi@linaro.org>
535
536         * arm-tdep.c: Fix code format issues.
537
538 2016-02-21  Iain Buclaw  <ibuclaw@gdcproject.org>
539
540         * d-namespace.c (d_lookup_symbol_imports): Remove argument
541         'search_parents'.  All callers updated.
542
543 2016-02-18  Marcin Koƛcielnicki  <koriakin@0x04.net>
544
545         * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
546         (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
547
548 2016-02-18  Walfred Tedeschi  <walfred.tedeschi@intel.com>
549
550         * NEWS: Add entry for bound violation.
551         * amd64-linux-tdep.c (amd64_linux_init_abi_common):
552         Add handler for segmentation fault.
553         * gdbarch.sh (handle_segmentation_fault): New.
554         * gdbarch.c: Regenerate.
555         * gdbarch.h: Regenerate.
556         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
557         (SIG_CODE_BONDARY_FAULT): New define.
558         (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
559         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
560         * i386-tdep.c (i386_mpx_enabled): Add as external.
561         * i386-tdep.c (i386_mpx_enabled): Add as external.
562         * infrun.c (handle_segmentation_fault): New function.
563         (print_signal_received_reason): Use handle_segmentation_fault.
564
565 2016-02-18  Marcin Koƛcielnicki  <koriakin@0x04.net>
566
567         * arch-utils.c (default_guess_tracepoint_registers): New function.
568         * arch-utils.h (default_guess_tracepoint_registers): New prototype.
569         * gdbarch.c: Regenerate.
570         * gdbarch.h: Regenerate.
571         * gdbarch.sh: Add guess_tracepoint_registers hook.
572         * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
573
574 2016-02-17  Gary Benson  <gbenson@redhat.com>
575
576         * exec.c (exec_file_locate_attach): Add missing cleanup.
577
578 2016-02-16  Don Breazeal  <donb@codesourcery.com>
579
580         PR remote/19496
581         * remote.c (remove_new_fork_children): Check for pending
582         fork status in thread_info.suspend.
583
584 2016-02-16  Yao Qi  <yao.qi@linaro.org>
585
586         * arm-linux-tdep.c (arm_linux_software_single_step): Assign
587         'old_chain' later.
588
589 2016-02-16  Yao Qi  <yao.qi@linaro.org>
590
591         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
592         <syscall_next_pc>: Remove argument PC.  Callers updated.
593         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
594         Remove argument PC.  Get pc from regcache_read_pc.
595         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
596         argument PC.
597
598 2016-02-15  Yao Qi  <yao.qi@linaro.org>
599
600         * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
601
602 2016-02-12  Yao Qi  <yao.qi@linaro.org>
603
604         * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
605         nextpc according to instruction.
606
607 2016-02-12  Yao Qi  <yao.qi@linaro.org>
608
609         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
610         self->ops->fixup if it isn't NULL.
611         * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
612         (struct arm_get_next_pcs_ops) <fixup>: New field.
613         * arch/arm-linux.c: Include common-regcache.h and
614         arch/arm-get-next-pcs.h.
615         (arm_linux_get_next_pcs_fixup): New function.
616         * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
617         * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
618         it with arm_linux_get_next_pcs_fixup.
619         (arm_linux_software_single_step): Move code to
620         arm_linux_get_next_pcs_fixup.
621         * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
622
623 2016-02-12  Marcin Koƛcielnicki  <koriakin@0x04.net>
624
625         * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
626         and return NULL.
627
628 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
629
630         * frame.h (skip_tailcall_frames): Update comment.
631         * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
632         if only artificial frames are found.  Update comment.
633         (frame_unwind_caller_id): Handle NULL return.
634         (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
635         skip_artificial_frames does not return NULL.
636         (frame_pop): Add an error if only tailcall frames are found.
637         * infcmd.c (finish_command): Move skip_tailcall_frames call into
638         forward-execution case.  Add an error if only tailcall frames are
639         found.
640
641 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
642
643         * stack.c (frame_info): Check frame_unwind_caller_id.
644
645 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
646
647         * frame.h (skip_tailcall_frames): New.
648         * frame.c (skip_tailcall_frames): New.
649         (frame_pop): Call skip_tailcall_frames.
650         * infcmd.c (finish_command): Call skip_tailcall_frames.
651
652 2016-02-11  Pedro Alves  <palves@redhat.com>
653
654         * Makefile.in (check-parallel): New rule.
655
656 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
657
658         * arm-tdep.c (arm_skip_prologue): Remove unused variables.
659         (arm_analyze_prologue): Likewise.
660         (arm_scan_prologue): Likewise.
661         (arm_m_exception_prev_register): Likewise.
662         (arm_copy_block_xfer): Likewise.
663         (thumb2_copy_block_xfer): Likewise.
664         (arm_decode_miscellaneous): Likewise.
665         (arm_decode_ld_st_word_ubyte): Likewise.
666         (arm_decode_svc_copro): Likewise.
667         (thumb2_decode_svc_copro): Likewise.
668         (thumb_copy_16bit_ldr_literal): Likewise.
669         (thumb_copy_pop_pc_16bit): Likewise.
670         (decode_thumb_32bit_ld_mem_hints): Likewise.
671         (arm_show_force_mode): Likewise.
672         (_initialize_arm_tdep): Likewise.
673         (arm_record_strx): Likewise.
674         (arm_record_extension_space): Likewise.
675         (arm_record_data_proc_misc_ld_str): Likewise.
676         (arm_record_exreg_ld_st_insn): Likewise.
677         (arm_record_vfp_data_proc_insn): Likewise.
678         (arm_record_coproc_data_proc): Likewise.
679         (thumb_record_misc): Likewise.
680         (thumb_record_ldm_stm_swi): Likewise.
681         (thumb2_record_ld_st_dual_ex_tbb): Likewise.
682         (thumb2_record_ld_mem_hints): Likewise.
683         (thumb2_record_lmul_lmla_div): Likewise.
684         (thumb2_record_asimd_struct_ld_st): Likewise.
685         (arm_process_record): Likewise.
686
687 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
688
689         * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
690         (ARM displaced stepping support): Remove reference to
691         arm_displaced_step_copy_insn in comment.
692         * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
693         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
694         reference to arm_displaced_step_copy_insn in comment.
695
696 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
697
698         * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
699         (thumb_copy_b): Likewise.
700         (arm_decode_b_bl_ldmstm): Likewise.
701         (thumb_copy_16bit_ldr_literal): Likewise.
702         (thumb_copy_pop_pc_16bit): Likewise.
703
704 2016-02-11  Antoine Tremblay  <antoine.tremblay@ericsson.com>
705
706         * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
707         than loc->gdbarch.
708
709 2016-02-10  Marcin Koƛcielnicki  <koriakin@0x04.net>
710
711         * tracefile-tfile.c (trace_tdesc): New static variable.
712         (tfile_open): Clear trace_tdesc, call target_find_description.
713         (tfile_interp_line): Recognize tdesc lines.
714         (tfile_close): Clear trace_tdesc.
715         (tfile_xfer_partial_features): New function.
716         (tfile_xfer_partial): Call tfile_xfer_partial_features.
717         (tfile_append_tdesc_line): New function.
718
719 2016-02-10  Marcin Koƛcielnicki  <koriakin@0x04.net>
720
721         * ctf.c (ctf_write_tdesc): New function.
722         (ctf_write_ops): Wire in ctf_write_tdesc.
723         * tracefile-tfile.c (tfile_write_tdesc): New function.
724         (tfile_write_ops): Wire in tfile_write_tdesc.
725         * tracefile.c (trace_save): Call write_tdesc method.
726         * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
727         * xml-tdesc.c (target_fetch_description_xml): New function.
728         * xml-tdesc.h: Add target_fetch_description_xml prototype.
729
730 2016-02-10  Simon Marchi  <simon.marchi@ericsson.com>
731
732         * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
733         (arm_decode_dp_misc): Likewise.
734
735 2016-02-10  Marcin Koƛcielnicki  <koriakin@0x04.net>
736
737         * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
738         (amd64_init_abi): Fill ax_pseudo_register_collect hook.
739         * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
740         misleading comment.
741         (i386_pseudo_register_write): Ditto.
742         (i386_ax_pseudo_register_collect): New function.
743         (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
744         * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
745
746 2016-02-10  Marcin Koƛcielnicki  <koriakin@0x04.net>
747
748         * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
749         instead of gdb order.
750
751 2016-02-10  Marcin Koƛcielnicki  <koriakin@0x04.net>
752
753         * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
754         check.
755
756 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
757
758         * NEWS: Create a new section for the next release branch.
759         Rename the section of the current branch, now that it has
760         been cut.
761
762 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
763
764         GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
765         * version.in: Bump version to 7.11.50.DATE-git.
766
767 2016-02-09  Keith Seitz  <keiths@redhat.com>
768
769         PR breakpoints/19546
770         * breakpoint.c (breakpoint_event_location_empty_p): New function.
771         (update_breakpoints_after_exec, bkpt_re_set): Use this new function
772         instead of event_location_empty_p.
773
774 2016-02-09  Keith Seitz  <keiths@redhat.com>
775
776         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
777         string_to_event_location_basic instead of string_to_event_location.
778
779 2016-02-09  Keith Seitz  <keiths@redhat.com>
780
781         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
782         leading whitespace and use string_to_event_location_basic instead
783         of new_linespec_location.
784
785 2016-02-09  Keith Seitz  <keiths@redhat.com>
786
787         PR python/19506
788         * python/py-breakpoint.c (bppy_init): Use
789         string_to_event_location_basic instead of new_linespec_location.
790
791 2016-02-09  Keith Seitz  <keiths@redhat.com>
792
793         * location.c (string_to_explicit_location): Note that "-p" is
794         reserved for probe locations and return NULL for any input
795         that starts with that.
796         (string_to_event_location): Move "legacy" linespec code to ...
797         (string_to_event_location_basic): ... here.
798         * location.h (string_to_event_location): Update comment.
799         (string_to_event_location_basic): New function.
800
801 2016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
802
803         * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
804         to AC_OUTPUT.  Remove "exit 0" at the end.
805         * configure: Regenerate.
806
807 2016-02-09  Pedro Alves  <palves@redhat.com>
808
809         PR breakpoints/19548
810         * breakpoint.c (create_overlay_event_breakpoint): Don't update
811         global location list here.
812         (create_longjmp_master_breakpoint)
813         (create_std_terminate_master_breakpoint)
814         (create_exception_master_breakpoint, create_jit_event_breakpoint)
815         (update_breakpoint_locations):
816         (breakpoint_re_set): Update global location list after all
817         breakpoints are re-set.
818
819 2016-02-08  Simon Marchi  <simon.marchi@ericsson.com>
820
821         * remote.c (remote_register_number_and_offset): Remove unused
822         variable(s).
823         (remote_thread_always_alive): Likewise.
824         (remote_update_thread_list): Likewise.
825         (process_initial_stop_replies): Likewise.
826         (remote_start_remote): Likewise.
827         (remote_check_symbols): Likewise.
828         (discard_pending_stop_replies): Likewise.
829         (process_stop_reply): Likewise.
830         (putpkt_binary): Likewise.
831         (getpkt): Likewise.
832         (remote_add_target_side_condition): Likewise.
833         (remote_insert_breakpoint): Likewise.
834         (remote_supports_stopped_by_sw_breakpoint): Likewise.
835         (remote_supports_stopped_by_hw_breakpoint): Likewise.
836         (remote_xfer_partial): Likewise.
837         (remote_read_btrace): Likewise.
838         (remote_async_serial_handler): Likewise.
839         (remote_thread_events): Likewise.
840         (_initialize_remote): Likewise.
841
842 2016-02-07  Simon Marchi  <simon.marchi@polymtl.ca>
843
844         * varobj.h (varobj_delete): Remove dellist parameter, update and
845         move documentation here.
846         * varobj.c (struct cpstack, cppush, cppop): Remove.
847         (delete_variable): Remove resultp (first) parameter.
848         (delete_variable_1): Likewise.
849         (varobj_delete): Remove dellist parameter and unused code.
850         (update_dynamic_varobj_children): Adjust varobj_delete call.
851         (update_type_if_necessary): Likewise.
852         (varobj_set_visualizer): Likewise.
853         (varobj_update): Likewise.
854         (value_of_root): Likewise.
855         (varobj_invalidate_iter): Likewise.
856         * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
857
858 2016-02-04  Yao Qi  <yao.qi@linaro.org>
859
860         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
861         0 before handling 'F' and set it back afterwards.
862
863 2016-02-02  Simon Marchi  <simon.marchi@ericsson.com>
864
865         * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
866
867 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
868
869         * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
870         New types.
871         (compat_siginfo): New bound fields added.
872         (compat_x32_siginfo): New field added.
873         (cpt_si_addr_lsb): New define.
874         (compat_siginfo_from_siginfo): Use nat_siginfo.
875         (siginfo_from_compat_siginfo): Use nat_siginfo.
876         (compat_x32_siginfo_from_siginfo): Likewise.
877         (siginfo_from_compat_x32_siginfo): Likewise.
878
879 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
880
881         * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
882         structure to the siginfo if extra_fields contains
883         LINUX_SIGINFO_FIELD_ADDR_BND.
884
885 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
886
887         * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
888         * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
889         * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
890         function.
891         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
892         x86_linux_get_siginfo_type for the amd64 abi.
893         * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
894         function.
895         (i386_linux_init_abi): Add new function at the i386 ABI
896         initialization.
897
898 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
899
900         * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
901         (linux_siginfo_extra_fields): New enum type.
902         * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
903         (linux_get_siginfo_type): Use new function.
904
905 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
906
907         * nat/amd64-linux-siginfo.c: New file.
908         * nat/amd64-linux-siginfo.h: New file.
909         * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
910         (amd64-linux-siginfo.o): New rule.
911         * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
912         * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
913         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
914         (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
915         (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
916         (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
917         (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
918         (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
919
920 2016-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
921
922         * value.c (max_value_size): New variable.
923         (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
924         (set_max_value_size): New function.
925         (show_max_value_size): New function.
926         (check_type_length_before_alloc): New function.
927         (allocate_value_contents): Call check_type_length_before_alloc.
928         (set_value_enclosing_type): Likewise.
929         (_initialize_values): Add set/show handler for max-value-size.
930         * NEWS: Mention new set/show command.
931
932 2016-01-31  Simon Marchi  <simon.marchi@polymtl.ca>
933
934         * varobj.h (struct varobj): Fix typos in comments.
935         (struct lang_varobj_ops): Likewise.
936         * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
937         (varobj_create): Move misplaced comment.
938
939 2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
940
941         * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
942         to for include additional lines.
943         * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
944
945 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
946
947         * gnulib/import/Makefile.am: Regenerate.
948         * gnulib/import/Makefile.in: Regenerate.
949         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
950         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
951
952 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
953
954         * remote.c (skip_to_semicolon): Remove.
955         (remote_parse_stop_reply): Use strchrnul instead of
956         skip_to_semicolon.
957         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
958         strchrnul.
959         * gnulib/aclocal.m4: Regenerate.
960         * gnulib/config.in: Regenerate.
961         * gnulib/configure: Regenerate.
962         * gnulib/import/Makefile.am: Regenerate.
963         * gnulib/import/Makefile.in: Regenerate.
964         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
965         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
966         * gnulib/import/m4/rawmemchr.m4: New file.
967         * gnulib/import/m4/strchrnul.m4: New file.
968         * gnulib/import/rawmemchr.c: New file.
969         * gnulib/import/rawmemchr.valgrind: New file.
970         * gnulib/import/strchrnul.c: New file.
971         * gnulib/import/strchrnul.valgrind: New file.
972
973 2016-01-28  Yao Qi  <yao.qi@linaro.org>
974
975         * breakpoint.c (build_target_command_list): Don't call continue
976         if aexpr is NULL.
977         (build_target_condition_list): Likewise.
978
979 2016-01-27  Kevin Buettner  <kevinb@redhat.com>
980
981         * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
982         bytes as aggregates.
983
984 2016-01-27  Joel Brobecker  <brobecker@adacore.com>
985
986         * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
987         Linespec Maintainers.
988
989 2016-01-26  Simon Marchi  <simon.marchi@ericsson.com>
990
991         * common/common-utils.c (skip_spaces): Fix comment.
992         (skip_to_space_const): Likewise.
993
994 2016-01-25  Yao Qi  <yao.qi@linaro.org>
995
996         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
997         Remove argument pc.  Get pc by regcache_read_pc.  Callers updated.
998         (arm_deal_with_atomic_sequence_raw): Likewise.
999         (thumb_get_next_pcs_raw): Likewise.
1000         (arm_get_next_pcs_raw): Likewise.
1001         (arm_get_next_pcs): Remove argument pc.  Callers updated.
1002         * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
1003
1004 2016-01-25  Mark Wielaard  <mjw@redhat.com>
1005
1006         * ada-lang.c (ada_evaluate_subexp): Add proper else block.
1007         * c-typeprint.c (c_type_print_base): Fix misleading indentation of
1008         if statement.
1009         * inflow.c (child_terminal_ours_1): Fix misleading indentation of
1010         statement block by introducing an else.
1011         * linux-record.c (record_linux_sockaddr): Fix misleading indentation
1012         of return statements.
1013         (record_linux_msghdr): Likewise.
1014
1015 2016-01-25  Pedro Alves  <palves@redhat.com>
1016
1017         PR threads/19461
1018         * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
1019         parent/child running states.
1020
1021 2016-01-25  Pedro Alves  <palves@redhat.com>
1022
1023         PR gdb/19494
1024         * linux-nat.c (kill_one_lwp): New, factored out from ...
1025         (kill_callback): ... this.
1026         (kill_wait_callback): New, factored out from ...
1027         (kill_wait_one_lwp): ... this.
1028         (kill_unfollowed_fork_children): New function.
1029         (linux_nat_kill): Use it.
1030
1031 2016-01-22  John Baldwin  <jhb@FreeBSD.org>
1032
1033         * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
1034
1035 2016-01-22  Yao Qi  <yao.qi@linaro.org>
1036
1037         * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
1038         instead of warning.
1039         (store_fpregs, fetch_regs, store_regs): Likewise.
1040         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
1041         (fetch_vfp_regs, store_vfp_regs): Likewise.
1042
1043 2016-01-21  Doug Evans  <dje@google.com>
1044
1045         * breakpoint.c (init_breakpoint_sal): Add comment.
1046
1047 2016-01-21  Marcin Koƛcielnicki  <koriakin@0x04.net>
1048
1049         * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
1050
1051 2016-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1052
1053         * disasm.c (maybe_add_dis_line_entry): Rename to...
1054         (add_dis_line_entry): ...this, and update header comment.
1055         (do_mixed_source_and_assembly): Now use add_dis_line_entry.
1056
1057 2016-01-21  Pedro Alves  <palves@redhat.com>
1058
1059         * Makefile.in (COMPILER_CFLAGS): New.
1060         (CXXFLAGS): Get it from configure.
1061         (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
1062         instead of CFLAGS.
1063         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
1064         COMPILER_CFLAGS.
1065         * configure: Regenerate.
1066
1067 2016-01-21  Joel Brobecker  <brobecker@adacore.com>
1068
1069         * location.h (new_address_location): Add new parameters
1070         "addr_string" and "addr_string_len".
1071         (get_address_string_location): Add declaration.
1072         * location.c (new_address_location): Add new parameters
1073         "addr_string" and "addr_string_len".  If not NULL, store
1074         a copy of the addr_string in the new location as well.
1075         (get_address_string_location): New function.
1076         (string_to_event_location): Update call to new_address_location.
1077         * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
1078         Save the event location in the parser's state before
1079         passing it to convert_address_location_to_sals.
1080         * breakpoint.c (create_thread_event_breakpoint): Update call
1081         to new_address_location.
1082         (init_breakpoint_sal): Get the event location's string, if any,
1083         and use it to update call to new_address_location.
1084         * python/py-finishbreakpoint.c (bpfinishpy_init):
1085         Update call to new_address_location.
1086         * spu-tdep.c (spu_catch_start): Likewise.
1087
1088         * config/djgpp/fnchange.lst: Add entries for
1089         gdb/testsuite/gdb.base/break-fun-addr1.c and
1090         gdb/testsuite/gdb.base/break-fun-addr2.c.
1091
1092 2016-01-21  Yao Qi  <yao.qi@linaro.org>
1093
1094         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
1095         is_thumb and set it according to CPSR saved on the stack.
1096         (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
1097         arm_linux_sigreturn_next_pc.
1098
1099 2016-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
1100
1101         * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
1102         Fix enumerators sort key function.
1103
1104 2016-01-20  Joel Brobecker  <brobecker@adacore.com>
1105
1106         * printcmd.c (print_scalar_formatted): Move binary operator from
1107         end of line to beginning of next line.  Adjust formatting
1108         accordingly.
1109
1110 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1111
1112         * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
1113         "len" with sysctl.
1114
1115 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1116
1117         * fbsd-tdep.c (find_stop_signal): Remove.
1118         (struct fbsd_collect_regset_section_cb) <lwp>: New field.
1119         <stop_signal>: New field.
1120         <abort_iteration>: New field.
1121         (fbsd_collect_regset_section_cb): Use new fields.
1122         (fbsd_collect_thread_registers): New function.
1123         (struct fbsd_corefile_thread_data): New structure.
1124         (fbsd_corefile_thread): New function.
1125         (fbsd_make_corefile_notes): Use new function to dump notes for each
1126         non-exited thread in a process.
1127
1128 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1129
1130         * configure.ac: Check for support for LWP names on FreeBSD.
1131         * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
1132         [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
1133         (fbsd_fetch_kinfo_proc): Move function earlier.
1134         [PT_LWPINFO] (fbsd_thread_alive): New function.
1135         [PT_LWPINFO] (fbsd_pid_to_str): New function.
1136         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
1137         [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
1138         [PT_LWPINFO] (fbsd_add_threads): New function.
1139         [PT_LWPINFO] (fbsd_update_thread_list): New function.
1140         [PT_LWPINFO] New variable super_resume.
1141         [PT_LWPINFO] (resume_one_thread_cb): New function.
1142         [PT_LWPINFO] (resume_all_threads_cb): New function.
1143         [PT_LWPINFO] (fbsd_resume): New function.
1144         (fbsd_remember_child): Save full ptid instead of plain pid.
1145         (fbsd_is_child_pending): Return ptid of saved child process.
1146         (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
1147         first stop.
1148         [PT_LWP_EVENTS] Handle LWP events.
1149         [TDP_RFPPWAIT] Include LWP in child ptid.
1150         (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
1151         (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
1152         Add threads for existing processes.
1153         (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
1154         "fbsd_thread_alive".
1155         Set "to_pid_to_str" to "fbsd_pid_to_str".
1156         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
1157         "fbsd_thread_name".
1158         [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
1159         Set "to_has_thread_control" to "tc_schedlock".
1160         Set "to_resume" to "fbsd_resume".
1161         (_initialize_fbsd_nat): New function.
1162         * configure: Regenerate.
1163         * config.in: Regenerate.
1164
1165 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1166
1167         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
1168         get_ptrace_pid.
1169         (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
1170         (amd64bsd_dr_get): Use get_ptrace_pid.
1171         (amd64bsd_dr_set): Use get_ptrace_pid.
1172         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
1173         (i386bsd_store_inferior_registers): Use get_ptrace_pid.
1174         (i386bsd_dr_get): Use get_ptrace_pid.
1175         (i386bsd_dr_set): Use get_ptrace_pid.
1176         * inf-ptrace.c (get_ptrace_pid): Export.
1177         * inf-ptrace.h (get_ptrace_pid): Declare.
1178         * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
1179         (ppcfbsd_store_inferior_registers): Use lwp id.
1180
1181 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1182
1183         * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
1184         (fbsd_core_thread_name): New function.
1185         (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
1186         Add "core_thread_name" gdbarch method.
1187
1188 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1189
1190         * corelow.c (core_thread_name): New function.
1191         (init_core_ops): Use "core_thread_name" for the "to_thread_name"
1192         target op.
1193         * gdbarch.sh (core_thread_name): New gdbarch callback.
1194         * gdbarch.h: Re-generate.
1195         * gdbarch.c: Re-generate.
1196
1197 2016-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
1198
1199         * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
1200         convert gdb.Value to integer type using int().
1201
1202 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1203
1204         * configure.ac: Include <sys/types.h when checking for "r_fs" in
1205         "struct reg".
1206         * configure: Regenerate.
1207
1208 2016-01-19  Pedro Alves  <palves@redhat.com>
1209
1210         * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
1211         * break-catch-throw.c (re_set_exception_catchpoint): Pass the
1212         current program space down to linespec decoding and breakpoint
1213         location updating.
1214         * breakpoint.c (parse_breakpoint_sals): Adjust calls to
1215         decode_line_full.
1216         (until_break_command): Adjust calls to decode_line_1.
1217         (base_breakpoint_decode_location, bkpt_decode_location): Add
1218         'search_pspace' parameter.  Pass it along.
1219         (bkpt_probe_create_sals_from_location): Adjust calls to
1220         parse_probes.
1221         (tracepoint_decode_location, tracepoint_probe_decode_location)
1222         (strace_marker_decode_location): Add 'search_pspace' parameter.
1223         Pass it along.
1224         (all_locations_are_pending): Rewrite to take a breakpoint and
1225         program space as arguments instead.
1226         (hoist_existing_locations): New function.
1227         (update_breakpoint_locations): Add 'filter_pspace' parameter.  Use
1228         hoist_existing_locations instead of always removing all locations,
1229         and adjust to all_locations_are_pending change.
1230         (location_to_sals): Add 'search_pspace' parameter.  Pass it along.
1231         Don't disable the breakpoint if there are other locations in
1232         another program space.
1233         (breakpoint_re_set_default): Adjust to pass down the current
1234         program space as filter program space.
1235         (decode_location_default): Add 'search_pspace' parameter and pass
1236         it along.
1237         (prepare_re_set_context): Don't switch program space here.
1238         (breakpoint_re_set): Use save_current_space_and_thread instead of
1239         save_current_program_space.
1240         * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
1241         'search_pspace' parameter.
1242         (update_breakpoint_locations): Add 'filter_pspace' parameter.
1243         * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
1244         decode_line_1.
1245         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
1246         program space as filter program space.
1247         * linespec.c (struct linespec_state) <search_pspace>: New field.
1248         (create_sals_line_offset, convert_explicit_location_to_sals)
1249         (parse_linespec): Pass the search program space down.
1250         (linespec_state_constructor): Add 'search_pspace' parameter.
1251         Store it.
1252         (linespec_parser_new): Add 'search_pspace' parameter and pass it
1253         along.
1254         (linespec_lex_to_end): Adjust.
1255         (decode_line_full, decode_line_1): Add 'search_pspace' parameter
1256         and pass it along.
1257         (decode_line_with_last_displayed): Adjust.
1258         (collect_symtabs_from_filename, symtabs_from_filename): New
1259         'search_pspace' parameter.  Use it.
1260         (find_function_symbols): Pass the search program space down.
1261         * linespec.h (decode_line_1, decode_line_full): Add
1262         'search_pspace' parameter.
1263         * probe.c (parse_probes_in_pspace): New function, factored out
1264         from ...
1265         (parse_probes): ... this.  Add 'search_pspace' parameter and use
1266         it.
1267         * probe.h (parse_probes): Add pspace' parameter.
1268         * python/python.c (gdbpy_decode_line): Adjust.
1269         * tracepoint.c (scope_info): Adjust.
1270
1271 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
1272
1273         * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
1274         instruction support.
1275         (micromips_next_pc): Likewise.
1276         (micromips_scan_prologue): Likewise.
1277         (micromips_deal_with_atomic_sequence): Likewise.
1278         (micromips_stack_frame_destroyed_p): Likewise.
1279         (mips_breakpoint_from_pc): Likewise.
1280
1281 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
1282
1283         * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
1284         unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
1285
1286 2016-01-18  Pedro Alves  <palves@redhat.com>
1287
1288         * NEWS: Mention that GDB now displays the ID and name of the
1289         thread that hit a breakpoint or received a signal.
1290         * break-catch-sig.c (signal_catchpoint_print_it): Use
1291         maybe_print_thread_hit_breakpoint.
1292         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1293         * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
1294         * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
1295         (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
1296         (print_it_catch_exec, print_it_ranged_breakpoint)
1297         (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
1298         Use maybe_print_thread_hit_breakpoint.
1299         * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
1300         * gdbthread.h (show_thread_that_caused_stop): Declare.
1301         * infrun.c (print_signal_received_reason): Print which thread
1302         received signal.
1303         * thread.c (show_thread_that_caused_stop): New function.
1304
1305 2016-01-18  Gary Benson  <gbenson@redhat.com>
1306
1307         * nat/linux-namespaces.c (do_fork): New function.
1308         (linux_mntns_get_helper): Use the above.
1309
1310 2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
1311
1312         Pushed by Joel Brobecker  <brobecker@adacore.com>.
1313         PR gdb/19208
1314         * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
1315         if the function has no name.
1316
1317 2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
1318
1319         * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
1320         Conditionalize for Windows host.
1321         (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
1322         (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
1323         (phony_iconv_open): Handle both UTF-32 endiannesses.
1324         (phony_iconv): Likewise.  Check for output overflow and clean up
1325         out-of-input cases.  Correct adjustment to input buffer pointer.
1326         (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
1327         phony_iconv_open.
1328
1329 2016-01-15  Pedro Alves  <palves@redhat.com>
1330
1331         * NEWS: Mention star wildcard ranges.
1332         * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
1333         (number_range_setup_range): New function.
1334         * cli/cli-utils.h (number_range_setup_range): New declaration.
1335         * thread.c (thread_apply_command): Support star TID ranges.
1336         * tid-parse.c (tid_range_parser_finished)
1337         (tid_range_parser_string, tid_range_parser_skip)
1338         (get_tid_or_range, get_tid_or_range): Handle
1339         TID_RANGE_STATE_STAR_RANGE.
1340         (tid_range_parser_star_range): New function.
1341         * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
1342         New value.
1343         (tid_range_parser_star_range): New declaration.
1344
1345 2016-01-15  Pedro Alves  <palves@redhat.com>
1346
1347         * thread.c (thread_apply_command): Use the tid range parser to
1348         advance past the thread ID list.
1349         * tid-parse.c (get_positive_number_trailer): New function.
1350         (parse_thread_id): Use it.
1351         (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
1352         thread ID error.
1353         (get_tid_or_range): Detect negative values.  Return 0 instead of
1354         throwing invalid thread ID error.
1355
1356 2016-01-14  Yao Qi  <yao.qi@linaro.org>
1357
1358         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1359         Declare.
1360         (arm_linux_get_next_pcs_ops): Install
1361         arm_linux_get_next_pcs_syscall_next_pc.
1362         (arm_linux_syscall_next_pc): Change to ...
1363         (arm_linux_get_next_pcs_syscall_next_pc): ... it.
1364         (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
1365         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
1366         (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
1367         call tdep->syscall_next_pc.
1368         * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
1369         (arm_get_next_pcs_syscall_next_pc): Remove.
1370
1371 2016-01-14  Yao Qi  <yao.qi@linaro.org>
1372
1373         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
1374         * thread.c (do_captured_thread_select): Cast to const char *.
1375
1376 2016-01-14  Yao Qi  <yao.qi@linaro.org>
1377
1378         * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
1379         argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
1380         (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
1381         instead.
1382         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
1383         <arm_thumb2_breakpoint>: Remove.
1384         <has_thumb2_breakpoint>: New field.
1385         (arm_get_next_pcs_ctor): Update declaration.
1386         * arm-linux-tdep.c (arm_linux_software_single_step): Pass
1387         1 to arm_get_next_pcs_ctor.
1388         * arm-tdep.c (arm_software_single_step): Pass 0 to
1389         arm_get_next_pcs_ctor.
1390
1391 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
1392
1393         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
1394
1395 2016-01-13  Yao Qi  <yao.qi@linaro.org>
1396
1397         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
1398         byte_order_for_code to read instruction.
1399
1400 2016-01-13  Pedro Alves  <palves@redhat.com>
1401
1402         * NEWS: Mention $_gthread.
1403         * gdbthread.h (struct thread_info) <global_num>: Mention
1404         $_gthread.
1405         * thread.c (thread_num_make_value_helper): New function.
1406         (thread_id_make_value): Delete.
1407         (thread_id_per_inf_num_make_value, global_thread_id_make_value):
1408         New.
1409         (thread_funcs): Adjust.
1410         (gthread_funcs): New.
1411         (_initialize_thread): Register $_gthread variable.
1412
1413 2016-01-13  Pedro Alves  <palves@redhat.com>
1414
1415         * NEWS: Mention "info threads -gid".
1416         * gdbthread.h (struct thread_info) <global_num>: Mention "info
1417         threads -gid".
1418         * thread.c (info_threads_command): Handle "-gid".
1419         (_initialize_thread): Adjust "info threads" help string to mention
1420         -gid.
1421
1422 2016-01-13  Pedro Alves  <palves@redhat.com>
1423
1424         * NEWS: Mention InferiorThread.global_num.
1425         * python/py-infthread.c (thpy_get_global_num): New function.
1426         (thread_object_getset): Register "global_num".
1427
1428 2016-01-13  Pedro Alves  <palves@redhat.com>
1429
1430         * NEWS: Mention that thread IDs are now per inferior and global
1431         thread IDs.
1432         * Makefile.in (SFILES): Add tid-parse.c.
1433         (COMMON_OBS): Add tid-parse.o.
1434         (HFILES_NO_SRCDIR): Add tid-parse.h.
1435         * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
1436         * breakpoint.c (insert_breakpoint_locations)
1437         (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
1438         (print_one_breakpoint_location, set_longjmp_breakpoint)
1439         (check_longjmp_breakpoint_for_call_dummy)
1440         (set_momentary_breakpoint): Adjust to use global IDs.
1441         (find_condition_and_thread, watch_command_1): Use parse_thread_id.
1442         (until_break_command, longjmp_bkpt_dtor)
1443         (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
1444         to use global IDs.
1445         * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
1446         ptid_to_global_thread_id.
1447         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1448         * gdbthread.h (struct thread_info): Rename field 'num' to
1449         'global_num.  Add new fields 'per_inf_num' and 'inf'.
1450         (thread_id_to_pid): Rename thread_id_to_pid to
1451         global_thread_id_to_ptid.
1452         (pid_to_thread_id): Rename to ...
1453         (ptid_to_global_thread_id): ... this.
1454         (valid_thread_id): Rename to ...
1455         (valid_global_thread_id): ... this.
1456         (find_thread_id): Rename to ...
1457         (find_thread_global_id): ... this.
1458         (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
1459         (print_thread_info): Add comment.
1460         * tid-parse.h: New file.
1461         * tid-parse.c: New file.
1462         * infcmd.c (step_command_fsm_prepare)
1463         (step_command_fsm_should_stop): Adjust to use the global thread
1464         ID.
1465         (until_next_command, until_next_command)
1466         (finish_command_fsm_should_stop): Adjust to use the global thread
1467         ID.
1468         (attach_post_wait): Adjust to check the inferior number too.
1469         * inferior.h (struct inferior) <highest_thread_num>: New field.
1470         * infrun.c (handle_signal_stop)
1471         (insert_exception_resume_breakpoint)
1472         (insert_exception_resume_from_probe): Adjust to use the global
1473         thread ID.
1474         * record-btrace.c (record_btrace_open): Use global thread IDs.
1475         * remote.c (process_initial_stop_replies): Also consider the
1476         inferior number.
1477         * target.c (target_pre_inferior): Clear the inferior's highest
1478         thread num.
1479         * thread.c (clear_thread_inferior_resources): Adjust to use the
1480         global thread ID.
1481         (new_thread): New inferior parameter.  Adjust to use it.  Set both
1482         the thread's global ID and the thread's per-inferior ID.
1483         (add_thread_silent): Adjust.
1484         (find_thread_global_id): New.
1485         (find_thread_id): Make static.  Adjust to rename.
1486         (valid_thread_id): Rename to ...
1487         (valid_global_thread_id): ... this.
1488         (pid_to_thread_id): Rename to ...
1489         (ptid_to_global_thread_id): ... this.
1490         (thread_id_to_pid): Rename to ...
1491         (global_thread_id_to_ptid): ... this.  Adjust.
1492         (first_thread_of_process): Adjust.
1493         (do_captured_list_thread_ids): Adjust to use global thread IDs.
1494         (should_print_thread): New function.
1495         (print_thread_info): Rename to ...
1496         (print_thread_info_1): ... this, and add new show_global_ids
1497         parameter.  Handle it.  Iterate over inferiors.
1498         (print_thread_info): Reimplement as wrapper around
1499         print_thread_info_1.
1500         (show_inferior_qualified_tids): New function.
1501         (print_thread_id): Use it.
1502         (tp_array_compar): Compare inferior numbers too.
1503         (thread_apply_command): Use tid_range_parser.
1504         (do_captured_thread_select): Use parse_thread_id.
1505         (thread_id_make_value): Adjust.
1506         (_initialize_thread): Adjust "info threads" help string.
1507         * varobj.c (struct varobj_root): Update comment.
1508         (varobj_create): Adjust to use global thread IDs.
1509         (value_of_root_1): Adjust to use global_thread_id_to_ptid.
1510         * windows-tdep.c (display_tib): No longer accept an argument.
1511         * cli/cli-utils.c (get_number_trailer): Make extern.
1512         * cli/cli-utils.h (get_number_trailer): Declare.
1513         (get_number_const): Adjust documentation.
1514         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
1515         thread IDs.
1516         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1517         (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
1518         * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
1519         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
1520         Likewise.
1521         * python/py-breakpoint.c (bppy_set_thread): Likewise.
1522         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1523         * python/py-infthread.c (thpy_get_num): Add comment and return the
1524         per-inferior thread ID.
1525         (thread_object_getset): Update comment of "num".
1526
1527 2016-01-13  Pedro Alves  <palves@redhat.com>
1528
1529         * breakpoint.c (remove_threaded_breakpoints)
1530         (print_one_breakpoint_location): Use print_thread_id.
1531         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
1532         (btrace_fetch, btrace_clear): Use print_thread_id.
1533         * common/print-utils.c (CELLSIZE): Delete.
1534         (get_cell): Rename to ...
1535         (get_print_cell): ... this and made extern.  Adjust call callers.
1536         Adjust to use PRINT_CELL_SIZE.
1537         * common/print-utils.h (get_print_cell): Declare.
1538         (PRINT_CELL_SIZE): New.
1539         * gdbthread.h (print_thread_id): Declare.
1540         * infcmd.c (signal_command): Use print_thread_id.
1541         * inferior.c (print_inferior): Use print_thread_id.
1542         * infrun.c (handle_signal_stop)
1543         (insert_exception_resume_breakpoint)
1544         (insert_exception_resume_from_probe)
1545         (print_signal_received_reason): Use print_thread_id.
1546         * record-btrace.c (record_btrace_info)
1547         (record_btrace_resume_thread, record_btrace_cancel_resume)
1548         (record_btrace_step_thread, record_btrace_wait): Use
1549         print_thread_id.
1550         * thread.c (thread_apply_all_command): Use print_thread_id.
1551         (print_thread_id): New function.
1552         (thread_apply_command): Use print_thread_id.
1553         (thread_command, thread_find_command, do_captured_thread_select):
1554         Use print_thread_id.
1555
1556 2016-01-13  Pedro Alves  <palves@redhat.com>
1557
1558         * NEWS: Mention InferiorThread.inferior.
1559         * python/py-infthread.c (thpy_get_inferior): New.
1560         (thread_object_getset): Register "inferior".
1561
1562 2016-01-13  Pedro Alves  <palves@redhat.com>
1563
1564         * NEWS: Mention $_inferior.
1565         * inferior.c (inferior_id_make_value): New.
1566         (inferior_funcs): New.
1567         (_initialize_inferior): Create $_inferior variable.
1568
1569 2016-01-13  Pedro Alves  <palves@redhat.com>
1570
1571         PR breakpoints/19388
1572         * frame.c (get_current_frame): Use validate_registers_access.
1573         * gdbthread.h (validate_registers_access): Declare.
1574         * infrun.c (validate_siginfo_access): Delete.
1575         (siginfo_value_read, siginfo_value_write): Use
1576         validate_registers_access.
1577         * thread.c (validate_registers_access): New function.
1578
1579 2016-01-12  Josh Stone  <jistone@redhat.com>
1580             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1581
1582         * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
1583         syscall_entry and syscall_return stop reasons.  Mention GDB
1584         support for remote catch syscall.
1585         * remote.c (PACKET_QCatchSyscalls): New enum.
1586         (remote_set_syscall_catchpoint): New function.
1587         (remote_protocol_features): New element for QCatchSyscalls.
1588         (remote_parse_stop_reply): Parse syscall_entry/return stops.
1589         (init_remote_ops): Install remote_set_syscall_catchpoint.
1590         (_initialize_remote): Config QCatchSyscalls.
1591         * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
1592
1593 2016-01-12  Yao Qi  <yao.qi@linaro.org>
1594
1595         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
1596         to gdb_byte * and pass to linux_fork_to_function.
1597
1598 2016-01-12  Yao Qi  <yao.qi@linaro.org>
1599
1600         * nat/linux-ptrace.c (linux_fork_to_function): Change type
1601         of argument 'function'.
1602         (linux_grandchild_function): Change return type to 'int'.
1603         Change child_stack's type to 'void *'.
1604         (linux_child_function): Likewise.
1605
1606 2016-01-12  Pedro Alves  <palves@redhat.com>
1607
1608         Remove use of the registered trademark symbol throughout.
1609
1610 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
1611
1612         * reply_mig_hack.awk: Rewrite one regular expression.
1613
1614 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
1615
1616         * acinclude.m4: Include new warning.m4 file.
1617         * configure: Regenerated.
1618         * configure.ac: Move all warning logic ...
1619         * warning.m4: ... here.
1620
1621 2016-01-08  Yao Qi  <yao.qi@linaro.org>
1622
1623         * extension.c: Include target.h.
1624         (set_active_ext_lang): Only call install_gdb_sigint_handler,
1625         check_quit_flag, and set_quit_flag if target_terminal_is_ours
1626         returns false.
1627         (restore_active_ext_lang): Likewise.
1628         * target.c (target_terminal_is_ours): New function.
1629         * target.h (target_terminal_is_ours): Declare.
1630
1631 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
1632
1633         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
1634         to `err' in the little-endian leg.
1635
1636 2016-01-06  Yao Qi  <yao.qi@linaro.org>
1637
1638         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
1639         lines below.
1640         (thumb_get_next_pcs_raw): Make it static.
1641         (arm_get_next_pcs_raw): Likewise.
1642         * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
1643         declaration.
1644         (arm_get_next_pcs_raw): Likewise.
1645
1646 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
1647
1648         * version.in: Change cvs to git.
1649
1650 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
1651
1652         * configure.tgt (score-*-*): Delete gdb_sim assignment.
1653
1654 2016-01-05  Pedro Alves  <palves@redhat.com>
1655
1656         PR sim/13418
1657         * configure.ac: Define WITH_PPC_SIM when linking in the sim and
1658         the target is powerpc*.
1659         * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
1660         of WITH_SIM.
1661         * configure: Regenerate.
1662         * config.in: Regenerate.
1663
1664 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
1665
1666         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
1667
1668 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
1669
1670         * configure.tgt (powerpc*-*-*): Delete test call and
1671         always assign gdb_sim.
1672
1673 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
1674
1675         Update year range in copyright notice of all files.
1676
1677 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
1678
1679         * top.c (print_gdb_version): Change copyright year in version
1680         message.
1681
1682 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
1683
1684         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
1685
1686 For older changes see ChangeLog-2015.
1687 \f
1688 Local Variables:
1689 mode: change-log
1690 left-margin: 8
1691 fill-column: 74
1692 version-control: never
1693 coding: utf-8
1694 End: