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