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