]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
ada-lang.c: Introduce type_as_string and use it
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
99bbb428
PA
12016-04-12 Pedro Alves <palves@redhat.com>
2
3 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
4 functions.
5 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
6
75ee5925
PA
72016-04-12 Pedro Alves <palves@redhat.com>
8
9 * ser-base.c (fd_event): Retry read_prim on EINTR.
10 (do_ser_base_readchar): Retry read_prim on EINTR.
11 (ser_base_write): Retry write_prim on EINTR.
12 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
13 (ser_unix_write_prim): Remove comment.
14
93692b58
PA
152016-04-12 Pedro Alves <palves@redhat.com>
16
17 * remote.c (remote_pass_ctrlc): New function.
18 (init_remote_ops): Install it.
19 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
20 target.
21 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
22 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
23 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
24 * target-delegates.c: Regenerate.
25
e42de8c7
PA
262016-04-12 Pedro Alves <palves@redhat.com>
27
28 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
29 mode.
30 * linux-nat.c (linux_nat_interrupt): Delete.
31 (linux_nat_add_target): Don't install linux_nat_interrupt.
32 * remote.c (remote_interrupt_ns): Change return type to void.
33 Throw error if interrupting the target is not supported.
34 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
35
a149683b
PA
362016-04-12 Pedro Alves <palves@redhat.com>
37
38 * defs.h (clear_quit_flag): Remove declaration.
39 * extension-priv.h (struct extension_language_ops)
40 <clear_quit_flag>: Remove field and update comments.
41 * extension.c (clear_quit_flag): Delete.
42 * guile/guile.c (guile_extension_ops): Adjust.
43 * python/python.c (python_extension_ops): Adjust.
44 (gdbpy_clear_quit_flag): Delete.
45
da1e5f54
PA
462016-04-12 Pedro Alves <palves@redhat.com>
47
48 * main.c (captured_main): Don't clear the quit flag.
49
0af679c6
PA
502016-04-12 Pedro Alves <palves@redhat.com>
51
52 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
53 flag.
54
4a81fd47
PA
552016-04-12 Pedro Alves <palves@redhat.com>
56
57 * event-top.c (command_handler): Don't call clear_quit_flag.
58
abf009ef
PA
592016-04-12 Pedro Alves <palves@redhat.com>
60
61 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
62 * remote.c (remote_wait_as): Don't call clear_quit_flag.
63
6eddd09a
PA
642016-04-12 Pedro Alves <palves@redhat.com>
65
66 * python/python.c: Include "ser-event.h".
67 (gdbpy_event_fds): Delete.
68 (gdbpy_serial_event): New.
69 (gdbpy_run_events): Change prototype. Use serial_event_clear
70 instead of serial_readchar.
71 (gdbpy_post_event): Use serial_event_set instead of serial_write.
72 (gdbpy_initialize_events): Use make_serial_event instead of
73 serial_pipe.
74
f0881b37
PA
752016-04-12 Pedro Alves <palves@redhat.com>
76
77 * defs.h: Extend QUIT-related comments to mention
78 interruptible_select.
79 (quit_serial_event_set, quit_serial_event_clear): Declare.
80 * event-top.c: Include "ser-event.h" and "gdb_select.h".
81 (quit_serial_event): New global.
82 (async_init_signals): Make quit_serial_event.
83 (quit_serial_event_set, quit_serial_event_clear)
84 (quit_serial_event_fd, interruptible_select): New functions.
85 * extension.c (set_quit_flag): Set the quit serial event.
86 (check_quit_flag): Clear the quit serial event.
87 * gdb_select.h (interruptible_select): New declaration.
88 * guile/scm-ports.c (ioscm_input_waiting): Use
89 interruptible_select instead of gdb_select.
90 * top.c (gdb_readline_no_editing): Likewise.
91 * ui-file.c (stdio_file_read): Likewise.
92
5cc3ce8b
PA
932016-04-12 Pedro Alves <palves@redhat.com>
94
95 * event-loop.c: Include "ser-event.h".
96 (async_signal_handlers_serial_event): New global.
97 (async_signals_handler, initialize_async_signal_handlers): New
98 functions.
99 (mark_async_signal_handler): Set
100 async_signal_handlers_serial_event.
101 (invoke_async_signal_handlers): Clear
102 async_signal_handlers_serial_event.
103 * event-top.c (async_init_signals): Call
104 initialize_async_signal_handlers.
105
00340e1b
PA
1062016-04-12 Pedro Alves <palves@redhat.com>
107
108 * Makefile.in (SFILES): Add ser-event.c.
109 (HFILES_NO_SRCDIR): Add ser-event.h.
110 (COMMON_OBS): Add ser-event.o.
111 * ser-event.c, ser-event.h: New files.
112 * serial.c (new_serial): New function, factored out from
113 (serial_fdopen_ops): ... this.
114 (serial_open_ops_1): New function, factored out from
115 (serial_open): ... this.
116 (serial_open_ops): New function.
117 * serial.h (struct serial): Forware declare.
118 (serial_open_ops): New declaration.
119
5f5219fc
PA
1202016-04-12 Pedro Alves <palves@redhat.com>
121
122 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
123 Remove references to name.
124 * serial.h (struct serial) <name>: Delete.
125
acd5494d
PA
1262016-04-12 Pedro Alves <palves@redhat.com>
127
128 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
129 Delete.
130 (async_remote_fileio_interrupt): Delete.
131 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
132 handler. Instead just always set the ctrl_c flag.
133 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
134 re-enabling the SIGINT handler.
135 (remote_fileio_func_open, remote_fileio_func_close)
136 (remote_fileio_func_read, remote_fileio_func_write)
137 (remote_fileio_func_lseek, remote_fileio_func_rename)
138 (remote_fileio_func_unlink, remote_fileio_func_stat)
139 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
140 (remote_fileio_func_isatty, remote_fileio_func_system)
141 (remote_fileio_request): Remove references to
142 remote_fio_no_longjmp.
143 (initialize_remote_fileio): Don't create an async signal handler.
144
d2acc30b
PA
1452016-04-12 Pedro Alves <palves@redhat.com>
146
147 * event-top.c (stdin_event_handler): Call QUIT;
148 (prompt_for_continue): Don't run with immediate_quit set.
149
ab33ab13
PA
1502016-04-12 Pedro Alves <palves@redhat.com>
151
152 * tui/tui-io.c (tui_redisplay_readline): Check
153 gdb_in_secondary_prompt_p instead of immediate_quit.
154 * tui/tui.c: Include top.h.
155 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
156 immediate_quit.
157
faa4ebe1
PA
1582016-04-12 Pedro Alves <palves@redhat.com>
159
160 * top.c (read_command_file): Inline command_loop here.
161 (command_loop): Delete.
162
3212b858
PA
1632016-04-12 Pedro Alves <palves@redhat.com>
164
165 * top.c: Include "gdb_select.h".
166 (gdb_readline_no_editing): Wait for input with gdb_select instead
167 of blocking in fgetc.
168 (command_line_input): Don't set immediate_quit.
169
4bf7b526
MG
1702016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
171
172 * value.c (value_next): Make pass-by-reference parameters const-correct.
173 (value_parent): Likewise.
174 (value_enclosing_type): Likewise.
175 (value_lazy): Likewise.
176 (value_stack): Likewise.
177 (value_embedded_offset): Likewise.
178 (value_pointed_to_offset): Likewise.
179 (value_raw_address): Likewise.
180 (deprecated_value_modifiable): Likewise.
181 (value_free_to_mark): Likewise.
182 (value_release_to_mark): Likewise.
183 (internalvar_name): Likewise.
184 (readjust_indirect_value_type): Likewise.
185 (value_initialized): Likewise.
186 * value.h (value_next): Likewise.
187 (value_parent): Likewise.
188 (value_enclosing_type): Likewise.
189 (value_lazy): Likewise.
190 (value_stack): Likewise.
191 (value_embedded_offset): Likewise.
192 (value_pointed_to_offset): Likewise.
193 (value_raw_address): Likewise.
194 (deprecated_value_modifiable): Likewise.
195 (value_free_to_mark): Likewise.
196 (value_release_to_mark): Likewise.
197 (internalvar_name): Likewise.
198 (readjust_indirect_value_type): Likewise.
199 (value_initialized): Likewise.
200
e390720b
YQ
2012016-04-07 Yao Qi <yao.qi@linaro.org>
202
203 * record-full.c (record_full_insert_breakpoint): Return
204 early if entry on the address is found in
205 record_full_breakpoints.
206
1ccd06e4
YQ
2072016-04-07 Yao Qi <yao.qi@linaro.org>
208
209 * record-full.c (record_full_insert_breakpoint): Set
210 bp_tgt->reqstd_address and bp_tgt->placed_size.
211
ecf2e90c
DB
2122016-04-06 Don Breazeal <donb@codesourcery.com>
213
214 * value.c (value_actual_type): Don't try to get rtti type
215 of the value if it has been optimized out.
216 (value_optimized_out): If a memory access error occurs,
217 just check vaue->optimized_out.
218
14731617
JK
2192016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
220
221 Revert the previous commit adding unknown_v_replies_ok.
222
319cb5d0
JK
2232016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
224
225 * remote.c (struct remote_state): New field unknown_v_replies_ok.
226 (packet_config_support): Read it.
227 (remote_start_remote): Set it.
228
052d2eb2
JK
2292016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
230
231 * remote.c: Revert check-in by a mistake in the previous commit.
232
fef3cb9f
JK
2332016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
234 Pedro Alves <palves@redhat.com>
235
236 * exec.c (exec_file_locate_attach): Print warning for unsupported
237 target_pid_to_exec_file.
238 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
239 message part.
240
2aa08bd1
SM
2412016-04-04 Simon Marchi <simon.marchi@ericsson.com>
242
243 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
244 trailing spaces.
245
cc63428a
AV
2462016-04-01 Artemiy Volkov <artemiyv@acm.org>
247
248 PR gdb/19820
249 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
250 the type of BINOP_REPEAT's second operand.
251
9bb84c9f
YY
2522016-03-31 Yichao Yu <yyc1992@gmail.com>
253
254 PR gdb/19858
255 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
256 got the breakpoint at the right address.
257 (jit_inferior_created): New function.
258 (_initialize_jit): Install jit_inferior_created as
259 inferior_created observer.
260
22084c42
MK
2612016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
262
263 * NEWS: Mention support for tracepoints on powerpc*-linux.
264
e7ea3ec7
CU
2652016-03-31 Catalin Udma <catalin.udma@freescale.com>
266
267 PR python/19743
268 * python/python.c (execute_gdb_command): Use console uiout
269 when executing gdb command.
270 * utils.c (restore_ui_out_closure): New structure.
271 (do_restore_ui_out): New function.
272 (make_cleanup_restore_ui_out): Likewise.
273 * utils.h (make_cleanup_restore_ui_out): Declare.
274
f7c38292
PA
2752016-03-31 Pedro Alves <palves@redhat.com>
276
277 * NEWS: Mention that support for "target m32rsdi", "target mips",
278 "target pmon", "target ddb", "target rockhopper", and "target lsi"
279 was removed.
280 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
281 remote-mips.o.
282 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
283 * configure.tgt: Remove all references to remote-m32r-sdi.o and
284 remote-mips.o.
285 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
286 function.
287 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
288 declaration.
289 * remote-m32r-sdi.c, remote-mips.c: Delete files.
290 * symfile.c (generic_load, generic_load): Remove comments.
291
fb3f3d25
YQ
2922016-03-30 Yao Qi <yao.qi@linaro.org>
293
294 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
295 0 rather than NULL.
296
779aa56f
YQ
2972016-03-30 Yao Qi <yao.qi@linaro.org>
298
299 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
300 (arm_epilogue_frame_this_id): New function.
301 (arm_epilogue_frame_prev_register): New function.
302 (arm_epilogue_frame_sniffer): New function.
303 (arm_epilogue_frame_unwind): New.
304 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
305
c58b006a
YQ
3062016-03-30 Yao Qi <yao.qi@linaro.org>
307
308 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
309 (arm_stack_frame_destroyed_p_1): ... here. Don't call
310 arm_pc_is_thumb.
311 (arm_stack_frame_destroyed_p): Call
312 thumb_stack_frame_destroyed_p and
313 arm_stack_frame_destroyed_p_1.
314
4ae6cc19
DE
3152016-03-30 Doug Evans <dje@google.com>
316
317 * python/py-utils.c (host_string_to_python_string): New function.
318 * python/python-internal.h (host_string_to_python_string): Declare it.
319 * python/py-*.c (*): Update all calls to
320 PyString_Decode (str, strlen (str), host_charset (), NULL);
321 to use host_string_to_python_string instead.
322
28170b88
MK
3232016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
324
325 * remote.c (remote_check_symbols): Allocate own buffer for reply.
326
a08b52b5
MF
3272016-03-29 Max Filippov <jcmvbkbc@gmail.com>
328
329 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
330 Use safe_read_memory_integer instead of read_memory_integer.
331
c37c0ba6
MK
3322016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
333
334 * NEWS: Mention support for tracepoints on s390*-linux.
335
444bca65
DB
3362016-03-29 Don Breazeal <donb@codesourcery.com>
337
338 * gdb/value.c (value_actual_type): Fix formatting issue.
339
cc651c1c
YQ
3402016-03-23 Yao Qi <yao.qi@linaro.org>
341
342 * gdbarch.sh (software_single_step): Remove comments.
343 * gdbarch.h: Regenerated.
344
c55978a6
YQ
3452016-03-21 Yao Qi <yao.qi@linaro.org>
346
347 * arm-tdep.c (arm_record_media): New.
348 (arm_record_ld_st_reg_offset): Call arm_record_media.
349
479fe002
YQ
3502016-03-21 Yao Qi <yao.qi@linaro.org>
351
352 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
353 more syscalls.
354
9c3f2234
YQ
3552016-03-18 Yao Qi <yao.qi@linaro.org>
356
357 * sparc-tdep.c (sparc_software_single_step): Make it static.
358 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
359
941319d1
YQ
3602016-03-18 Yao Qi <yao.qi@linaro.org>
361
362 * spu-tdep.c (spu_software_single_step): Throw error when
363 target_read_memory fails.
364
708bf0a1
JK
3652016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
368
0d5b594f
PA
3692016-03-17 Pedro Alves <palves@redhat.com>
370 Don Breazeal <donb@codesourcery.com>
371
372 PR remote/19496
373 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
374 instead of checking the 'non_stop' global.
375 * remote.c (remote_add_thread): New parameter 'executing'. Use it
376 to set the new thread's executing state.
377 (remote_notice_new_inferior): Rename parameter 'running' to
378 'executing'. Always set the thread state to THREAD_RUNNING in
379 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
380 EXECUTING to remote_add_thread and notice_new_inferior.
381 (remote_update_thread_list): Update to pass executing state, not
382 running state.
383
bba960fc
AA
3842016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
385
386 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
387 to 374.
388 * syscalls/s390x-linux.xml: Likewise.
389
5fd0888a
AA
3902016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
391
392 * linux-record.c (record_mem_at_reg): New helper function.
393 (record_linux_system_call): Exploit new helper function where
394 applicable.
395
0fc8f115
AA
3962016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
397
398 * linux-record.c: Fix whitespace issues; tabify, remove trailing
399 spaces.
400
afdab916
AA
4012016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
402
403 * linux-record.c (record_linux_system_call): Add missing return
404 statements to handling of pipe and pipe2 syscalls.
405
bfeeb14b
DE
4062016-03-16 Doug Evans <dje@google.com>
407
408 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
409
6b94a855
YQ
4102016-03-16 Yao Qi <yao.qi@linaro.org>
411
412 * arm-linux-tdep.c (arm_linux_init_abi): Fix
413 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
414 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
415 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
416 arm_linux_record_tdep.arg7.
417
1cafadb4
DB
4182016-03-15 Keith Seitz <keiths@redhat.com>
419
420 PR breakpoints/18303
421 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
422 look for "::" instead of simply ":".
423 (cp_search_static_and_baseclasses): Return null_block_symbol for
424 malformed input.
425 Remove assertions.
426 * cp-support.c (cp_find_first_component_aux): Do not return
427 a prefix length for ':' unless the next character is also ':'.
428
89c200ed
DE
4292016-03-15 Doug Evans <dje@google.com>
430
431 * features/aarch64-core.xml (cpsr_flags): New flags type.
432 (cpsr): Use it.
433 * features/aarch64.c: Regenerate.
434
49b7ae7b
DE
4352016-03-15 Doug Evans <dje@google.com>
436
437 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
438 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
439 * features/i386/64bit-core.xml (i386_eflags): Ditto.
440 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
441 * features/i386/x32-core.xml (i386_eflags): Ditto.
442
81516450 4432016-03-15 Doug Evans <dje@google.com>
79427bd2 444 Wei-cheng Wang <cole945@gmail.com>
81516450
DE
445
446 Extend flags to support multibit and enum bitfields.
79427bd2 447 * NEWS: Document new features.
81516450
DE
448 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
449 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
450 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
451 (append_flags_type_field): New function.
452 (append_flags_type_flag): Call it.
453 * gdbtypes.h (append_flags_type_field): Declare.
454 * target-descriptions.c (struct tdesc_type_flag): Delete.
455 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
456 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
457 (struct tdesc_type) <u.f>: Delete.
458 (tdesc_predefined_types): Add "bool".
459 (tdesc_predefined_type): New function.
460 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
461 Update TDESC_TYPE_FLAGS support.
462 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
463 (tdesc_create_flags): Update.
464 (tdesc_create_enum): New function.
465 (tdesc_add_field): Initialize start,end to -1.
466 (tdesc_add_typed_bitfield): New function.
467 (tdesc_add_bitfield): Call it.
468 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
469 (tdesc_add_enum_value): New function.
470 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
471 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
472 * target-descriptions.h (tdesc_create_enum): Declare.
473 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
474 * valprint.c (generic_val_print_enum_1): New function.
475 (generic_val_print_enum): Call it.
476 (val_print_type_code_flags): Make static. Handle multibit bitfields
477 and enum bitfields.
478 * valprint.h (val_print_type_code_flags): Delete.
479 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
480 Delete. All uses removed.
481 (tdesc_start_enum): New function.
482 (tdesc_start_field): Handle multibit and enum bitfields.
483 (tdesc_start_enum_value): New function.
484 (enum_value_attributes, enum_children, enum_attributes): New static
485 globals.
486 (feature_children): Add "enum".
487 * features/gdb-target.dtd (enum, evalue): New elements.
488
54157a25
DE
4892016-03-15 Doug Evans <dje@google.com>
490
491 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
492 from LONGEST to int.
493 (struct tdesc_type) <u.f.size>: Ditto.
494 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
495 to int. Add assertion size > 0.
496 (tdesc_create_flags): Ditto.
497 * target-descriptions.h (tdesc_set_struct_size): Update.
498 (tdesc_create_flags): Update.
499 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
500 (MAX_VECTOR_SIZE): New macro.
501 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
502 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
503
73b4f516
DE
5042016-03-15 Doug Evans <dje@google.com>
505
506 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
507 TYPE_CODE_FLAGS instead of "field_type", for consistency.
508 * features/i386/amd64-avx-linux.c: Regenerate.
509 * features/i386/amd64-avx.c: Regenerate.
510 * features/i386/amd64-avx512-linux.c: Regenerate.
511 * features/i386/amd64-avx512.c: Regenerate.
512 * features/i386/amd64-linux.c: Regenerate.
513 * features/i386/amd64-mpx-linux.c: Regenerate.
514 * features/i386/amd64-mpx.c: Regenerate.
515 * features/i386/amd64.c: Regenerate.
516 * features/i386/i386-avx-linux.c: Regenerate.
517 * features/i386/i386-avx.c: Regenerate.
518 * features/i386/i386-avx512-linux.c: Regenerate.
519 * features/i386/i386-avx512.c: Regenerate.
520 * features/i386/i386-linux.c: Regenerate.
521 * features/i386/i386-mmx-linux.c: Regenerate.
522 * features/i386/i386-mmx.c: Regenerate.
523 * features/i386/i386-mpx-linux.c: Regenerate.
524 * features/i386/i386-mpx.c: Regenerate.
525 * features/i386/i386.c: Regenerate.
526 * features/i386/x32-avx-linux.c: Regenerate.
527 * features/i386/x32-avx.c: Regenerate.
528 * features/i386/x32-avx512-linux.c: Regenerate.
529 * features/i386/x32-avx512.c: Regenerate.
530 * features/i386/x32-linux.c: Regenerate.
531 * features/i386/x32.c: Regenerate.
532
1eb2dbb8
PA
5332016-03-15 Pedro Alves <palves@redhat.com>
534
535 PR gdb/19676
536 * linux-thread-db.c (try_thread_db_load_1): Leave
537 info->td_ta_thr_iter_p NULL iff debugging a live process and we
538 have /proc access.
539 (find_new_threads_once): Assert that we have a non-NULL
540 info->td_ta_thr_iter_p instead of checking whether the target has
541 execution.
542
16b41842
PA
5432016-03-15 Pedro Alves <palves@redhat.com>
544
545 PR gdb/19676
546 * infrun.c (displaced_step_prepare): Also disable displaced
547 stepping on NOT_SUPPORTED_ERROR.
548 * linux-tdep.c (linux_displaced_step_location): If reading auxv
549 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
550
70104a90
MK
5512016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
552
553 * s390-linux-tdep.c (s390_gen_return_address): New function.
554 (s390_gdbarch_init): Fill gen_return_address hook.
555
f2403c39
AB
5562016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * symmisc.c (maintenance_info_line_tables): New function.
559 (maintenance_print_one_line_table): New function.
560 (_initialize_symmisc): Register 'maint info line-table' command.
561 * NEWS: Mention new command.
562
c4b3e547
MK
5632016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
564
565 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
566 (s390_ax_pseudo_register_push_stack): New function.
567 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
568 ax_pseudo_register_push_stack hooks.
569
f2f3ccb9
SM
5702016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
571
572 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
573 gdb/function/as_string.py.
574 * python/lib/gdb/function/as_string.py: New file.
575 * NEWS: Mention the new $_as_string function.
576
2343b78a
JM
5772016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
578
579 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
580
b69d38af
PA
5812016-03-09 Pedro Alves <palves@redhat.com>
582
583 * event-top.c (more_to_come): Delete.
584 (struct readline_input_state): Delete.
585 (readline_input_state): Delete.
586 (get_command_line_buffer): New function.
587 (command_handler): Update comments. Don't handle NULL commands
588 here. Do not execute commented lines.
589 (command_line_append_input_line): New function.
590 (handle_line_of_input): New function, partly based on
591 command_line_handler and command_line_input.
592 (command_line_handler): Rewrite.
593 * event-top.h (command_handler): New declaration.
594 (command_loop): Defer command execution to command_handler.
595 (command_line_input): Update comments. Simplify, using struct
596 buffer and handle_line_of_input.
597 * top.h (struct buffer): New forward declaration.
598 (handle_line_of_input): New declaration.
599
2669cade
PA
6002016-03-09 Pedro Alves <palves@redhat.com>
601
602 * event-top.c (command_line_handler): Use xfree + xstrdup instead
603 of xrealloc + strcpy.
604 * main.c (captured_main): Use xstrdup instead of xmalloc plus
605 manual clear.
606 * top.c (saved_command_line): Rewrite comment.
607 (saved_command_line_size): Delete.
608 (command_line_input): Use xfree + xstrdup instead of xrealloc +
609 strcpy.
610 * top.h (saved_command_line_size): Delete declaration.
611
187212b3
PA
6122016-03-09 Pedro Alves <palves@redhat.com>
613
614 * event-top.c: Include buffer.h.
615 (gdb_readline_no_editing_callback): Use struct buffer instead
616 of xrealloc.
617
7a3bde34
PA
6182016-03-09 Pedro Alves <palves@redhat.com>
619
620 * common/buffer.h (buffer_grow_char): New function.
621 * top.c: Include buffer.h.
622 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
623 'prompt'. Use struct buffer instead of xrealloc.
624
c5c136ea
PA
6252016-03-09 Pedro Alves <palves@redhat.com>
626
627 * defs.h (gdb_readline): Delete declaration.
628 * top.c (gdb_readline): Rename to ...
629 (gdb_readline_no_editing): ... this, and make static.
630
720d2e96
PA
6312016-03-09 Pedro Alves <palves@redhat.com>
632
633 * utils.c (prompt_for_continue): Update comments.
634
608ff013
PA
6352016-03-09 Pedro Alves <palves@redhat.com>
636
637 * event-top.c (async_annotation_suffix): Delete.
638 (top_level_prompt, command_line_handler): Don't use
639 'async_annotation_suffix' and simplify.
640 * event-top.h (async_annotation_suffix): Delete declaration.
641 (init_main): Remove reference to 'async_annotation_suffix'.
642
c70061cf
PA
6432016-03-09 Pedro Alves <palves@redhat.com>
644
645 * event-top.c (gdb_readline2): Rename to ...
646 (gdb_readline_no_editing_callback): ... this.
647 (change_line_handler, stdin_event_handler)
648 (gdb_setup_readline): Adjust.
649 * event-top.h (gdb_readline2): Rename to ...
650 (gdb_readline_no_editing_callback): ... this, and move closer to
651 other readline-related declarations.
652 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
653
8a243832
PA
6542016-03-09 Pedro Alves <palves@redhat.com>
655
656 * top.c (window_hook): Delete.
657 (command_loop): Remove references to window_hook.
658
cc2c4da8
MK
6592016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
660
661 * corefile.c (safe_read_memory_unsigned_integer): New function.
662 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
663 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
664
a67914de
MK
6652016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
666
667 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
668 (rs6000_gen_return_address): New function.
669 (rs6000_gdbarch_init): Wire in the above.
670
2a2fa07b
MK
6712016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
672
673 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
674 (rs6000_gdbarch_init): Wire in the above.
675
bc0e3f49
AA
6762016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
677
678 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
679 instructions that do nothing or are conditional traps.
680
6d53bec8
AA
6812016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
682
683 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
684 frame func's PC in info->func before any other failure can occur.
685 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
686 info->func has been filled out.
687
f7990f16
PA
6882016-03-09 Pedro Alves <palves@redhat.com>
689
690 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
691
087ccc6a
PA
6922016-03-09 Pedro Alves <palves@redhat.com>
693
694 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
695
114d7832
PA
6962016-03-09 Pedro Alves <palves@redhat.com>
697
698 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
699 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
700
d7a87b5e
PA
7012016-03-09 Pedro Alves <palves@redhat.com>
702
703 * doublest.c: Extend comments.
704 (floatformat_to_doublest, floatformat_from_doublest): Copy the
705 floatformat's total size, not the host type's size.
706
b79497cb
PA
7072016-03-09 Pedro Alves <palves@redhat.com>
708
709 * doublest.c (floatformat_totalsize_bytes): New function.
710 (floatformat_from_type): Assert that the type's length is at least
711 as long as the floatformat's totalsize.
712 * doublest.h (floatformat_totalsize_bytes): New declaration.
713 * gdbtypes.c (arch_float_type): Assert that the type's length is
714 at least as long as the floatformat's totalsize.
715
aacca8a7
PA
7162016-03-09 Pedro Alves <palves@redhat.com>
717
718 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
719 format to floatformats_ieee_double.
720
e6c2f47b
PA
7212016-03-07 Pedro Alves <palves@redhat.com>
722
723 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
724 before calling bfd_get_flavour.
725
cb86f388
DC
7262016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
727
728 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
729 (avr_push_dummy_call): Correct last needed argument register.
730 Write MSB of argument into register and subsequent bytes into
731 other registers in decreasing order.
732
f1771dce
YQ
7332016-03-04 Yao Qi <yao.qi@linaro.org>
734
735 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
736 condition check. Record the right D register number.
737
ca92db2d
YQ
7382016-03-04 Yao Qi <yao.qi@linaro.org>
739
740 * arm-tdep.c (arm_record_extension_space): Remove code
741 printing "Process record does not support".
742 (arm_record_data_proc_misc_ld_str): Likewise.
743 (decode_insn): Call arm_record_extension_space if condition
744 is 0xf. Call arm_record_unsupported_insn if ret isn't
745 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
746 the value of thumb2_record_decode_insn_handler.
747
73519cce
SM
7482016-03-04 Simon Marchi <simon.marchi@ericsson.com>
749
750 * features/feature_to_c.sh: Print the help when passing no
751 argument.
752
650beae3
BH
7532016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
754
755 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
756
28586665
BH
7572016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
758
759 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
760
f2489477
AA
7612016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
762
763 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
764 exception when attempting to access the inferior's backchain.
765
d5219069
YQ
7662016-02-29 Yao Qi <yao.qi@linaro.org>
767
768 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
769 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
770 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
771 for aarch64_sys_epoll_create1.
772
253b4d3a
YQ
7732016-02-29 Yao Qi <yao.qi@linaro.org>
774
775 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
776 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
777 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
778 * linux-record.c (record_linux_system_call): Handle them.
779
38899f16
IB
7802016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
781
782 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
783 cyclic imports.
784
1ed0c2a4
KS
7852016-02-26 Keith Seitz <keiths@redhat.com>
786
787 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
788 to avoid invalid conversion from void *.
789
9fde51ed
YQ
7902016-02-26 Yao Qi <yao.qi@linaro.org>
791
792 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
793 per bit 8. Check bit 20 instead of bit 4 for VMOV
794 instruction. Record D registers for instructions changing
795 S registers. Change of the order of length and address
796 in record_buf_mem array.
797
1f33efec
YQ
7982016-02-26 Yao Qi <yao.qi@linaro.org>
799
800 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
801 number of Rd.
802
1547ef64
DE
8032016-02-25 Doug Evans <dje@google.com>
804
805 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
806 compiler warning.
807 (recv_long_data): Ditto.
808
166616ce
SM
8092016-02-25 Simon Marchi <simon.marchi@ericsson.com>
810
811 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
812 Initialize variables.
813
1eb7c2d8
AT
8142016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
815
816 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
817 (ax_reg_mask): Likewise.
818
e7ad2f14
PA
8192016-02-24 Pedro Alves <palves@redhat.com>
820
821 * linux-nat.c (save_sigtrap) Delete.
822 (stop_wait_callback): Call save_stop_reason instead of
823 save_sigtrap.
824 (check_stopped_by_breakpoint): Rename to ...
825 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
826 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
827 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
828 common code between the USE_SIGTRAP_SIGINFO and
829 !USE_SIGTRAP_SIGINFO blocks.
830 (linux_nat_filter_event): Call save_stop_reason instead of
831 save_sigtrap.
832 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
833 si_code for MIPS.
834 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
835 comments on MIPS behavior.
836 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
837
338435ef
MK
8382016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
839
840 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
841 to avoid spurious warnings.
842
bf74e428
GB
8432016-02-24 Gary Benson <gbenson@redhat.com>
844
845 * exec.c (exec_file_locate_attach): Do not attempt to
846 locate main executable locally if not found in sysroot.
847
62fb310b
JB
8482016-02-24 Joel Brobecker <brobecker@adacore.com>
849
850 GDB 7.11 released.
851
50ae56ec
WW
8522016-02-24 Wei-cheng Wang <cole945@gmail.com>
853
854 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
855 unavailable PC/SP to build unavailable frame.
856
cce0e923
DE
8572016-02-23 Doug Evans <dje@google.com>
858
859 Extend "skip" command to support -file, -gfile, -function, -rfunction.
860 * NEWS: Document new features.
861 * skip.c: #include "fnmatch.h", "gdb_regex.h".
862 (skiplist_entry) <file>: Renamed from filename.
863 <function>: Renamed from function_name.
864 <file_is_glob, function_is_regexp>: New members.
865 <compiled_function_regexp, compiled_function_regexp_is_valid>:
866 New members.
867 (make_skip_entry): New function.
868 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
869 (make_free_skiplist_entry_cleanup): New function.
870 (skip_file_command): Update.
871 (skip_function, skip_function_command): Update.
872 (compile_skip_regexp): New functions.
873 (skip_command): Add support for new options.
874 (skip_info): Update.
875 (skip_file_p, skip_gfile_p): New functions.
876 (skip_function_p, skip_rfunction_p): New functions.
877 (function_name_is_marked_for_skip): Update and simplify.
878 (_initialize_step_skip): Update.
879 * symtab.c: #include "fnmatch.h".
880 (compare_glob_filenames_for_search): New function.
881 * symtab.h (compare_glob_filenames_for_search): Declare.
882 * utils.c (count_path_elements): New function.
883 (strip_leading_path_elements): New function.
884 * utils.h (count_path_elements): Declare.
885 (strip_leading_path_elements): Declare.
886
12545665
SM
8872016-02-23 Simon Marchi <simon.marchi@ericsson.com>
888
889 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
890 (thumb_process_displaced_insn): Likewise.
891 (arm_process_displaced_insn): Adjust calls.
892
c955ae73
YQ
8932016-02-23 Yao Qi <yao.qi@linaro.org>
894
895 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
896 Remove.
897 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
898 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
899 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
900 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
901 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
902 <aarch64_sys_faccessat>: New.
903 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
904 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
905 <aarch64_sys_newfstatat>: New.
906 (UNSUPPORTED_SYSCALL_MAP): New macro.
907 (aarch64_canonicalize_syscall): Add missing syscalls.
908
ac46107c
JK
9092016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
912
01e57735
YQ
9132016-02-22 Yao Qi <yao.qi@linaro.org>
914
915 * arm-tdep.c: Fix code format issues.
916
30a6a7f0
IB
9172016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
918
919 * d-namespace.c (d_lookup_symbol_imports): Remove argument
920 'search_parents'. All callers updated.
921
f79a3bae
MK
9222016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
923
924 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
925 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
926
012b3a21
WT
9272016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
928
929 * NEWS: Add entry for bound violation.
930 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
931 Add handler for segmentation fault.
932 * gdbarch.sh (handle_segmentation_fault): New.
933 * gdbarch.c: Regenerate.
934 * gdbarch.h: Regenerate.
935 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
936 (SIG_CODE_BONDARY_FAULT): New define.
937 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
938 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
939 * i386-tdep.c (i386_mpx_enabled): Add as external.
940 * i386-tdep.c (i386_mpx_enabled): Add as external.
941 * infrun.c (handle_segmentation_fault): New function.
942 (print_signal_received_reason): Use handle_segmentation_fault.
943
5f034a78
MK
9442016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
945
946 * arch-utils.c (default_guess_tracepoint_registers): New function.
947 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
948 * gdbarch.c: Regenerate.
949 * gdbarch.h: Regenerate.
950 * gdbarch.sh: Add guess_tracepoint_registers hook.
951 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
952
88178e82
GB
9532016-02-17 Gary Benson <gbenson@redhat.com>
954
955 * exec.c (exec_file_locate_attach): Add missing cleanup.
956
4041ed77
DB
9572016-02-16 Don Breazeal <donb@codesourcery.com>
958
959 PR remote/19496
960 * remote.c (remove_new_fork_children): Check for pending
961 fork status in thread_info.suspend.
962
b442c911
YQ
9632016-02-16 Yao Qi <yao.qi@linaro.org>
964
965 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
966 'old_chain' later.
967
553cb527
YQ
9682016-02-16 Yao Qi <yao.qi@linaro.org>
969
970 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
971 <syscall_next_pc>: Remove argument PC. Callers updated.
972 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
973 Remove argument PC. Get pc from regcache_read_pc.
974 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
975 argument PC.
976
0a0da556
YQ
9772016-02-15 Yao Qi <yao.qi@linaro.org>
978
979 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
980
01113bc1
YQ
9812016-02-12 Yao Qi <yao.qi@linaro.org>
982
983 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
984 nextpc according to instruction.
985
ed443b61
YQ
9862016-02-12 Yao Qi <yao.qi@linaro.org>
987
988 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
989 self->ops->fixup if it isn't NULL.
990 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
991 (struct arm_get_next_pcs_ops) <fixup>: New field.
992 * arch/arm-linux.c: Include common-regcache.h and
993 arch/arm-get-next-pcs.h.
994 (arm_linux_get_next_pcs_fixup): New function.
995 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
996 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
997 it with arm_linux_get_next_pcs_fixup.
998 (arm_linux_software_single_step): Move code to
999 arm_linux_get_next_pcs_fixup.
1000 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
1001
d21b5f15
MK
10022016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
1003
1004 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
1005 and return NULL.
1006
33b4777c
MM
10072016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1008
1009 * frame.h (skip_tailcall_frames): Update comment.
1010 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
1011 if only artificial frames are found. Update comment.
1012 (frame_unwind_caller_id): Handle NULL return.
1013 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
1014 skip_artificial_frames does not return NULL.
1015 (frame_pop): Add an error if only tailcall frames are found.
1016 * infcmd.c (finish_command): Move skip_tailcall_frames call into
1017 forward-execution case. Add an error if only tailcall frames are
1018 found.
1019
a038fa3e
MM
10202016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1021
1022 * stack.c (frame_info): Check frame_unwind_caller_id.
1023
2f3ef606
MM
10242016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1025
1026 * frame.h (skip_tailcall_frames): New.
1027 * frame.c (skip_tailcall_frames): New.
1028 (frame_pop): Call skip_tailcall_frames.
1029 * infcmd.c (finish_command): Call skip_tailcall_frames.
1030
e352bf0a
PA
10312016-02-11 Pedro Alves <palves@redhat.com>
1032
1033 * Makefile.in (check-parallel): New rule.
1034
bec2ab5a
SM
10352016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1036
1037 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
1038 (arm_analyze_prologue): Likewise.
1039 (arm_scan_prologue): Likewise.
1040 (arm_m_exception_prev_register): Likewise.
1041 (arm_copy_block_xfer): Likewise.
1042 (thumb2_copy_block_xfer): Likewise.
1043 (arm_decode_miscellaneous): Likewise.
1044 (arm_decode_ld_st_word_ubyte): Likewise.
1045 (arm_decode_svc_copro): Likewise.
1046 (thumb2_decode_svc_copro): Likewise.
1047 (thumb_copy_16bit_ldr_literal): Likewise.
1048 (thumb_copy_pop_pc_16bit): Likewise.
1049 (decode_thumb_32bit_ld_mem_hints): Likewise.
1050 (arm_show_force_mode): Likewise.
1051 (_initialize_arm_tdep): Likewise.
1052 (arm_record_strx): Likewise.
1053 (arm_record_extension_space): Likewise.
1054 (arm_record_data_proc_misc_ld_str): Likewise.
1055 (arm_record_exreg_ld_st_insn): Likewise.
1056 (arm_record_vfp_data_proc_insn): Likewise.
1057 (arm_record_coproc_data_proc): Likewise.
1058 (thumb_record_misc): Likewise.
1059 (thumb_record_ldm_stm_swi): Likewise.
1060 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
1061 (thumb2_record_ld_mem_hints): Likewise.
1062 (thumb2_record_lmul_lmla_div): Likewise.
1063 (thumb2_record_asimd_struct_ld_st): Likewise.
1064 (arm_process_record): Likewise.
1065
2ba163c8
SM
10662016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1067
1068 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
1069 (ARM displaced stepping support): Remove reference to
1070 arm_displaced_step_copy_insn in comment.
1071 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
1072 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
1073 reference to arm_displaced_step_copy_insn in comment.
1074
615234c1
SM
10752016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1076
1077 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
1078 (thumb_copy_b): Likewise.
1079 (arm_decode_b_bl_ldmstm): Likewise.
1080 (thumb_copy_16bit_ldr_literal): Likewise.
1081 (thumb_copy_pop_pc_16bit): Likewise.
1082
82e9becd
AT
10832016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
1084
1085 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
1086 than loc->gdbarch.
1087
5ac87a99
MK
10882016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1089
1090 * tracefile-tfile.c (trace_tdesc): New static variable.
1091 (tfile_open): Clear trace_tdesc, call target_find_description.
1092 (tfile_interp_line): Recognize tdesc lines.
1093 (tfile_close): Clear trace_tdesc.
1094 (tfile_xfer_partial_features): New function.
1095 (tfile_xfer_partial): Call tfile_xfer_partial_features.
1096 (tfile_append_tdesc_line): New function.
1097
18d3cec5
MK
10982016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1099
1100 * ctf.c (ctf_write_tdesc): New function.
1101 (ctf_write_ops): Wire in ctf_write_tdesc.
1102 * tracefile-tfile.c (tfile_write_tdesc): New function.
1103 (tfile_write_ops): Wire in tfile_write_tdesc.
1104 * tracefile.c (trace_save): Call write_tdesc method.
1105 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
1106 * xml-tdesc.c (target_fetch_description_xml): New function.
1107 * xml-tdesc.h: Add target_fetch_description_xml prototype.
1108
550dc4e2
SM
11092016-02-10 Simon Marchi <simon.marchi@ericsson.com>
1110
1111 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
1112 (arm_decode_dp_misc): Likewise.
1113
62e5fd57
MK
11142016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1115
1116 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
1117 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
1118 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
1119 misleading comment.
1120 (i386_pseudo_register_write): Ditto.
1121 (i386_ax_pseudo_register_collect): New function.
1122 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
1123 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
1124
e909d859
MK
11252016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1126
1127 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
1128 instead of gdb order.
1129
473b99e5
MK
11302016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1131
1132 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
1133 check.
1134
1233c0ba
JB
11352016-02-10 Joel Brobecker <brobecker@adacore.com>
1136
1137 * NEWS: Create a new section for the next release branch.
1138 Rename the section of the current branch, now that it has
1139 been cut.
1140
d1dc0942
JB
11412016-02-10 Joel Brobecker <brobecker@adacore.com>
1142
1143 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
1144 * version.in: Bump version to 7.11.50.DATE-git.
1145
9ef9e6a6
KS
11462016-02-09 Keith Seitz <keiths@redhat.com>
1147
1148 PR breakpoints/19546
1149 * breakpoint.c (breakpoint_event_location_empty_p): New function.
1150 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
1151 instead of event_location_empty_p.
1152
39a67dc4
KS
11532016-02-09 Keith Seitz <keiths@redhat.com>
1154
1155 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
1156 string_to_event_location_basic instead of string_to_event_location.
1157
a96e36da
KS
11582016-02-09 Keith Seitz <keiths@redhat.com>
1159
1160 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
1161 leading whitespace and use string_to_event_location_basic instead
1162 of new_linespec_location.
1163
9f61929f
KS
11642016-02-09 Keith Seitz <keiths@redhat.com>
1165
1166 PR python/19506
1167 * python/py-breakpoint.c (bppy_init): Use
1168 string_to_event_location_basic instead of new_linespec_location.
1169
eeb1af43
KS
11702016-02-09 Keith Seitz <keiths@redhat.com>
1171
1172 * location.c (string_to_explicit_location): Note that "-p" is
1173 reserved for probe locations and return NULL for any input
1174 that starts with that.
1175 (string_to_event_location): Move "legacy" linespec code to ...
1176 (string_to_event_location_basic): ... here.
1177 * location.h (string_to_event_location): Update comment.
1178 (string_to_event_location_basic): New function.
1179
1e94266c
SM
11802016-02-09 Simon Marchi <simon.marchi@ericsson.com>
1181
1182 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
1183 to AC_OUTPUT. Remove "exit 0" at the end.
1184 * configure: Regenerate.
1185
2a7f3dff
PA
11862016-02-09 Pedro Alves <palves@redhat.com>
1187
1188 PR breakpoints/19548
1189 * breakpoint.c (create_overlay_event_breakpoint): Don't update
1190 global location list here.
1191 (create_longjmp_master_breakpoint)
1192 (create_std_terminate_master_breakpoint)
1193 (create_exception_master_breakpoint, create_jit_event_breakpoint)
1194 (update_breakpoint_locations):
1195 (breakpoint_re_set): Update global location list after all
1196 breakpoints are re-set.
1197
54887903
SM
11982016-02-08 Simon Marchi <simon.marchi@ericsson.com>
1199
1200 * remote.c (remote_register_number_and_offset): Remove unused
1201 variable(s).
1202 (remote_thread_always_alive): Likewise.
1203 (remote_update_thread_list): Likewise.
1204 (process_initial_stop_replies): Likewise.
1205 (remote_start_remote): Likewise.
1206 (remote_check_symbols): Likewise.
1207 (discard_pending_stop_replies): Likewise.
1208 (process_stop_reply): Likewise.
1209 (putpkt_binary): Likewise.
1210 (getpkt): Likewise.
1211 (remote_add_target_side_condition): Likewise.
1212 (remote_insert_breakpoint): Likewise.
1213 (remote_supports_stopped_by_sw_breakpoint): Likewise.
1214 (remote_supports_stopped_by_hw_breakpoint): Likewise.
1215 (remote_xfer_partial): Likewise.
1216 (remote_read_btrace): Likewise.
1217 (remote_async_serial_handler): Likewise.
1218 (remote_thread_events): Likewise.
1219 (_initialize_remote): Likewise.
1220
30914ca8
SM
12212016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
1222
1223 * varobj.h (varobj_delete): Remove dellist parameter, update and
1224 move documentation here.
1225 * varobj.c (struct cpstack, cppush, cppop): Remove.
1226 (delete_variable): Remove resultp (first) parameter.
1227 (delete_variable_1): Likewise.
1228 (varobj_delete): Remove dellist parameter and unused code.
1229 (update_dynamic_varobj_children): Adjust varobj_delete call.
1230 (update_type_if_necessary): Likewise.
1231 (varobj_set_visualizer): Likewise.
1232 (varobj_update): Likewise.
1233 (value_of_root): Likewise.
1234 (varobj_invalidate_iter): Likewise.
1235 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
1236
e42e5352
YQ
12372016-02-04 Yao Qi <yao.qi@linaro.org>
1238
1239 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
1240 0 before handling 'F' and set it back afterwards.
1241
6456a18b
SM
12422016-02-02 Simon Marchi <simon.marchi@ericsson.com>
1243
1244 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
1245
3f2f6cb5
WT
12462016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1247
1248 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
1249 New types.
1250 (compat_siginfo): New bound fields added.
1251 (compat_x32_siginfo): New field added.
1252 (cpt_si_addr_lsb): New define.
1253 (compat_siginfo_from_siginfo): Use nat_siginfo.
1254 (siginfo_from_compat_siginfo): Use nat_siginfo.
1255 (compat_x32_siginfo_from_siginfo): Likewise.
1256 (siginfo_from_compat_x32_siginfo): Likewise.
1257
96b5c49f
WT
12582016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1259
1260 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
1261 structure to the siginfo if extra_fields contains
1262 LINUX_SIGINFO_FIELD_ADDR_BND.
1263
190b495d
WT
12642016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1265
1266 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
1267 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
1268 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
1269 function.
1270 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
1271 x86_linux_get_siginfo_type for the amd64 abi.
1272 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
1273 function.
1274 (i386_linux_init_abi): Add new function at the i386 ABI
1275 initialization.
1276
43564574
WT
12772016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1278
1279 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
1280 (linux_siginfo_extra_fields): New enum type.
1281 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
1282 (linux_get_siginfo_type): Use new function.
1283
93813b37
WT
12842016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1285
1286 * nat/amd64-linux-siginfo.c: New file.
1287 * nat/amd64-linux-siginfo.h: New file.
1288 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
1289 (amd64-linux-siginfo.o): New rule.
1290 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
1291 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
1292 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1293 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
1294 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
1295 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
1296 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
1297 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
1298
5fdf6324
AB
12992016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * value.c (max_value_size): New variable.
1302 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
1303 (set_max_value_size): New function.
1304 (show_max_value_size): New function.
1305 (check_type_length_before_alloc): New function.
1306 (allocate_value_contents): Call check_type_length_before_alloc.
1307 (set_value_enclosing_type): Likewise.
1308 (_initialize_values): Add set/show handler for max-value-size.
1309 * NEWS: Mention new set/show command.
1310
5fa13070
SM
13112016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * varobj.h (struct varobj): Fix typos in comments.
1314 (struct lang_varobj_ops): Likewise.
1315 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
1316 (varobj_create): Move misplaced comment.
1317
a2e3e93f
SM
13182016-01-29 Simon Marchi <simon.marchi@ericsson.com>
1319
1320 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
1321 to for include additional lines.
1322 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
1323
56e374a6
SM
13242016-01-28 Simon Marchi <simon.marchi@ericsson.com>
1325
1326 * gnulib/import/Makefile.am: Regenerate.
1327 * gnulib/import/Makefile.in: Regenerate.
1328 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1329 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
1330
8424cc97
SM
13312016-01-28 Simon Marchi <simon.marchi@ericsson.com>
1332
1333 * remote.c (skip_to_semicolon): Remove.
1334 (remote_parse_stop_reply): Use strchrnul instead of
1335 skip_to_semicolon.
1336 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1337 strchrnul.
1338 * gnulib/aclocal.m4: Regenerate.
1339 * gnulib/config.in: Regenerate.
1340 * gnulib/configure: Regenerate.
1341 * gnulib/import/Makefile.am: Regenerate.
1342 * gnulib/import/Makefile.in: Regenerate.
1343 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1344 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1345 * gnulib/import/m4/rawmemchr.m4: New file.
1346 * gnulib/import/m4/strchrnul.m4: New file.
1347 * gnulib/import/rawmemchr.c: New file.
1348 * gnulib/import/rawmemchr.valgrind: New file.
1349 * gnulib/import/strchrnul.c: New file.
1350 * gnulib/import/strchrnul.valgrind: New file.
1351
4a6a1ed4
YQ
13522016-01-28 Yao Qi <yao.qi@linaro.org>
1353
1354 * breakpoint.c (build_target_command_list): Don't call continue
1355 if aexpr is NULL.
1356 (build_target_condition_list): Likewise.
1357
94715c17
KB
13582016-01-27 Kevin Buettner <kevinb@redhat.com>
1359
1360 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
1361 bytes as aggregates.
1362
c07af0ab
JB
13632016-01-27 Joel Brobecker <brobecker@adacore.com>
1364
1365 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
1366 Linespec Maintainers.
1367
41548caa
SM
13682016-01-26 Simon Marchi <simon.marchi@ericsson.com>
1369
1370 * common/common-utils.c (skip_spaces): Fix comment.
1371 (skip_to_space_const): Likewise.
1372
4d18591b
YQ
13732016-01-25 Yao Qi <yao.qi@linaro.org>
1374
1375 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
1376 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
1377 (arm_deal_with_atomic_sequence_raw): Likewise.
1378 (thumb_get_next_pcs_raw): Likewise.
1379 (arm_get_next_pcs_raw): Likewise.
1380 (arm_get_next_pcs): Remove argument pc. Callers updated.
1381 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
1382
a579cd9a
MW
13832016-01-25 Mark Wielaard <mjw@redhat.com>
1384
1385 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
1386 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
1387 if statement.
1388 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
1389 statement block by introducing an else.
1390 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
1391 of return statements.
1392 (record_linux_msghdr): Likewise.
1393
a2077e25
PA
13942016-01-25 Pedro Alves <palves@redhat.com>
1395
1396 PR threads/19461
1397 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
1398 parent/child running states.
1399
1d2736d4
PA
14002016-01-25 Pedro Alves <palves@redhat.com>
1401
1402 PR gdb/19494
1403 * linux-nat.c (kill_one_lwp): New, factored out from ...
1404 (kill_callback): ... this.
1405 (kill_wait_callback): New, factored out from ...
1406 (kill_wait_one_lwp): ... this.
1407 (kill_unfollowed_fork_children): New function.
1408 (linux_nat_kill): Use it.
1409
b2bae2f7
JB
14102016-01-22 John Baldwin <jhb@FreeBSD.org>
1411
1412 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
1413
d86feca3
YQ
14142016-01-22 Yao Qi <yao.qi@linaro.org>
1415
1416 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
1417 instead of warning.
1418 (store_fpregs, fetch_regs, store_regs): Likewise.
1419 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
1420 (fetch_vfp_regs, store_vfp_regs): Likewise.
1421
b35a8b2f
DE
14222016-01-21 Doug Evans <dje@google.com>
1423
1424 * breakpoint.c (init_breakpoint_sal): Add comment.
1425
f906b857
MK
14262016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
1427
1428 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
1429
4a099de2
AB
14302016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * disasm.c (maybe_add_dis_line_entry): Rename to...
1433 (add_dis_line_entry): ...this, and update header comment.
1434 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
1435
a994041d
PA
14362016-01-21 Pedro Alves <palves@redhat.com>
1437
1438 * Makefile.in (COMPILER_CFLAGS): New.
1439 (CXXFLAGS): Get it from configure.
1440 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
1441 instead of CFLAGS.
1442 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
1443 COMPILER_CFLAGS.
1444 * configure: Regenerate.
1445
305e13e6
JB
14462016-01-21 Joel Brobecker <brobecker@adacore.com>
1447
1448 * location.h (new_address_location): Add new parameters
1449 "addr_string" and "addr_string_len".
1450 (get_address_string_location): Add declaration.
1451 * location.c (new_address_location): Add new parameters
1452 "addr_string" and "addr_string_len". If not NULL, store
1453 a copy of the addr_string in the new location as well.
1454 (get_address_string_location): New function.
1455 (string_to_event_location): Update call to new_address_location.
1456 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
1457 Save the event location in the parser's state before
1458 passing it to convert_address_location_to_sals.
1459 * breakpoint.c (create_thread_event_breakpoint): Update call
1460 to new_address_location.
1461 (init_breakpoint_sal): Get the event location's string, if any,
1462 and use it to update call to new_address_location.
1463 * python/py-finishbreakpoint.c (bpfinishpy_init):
1464 Update call to new_address_location.
1465 * spu-tdep.c (spu_catch_start): Likewise.
1466
1467 * config/djgpp/fnchange.lst: Add entries for
1468 gdb/testsuite/gdb.base/break-fun-addr1.c and
1469 gdb/testsuite/gdb.base/break-fun-addr2.c.
1470
f7a6a40d
YQ
14712016-01-21 Yao Qi <yao.qi@linaro.org>
1472
1473 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
1474 is_thumb and set it according to CPSR saved on the stack.
1475 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
1476 arm_linux_sigreturn_next_pc.
1477
5f5dfff6
SM
14782016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1479
1480 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
1481 Fix enumerators sort key function.
1482
be56871e
JB
14832016-01-20 Joel Brobecker <brobecker@adacore.com>
1484
b12e5614 1485 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
1486 end of line to beginning of next line. Adjust formatting
1487 accordingly.
1488
f2feec98
JB
14892016-01-19 John Baldwin <jhb@FreeBSD.org>
1490
1491 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
1492 "len" with sysctl.
1493
20a0aab3
JB
14942016-01-19 John Baldwin <jhb@FreeBSD.org>
1495
1496 * fbsd-tdep.c (find_stop_signal): Remove.
1497 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
1498 <stop_signal>: New field.
1499 <abort_iteration>: New field.
1500 (fbsd_collect_regset_section_cb): Use new fields.
1501 (fbsd_collect_thread_registers): New function.
1502 (struct fbsd_corefile_thread_data): New structure.
1503 (fbsd_corefile_thread): New function.
1504 (fbsd_make_corefile_notes): Use new function to dump notes for each
1505 non-exited thread in a process.
1506
6e9567fe
JB
15072016-01-19 John Baldwin <jhb@FreeBSD.org>
1508
1509 * configure.ac: Check for support for LWP names on FreeBSD.
1510 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
1511 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
1512 (fbsd_fetch_kinfo_proc): Move function earlier.
1513 [PT_LWPINFO] (fbsd_thread_alive): New function.
1514 [PT_LWPINFO] (fbsd_pid_to_str): New function.
1515 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
1516 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
1517 [PT_LWPINFO] (fbsd_add_threads): New function.
1518 [PT_LWPINFO] (fbsd_update_thread_list): New function.
1519 [PT_LWPINFO] New variable super_resume.
1520 [PT_LWPINFO] (resume_one_thread_cb): New function.
1521 [PT_LWPINFO] (resume_all_threads_cb): New function.
1522 [PT_LWPINFO] (fbsd_resume): New function.
1523 (fbsd_remember_child): Save full ptid instead of plain pid.
1524 (fbsd_is_child_pending): Return ptid of saved child process.
1525 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
1526 first stop.
1527 [PT_LWP_EVENTS] Handle LWP events.
1528 [TDP_RFPPWAIT] Include LWP in child ptid.
1529 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
1530 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
1531 Add threads for existing processes.
1532 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
1533 "fbsd_thread_alive".
1534 Set "to_pid_to_str" to "fbsd_pid_to_str".
1535 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
1536 "fbsd_thread_name".
1537 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
1538 Set "to_has_thread_control" to "tc_schedlock".
1539 Set "to_resume" to "fbsd_resume".
1540 (_initialize_fbsd_nat): New function.
1541 * configure: Regenerate.
1542 * config.in: Regenerate.
1543
94309df7
JB
15442016-01-19 John Baldwin <jhb@FreeBSD.org>
1545
1546 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
1547 get_ptrace_pid.
1548 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
1549 (amd64bsd_dr_get): Use get_ptrace_pid.
1550 (amd64bsd_dr_set): Use get_ptrace_pid.
1551 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
1552 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
1553 (i386bsd_dr_get): Use get_ptrace_pid.
1554 (i386bsd_dr_set): Use get_ptrace_pid.
1555 * inf-ptrace.c (get_ptrace_pid): Export.
1556 * inf-ptrace.h (get_ptrace_pid): Declare.
1557 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
1558 (ppcfbsd_store_inferior_registers): Use lwp id.
1559
79117428
JB
15602016-01-19 John Baldwin <jhb@FreeBSD.org>
1561
1562 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
1563 (fbsd_core_thread_name): New function.
1564 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
1565 Add "core_thread_name" gdbarch method.
1566
4dfc5dbc
JB
15672016-01-19 John Baldwin <jhb@FreeBSD.org>
1568
1569 * corelow.c (core_thread_name): New function.
1570 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
1571 target op.
1572 * gdbarch.sh (core_thread_name): New gdbarch callback.
1573 * gdbarch.h: Re-generate.
1574 * gdbarch.c: Re-generate.
1575
10e3ed90
SM
15762016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
1579 convert gdb.Value to integer type using int().
1580
a6e69c1f
JB
15812016-01-19 John Baldwin <jhb@FreeBSD.org>
1582
1583 * configure.ac: Include <sys/types.h when checking for "r_fs" in
1584 "struct reg".
1585 * configure: Regenerate.
1586
37e42b4f
PA
15872016-01-19 Pedro Alves <palves@redhat.com>
1588
1589 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
1590 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
1591 current program space down to linespec decoding and breakpoint
1592 location updating.
1593 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
1594 decode_line_full.
1595 (until_break_command): Adjust calls to decode_line_1.
1596 (base_breakpoint_decode_location, bkpt_decode_location): Add
1597 'search_pspace' parameter. Pass it along.
1598 (bkpt_probe_create_sals_from_location): Adjust calls to
1599 parse_probes.
1600 (tracepoint_decode_location, tracepoint_probe_decode_location)
1601 (strace_marker_decode_location): Add 'search_pspace' parameter.
1602 Pass it along.
1603 (all_locations_are_pending): Rewrite to take a breakpoint and
1604 program space as arguments instead.
1605 (hoist_existing_locations): New function.
1606 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
1607 hoist_existing_locations instead of always removing all locations,
1608 and adjust to all_locations_are_pending change.
1609 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
1610 Don't disable the breakpoint if there are other locations in
1611 another program space.
1612 (breakpoint_re_set_default): Adjust to pass down the current
1613 program space as filter program space.
1614 (decode_location_default): Add 'search_pspace' parameter and pass
1615 it along.
1616 (prepare_re_set_context): Don't switch program space here.
1617 (breakpoint_re_set): Use save_current_space_and_thread instead of
1618 save_current_program_space.
1619 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
1620 'search_pspace' parameter.
1621 (update_breakpoint_locations): Add 'filter_pspace' parameter.
1622 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
1623 decode_line_1.
1624 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
1625 program space as filter program space.
1626 * linespec.c (struct linespec_state) <search_pspace>: New field.
1627 (create_sals_line_offset, convert_explicit_location_to_sals)
1628 (parse_linespec): Pass the search program space down.
1629 (linespec_state_constructor): Add 'search_pspace' parameter.
1630 Store it.
1631 (linespec_parser_new): Add 'search_pspace' parameter and pass it
1632 along.
1633 (linespec_lex_to_end): Adjust.
1634 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
1635 and pass it along.
1636 (decode_line_with_last_displayed): Adjust.
1637 (collect_symtabs_from_filename, symtabs_from_filename): New
1638 'search_pspace' parameter. Use it.
1639 (find_function_symbols): Pass the search program space down.
1640 * linespec.h (decode_line_1, decode_line_full): Add
1641 'search_pspace' parameter.
1642 * probe.c (parse_probes_in_pspace): New function, factored out
1643 from ...
1644 (parse_probes): ... this. Add 'search_pspace' parameter and use
1645 it.
1646 * probe.h (parse_probes): Add pspace' parameter.
1647 * python/python.c (gdbpy_decode_line): Adjust.
1648 * tracepoint.c (scope_info): Adjust.
1649
100b4f2e
MR
16502016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1651
1652 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
1653 instruction support.
1654 (micromips_next_pc): Likewise.
1655 (micromips_scan_prologue): Likewise.
1656 (micromips_deal_with_atomic_sequence): Likewise.
1657 (micromips_stack_frame_destroyed_p): Likewise.
1658 (mips_breakpoint_from_pc): Likewise.
1659
3f7f3650
MR
16602016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1661
1662 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
1663 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
1664
f303dbd6
PA
16652016-01-18 Pedro Alves <palves@redhat.com>
1666
1667 * NEWS: Mention that GDB now displays the ID and name of the
1668 thread that hit a breakpoint or received a signal.
1669 * break-catch-sig.c (signal_catchpoint_print_it): Use
1670 maybe_print_thread_hit_breakpoint.
1671 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1672 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
1673 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
1674 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
1675 (print_it_catch_exec, print_it_ranged_breakpoint)
1676 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
1677 Use maybe_print_thread_hit_breakpoint.
1678 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
1679 * gdbthread.h (show_thread_that_caused_stop): Declare.
1680 * infrun.c (print_signal_received_reason): Print which thread
1681 received signal.
1682 * thread.c (show_thread_that_caused_stop): New function.
1683
eb0edac8
GB
16842016-01-18 Gary Benson <gbenson@redhat.com>
1685
1686 * nat/linux-namespaces.c (do_fork): New function.
1687 (linux_mntns_get_helper): Use the above.
1688
dc365182
JH
16892016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
1690
1691 Pushed by Joel Brobecker <brobecker@adacore.com>.
1692 PR gdb/19208
1693 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
1694 if the function has no name.
1695
f74f61cb
SL
16962016-01-15 Sandra Loosemore <sandra@codesourcery.com>
1697
1698 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
1699 Conditionalize for Windows host.
1700 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
1701 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
1702 (phony_iconv_open): Handle both UTF-32 endiannesses.
1703 (phony_iconv): Likewise. Check for output overflow and clean up
1704 out-of-input cases. Correct adjustment to input buffer pointer.
1705 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
1706 phony_iconv_open.
1707
71ef29a8
PA
17082016-01-15 Pedro Alves <palves@redhat.com>
1709
1710 * NEWS: Mention star wildcard ranges.
1711 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
1712 (number_range_setup_range): New function.
1713 * cli/cli-utils.h (number_range_setup_range): New declaration.
1714 * thread.c (thread_apply_command): Support star TID ranges.
1715 * tid-parse.c (tid_range_parser_finished)
1716 (tid_range_parser_string, tid_range_parser_skip)
1717 (get_tid_or_range, get_tid_or_range): Handle
1718 TID_RANGE_STATE_STAR_RANGE.
1719 (tid_range_parser_star_range): New function.
1720 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
1721 New value.
1722 (tid_range_parser_star_range): New declaration.
1723
3f5b7598
PA
17242016-01-15 Pedro Alves <palves@redhat.com>
1725
1726 * thread.c (thread_apply_command): Use the tid range parser to
1727 advance past the thread ID list.
1728 * tid-parse.c (get_positive_number_trailer): New function.
1729 (parse_thread_id): Use it.
1730 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
1731 thread ID error.
1732 (get_tid_or_range): Detect negative values. Return 0 instead of
1733 throwing invalid thread ID error.
1734
e7cf25a8
YQ
17352016-01-14 Yao Qi <yao.qi@linaro.org>
1736
1737 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1738 Declare.
1739 (arm_linux_get_next_pcs_ops): Install
1740 arm_linux_get_next_pcs_syscall_next_pc.
1741 (arm_linux_syscall_next_pc): Change to ...
1742 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
1743 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
1744 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
1745 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
1746 call tdep->syscall_next_pc.
1747 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
1748 (arm_get_next_pcs_syscall_next_pc): Remove.
1749
c0518081
YQ
17502016-01-14 Yao Qi <yao.qi@linaro.org>
1751
1752 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
1753 * thread.c (do_captured_thread_select): Cast to const char *.
1754
1b451dda
YQ
17552016-01-14 Yao Qi <yao.qi@linaro.org>
1756
1757 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
1758 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
1759 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
1760 instead.
1761 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
1762 <arm_thumb2_breakpoint>: Remove.
1763 <has_thumb2_breakpoint>: New field.
1764 (arm_get_next_pcs_ctor): Update declaration.
1765 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
1766 1 to arm_get_next_pcs_ctor.
1767 * arm-tdep.c (arm_software_single_step): Pass 0 to
1768 arm_get_next_pcs_ctor.
1769
bc06e0b1
UW
17702016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
1771
1772 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
1773
4e7b8bea
YQ
17742016-01-13 Yao Qi <yao.qi@linaro.org>
1775
1776 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
1777 byte_order_for_code to read instruction.
1778
663f6d42
PA
17792016-01-13 Pedro Alves <palves@redhat.com>
1780
1781 * NEWS: Mention $_gthread.
1782 * gdbthread.h (struct thread_info) <global_num>: Mention
1783 $_gthread.
1784 * thread.c (thread_num_make_value_helper): New function.
1785 (thread_id_make_value): Delete.
1786 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
1787 New.
1788 (thread_funcs): Adjust.
1789 (gthread_funcs): New.
1790 (_initialize_thread): Register $_gthread variable.
1791
c84f6bbf
PA
17922016-01-13 Pedro Alves <palves@redhat.com>
1793
1794 * NEWS: Mention "info threads -gid".
1795 * gdbthread.h (struct thread_info) <global_num>: Mention "info
1796 threads -gid".
1797 * thread.c (info_threads_command): Handle "-gid".
1798 (_initialize_thread): Adjust "info threads" help string to mention
1799 -gid.
1800
22a02324
PA
18012016-01-13 Pedro Alves <palves@redhat.com>
1802
1803 * NEWS: Mention InferiorThread.global_num.
1804 * python/py-infthread.c (thpy_get_global_num): New function.
1805 (thread_object_getset): Register "global_num".
1806
5d5658a1
PA
18072016-01-13 Pedro Alves <palves@redhat.com>
1808
1809 * NEWS: Mention that thread IDs are now per inferior and global
1810 thread IDs.
1811 * Makefile.in (SFILES): Add tid-parse.c.
1812 (COMMON_OBS): Add tid-parse.o.
1813 (HFILES_NO_SRCDIR): Add tid-parse.h.
1814 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
1815 * breakpoint.c (insert_breakpoint_locations)
1816 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
1817 (print_one_breakpoint_location, set_longjmp_breakpoint)
1818 (check_longjmp_breakpoint_for_call_dummy)
1819 (set_momentary_breakpoint): Adjust to use global IDs.
1820 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
1821 (until_break_command, longjmp_bkpt_dtor)
1822 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
1823 to use global IDs.
1824 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
1825 ptid_to_global_thread_id.
1826 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1827 * gdbthread.h (struct thread_info): Rename field 'num' to
1828 'global_num. Add new fields 'per_inf_num' and 'inf'.
1829 (thread_id_to_pid): Rename thread_id_to_pid to
1830 global_thread_id_to_ptid.
1831 (pid_to_thread_id): Rename to ...
1832 (ptid_to_global_thread_id): ... this.
1833 (valid_thread_id): Rename to ...
1834 (valid_global_thread_id): ... this.
1835 (find_thread_id): Rename to ...
1836 (find_thread_global_id): ... this.
1837 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
1838 (print_thread_info): Add comment.
1839 * tid-parse.h: New file.
1840 * tid-parse.c: New file.
1841 * infcmd.c (step_command_fsm_prepare)
1842 (step_command_fsm_should_stop): Adjust to use the global thread
1843 ID.
1844 (until_next_command, until_next_command)
1845 (finish_command_fsm_should_stop): Adjust to use the global thread
1846 ID.
1847 (attach_post_wait): Adjust to check the inferior number too.
1848 * inferior.h (struct inferior) <highest_thread_num>: New field.
1849 * infrun.c (handle_signal_stop)
1850 (insert_exception_resume_breakpoint)
1851 (insert_exception_resume_from_probe): Adjust to use the global
1852 thread ID.
1853 * record-btrace.c (record_btrace_open): Use global thread IDs.
1854 * remote.c (process_initial_stop_replies): Also consider the
1855 inferior number.
1856 * target.c (target_pre_inferior): Clear the inferior's highest
1857 thread num.
1858 * thread.c (clear_thread_inferior_resources): Adjust to use the
1859 global thread ID.
1860 (new_thread): New inferior parameter. Adjust to use it. Set both
1861 the thread's global ID and the thread's per-inferior ID.
1862 (add_thread_silent): Adjust.
1863 (find_thread_global_id): New.
1864 (find_thread_id): Make static. Adjust to rename.
1865 (valid_thread_id): Rename to ...
1866 (valid_global_thread_id): ... this.
1867 (pid_to_thread_id): Rename to ...
1868 (ptid_to_global_thread_id): ... this.
1869 (thread_id_to_pid): Rename to ...
1870 (global_thread_id_to_ptid): ... this. Adjust.
1871 (first_thread_of_process): Adjust.
1872 (do_captured_list_thread_ids): Adjust to use global thread IDs.
1873 (should_print_thread): New function.
1874 (print_thread_info): Rename to ...
1875 (print_thread_info_1): ... this, and add new show_global_ids
1876 parameter. Handle it. Iterate over inferiors.
1877 (print_thread_info): Reimplement as wrapper around
1878 print_thread_info_1.
1879 (show_inferior_qualified_tids): New function.
1880 (print_thread_id): Use it.
1881 (tp_array_compar): Compare inferior numbers too.
1882 (thread_apply_command): Use tid_range_parser.
1883 (do_captured_thread_select): Use parse_thread_id.
1884 (thread_id_make_value): Adjust.
1885 (_initialize_thread): Adjust "info threads" help string.
1886 * varobj.c (struct varobj_root): Update comment.
1887 (varobj_create): Adjust to use global thread IDs.
1888 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
1889 * windows-tdep.c (display_tib): No longer accept an argument.
1890 * cli/cli-utils.c (get_number_trailer): Make extern.
1891 * cli/cli-utils.h (get_number_trailer): Declare.
1892 (get_number_const): Adjust documentation.
1893 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
1894 thread IDs.
1895 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1896 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
1897 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
1898 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
1899 Likewise.
1900 * python/py-breakpoint.c (bppy_set_thread): Likewise.
1901 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1902 * python/py-infthread.c (thpy_get_num): Add comment and return the
1903 per-inferior thread ID.
1904 (thread_object_getset): Update comment of "num".
1905
43792cf0
PA
19062016-01-13 Pedro Alves <palves@redhat.com>
1907
1908 * breakpoint.c (remove_threaded_breakpoints)
1909 (print_one_breakpoint_location): Use print_thread_id.
1910 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
1911 (btrace_fetch, btrace_clear): Use print_thread_id.
1912 * common/print-utils.c (CELLSIZE): Delete.
1913 (get_cell): Rename to ...
1914 (get_print_cell): ... this and made extern. Adjust call callers.
1915 Adjust to use PRINT_CELL_SIZE.
1916 * common/print-utils.h (get_print_cell): Declare.
1917 (PRINT_CELL_SIZE): New.
1918 * gdbthread.h (print_thread_id): Declare.
1919 * infcmd.c (signal_command): Use print_thread_id.
1920 * inferior.c (print_inferior): Use print_thread_id.
1921 * infrun.c (handle_signal_stop)
1922 (insert_exception_resume_breakpoint)
1923 (insert_exception_resume_from_probe)
1924 (print_signal_received_reason): Use print_thread_id.
1925 * record-btrace.c (record_btrace_info)
1926 (record_btrace_resume_thread, record_btrace_cancel_resume)
1927 (record_btrace_step_thread, record_btrace_wait): Use
1928 print_thread_id.
1929 * thread.c (thread_apply_all_command): Use print_thread_id.
1930 (print_thread_id): New function.
1931 (thread_apply_command): Use print_thread_id.
1932 (thread_command, thread_find_command, do_captured_thread_select):
1933 Use print_thread_id.
1934
84654457
PA
19352016-01-13 Pedro Alves <palves@redhat.com>
1936
1937 * NEWS: Mention InferiorThread.inferior.
1938 * python/py-infthread.c (thpy_get_inferior): New.
1939 (thread_object_getset): Register "inferior".
1940
e3940304
PA
19412016-01-13 Pedro Alves <palves@redhat.com>
1942
1943 * NEWS: Mention $_inferior.
1944 * inferior.c (inferior_id_make_value): New.
1945 (inferior_funcs): New.
1946 (_initialize_inferior): Create $_inferior variable.
1947
a911d87a
PA
19482016-01-13 Pedro Alves <palves@redhat.com>
1949
1950 PR breakpoints/19388
1951 * frame.c (get_current_frame): Use validate_registers_access.
1952 * gdbthread.h (validate_registers_access): Declare.
1953 * infrun.c (validate_siginfo_access): Delete.
1954 (siginfo_value_read, siginfo_value_write): Use
1955 validate_registers_access.
1956 * thread.c (validate_registers_access): New function.
1957
82075af2
JS
19582016-01-12 Josh Stone <jistone@redhat.com>
1959 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1960
1961 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
1962 syscall_entry and syscall_return stop reasons. Mention GDB
1963 support for remote catch syscall.
1964 * remote.c (PACKET_QCatchSyscalls): New enum.
1965 (remote_set_syscall_catchpoint): New function.
1966 (remote_protocol_features): New element for QCatchSyscalls.
1967 (remote_parse_stop_reply): Parse syscall_entry/return stops.
1968 (init_remote_ops): Install remote_set_syscall_catchpoint.
1969 (_initialize_remote): Config QCatchSyscalls.
1970 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
1971
d18547d8
YQ
19722016-01-12 Yao Qi <yao.qi@linaro.org>
1973
1974 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
1975 to gdb_byte * and pass to linux_fork_to_function.
1976
ba4dd7c4
YQ
19772016-01-12 Yao Qi <yao.qi@linaro.org>
1978
1979 * nat/linux-ptrace.c (linux_fork_to_function): Change type
1980 of argument 'function'.
1981 (linux_grandchild_function): Change return type to 'int'.
1982 Change child_stack's type to 'void *'.
1983 (linux_child_function): Likewise.
1984
bc504a31
PA
19852016-01-12 Pedro Alves <palves@redhat.com>
1986
1987 Remove use of the registered trademark symbol throughout.
1988
5eddd578
TS
19892016-01-12 Thomas Schwinge <thomas@codesourcery.com>
1990
1991 * reply_mig_hack.awk: Rewrite one regular expression.
1992
b835bb52
MF
19932016-01-11 Mike Frysinger <vapier@gentoo.org>
1994
1995 * acinclude.m4: Include new warning.m4 file.
1996 * configure: Regenerated.
1997 * configure.ac: Move all warning logic ...
1998 * warning.m4: ... here.
1999
2f99e8fc
YQ
20002016-01-08 Yao Qi <yao.qi@linaro.org>
2001
2002 * extension.c: Include target.h.
2003 (set_active_ext_lang): Only call install_gdb_sigint_handler,
2004 check_quit_flag, and set_quit_flag if target_terminal_is_ours
2005 returns false.
2006 (restore_active_ext_lang): Likewise.
2007 * target.c (target_terminal_is_ours): New function.
2008 * target.h (target_terminal_is_ours): Declare.
2009
5dd05630
MR
20102016-01-07 Maciej W. Rozycki <macro@imgtec.com>
2011
2012 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
2013 to `err' in the little-endian leg.
2014
f5aa3069
YQ
20152016-01-06 Yao Qi <yao.qi@linaro.org>
2016
2017 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
2018 lines below.
2019 (thumb_get_next_pcs_raw): Make it static.
2020 (arm_get_next_pcs_raw): Likewise.
2021 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
2022 declaration.
2023 (arm_get_next_pcs_raw): Likewise.
2024
bf69ad5a
MF
20252016-01-05 Mike Frysinger <vapier@gentoo.org>
2026
2027 * version.in: Change cvs to git.
2028
66750332
MF
20292016-01-05 Mike Frysinger <vapier@gentoo.org>
2030
2031 * configure.tgt (score-*-*): Delete gdb_sim assignment.
2032
976102cd
PA
20332016-01-05 Pedro Alves <palves@redhat.com>
2034
2035 PR sim/13418
2036 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
2037 the target is powerpc*.
fa89c126
PA
2038 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
2039 of WITH_SIM.
976102cd
PA
2040 * configure: Regenerate.
2041 * config.in: Regenerate.
2042
43368e1d
MM
20432016-01-04 Markus Metzger <markus.t.metzger@intel.com>
2044
2045 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
2046
32273fe6
MF
20472016-01-02 Mike Frysinger <vapier@gentoo.org>
2048
2049 * configure.tgt (powerpc*-*-*): Delete test call and
2050 always assign gdb_sim.
2051
618f726f
JB
20522016-01-01 Joel Brobecker <brobecker@adacore.com>
2053
2054 Update year range in copyright notice of all files.
2055
edd88788
JB
20562016-01-01 Joel Brobecker <brobecker@adacore.com>
2057
2058 * top.c (print_gdb_version): Change copyright year in version
2059 message.
2060
0f7b3ef4 20612016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 2062
0f7b3ef4 2063 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 2064
0f7b3ef4 2065For older changes see ChangeLog-2015.
c906108c
SS
2066\f
2067Local Variables:
2068mode: change-log
2069left-margin: 8
2070fill-column: 74
2071version-control: never
57da7796 2072coding: utf-8
c906108c 2073End: