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