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