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