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