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