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