Eliminate prepare_to_throw_exception
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2afc13ff
PA
12016-04-12 Pedro Alves <palves@redhat.com>
2
3 * common/common-exceptions.c (exception_rethrow): Remove
4 prepare_to_throw_exception call.
5 * common/common-exceptions.h (prepare_to_throw_exception): Delete
6 declaration.
7 * exceptions.c (prepare_to_throw_exception): Delete.
8
cfd0fbdd
PA
92016-04-12 Pedro Alves <palves@redhat.com>
10
11 * target.c (target_check_pending_interrupt): Delete.
12 * target.h (struct target_ops) <to_check_pending_interrupt>:
13 Remove method.
14 (target_check_pending_interrupt): Remove declaration.
15 * target-delegates.c: Regenerate.
16
585a46a2
PA
172016-04-12 Pedro Alves <palves@redhat.com>
18
19 * defs.h: Update comments on SIGINT handling.
20 (immediate_quit): Delete declaration.
21 * event-loop.c (call_async_signal_handler): Delete.
22 * event-loop.h (call_async_signal_handler): Delete declaration.
23 (mark_async_signal_handler): Update comments.
24 (gdb_call_async_signal_handler): Delete declaration.
25 * event-top.c (handle_sigint): Call mark_async_signal_handler
26 instead of gdb_call_async_signal_handler.
27 * exceptions.c (prepare_to_throw_exception): Remove reference to
28 immediate_quit.
29 (exception_fprintf): Remove comments about immediate_quit.
30 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
31 (gdb_select): Don't wait on sigint_event.
32 (gdb_call_async_signal_handler): Delete.
33 (_initialize_mingw_hdep): Delete.
34 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
35 * utils.c (immediate_quit): Delete.
36
048094ac
PA
372016-04-12 Pedro Alves <palves@redhat.com>
38
39 * defs.h (quit_handler_ftype, quit_handler)
40 (make_cleanup_override_quit_handler, default_quit_handler): New.
41 (QUIT): Adjust comments.
42 * event-top.c (default_quit_handler): New function.
43 (quit_handler): New global.
44 (struct quit_handler_cleanup_data): New.
45 (restore_quit_handler, restore_quit_handler_dtor)
46 (make_cleanup_override_quit_handler): New.
47 (async_request_quit): Call QUIT.
48 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
49 (async_sigint_remote_twice_token, async_sigint_remote_token):
50 Delete.
51 (remote_close): Update comments.
52 (remote_start_remote): Don't set immediate_quit. Set starting_up
53 earlier.
54 (remote_serial_quit_handler, remote_unpush_and_throw): New
55 functions.
56 (remote_open_1): Clear got_ctrlc_during_io. Set
57 remote_async_terminal_ours_p unconditionally.
58 (async_initialize_sigint_signal_handler)
59 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
60 (remote_check_pending_interrupt, async_remote_interrupt)
61 (async_remote_interrupt_twice)
62 (async_cleanup_sigint_signal_handler, ofunc)
63 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
64 (remote_terminal_inferior, remote_terminal_ours): Remove async
65 checks.
66 (remote_wait_as): Don't install a SIGINT handler in sync mode.
67 (readchar, remote_serial_write): Override the quit handler with
68 remote_serial_quit_handler.
69 (getpkt_or_notif_sane_1): Don't call QUIT.
70 (initialize_remote_ops): Don't install
71 remote_check_pending_interrupt.
72 (_initialize_remote): Don't create async_sigint_remote_token and
73 async_sigint_remote_twice_token.
74 * ser-base.c (ser_base_wait_for): Call QUIT and use
75 interruptible_select.
76 (ser_base_write): Call QUIT.
77 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
78 * ser-unix.c (wait_for): Don't use VTIME. Always take the
79 gdb_select path, but call QUIT and interruptible_select.
80 * utils.c (maybe_quit): Call the current quit handler. Don't call
81 target_check_pending_interrupt.
82 (defaulted_query, prompt_for_continue): Override the quit handler
83 with the default quit handler.
84
a12ac513
PA
852016-04-12 Pedro Alves <palves@redhat.com>
86
87 * tui/tui-hooks.c (tui_target_has_run): Delete.
88 (tui_about_to_proceed): Delete.
89 (tui_about_to_proceed_observer): Delete.
90 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
91 about_to_proceed observer.
92
5fe96654
PA
932016-04-12 Pedro Alves <palves@redhat.com>
94
95 * mi/mi-interp.c (mi_new_thread): Put
96 target_terminal_ours_for_output in effect while outputting.
97 (mi_thread_exit): Use target_terminal_ours_for_output instead of
98 target_terminal_ours.
99 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
100 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
101 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
102 (mi_breakpoint_created, mi_breakpoint_deleted)
103 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
104 (mi_command_param_changed, mi_memory_changed)
105 (report_initial_inferior): Use target_terminal_ours_for_output
106 instead of target_terminal_ours. Restore terminal settings.
107 * mi/mi-main.c (mi_execute_command): Use
108 target_terminal_ours_for_output instead of target_terminal_ours.
109 Restore terminal settings.
110
651ce16a
PA
1112016-04-12 Pedro Alves <palves@redhat.com>
112
113 PR gdb/19828
114 * gnu-nat.c (inf_validate_task_sc): Don't call
115 target_terminal_ours / target_terminal_inferior around query.
116 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
117 call target_terminal_ours / target_terminal_inferior around
118 yquery.
119 * linux-record.c (record_linux_system_call): Don't call
120 target_terminal_ours / target_terminal_inferior around yquery.
121 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
122 / target_terminal_inferior around query.
123 * record-full.c (record_full_check_insn_num): Remove
124 'set_terminal' parameter. Don't call target_terminal_ours /
125 target_terminal_inferior around query.
126 (record_full_message, record_full_registers_change)
127 (record_full_xfer_partial): Adjust.
128 * remote.c (interrupt_query): Don't call target_terminal_ours /
129 target_terminal_inferior around query.
130 * utils.c (defaulted_query): Install cleanup to restore target
131 terminal. Put target_terminal_ours_for_output in effect while
132 defaulted producing, and target_terminal_ours in in effect while
133 handling input.
134 (prompt_for_continue): Install cleanup to restore target terminal.
135 Put target_terminal_ours in in effect while handling input.
136
80dbc9fd
PA
1372016-04-12 Pedro Alves <palves@redhat.com>
138
139 * utils.c (defaulted_query, prompt_for_continue): Free temporary
140 strings with cleanups, instead of xfree.
141
c5ac1540
PA
1422016-04-12 Pedro Alves <palves@redhat.com>
143
144 * utils.c (vwarning, internal_vproblem): Use
145 make_cleanup_restore_target_terminal and
146 target_terminal_ours_for_output.
147
f8e3ef9d
PA
1482016-04-12 Pedro Alves <palves@redhat.com>
149
150 * infcmd.c (post_create_inferior, prepare_one_step): Use
151 target_terminal_ours_for_output instead of target_terminal_ours.
152
481ac8c9
PA
1532016-04-12 Pedro Alves <palves@redhat.com>
154
155 * exceptions.c (print_flush): Use target_terminal_ours_for_output
156 instead of target_terminal_ours, and restore target terminal with
157 a cleanup.
158
c509f1e1
PA
1592016-04-12 Pedro Alves <palves@redhat.com>
160
161 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
162 instead of target_terminal_ours, and restore target terminal with
163 a cleanup.
164
99bbb428
PA
1652016-04-12 Pedro Alves <palves@redhat.com>
166
167 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
168 functions.
169 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
170
75ee5925
PA
1712016-04-12 Pedro Alves <palves@redhat.com>
172
173 * ser-base.c (fd_event): Retry read_prim on EINTR.
174 (do_ser_base_readchar): Retry read_prim on EINTR.
175 (ser_base_write): Retry write_prim on EINTR.
176 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
177 (ser_unix_write_prim): Remove comment.
178
93692b58
PA
1792016-04-12 Pedro Alves <palves@redhat.com>
180
181 * remote.c (remote_pass_ctrlc): New function.
182 (init_remote_ops): Install it.
183 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
184 target.
185 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
186 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
187 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
188 * target-delegates.c: Regenerate.
189
e42de8c7
PA
1902016-04-12 Pedro Alves <palves@redhat.com>
191
192 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
193 mode.
194 * linux-nat.c (linux_nat_interrupt): Delete.
195 (linux_nat_add_target): Don't install linux_nat_interrupt.
196 * remote.c (remote_interrupt_ns): Change return type to void.
197 Throw error if interrupting the target is not supported.
198 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
199
a149683b
PA
2002016-04-12 Pedro Alves <palves@redhat.com>
201
202 * defs.h (clear_quit_flag): Remove declaration.
203 * extension-priv.h (struct extension_language_ops)
204 <clear_quit_flag>: Remove field and update comments.
205 * extension.c (clear_quit_flag): Delete.
206 * guile/guile.c (guile_extension_ops): Adjust.
207 * python/python.c (python_extension_ops): Adjust.
208 (gdbpy_clear_quit_flag): Delete.
209
da1e5f54
PA
2102016-04-12 Pedro Alves <palves@redhat.com>
211
212 * main.c (captured_main): Don't clear the quit flag.
213
0af679c6
PA
2142016-04-12 Pedro Alves <palves@redhat.com>
215
216 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
217 flag.
218
4a81fd47
PA
2192016-04-12 Pedro Alves <palves@redhat.com>
220
221 * event-top.c (command_handler): Don't call clear_quit_flag.
222
abf009ef
PA
2232016-04-12 Pedro Alves <palves@redhat.com>
224
225 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
226 * remote.c (remote_wait_as): Don't call clear_quit_flag.
227
6eddd09a
PA
2282016-04-12 Pedro Alves <palves@redhat.com>
229
230 * python/python.c: Include "ser-event.h".
231 (gdbpy_event_fds): Delete.
232 (gdbpy_serial_event): New.
233 (gdbpy_run_events): Change prototype. Use serial_event_clear
234 instead of serial_readchar.
235 (gdbpy_post_event): Use serial_event_set instead of serial_write.
236 (gdbpy_initialize_events): Use make_serial_event instead of
237 serial_pipe.
238
f0881b37
PA
2392016-04-12 Pedro Alves <palves@redhat.com>
240
241 * defs.h: Extend QUIT-related comments to mention
242 interruptible_select.
243 (quit_serial_event_set, quit_serial_event_clear): Declare.
244 * event-top.c: Include "ser-event.h" and "gdb_select.h".
245 (quit_serial_event): New global.
246 (async_init_signals): Make quit_serial_event.
247 (quit_serial_event_set, quit_serial_event_clear)
248 (quit_serial_event_fd, interruptible_select): New functions.
249 * extension.c (set_quit_flag): Set the quit serial event.
250 (check_quit_flag): Clear the quit serial event.
251 * gdb_select.h (interruptible_select): New declaration.
252 * guile/scm-ports.c (ioscm_input_waiting): Use
253 interruptible_select instead of gdb_select.
254 * top.c (gdb_readline_no_editing): Likewise.
255 * ui-file.c (stdio_file_read): Likewise.
256
5cc3ce8b
PA
2572016-04-12 Pedro Alves <palves@redhat.com>
258
259 * event-loop.c: Include "ser-event.h".
260 (async_signal_handlers_serial_event): New global.
261 (async_signals_handler, initialize_async_signal_handlers): New
262 functions.
263 (mark_async_signal_handler): Set
264 async_signal_handlers_serial_event.
265 (invoke_async_signal_handlers): Clear
266 async_signal_handlers_serial_event.
267 * event-top.c (async_init_signals): Call
268 initialize_async_signal_handlers.
269
00340e1b
PA
2702016-04-12 Pedro Alves <palves@redhat.com>
271
272 * Makefile.in (SFILES): Add ser-event.c.
273 (HFILES_NO_SRCDIR): Add ser-event.h.
274 (COMMON_OBS): Add ser-event.o.
275 * ser-event.c, ser-event.h: New files.
276 * serial.c (new_serial): New function, factored out from
277 (serial_fdopen_ops): ... this.
278 (serial_open_ops_1): New function, factored out from
279 (serial_open): ... this.
280 (serial_open_ops): New function.
281 * serial.h (struct serial): Forware declare.
282 (serial_open_ops): New declaration.
283
5f5219fc
PA
2842016-04-12 Pedro Alves <palves@redhat.com>
285
286 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
287 Remove references to name.
288 * serial.h (struct serial) <name>: Delete.
289
acd5494d
PA
2902016-04-12 Pedro Alves <palves@redhat.com>
291
292 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
293 Delete.
294 (async_remote_fileio_interrupt): Delete.
295 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
296 handler. Instead just always set the ctrl_c flag.
297 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
298 re-enabling the SIGINT handler.
299 (remote_fileio_func_open, remote_fileio_func_close)
300 (remote_fileio_func_read, remote_fileio_func_write)
301 (remote_fileio_func_lseek, remote_fileio_func_rename)
302 (remote_fileio_func_unlink, remote_fileio_func_stat)
303 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
304 (remote_fileio_func_isatty, remote_fileio_func_system)
305 (remote_fileio_request): Remove references to
306 remote_fio_no_longjmp.
307 (initialize_remote_fileio): Don't create an async signal handler.
308
d2acc30b
PA
3092016-04-12 Pedro Alves <palves@redhat.com>
310
311 * event-top.c (stdin_event_handler): Call QUIT;
312 (prompt_for_continue): Don't run with immediate_quit set.
313
ab33ab13
PA
3142016-04-12 Pedro Alves <palves@redhat.com>
315
316 * tui/tui-io.c (tui_redisplay_readline): Check
317 gdb_in_secondary_prompt_p instead of immediate_quit.
318 * tui/tui.c: Include top.h.
319 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
320 immediate_quit.
321
faa4ebe1
PA
3222016-04-12 Pedro Alves <palves@redhat.com>
323
324 * top.c (read_command_file): Inline command_loop here.
325 (command_loop): Delete.
326
3212b858
PA
3272016-04-12 Pedro Alves <palves@redhat.com>
328
329 * top.c: Include "gdb_select.h".
330 (gdb_readline_no_editing): Wait for input with gdb_select instead
331 of blocking in fgetc.
332 (command_line_input): Don't set immediate_quit.
333
4bf7b526
MG
3342016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
335
336 * value.c (value_next): Make pass-by-reference parameters const-correct.
337 (value_parent): Likewise.
338 (value_enclosing_type): Likewise.
339 (value_lazy): Likewise.
340 (value_stack): Likewise.
341 (value_embedded_offset): Likewise.
342 (value_pointed_to_offset): Likewise.
343 (value_raw_address): Likewise.
344 (deprecated_value_modifiable): Likewise.
345 (value_free_to_mark): Likewise.
346 (value_release_to_mark): Likewise.
347 (internalvar_name): Likewise.
348 (readjust_indirect_value_type): Likewise.
349 (value_initialized): Likewise.
350 * value.h (value_next): Likewise.
351 (value_parent): Likewise.
352 (value_enclosing_type): Likewise.
353 (value_lazy): Likewise.
354 (value_stack): Likewise.
355 (value_embedded_offset): Likewise.
356 (value_pointed_to_offset): Likewise.
357 (value_raw_address): Likewise.
358 (deprecated_value_modifiable): Likewise.
359 (value_free_to_mark): Likewise.
360 (value_release_to_mark): Likewise.
361 (internalvar_name): Likewise.
362 (readjust_indirect_value_type): Likewise.
363 (value_initialized): Likewise.
364
e390720b
YQ
3652016-04-07 Yao Qi <yao.qi@linaro.org>
366
367 * record-full.c (record_full_insert_breakpoint): Return
368 early if entry on the address is found in
369 record_full_breakpoints.
370
1ccd06e4
YQ
3712016-04-07 Yao Qi <yao.qi@linaro.org>
372
373 * record-full.c (record_full_insert_breakpoint): Set
374 bp_tgt->reqstd_address and bp_tgt->placed_size.
375
ecf2e90c
DB
3762016-04-06 Don Breazeal <donb@codesourcery.com>
377
378 * value.c (value_actual_type): Don't try to get rtti type
379 of the value if it has been optimized out.
380 (value_optimized_out): If a memory access error occurs,
381 just check vaue->optimized_out.
382
14731617
JK
3832016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
384
385 Revert the previous commit adding unknown_v_replies_ok.
386
319cb5d0
JK
3872016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
388
389 * remote.c (struct remote_state): New field unknown_v_replies_ok.
390 (packet_config_support): Read it.
391 (remote_start_remote): Set it.
392
052d2eb2
JK
3932016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 * remote.c: Revert check-in by a mistake in the previous commit.
396
fef3cb9f
JK
3972016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
398 Pedro Alves <palves@redhat.com>
399
400 * exec.c (exec_file_locate_attach): Print warning for unsupported
401 target_pid_to_exec_file.
402 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
403 message part.
404
2aa08bd1
SM
4052016-04-04 Simon Marchi <simon.marchi@ericsson.com>
406
407 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
408 trailing spaces.
409
cc63428a
AV
4102016-04-01 Artemiy Volkov <artemiyv@acm.org>
411
412 PR gdb/19820
413 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
414 the type of BINOP_REPEAT's second operand.
415
9bb84c9f
YY
4162016-03-31 Yichao Yu <yyc1992@gmail.com>
417
418 PR gdb/19858
419 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
420 got the breakpoint at the right address.
421 (jit_inferior_created): New function.
422 (_initialize_jit): Install jit_inferior_created as
423 inferior_created observer.
424
22084c42
MK
4252016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
426
427 * NEWS: Mention support for tracepoints on powerpc*-linux.
428
e7ea3ec7
CU
4292016-03-31 Catalin Udma <catalin.udma@freescale.com>
430
431 PR python/19743
432 * python/python.c (execute_gdb_command): Use console uiout
433 when executing gdb command.
434 * utils.c (restore_ui_out_closure): New structure.
435 (do_restore_ui_out): New function.
436 (make_cleanup_restore_ui_out): Likewise.
437 * utils.h (make_cleanup_restore_ui_out): Declare.
438
f7c38292
PA
4392016-03-31 Pedro Alves <palves@redhat.com>
440
441 * NEWS: Mention that support for "target m32rsdi", "target mips",
442 "target pmon", "target ddb", "target rockhopper", and "target lsi"
443 was removed.
444 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
445 remote-mips.o.
446 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
447 * configure.tgt: Remove all references to remote-m32r-sdi.o and
448 remote-mips.o.
449 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
450 function.
451 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
452 declaration.
453 * remote-m32r-sdi.c, remote-mips.c: Delete files.
454 * symfile.c (generic_load, generic_load): Remove comments.
455
fb3f3d25
YQ
4562016-03-30 Yao Qi <yao.qi@linaro.org>
457
458 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
459 0 rather than NULL.
460
779aa56f
YQ
4612016-03-30 Yao Qi <yao.qi@linaro.org>
462
463 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
464 (arm_epilogue_frame_this_id): New function.
465 (arm_epilogue_frame_prev_register): New function.
466 (arm_epilogue_frame_sniffer): New function.
467 (arm_epilogue_frame_unwind): New.
468 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
469
c58b006a
YQ
4702016-03-30 Yao Qi <yao.qi@linaro.org>
471
472 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
473 (arm_stack_frame_destroyed_p_1): ... here. Don't call
474 arm_pc_is_thumb.
475 (arm_stack_frame_destroyed_p): Call
476 thumb_stack_frame_destroyed_p and
477 arm_stack_frame_destroyed_p_1.
478
4ae6cc19
DE
4792016-03-30 Doug Evans <dje@google.com>
480
481 * python/py-utils.c (host_string_to_python_string): New function.
482 * python/python-internal.h (host_string_to_python_string): Declare it.
483 * python/py-*.c (*): Update all calls to
484 PyString_Decode (str, strlen (str), host_charset (), NULL);
485 to use host_string_to_python_string instead.
486
28170b88
MK
4872016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
488
489 * remote.c (remote_check_symbols): Allocate own buffer for reply.
490
a08b52b5
MF
4912016-03-29 Max Filippov <jcmvbkbc@gmail.com>
492
493 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
494 Use safe_read_memory_integer instead of read_memory_integer.
495
c37c0ba6
MK
4962016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
497
498 * NEWS: Mention support for tracepoints on s390*-linux.
499
444bca65
DB
5002016-03-29 Don Breazeal <donb@codesourcery.com>
501
502 * gdb/value.c (value_actual_type): Fix formatting issue.
503
cc651c1c
YQ
5042016-03-23 Yao Qi <yao.qi@linaro.org>
505
506 * gdbarch.sh (software_single_step): Remove comments.
507 * gdbarch.h: Regenerated.
508
c55978a6
YQ
5092016-03-21 Yao Qi <yao.qi@linaro.org>
510
511 * arm-tdep.c (arm_record_media): New.
512 (arm_record_ld_st_reg_offset): Call arm_record_media.
513
479fe002
YQ
5142016-03-21 Yao Qi <yao.qi@linaro.org>
515
516 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
517 more syscalls.
518
9c3f2234
YQ
5192016-03-18 Yao Qi <yao.qi@linaro.org>
520
521 * sparc-tdep.c (sparc_software_single_step): Make it static.
522 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
523
941319d1
YQ
5242016-03-18 Yao Qi <yao.qi@linaro.org>
525
526 * spu-tdep.c (spu_software_single_step): Throw error when
527 target_read_memory fails.
528
708bf0a1
JK
5292016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
530
531 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
532
0d5b594f
PA
5332016-03-17 Pedro Alves <palves@redhat.com>
534 Don Breazeal <donb@codesourcery.com>
535
536 PR remote/19496
537 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
538 instead of checking the 'non_stop' global.
539 * remote.c (remote_add_thread): New parameter 'executing'. Use it
540 to set the new thread's executing state.
541 (remote_notice_new_inferior): Rename parameter 'running' to
542 'executing'. Always set the thread state to THREAD_RUNNING in
543 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
544 EXECUTING to remote_add_thread and notice_new_inferior.
545 (remote_update_thread_list): Update to pass executing state, not
546 running state.
547
bba960fc
AA
5482016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
549
550 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
551 to 374.
552 * syscalls/s390x-linux.xml: Likewise.
553
5fd0888a
AA
5542016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
555
556 * linux-record.c (record_mem_at_reg): New helper function.
557 (record_linux_system_call): Exploit new helper function where
558 applicable.
559
0fc8f115
AA
5602016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
561
562 * linux-record.c: Fix whitespace issues; tabify, remove trailing
563 spaces.
564
afdab916
AA
5652016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
566
567 * linux-record.c (record_linux_system_call): Add missing return
568 statements to handling of pipe and pipe2 syscalls.
569
bfeeb14b
DE
5702016-03-16 Doug Evans <dje@google.com>
571
572 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
573
6b94a855
YQ
5742016-03-16 Yao Qi <yao.qi@linaro.org>
575
576 * arm-linux-tdep.c (arm_linux_init_abi): Fix
577 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
578 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
579 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
580 arm_linux_record_tdep.arg7.
581
1cafadb4
DB
5822016-03-15 Keith Seitz <keiths@redhat.com>
583
584 PR breakpoints/18303
585 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
586 look for "::" instead of simply ":".
587 (cp_search_static_and_baseclasses): Return null_block_symbol for
588 malformed input.
589 Remove assertions.
590 * cp-support.c (cp_find_first_component_aux): Do not return
591 a prefix length for ':' unless the next character is also ':'.
592
89c200ed
DE
5932016-03-15 Doug Evans <dje@google.com>
594
595 * features/aarch64-core.xml (cpsr_flags): New flags type.
596 (cpsr): Use it.
597 * features/aarch64.c: Regenerate.
598
49b7ae7b
DE
5992016-03-15 Doug Evans <dje@google.com>
600
601 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
602 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
603 * features/i386/64bit-core.xml (i386_eflags): Ditto.
604 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
605 * features/i386/x32-core.xml (i386_eflags): Ditto.
606
81516450 6072016-03-15 Doug Evans <dje@google.com>
79427bd2 608 Wei-cheng Wang <cole945@gmail.com>
81516450
DE
609
610 Extend flags to support multibit and enum bitfields.
79427bd2 611 * NEWS: Document new features.
81516450
DE
612 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
613 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
614 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
615 (append_flags_type_field): New function.
616 (append_flags_type_flag): Call it.
617 * gdbtypes.h (append_flags_type_field): Declare.
618 * target-descriptions.c (struct tdesc_type_flag): Delete.
619 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
620 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
621 (struct tdesc_type) <u.f>: Delete.
622 (tdesc_predefined_types): Add "bool".
623 (tdesc_predefined_type): New function.
624 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
625 Update TDESC_TYPE_FLAGS support.
626 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
627 (tdesc_create_flags): Update.
628 (tdesc_create_enum): New function.
629 (tdesc_add_field): Initialize start,end to -1.
630 (tdesc_add_typed_bitfield): New function.
631 (tdesc_add_bitfield): Call it.
632 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
633 (tdesc_add_enum_value): New function.
634 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
635 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
636 * target-descriptions.h (tdesc_create_enum): Declare.
637 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
638 * valprint.c (generic_val_print_enum_1): New function.
639 (generic_val_print_enum): Call it.
640 (val_print_type_code_flags): Make static. Handle multibit bitfields
641 and enum bitfields.
642 * valprint.h (val_print_type_code_flags): Delete.
643 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
644 Delete. All uses removed.
645 (tdesc_start_enum): New function.
646 (tdesc_start_field): Handle multibit and enum bitfields.
647 (tdesc_start_enum_value): New function.
648 (enum_value_attributes, enum_children, enum_attributes): New static
649 globals.
650 (feature_children): Add "enum".
651 * features/gdb-target.dtd (enum, evalue): New elements.
652
54157a25
DE
6532016-03-15 Doug Evans <dje@google.com>
654
655 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
656 from LONGEST to int.
657 (struct tdesc_type) <u.f.size>: Ditto.
658 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
659 to int. Add assertion size > 0.
660 (tdesc_create_flags): Ditto.
661 * target-descriptions.h (tdesc_set_struct_size): Update.
662 (tdesc_create_flags): Update.
663 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
664 (MAX_VECTOR_SIZE): New macro.
665 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
666 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
667
73b4f516
DE
6682016-03-15 Doug Evans <dje@google.com>
669
670 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
671 TYPE_CODE_FLAGS instead of "field_type", for consistency.
672 * features/i386/amd64-avx-linux.c: Regenerate.
673 * features/i386/amd64-avx.c: Regenerate.
674 * features/i386/amd64-avx512-linux.c: Regenerate.
675 * features/i386/amd64-avx512.c: Regenerate.
676 * features/i386/amd64-linux.c: Regenerate.
677 * features/i386/amd64-mpx-linux.c: Regenerate.
678 * features/i386/amd64-mpx.c: Regenerate.
679 * features/i386/amd64.c: Regenerate.
680 * features/i386/i386-avx-linux.c: Regenerate.
681 * features/i386/i386-avx.c: Regenerate.
682 * features/i386/i386-avx512-linux.c: Regenerate.
683 * features/i386/i386-avx512.c: Regenerate.
684 * features/i386/i386-linux.c: Regenerate.
685 * features/i386/i386-mmx-linux.c: Regenerate.
686 * features/i386/i386-mmx.c: Regenerate.
687 * features/i386/i386-mpx-linux.c: Regenerate.
688 * features/i386/i386-mpx.c: Regenerate.
689 * features/i386/i386.c: Regenerate.
690 * features/i386/x32-avx-linux.c: Regenerate.
691 * features/i386/x32-avx.c: Regenerate.
692 * features/i386/x32-avx512-linux.c: Regenerate.
693 * features/i386/x32-avx512.c: Regenerate.
694 * features/i386/x32-linux.c: Regenerate.
695 * features/i386/x32.c: Regenerate.
696
1eb2dbb8
PA
6972016-03-15 Pedro Alves <palves@redhat.com>
698
699 PR gdb/19676
700 * linux-thread-db.c (try_thread_db_load_1): Leave
701 info->td_ta_thr_iter_p NULL iff debugging a live process and we
702 have /proc access.
703 (find_new_threads_once): Assert that we have a non-NULL
704 info->td_ta_thr_iter_p instead of checking whether the target has
705 execution.
706
16b41842
PA
7072016-03-15 Pedro Alves <palves@redhat.com>
708
709 PR gdb/19676
710 * infrun.c (displaced_step_prepare): Also disable displaced
711 stepping on NOT_SUPPORTED_ERROR.
712 * linux-tdep.c (linux_displaced_step_location): If reading auxv
713 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
714
70104a90
MK
7152016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
716
717 * s390-linux-tdep.c (s390_gen_return_address): New function.
718 (s390_gdbarch_init): Fill gen_return_address hook.
719
f2403c39
AB
7202016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * symmisc.c (maintenance_info_line_tables): New function.
723 (maintenance_print_one_line_table): New function.
724 (_initialize_symmisc): Register 'maint info line-table' command.
725 * NEWS: Mention new command.
726
c4b3e547
MK
7272016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
728
729 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
730 (s390_ax_pseudo_register_push_stack): New function.
731 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
732 ax_pseudo_register_push_stack hooks.
733
f2f3ccb9
SM
7342016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
737 gdb/function/as_string.py.
738 * python/lib/gdb/function/as_string.py: New file.
739 * NEWS: Mention the new $_as_string function.
740
2343b78a
JM
7412016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
742
743 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
744
b69d38af
PA
7452016-03-09 Pedro Alves <palves@redhat.com>
746
747 * event-top.c (more_to_come): Delete.
748 (struct readline_input_state): Delete.
749 (readline_input_state): Delete.
750 (get_command_line_buffer): New function.
751 (command_handler): Update comments. Don't handle NULL commands
752 here. Do not execute commented lines.
753 (command_line_append_input_line): New function.
754 (handle_line_of_input): New function, partly based on
755 command_line_handler and command_line_input.
756 (command_line_handler): Rewrite.
757 * event-top.h (command_handler): New declaration.
758 (command_loop): Defer command execution to command_handler.
759 (command_line_input): Update comments. Simplify, using struct
760 buffer and handle_line_of_input.
761 * top.h (struct buffer): New forward declaration.
762 (handle_line_of_input): New declaration.
763
2669cade
PA
7642016-03-09 Pedro Alves <palves@redhat.com>
765
766 * event-top.c (command_line_handler): Use xfree + xstrdup instead
767 of xrealloc + strcpy.
768 * main.c (captured_main): Use xstrdup instead of xmalloc plus
769 manual clear.
770 * top.c (saved_command_line): Rewrite comment.
771 (saved_command_line_size): Delete.
772 (command_line_input): Use xfree + xstrdup instead of xrealloc +
773 strcpy.
774 * top.h (saved_command_line_size): Delete declaration.
775
187212b3
PA
7762016-03-09 Pedro Alves <palves@redhat.com>
777
778 * event-top.c: Include buffer.h.
779 (gdb_readline_no_editing_callback): Use struct buffer instead
780 of xrealloc.
781
7a3bde34
PA
7822016-03-09 Pedro Alves <palves@redhat.com>
783
784 * common/buffer.h (buffer_grow_char): New function.
785 * top.c: Include buffer.h.
786 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
787 'prompt'. Use struct buffer instead of xrealloc.
788
c5c136ea
PA
7892016-03-09 Pedro Alves <palves@redhat.com>
790
791 * defs.h (gdb_readline): Delete declaration.
792 * top.c (gdb_readline): Rename to ...
793 (gdb_readline_no_editing): ... this, and make static.
794
720d2e96
PA
7952016-03-09 Pedro Alves <palves@redhat.com>
796
797 * utils.c (prompt_for_continue): Update comments.
798
608ff013
PA
7992016-03-09 Pedro Alves <palves@redhat.com>
800
801 * event-top.c (async_annotation_suffix): Delete.
802 (top_level_prompt, command_line_handler): Don't use
803 'async_annotation_suffix' and simplify.
804 * event-top.h (async_annotation_suffix): Delete declaration.
805 (init_main): Remove reference to 'async_annotation_suffix'.
806
c70061cf
PA
8072016-03-09 Pedro Alves <palves@redhat.com>
808
809 * event-top.c (gdb_readline2): Rename to ...
810 (gdb_readline_no_editing_callback): ... this.
811 (change_line_handler, stdin_event_handler)
812 (gdb_setup_readline): Adjust.
813 * event-top.h (gdb_readline2): Rename to ...
814 (gdb_readline_no_editing_callback): ... this, and move closer to
815 other readline-related declarations.
816 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
817
8a243832
PA
8182016-03-09 Pedro Alves <palves@redhat.com>
819
820 * top.c (window_hook): Delete.
821 (command_loop): Remove references to window_hook.
822
cc2c4da8
MK
8232016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
824
825 * corefile.c (safe_read_memory_unsigned_integer): New function.
826 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
827 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
828
a67914de
MK
8292016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
830
831 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
832 (rs6000_gen_return_address): New function.
833 (rs6000_gdbarch_init): Wire in the above.
834
2a2fa07b
MK
8352016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
836
837 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
838 (rs6000_gdbarch_init): Wire in the above.
839
bc0e3f49
AA
8402016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
841
842 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
843 instructions that do nothing or are conditional traps.
844
6d53bec8
AA
8452016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
846
847 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
848 frame func's PC in info->func before any other failure can occur.
849 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
850 info->func has been filled out.
851
f7990f16
PA
8522016-03-09 Pedro Alves <palves@redhat.com>
853
854 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
855
087ccc6a
PA
8562016-03-09 Pedro Alves <palves@redhat.com>
857
858 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
859
114d7832
PA
8602016-03-09 Pedro Alves <palves@redhat.com>
861
862 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
863 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
864
d7a87b5e
PA
8652016-03-09 Pedro Alves <palves@redhat.com>
866
867 * doublest.c: Extend comments.
868 (floatformat_to_doublest, floatformat_from_doublest): Copy the
869 floatformat's total size, not the host type's size.
870
b79497cb
PA
8712016-03-09 Pedro Alves <palves@redhat.com>
872
873 * doublest.c (floatformat_totalsize_bytes): New function.
874 (floatformat_from_type): Assert that the type's length is at least
875 as long as the floatformat's totalsize.
876 * doublest.h (floatformat_totalsize_bytes): New declaration.
877 * gdbtypes.c (arch_float_type): Assert that the type's length is
878 at least as long as the floatformat's totalsize.
879
aacca8a7
PA
8802016-03-09 Pedro Alves <palves@redhat.com>
881
882 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
883 format to floatformats_ieee_double.
884
e6c2f47b
PA
8852016-03-07 Pedro Alves <palves@redhat.com>
886
887 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
888 before calling bfd_get_flavour.
889
cb86f388
DC
8902016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
891
892 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
893 (avr_push_dummy_call): Correct last needed argument register.
894 Write MSB of argument into register and subsequent bytes into
895 other registers in decreasing order.
896
f1771dce
YQ
8972016-03-04 Yao Qi <yao.qi@linaro.org>
898
899 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
900 condition check. Record the right D register number.
901
ca92db2d
YQ
9022016-03-04 Yao Qi <yao.qi@linaro.org>
903
904 * arm-tdep.c (arm_record_extension_space): Remove code
905 printing "Process record does not support".
906 (arm_record_data_proc_misc_ld_str): Likewise.
907 (decode_insn): Call arm_record_extension_space if condition
908 is 0xf. Call arm_record_unsupported_insn if ret isn't
909 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
910 the value of thumb2_record_decode_insn_handler.
911
73519cce
SM
9122016-03-04 Simon Marchi <simon.marchi@ericsson.com>
913
914 * features/feature_to_c.sh: Print the help when passing no
915 argument.
916
650beae3
BH
9172016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
918
919 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
920
28586665
BH
9212016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
922
923 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
924
f2489477
AA
9252016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
926
927 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
928 exception when attempting to access the inferior's backchain.
929
d5219069
YQ
9302016-02-29 Yao Qi <yao.qi@linaro.org>
931
932 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
933 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
934 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
935 for aarch64_sys_epoll_create1.
936
253b4d3a
YQ
9372016-02-29 Yao Qi <yao.qi@linaro.org>
938
939 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
940 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
941 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
942 * linux-record.c (record_linux_system_call): Handle them.
943
38899f16
IB
9442016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
945
946 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
947 cyclic imports.
948
1ed0c2a4
KS
9492016-02-26 Keith Seitz <keiths@redhat.com>
950
951 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
952 to avoid invalid conversion from void *.
953
9fde51ed
YQ
9542016-02-26 Yao Qi <yao.qi@linaro.org>
955
956 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
957 per bit 8. Check bit 20 instead of bit 4 for VMOV
958 instruction. Record D registers for instructions changing
959 S registers. Change of the order of length and address
960 in record_buf_mem array.
961
1f33efec
YQ
9622016-02-26 Yao Qi <yao.qi@linaro.org>
963
964 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
965 number of Rd.
966
1547ef64
DE
9672016-02-25 Doug Evans <dje@google.com>
968
969 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
970 compiler warning.
971 (recv_long_data): Ditto.
972
166616ce
SM
9732016-02-25 Simon Marchi <simon.marchi@ericsson.com>
974
975 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
976 Initialize variables.
977
1eb7c2d8
AT
9782016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
979
980 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
981 (ax_reg_mask): Likewise.
982
e7ad2f14
PA
9832016-02-24 Pedro Alves <palves@redhat.com>
984
985 * linux-nat.c (save_sigtrap) Delete.
986 (stop_wait_callback): Call save_stop_reason instead of
987 save_sigtrap.
988 (check_stopped_by_breakpoint): Rename to ...
989 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
990 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
991 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
992 common code between the USE_SIGTRAP_SIGINFO and
993 !USE_SIGTRAP_SIGINFO blocks.
994 (linux_nat_filter_event): Call save_stop_reason instead of
995 save_sigtrap.
996 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
997 si_code for MIPS.
998 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
999 comments on MIPS behavior.
1000 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
1001
338435ef
MK
10022016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
1003
1004 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
1005 to avoid spurious warnings.
1006
bf74e428
GB
10072016-02-24 Gary Benson <gbenson@redhat.com>
1008
1009 * exec.c (exec_file_locate_attach): Do not attempt to
1010 locate main executable locally if not found in sysroot.
1011
62fb310b
JB
10122016-02-24 Joel Brobecker <brobecker@adacore.com>
1013
1014 GDB 7.11 released.
1015
50ae56ec
WW
10162016-02-24 Wei-cheng Wang <cole945@gmail.com>
1017
1018 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
1019 unavailable PC/SP to build unavailable frame.
1020
cce0e923
DE
10212016-02-23 Doug Evans <dje@google.com>
1022
1023 Extend "skip" command to support -file, -gfile, -function, -rfunction.
1024 * NEWS: Document new features.
1025 * skip.c: #include "fnmatch.h", "gdb_regex.h".
1026 (skiplist_entry) <file>: Renamed from filename.
1027 <function>: Renamed from function_name.
1028 <file_is_glob, function_is_regexp>: New members.
1029 <compiled_function_regexp, compiled_function_regexp_is_valid>:
1030 New members.
1031 (make_skip_entry): New function.
1032 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
1033 (make_free_skiplist_entry_cleanup): New function.
1034 (skip_file_command): Update.
1035 (skip_function, skip_function_command): Update.
1036 (compile_skip_regexp): New functions.
1037 (skip_command): Add support for new options.
1038 (skip_info): Update.
1039 (skip_file_p, skip_gfile_p): New functions.
1040 (skip_function_p, skip_rfunction_p): New functions.
1041 (function_name_is_marked_for_skip): Update and simplify.
1042 (_initialize_step_skip): Update.
1043 * symtab.c: #include "fnmatch.h".
1044 (compare_glob_filenames_for_search): New function.
1045 * symtab.h (compare_glob_filenames_for_search): Declare.
1046 * utils.c (count_path_elements): New function.
1047 (strip_leading_path_elements): New function.
1048 * utils.h (count_path_elements): Declare.
1049 (strip_leading_path_elements): Declare.
1050
12545665
SM
10512016-02-23 Simon Marchi <simon.marchi@ericsson.com>
1052
1053 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
1054 (thumb_process_displaced_insn): Likewise.
1055 (arm_process_displaced_insn): Adjust calls.
1056
c955ae73
YQ
10572016-02-23 Yao Qi <yao.qi@linaro.org>
1058
1059 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
1060 Remove.
1061 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
1062 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
1063 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
1064 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
1065 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
1066 <aarch64_sys_faccessat>: New.
1067 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
1068 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
1069 <aarch64_sys_newfstatat>: New.
1070 (UNSUPPORTED_SYSCALL_MAP): New macro.
1071 (aarch64_canonicalize_syscall): Add missing syscalls.
1072
ac46107c
JK
10732016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1074
1075 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
1076
01e57735
YQ
10772016-02-22 Yao Qi <yao.qi@linaro.org>
1078
1079 * arm-tdep.c: Fix code format issues.
1080
30a6a7f0
IB
10812016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
1082
1083 * d-namespace.c (d_lookup_symbol_imports): Remove argument
1084 'search_parents'. All callers updated.
1085
f79a3bae
MK
10862016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
1087
1088 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
1089 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
1090
012b3a21
WT
10912016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
1092
1093 * NEWS: Add entry for bound violation.
1094 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
1095 Add handler for segmentation fault.
1096 * gdbarch.sh (handle_segmentation_fault): New.
1097 * gdbarch.c: Regenerate.
1098 * gdbarch.h: Regenerate.
1099 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
1100 (SIG_CODE_BONDARY_FAULT): New define.
1101 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
1102 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
1103 * i386-tdep.c (i386_mpx_enabled): Add as external.
1104 * i386-tdep.c (i386_mpx_enabled): Add as external.
1105 * infrun.c (handle_segmentation_fault): New function.
1106 (print_signal_received_reason): Use handle_segmentation_fault.
1107
5f034a78
MK
11082016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
1109
1110 * arch-utils.c (default_guess_tracepoint_registers): New function.
1111 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
1112 * gdbarch.c: Regenerate.
1113 * gdbarch.h: Regenerate.
1114 * gdbarch.sh: Add guess_tracepoint_registers hook.
1115 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
1116
88178e82
GB
11172016-02-17 Gary Benson <gbenson@redhat.com>
1118
1119 * exec.c (exec_file_locate_attach): Add missing cleanup.
1120
4041ed77
DB
11212016-02-16 Don Breazeal <donb@codesourcery.com>
1122
1123 PR remote/19496
1124 * remote.c (remove_new_fork_children): Check for pending
1125 fork status in thread_info.suspend.
1126
b442c911
YQ
11272016-02-16 Yao Qi <yao.qi@linaro.org>
1128
1129 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
1130 'old_chain' later.
1131
553cb527
YQ
11322016-02-16 Yao Qi <yao.qi@linaro.org>
1133
1134 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
1135 <syscall_next_pc>: Remove argument PC. Callers updated.
1136 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1137 Remove argument PC. Get pc from regcache_read_pc.
1138 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
1139 argument PC.
1140
0a0da556
YQ
11412016-02-15 Yao Qi <yao.qi@linaro.org>
1142
1143 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
1144
01113bc1
YQ
11452016-02-12 Yao Qi <yao.qi@linaro.org>
1146
1147 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
1148 nextpc according to instruction.
1149
ed443b61
YQ
11502016-02-12 Yao Qi <yao.qi@linaro.org>
1151
1152 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
1153 self->ops->fixup if it isn't NULL.
1154 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
1155 (struct arm_get_next_pcs_ops) <fixup>: New field.
1156 * arch/arm-linux.c: Include common-regcache.h and
1157 arch/arm-get-next-pcs.h.
1158 (arm_linux_get_next_pcs_fixup): New function.
1159 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
1160 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
1161 it with arm_linux_get_next_pcs_fixup.
1162 (arm_linux_software_single_step): Move code to
1163 arm_linux_get_next_pcs_fixup.
1164 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
1165
d21b5f15
MK
11662016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
1167
1168 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
1169 and return NULL.
1170
33b4777c
MM
11712016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1172
1173 * frame.h (skip_tailcall_frames): Update comment.
1174 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
1175 if only artificial frames are found. Update comment.
1176 (frame_unwind_caller_id): Handle NULL return.
1177 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
1178 skip_artificial_frames does not return NULL.
1179 (frame_pop): Add an error if only tailcall frames are found.
1180 * infcmd.c (finish_command): Move skip_tailcall_frames call into
1181 forward-execution case. Add an error if only tailcall frames are
1182 found.
1183
a038fa3e
MM
11842016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1185
1186 * stack.c (frame_info): Check frame_unwind_caller_id.
1187
2f3ef606
MM
11882016-02-12 Markus Metzger <markus.t.metzger@intel.com>
1189
1190 * frame.h (skip_tailcall_frames): New.
1191 * frame.c (skip_tailcall_frames): New.
1192 (frame_pop): Call skip_tailcall_frames.
1193 * infcmd.c (finish_command): Call skip_tailcall_frames.
1194
e352bf0a
PA
11952016-02-11 Pedro Alves <palves@redhat.com>
1196
1197 * Makefile.in (check-parallel): New rule.
1198
bec2ab5a
SM
11992016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1200
1201 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
1202 (arm_analyze_prologue): Likewise.
1203 (arm_scan_prologue): Likewise.
1204 (arm_m_exception_prev_register): Likewise.
1205 (arm_copy_block_xfer): Likewise.
1206 (thumb2_copy_block_xfer): Likewise.
1207 (arm_decode_miscellaneous): Likewise.
1208 (arm_decode_ld_st_word_ubyte): Likewise.
1209 (arm_decode_svc_copro): Likewise.
1210 (thumb2_decode_svc_copro): Likewise.
1211 (thumb_copy_16bit_ldr_literal): Likewise.
1212 (thumb_copy_pop_pc_16bit): Likewise.
1213 (decode_thumb_32bit_ld_mem_hints): Likewise.
1214 (arm_show_force_mode): Likewise.
1215 (_initialize_arm_tdep): Likewise.
1216 (arm_record_strx): Likewise.
1217 (arm_record_extension_space): Likewise.
1218 (arm_record_data_proc_misc_ld_str): Likewise.
1219 (arm_record_exreg_ld_st_insn): Likewise.
1220 (arm_record_vfp_data_proc_insn): Likewise.
1221 (arm_record_coproc_data_proc): Likewise.
1222 (thumb_record_misc): Likewise.
1223 (thumb_record_ldm_stm_swi): Likewise.
1224 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
1225 (thumb2_record_ld_mem_hints): Likewise.
1226 (thumb2_record_lmul_lmla_div): Likewise.
1227 (thumb2_record_asimd_struct_ld_st): Likewise.
1228 (arm_process_record): Likewise.
1229
2ba163c8
SM
12302016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1231
1232 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
1233 (ARM displaced stepping support): Remove reference to
1234 arm_displaced_step_copy_insn in comment.
1235 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
1236 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
1237 reference to arm_displaced_step_copy_insn in comment.
1238
615234c1
SM
12392016-02-11 Simon Marchi <simon.marchi@ericsson.com>
1240
1241 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
1242 (thumb_copy_b): Likewise.
1243 (arm_decode_b_bl_ldmstm): Likewise.
1244 (thumb_copy_16bit_ldr_literal): Likewise.
1245 (thumb_copy_pop_pc_16bit): Likewise.
1246
82e9becd
AT
12472016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
1248
1249 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
1250 than loc->gdbarch.
1251
5ac87a99
MK
12522016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1253
1254 * tracefile-tfile.c (trace_tdesc): New static variable.
1255 (tfile_open): Clear trace_tdesc, call target_find_description.
1256 (tfile_interp_line): Recognize tdesc lines.
1257 (tfile_close): Clear trace_tdesc.
1258 (tfile_xfer_partial_features): New function.
1259 (tfile_xfer_partial): Call tfile_xfer_partial_features.
1260 (tfile_append_tdesc_line): New function.
1261
18d3cec5
MK
12622016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1263
1264 * ctf.c (ctf_write_tdesc): New function.
1265 (ctf_write_ops): Wire in ctf_write_tdesc.
1266 * tracefile-tfile.c (tfile_write_tdesc): New function.
1267 (tfile_write_ops): Wire in tfile_write_tdesc.
1268 * tracefile.c (trace_save): Call write_tdesc method.
1269 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
1270 * xml-tdesc.c (target_fetch_description_xml): New function.
1271 * xml-tdesc.h: Add target_fetch_description_xml prototype.
1272
550dc4e2
SM
12732016-02-10 Simon Marchi <simon.marchi@ericsson.com>
1274
1275 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
1276 (arm_decode_dp_misc): Likewise.
1277
62e5fd57
MK
12782016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1279
1280 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
1281 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
1282 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
1283 misleading comment.
1284 (i386_pseudo_register_write): Ditto.
1285 (i386_ax_pseudo_register_collect): New function.
1286 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
1287 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
1288
e909d859
MK
12892016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1290
1291 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
1292 instead of gdb order.
1293
473b99e5
MK
12942016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
1295
1296 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
1297 check.
1298
1233c0ba
JB
12992016-02-10 Joel Brobecker <brobecker@adacore.com>
1300
1301 * NEWS: Create a new section for the next release branch.
1302 Rename the section of the current branch, now that it has
1303 been cut.
1304
d1dc0942
JB
13052016-02-10 Joel Brobecker <brobecker@adacore.com>
1306
1307 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
1308 * version.in: Bump version to 7.11.50.DATE-git.
1309
9ef9e6a6
KS
13102016-02-09 Keith Seitz <keiths@redhat.com>
1311
1312 PR breakpoints/19546
1313 * breakpoint.c (breakpoint_event_location_empty_p): New function.
1314 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
1315 instead of event_location_empty_p.
1316
39a67dc4
KS
13172016-02-09 Keith Seitz <keiths@redhat.com>
1318
1319 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
1320 string_to_event_location_basic instead of string_to_event_location.
1321
a96e36da
KS
13222016-02-09 Keith Seitz <keiths@redhat.com>
1323
1324 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
1325 leading whitespace and use string_to_event_location_basic instead
1326 of new_linespec_location.
1327
9f61929f
KS
13282016-02-09 Keith Seitz <keiths@redhat.com>
1329
1330 PR python/19506
1331 * python/py-breakpoint.c (bppy_init): Use
1332 string_to_event_location_basic instead of new_linespec_location.
1333
eeb1af43
KS
13342016-02-09 Keith Seitz <keiths@redhat.com>
1335
1336 * location.c (string_to_explicit_location): Note that "-p" is
1337 reserved for probe locations and return NULL for any input
1338 that starts with that.
1339 (string_to_event_location): Move "legacy" linespec code to ...
1340 (string_to_event_location_basic): ... here.
1341 * location.h (string_to_event_location): Update comment.
1342 (string_to_event_location_basic): New function.
1343
1e94266c
SM
13442016-02-09 Simon Marchi <simon.marchi@ericsson.com>
1345
1346 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
1347 to AC_OUTPUT. Remove "exit 0" at the end.
1348 * configure: Regenerate.
1349
2a7f3dff
PA
13502016-02-09 Pedro Alves <palves@redhat.com>
1351
1352 PR breakpoints/19548
1353 * breakpoint.c (create_overlay_event_breakpoint): Don't update
1354 global location list here.
1355 (create_longjmp_master_breakpoint)
1356 (create_std_terminate_master_breakpoint)
1357 (create_exception_master_breakpoint, create_jit_event_breakpoint)
1358 (update_breakpoint_locations):
1359 (breakpoint_re_set): Update global location list after all
1360 breakpoints are re-set.
1361
54887903
SM
13622016-02-08 Simon Marchi <simon.marchi@ericsson.com>
1363
1364 * remote.c (remote_register_number_and_offset): Remove unused
1365 variable(s).
1366 (remote_thread_always_alive): Likewise.
1367 (remote_update_thread_list): Likewise.
1368 (process_initial_stop_replies): Likewise.
1369 (remote_start_remote): Likewise.
1370 (remote_check_symbols): Likewise.
1371 (discard_pending_stop_replies): Likewise.
1372 (process_stop_reply): Likewise.
1373 (putpkt_binary): Likewise.
1374 (getpkt): Likewise.
1375 (remote_add_target_side_condition): Likewise.
1376 (remote_insert_breakpoint): Likewise.
1377 (remote_supports_stopped_by_sw_breakpoint): Likewise.
1378 (remote_supports_stopped_by_hw_breakpoint): Likewise.
1379 (remote_xfer_partial): Likewise.
1380 (remote_read_btrace): Likewise.
1381 (remote_async_serial_handler): Likewise.
1382 (remote_thread_events): Likewise.
1383 (_initialize_remote): Likewise.
1384
30914ca8
SM
13852016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * varobj.h (varobj_delete): Remove dellist parameter, update and
1388 move documentation here.
1389 * varobj.c (struct cpstack, cppush, cppop): Remove.
1390 (delete_variable): Remove resultp (first) parameter.
1391 (delete_variable_1): Likewise.
1392 (varobj_delete): Remove dellist parameter and unused code.
1393 (update_dynamic_varobj_children): Adjust varobj_delete call.
1394 (update_type_if_necessary): Likewise.
1395 (varobj_set_visualizer): Likewise.
1396 (varobj_update): Likewise.
1397 (value_of_root): Likewise.
1398 (varobj_invalidate_iter): Likewise.
1399 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
1400
e42e5352
YQ
14012016-02-04 Yao Qi <yao.qi@linaro.org>
1402
1403 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
1404 0 before handling 'F' and set it back afterwards.
1405
6456a18b
SM
14062016-02-02 Simon Marchi <simon.marchi@ericsson.com>
1407
1408 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
1409
3f2f6cb5
WT
14102016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1411
1412 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
1413 New types.
1414 (compat_siginfo): New bound fields added.
1415 (compat_x32_siginfo): New field added.
1416 (cpt_si_addr_lsb): New define.
1417 (compat_siginfo_from_siginfo): Use nat_siginfo.
1418 (siginfo_from_compat_siginfo): Use nat_siginfo.
1419 (compat_x32_siginfo_from_siginfo): Likewise.
1420 (siginfo_from_compat_x32_siginfo): Likewise.
1421
96b5c49f
WT
14222016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1423
1424 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
1425 structure to the siginfo if extra_fields contains
1426 LINUX_SIGINFO_FIELD_ADDR_BND.
1427
190b495d
WT
14282016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1429
1430 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
1431 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
1432 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
1433 function.
1434 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
1435 x86_linux_get_siginfo_type for the amd64 abi.
1436 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
1437 function.
1438 (i386_linux_init_abi): Add new function at the i386 ABI
1439 initialization.
1440
43564574
WT
14412016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1442
1443 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
1444 (linux_siginfo_extra_fields): New enum type.
1445 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
1446 (linux_get_siginfo_type): Use new function.
1447
93813b37
WT
14482016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
1449
1450 * nat/amd64-linux-siginfo.c: New file.
1451 * nat/amd64-linux-siginfo.h: New file.
1452 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
1453 (amd64-linux-siginfo.o): New rule.
1454 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
1455 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
1456 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1457 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
1458 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
1459 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
1460 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
1461 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
1462
5fdf6324
AB
14632016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * value.c (max_value_size): New variable.
1466 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
1467 (set_max_value_size): New function.
1468 (show_max_value_size): New function.
1469 (check_type_length_before_alloc): New function.
1470 (allocate_value_contents): Call check_type_length_before_alloc.
1471 (set_value_enclosing_type): Likewise.
1472 (_initialize_values): Add set/show handler for max-value-size.
1473 * NEWS: Mention new set/show command.
1474
5fa13070
SM
14752016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 * varobj.h (struct varobj): Fix typos in comments.
1478 (struct lang_varobj_ops): Likewise.
1479 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
1480 (varobj_create): Move misplaced comment.
1481
a2e3e93f
SM
14822016-01-29 Simon Marchi <simon.marchi@ericsson.com>
1483
1484 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
1485 to for include additional lines.
1486 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
1487
56e374a6
SM
14882016-01-28 Simon Marchi <simon.marchi@ericsson.com>
1489
1490 * gnulib/import/Makefile.am: Regenerate.
1491 * gnulib/import/Makefile.in: Regenerate.
1492 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1493 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
1494
8424cc97
SM
14952016-01-28 Simon Marchi <simon.marchi@ericsson.com>
1496
1497 * remote.c (skip_to_semicolon): Remove.
1498 (remote_parse_stop_reply): Use strchrnul instead of
1499 skip_to_semicolon.
1500 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1501 strchrnul.
1502 * gnulib/aclocal.m4: Regenerate.
1503 * gnulib/config.in: Regenerate.
1504 * gnulib/configure: Regenerate.
1505 * gnulib/import/Makefile.am: Regenerate.
1506 * gnulib/import/Makefile.in: Regenerate.
1507 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1508 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1509 * gnulib/import/m4/rawmemchr.m4: New file.
1510 * gnulib/import/m4/strchrnul.m4: New file.
1511 * gnulib/import/rawmemchr.c: New file.
1512 * gnulib/import/rawmemchr.valgrind: New file.
1513 * gnulib/import/strchrnul.c: New file.
1514 * gnulib/import/strchrnul.valgrind: New file.
1515
4a6a1ed4
YQ
15162016-01-28 Yao Qi <yao.qi@linaro.org>
1517
1518 * breakpoint.c (build_target_command_list): Don't call continue
1519 if aexpr is NULL.
1520 (build_target_condition_list): Likewise.
1521
94715c17
KB
15222016-01-27 Kevin Buettner <kevinb@redhat.com>
1523
1524 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
1525 bytes as aggregates.
1526
c07af0ab
JB
15272016-01-27 Joel Brobecker <brobecker@adacore.com>
1528
1529 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
1530 Linespec Maintainers.
1531
41548caa
SM
15322016-01-26 Simon Marchi <simon.marchi@ericsson.com>
1533
1534 * common/common-utils.c (skip_spaces): Fix comment.
1535 (skip_to_space_const): Likewise.
1536
4d18591b
YQ
15372016-01-25 Yao Qi <yao.qi@linaro.org>
1538
1539 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
1540 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
1541 (arm_deal_with_atomic_sequence_raw): Likewise.
1542 (thumb_get_next_pcs_raw): Likewise.
1543 (arm_get_next_pcs_raw): Likewise.
1544 (arm_get_next_pcs): Remove argument pc. Callers updated.
1545 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
1546
a579cd9a
MW
15472016-01-25 Mark Wielaard <mjw@redhat.com>
1548
1549 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
1550 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
1551 if statement.
1552 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
1553 statement block by introducing an else.
1554 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
1555 of return statements.
1556 (record_linux_msghdr): Likewise.
1557
a2077e25
PA
15582016-01-25 Pedro Alves <palves@redhat.com>
1559
1560 PR threads/19461
1561 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
1562 parent/child running states.
1563
1d2736d4
PA
15642016-01-25 Pedro Alves <palves@redhat.com>
1565
1566 PR gdb/19494
1567 * linux-nat.c (kill_one_lwp): New, factored out from ...
1568 (kill_callback): ... this.
1569 (kill_wait_callback): New, factored out from ...
1570 (kill_wait_one_lwp): ... this.
1571 (kill_unfollowed_fork_children): New function.
1572 (linux_nat_kill): Use it.
1573
b2bae2f7
JB
15742016-01-22 John Baldwin <jhb@FreeBSD.org>
1575
1576 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
1577
d86feca3
YQ
15782016-01-22 Yao Qi <yao.qi@linaro.org>
1579
1580 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
1581 instead of warning.
1582 (store_fpregs, fetch_regs, store_regs): Likewise.
1583 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
1584 (fetch_vfp_regs, store_vfp_regs): Likewise.
1585
b35a8b2f
DE
15862016-01-21 Doug Evans <dje@google.com>
1587
1588 * breakpoint.c (init_breakpoint_sal): Add comment.
1589
f906b857
MK
15902016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
1591
1592 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
1593
4a099de2
AB
15942016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * disasm.c (maybe_add_dis_line_entry): Rename to...
1597 (add_dis_line_entry): ...this, and update header comment.
1598 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
1599
a994041d
PA
16002016-01-21 Pedro Alves <palves@redhat.com>
1601
1602 * Makefile.in (COMPILER_CFLAGS): New.
1603 (CXXFLAGS): Get it from configure.
1604 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
1605 instead of CFLAGS.
1606 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
1607 COMPILER_CFLAGS.
1608 * configure: Regenerate.
1609
305e13e6
JB
16102016-01-21 Joel Brobecker <brobecker@adacore.com>
1611
1612 * location.h (new_address_location): Add new parameters
1613 "addr_string" and "addr_string_len".
1614 (get_address_string_location): Add declaration.
1615 * location.c (new_address_location): Add new parameters
1616 "addr_string" and "addr_string_len". If not NULL, store
1617 a copy of the addr_string in the new location as well.
1618 (get_address_string_location): New function.
1619 (string_to_event_location): Update call to new_address_location.
1620 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
1621 Save the event location in the parser's state before
1622 passing it to convert_address_location_to_sals.
1623 * breakpoint.c (create_thread_event_breakpoint): Update call
1624 to new_address_location.
1625 (init_breakpoint_sal): Get the event location's string, if any,
1626 and use it to update call to new_address_location.
1627 * python/py-finishbreakpoint.c (bpfinishpy_init):
1628 Update call to new_address_location.
1629 * spu-tdep.c (spu_catch_start): Likewise.
1630
1631 * config/djgpp/fnchange.lst: Add entries for
1632 gdb/testsuite/gdb.base/break-fun-addr1.c and
1633 gdb/testsuite/gdb.base/break-fun-addr2.c.
1634
f7a6a40d
YQ
16352016-01-21 Yao Qi <yao.qi@linaro.org>
1636
1637 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
1638 is_thumb and set it according to CPSR saved on the stack.
1639 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
1640 arm_linux_sigreturn_next_pc.
1641
5f5dfff6
SM
16422016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
1643
1644 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
1645 Fix enumerators sort key function.
1646
be56871e
JB
16472016-01-20 Joel Brobecker <brobecker@adacore.com>
1648
b12e5614 1649 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
1650 end of line to beginning of next line. Adjust formatting
1651 accordingly.
1652
f2feec98
JB
16532016-01-19 John Baldwin <jhb@FreeBSD.org>
1654
1655 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
1656 "len" with sysctl.
1657
20a0aab3
JB
16582016-01-19 John Baldwin <jhb@FreeBSD.org>
1659
1660 * fbsd-tdep.c (find_stop_signal): Remove.
1661 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
1662 <stop_signal>: New field.
1663 <abort_iteration>: New field.
1664 (fbsd_collect_regset_section_cb): Use new fields.
1665 (fbsd_collect_thread_registers): New function.
1666 (struct fbsd_corefile_thread_data): New structure.
1667 (fbsd_corefile_thread): New function.
1668 (fbsd_make_corefile_notes): Use new function to dump notes for each
1669 non-exited thread in a process.
1670
6e9567fe
JB
16712016-01-19 John Baldwin <jhb@FreeBSD.org>
1672
1673 * configure.ac: Check for support for LWP names on FreeBSD.
1674 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
1675 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
1676 (fbsd_fetch_kinfo_proc): Move function earlier.
1677 [PT_LWPINFO] (fbsd_thread_alive): New function.
1678 [PT_LWPINFO] (fbsd_pid_to_str): New function.
1679 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
1680 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
1681 [PT_LWPINFO] (fbsd_add_threads): New function.
1682 [PT_LWPINFO] (fbsd_update_thread_list): New function.
1683 [PT_LWPINFO] New variable super_resume.
1684 [PT_LWPINFO] (resume_one_thread_cb): New function.
1685 [PT_LWPINFO] (resume_all_threads_cb): New function.
1686 [PT_LWPINFO] (fbsd_resume): New function.
1687 (fbsd_remember_child): Save full ptid instead of plain pid.
1688 (fbsd_is_child_pending): Return ptid of saved child process.
1689 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
1690 first stop.
1691 [PT_LWP_EVENTS] Handle LWP events.
1692 [TDP_RFPPWAIT] Include LWP in child ptid.
1693 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
1694 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
1695 Add threads for existing processes.
1696 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
1697 "fbsd_thread_alive".
1698 Set "to_pid_to_str" to "fbsd_pid_to_str".
1699 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
1700 "fbsd_thread_name".
1701 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
1702 Set "to_has_thread_control" to "tc_schedlock".
1703 Set "to_resume" to "fbsd_resume".
1704 (_initialize_fbsd_nat): New function.
1705 * configure: Regenerate.
1706 * config.in: Regenerate.
1707
94309df7
JB
17082016-01-19 John Baldwin <jhb@FreeBSD.org>
1709
1710 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
1711 get_ptrace_pid.
1712 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
1713 (amd64bsd_dr_get): Use get_ptrace_pid.
1714 (amd64bsd_dr_set): Use get_ptrace_pid.
1715 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
1716 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
1717 (i386bsd_dr_get): Use get_ptrace_pid.
1718 (i386bsd_dr_set): Use get_ptrace_pid.
1719 * inf-ptrace.c (get_ptrace_pid): Export.
1720 * inf-ptrace.h (get_ptrace_pid): Declare.
1721 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
1722 (ppcfbsd_store_inferior_registers): Use lwp id.
1723
79117428
JB
17242016-01-19 John Baldwin <jhb@FreeBSD.org>
1725
1726 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
1727 (fbsd_core_thread_name): New function.
1728 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
1729 Add "core_thread_name" gdbarch method.
1730
4dfc5dbc
JB
17312016-01-19 John Baldwin <jhb@FreeBSD.org>
1732
1733 * corelow.c (core_thread_name): New function.
1734 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
1735 target op.
1736 * gdbarch.sh (core_thread_name): New gdbarch callback.
1737 * gdbarch.h: Re-generate.
1738 * gdbarch.c: Re-generate.
1739
10e3ed90
SM
17402016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
1741
1742 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
1743 convert gdb.Value to integer type using int().
1744
a6e69c1f
JB
17452016-01-19 John Baldwin <jhb@FreeBSD.org>
1746
1747 * configure.ac: Include <sys/types.h when checking for "r_fs" in
1748 "struct reg".
1749 * configure: Regenerate.
1750
37e42b4f
PA
17512016-01-19 Pedro Alves <palves@redhat.com>
1752
1753 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
1754 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
1755 current program space down to linespec decoding and breakpoint
1756 location updating.
1757 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
1758 decode_line_full.
1759 (until_break_command): Adjust calls to decode_line_1.
1760 (base_breakpoint_decode_location, bkpt_decode_location): Add
1761 'search_pspace' parameter. Pass it along.
1762 (bkpt_probe_create_sals_from_location): Adjust calls to
1763 parse_probes.
1764 (tracepoint_decode_location, tracepoint_probe_decode_location)
1765 (strace_marker_decode_location): Add 'search_pspace' parameter.
1766 Pass it along.
1767 (all_locations_are_pending): Rewrite to take a breakpoint and
1768 program space as arguments instead.
1769 (hoist_existing_locations): New function.
1770 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
1771 hoist_existing_locations instead of always removing all locations,
1772 and adjust to all_locations_are_pending change.
1773 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
1774 Don't disable the breakpoint if there are other locations in
1775 another program space.
1776 (breakpoint_re_set_default): Adjust to pass down the current
1777 program space as filter program space.
1778 (decode_location_default): Add 'search_pspace' parameter and pass
1779 it along.
1780 (prepare_re_set_context): Don't switch program space here.
1781 (breakpoint_re_set): Use save_current_space_and_thread instead of
1782 save_current_program_space.
1783 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
1784 'search_pspace' parameter.
1785 (update_breakpoint_locations): Add 'filter_pspace' parameter.
1786 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
1787 decode_line_1.
1788 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
1789 program space as filter program space.
1790 * linespec.c (struct linespec_state) <search_pspace>: New field.
1791 (create_sals_line_offset, convert_explicit_location_to_sals)
1792 (parse_linespec): Pass the search program space down.
1793 (linespec_state_constructor): Add 'search_pspace' parameter.
1794 Store it.
1795 (linespec_parser_new): Add 'search_pspace' parameter and pass it
1796 along.
1797 (linespec_lex_to_end): Adjust.
1798 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
1799 and pass it along.
1800 (decode_line_with_last_displayed): Adjust.
1801 (collect_symtabs_from_filename, symtabs_from_filename): New
1802 'search_pspace' parameter. Use it.
1803 (find_function_symbols): Pass the search program space down.
1804 * linespec.h (decode_line_1, decode_line_full): Add
1805 'search_pspace' parameter.
1806 * probe.c (parse_probes_in_pspace): New function, factored out
1807 from ...
1808 (parse_probes): ... this. Add 'search_pspace' parameter and use
1809 it.
1810 * probe.h (parse_probes): Add pspace' parameter.
1811 * python/python.c (gdbpy_decode_line): Adjust.
1812 * tracepoint.c (scope_info): Adjust.
1813
100b4f2e
MR
18142016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1815
1816 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
1817 instruction support.
1818 (micromips_next_pc): Likewise.
1819 (micromips_scan_prologue): Likewise.
1820 (micromips_deal_with_atomic_sequence): Likewise.
1821 (micromips_stack_frame_destroyed_p): Likewise.
1822 (mips_breakpoint_from_pc): Likewise.
1823
3f7f3650
MR
18242016-01-18 Maciej W. Rozycki <macro@imgtec.com>
1825
1826 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
1827 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
1828
f303dbd6
PA
18292016-01-18 Pedro Alves <palves@redhat.com>
1830
1831 * NEWS: Mention that GDB now displays the ID and name of the
1832 thread that hit a breakpoint or received a signal.
1833 * break-catch-sig.c (signal_catchpoint_print_it): Use
1834 maybe_print_thread_hit_breakpoint.
1835 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1836 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
1837 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
1838 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
1839 (print_it_catch_exec, print_it_ranged_breakpoint)
1840 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
1841 Use maybe_print_thread_hit_breakpoint.
1842 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
1843 * gdbthread.h (show_thread_that_caused_stop): Declare.
1844 * infrun.c (print_signal_received_reason): Print which thread
1845 received signal.
1846 * thread.c (show_thread_that_caused_stop): New function.
1847
eb0edac8
GB
18482016-01-18 Gary Benson <gbenson@redhat.com>
1849
1850 * nat/linux-namespaces.c (do_fork): New function.
1851 (linux_mntns_get_helper): Use the above.
1852
dc365182
JH
18532016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
1854
1855 Pushed by Joel Brobecker <brobecker@adacore.com>.
1856 PR gdb/19208
1857 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
1858 if the function has no name.
1859
f74f61cb
SL
18602016-01-15 Sandra Loosemore <sandra@codesourcery.com>
1861
1862 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
1863 Conditionalize for Windows host.
1864 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
1865 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
1866 (phony_iconv_open): Handle both UTF-32 endiannesses.
1867 (phony_iconv): Likewise. Check for output overflow and clean up
1868 out-of-input cases. Correct adjustment to input buffer pointer.
1869 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
1870 phony_iconv_open.
1871
71ef29a8
PA
18722016-01-15 Pedro Alves <palves@redhat.com>
1873
1874 * NEWS: Mention star wildcard ranges.
1875 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
1876 (number_range_setup_range): New function.
1877 * cli/cli-utils.h (number_range_setup_range): New declaration.
1878 * thread.c (thread_apply_command): Support star TID ranges.
1879 * tid-parse.c (tid_range_parser_finished)
1880 (tid_range_parser_string, tid_range_parser_skip)
1881 (get_tid_or_range, get_tid_or_range): Handle
1882 TID_RANGE_STATE_STAR_RANGE.
1883 (tid_range_parser_star_range): New function.
1884 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
1885 New value.
1886 (tid_range_parser_star_range): New declaration.
1887
3f5b7598
PA
18882016-01-15 Pedro Alves <palves@redhat.com>
1889
1890 * thread.c (thread_apply_command): Use the tid range parser to
1891 advance past the thread ID list.
1892 * tid-parse.c (get_positive_number_trailer): New function.
1893 (parse_thread_id): Use it.
1894 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
1895 thread ID error.
1896 (get_tid_or_range): Detect negative values. Return 0 instead of
1897 throwing invalid thread ID error.
1898
e7cf25a8
YQ
18992016-01-14 Yao Qi <yao.qi@linaro.org>
1900
1901 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1902 Declare.
1903 (arm_linux_get_next_pcs_ops): Install
1904 arm_linux_get_next_pcs_syscall_next_pc.
1905 (arm_linux_syscall_next_pc): Change to ...
1906 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
1907 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
1908 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
1909 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
1910 call tdep->syscall_next_pc.
1911 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
1912 (arm_get_next_pcs_syscall_next_pc): Remove.
1913
c0518081
YQ
19142016-01-14 Yao Qi <yao.qi@linaro.org>
1915
1916 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
1917 * thread.c (do_captured_thread_select): Cast to const char *.
1918
1b451dda
YQ
19192016-01-14 Yao Qi <yao.qi@linaro.org>
1920
1921 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
1922 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
1923 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
1924 instead.
1925 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
1926 <arm_thumb2_breakpoint>: Remove.
1927 <has_thumb2_breakpoint>: New field.
1928 (arm_get_next_pcs_ctor): Update declaration.
1929 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
1930 1 to arm_get_next_pcs_ctor.
1931 * arm-tdep.c (arm_software_single_step): Pass 0 to
1932 arm_get_next_pcs_ctor.
1933
bc06e0b1
UW
19342016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
1935
1936 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
1937
4e7b8bea
YQ
19382016-01-13 Yao Qi <yao.qi@linaro.org>
1939
1940 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
1941 byte_order_for_code to read instruction.
1942
663f6d42
PA
19432016-01-13 Pedro Alves <palves@redhat.com>
1944
1945 * NEWS: Mention $_gthread.
1946 * gdbthread.h (struct thread_info) <global_num>: Mention
1947 $_gthread.
1948 * thread.c (thread_num_make_value_helper): New function.
1949 (thread_id_make_value): Delete.
1950 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
1951 New.
1952 (thread_funcs): Adjust.
1953 (gthread_funcs): New.
1954 (_initialize_thread): Register $_gthread variable.
1955
c84f6bbf
PA
19562016-01-13 Pedro Alves <palves@redhat.com>
1957
1958 * NEWS: Mention "info threads -gid".
1959 * gdbthread.h (struct thread_info) <global_num>: Mention "info
1960 threads -gid".
1961 * thread.c (info_threads_command): Handle "-gid".
1962 (_initialize_thread): Adjust "info threads" help string to mention
1963 -gid.
1964
22a02324
PA
19652016-01-13 Pedro Alves <palves@redhat.com>
1966
1967 * NEWS: Mention InferiorThread.global_num.
1968 * python/py-infthread.c (thpy_get_global_num): New function.
1969 (thread_object_getset): Register "global_num".
1970
5d5658a1
PA
19712016-01-13 Pedro Alves <palves@redhat.com>
1972
1973 * NEWS: Mention that thread IDs are now per inferior and global
1974 thread IDs.
1975 * Makefile.in (SFILES): Add tid-parse.c.
1976 (COMMON_OBS): Add tid-parse.o.
1977 (HFILES_NO_SRCDIR): Add tid-parse.h.
1978 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
1979 * breakpoint.c (insert_breakpoint_locations)
1980 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
1981 (print_one_breakpoint_location, set_longjmp_breakpoint)
1982 (check_longjmp_breakpoint_for_call_dummy)
1983 (set_momentary_breakpoint): Adjust to use global IDs.
1984 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
1985 (until_break_command, longjmp_bkpt_dtor)
1986 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
1987 to use global IDs.
1988 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
1989 ptid_to_global_thread_id.
1990 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1991 * gdbthread.h (struct thread_info): Rename field 'num' to
1992 'global_num. Add new fields 'per_inf_num' and 'inf'.
1993 (thread_id_to_pid): Rename thread_id_to_pid to
1994 global_thread_id_to_ptid.
1995 (pid_to_thread_id): Rename to ...
1996 (ptid_to_global_thread_id): ... this.
1997 (valid_thread_id): Rename to ...
1998 (valid_global_thread_id): ... this.
1999 (find_thread_id): Rename to ...
2000 (find_thread_global_id): ... this.
2001 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
2002 (print_thread_info): Add comment.
2003 * tid-parse.h: New file.
2004 * tid-parse.c: New file.
2005 * infcmd.c (step_command_fsm_prepare)
2006 (step_command_fsm_should_stop): Adjust to use the global thread
2007 ID.
2008 (until_next_command, until_next_command)
2009 (finish_command_fsm_should_stop): Adjust to use the global thread
2010 ID.
2011 (attach_post_wait): Adjust to check the inferior number too.
2012 * inferior.h (struct inferior) <highest_thread_num>: New field.
2013 * infrun.c (handle_signal_stop)
2014 (insert_exception_resume_breakpoint)
2015 (insert_exception_resume_from_probe): Adjust to use the global
2016 thread ID.
2017 * record-btrace.c (record_btrace_open): Use global thread IDs.
2018 * remote.c (process_initial_stop_replies): Also consider the
2019 inferior number.
2020 * target.c (target_pre_inferior): Clear the inferior's highest
2021 thread num.
2022 * thread.c (clear_thread_inferior_resources): Adjust to use the
2023 global thread ID.
2024 (new_thread): New inferior parameter. Adjust to use it. Set both
2025 the thread's global ID and the thread's per-inferior ID.
2026 (add_thread_silent): Adjust.
2027 (find_thread_global_id): New.
2028 (find_thread_id): Make static. Adjust to rename.
2029 (valid_thread_id): Rename to ...
2030 (valid_global_thread_id): ... this.
2031 (pid_to_thread_id): Rename to ...
2032 (ptid_to_global_thread_id): ... this.
2033 (thread_id_to_pid): Rename to ...
2034 (global_thread_id_to_ptid): ... this. Adjust.
2035 (first_thread_of_process): Adjust.
2036 (do_captured_list_thread_ids): Adjust to use global thread IDs.
2037 (should_print_thread): New function.
2038 (print_thread_info): Rename to ...
2039 (print_thread_info_1): ... this, and add new show_global_ids
2040 parameter. Handle it. Iterate over inferiors.
2041 (print_thread_info): Reimplement as wrapper around
2042 print_thread_info_1.
2043 (show_inferior_qualified_tids): New function.
2044 (print_thread_id): Use it.
2045 (tp_array_compar): Compare inferior numbers too.
2046 (thread_apply_command): Use tid_range_parser.
2047 (do_captured_thread_select): Use parse_thread_id.
2048 (thread_id_make_value): Adjust.
2049 (_initialize_thread): Adjust "info threads" help string.
2050 * varobj.c (struct varobj_root): Update comment.
2051 (varobj_create): Adjust to use global thread IDs.
2052 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
2053 * windows-tdep.c (display_tib): No longer accept an argument.
2054 * cli/cli-utils.c (get_number_trailer): Make extern.
2055 * cli/cli-utils.h (get_number_trailer): Declare.
2056 (get_number_const): Adjust documentation.
2057 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
2058 thread IDs.
2059 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
2060 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
2061 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
2062 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
2063 Likewise.
2064 * python/py-breakpoint.c (bppy_set_thread): Likewise.
2065 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2066 * python/py-infthread.c (thpy_get_num): Add comment and return the
2067 per-inferior thread ID.
2068 (thread_object_getset): Update comment of "num".
2069
43792cf0
PA
20702016-01-13 Pedro Alves <palves@redhat.com>
2071
2072 * breakpoint.c (remove_threaded_breakpoints)
2073 (print_one_breakpoint_location): Use print_thread_id.
2074 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2075 (btrace_fetch, btrace_clear): Use print_thread_id.
2076 * common/print-utils.c (CELLSIZE): Delete.
2077 (get_cell): Rename to ...
2078 (get_print_cell): ... this and made extern. Adjust call callers.
2079 Adjust to use PRINT_CELL_SIZE.
2080 * common/print-utils.h (get_print_cell): Declare.
2081 (PRINT_CELL_SIZE): New.
2082 * gdbthread.h (print_thread_id): Declare.
2083 * infcmd.c (signal_command): Use print_thread_id.
2084 * inferior.c (print_inferior): Use print_thread_id.
2085 * infrun.c (handle_signal_stop)
2086 (insert_exception_resume_breakpoint)
2087 (insert_exception_resume_from_probe)
2088 (print_signal_received_reason): Use print_thread_id.
2089 * record-btrace.c (record_btrace_info)
2090 (record_btrace_resume_thread, record_btrace_cancel_resume)
2091 (record_btrace_step_thread, record_btrace_wait): Use
2092 print_thread_id.
2093 * thread.c (thread_apply_all_command): Use print_thread_id.
2094 (print_thread_id): New function.
2095 (thread_apply_command): Use print_thread_id.
2096 (thread_command, thread_find_command, do_captured_thread_select):
2097 Use print_thread_id.
2098
84654457
PA
20992016-01-13 Pedro Alves <palves@redhat.com>
2100
2101 * NEWS: Mention InferiorThread.inferior.
2102 * python/py-infthread.c (thpy_get_inferior): New.
2103 (thread_object_getset): Register "inferior".
2104
e3940304
PA
21052016-01-13 Pedro Alves <palves@redhat.com>
2106
2107 * NEWS: Mention $_inferior.
2108 * inferior.c (inferior_id_make_value): New.
2109 (inferior_funcs): New.
2110 (_initialize_inferior): Create $_inferior variable.
2111
a911d87a
PA
21122016-01-13 Pedro Alves <palves@redhat.com>
2113
2114 PR breakpoints/19388
2115 * frame.c (get_current_frame): Use validate_registers_access.
2116 * gdbthread.h (validate_registers_access): Declare.
2117 * infrun.c (validate_siginfo_access): Delete.
2118 (siginfo_value_read, siginfo_value_write): Use
2119 validate_registers_access.
2120 * thread.c (validate_registers_access): New function.
2121
82075af2
JS
21222016-01-12 Josh Stone <jistone@redhat.com>
2123 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2124
2125 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
2126 syscall_entry and syscall_return stop reasons. Mention GDB
2127 support for remote catch syscall.
2128 * remote.c (PACKET_QCatchSyscalls): New enum.
2129 (remote_set_syscall_catchpoint): New function.
2130 (remote_protocol_features): New element for QCatchSyscalls.
2131 (remote_parse_stop_reply): Parse syscall_entry/return stops.
2132 (init_remote_ops): Install remote_set_syscall_catchpoint.
2133 (_initialize_remote): Config QCatchSyscalls.
2134 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
2135
d18547d8
YQ
21362016-01-12 Yao Qi <yao.qi@linaro.org>
2137
2138 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
2139 to gdb_byte * and pass to linux_fork_to_function.
2140
ba4dd7c4
YQ
21412016-01-12 Yao Qi <yao.qi@linaro.org>
2142
2143 * nat/linux-ptrace.c (linux_fork_to_function): Change type
2144 of argument 'function'.
2145 (linux_grandchild_function): Change return type to 'int'.
2146 Change child_stack's type to 'void *'.
2147 (linux_child_function): Likewise.
2148
bc504a31
PA
21492016-01-12 Pedro Alves <palves@redhat.com>
2150
2151 Remove use of the registered trademark symbol throughout.
2152
5eddd578
TS
21532016-01-12 Thomas Schwinge <thomas@codesourcery.com>
2154
2155 * reply_mig_hack.awk: Rewrite one regular expression.
2156
b835bb52
MF
21572016-01-11 Mike Frysinger <vapier@gentoo.org>
2158
2159 * acinclude.m4: Include new warning.m4 file.
2160 * configure: Regenerated.
2161 * configure.ac: Move all warning logic ...
2162 * warning.m4: ... here.
2163
2f99e8fc
YQ
21642016-01-08 Yao Qi <yao.qi@linaro.org>
2165
2166 * extension.c: Include target.h.
2167 (set_active_ext_lang): Only call install_gdb_sigint_handler,
2168 check_quit_flag, and set_quit_flag if target_terminal_is_ours
2169 returns false.
2170 (restore_active_ext_lang): Likewise.
2171 * target.c (target_terminal_is_ours): New function.
2172 * target.h (target_terminal_is_ours): Declare.
2173
5dd05630
MR
21742016-01-07 Maciej W. Rozycki <macro@imgtec.com>
2175
2176 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
2177 to `err' in the little-endian leg.
2178
f5aa3069
YQ
21792016-01-06 Yao Qi <yao.qi@linaro.org>
2180
2181 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
2182 lines below.
2183 (thumb_get_next_pcs_raw): Make it static.
2184 (arm_get_next_pcs_raw): Likewise.
2185 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
2186 declaration.
2187 (arm_get_next_pcs_raw): Likewise.
2188
bf69ad5a
MF
21892016-01-05 Mike Frysinger <vapier@gentoo.org>
2190
2191 * version.in: Change cvs to git.
2192
66750332
MF
21932016-01-05 Mike Frysinger <vapier@gentoo.org>
2194
2195 * configure.tgt (score-*-*): Delete gdb_sim assignment.
2196
976102cd
PA
21972016-01-05 Pedro Alves <palves@redhat.com>
2198
2199 PR sim/13418
2200 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
2201 the target is powerpc*.
fa89c126
PA
2202 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
2203 of WITH_SIM.
976102cd
PA
2204 * configure: Regenerate.
2205 * config.in: Regenerate.
2206
43368e1d
MM
22072016-01-04 Markus Metzger <markus.t.metzger@intel.com>
2208
2209 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
2210
32273fe6
MF
22112016-01-02 Mike Frysinger <vapier@gentoo.org>
2212
2213 * configure.tgt (powerpc*-*-*): Delete test call and
2214 always assign gdb_sim.
2215
618f726f
JB
22162016-01-01 Joel Brobecker <brobecker@adacore.com>
2217
2218 Update year range in copyright notice of all files.
2219
edd88788
JB
22202016-01-01 Joel Brobecker <brobecker@adacore.com>
2221
2222 * top.c (print_gdb_version): Change copyright year in version
2223 message.
2224
0f7b3ef4 22252016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 2226
0f7b3ef4 2227 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 2228
0f7b3ef4 2229For older changes see ChangeLog-2015.
c906108c
SS
2230\f
2231Local Variables:
2232mode: change-log
2233left-margin: 8
2234fill-column: 74
2235version-control: never
57da7796 2236coding: utf-8
c906108c 2237End:
This page took 2.734184 seconds and 4 git commands to generate.