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