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