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