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