Fix potential buffer overflows with sprintf and very large integer values.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-07-01 Pedro Alves <palves@redhat.com>
2 Tom Tromey <tom@tromey.com>
3
4 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
5 jit_inferior_created_hook.
6 (jit_reader_unload_command): Call reinit_frame_cache and
7 jit_inferior_exit_hook.
8 * jit.c (struct jit_unwind_private) <registers>: Delete field.
9 <regcache>: New field.
10 (jit_unwind_reg_set_impl): Set the register's value in the
11 regcache. Free the passed-in gdb_reg_value.
12 (jit_dealloc_cache): Adjust to free the regcache.
13 (jit_frame_sniffer): Allocate a regcache instead of an array of
14 gdb_reg_value pointers.
15 (jit_frame_this_id): Adjust.
16 (jit_frame_prev_register): Read raw registers off of the regcache
17 instead of from the gdb_reg_value pointer array. Use
18 gdbarch_pseudo_register_read_value to read pseudo registers.
19 * regcache.c (regcache_raw_set_cached_value): New function,
20 factored out from ...
21 (regcache_raw_write): ... here.
22 * regcache.h (regcache_raw_set_cached_value): Declare.
23
24 2016-07-01 Pedro Alves <palves@redhat.com>
25 Antoine Tremblay <antoine.tremblay@ericsson.com>
26
27 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
28 out from ...
29 (inf_ptrace_detach): ... here.
30 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
31 * linux-nat.c (get_pending_status): Rename to ...
32 (get_detach_signal): ... this, and return a host signal instead of
33 filling in a wait status.
34 (detach_one_lwp): New function, factored out from detach_callback
35 and adjusted to handle detaching from a zombie thread.
36 (detach_callback): Skip the leader thread.
37 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
38 the leader thread, nor build a signal string to pass down.
39 Instead, use target_announce_detach, detach_one_lwp and
40 inf_ptrace_detach_success.
41
42 2016-07-01 Pedro Alves <palves@redhat.com>
43
44 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
45 locations.
46 * infcmd.c (detach_command): Call breakpoint_init_inferior.
47
48 2016-07-01 Pedro Alves <palves@redhat.com>
49
50 * darwin-nat.c (darwin_detach): Use target_announce_detach.
51 * inf-ptrace.c (inf_ptrace_detach): Likewise.
52 * nto-procfs.c (procfs_detach): Likewise.
53 * remote.c (remote_detach_1): Likewise.
54 * target.c (target_announce_detach): New function.
55 * target.h (target_announce_detach): New declaration.
56
57 2016-06-29 Tom Tromey <tom@tromey.com>
58
59 PR python/20129:
60 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
61 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
62 not "name".
63
64 2016-06-29 Tom Tromey <tom@tromey.com>
65
66 PR gdb/17210:
67 * target.c (free_memory_read_result_vector): Take a pointer to the
68 VEC as an argument.
69 (read_memory_robust): Install a cleanup for "result".
70 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
71
72 2016-06-29 Manish Goregaokar <manish@mozilla.com>
73
74 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
75
76 2016-06-29 Manish Goregaokar <manish@mozilla.com>
77
78 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
79
80 2016-06-28 Yao Qi <yao.qi@linaro.org>
81
82 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
83 variable new_offset.
84
85 2016-06-27 Manish Goregaokar <manish@mozilla.com>
86
87 * rust-lang.c (rust_print_type, rust_decorations): Print unit
88 types as "()".
89 (rust_print_type): Omit return type for functions returning unit.
90
91 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
92
93 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
94 when there is an error during the breakpoint creation.
95
96 2016-06-25 Tom Tromey <tom@tromey.com>
97
98 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
99 formatting.
100
101 2016-06-25 Manish Goregaokar <manish@mozilla.com>
102
103 PR gdb/20239
104 * rust-lang.c (rust_get_disr_info): Correctly interpret
105 NonZero-optimized enums of arbitrary depth.
106 (rust_print_type): Correctly print NonZero-optimized
107 enums.
108
109 2016-06-24 David Taylor <dtaylor@emc.com>
110
111 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
112 * c-lang.h: Change all parameters, variables, and struct or union
113 members used as struct or union fie3ld offsets from int to
114 LONGEST.
115 * c-valprint.c: Likewise.
116 * cp-abi.c: Likewise.
117 * cp-abi.h: Likewise.
118 * cp-valprint.c: Likewise.
119 * d-valprint.c: Likewise.
120 * dwarf2loc.c: Likewise.
121 * eval.c: Likewise.
122 * extension-priv.h: Likewise.
123 * extension.c: Likewise.
124 * extension.h: Likewise.
125 * findvar.c: Likewise.
126 * gdbtypes.h: Likewise.
127 * gnu-v2-abi.c: Likewise.
128 * gnu-v3-abi.c: Likewise.
129 * go-valprint.c: Likewise.
130 * guile/guile-internal.h: Likewise.
131 * guile/scm-pretty-print.c: Likewise.
132 * jv-valprint.c Likewise.
133 * opencl-lang.c: Likewise.
134 * p-lang.h: Likewise.
135 * python/py-prettyprint.c: Likewise.
136 * python/python-internal.h: Likewise.
137 * spu-tdep.c: Likewise.
138 * typeprint.c: Likewise.
139 * valarith.c: Likewise.
140 * valops.c: Likewise.
141 * valprint.c: Likewise.
142 * valprint.h: Likewise.
143 * value.c: Likewise.
144 * value.h: Likewise.
145 * p-valprint.c: Likewise.
146 * c-typeprint.c (c_type_print_base): When printing offset, use
147 plongest, not %d.
148 * gdbtypes.c (recursive_dump_type): Ditto.
149
150 2016-06-24 David Taylor <david.taylor@emc.com>
151
152 * MAINTAINERS (Write After Approval): Add David Taylor.
153
154 2016-06-24 John Baldwin <jhb@FreeBSD.org>
155
156 * configure.ac: Check for support for system call LWP fields on
157 FreeBSD.
158 * config.in, configure: Rebuild.
159 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
160 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
161 Report system call events.
162 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
163 (fbsd_set_syscall_catchpoint): New function.
164 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
165 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
166 * fbsd-tdep.c: Include xml-syscall.h
167 (fbsd_get_syscall_number): New function.
168 (fbsd_init_abi): Set XML system call file name.
169 Add "get_syscall_number" gdbarch method.
170 * syscalls/freebsd.xml: New file.
171
172 2016-06-24 John Baldwin <jhb@FreeBSD.org>
173
174 * fbsd-tdep.c: Include "auxv.h".
175 (fbsd_print_auxv_entry): New function.
176 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
177
178 2016-06-24 John Baldwin <jhb@FreeBSD.org>
179
180 * auxv.c (fprint_auxv_entry): New function.
181 (default_print_auxv_entry): New function.
182 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
183 * auxv.h (enum auxv_format): New enum.
184 (fprint_auxv_entry): Declare.
185 (default_print_auxv_entry): Declare.
186 * gdbarch.sh (print_auxv_entry): New.
187 * gdbarch.c, gdbarch.h: Re-generated.
188
189 2016-06-24 John Baldwin <jhb@FreeBSD.org>
190
191 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
192 (fbsd_xfer_partial): New function.
193 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
194 "fbsd_xfer_partial".
195
196 2016-06-23 Tom Tromey <tom@tromey.com>
197
198 * symtab.c (symbol_find_demangled_name): Loop over languages and
199 use language_sniff_from_mangled_name.
200 * rust-lang.c (rust_sniff_from_mangled_name): New function.
201 (rust_language_defn): Update.
202 * p-lang.c (pascal_language_defn): Update.
203 * opencl-lang.c (opencl_language_defn): Update.
204 * objc-lang.c (objc_sniff_from_mangled_name): New function.
205 (objc_language_defn): Update.
206 * m2-lang.c (m2_language_defn): Update.
207 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
208 field.
209 (language_sniff_from_mangled_name): Declare.
210 * language.c (language_sniff_from_mangled_name): New function.
211 (unknown_language_defn, auto_language_defn, local_language_defn):
212 Update.
213 * jv-lang.c (java_sniff_from_mangled_name): New function.
214 (java_language_defn): Use it.
215 * go-lang.c (go_sniff_from_mangled_name): New function.
216 (go_language_defn): Use it.
217 * f-lang.c (f_language_defn): Update.
218 * defs.h (enum language): Reorder.
219 * d-lang.c (d_sniff_from_mangled_name): New function.
220 (d_language_defn): Use it.
221 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
222 * cp-support.c (gdb_sniff_from_mangled_name): New function.
223 * c-lang.c (c_language_defn, cplus_language_defn)
224 (asm_language_defn, minimal_language_defn): Update.
225 * ada-lang.c (ada_sniff_from_mangled_name): New function.
226 (ada_language_defn): Use it.
227
228 2016-06-23 Tom Tromey <tom@tromey.com>
229
230 * ada-lang.c (ada_extensions): New array.
231 (ada_language_defn): Use it.
232 * c-lang.c (c_extensions): New array.
233 (c_language_defn): Use it.
234 (cplus_extensions): New array.
235 (cplus_language_defn): Use it.
236 (asm_extensions): New array.
237 (asm_language_defn): Use it.
238 (minimal_language_defn): Update.
239 * d-lang.c (d_extensions): New array.
240 (d_language_defn): Use it.
241 * f-lang.c (f_extensions): New array.
242 (f_language_defn): Use it.
243 * go-lang.c (go_language_defn): Update.
244 * jv-lang.c (java_extensions): New array.
245 (java_language_defn): Use it.
246 * language.c (add_language): Call add_filename_language.
247 (unknown_language_defn, auto_language_defn, local_language_defn):
248 Update.
249 * language.h (struct language_defn) <la_filename_extensions>: New
250 field.
251 * m2-lang.c (m2_language_defn): Update.
252 * objc-lang.c (objc_extensions): New array.
253 (objc_language_defn): Use it.
254 * opencl-lang.c (opencl_language_defn): Update.
255 * p-lang.c (p_extensions): New array.
256 (pascal_language_defn): Use it.
257 * rust-lang.c (rust_extensions): New array.
258 (rust_language_defn): Use it.
259 * symfile.c (add_filename_language): No longer static. Make "ext"
260 const.
261 (init_filename_language_table): Remove.
262 (_initialize_symfile): Update.
263 * symfile.h (add_filename_language): Declare.
264
265 2016-06-23 Tom Tromey <tom@tromey.com>
266
267 * symfile.c (filename_language_table): Now a VEC.
268 (fl_table_size, fl_table_next): Remove.
269 (add_filename_language): Use VEC_safe_push.
270 (set_ext_lang_command, info_ext_lang_command)
271 (deduce_language_from_filename): Use VEC_iterate.
272 (init_filename_language_table): Use VEC_empty.
273
274 2016-06-23 Tom Tromey <tom@tromey.com>
275
276 * python/python.c (gdbpy_parameter): Now static.
277 * python/python-internal.h (gdbpy_parameter): Don't declare.
278
279 2016-06-23 Tom Tromey <tom@tromey.com>
280
281 PR gdb/16483:
282 * python/lib/gdb/command/frame_filters.py
283 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
284 nothing if no filters found. Return value indicating whether
285 filters were printed.
286 (InfoFrameFilter.print_list): Remove.
287 (InfoFrameFilter.invoke): Print message if no frame filters
288 found.
289
290 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
291
292 * f-valprint.c (f_val_print): Add field names for printing
293 derived types fields.
294
295 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
296
297 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
298 in name of last-break regset.
299
300 2016-06-21 Pedro Alves <palves@redhat.com>
301
302 * fork-child.c (fork_inferior): Switch the child to the main UI
303 right after vfork. Save/restore the current UI in the parent.
304 Flush outputs of the main UI instead of the current UI.
305
306 2016-06-21 Pedro Alves <palves@redhat.com>
307
308 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
309 to all UIs.
310
311 2016-06-21 Pedro Alves <palves@redhat.com>
312
313 * NEWS: Mention support for running interpreters on separate
314 UIs and the new new-ui command.
315
316 2016-06-21 Pedro Alves <palves@redhat.com>
317
318 * interps.c (set_top_level_interpreter): New function, factored
319 out from captured_main.
320 (interpreter_completer): Make extern.
321 * interps.h (set_top_level_interpreter, interpreter_completer):
322 New declarations.
323 (captured_main): Use set_top_level_interpreter.
324 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
325 (open_terminal_stream, new_ui_command): New functions.
326 (init_main): Install the "new-ui" command.
327
328 2016-06-21 Pedro Alves <palves@redhat.com>
329
330 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
331 (read_command_lines): Use input_interactive_p instead of
332 input_from_terminal_p.
333 * defs.h (struct ui): Forward declare.
334 (input_from_terminal_p): Rename to ...
335 (input_interactive_p): ... this.
336 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
337 to quit_command.
338 (command_handler): Adjust to per-UI stdin.
339 (handle_line_of_input): Adjust to per-UI stdin and use
340 input_interactive_p instead of ISATTY and input_from_terminal_p.
341 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
342 (command_line_handler): Always pass true as "from_tty" parameter
343 of handle_line_of_input and execute_command.
344 (async_sigterm_handler): Pass 0 as from_tty argument to
345 quit_command.
346 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
347 (gdb_has_a_terminal): Don't check interactive_mode here.
348 (_initialize_inflow): Don't install "set interactive-mode" here.
349 * main.c (captured_command_loop): Adjust to per-UI stdin.
350 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
351 stdin.
352 * top.c (new_ui): Save the stdin stream and whether it's a tty.
353 (dont_repeat): Adjust to per-UI stdin.
354 (command_line_input): Adjust to per-UI stdin and to use
355 input_interactive_p.
356 (quit_force): Write history if any UI supports interactive input.
357 (interactive_mode, show_interactive_mode): Move here, from
358 inflow.c.
359 (input_from_terminal_p): Rename to ...
360 (input_interactive_p): ... this, and check the "interactive_mode"
361 global instead of calling gdb_has_a_terminal.
362 (_initialize_top): Install "set interactive-mode" here.
363 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
364 fields.
365 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
366 (defaulted_query): Adjust to per-UI stdin and to use
367 input_interactive_p.
368
369 2016-06-21 Pedro Alves <palves@redhat.com>
370
371 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
372 secondary UI's input stream that closed. Instead, just delete the
373 UI.
374
375 2016-06-21 Pedro Alves <palves@redhat.com>
376
377 * event-top.c (main_ui_): Delete.
378 (main_ui, current_ui, ui_list): No longer initialize here.
379 * main.c (captured_main): UI initialization code factored out to
380 new new_ui function.
381 (gdb_main): Wrap captured_main with TRY/CATCH instead of
382 catch_errors.
383 * top.c (highest_ui_num): New global.
384 (new_ui): New function.
385 * top.h (struct ui) <num>: New field.
386 (new_ui): New declaration.
387
388 2016-06-21 Pedro Alves <palves@redhat.com>
389
390 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
391 nothing to print. Use should_print_stop_to_console.
392 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
393
394 2016-06-21 Pedro Alves <palves@redhat.com>
395
396 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
397 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
398 thread parameter.
399 (until_break_command): Pass command interpreter to thread fsm
400 ctor.
401 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
402 * gdbthread.h (struct thread_control_state) <command_interp>:
403 Delete field.
404 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
405 Pass it down.
406 (call_thread_fsm_should_stop): Add thread parameter.
407 (call_function_by_hand_dummy): Pass command interpreter to thread
408 fsm ctor. Pass thread pointer to fsm clean up method.
409 * infcmd.c: Include interps.h.
410 (struct step_command_fsm) <thread>: Delete field.
411 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
412 (step_command_fsm_prepare): Remove references to fsm's thread
413 field.
414 (step_1): Pass command interpreter to thread
415 fsm ctor. Pass thread pointer to fsm clean up method.
416 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
417 thread parameter and use it.
418 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
419 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
420 parameter and use it.
421 (until_next_command): Pass command interpreter to thread fsm ctor.
422 (struct finish_command_fsm) <thread>: Delete field.
423 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
424 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
425 down. Remove thread parameter and adjust.
426 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
427 thread parameter and use it.
428 (finish_command): Pass command interpreter to thread fsm ctor.
429 Don't pass thread.
430 * infrun.c (follow_fork): Move thread fsm to child fork instead of
431 command interpreter, only.
432 (clear_proceed_status_thread): Remove reference to command_interp.
433 (proceed): Don't record the thread's command interpreter.
434 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
435 method.
436 (fetch_inferior_event): Pass thread to fsm should_stop method.
437 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
438 Store it.
439 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
440 parameter and pass it down.
441 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
442 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
443 parameter.
444 (thread_fsm_ctor): Add 'cmd_interp' parameter.
445 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
446 parameter.
447 * thread.c (thread_cancel_execution_command): Pass thread to
448 thread fsm clean_up method.
449
450 2016-06-21 Pedro Alves <palves@redhat.com>
451
452 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
453 (should_print_stop_to_console): New function, factored out from
454 mi_on_normal_stop_1.
455 * cli/cli-interp.h (should_print_stop_to_console): Declare.
456 * mi/mi-interp.c (mi_on_normal_stop_1): Use
457 should_print_stop_to_console. Pass it the current UI's console
458 interpreter.
459 * mi/mi-main.c (captured_mi_execute_command): Use the
460 INTERP_CONSOLE symbol rather than explicit "console".
461
462 2016-06-21 Pedro Alves <palves@redhat.com>
463
464 * infcmd.c (prepare_execution_command): Use
465 all_uis_on_sync_execution_starting.
466 * infrun.c (all_uis_on_sync_execution_starting): New function.
467 * infrun.h (all_uis_on_sync_execution_starting): Declare.
468
469 2016-06-21 Pedro Alves <palves@redhat.com>
470
471 * annotate.c: Include top.h.
472 (async_background_execution_p): Delete.
473 (print_value_flags): Check the UI's prompt state rather then
474 async_background_execution_p.
475 * event-loop.c (start_event_loop): Set the prompt state to
476 PROMPT_NEEDED.
477 * event-top.c (display_gdb_prompt, async_enable_stdin)
478 (async_disable_stdin): Check the current UI's prompt state instead
479 of the sync_execution global.
480 (command_line_handler): Set the prompt state to PROMPT_NEEDED
481 before running a command, and display the prompt if still needed
482 afterwards.
483 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
484 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
485 (call_thread_fsm_should_stop): Set the prompt state to
486 PROMPT_NEEDED.
487 (run_inferior_call): Adjust to temporarily set the prompt state to
488 PROMPT_BLOCKED instead of using the sync_execution global.
489 (call_function_by_hand_dummy): Pass the current UI to
490 new_call_thread_fsm.
491 * infcmd.c: Include top.h.
492 (continue_1): Check the current UI's prompt state instead of the
493 sync_execution global.
494 (continue_command): Validate global execution state before calling
495 prepare_execution_command.
496 (step_1): Call all_uis_check_sync_execution_done.
497 (attach_post_wait): Don't call async_enable_stdin here. Remove
498 reference to sync_execution.
499 * infrun.c (sync_execution): Delete global.
500 (follow_fork_inferior)
501 (reinstall_readline_callback_handler_cleanup): Check the current
502 UI's prompt state instead of the sync_execution global.
503 (check_curr_ui_sync_execution_done)
504 (all_uis_check_sync_execution_done): New functions.
505 (fetch_inferior_event): Call all_uis_check_sync_execution_done
506 instead of trying to determine whether the global sync execution
507 changed.
508 (handle_no_resumed): Check the prompt state of all UIs.
509 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
510 UIs. Emit the "Switching to" notification to all UIs. Enable
511 stdin in all UIs.
512 * infrun.h (sync_execution): Delete.
513 (all_uis_check_sync_execution_done): Declare.
514 * main.c (captured_command_loop): Don't call
515 interp_pre_command_loop if the prompt is blocked.
516 (catch_command_errors, catch_command_errors_const): Adjust.
517 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
518 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
519 PROMPTED.
520 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
521 comment.
522 (mi_execute_command_input_handler): Set the prompt state to
523 PROMPT_NEEDED before executing the command, and only display the
524 prompt if the prompt state is PROMPT_NEEDED afterwards.
525 (mi_on_resume_1): Adjust to check the prompt state.
526 * target.c (target_terminal_inferior): Adjust to check the prompt
527 state.
528 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
529 (execute_command): Check the current UI's prompt state instead of
530 sync_execution.
531 * top.h (enum prompt_state): New.
532 (struct ui) <prompt_state>: New field.
533 (ALL_UIS): New macro.
534
535 2016-06-21 Pedro Alves <palves@redhat.com>
536
537 * top.c (gdb_secondary_prompt_depth): Delete.
538 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
539 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
540 per-UI gdb_secondary_prompt_depth.
541 * top.h (struct ui) <secondary_prompt_depth>: New field.
542
543 2016-06-21 Pedro Alves <palves@redhat.com>
544
545 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
546 function.
547 (cli_interp_procs): Install it instead of cli_command_loop.
548 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
549 * event-top.c (cli_command_loop): Delete.
550 * interps.c (interp_new): Remove reference to command_loop_proc.
551 (current_interp_command_loop): Delete.
552 (interp_pre_command_loop): New function.
553 (interp_command_loop_ftype): Delete.
554 * interps.h (interp_pre_command_loop_ftype): New typedef.
555 (struct interp_procs) <command_loop_proc>: Delele field.
556 <pre_command_loop_proc>: New field.
557 (current_interp_command_loop): Delete declaration.
558 (interp_pre_command_loop): New declaration.
559 * main.c (captured_command_loop): Call interp_pre_command_loop
560 instead of current_interp_command_loop and start an event loop.
561 * mi/mi-interp.c (mi_command_loop): Delete.
562 (mi_interpreter_pre_command_loop): New.
563 (mi_interp_procs): Update.
564 * tui/tui-interp.c (tui_interp_procs): Install
565 cli_interpreter_pre_command_loop instead of cli_command_loop.
566
567 2016-06-21 Pedro Alves <palves@redhat.com>
568
569 * interps.c (current_interpreter): New function.
570 * interps.h (current_interpreter): New declaration.
571 * mi/mi-cmds.h (raw_stdout): Delete declaration.
572 * mi/mi-common.h (struct mi_interp) <raw_stdout,
573 saved_raw_stdout>: New field.
574 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
575 to per-UI raw_stdout.
576 (mi_interpreter_init): Adjust to per-UI raw_stdout.
577 (mi_on_sync_execution_done, mi_execute_command_input_handler)
578 (mi_command_loop): Pass MI instance to display_mi_prompt.
579 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
580 (mi_on_resume): Adjust to per-UI raw_stdout.
581 (saved_raw_stdout): Delete.
582 (mi_set_logging): Adjust to per-UI raw_stdout and
583 saved_raw_stdout.
584 * mi/mi-main.c (raw_stdout): Delete.
585 (mi_cmd_gdb_exit, captured_mi_execute_command)
586 (mi_print_exception, mi_load_progress): Adjust to per-UI
587 raw_stdout.
588 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
589 Pass it along.
590 (print_diff): New ui_file parameter. Send output there instead of
591 raw_stdout.
592 * mi/mi-main.h (struct ui_file): Forward declare.
593 (mi_print_timing_maybe): Add ui_file parameter.
594
595 2016-06-21 Pedro Alves <palves@redhat.com>
596
597 * mi/mi-interp.c (display_mi_prompt): New function.
598
599 2016-06-21 Pedro Alves <palves@redhat.com>
600
601 * target.c (target_terminal_inferior): Bail out after
602 unregistering input_fd if not on the main UI.
603 (target_terminal_ours): Bail out after registering input_fd if not
604 on the main UI.
605 (target_terminal_ours_for_output): Bail out if not on the main UI.
606
607 2016-06-21 Pedro Alves <palves@redhat.com>
608
609 * event-top.c (restore_ui_cleanup): Make extern.
610 * infrun.c (fetch_inferior_event): Always switch to the main UI.
611 * top.h (restore_ui_cleanup): Declare.
612
613 2016-06-21 Pedro Alves <palves@redhat.com>
614
615 PR mi/20034
616 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
617 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
618 UI's input_handler here.
619 (cli_interpreter_supports_command_editing): New function.
620 (cli_interp_procs): Install it.
621 * cli/cli-interp.h: New file.
622 * event-top.c (async_command_editing_p): Rename to ...
623 (set_editing_cmd_var): ... this.
624 (change_line_handler): Add parameter 'editing', and use it. Bail
625 early if the interpreter doesn't support editing. Don't touch
626 readline state if editing is off.
627 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
628 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
629 main UI.
630 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
631 not using readline. Check whether the current UI is using command
632 editing instead of checking the async_command_editing_p global.
633 (set_async_editing_command): Delete.
634 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
635 on the main UI. Don't touch readline state if editing is off.
636 (gdb_disable_readline): Don't touch readline state if editing is
637 off.
638 * event-top.h (gdb_setup_readline): Add 'int' parameter.
639 (set_async_editing_command): Delete declaration.
640 (change_line_handler, command_line_handler): Declare.
641 (async_command_editing_p): Rename to ...
642 (set_editing_cmd_var): ... this.
643 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
644 whether the current UI has editing enabled rather than checking
645 the async_command_editing_p global.
646 * interps.c (interp_supports_command_editing): New function.
647 * interps.h (interp_supports_command_editing_ftype): New typedef.
648 (struct interp_procs) <supports_command_editing_proc>: New field.
649 (interp_supports_command_editing): Declare.
650 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
651 gdb_setup_readline. Don't clear the async_command_editing_p
652 global. Update comments.
653 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
654 whether the current UI has editing enabled rather than checking
655 the async_command_editing_p global. Don't touch readline state if
656 editing is off.
657 (undo_terminal_modifications_before_exit): Switch to the main UI.
658 Unconditionally call gdb_disable_readline.
659 (set_editing): New function.
660 (show_async_command_editing_p): Rename to ...
661 (show_editing): ... this. Show the state of the current UI.
662 (_initialize_top): Adjust.
663 * top.h (struct ui) <command_editing>: New field.
664 * tui/tui-interp.c: Include cli/cli-interp.h.
665 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
666 input_handler.
667 (tui_interp_procs): Install
668 cli_interpreter_supports_command_editing.
669 * tui/tui-io.c (tui_getc): Check whether the current UI has
670 editing enabled rather than checking the async_command_editing_p
671 global.
672
673 2016-06-21 Pedro Alves <palves@redhat.com>
674
675 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
676 * top.h (struct ui) <m_current_uiout>: New field.
677 * ui-out.c (current_uiout): Delete.
678 * ui-out.h (current_uiout): Delete.
679 (current_ui_current_uiout_ptr): New declaration.
680 (current_uiout): Reimplement as wrapper around
681 current_ui_current_uiout_ptr.
682
683 2016-06-21 Pedro Alves <palves@redhat.com>
684
685 * ui-out.c (default_ui_out_impl): Delete.
686 (def_uiout): Delete.
687 (current_uiout): Set to NULL.
688 (default_table_begin, default_table_body, default_table_end)
689 (default_table_header, default_begin, default_end)
690 (default_field_int, default_field_skip, default_field_string)
691 (default_field_fmt, default_spaces, default_text, default_message)
692 (default_wrap_hint, default_flush, default_data_destroy): Delete.
693
694 2016-06-21 Pedro Alves <palves@redhat.com>
695
696 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
697 errstream to stdout_fileopen and stderr_fileopen.
698 * exceptions.c: Include top.h.
699 (print_flush): Open the current UI's outstream file descriptor,
700 instead of hardcoding file descriptor 1.
701 * main.c (captured_main): Save the main UI's out and error
702 streams. Adjust stderr_fileopen call.
703 * top.h (struct ui) <outstream, errstream>: New fields.
704 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
705 instead of stderr.
706 * ui-file.h (stderr_fileopen): Add stream parameter and update
707 comment.
708
709 2016-06-21 Pedro Alves <palves@redhat.com>
710
711 * event-top.c (input_fd): Delete.
712 (stdin_event_handler): Switch to the UI whose input descriptor got
713 the event. Adjust to per-UI input_fd.
714 (gdb_setup_readline): Don't set the input_fd global. Adjust to
715 per-UI input_fd.
716 (gdb_disable_readline): Adjust to per-UI input_fd.
717 * event-top.h (input_fd): Delete declaration.
718 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
719 from the event-loop here.
720 (linux_nat_terminal_ours): Don't register input_fd in the
721 event-loop here.
722 * main.c (captured_main): Adjust to per-UI input_fd.
723 * remote.c (remote_terminal_inferior): Don't remove input_fd from
724 the event-loop here.
725 (remote_terminal_ours): Don't register input_fd in the event-loop
726 here.
727 * target.c: Include top.h and event-top.h.
728 (target_terminal_inferior): Remove input_fd from the event-loop
729 here.
730 (target_terminal_ours): Register input_fd in the event-loop.
731 * top.h (struct ui) <input_fd>: New field.
732
733 2016-06-21 Pedro Alves <palves@redhat.com>
734
735 * cli/cli-script.c (execute_user_command, read_next_line)
736 (read_next_line): Adjust to per-UI instream.
737 * event-top.c (stdin_event_handler, command_handler)
738 (handle_line_of_input, command_line_handler)
739 (gdb_readline_no_editing_callback, async_sigterm_handler)
740 (gdb_setup_readline): Likewise.
741 * inflow.c: Include top.h.
742 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
743 (gdb_save_tty_state, child_terminal_inferior)
744 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
745 (initialize_stdin_serial): Adjust to per-UI instream.
746 * main.c (captured_command_loop, captured_main): Adjust to per-UI
747 instream.
748 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
749 * python/python.c (python_interactive_command): Likewise.
750 * terminal.h (struct ui): Forward declare.
751 (initialize_stdin_serial): Add struct ui parameter.
752 * top.c (instream): Delete.
753 (do_restore_instream_cleanup, read_command_file, dont_repeat)
754 (gdb_readline_no_editing, command_line_input)
755 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
756 * top.h (struct ui) <instream>: New field.
757 (instream): Delete declaration.
758 (quit): Adjust to per-UI instream.
759
760 2016-06-21 Pedro Alves <palves@redhat.com>
761
762 * event-loop.c: Include top.h.
763 (invoke_async_signal_handlers): Switch to the main UI.
764 * event-top.c (main_ui_): Update comment.
765 (main_ui): New global.
766 * top.h (main_ui): Declare.
767
768 2016-06-21 Pedro Alves <palves@redhat.com>
769
770 * cli/cli-interp.c (cli_interp): Delete.
771 (as_cli_interp): New function.
772 (cli_on_normal_stop, cli_on_signal_received)
773 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
774 (cli_on_no_history): Send output to all CLI UIs.
775 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
776 the top level interpreter is not a CLI.
777 (cli_interpreter_init): Don't set cli_interp or install observers
778 here.
779 (_initialize_cli_interp): Install observers here.
780 * event-top.c (main_ui_, ui_list): New globals.
781 (current_ui): Point to main_ui_.
782 (restore_ui_cleanup, switch_thru_all_uis_init)
783 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
784 functions.
785 * mi/mi-interp.c (as_mi_interp): New function.
786 (mi_interpreter_init): Don't install observers here.
787 (mi_on_sync_execution_done): Skip output if the top level
788 interpreter is not a MI.
789 (mi_new_thread, mi_thread_exit, mi_record_changed)
790 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
791 (mi_inferior_removed): Send output to all MI UIs.
792 (find_mi_interpreter, mi_interp_data): Delete.
793 (find_mi_interp): New function.
794 (mi_on_signal_received, mi_on_end_stepping_range)
795 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
796 to all MI UIs.
797 (mi_on_normal_stop): Rename to ...
798 (mi_on_normal_stop_1): ... this.
799 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
800 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
801 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
802 (mi_breakpoint_modified, mi_output_running_pid): Send output to
803 all MI UIs.
804 (mi_on_resume): Rename to ...
805 (mi_on_resume_1): ... this. Don't handle infcalls here.
806 (mi_on_resume): Reimplement, sending output to all MI UIs.
807 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
808 (mi_memory_changed): Send output to all MI UIs.
809 (report_initial_inferior): Install observers here.
810 * top.h (struct ui) <next>: New field.
811 (ui_list): Declare.
812 (struct switch_thru_all_uis): New.
813 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
814 (switch_thru_all_uis_next): Declare.
815 (SWITCH_THRU_ALL_UIS): New macro.
816 * tui/tui-interp.c (tui_interp): Delete global.
817 (as_tui_interp): New function.
818 (tui_on_normal_stop, tui_on_signal_received)
819 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
820 (tui_on_no_history): Send output to all TUI UIs.
821 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
822 the top level interpreter is not a TUI.
823 (tui_init): Don't set tui_interp or install observers here.
824 (_initialize_tui_interp): Install observers here.
825
826 2016-06-21 Pedro Alves <palves@redhat.com>
827
828 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
829 (struct cli_interp): ... this new structure.
830 (cli_on_normal_stop, cli_on_signal_received)
831 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
832 (cli_on_no_history): Use interp_ui_out.
833 (cli_interpreter_init): If top level, set the cli_interp global.
834 (cli_interpreter_init): Return the interp's data instead of NULL.
835 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
836 to cli_uiout being in the interpreter's data.
837 (cli_interp_procs): New, factored out from _initialize_cli_interp.
838 (cli_interp_factory): New function.
839 (_initialize_cli_interp): Call interp_factory_register.
840 * interps.c (get_interp_info): New, factored out from ...
841 (get_current_interp_info): ... this.
842 (interp_new): Add parameter 'data'. Store it.
843 (struct interp_factory): New function.
844 (interp_factory_p): New typedef. Define a VEC_P.
845 (interpreter_factories): New global.
846 (interp_factory_register): New function.
847 (interp_add): Add 'ui' parameter. Use get_interp_info and
848 interp_lookup_existing.
849 (interp_lookup): Rename to ...
850 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
851 check for NULL or empty name here.
852 (interp_lookup): Add 'ui' parameter and reimplement.
853 (interp_set_temp, interpreter_exec_cmd): Adjust.
854 (interpreter_completer): Complete on registered interpreter
855 factories instead of interpreters.
856 * interps.h (interp_factory_func): New typedef.
857 (interp_factory_register): Declare.
858 (interp_new, interp_add): Adjust.
859 (interp_lookup): Declare.
860 * main.c (captured_main): Adjust.
861 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
862 (mi_interp_procs): New, factored out from
863 _initialize_mi_interp.
864 (mi_interp_factory): New function.
865 * python/python.c (execute_gdb_command): Adjust.
866 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
867 global.
868 (tui_interp_procs): New.
869 (tui_interp_factory): New function.
870 (_initialize_tui_interp): Call interp_factory_register.
871
872 2016-06-21 Pedro Alves <palves@redhat.com>
873
874 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
875 async field instead of the interpreter_async global.
876 * cli/cli-script.c (execute_user_command, while_command)
877 (if_command, script_from_file): Likewise.
878 * compile/compile.c: Include top.h instead of interps.h.
879 (compile_file_command, compile_code_command)
880 (compile_print_command): Access the current UI's async field
881 instead of the interpreter_async global.
882 * guile/guile.c: Include top.h instead of interps.h.
883 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
884 Access the current UI's async field instead of the
885 interpreter_async global.
886 * guile/scm-ports.c: Include top.h instead of interps.h.
887 (ioscm_with_output_to_port_worker): Access the current UI's async
888 field instead of the interpreter_async global.
889 * inf-loop.c (inferior_event_handler): Likewise.
890 * infcall.c (run_inferior_call): Likewise.
891 * infrun.c (reinstall_readline_callback_handler_cleanup)
892 (fetch_inferior_event): Likewise.
893 * interps.c (interpreter_async): Delete.
894 (struct ui_interp_info): New.
895 (get_current_interp_info): New function.
896 (interp_list, current_interpreter, top_level_interpreter_ptr):
897 Delete.
898 (interp_add, interp_set, interp_lookup, interp_ui_out)
899 (current_interp_set_logging, interp_set_temp)
900 (current_interp_named_p): Adjust to per-UI interpreters.
901 (command_interpreter): Delete.
902 (command_interp, current_interp_command_loop, interp_quiet_p)
903 (interp_exec, interpreter_exec_cmd, interpreter_completer)
904 (top_level_interpreter, top_level_interpreter_data): Adjust to
905 per-UI interpreters.
906 * interps.h (interpreter_async): Delete.
907 * main.c (captured_command_loop): Access the current UI's async
908 field instead of the interpreter_async global.
909 * python/python.c (python_interactive_command, python_command)
910 (execute_gdb_command): Likewise.
911 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
912 Access the current UI's async field instead of the
913 interpreter_async global.
914 * top.h (struct tl_interp_info): Forward declare.
915 (struct ui) <interp_info, async>: New fields.
916
917 2016-06-21 Pedro Alves <palves@redhat.com>
918
919 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
920 globals.
921 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
922 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
923 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
924 m_gdb_stdlog>: New fields.
925 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
926 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
927 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
928 macros.
929
930 2016-06-21 Pedro Alves <palves@redhat.com>
931
932 * event-top.c: Update readline-related comments.
933 (input_handler, call_readline): Delete globals.
934 (gdb_rl_callback_handler): Call the current UI's input_handler
935 method.
936 (change_line_handler): Adjust to set current UI's properties
937 instead of globals.
938 (current_ui_, current_ui): New globals.
939 (get_command_line_buffer): Rewrite to refer to the current UI.
940 (stdin_event_handler): Adjust to call the call_readline method of
941 the current UI.
942 (gdb_readline_no_editing_callback): Adjust to call the current UI's
943 input_handler method.
944 (gdb_setup_readline): Adjust to set current UI's properties
945 instead of globals.
946 * event-top.h (call_readline, input_handler): Delete declarations.
947 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
948 UI's properties instead of globals.
949 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
950 properties instead of globals.
951 (gdb_readline_wrapper): Adjust to call and set current UI's
952 methods instead of globals.
953 * top.h: Include buffer.h and event-loop.h.
954 (struct ui): New struct.
955 (current_ui): New declaration.
956
957 2016-06-21 Pedro Alves <palves@redhat.com>
958
959 * ada-lang.c (ada_exception_name_addr_1): Add comment.
960 (print_it_exception): Select the current frame.
961
962 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
963
964 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
965 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
966 (ALLDEPFILES): Add nds32-tdep.c.
967 * NEWS: Mention new NDS32 port.
968 * configure.tgt: Add NDS32.
969 * nds32-tdep.c: New file.
970 * nds32-tdep.h: New file.
971 * features/Makefile (XMLTOC): Add nds32.xml.
972 * features/nds32-core.xml: New file.
973 * features/nds32-fpu.xml: New file.
974 * features/nds32-system.xml: New file.
975 * features/nds32.c: New file (generated).
976 * features/nds32.xml: New file.
977
978 2016-06-14 John Baldwin <jhb@FreeBSD.org>
979
980 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
981
982 2016-06-14 John Baldwin <jhb@FreeBSD.org>
983
984 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
985
986 2016-06-14 John Baldwin <jhb@FreeBSD.org>
987
988 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
989
990 2016-06-13 Nick Clifton <nickc@redhat.com>
991
992 * gdbtypes.c (replace_type): Fix assertion.
993
994 2016-06-10 Tom Tromey <tom@tromey.com>
995
996 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
997 (arch_boolean_type, arch_float_type, arch_complex_type)
998 (arch_flags_type, append_flags_type_field)
999 (append_flags_type_flag, arch_composite_type)
1000 (append_composite_type_field_raw)
1001 (append_composite_type_field_aligned)
1002 (append_composite_type_field): Make "name" parameter const.
1003 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
1004 (arch_boolean_type, arch_float_type, arch_complex_type)
1005 (append_composite_type_field, append_composite_type_field_aligned)
1006 (append_composite_type_field_raw, arch_flags_type)
1007 (append_flags_type_field, append_flags_type_flag): Constify.
1008
1009 2016-06-10 Tom Tromey <tom@tromey.com>
1010
1011 PR rust/20110:
1012 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
1013
1014 2016-06-10 Tom Tromey <tom@tromey.com>
1015
1016 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
1017 (YYFILES): Add rust-exp.c.
1018 (YYOBJ): Add rust-exp.o.
1019 (local-maintainer-clean): Remove rust-exp.c.
1020
1021 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
1022
1023 * NEWS: Mention that GDB now supports a negative repeat count in
1024 the 'x' command.
1025 * printcmd.c (decode_format): Allow '-' in the parameter
1026 "string_ptr" to accept a negative repeat count.
1027 (find_instruction_backward): New function.
1028 (read_memory_backward): New function.
1029 (integer_is_zero): New function.
1030 (find_string_backward): New function.
1031 (do_examine): Use new functions to examine memory backward.
1032 (_initialize_printcmd): Mention that 'x' command supports a negative
1033 repeat count.
1034
1035 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
1036
1037 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
1038
1039 2016-06-09 Tom Tromey <tom@tromey.com>
1040
1041 PR python/19819:
1042 * python/py-xmethods.c (invoke_method_name)
1043 (py_get_result_type_method_name, py_invoke_method_name): Remove.
1044 (gdbpy_initialize_xmethods): Don't initialize
1045 py_invoke_method_name, py_get_result_type_method_name.
1046
1047 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
1048
1049 * mi/mi-interp.c (mi_record_changed): Add missing braces.
1050
1051 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
1052
1053 * findvar.c (follow_static_link): Check for valid pointer.
1054
1055 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
1056
1057 * NEWS: Mention the new fields in =record-started.
1058 * common/btrace-common.h (btrace_format_short_string): New function
1059 declaration.
1060 * common/btrace-common.c (btrace_format_short_string): New
1061 function.
1062 * mi/mi-interp.c (mi_record_changed): Output method and format
1063 fields in the =record-started record.
1064 * record-btrace.c (record_btrace_open): Adapt record_changed
1065 notification.
1066 * record-full.c (record_full_open): Likewise.
1067 * record.c (cmd_record_stop): Likewise.
1068
1069 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
1070
1071 * windows-nat.c (handle_output_debug_string): Return type of
1072 gdb_signal_from_host() is gdb_signal, not an int.
1073 (windows_get_exec_module_filename): Add pointer casts for C++.
1074
1075 2016-06-02 Tom Tromey <tom@tromey.com>
1076
1077 PR python/18984:
1078 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
1079
1080 2016-06-01 Pedro Alves <palves@redhat.com>
1081
1082 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
1083 (remote_fio_osa)
1084 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
1085 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
1086 Delete.
1087 (remote_fileio_o_quit_handler): New global.
1088 (remote_fileio_quit_handler): New function.
1089 (remote_fileio_reply): Check the quit flag instead of the custom
1090 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
1091 of changing the SIGINT handler.
1092 (do_remote_fileio_request): Override the quit handler instead of
1093 changing the SIGINT handler.
1094
1095 2016-06-01 Nick Clifton <nickc@redhat.com>
1096
1097 * common/common-utils.c (xmalloc_failed): New function. Provided
1098 so that the version in libiberty is not linked in.
1099
1100 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
1101
1102 * infcmd.c (skip_finish_frames): New.
1103 (finish_command): Call skip_finish_frames.
1104
1105 2016-06-01 Yao Qi <yao.qi@linaro.org>
1106
1107 PR remote/19998
1108 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
1109 quit_serial_event_set.
1110
1111 2016-06-01 Joel Brobecker <brobecker@adacore.com>
1112
1113 GDB 7.11.1 released.
1114
1115 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
1116
1117 PR c++/19893
1118 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
1119 fetch_const_value_from_synthetic_pointer): New functions.
1120 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
1121 (pieced_value_funcs): Implement coerce_ref.
1122 * valops.c (value_addr): Call coerce_ref for synthetic references.
1123 * valprint.c (valprint_check_validity): Return true for synthetic
1124 references. Also, don't show "<synthetic pointer>" if they reference
1125 addressable values.
1126 (generic_val_print_ref): Handle synthetic references. Also move some
1127 code to print_ref_address.
1128 (print_ref_address, get_value_addr_contents): New functions.
1129
1130 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1131
1132 PR c++/15231
1133 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
1134 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
1135 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
1136 (read_call_site_scope): Adjust callers.
1137 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
1138 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
1139
1140 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1141
1142 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
1143 * dwarf2read.c (enum pc_bounds_kind) New.
1144 (dwarf2_get_pc_bounds): Use it in the declaration.
1145 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
1146 to cu_bounds_kind.
1147 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
1148 Adjust callers.
1149 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
1150 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
1151
1152 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1153
1154 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
1155 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
1156 deleted.
1157
1158 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1159
1160 * NEWS (N stop reply): Remove empty line.
1161
1162 2016-05-28 Alan Modra <amodra@gmail.com>
1163
1164 * compile/compile-object-load.c (link_callbacks_multiple_definition,
1165 link_callbacks_warning, link_callbacks_undefined_symbol,
1166 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
1167 link_callbacks_reloc_dangerous,
1168 link_callbacks_unattached_reloc): Return void.
1169
1170 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * opencl-lang.c (evaluate_subexp_opencl): If
1173 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
1174 the returned value in the STRUCTOP_STRUCT case.
1175
1176 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
1179 mode, forward the VALUE_LVAL attribute to the returned value in
1180 the STRUCTOP_PTR case.
1181
1182 2016-05-25 Tom Tromey <tom@tromey.com>
1183
1184 * python/py-value.c (value_object_as_number): Use correct spelling
1185 of HAVE_LIBPYTHON2_4.
1186
1187 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1188
1189 * f-typeprint.c (f_type_print_base): Replace 0 by show.
1190
1191 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1192
1193 * f-typeprint.c (f_type_print_base): Decrease show by one.
1194
1195 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1196
1197 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
1198
1199 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1200
1201 * f-typeprint.c (f_type_print_base): Take print level into account.
1202
1203 2016-05-24 Tom Tromey <tom@tromey.com>
1204
1205 PR python/17386:
1206 * python/py-value.c (value_object_as_number): Add
1207 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
1208
1209 2016-05-24 Tom Tromey <tom@tromey.com>
1210
1211 * python/py-value.c (value_object_as_number): Add
1212 nb_inplace_divide for Python 2.
1213
1214 2016-05-23 Tom Tromey <tom@tromey.com>
1215
1216 PR python/17981:
1217 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
1218 when there are no breakpoints.
1219
1220 2016-05-24 Pedro Alves <palves@redhat.com>
1221
1222 PR gdb/19828
1223 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
1224 resumed, and add the thread to GDB's thread list.
1225
1226 2016-05-24 Pedro Alves <palves@redhat.com>
1227
1228 PR gdb/19828
1229 * linux-nat.c (get_pending_status): If the thread reported the
1230 event to the core and it's pending, use the pending status signal
1231 number.
1232
1233 2016-05-24 Pedro Alves <palves@redhat.com>
1234
1235 PR gdb/19828
1236 * linux-nat.c (lwp_lwpid_htab): New htab.
1237 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
1238 (lwp_lwpid_htab_add_lwp): New functions.
1239 (lwp_list): Tweak comment.
1240 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
1241 functions.
1242 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
1243 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
1244 (delete_lwp): Use lwp_list_remove. Remove htab too.
1245 (find_lwp_pid): Search in htab.
1246 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
1247 * linux-nat.h (struct lwp_info) <prev>: New field.
1248
1249 2016-05-24 Pedro Alves <palves@redhat.com>
1250
1251 PR gdb/19828
1252 * linux-nat.c (lwp_lwpid_htab): New htab.
1253 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
1254 (lwp_lwpid_htab_add_lwp): New functions.
1255 (lwp_list): Tweak comment.
1256 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
1257 functions.
1258 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
1259 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
1260 (delete_lwp): Use lwp_list_remove. Remove htab too.
1261 (find_lwp_pid): Search in htab.
1262 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
1263 * linux-nat.h (struct lwp_info) <prev>: New field.
1264
1265 2016-05-24 Pedro Alves <palves@redhat.com>
1266
1267 PR gdb/19828
1268 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
1269 field.
1270 (linux_nat_update_thread_list): Don't fetch the core if already
1271 known.
1272
1273 2016-05-24 Pedro Alves <palves@redhat.com>
1274
1275 PR gdb/19828
1276 * linux-tdep.c (find_mapping_size): Delete.
1277 (linux_vsyscall_range_raw): Rewrite reading from
1278 /proc/PID/task/PID/maps directly instead of using
1279 gdbarch_find_memory_regions.
1280
1281 2016-05-24 Pedro Alves <palves@redhat.com>
1282
1283 PR gdb/19828
1284 * linux-nat.c (report_thread_events): New global.
1285 (linux_handle_extended_wait): Report
1286 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
1287 enabled.
1288 (wait_lwp, linux_nat_filter_event): Report all thread exits if
1289 thread event reporting is enabled. Remove comment.
1290 (filter_exit_event): New function.
1291 (linux_nat_wait_1): Use it.
1292 (linux_nat_thread_events): New function.
1293 (linux_nat_add_target): Install it as target_thread_events method.
1294
1295 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
1296
1297 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
1298
1299 2016-05-23 Yao Qi <yao.qi@arm.com>
1300
1301 * arch-utils.c (default_code_of_frame_writable): New function.
1302 * arch-utils.h (default_code_of_frame_writable): Declare.
1303 * arm-tdep.c (arm_code_of_frame_writable): New function.
1304 (arm_gdbarch_init): Install gdbarch method
1305 code_of_frame_writable if the target is M-profile.
1306 * frame.c (skip_unwritable_frames): New function.
1307 * frame.h (skip_unwritable_frames): Declare.
1308 * gdbarch.sh (code_of_frame_writable): New.
1309 * gdbarch.c, gdbarch.h: Re-generated.
1310 * infcmd.c (finish_command): Call skip_unwritable_frames.
1311
1312 2016-05-23 Tom Tromey <tom@tromey.com>
1313
1314 PR python/19438, PR python/18393:
1315 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
1316 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
1317
1318 2016-05-23 Gary Benson <gbenson@redhat.com>
1319
1320 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
1321 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
1322 Remove field.
1323 (try_thread_db_load_1): Remove td_thr_validate initialization.
1324
1325 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
1326
1327 * configure.ac: Search for libutil-freebsd as alternative to libutil.
1328 * configure: Re-generated.
1329
1330 2016-05-19 Andreas Schwab <schwab@suse.de>
1331
1332 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
1333 (libunwind_frame_set_descr): Likewise.
1334 (libunwind_frame_cache): Likewise.
1335 (libunwind_frame_dealloc_cache): Likewise.
1336 (libunwind_frame_sniffer): Likewise.
1337 (libunwind_search_unwind_table): Likewise.
1338 (libunwind_sigtramp_frame_sniffer): Likewise.
1339 (libunwind_get_reg_special): Likewise.
1340 (libunwind_load): Likewise.
1341 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
1342 (ia64_linux_store_register): Likewise.
1343 (ia64_linux_xfer_partial): Likewise.
1344 * ia64-tdep.c (ia64_access_reg): Likewise.
1345 (ia64_access_fpreg): Likewise.
1346 (ia64_access_rse_reg): Likewise.
1347 (ia64_access_rse_fpreg): Likewise.
1348
1349 2016-05-18 Tom Tromey <tom@tromey.com>
1350
1351 * rust-lang.c (rust_subscript): Initialize "high".
1352
1353 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
1354
1355 PR gdb/20045
1356 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
1357 of target_is_async_p.
1358
1359 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
1360
1361 PR gdb/18077
1362 * mi/mi-main.c (run_one_inferior): Use run target to determine
1363 whether to run async or not.
1364 (mi_cmd_exec_run): Likewise.
1365
1366 2016-05-17 Tom Tromey <tom@tromey.com>
1367
1368 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
1369 * rust-lang.c: Don't include f-lang.h.
1370 (rust_range, rust_compute_range, rust_subscript)
1371 (rust_evaluate_subexp): Update.
1372 * rust-exp.y: Don't include f-lang.h.
1373 (ast_range, convert_ast_to_expression): Update.
1374 * parse.c (operator_length_standard): Update.
1375 * f-lang.h (enum f90_range_type): Move to expression.h.
1376 * f-exp.y: Use OP_RANGE.
1377 * expression.h (enum range_type): New enum; renamed from
1378 f90_range_type.
1379 * expprint.c: Don't include f-lang.h.
1380 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
1381 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
1382
1383 2016-05-17 Tom Tromey <tom@tromey.com>
1384
1385 * NEWS: Add Rust item.
1386
1387 2016-05-17 Tom Tromey <tom@tromey.com>
1388 Manish Goregaokar <manishsmail@gmail.com>
1389
1390 * symtab.c (symbol_find_demangled_name): Handle Rust.
1391 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
1392 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
1393 constants.
1394 * rust-lang.h: New file.
1395 * rust-lang.c: New file.
1396 * rust-exp.y: New file.
1397 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
1398 (dwarf2_compute_name, read_func_scope, read_structure_type)
1399 (read_base_type, read_subrange_type, set_cu_language)
1400 (new_symbol_full, determine_prefix): Handle Rust.
1401 * defs.h (enum language) <language_rust>: New constant.
1402 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
1403 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
1404
1405 2016-05-17 Tom Tromey <tom@tromey.com>
1406
1407 * valprint.h (struct generic_val_print_array) <array_start,
1408 array_end>: New fields.
1409 * valprint.c (generic_val_print_array): Add "decorations"
1410 parameter. Use "array_start", "array_end".
1411 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
1412 * p-valprint.c (p_decorations): Update.
1413 * m2-valprint.c (m2_decorations): Update.
1414 * f-valprint.c (f_decorations): Update.
1415 * c-valprint.c (c_decorations): Update.
1416
1417 2016-05-17 Tom Tromey <tom@tromey.com>
1418
1419 * NEWS: Add "maint selftest" entry.
1420 * selftest.h: New file.
1421 * selftest.c: New file.
1422 * maint.c: Include selftest.h.
1423 (maintenance_selftest): New function.
1424 (_initialize_maint_cmds): Add "maint selftest" command.
1425 * configure.ac (GDB_SELF_TEST): Maybe define.
1426 * config.in, configure: Rebuild.
1427 * Makefile.in (SFILES): Add selftest.c.
1428 (COMMON_OBS): Add selftest.o.
1429
1430 2016-05-17 Tom Tromey <tom@tromey.com>
1431
1432 * expprint.c: Include f-lang.h.
1433 (print_subexp_standard, dump_subexp_body_standard): Handle
1434 OP_F90_RANGE.
1435
1436 2016-05-17 Tom Tromey <tom@tromey.com>
1437
1438 * Makefile.in (init.c): Search .y files for initialization
1439 functions.
1440
1441 2016-05-12 Doug Evans <dje@google.com>
1442
1443 PR symtab/19999
1444 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
1445 add base_offset.
1446
1447 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1448
1449 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
1450 anything.
1451 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
1452
1453 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1454
1455 * arm-tdep.c (arm_elf_make_msymbol_special): Use
1456 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
1457
1458 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1459
1460 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
1461 variables.
1462 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
1463 (aarch64_scan_prologue): Likewise.
1464 (aarch64_prologue_prev_register): Likewise.
1465 (aarch64_dwarf2_prev_register): Likewise.
1466 (pass_in_v): Likewise.
1467 (aarch64_push_dummy_call): Likewise.
1468 (aarch64_breakpoint_from_pc): Likewise.
1469 (aarch64_return_in_memory): Likewise.
1470 (aarch64_return_value): Likewise.
1471 (aarch64_displaced_step_b_cond): Likewise.
1472 (aarch64_displaced_step_cb): Likewise.
1473 (aarch64_displaced_step_tb): Likewise.
1474 (aarch64_gdbarch_init): Likewise.
1475 (aarch64_process_record): Likewise.
1476 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
1477 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
1478 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
1479 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
1480 * amd64-tdep.c (fixup_riprel): Likewise.
1481 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
1482 (amd64_windows_frame_decode_insns): Likewise.
1483 (amd64_windows_frame_cache): Likewise.
1484 (amd64_windows_frame_prev_register): Likewise.
1485 (amd64_windows_frame_this_id): Likewise.
1486 (amd64_windows_init_abi): Likewise.
1487 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
1488 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
1489 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
1490 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
1491 (arm_epilogue_frame_prev_register): Likewise.
1492 (arm_record_vdata_transfer_insn): Likewise.
1493 (arm_record_exreg_ld_st_insn): Likewise.
1494 * auto-load.c (execute_script_contents): Likewise.
1495 (print_scripts): Likewise.
1496 * avr-tdep.c (avr_frame_prev_register): Likewise.
1497 (avr_push_dummy_call): Likewise.
1498 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
1499 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1500 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
1501 * break-catch-throw.c (fetch_probe_arguments): Likewise.
1502 * breakpoint.c (breakpoint_xfer_memory): Likewise.
1503 (breakpoint_init_inferior): Likewise.
1504 (breakpoint_inserted_here_p): Likewise.
1505 (software_breakpoint_inserted_here_p): Likewise.
1506 (hardware_breakpoint_inserted_here_p): Likewise.
1507 (bpstat_what): Likewise.
1508 (break_range_command): Likewise.
1509 (save_breakpoints): Likewise.
1510 * coffread.c (coff_symfile_read): Likewise.
1511 * cris-tdep.c (cris_push_dummy_call): Likewise.
1512 (cris_scan_prologue): Likewise.
1513 (cris_register_size): Likewise.
1514 (_initialize_cris_tdep): Likewise.
1515 * d-exp.y: Likewise.
1516 * dbxread.c (dbx_read_symtab): Likewise.
1517 (process_one_symbol): Likewise.
1518 (coffstab_build_psymtabs): Likewise.
1519 (elfstab_build_psymtabs): Likewise.
1520 * dicos-tdep.c (dicos_init_abi): Likewise.
1521 * disasm.c (do_mixed_source_and_assembly): Likewise.
1522 (gdb_disassembly): Likewise.
1523 * dtrace-probe.c (dtrace_process_dof): Likewise.
1524 * dwarf2read.c (error_check_comp_unit_head): Likewise.
1525 (build_type_psymtabs_1): Likewise.
1526 (skip_one_die): Likewise.
1527 (process_imported_unit_die): Likewise.
1528 (dwarf2_physname): Likewise.
1529 (read_file_scope): Likewise.
1530 (setup_type_unit_groups): Likewise.
1531 (create_dwo_cu_reader): Likewise.
1532 (create_dwo_cu): Likewise.
1533 (create_dwo_unit_in_dwp_v1): Likewise.
1534 (create_dwo_unit_in_dwp_v2): Likewise.
1535 (lookup_dwo_unit_in_dwp): Likewise.
1536 (free_dwo_file): Likewise.
1537 (check_producer): Likewise.
1538 (dwarf2_add_typedef): Likewise.
1539 (dwarf2_add_member_fn): Likewise.
1540 (read_unsigned_leb128): Likewise.
1541 (read_signed_leb128): Likewise.
1542 (dwarf2_const_value): Likewise.
1543 (follow_die_sig_1): Likewise.
1544 (dwarf_decode_macro_bytes): Likewise.
1545 * extension.c (restore_active_ext_lang): Likewise.
1546 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1547 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
1548 * gdbtypes.c (lookup_typename): Likewise.
1549 (resolve_dynamic_range): Likewise.
1550 (check_typedef): Likewise.
1551 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
1552 (h8300_gdbarch_init): Likewise.
1553 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
1554 (hppa_frame_this_id): Likewise.
1555 (_initialize_hppa_tdep): Likewise.
1556 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
1557 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
1558 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
1559 * i386-tdep.c (i386_bnd_type): Likewise.
1560 (i386_gdbarch_init): Likewise.
1561 (i386_mpx_bd_base): Likewise.
1562 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
1563 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
1564 * ia64-tdep.c (examine_prologue): Likewise.
1565 (ia64_frame_cache): Likewise.
1566 (ia64_push_dummy_call): Likewise.
1567 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
1568 (default_print_one_register_info): Likewise.
1569 * infrun.c (infrun_thread_ptid_changed): Likewise.
1570 (thread_still_needs_step_over): Likewise.
1571 (stop_all_threads): Likewise.
1572 (restart_threads): Likewise.
1573 (keep_going_stepped_thread): Likewise.
1574 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
1575 * language.c (language_init_primitive_type_symbols): Likewise.
1576 * linespec.c (add_sal_to_sals): Likewise.
1577 * linux-nat.c (status_callback): Likewise.
1578 (kill_unfollowed_fork_children): Likewise.
1579 (linux_nat_kill): Likewise.
1580 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
1581 * linux-thread-db.c (thread_db_notice_clone): Likewise.
1582 (record_thread): Likewise.
1583 * location.c (string_to_event_location_basic): Likewise.
1584 * m32c-tdep.c (m32c_prev_register): Likewise.
1585 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
1586 * m32r-tdep.c (decode_prologue): Likewise.
1587 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1588 * machoread.c (macho_symtab_read): Likewise.
1589 (macho_symfile_read): Likewise.
1590 (macho_symfile_offsets): Likewise.
1591 * maint.c (set_per_command_cmd): Likewise.
1592 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
1593 (mi_cmd_stack_list_variables): Likewise.
1594 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
1595 (output_register): Likewise.
1596 (mi_cmd_execute): Likewise.
1597 (mi_cmd_trace_define_variable): Likewise.
1598 (print_variable_or_computed): Likewise.
1599 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
1600 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
1601 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
1602 * mt-tdep.c (mt_registers_info): Likewise.
1603 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
1604 (nios2_push_dummy_call): Likewise.
1605 (nios2_frame_unwind_cache): Likewise.
1606 (nios2_stub_frame_cache): Likewise.
1607 (nios2_stub_frame_sniffer): Likewise.
1608 (nios2_gdbarch_init): Likewise.
1609 * ppc-ravenscar-thread.c: Likewise.
1610 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1611 * python/py-evts.c (add_new_registry): Likewise.
1612 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1613 (bpfinishpy_detect_out_scope_cb): Likewise.
1614 * python/py-framefilter.c (py_print_value): Likewise.
1615 * python/py-inferior.c (infpy_write_memory): Likewise.
1616 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
1617 * python/py-infthread.c (thpy_get_ptid): Likewise.
1618 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
1619 (ltpy_get_all_source_lines): Likewise.
1620 (ltpy_is_valid): Likewise.
1621 (ltpy_iternext): Likewise.
1622 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
1623 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
1624 (unwind_infopy_str): Likewise.
1625 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
1626 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1627 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1628 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1629 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
1630 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
1631 (s390_frame_prev_register): Likewise.
1632 (s390_dwarf2_frame_init_reg): Likewise.
1633 (s390_record_vr): Likewise.
1634 (s390_process_record): Likewise.
1635 * score-tdep.c (score_push_dummy_call): Likewise.
1636 (score3_analyze_prologue): Likewise.
1637 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
1638 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
1639 (sh64_push_dummy_call): Likewise.
1640 (sh64_extract_return_value): Likewise.
1641 (sh64_do_fp_register): Likewise.
1642 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
1643 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
1644 (darwin_solib_read_all_image_info_addr): Likewise.
1645 * solib-dsbt.c (enable_break): Likewise.
1646 * solib-frv.c (enable_break2): Likewise.
1647 (frv_fdpic_find_canonical_descriptor): Likewise.
1648 * solib-svr4.c (svr4_handle_solib_event): Likewise.
1649 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
1650 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
1651 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
1652 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1653 * stack.c (read_frame_local): Likewise.
1654 * symfile.c (symbol_file_add_separate): Likewise.
1655 (remove_symbol_file_command): Likewise.
1656 * symmisc.c (maintenance_print_one_line_table): Likewise.
1657 * symtab.c (symbol_cache_flush): Likewise.
1658 (basic_lookup_transparent_type): Likewise.
1659 (sort_search_symbols_remove_dups): Likewise.
1660 * target.c (target_memory_map): Likewise.
1661 (target_detach): Likewise.
1662 (target_resume): Likewise.
1663 (acquire_fileio_fd): Likewise.
1664 (target_store_registers): Likewise.
1665 * thread.c (print_thread_info_1): Likewise.
1666 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
1667 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
1668 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1669 (tilegx_analyze_prologue): Likewise.
1670 (tilegx_stack_frame_destroyed_p): Likewise.
1671 (tilegx_frame_cache): Likewise.
1672 * tracefile.c (trace_save): Likewise.
1673 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
1674 (start_tracing): Likewise.
1675 (print_one_static_tracepoint_marker): Likewise.
1676 * tui/tui.c (tui_enable): Likewise.
1677 * valops.c (value_struct_elt_bitpos): Likewise.
1678 (find_overload_match): Likewise.
1679 (find_oload_champ): Likewise.
1680 * value.c (value_contents_copy_raw): Likewise.
1681 * windows-tdep.c (windows_get_tlb_type): Likewise.
1682 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
1683 * xcoffread.c (record_minimal_symbol): Likewise.
1684 (scan_xcoff_symtab): Likewise.
1685 * xtensa-tdep.c (execute_code): Likewise.
1686 (xtensa_gdbarch_init): Likewise.
1687 (_initialize_xtensa_tdep): Likewise.
1688
1689 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1690
1691 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
1692 (spu_bfd_open): Likewise.
1693
1694 2016-05-04 Yao Qi <yao.qi@linaro.org>
1695
1696 PR gdb/19947
1697 * corefile.c (read_memory): Rename it to ...
1698 (read_memory_object): ... it. Add parameter object.
1699 (read_memory): Call read_memory_object.
1700 (read_stack): Likewise.
1701 (read_code): Likewise.
1702
1703 2016-05-03 Yunlian Jiang <yunlian@google.com>
1704 Doug Evans <dje@google.com>
1705
1706 PR symtab/19914
1707 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
1708 is separate debug file.
1709
1710 2016-05-03 Don Breazeal <donb@codesourcery.com>
1711
1712 * serial.h (gdb_pipe): Fix argument names in comment.
1713
1714 2016-05-03 Pedro Alves <palves@redhat.com>
1715
1716 PR python/20037
1717 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
1718 oldloc.
1719
1720 2016-05-03 Pedro Alves <palves@redhat.com>
1721
1722 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
1723 code.
1724
1725 2016-05-03 Pedro Alves <palves@redhat.com>
1726
1727 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
1728 * configure: Regenerate.
1729
1730 2016-05-03 Pedro Alves <palves@redhat.com>
1731
1732 * configure.ac (checking for the dynamic export flag): Add
1733 $PYTHON_CPPFLAGS to CPPFLAGS.
1734 * configure: Regenerate.
1735
1736 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1737
1738 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
1739 warning.
1740 (find_pc_mapped_section): Likewise.
1741 (list_overlays_command): Likewise.
1742
1743 2016-05-02 Eli Zaretskii <eliz@gnu.org>
1744
1745 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
1746 error in allocation of space for "$HOME/.gdbinit" string. This
1747 caused GDB to abort on startup whenever a '~/gdb.ini' file was
1748 actually found, because xsnprintf would hit an assertion
1749 violation.
1750
1751 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
1752
1753 * cli/cli-decode.c (help_cmd_list): Do not list commands that
1754 are deprecated.
1755
1756 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1757
1758 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
1759
1760 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
1761
1762 * c-valprint.c (c_value_print): Always convert val back to reference
1763 type if we converted it to a pointer type.
1764
1765 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1766
1767 * configure.ac: Enhance configure check for babeltrace to reject
1768 non-C++-enabled versions.
1769 * configure: Regenerate.
1770
1771 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
1772 Keven Boell <keven.boell@intel.com>
1773 Bernhard Heckel <bernhard.heckel@intel.com>
1774
1775 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1776 function.
1777 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
1778 (f77_print_array_1): Use value_subscript to subscript a
1779 value array.
1780 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
1781 (f_val_print): Use value_field to construct a field value.
1782
1783 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
1784
1785 * valarith.c (value_address): Resolve dynamic types.
1786
1787 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
1788 Keven Boell <kevel.boell@intel.com>
1789
1790 * NEWS: Add new supported features for fortran.
1791 * gdbtypes.c (remove_dyn_prop): New.
1792 (resolve_dynamic_struct): Keep type length for fortran structs.
1793 * gdbtypes.h: Forward declaration of new function.
1794 * value.c (value_address): Return dynamic resolved location of a value.
1795 (set_value_component_location): Adjust the value address
1796 for single value prints.
1797 (value_primitive_field): Support value types with a dynamic location.
1798 (set_internalvar): Remove dynamic location property of
1799 internal variables.
1800
1801 2016-04-25 Pedro Alves <palves@redhat.com>
1802 Yao Qi <yao.qi@linaro.org>
1803
1804 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
1805 object. Insert it if it is not inserted yet. Increase the
1806 refcount and link it into the proc's raw breakpoint list.
1807
1808 2016-04-25 Yao Qi <yao.qi@linaro.org>
1809
1810 * breakpoint.c (should_be_inserted): Return 0 if the location's
1811 owner is not single step breakpoint or single step breakpoint's
1812 thread isn't the thread which is stepping past a breakpoint.
1813 * gdbarch.sh (software_single_step): Update comments.
1814 * gdbarch.h: Regenerated.
1815 * infrun.c (struct step_over_info) <thread>: New field.
1816 (set_step_over_info): New argument 'thread'. Callers updated.
1817 (clear_step_over_info): Set field thread to -1.
1818 (thread_is_stepping_over_breakpoint): New function.
1819 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
1820
1821 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1822
1823 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
1824 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
1825
1826 2016-04-22 Yao Qi <yao.qi@linaro.org>
1827
1828 * valops.c (read_value_memory): New local variable 'stack'.
1829 Set it to either TARGET_OBJECT_STACK_MEMORY or
1830 TARGET_OBJECT_MEMORY.
1831
1832 2016-04-22 Pedro Alves <palves@redhat.com>
1833
1834 * ada-exp.y: Remove all yy symbol remappings.
1835 (GDB_YY_REMAP_PREFIX): Define.
1836 Include "yy-remap.h".
1837 * ada-lang.c (ada_language_defn): Adjust.
1838 * ada-lang.h (ada_error): Rename to ...
1839 (ada_yyerror): ... this.
1840 * c-exp.y: Remove all yy symbol remappings.
1841 (GDB_YY_REMAP_PREFIX): Define.
1842 Include "yy-remap.h".
1843 * c-lang.c (c_language_defn, cplus_language_defn)
1844 (asm_language_defn, minimal_language_defn): Adjust.
1845 * c-lang.h (c_error): Rename to ...
1846 (c_yyerror): ... this.
1847 * d-exp.y: Remove all yy symbol remappings.
1848 (GDB_YY_REMAP_PREFIX): Define.
1849 Include "yy-remap.h".
1850 * d-lang.c (d_language_defn): Adjust.
1851 * d-lang.h (d_error): Rename to ...
1852 (d_yyerror): ... this.
1853 * f-exp.y: Remove all yy symbol remappings.
1854 (GDB_YY_REMAP_PREFIX): Define.
1855 Include "yy-remap.h".
1856 * f-lang.c (f_language_defn): Adjust.
1857 * f-lang.h (f_error): Rename to ...
1858 (f_yyerror): ... this.
1859 * go-exp.y: Remove all yy symbol remappings.
1860 (GDB_YY_REMAP_PREFIX): Define.
1861 Include "yy-remap.h".
1862 * go-lang.c (go_language_defn): Adjust.
1863 * go-lang.h (go_error): Rename to ...
1864 (go_yyerror): ... this.
1865 * jv-exp.y: Remove all yy symbol remappings.
1866 (GDB_YY_REMAP_PREFIX): Define.
1867 Include "yy-remap.h".
1868 * jv-lang.c (java_language_defn): Adjust.
1869 * jv-lang.h (java_error): Rename to ...
1870 (java_yyerror): ... this.
1871 * m2-exp.y: Remove all yy symbol remappings.
1872 (GDB_YY_REMAP_PREFIX): Define.
1873 Include "yy-remap.h".
1874 * m2-lang.c (m2_language_defn): Adjust.
1875 * m2-lang.h (m2_error): Rename to ...
1876 (m2_yyerror): ... this.
1877 * objc-exp.y: Remove all yy symbol remappings.
1878 (GDB_YY_REMAP_PREFIX): Define.
1879 Include "yy-remap.h".
1880 * objc-lang.c (objc_language_defn): Adjust.
1881 * opencl-lang.c (opencl_language_defn): Adjust.
1882 * p-exp.y: Remove all yy symbol remappings.
1883 (GDB_YY_REMAP_PREFIX): Define.
1884 Include "yy-remap.h".
1885 * p-lang.c (pascal_language_defn): Adjust.
1886 * p-lang.h (pascal_error): Rename to ...
1887 (pascal_yyerror): ... this.
1888 * yy-remap.h: New file.
1889
1890 2016-04-22 Pedro Alves <palves@redhat.com>
1891
1892 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
1893 the foreign frames issue.
1894 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
1895
1896 2016-04-22 Pedro Alves <palves@redhat.com>
1897
1898 * common/common-exceptions.c (enum catcher_state, struct catcher)
1899 (current_catcher): Define in C++ mode too.
1900 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
1901 throw_exception.
1902 (throw_exception_sjlj, throw_exception_cxx): New functions,
1903 factored out from throw_exception.
1904 (throw_exception): Reimplement.
1905 * common/common-exceptions.h (exceptions_state_mc_init)
1906 (exceptions_state_mc_action_iter)
1907 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1908 Declare in C++ mode too.
1909 (TRY): Rename to ...
1910 (TRY_SJLJ): ... this.
1911 (CATCH): Rename to ...
1912 (CATCH_SJLJ): ... this.
1913 (END_CATCH): Rename to ...
1914 (END_CATCH_SJLJ): ... this.
1915 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
1916 equivalents.
1917 (throw_exception): Update comments.
1918 (throw_exception_sjlj): Declare.
1919 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
1920 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
1921 intercepted exception.
1922 (gdb_rl_callback_handler): New function.
1923 (gdb_rl_callback_handler_install): Always install
1924 gdb_rl_callback_handler as readline callback.
1925
1926 2016-04-22 Pedro Alves <palves@redhat.com>
1927
1928 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
1929 (gdb_rl_callback_read_char_wrapper): ... this.
1930 (change_line_handler, gdb_setup_readline): Adjust.
1931
1932 2016-04-22 Yao Qi <yao.qi@linaro.org>
1933
1934 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
1935 bits 20 to 23.
1936
1937 2016-04-22 Joel Brobecker <brobecker@adacore.com>
1938
1939 * MAINTAINER: Remove myself as AIX Maintainer.
1940
1941 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
1942
1943 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
1944 `num_regs' to 90 rather than 79. Where a target description is
1945 present adjust the setting appropriately.
1946
1947 2016-04-21 Pedro Alves <palves@redhat.com>
1948
1949 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
1950 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
1951
1952 2016-04-21 Pedro Alves <palves@redhat.com>
1953
1954 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
1955 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
1956 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
1957 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
1958 pointer, and cast return to gdb_byte pointer.
1959
1960 2016-04-21 Pedro Alves <palves@redhat.com>
1961
1962 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
1963 void * instead of gdb_byte *.
1964
1965 2016-04-21 Pedro Alves <palves@redhat.com>
1966
1967 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
1968 (file_file_name, file_full_name): Add char * cast to sentinel in
1969 concat/reconcat calls.
1970 * event-top.c (top_level_prompt): Likewise.
1971 * guile/guile.c (initialize_scheme_side): Likewise.
1972 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
1973 * macrotab.c (macro_source_fullname): Likewise.
1974 * main.c (get_init_files, captured_main): Likewise.
1975 * psymtab.c (psymtab_to_fullname): Likewise.
1976 * python/python.c (_initialize_python)
1977 (gdbpy_finish_initialization): Likewise.
1978 * source.c (symtab_to_fullname): Likewise.
1979
1980 2016-04-20 Pedro Alves <palves@redhat.com>
1981
1982 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
1983 * configure: Renegerate.
1984
1985 2016-04-20 Pedro Alves <palves@redhat.com>
1986
1987 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
1988
1989 2016-04-20 Pedro Alves <palves@redhat.com>
1990
1991 * aarch64-tdep.c (aarch64_record_load_store): Change type of
1992 'reg_rm_val' local to ULONGEST.
1993
1994 2016-04-20 Pedro Alves <palves@redhat.com>
1995
1996 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
1997
1998 2016-04-20 Doug Evans <xdje42@gmail.com>
1999
2000 * symmisc.c (dump_symtab_1): Print owning compunit for identical
2001 blockvectors.
2002
2003 2016-04-20 Yao Qi <yao.qi@linaro.org>
2004
2005 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
2006
2007 2016-04-20 Yao Qi <yao.qi@linaro.org>
2008
2009 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
2010 * arch/arm-linux.h: ... here.
2011
2012 2016-04-19 John Baldwin <jhb@FreeBSD.org>
2013
2014 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
2015 to void *.
2016 (amd64bsd_store_inferior_registers): Likewise.
2017 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
2018 (resume_all_threads_cb): Likewise.
2019 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
2020 (i386bsd_collect_gregset): Likewise.
2021 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
2022 (i386bsd_store_inferior_registers): Likewise.
2023
2024 2016-04-19 John Baldwin <jhb@FreeBSD.org>
2025
2026 * main.c (setup_alternate_signal_stack): Cast to char *.
2027
2028 2016-04-19 Doug Evans <xdje42@gmail.com>
2029
2030 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
2031 All callers updated.
2032
2033 2016-04-19 Doug Evans <xdje42@gmail.com>
2034
2035 PR gdb/17911
2036 * source.c (is_regular_file): New arg errno_ptr.
2037 All callers updated.
2038
2039 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
2040
2041 * linux-record.c (record_linux_system_call): Merge handling for
2042 readlink/recv/read and pipe/pipe2.
2043
2044 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
2045
2046 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
2047 * features/i386/amd64-mpx.xml: Remove AVX feature.
2048 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
2049 * features/i386/i386-mpx.xml: Remove AVX feature.
2050 * features/i386/amd64-mpx-linux.c: Regenerate.
2051 * features/i386/amd64-mpx.c: Regenerate.
2052 * features/i386/i386-mpx-linux.c: Regenerate.
2053 * features/i386/i386-mpx.c: Regenerate.
2054 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2055 * regformats/i386/amd64-mpx.dat: Regenerate.
2056 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2057 * regformats/i386/i386-mpx.dat: Regenerate.
2058
2059 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
2060
2061 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
2062 New include.
2063 (amd64_linux_core_read_description): Add case for
2064 X86_XSTATE_AVX_MPX_MASK.
2065 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
2066 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
2067 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
2068 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
2069 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
2070 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
2071 (X86_XSTATE_AVX_MPX_MASK): New case.
2072 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
2073 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
2074 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
2075 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
2076 New expedites.
2077 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
2078 include.
2079 (i386_linux_core_read_description): Add case
2080 X86_XSTATE_AVX_MPX_MASK.
2081 (_initialize_i386_linux_tdep): Call
2082 initialize_tdesc_i386_avx_mpx_linux.
2083 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
2084 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
2085 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
2086 * x86-linux-nat.c (x86_linux_read_description): Add case for
2087 X86_XSTATE_AVX_MPX_MASK.
2088 * features/i386/amd64-avx-mpx-linux.xml: New file.
2089 * features/i386/i386-avx-mpx-linux.xml: New file.
2090 * features/i386/i386-avx-mpx.xml: New file.
2091 * features/i386/amd64-avx-mpx.xml: New file.
2092 * features/i386/amd64-avx-mpx-linux.c: Generated.
2093 * features/i386/amd64-avx-mpx.c: Generated.
2094 * features/i386/i386-avx-mpx-linux.c: Generated.
2095 * features/i386/i386-avx-mpx.c: Generated.
2096 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
2097 * regformats/i386/amd64-avx-mpx.dat: Generated.
2098 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
2099 * regformats/i386/i386-avx-mpx.dat: Generated.
2100
2101 2016-04-18 Pedro Alves <palves@redhat.com>
2102
2103 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
2104 * configure: Regenerate.
2105
2106 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
2107
2108 * valops.c (value_addr): For C++ references, set the copied value's
2109 enclosing_type as well.
2110
2111 2016-04-18 Yao Qi <yao.qi@linaro.org>
2112
2113 Revert:
2114 2016-04-15 Yao Qi <yao.qi@linaro.org>
2115
2116 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
2117 PC is far from the end of function.
2118
2119 2016-04-16 Pedro Alves <palves@redhat.com>
2120
2121 * ada-exp.y (yydefred): Define as ada_yydefred.
2122
2123 2016-04-15 Pedro Alves <palves@redhat.com>
2124
2125 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
2126 'name_str' locals.
2127
2128 2016-04-15 Pedro Alves <palves@redhat.com>
2129
2130 * btrace.c (pt_btrace_insn_flags): Change return type to
2131 btrace_insn_flags. Use btrace_insn_flags for local.
2132
2133 2016-04-15 Pedro Alves <palves@redhat.com>
2134
2135 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
2136 accept TRAP_BRKPT.
2137 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
2138
2139 2016-04-15 Yao Qi <yao.qi@linaro.org>
2140
2141 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
2142 PC is far from the end of function.
2143
2144 2016-04-14 Pedro Alves <palves@redhat.com>
2145
2146 * cli/cli-cmds.c (alias_usage_error): New function.
2147 (alias_command): Use it.
2148 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
2149 ctf_save_write_metadata call.
2150
2151 2016-04-14 Pedro Alves <palves@redhat.com>
2152
2153 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
2154 argument to function expecting LONGEST.
2155 * value.c (unpack_long): Add casts to LONGEST.
2156
2157 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
2158
2159 * exec.c (exec_file_locate_attach): Guard a couple functions
2160 that can throw errors.
2161 (exception_print_same): New helper function.
2162
2163 2016-04-13 Pedro Alves <palves@redhat.com>
2164
2165 PR remote/19840
2166 * remote.c (struct remote_state) <last_resume_exec_dir>: New
2167 field.
2168 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
2169 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
2170 (remote_resume): Store the last execution direction.
2171 (remote_execution_direction): New function.
2172 (init_remote_ops): Install it as to_execution_direction target_ops
2173 method.
2174
2175 2016-04-12 Pedro Alves <palves@redhat.com>
2176
2177 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
2178 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
2179
2180 2016-04-12 Pedro Alves <palves@redhat.com>
2181
2182 * common/common-exceptions.c (struct catcher) <buf>: Now a
2183 'jmp_buf' instead of SIGJMP_BUF.
2184 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
2185 (throw_exception): Use longjmp instead of SIGLONGJMP.
2186 * common/common-exceptions.h: Include <setjmp.h> instead of
2187 "gdb_setjmp.h".
2188 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
2189 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
2190 SIGSETJMP.
2191 * cp-support.c: Include "gdb_setjmp.h".
2192
2193 2016-04-12 Pedro Alves <palves@redhat.com>
2194
2195 * common/common-exceptions.c (exception_rethrow): Remove
2196 prepare_to_throw_exception call.
2197 * common/common-exceptions.h (prepare_to_throw_exception): Delete
2198 declaration.
2199 * exceptions.c (prepare_to_throw_exception): Delete.
2200
2201 2016-04-12 Pedro Alves <palves@redhat.com>
2202
2203 * target.c (target_check_pending_interrupt): Delete.
2204 * target.h (struct target_ops) <to_check_pending_interrupt>:
2205 Remove method.
2206 (target_check_pending_interrupt): Remove declaration.
2207 * target-delegates.c: Regenerate.
2208
2209 2016-04-12 Pedro Alves <palves@redhat.com>
2210
2211 * defs.h: Update comments on SIGINT handling.
2212 (immediate_quit): Delete declaration.
2213 * event-loop.c (call_async_signal_handler): Delete.
2214 * event-loop.h (call_async_signal_handler): Delete declaration.
2215 (mark_async_signal_handler): Update comments.
2216 (gdb_call_async_signal_handler): Delete declaration.
2217 * event-top.c (handle_sigint): Call mark_async_signal_handler
2218 instead of gdb_call_async_signal_handler.
2219 * exceptions.c (prepare_to_throw_exception): Remove reference to
2220 immediate_quit.
2221 (exception_fprintf): Remove comments about immediate_quit.
2222 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
2223 (gdb_select): Don't wait on sigint_event.
2224 (gdb_call_async_signal_handler): Delete.
2225 (_initialize_mingw_hdep): Delete.
2226 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
2227 * utils.c (immediate_quit): Delete.
2228
2229 2016-04-12 Pedro Alves <palves@redhat.com>
2230
2231 * defs.h (quit_handler_ftype, quit_handler)
2232 (make_cleanup_override_quit_handler, default_quit_handler): New.
2233 (QUIT): Adjust comments.
2234 * event-top.c (default_quit_handler): New function.
2235 (quit_handler): New global.
2236 (struct quit_handler_cleanup_data): New.
2237 (restore_quit_handler, restore_quit_handler_dtor)
2238 (make_cleanup_override_quit_handler): New.
2239 (async_request_quit): Call QUIT.
2240 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
2241 (async_sigint_remote_twice_token, async_sigint_remote_token):
2242 Delete.
2243 (remote_close): Update comments.
2244 (remote_start_remote): Don't set immediate_quit. Set starting_up
2245 earlier.
2246 (remote_serial_quit_handler, remote_unpush_and_throw): New
2247 functions.
2248 (remote_open_1): Clear got_ctrlc_during_io. Set
2249 remote_async_terminal_ours_p unconditionally.
2250 (async_initialize_sigint_signal_handler)
2251 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
2252 (remote_check_pending_interrupt, async_remote_interrupt)
2253 (async_remote_interrupt_twice)
2254 (async_cleanup_sigint_signal_handler, ofunc)
2255 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
2256 (remote_terminal_inferior, remote_terminal_ours): Remove async
2257 checks.
2258 (remote_wait_as): Don't install a SIGINT handler in sync mode.
2259 (readchar, remote_serial_write): Override the quit handler with
2260 remote_serial_quit_handler.
2261 (getpkt_or_notif_sane_1): Don't call QUIT.
2262 (initialize_remote_ops): Don't install
2263 remote_check_pending_interrupt.
2264 (_initialize_remote): Don't create async_sigint_remote_token and
2265 async_sigint_remote_twice_token.
2266 * ser-base.c (ser_base_wait_for): Call QUIT and use
2267 interruptible_select.
2268 (ser_base_write): Call QUIT.
2269 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
2270 * ser-unix.c (wait_for): Don't use VTIME. Always take the
2271 gdb_select path, but call QUIT and interruptible_select.
2272 * utils.c (maybe_quit): Call the current quit handler. Don't call
2273 target_check_pending_interrupt.
2274 (defaulted_query, prompt_for_continue): Override the quit handler
2275 with the default quit handler.
2276
2277 2016-04-12 Pedro Alves <palves@redhat.com>
2278
2279 * tui/tui-hooks.c (tui_target_has_run): Delete.
2280 (tui_about_to_proceed): Delete.
2281 (tui_about_to_proceed_observer): Delete.
2282 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
2283 about_to_proceed observer.
2284
2285 2016-04-12 Pedro Alves <palves@redhat.com>
2286
2287 * mi/mi-interp.c (mi_new_thread): Put
2288 target_terminal_ours_for_output in effect while outputting.
2289 (mi_thread_exit): Use target_terminal_ours_for_output instead of
2290 target_terminal_ours.
2291 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
2292 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
2293 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
2294 (mi_breakpoint_created, mi_breakpoint_deleted)
2295 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
2296 (mi_command_param_changed, mi_memory_changed)
2297 (report_initial_inferior): Use target_terminal_ours_for_output
2298 instead of target_terminal_ours. Restore terminal settings.
2299 * mi/mi-main.c (mi_execute_command): Use
2300 target_terminal_ours_for_output instead of target_terminal_ours.
2301 Restore terminal settings.
2302
2303 2016-04-12 Pedro Alves <palves@redhat.com>
2304
2305 PR gdb/19828
2306 * gnu-nat.c (inf_validate_task_sc): Don't call
2307 target_terminal_ours / target_terminal_inferior around query.
2308 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
2309 call target_terminal_ours / target_terminal_inferior around
2310 yquery.
2311 * linux-record.c (record_linux_system_call): Don't call
2312 target_terminal_ours / target_terminal_inferior around yquery.
2313 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
2314 / target_terminal_inferior around query.
2315 * record-full.c (record_full_check_insn_num): Remove
2316 'set_terminal' parameter. Don't call target_terminal_ours /
2317 target_terminal_inferior around query.
2318 (record_full_message, record_full_registers_change)
2319 (record_full_xfer_partial): Adjust.
2320 * remote.c (interrupt_query): Don't call target_terminal_ours /
2321 target_terminal_inferior around query.
2322 * utils.c (defaulted_query): Install cleanup to restore target
2323 terminal. Put target_terminal_ours_for_output in effect while
2324 defaulted producing, and target_terminal_ours in in effect while
2325 handling input.
2326 (prompt_for_continue): Install cleanup to restore target terminal.
2327 Put target_terminal_ours in in effect while handling input.
2328
2329 2016-04-12 Pedro Alves <palves@redhat.com>
2330
2331 * utils.c (defaulted_query, prompt_for_continue): Free temporary
2332 strings with cleanups, instead of xfree.
2333
2334 2016-04-12 Pedro Alves <palves@redhat.com>
2335
2336 * utils.c (vwarning, internal_vproblem): Use
2337 make_cleanup_restore_target_terminal and
2338 target_terminal_ours_for_output.
2339
2340 2016-04-12 Pedro Alves <palves@redhat.com>
2341
2342 * infcmd.c (post_create_inferior, prepare_one_step): Use
2343 target_terminal_ours_for_output instead of target_terminal_ours.
2344
2345 2016-04-12 Pedro Alves <palves@redhat.com>
2346
2347 * exceptions.c (print_flush): Use target_terminal_ours_for_output
2348 instead of target_terminal_ours, and restore target terminal with
2349 a cleanup.
2350
2351 2016-04-12 Pedro Alves <palves@redhat.com>
2352
2353 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
2354 instead of target_terminal_ours, and restore target terminal with
2355 a cleanup.
2356
2357 2016-04-12 Pedro Alves <palves@redhat.com>
2358
2359 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
2360 functions.
2361 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
2362
2363 2016-04-12 Pedro Alves <palves@redhat.com>
2364
2365 * ser-base.c (fd_event): Retry read_prim on EINTR.
2366 (do_ser_base_readchar): Retry read_prim on EINTR.
2367 (ser_base_write): Retry write_prim on EINTR.
2368 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
2369 (ser_unix_write_prim): Remove comment.
2370
2371 2016-04-12 Pedro Alves <palves@redhat.com>
2372
2373 * remote.c (remote_pass_ctrlc): New function.
2374 (init_remote_ops): Install it.
2375 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
2376 target.
2377 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
2378 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
2379 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
2380 * target-delegates.c: Regenerate.
2381
2382 2016-04-12 Pedro Alves <palves@redhat.com>
2383
2384 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
2385 mode.
2386 * linux-nat.c (linux_nat_interrupt): Delete.
2387 (linux_nat_add_target): Don't install linux_nat_interrupt.
2388 * remote.c (remote_interrupt_ns): Change return type to void.
2389 Throw error if interrupting the target is not supported.
2390 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
2391
2392 2016-04-12 Pedro Alves <palves@redhat.com>
2393
2394 * defs.h (clear_quit_flag): Remove declaration.
2395 * extension-priv.h (struct extension_language_ops)
2396 <clear_quit_flag>: Remove field and update comments.
2397 * extension.c (clear_quit_flag): Delete.
2398 * guile/guile.c (guile_extension_ops): Adjust.
2399 * python/python.c (python_extension_ops): Adjust.
2400 (gdbpy_clear_quit_flag): Delete.
2401
2402 2016-04-12 Pedro Alves <palves@redhat.com>
2403
2404 * main.c (captured_main): Don't clear the quit flag.
2405
2406 2016-04-12 Pedro Alves <palves@redhat.com>
2407
2408 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
2409 flag.
2410
2411 2016-04-12 Pedro Alves <palves@redhat.com>
2412
2413 * event-top.c (command_handler): Don't call clear_quit_flag.
2414
2415 2016-04-12 Pedro Alves <palves@redhat.com>
2416
2417 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
2418 * remote.c (remote_wait_as): Don't call clear_quit_flag.
2419
2420 2016-04-12 Pedro Alves <palves@redhat.com>
2421
2422 * python/python.c: Include "ser-event.h".
2423 (gdbpy_event_fds): Delete.
2424 (gdbpy_serial_event): New.
2425 (gdbpy_run_events): Change prototype. Use serial_event_clear
2426 instead of serial_readchar.
2427 (gdbpy_post_event): Use serial_event_set instead of serial_write.
2428 (gdbpy_initialize_events): Use make_serial_event instead of
2429 serial_pipe.
2430
2431 2016-04-12 Pedro Alves <palves@redhat.com>
2432
2433 * defs.h: Extend QUIT-related comments to mention
2434 interruptible_select.
2435 (quit_serial_event_set, quit_serial_event_clear): Declare.
2436 * event-top.c: Include "ser-event.h" and "gdb_select.h".
2437 (quit_serial_event): New global.
2438 (async_init_signals): Make quit_serial_event.
2439 (quit_serial_event_set, quit_serial_event_clear)
2440 (quit_serial_event_fd, interruptible_select): New functions.
2441 * extension.c (set_quit_flag): Set the quit serial event.
2442 (check_quit_flag): Clear the quit serial event.
2443 * gdb_select.h (interruptible_select): New declaration.
2444 * guile/scm-ports.c (ioscm_input_waiting): Use
2445 interruptible_select instead of gdb_select.
2446 * top.c (gdb_readline_no_editing): Likewise.
2447 * ui-file.c (stdio_file_read): Likewise.
2448
2449 2016-04-12 Pedro Alves <palves@redhat.com>
2450
2451 * event-loop.c: Include "ser-event.h".
2452 (async_signal_handlers_serial_event): New global.
2453 (async_signals_handler, initialize_async_signal_handlers): New
2454 functions.
2455 (mark_async_signal_handler): Set
2456 async_signal_handlers_serial_event.
2457 (invoke_async_signal_handlers): Clear
2458 async_signal_handlers_serial_event.
2459 * event-top.c (async_init_signals): Call
2460 initialize_async_signal_handlers.
2461
2462 2016-04-12 Pedro Alves <palves@redhat.com>
2463
2464 * Makefile.in (SFILES): Add ser-event.c.
2465 (HFILES_NO_SRCDIR): Add ser-event.h.
2466 (COMMON_OBS): Add ser-event.o.
2467 * ser-event.c, ser-event.h: New files.
2468 * serial.c (new_serial): New function, factored out from
2469 (serial_fdopen_ops): ... this.
2470 (serial_open_ops_1): New function, factored out from
2471 (serial_open): ... this.
2472 (serial_open_ops): New function.
2473 * serial.h (struct serial): Forware declare.
2474 (serial_open_ops): New declaration.
2475
2476 2016-04-12 Pedro Alves <palves@redhat.com>
2477
2478 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
2479 Remove references to name.
2480 * serial.h (struct serial) <name>: Delete.
2481
2482 2016-04-12 Pedro Alves <palves@redhat.com>
2483
2484 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
2485 Delete.
2486 (async_remote_fileio_interrupt): Delete.
2487 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
2488 handler. Instead just always set the ctrl_c flag.
2489 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
2490 re-enabling the SIGINT handler.
2491 (remote_fileio_func_open, remote_fileio_func_close)
2492 (remote_fileio_func_read, remote_fileio_func_write)
2493 (remote_fileio_func_lseek, remote_fileio_func_rename)
2494 (remote_fileio_func_unlink, remote_fileio_func_stat)
2495 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2496 (remote_fileio_func_isatty, remote_fileio_func_system)
2497 (remote_fileio_request): Remove references to
2498 remote_fio_no_longjmp.
2499 (initialize_remote_fileio): Don't create an async signal handler.
2500
2501 2016-04-12 Pedro Alves <palves@redhat.com>
2502
2503 * event-top.c (stdin_event_handler): Call QUIT;
2504 (prompt_for_continue): Don't run with immediate_quit set.
2505
2506 2016-04-12 Pedro Alves <palves@redhat.com>
2507
2508 * tui/tui-io.c (tui_redisplay_readline): Check
2509 gdb_in_secondary_prompt_p instead of immediate_quit.
2510 * tui/tui.c: Include top.h.
2511 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
2512 immediate_quit.
2513
2514 2016-04-12 Pedro Alves <palves@redhat.com>
2515
2516 * top.c (read_command_file): Inline command_loop here.
2517 (command_loop): Delete.
2518
2519 2016-04-12 Pedro Alves <palves@redhat.com>
2520
2521 * top.c: Include "gdb_select.h".
2522 (gdb_readline_no_editing): Wait for input with gdb_select instead
2523 of blocking in fgetc.
2524 (command_line_input): Don't set immediate_quit.
2525
2526 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
2527
2528 * value.c (value_next): Make pass-by-reference parameters const-correct.
2529 (value_parent): Likewise.
2530 (value_enclosing_type): Likewise.
2531 (value_lazy): Likewise.
2532 (value_stack): Likewise.
2533 (value_embedded_offset): Likewise.
2534 (value_pointed_to_offset): Likewise.
2535 (value_raw_address): Likewise.
2536 (deprecated_value_modifiable): Likewise.
2537 (value_free_to_mark): Likewise.
2538 (value_release_to_mark): Likewise.
2539 (internalvar_name): Likewise.
2540 (readjust_indirect_value_type): Likewise.
2541 (value_initialized): Likewise.
2542 * value.h (value_next): Likewise.
2543 (value_parent): Likewise.
2544 (value_enclosing_type): Likewise.
2545 (value_lazy): Likewise.
2546 (value_stack): Likewise.
2547 (value_embedded_offset): Likewise.
2548 (value_pointed_to_offset): Likewise.
2549 (value_raw_address): Likewise.
2550 (deprecated_value_modifiable): Likewise.
2551 (value_free_to_mark): Likewise.
2552 (value_release_to_mark): Likewise.
2553 (internalvar_name): Likewise.
2554 (readjust_indirect_value_type): Likewise.
2555 (value_initialized): Likewise.
2556
2557 2016-04-07 Yao Qi <yao.qi@linaro.org>
2558
2559 * record-full.c (record_full_insert_breakpoint): Return
2560 early if entry on the address is found in
2561 record_full_breakpoints.
2562
2563 2016-04-07 Yao Qi <yao.qi@linaro.org>
2564
2565 * record-full.c (record_full_insert_breakpoint): Set
2566 bp_tgt->reqstd_address and bp_tgt->placed_size.
2567
2568 2016-04-06 Don Breazeal <donb@codesourcery.com>
2569
2570 * value.c (value_actual_type): Don't try to get rtti type
2571 of the value if it has been optimized out.
2572 (value_optimized_out): If a memory access error occurs,
2573 just check vaue->optimized_out.
2574
2575 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2576
2577 Revert the previous commit adding unknown_v_replies_ok.
2578
2579 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2580
2581 * remote.c (struct remote_state): New field unknown_v_replies_ok.
2582 (packet_config_support): Read it.
2583 (remote_start_remote): Set it.
2584
2585 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2586
2587 * remote.c: Revert check-in by a mistake in the previous commit.
2588
2589 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Pedro Alves <palves@redhat.com>
2591
2592 * exec.c (exec_file_locate_attach): Print warning for unsupported
2593 target_pid_to_exec_file.
2594 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
2595 message part.
2596
2597 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
2598
2599 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
2600 trailing spaces.
2601
2602 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
2603
2604 PR gdb/19820
2605 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
2606 the type of BINOP_REPEAT's second operand.
2607
2608 2016-03-31 Yichao Yu <yyc1992@gmail.com>
2609
2610 PR gdb/19858
2611 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
2612 got the breakpoint at the right address.
2613 (jit_inferior_created): New function.
2614 (_initialize_jit): Install jit_inferior_created as
2615 inferior_created observer.
2616
2617 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
2618
2619 * NEWS: Mention support for tracepoints on powerpc*-linux.
2620
2621 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
2622
2623 PR python/19743
2624 * python/python.c (execute_gdb_command): Use console uiout
2625 when executing gdb command.
2626 * utils.c (restore_ui_out_closure): New structure.
2627 (do_restore_ui_out): New function.
2628 (make_cleanup_restore_ui_out): Likewise.
2629 * utils.h (make_cleanup_restore_ui_out): Declare.
2630
2631 2016-03-31 Pedro Alves <palves@redhat.com>
2632
2633 * NEWS: Mention that support for "target m32rsdi", "target mips",
2634 "target pmon", "target ddb", "target rockhopper", and "target lsi"
2635 was removed.
2636 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
2637 remote-mips.o.
2638 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
2639 * configure.tgt: Remove all references to remote-m32r-sdi.o and
2640 remote-mips.o.
2641 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
2642 function.
2643 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
2644 declaration.
2645 * remote-m32r-sdi.c, remote-mips.c: Delete files.
2646 * symfile.c (generic_load, generic_load): Remove comments.
2647
2648 2016-03-30 Yao Qi <yao.qi@linaro.org>
2649
2650 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
2651 0 rather than NULL.
2652
2653 2016-03-30 Yao Qi <yao.qi@linaro.org>
2654
2655 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
2656 (arm_epilogue_frame_this_id): New function.
2657 (arm_epilogue_frame_prev_register): New function.
2658 (arm_epilogue_frame_sniffer): New function.
2659 (arm_epilogue_frame_unwind): New.
2660 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
2661
2662 2016-03-30 Yao Qi <yao.qi@linaro.org>
2663
2664 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
2665 (arm_stack_frame_destroyed_p_1): ... here. Don't call
2666 arm_pc_is_thumb.
2667 (arm_stack_frame_destroyed_p): Call
2668 thumb_stack_frame_destroyed_p and
2669 arm_stack_frame_destroyed_p_1.
2670
2671 2016-03-30 Doug Evans <dje@google.com>
2672
2673 * python/py-utils.c (host_string_to_python_string): New function.
2674 * python/python-internal.h (host_string_to_python_string): Declare it.
2675 * python/py-*.c (*): Update all calls to
2676 PyString_Decode (str, strlen (str), host_charset (), NULL);
2677 to use host_string_to_python_string instead.
2678
2679 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
2680
2681 * remote.c (remote_check_symbols): Allocate own buffer for reply.
2682
2683 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
2684
2685 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
2686 Use safe_read_memory_integer instead of read_memory_integer.
2687
2688 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
2689
2690 * NEWS: Mention support for tracepoints on s390*-linux.
2691
2692 2016-03-29 Don Breazeal <donb@codesourcery.com>
2693
2694 * gdb/value.c (value_actual_type): Fix formatting issue.
2695
2696 2016-03-23 Yao Qi <yao.qi@linaro.org>
2697
2698 * gdbarch.sh (software_single_step): Remove comments.
2699 * gdbarch.h: Regenerated.
2700
2701 2016-03-21 Yao Qi <yao.qi@linaro.org>
2702
2703 * arm-tdep.c (arm_record_media): New.
2704 (arm_record_ld_st_reg_offset): Call arm_record_media.
2705
2706 2016-03-21 Yao Qi <yao.qi@linaro.org>
2707
2708 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
2709 more syscalls.
2710
2711 2016-03-18 Yao Qi <yao.qi@linaro.org>
2712
2713 * sparc-tdep.c (sparc_software_single_step): Make it static.
2714 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
2715
2716 2016-03-18 Yao Qi <yao.qi@linaro.org>
2717
2718 * spu-tdep.c (spu_software_single_step): Throw error when
2719 target_read_memory fails.
2720
2721 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
2724
2725 2016-03-17 Pedro Alves <palves@redhat.com>
2726 Don Breazeal <donb@codesourcery.com>
2727
2728 PR remote/19496
2729 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
2730 instead of checking the 'non_stop' global.
2731 * remote.c (remote_add_thread): New parameter 'executing'. Use it
2732 to set the new thread's executing state.
2733 (remote_notice_new_inferior): Rename parameter 'running' to
2734 'executing'. Always set the thread state to THREAD_RUNNING in
2735 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
2736 EXECUTING to remote_add_thread and notice_new_inferior.
2737 (remote_update_thread_list): Update to pass executing state, not
2738 running state.
2739
2740 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2741
2742 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
2743 to 374.
2744 * syscalls/s390x-linux.xml: Likewise.
2745
2746 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2747
2748 * linux-record.c (record_mem_at_reg): New helper function.
2749 (record_linux_system_call): Exploit new helper function where
2750 applicable.
2751
2752 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2753
2754 * linux-record.c: Fix whitespace issues; tabify, remove trailing
2755 spaces.
2756
2757 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2758
2759 * linux-record.c (record_linux_system_call): Add missing return
2760 statements to handling of pipe and pipe2 syscalls.
2761
2762 2016-03-16 Doug Evans <dje@google.com>
2763
2764 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
2765
2766 2016-03-16 Yao Qi <yao.qi@linaro.org>
2767
2768 * arm-linux-tdep.c (arm_linux_init_abi): Fix
2769 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
2770 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
2771 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
2772 arm_linux_record_tdep.arg7.
2773
2774 2016-03-15 Keith Seitz <keiths@redhat.com>
2775
2776 PR breakpoints/18303
2777 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
2778 look for "::" instead of simply ":".
2779 (cp_search_static_and_baseclasses): Return null_block_symbol for
2780 malformed input.
2781 Remove assertions.
2782 * cp-support.c (cp_find_first_component_aux): Do not return
2783 a prefix length for ':' unless the next character is also ':'.
2784
2785 2016-03-15 Doug Evans <dje@google.com>
2786
2787 * features/aarch64-core.xml (cpsr_flags): New flags type.
2788 (cpsr): Use it.
2789 * features/aarch64.c: Regenerate.
2790
2791 2016-03-15 Doug Evans <dje@google.com>
2792
2793 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
2794 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
2795 * features/i386/64bit-core.xml (i386_eflags): Ditto.
2796 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
2797 * features/i386/x32-core.xml (i386_eflags): Ditto.
2798
2799 2016-03-15 Doug Evans <dje@google.com>
2800 Wei-cheng Wang <cole945@gmail.com>
2801
2802 Extend flags to support multibit and enum bitfields.
2803 * NEWS: Document new features.
2804 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
2805 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2806 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
2807 (append_flags_type_field): New function.
2808 (append_flags_type_flag): Call it.
2809 * gdbtypes.h (append_flags_type_field): Declare.
2810 * target-descriptions.c (struct tdesc_type_flag): Delete.
2811 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
2812 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
2813 (struct tdesc_type) <u.f>: Delete.
2814 (tdesc_predefined_types): Add "bool".
2815 (tdesc_predefined_type): New function.
2816 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
2817 Update TDESC_TYPE_FLAGS support.
2818 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
2819 (tdesc_create_flags): Update.
2820 (tdesc_create_enum): New function.
2821 (tdesc_add_field): Initialize start,end to -1.
2822 (tdesc_add_typed_bitfield): New function.
2823 (tdesc_add_bitfield): Call it.
2824 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
2825 (tdesc_add_enum_value): New function.
2826 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
2827 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
2828 * target-descriptions.h (tdesc_create_enum): Declare.
2829 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
2830 * valprint.c (generic_val_print_enum_1): New function.
2831 (generic_val_print_enum): Call it.
2832 (val_print_type_code_flags): Make static. Handle multibit bitfields
2833 and enum bitfields.
2834 * valprint.h (val_print_type_code_flags): Delete.
2835 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
2836 Delete. All uses removed.
2837 (tdesc_start_enum): New function.
2838 (tdesc_start_field): Handle multibit and enum bitfields.
2839 (tdesc_start_enum_value): New function.
2840 (enum_value_attributes, enum_children, enum_attributes): New static
2841 globals.
2842 (feature_children): Add "enum".
2843 * features/gdb-target.dtd (enum, evalue): New elements.
2844
2845 2016-03-15 Doug Evans <dje@google.com>
2846
2847 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
2848 from LONGEST to int.
2849 (struct tdesc_type) <u.f.size>: Ditto.
2850 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
2851 to int. Add assertion size > 0.
2852 (tdesc_create_flags): Ditto.
2853 * target-descriptions.h (tdesc_set_struct_size): Update.
2854 (tdesc_create_flags): Update.
2855 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
2856 (MAX_VECTOR_SIZE): New macro.
2857 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
2858 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
2859
2860 2016-03-15 Doug Evans <dje@google.com>
2861
2862 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
2863 TYPE_CODE_FLAGS instead of "field_type", for consistency.
2864 * features/i386/amd64-avx-linux.c: Regenerate.
2865 * features/i386/amd64-avx.c: Regenerate.
2866 * features/i386/amd64-avx512-linux.c: Regenerate.
2867 * features/i386/amd64-avx512.c: Regenerate.
2868 * features/i386/amd64-linux.c: Regenerate.
2869 * features/i386/amd64-mpx-linux.c: Regenerate.
2870 * features/i386/amd64-mpx.c: Regenerate.
2871 * features/i386/amd64.c: Regenerate.
2872 * features/i386/i386-avx-linux.c: Regenerate.
2873 * features/i386/i386-avx.c: Regenerate.
2874 * features/i386/i386-avx512-linux.c: Regenerate.
2875 * features/i386/i386-avx512.c: Regenerate.
2876 * features/i386/i386-linux.c: Regenerate.
2877 * features/i386/i386-mmx-linux.c: Regenerate.
2878 * features/i386/i386-mmx.c: Regenerate.
2879 * features/i386/i386-mpx-linux.c: Regenerate.
2880 * features/i386/i386-mpx.c: Regenerate.
2881 * features/i386/i386.c: Regenerate.
2882 * features/i386/x32-avx-linux.c: Regenerate.
2883 * features/i386/x32-avx.c: Regenerate.
2884 * features/i386/x32-avx512-linux.c: Regenerate.
2885 * features/i386/x32-avx512.c: Regenerate.
2886 * features/i386/x32-linux.c: Regenerate.
2887 * features/i386/x32.c: Regenerate.
2888
2889 2016-03-15 Pedro Alves <palves@redhat.com>
2890
2891 PR gdb/19676
2892 * linux-thread-db.c (try_thread_db_load_1): Leave
2893 info->td_ta_thr_iter_p NULL iff debugging a live process and we
2894 have /proc access.
2895 (find_new_threads_once): Assert that we have a non-NULL
2896 info->td_ta_thr_iter_p instead of checking whether the target has
2897 execution.
2898
2899 2016-03-15 Pedro Alves <palves@redhat.com>
2900
2901 PR gdb/19676
2902 * infrun.c (displaced_step_prepare): Also disable displaced
2903 stepping on NOT_SUPPORTED_ERROR.
2904 * linux-tdep.c (linux_displaced_step_location): If reading auxv
2905 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
2906
2907 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
2908
2909 * s390-linux-tdep.c (s390_gen_return_address): New function.
2910 (s390_gdbarch_init): Fill gen_return_address hook.
2911
2912 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * symmisc.c (maintenance_info_line_tables): New function.
2915 (maintenance_print_one_line_table): New function.
2916 (_initialize_symmisc): Register 'maint info line-table' command.
2917 * NEWS: Mention new command.
2918
2919 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
2920
2921 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
2922 (s390_ax_pseudo_register_push_stack): New function.
2923 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
2924 ax_pseudo_register_push_stack hooks.
2925
2926 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
2929 gdb/function/as_string.py.
2930 * python/lib/gdb/function/as_string.py: New file.
2931 * NEWS: Mention the new $_as_string function.
2932
2933 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
2934
2935 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
2936
2937 2016-03-09 Pedro Alves <palves@redhat.com>
2938
2939 * event-top.c (more_to_come): Delete.
2940 (struct readline_input_state): Delete.
2941 (readline_input_state): Delete.
2942 (get_command_line_buffer): New function.
2943 (command_handler): Update comments. Don't handle NULL commands
2944 here. Do not execute commented lines.
2945 (command_line_append_input_line): New function.
2946 (handle_line_of_input): New function, partly based on
2947 command_line_handler and command_line_input.
2948 (command_line_handler): Rewrite.
2949 * event-top.h (command_handler): New declaration.
2950 (command_loop): Defer command execution to command_handler.
2951 (command_line_input): Update comments. Simplify, using struct
2952 buffer and handle_line_of_input.
2953 * top.h (struct buffer): New forward declaration.
2954 (handle_line_of_input): New declaration.
2955
2956 2016-03-09 Pedro Alves <palves@redhat.com>
2957
2958 * event-top.c (command_line_handler): Use xfree + xstrdup instead
2959 of xrealloc + strcpy.
2960 * main.c (captured_main): Use xstrdup instead of xmalloc plus
2961 manual clear.
2962 * top.c (saved_command_line): Rewrite comment.
2963 (saved_command_line_size): Delete.
2964 (command_line_input): Use xfree + xstrdup instead of xrealloc +
2965 strcpy.
2966 * top.h (saved_command_line_size): Delete declaration.
2967
2968 2016-03-09 Pedro Alves <palves@redhat.com>
2969
2970 * event-top.c: Include buffer.h.
2971 (gdb_readline_no_editing_callback): Use struct buffer instead
2972 of xrealloc.
2973
2974 2016-03-09 Pedro Alves <palves@redhat.com>
2975
2976 * common/buffer.h (buffer_grow_char): New function.
2977 * top.c: Include buffer.h.
2978 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
2979 'prompt'. Use struct buffer instead of xrealloc.
2980
2981 2016-03-09 Pedro Alves <palves@redhat.com>
2982
2983 * defs.h (gdb_readline): Delete declaration.
2984 * top.c (gdb_readline): Rename to ...
2985 (gdb_readline_no_editing): ... this, and make static.
2986
2987 2016-03-09 Pedro Alves <palves@redhat.com>
2988
2989 * utils.c (prompt_for_continue): Update comments.
2990
2991 2016-03-09 Pedro Alves <palves@redhat.com>
2992
2993 * event-top.c (async_annotation_suffix): Delete.
2994 (top_level_prompt, command_line_handler): Don't use
2995 'async_annotation_suffix' and simplify.
2996 * event-top.h (async_annotation_suffix): Delete declaration.
2997 (init_main): Remove reference to 'async_annotation_suffix'.
2998
2999 2016-03-09 Pedro Alves <palves@redhat.com>
3000
3001 * event-top.c (gdb_readline2): Rename to ...
3002 (gdb_readline_no_editing_callback): ... this.
3003 (change_line_handler, stdin_event_handler)
3004 (gdb_setup_readline): Adjust.
3005 * event-top.h (gdb_readline2): Rename to ...
3006 (gdb_readline_no_editing_callback): ... this, and move closer to
3007 other readline-related declarations.
3008 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
3009
3010 2016-03-09 Pedro Alves <palves@redhat.com>
3011
3012 * top.c (window_hook): Delete.
3013 (command_loop): Remove references to window_hook.
3014
3015 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3016
3017 * corefile.c (safe_read_memory_unsigned_integer): New function.
3018 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
3019 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
3020
3021 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3022
3023 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
3024 (rs6000_gen_return_address): New function.
3025 (rs6000_gdbarch_init): Wire in the above.
3026
3027 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3028
3029 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
3030 (rs6000_gdbarch_init): Wire in the above.
3031
3032 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
3033
3034 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
3035 instructions that do nothing or are conditional traps.
3036
3037 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
3038
3039 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
3040 frame func's PC in info->func before any other failure can occur.
3041 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
3042 info->func has been filled out.
3043
3044 2016-03-09 Pedro Alves <palves@redhat.com>
3045
3046 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
3047
3048 2016-03-09 Pedro Alves <palves@redhat.com>
3049
3050 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
3051
3052 2016-03-09 Pedro Alves <palves@redhat.com>
3053
3054 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
3055 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
3056
3057 2016-03-09 Pedro Alves <palves@redhat.com>
3058
3059 * doublest.c: Extend comments.
3060 (floatformat_to_doublest, floatformat_from_doublest): Copy the
3061 floatformat's total size, not the host type's size.
3062
3063 2016-03-09 Pedro Alves <palves@redhat.com>
3064
3065 * doublest.c (floatformat_totalsize_bytes): New function.
3066 (floatformat_from_type): Assert that the type's length is at least
3067 as long as the floatformat's totalsize.
3068 * doublest.h (floatformat_totalsize_bytes): New declaration.
3069 * gdbtypes.c (arch_float_type): Assert that the type's length is
3070 at least as long as the floatformat's totalsize.
3071
3072 2016-03-09 Pedro Alves <palves@redhat.com>
3073
3074 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
3075 format to floatformats_ieee_double.
3076
3077 2016-03-07 Pedro Alves <palves@redhat.com>
3078
3079 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
3080 before calling bfd_get_flavour.
3081
3082 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3083
3084 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
3085 (avr_push_dummy_call): Correct last needed argument register.
3086 Write MSB of argument into register and subsequent bytes into
3087 other registers in decreasing order.
3088
3089 2016-03-04 Yao Qi <yao.qi@linaro.org>
3090
3091 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
3092 condition check. Record the right D register number.
3093
3094 2016-03-04 Yao Qi <yao.qi@linaro.org>
3095
3096 * arm-tdep.c (arm_record_extension_space): Remove code
3097 printing "Process record does not support".
3098 (arm_record_data_proc_misc_ld_str): Likewise.
3099 (decode_insn): Call arm_record_extension_space if condition
3100 is 0xf. Call arm_record_unsupported_insn if ret isn't
3101 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
3102 the value of thumb2_record_decode_insn_handler.
3103
3104 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
3105
3106 * features/feature_to_c.sh: Print the help when passing no
3107 argument.
3108
3109 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
3110
3111 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
3112
3113 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
3114
3115 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
3116
3117 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
3118
3119 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
3120 exception when attempting to access the inferior's backchain.
3121
3122 2016-02-29 Yao Qi <yao.qi@linaro.org>
3123
3124 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
3125 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
3126 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
3127 for aarch64_sys_epoll_create1.
3128
3129 2016-02-29 Yao Qi <yao.qi@linaro.org>
3130
3131 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
3132 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
3133 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
3134 * linux-record.c (record_linux_system_call): Handle them.
3135
3136 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
3137
3138 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
3139 cyclic imports.
3140
3141 2016-02-26 Keith Seitz <keiths@redhat.com>
3142
3143 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
3144 to avoid invalid conversion from void *.
3145
3146 2016-02-26 Yao Qi <yao.qi@linaro.org>
3147
3148 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
3149 per bit 8. Check bit 20 instead of bit 4 for VMOV
3150 instruction. Record D registers for instructions changing
3151 S registers. Change of the order of length and address
3152 in record_buf_mem array.
3153
3154 2016-02-26 Yao Qi <yao.qi@linaro.org>
3155
3156 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
3157 number of Rd.
3158
3159 2016-02-25 Doug Evans <dje@google.com>
3160
3161 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
3162 compiler warning.
3163 (recv_long_data): Ditto.
3164
3165 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
3166
3167 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
3168 Initialize variables.
3169
3170 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
3171
3172 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
3173 (ax_reg_mask): Likewise.
3174
3175 2016-02-24 Pedro Alves <palves@redhat.com>
3176
3177 * linux-nat.c (save_sigtrap) Delete.
3178 (stop_wait_callback): Call save_stop_reason instead of
3179 save_sigtrap.
3180 (check_stopped_by_breakpoint): Rename to ...
3181 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
3182 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
3183 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
3184 common code between the USE_SIGTRAP_SIGINFO and
3185 !USE_SIGTRAP_SIGINFO blocks.
3186 (linux_nat_filter_event): Call save_stop_reason instead of
3187 save_sigtrap.
3188 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
3189 si_code for MIPS.
3190 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
3191 comments on MIPS behavior.
3192 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
3193
3194 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
3195
3196 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
3197 to avoid spurious warnings.
3198
3199 2016-02-24 Gary Benson <gbenson@redhat.com>
3200
3201 * exec.c (exec_file_locate_attach): Do not attempt to
3202 locate main executable locally if not found in sysroot.
3203
3204 2016-02-24 Joel Brobecker <brobecker@adacore.com>
3205
3206 GDB 7.11 released.
3207
3208 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
3209
3210 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
3211 unavailable PC/SP to build unavailable frame.
3212
3213 2016-02-23 Doug Evans <dje@google.com>
3214
3215 Extend "skip" command to support -file, -gfile, -function, -rfunction.
3216 * NEWS: Document new features.
3217 * skip.c: #include "fnmatch.h", "gdb_regex.h".
3218 (skiplist_entry) <file>: Renamed from filename.
3219 <function>: Renamed from function_name.
3220 <file_is_glob, function_is_regexp>: New members.
3221 <compiled_function_regexp, compiled_function_regexp_is_valid>:
3222 New members.
3223 (make_skip_entry): New function.
3224 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
3225 (make_free_skiplist_entry_cleanup): New function.
3226 (skip_file_command): Update.
3227 (skip_function, skip_function_command): Update.
3228 (compile_skip_regexp): New functions.
3229 (skip_command): Add support for new options.
3230 (skip_info): Update.
3231 (skip_file_p, skip_gfile_p): New functions.
3232 (skip_function_p, skip_rfunction_p): New functions.
3233 (function_name_is_marked_for_skip): Update and simplify.
3234 (_initialize_step_skip): Update.
3235 * symtab.c: #include "fnmatch.h".
3236 (compare_glob_filenames_for_search): New function.
3237 * symtab.h (compare_glob_filenames_for_search): Declare.
3238 * utils.c (count_path_elements): New function.
3239 (strip_leading_path_elements): New function.
3240 * utils.h (count_path_elements): Declare.
3241 (strip_leading_path_elements): Declare.
3242
3243 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
3244
3245 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
3246 (thumb_process_displaced_insn): Likewise.
3247 (arm_process_displaced_insn): Adjust calls.
3248
3249 2016-02-23 Yao Qi <yao.qi@linaro.org>
3250
3251 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
3252 Remove.
3253 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
3254 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
3255 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
3256 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
3257 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
3258 <aarch64_sys_faccessat>: New.
3259 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
3260 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
3261 <aarch64_sys_newfstatat>: New.
3262 (UNSUPPORTED_SYSCALL_MAP): New macro.
3263 (aarch64_canonicalize_syscall): Add missing syscalls.
3264
3265 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3266
3267 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
3268
3269 2016-02-22 Yao Qi <yao.qi@linaro.org>
3270
3271 * arm-tdep.c: Fix code format issues.
3272
3273 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
3274
3275 * d-namespace.c (d_lookup_symbol_imports): Remove argument
3276 'search_parents'. All callers updated.
3277
3278 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
3279
3280 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
3281 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
3282
3283 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
3284
3285 * NEWS: Add entry for bound violation.
3286 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
3287 Add handler for segmentation fault.
3288 * gdbarch.sh (handle_segmentation_fault): New.
3289 * gdbarch.c: Regenerate.
3290 * gdbarch.h: Regenerate.
3291 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
3292 (SIG_CODE_BONDARY_FAULT): New define.
3293 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
3294 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
3295 * i386-tdep.c (i386_mpx_enabled): Add as external.
3296 * i386-tdep.c (i386_mpx_enabled): Add as external.
3297 * infrun.c (handle_segmentation_fault): New function.
3298 (print_signal_received_reason): Use handle_segmentation_fault.
3299
3300 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
3301
3302 * arch-utils.c (default_guess_tracepoint_registers): New function.
3303 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
3304 * gdbarch.c: Regenerate.
3305 * gdbarch.h: Regenerate.
3306 * gdbarch.sh: Add guess_tracepoint_registers hook.
3307 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
3308
3309 2016-02-17 Gary Benson <gbenson@redhat.com>
3310
3311 * exec.c (exec_file_locate_attach): Add missing cleanup.
3312
3313 2016-02-16 Don Breazeal <donb@codesourcery.com>
3314
3315 PR remote/19496
3316 * remote.c (remove_new_fork_children): Check for pending
3317 fork status in thread_info.suspend.
3318
3319 2016-02-16 Yao Qi <yao.qi@linaro.org>
3320
3321 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
3322 'old_chain' later.
3323
3324 2016-02-16 Yao Qi <yao.qi@linaro.org>
3325
3326 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
3327 <syscall_next_pc>: Remove argument PC. Callers updated.
3328 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
3329 Remove argument PC. Get pc from regcache_read_pc.
3330 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
3331 argument PC.
3332
3333 2016-02-15 Yao Qi <yao.qi@linaro.org>
3334
3335 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
3336
3337 2016-02-12 Yao Qi <yao.qi@linaro.org>
3338
3339 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
3340 nextpc according to instruction.
3341
3342 2016-02-12 Yao Qi <yao.qi@linaro.org>
3343
3344 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
3345 self->ops->fixup if it isn't NULL.
3346 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
3347 (struct arm_get_next_pcs_ops) <fixup>: New field.
3348 * arch/arm-linux.c: Include common-regcache.h and
3349 arch/arm-get-next-pcs.h.
3350 (arm_linux_get_next_pcs_fixup): New function.
3351 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
3352 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
3353 it with arm_linux_get_next_pcs_fixup.
3354 (arm_linux_software_single_step): Move code to
3355 arm_linux_get_next_pcs_fixup.
3356 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
3357
3358 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
3359
3360 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
3361 and return NULL.
3362
3363 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
3364
3365 * frame.h (skip_tailcall_frames): Update comment.
3366 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
3367 if only artificial frames are found. Update comment.
3368 (frame_unwind_caller_id): Handle NULL return.
3369 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
3370 skip_artificial_frames does not return NULL.
3371 (frame_pop): Add an error if only tailcall frames are found.
3372 * infcmd.c (finish_command): Move skip_tailcall_frames call into
3373 forward-execution case. Add an error if only tailcall frames are
3374 found.
3375
3376 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
3377
3378 * stack.c (frame_info): Check frame_unwind_caller_id.
3379
3380 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
3381
3382 * frame.h (skip_tailcall_frames): New.
3383 * frame.c (skip_tailcall_frames): New.
3384 (frame_pop): Call skip_tailcall_frames.
3385 * infcmd.c (finish_command): Call skip_tailcall_frames.
3386
3387 2016-02-11 Pedro Alves <palves@redhat.com>
3388
3389 * Makefile.in (check-parallel): New rule.
3390
3391 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
3392
3393 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
3394 (arm_analyze_prologue): Likewise.
3395 (arm_scan_prologue): Likewise.
3396 (arm_m_exception_prev_register): Likewise.
3397 (arm_copy_block_xfer): Likewise.
3398 (thumb2_copy_block_xfer): Likewise.
3399 (arm_decode_miscellaneous): Likewise.
3400 (arm_decode_ld_st_word_ubyte): Likewise.
3401 (arm_decode_svc_copro): Likewise.
3402 (thumb2_decode_svc_copro): Likewise.
3403 (thumb_copy_16bit_ldr_literal): Likewise.
3404 (thumb_copy_pop_pc_16bit): Likewise.
3405 (decode_thumb_32bit_ld_mem_hints): Likewise.
3406 (arm_show_force_mode): Likewise.
3407 (_initialize_arm_tdep): Likewise.
3408 (arm_record_strx): Likewise.
3409 (arm_record_extension_space): Likewise.
3410 (arm_record_data_proc_misc_ld_str): Likewise.
3411 (arm_record_exreg_ld_st_insn): Likewise.
3412 (arm_record_vfp_data_proc_insn): Likewise.
3413 (arm_record_coproc_data_proc): Likewise.
3414 (thumb_record_misc): Likewise.
3415 (thumb_record_ldm_stm_swi): Likewise.
3416 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
3417 (thumb2_record_ld_mem_hints): Likewise.
3418 (thumb2_record_lmul_lmla_div): Likewise.
3419 (thumb2_record_asimd_struct_ld_st): Likewise.
3420 (arm_process_record): Likewise.
3421
3422 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
3423
3424 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
3425 (ARM displaced stepping support): Remove reference to
3426 arm_displaced_step_copy_insn in comment.
3427 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
3428 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
3429 reference to arm_displaced_step_copy_insn in comment.
3430
3431 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
3432
3433 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
3434 (thumb_copy_b): Likewise.
3435 (arm_decode_b_bl_ldmstm): Likewise.
3436 (thumb_copy_16bit_ldr_literal): Likewise.
3437 (thumb_copy_pop_pc_16bit): Likewise.
3438
3439 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
3440
3441 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
3442 than loc->gdbarch.
3443
3444 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
3445
3446 * tracefile-tfile.c (trace_tdesc): New static variable.
3447 (tfile_open): Clear trace_tdesc, call target_find_description.
3448 (tfile_interp_line): Recognize tdesc lines.
3449 (tfile_close): Clear trace_tdesc.
3450 (tfile_xfer_partial_features): New function.
3451 (tfile_xfer_partial): Call tfile_xfer_partial_features.
3452 (tfile_append_tdesc_line): New function.
3453
3454 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
3455
3456 * ctf.c (ctf_write_tdesc): New function.
3457 (ctf_write_ops): Wire in ctf_write_tdesc.
3458 * tracefile-tfile.c (tfile_write_tdesc): New function.
3459 (tfile_write_ops): Wire in tfile_write_tdesc.
3460 * tracefile.c (trace_save): Call write_tdesc method.
3461 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
3462 * xml-tdesc.c (target_fetch_description_xml): New function.
3463 * xml-tdesc.h: Add target_fetch_description_xml prototype.
3464
3465 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
3466
3467 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
3468 (arm_decode_dp_misc): Likewise.
3469
3470 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
3471
3472 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
3473 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
3474 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
3475 misleading comment.
3476 (i386_pseudo_register_write): Ditto.
3477 (i386_ax_pseudo_register_collect): New function.
3478 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
3479 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
3480
3481 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
3482
3483 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
3484 instead of gdb order.
3485
3486 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
3487
3488 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
3489 check.
3490
3491 2016-02-10 Joel Brobecker <brobecker@adacore.com>
3492
3493 * NEWS: Create a new section for the next release branch.
3494 Rename the section of the current branch, now that it has
3495 been cut.
3496
3497 2016-02-10 Joel Brobecker <brobecker@adacore.com>
3498
3499 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
3500 * version.in: Bump version to 7.11.50.DATE-git.
3501
3502 2016-02-09 Keith Seitz <keiths@redhat.com>
3503
3504 PR breakpoints/19546
3505 * breakpoint.c (breakpoint_event_location_empty_p): New function.
3506 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
3507 instead of event_location_empty_p.
3508
3509 2016-02-09 Keith Seitz <keiths@redhat.com>
3510
3511 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
3512 string_to_event_location_basic instead of string_to_event_location.
3513
3514 2016-02-09 Keith Seitz <keiths@redhat.com>
3515
3516 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
3517 leading whitespace and use string_to_event_location_basic instead
3518 of new_linespec_location.
3519
3520 2016-02-09 Keith Seitz <keiths@redhat.com>
3521
3522 PR python/19506
3523 * python/py-breakpoint.c (bppy_init): Use
3524 string_to_event_location_basic instead of new_linespec_location.
3525
3526 2016-02-09 Keith Seitz <keiths@redhat.com>
3527
3528 * location.c (string_to_explicit_location): Note that "-p" is
3529 reserved for probe locations and return NULL for any input
3530 that starts with that.
3531 (string_to_event_location): Move "legacy" linespec code to ...
3532 (string_to_event_location_basic): ... here.
3533 * location.h (string_to_event_location): Update comment.
3534 (string_to_event_location_basic): New function.
3535
3536 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
3537
3538 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
3539 to AC_OUTPUT. Remove "exit 0" at the end.
3540 * configure: Regenerate.
3541
3542 2016-02-09 Pedro Alves <palves@redhat.com>
3543
3544 PR breakpoints/19548
3545 * breakpoint.c (create_overlay_event_breakpoint): Don't update
3546 global location list here.
3547 (create_longjmp_master_breakpoint)
3548 (create_std_terminate_master_breakpoint)
3549 (create_exception_master_breakpoint, create_jit_event_breakpoint)
3550 (update_breakpoint_locations):
3551 (breakpoint_re_set): Update global location list after all
3552 breakpoints are re-set.
3553
3554 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
3555
3556 * remote.c (remote_register_number_and_offset): Remove unused
3557 variable(s).
3558 (remote_thread_always_alive): Likewise.
3559 (remote_update_thread_list): Likewise.
3560 (process_initial_stop_replies): Likewise.
3561 (remote_start_remote): Likewise.
3562 (remote_check_symbols): Likewise.
3563 (discard_pending_stop_replies): Likewise.
3564 (process_stop_reply): Likewise.
3565 (putpkt_binary): Likewise.
3566 (getpkt): Likewise.
3567 (remote_add_target_side_condition): Likewise.
3568 (remote_insert_breakpoint): Likewise.
3569 (remote_supports_stopped_by_sw_breakpoint): Likewise.
3570 (remote_supports_stopped_by_hw_breakpoint): Likewise.
3571 (remote_xfer_partial): Likewise.
3572 (remote_read_btrace): Likewise.
3573 (remote_async_serial_handler): Likewise.
3574 (remote_thread_events): Likewise.
3575 (_initialize_remote): Likewise.
3576
3577 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
3578
3579 * varobj.h (varobj_delete): Remove dellist parameter, update and
3580 move documentation here.
3581 * varobj.c (struct cpstack, cppush, cppop): Remove.
3582 (delete_variable): Remove resultp (first) parameter.
3583 (delete_variable_1): Likewise.
3584 (varobj_delete): Remove dellist parameter and unused code.
3585 (update_dynamic_varobj_children): Adjust varobj_delete call.
3586 (update_type_if_necessary): Likewise.
3587 (varobj_set_visualizer): Likewise.
3588 (varobj_update): Likewise.
3589 (value_of_root): Likewise.
3590 (varobj_invalidate_iter): Likewise.
3591 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
3592
3593 2016-02-04 Yao Qi <yao.qi@linaro.org>
3594
3595 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
3596 0 before handling 'F' and set it back afterwards.
3597
3598 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
3599
3600 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
3601
3602 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3603
3604 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
3605 New types.
3606 (compat_siginfo): New bound fields added.
3607 (compat_x32_siginfo): New field added.
3608 (cpt_si_addr_lsb): New define.
3609 (compat_siginfo_from_siginfo): Use nat_siginfo.
3610 (siginfo_from_compat_siginfo): Use nat_siginfo.
3611 (compat_x32_siginfo_from_siginfo): Likewise.
3612 (siginfo_from_compat_x32_siginfo): Likewise.
3613
3614 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3615
3616 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
3617 structure to the siginfo if extra_fields contains
3618 LINUX_SIGINFO_FIELD_ADDR_BND.
3619
3620 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3621
3622 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
3623 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
3624 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
3625 function.
3626 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
3627 x86_linux_get_siginfo_type for the amd64 abi.
3628 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
3629 function.
3630 (i386_linux_init_abi): Add new function at the i386 ABI
3631 initialization.
3632
3633 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3634
3635 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
3636 (linux_siginfo_extra_fields): New enum type.
3637 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
3638 (linux_get_siginfo_type): Use new function.
3639
3640 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3641
3642 * nat/amd64-linux-siginfo.c: New file.
3643 * nat/amd64-linux-siginfo.h: New file.
3644 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
3645 (amd64-linux-siginfo.o): New rule.
3646 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
3647 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
3648 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3649 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
3650 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
3651 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
3652 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
3653 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
3654
3655 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3656
3657 * value.c (max_value_size): New variable.
3658 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
3659 (set_max_value_size): New function.
3660 (show_max_value_size): New function.
3661 (check_type_length_before_alloc): New function.
3662 (allocate_value_contents): Call check_type_length_before_alloc.
3663 (set_value_enclosing_type): Likewise.
3664 (_initialize_values): Add set/show handler for max-value-size.
3665 * NEWS: Mention new set/show command.
3666
3667 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
3668
3669 * varobj.h (struct varobj): Fix typos in comments.
3670 (struct lang_varobj_ops): Likewise.
3671 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
3672 (varobj_create): Move misplaced comment.
3673
3674 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
3675
3676 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
3677 to for include additional lines.
3678 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
3679
3680 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3681
3682 * gnulib/import/Makefile.am: Regenerate.
3683 * gnulib/import/Makefile.in: Regenerate.
3684 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3685 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
3686
3687 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
3688
3689 * remote.c (skip_to_semicolon): Remove.
3690 (remote_parse_stop_reply): Use strchrnul instead of
3691 skip_to_semicolon.
3692 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3693 strchrnul.
3694 * gnulib/aclocal.m4: Regenerate.
3695 * gnulib/config.in: Regenerate.
3696 * gnulib/configure: Regenerate.
3697 * gnulib/import/Makefile.am: Regenerate.
3698 * gnulib/import/Makefile.in: Regenerate.
3699 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3700 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3701 * gnulib/import/m4/rawmemchr.m4: New file.
3702 * gnulib/import/m4/strchrnul.m4: New file.
3703 * gnulib/import/rawmemchr.c: New file.
3704 * gnulib/import/rawmemchr.valgrind: New file.
3705 * gnulib/import/strchrnul.c: New file.
3706 * gnulib/import/strchrnul.valgrind: New file.
3707
3708 2016-01-28 Yao Qi <yao.qi@linaro.org>
3709
3710 * breakpoint.c (build_target_command_list): Don't call continue
3711 if aexpr is NULL.
3712 (build_target_condition_list): Likewise.
3713
3714 2016-01-27 Kevin Buettner <kevinb@redhat.com>
3715
3716 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
3717 bytes as aggregates.
3718
3719 2016-01-27 Joel Brobecker <brobecker@adacore.com>
3720
3721 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
3722 Linespec Maintainers.
3723
3724 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
3725
3726 * common/common-utils.c (skip_spaces): Fix comment.
3727 (skip_to_space_const): Likewise.
3728
3729 2016-01-25 Yao Qi <yao.qi@linaro.org>
3730
3731 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
3732 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
3733 (arm_deal_with_atomic_sequence_raw): Likewise.
3734 (thumb_get_next_pcs_raw): Likewise.
3735 (arm_get_next_pcs_raw): Likewise.
3736 (arm_get_next_pcs): Remove argument pc. Callers updated.
3737 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
3738
3739 2016-01-25 Mark Wielaard <mjw@redhat.com>
3740
3741 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
3742 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
3743 if statement.
3744 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
3745 statement block by introducing an else.
3746 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
3747 of return statements.
3748 (record_linux_msghdr): Likewise.
3749
3750 2016-01-25 Pedro Alves <palves@redhat.com>
3751
3752 PR threads/19461
3753 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
3754 parent/child running states.
3755
3756 2016-01-25 Pedro Alves <palves@redhat.com>
3757
3758 PR gdb/19494
3759 * linux-nat.c (kill_one_lwp): New, factored out from ...
3760 (kill_callback): ... this.
3761 (kill_wait_callback): New, factored out from ...
3762 (kill_wait_one_lwp): ... this.
3763 (kill_unfollowed_fork_children): New function.
3764 (linux_nat_kill): Use it.
3765
3766 2016-01-22 John Baldwin <jhb@FreeBSD.org>
3767
3768 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
3769
3770 2016-01-22 Yao Qi <yao.qi@linaro.org>
3771
3772 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
3773 instead of warning.
3774 (store_fpregs, fetch_regs, store_regs): Likewise.
3775 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
3776 (fetch_vfp_regs, store_vfp_regs): Likewise.
3777
3778 2016-01-21 Doug Evans <dje@google.com>
3779
3780 * breakpoint.c (init_breakpoint_sal): Add comment.
3781
3782 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
3783
3784 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
3785
3786 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * disasm.c (maybe_add_dis_line_entry): Rename to...
3789 (add_dis_line_entry): ...this, and update header comment.
3790 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
3791
3792 2016-01-21 Pedro Alves <palves@redhat.com>
3793
3794 * Makefile.in (COMPILER_CFLAGS): New.
3795 (CXXFLAGS): Get it from configure.
3796 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
3797 instead of CFLAGS.
3798 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
3799 COMPILER_CFLAGS.
3800 * configure: Regenerate.
3801
3802 2016-01-21 Joel Brobecker <brobecker@adacore.com>
3803
3804 * location.h (new_address_location): Add new parameters
3805 "addr_string" and "addr_string_len".
3806 (get_address_string_location): Add declaration.
3807 * location.c (new_address_location): Add new parameters
3808 "addr_string" and "addr_string_len". If not NULL, store
3809 a copy of the addr_string in the new location as well.
3810 (get_address_string_location): New function.
3811 (string_to_event_location): Update call to new_address_location.
3812 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
3813 Save the event location in the parser's state before
3814 passing it to convert_address_location_to_sals.
3815 * breakpoint.c (create_thread_event_breakpoint): Update call
3816 to new_address_location.
3817 (init_breakpoint_sal): Get the event location's string, if any,
3818 and use it to update call to new_address_location.
3819 * python/py-finishbreakpoint.c (bpfinishpy_init):
3820 Update call to new_address_location.
3821 * spu-tdep.c (spu_catch_start): Likewise.
3822
3823 * config/djgpp/fnchange.lst: Add entries for
3824 gdb/testsuite/gdb.base/break-fun-addr1.c and
3825 gdb/testsuite/gdb.base/break-fun-addr2.c.
3826
3827 2016-01-21 Yao Qi <yao.qi@linaro.org>
3828
3829 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
3830 is_thumb and set it according to CPSR saved on the stack.
3831 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
3832 arm_linux_sigreturn_next_pc.
3833
3834 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3835
3836 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
3837 Fix enumerators sort key function.
3838
3839 2016-01-20 Joel Brobecker <brobecker@adacore.com>
3840
3841 * printcmd.c (print_scalar_formatted): Move binary operator from
3842 end of line to beginning of next line. Adjust formatting
3843 accordingly.
3844
3845 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3846
3847 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
3848 "len" with sysctl.
3849
3850 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3851
3852 * fbsd-tdep.c (find_stop_signal): Remove.
3853 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
3854 <stop_signal>: New field.
3855 <abort_iteration>: New field.
3856 (fbsd_collect_regset_section_cb): Use new fields.
3857 (fbsd_collect_thread_registers): New function.
3858 (struct fbsd_corefile_thread_data): New structure.
3859 (fbsd_corefile_thread): New function.
3860 (fbsd_make_corefile_notes): Use new function to dump notes for each
3861 non-exited thread in a process.
3862
3863 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3864
3865 * configure.ac: Check for support for LWP names on FreeBSD.
3866 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
3867 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
3868 (fbsd_fetch_kinfo_proc): Move function earlier.
3869 [PT_LWPINFO] (fbsd_thread_alive): New function.
3870 [PT_LWPINFO] (fbsd_pid_to_str): New function.
3871 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
3872 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
3873 [PT_LWPINFO] (fbsd_add_threads): New function.
3874 [PT_LWPINFO] (fbsd_update_thread_list): New function.
3875 [PT_LWPINFO] New variable super_resume.
3876 [PT_LWPINFO] (resume_one_thread_cb): New function.
3877 [PT_LWPINFO] (resume_all_threads_cb): New function.
3878 [PT_LWPINFO] (fbsd_resume): New function.
3879 (fbsd_remember_child): Save full ptid instead of plain pid.
3880 (fbsd_is_child_pending): Return ptid of saved child process.
3881 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
3882 first stop.
3883 [PT_LWP_EVENTS] Handle LWP events.
3884 [TDP_RFPPWAIT] Include LWP in child ptid.
3885 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
3886 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
3887 Add threads for existing processes.
3888 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
3889 "fbsd_thread_alive".
3890 Set "to_pid_to_str" to "fbsd_pid_to_str".
3891 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
3892 "fbsd_thread_name".
3893 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
3894 Set "to_has_thread_control" to "tc_schedlock".
3895 Set "to_resume" to "fbsd_resume".
3896 (_initialize_fbsd_nat): New function.
3897 * configure: Regenerate.
3898 * config.in: Regenerate.
3899
3900 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3901
3902 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3903 get_ptrace_pid.
3904 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
3905 (amd64bsd_dr_get): Use get_ptrace_pid.
3906 (amd64bsd_dr_set): Use get_ptrace_pid.
3907 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
3908 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
3909 (i386bsd_dr_get): Use get_ptrace_pid.
3910 (i386bsd_dr_set): Use get_ptrace_pid.
3911 * inf-ptrace.c (get_ptrace_pid): Export.
3912 * inf-ptrace.h (get_ptrace_pid): Declare.
3913 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
3914 (ppcfbsd_store_inferior_registers): Use lwp id.
3915
3916 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3917
3918 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
3919 (fbsd_core_thread_name): New function.
3920 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
3921 Add "core_thread_name" gdbarch method.
3922
3923 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3924
3925 * corelow.c (core_thread_name): New function.
3926 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
3927 target op.
3928 * gdbarch.sh (core_thread_name): New gdbarch callback.
3929 * gdbarch.h: Re-generate.
3930 * gdbarch.c: Re-generate.
3931
3932 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
3933
3934 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
3935 convert gdb.Value to integer type using int().
3936
3937 2016-01-19 John Baldwin <jhb@FreeBSD.org>
3938
3939 * configure.ac: Include <sys/types.h when checking for "r_fs" in
3940 "struct reg".
3941 * configure: Regenerate.
3942
3943 2016-01-19 Pedro Alves <palves@redhat.com>
3944
3945 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
3946 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
3947 current program space down to linespec decoding and breakpoint
3948 location updating.
3949 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
3950 decode_line_full.
3951 (until_break_command): Adjust calls to decode_line_1.
3952 (base_breakpoint_decode_location, bkpt_decode_location): Add
3953 'search_pspace' parameter. Pass it along.
3954 (bkpt_probe_create_sals_from_location): Adjust calls to
3955 parse_probes.
3956 (tracepoint_decode_location, tracepoint_probe_decode_location)
3957 (strace_marker_decode_location): Add 'search_pspace' parameter.
3958 Pass it along.
3959 (all_locations_are_pending): Rewrite to take a breakpoint and
3960 program space as arguments instead.
3961 (hoist_existing_locations): New function.
3962 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
3963 hoist_existing_locations instead of always removing all locations,
3964 and adjust to all_locations_are_pending change.
3965 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
3966 Don't disable the breakpoint if there are other locations in
3967 another program space.
3968 (breakpoint_re_set_default): Adjust to pass down the current
3969 program space as filter program space.
3970 (decode_location_default): Add 'search_pspace' parameter and pass
3971 it along.
3972 (prepare_re_set_context): Don't switch program space here.
3973 (breakpoint_re_set): Use save_current_space_and_thread instead of
3974 save_current_program_space.
3975 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
3976 'search_pspace' parameter.
3977 (update_breakpoint_locations): Add 'filter_pspace' parameter.
3978 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
3979 decode_line_1.
3980 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
3981 program space as filter program space.
3982 * linespec.c (struct linespec_state) <search_pspace>: New field.
3983 (create_sals_line_offset, convert_explicit_location_to_sals)
3984 (parse_linespec): Pass the search program space down.
3985 (linespec_state_constructor): Add 'search_pspace' parameter.
3986 Store it.
3987 (linespec_parser_new): Add 'search_pspace' parameter and pass it
3988 along.
3989 (linespec_lex_to_end): Adjust.
3990 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
3991 and pass it along.
3992 (decode_line_with_last_displayed): Adjust.
3993 (collect_symtabs_from_filename, symtabs_from_filename): New
3994 'search_pspace' parameter. Use it.
3995 (find_function_symbols): Pass the search program space down.
3996 * linespec.h (decode_line_1, decode_line_full): Add
3997 'search_pspace' parameter.
3998 * probe.c (parse_probes_in_pspace): New function, factored out
3999 from ...
4000 (parse_probes): ... this. Add 'search_pspace' parameter and use
4001 it.
4002 * probe.h (parse_probes): Add pspace' parameter.
4003 * python/python.c (gdbpy_decode_line): Adjust.
4004 * tracepoint.c (scope_info): Adjust.
4005
4006 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
4007
4008 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
4009 instruction support.
4010 (micromips_next_pc): Likewise.
4011 (micromips_scan_prologue): Likewise.
4012 (micromips_deal_with_atomic_sequence): Likewise.
4013 (micromips_stack_frame_destroyed_p): Likewise.
4014 (mips_breakpoint_from_pc): Likewise.
4015
4016 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
4017
4018 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
4019 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
4020
4021 2016-01-18 Pedro Alves <palves@redhat.com>
4022
4023 * NEWS: Mention that GDB now displays the ID and name of the
4024 thread that hit a breakpoint or received a signal.
4025 * break-catch-sig.c (signal_catchpoint_print_it): Use
4026 maybe_print_thread_hit_breakpoint.
4027 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4028 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
4029 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
4030 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
4031 (print_it_catch_exec, print_it_ranged_breakpoint)
4032 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
4033 Use maybe_print_thread_hit_breakpoint.
4034 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
4035 * gdbthread.h (show_thread_that_caused_stop): Declare.
4036 * infrun.c (print_signal_received_reason): Print which thread
4037 received signal.
4038 * thread.c (show_thread_that_caused_stop): New function.
4039
4040 2016-01-18 Gary Benson <gbenson@redhat.com>
4041
4042 * nat/linux-namespaces.c (do_fork): New function.
4043 (linux_mntns_get_helper): Use the above.
4044
4045 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
4046
4047 Pushed by Joel Brobecker <brobecker@adacore.com>.
4048 PR gdb/19208
4049 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
4050 if the function has no name.
4051
4052 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
4053
4054 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
4055 Conditionalize for Windows host.
4056 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
4057 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
4058 (phony_iconv_open): Handle both UTF-32 endiannesses.
4059 (phony_iconv): Likewise. Check for output overflow and clean up
4060 out-of-input cases. Correct adjustment to input buffer pointer.
4061 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
4062 phony_iconv_open.
4063
4064 2016-01-15 Pedro Alves <palves@redhat.com>
4065
4066 * NEWS: Mention star wildcard ranges.
4067 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
4068 (number_range_setup_range): New function.
4069 * cli/cli-utils.h (number_range_setup_range): New declaration.
4070 * thread.c (thread_apply_command): Support star TID ranges.
4071 * tid-parse.c (tid_range_parser_finished)
4072 (tid_range_parser_string, tid_range_parser_skip)
4073 (get_tid_or_range, get_tid_or_range): Handle
4074 TID_RANGE_STATE_STAR_RANGE.
4075 (tid_range_parser_star_range): New function.
4076 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
4077 New value.
4078 (tid_range_parser_star_range): New declaration.
4079
4080 2016-01-15 Pedro Alves <palves@redhat.com>
4081
4082 * thread.c (thread_apply_command): Use the tid range parser to
4083 advance past the thread ID list.
4084 * tid-parse.c (get_positive_number_trailer): New function.
4085 (parse_thread_id): Use it.
4086 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
4087 thread ID error.
4088 (get_tid_or_range): Detect negative values. Return 0 instead of
4089 throwing invalid thread ID error.
4090
4091 2016-01-14 Yao Qi <yao.qi@linaro.org>
4092
4093 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
4094 Declare.
4095 (arm_linux_get_next_pcs_ops): Install
4096 arm_linux_get_next_pcs_syscall_next_pc.
4097 (arm_linux_syscall_next_pc): Change to ...
4098 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
4099 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
4100 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
4101 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
4102 call tdep->syscall_next_pc.
4103 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
4104 (arm_get_next_pcs_syscall_next_pc): Remove.
4105
4106 2016-01-14 Yao Qi <yao.qi@linaro.org>
4107
4108 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
4109 * thread.c (do_captured_thread_select): Cast to const char *.
4110
4111 2016-01-14 Yao Qi <yao.qi@linaro.org>
4112
4113 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
4114 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
4115 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
4116 instead.
4117 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
4118 <arm_thumb2_breakpoint>: Remove.
4119 <has_thumb2_breakpoint>: New field.
4120 (arm_get_next_pcs_ctor): Update declaration.
4121 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
4122 1 to arm_get_next_pcs_ctor.
4123 * arm-tdep.c (arm_software_single_step): Pass 0 to
4124 arm_get_next_pcs_ctor.
4125
4126 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
4127
4128 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
4129
4130 2016-01-13 Yao Qi <yao.qi@linaro.org>
4131
4132 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
4133 byte_order_for_code to read instruction.
4134
4135 2016-01-13 Pedro Alves <palves@redhat.com>
4136
4137 * NEWS: Mention $_gthread.
4138 * gdbthread.h (struct thread_info) <global_num>: Mention
4139 $_gthread.
4140 * thread.c (thread_num_make_value_helper): New function.
4141 (thread_id_make_value): Delete.
4142 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
4143 New.
4144 (thread_funcs): Adjust.
4145 (gthread_funcs): New.
4146 (_initialize_thread): Register $_gthread variable.
4147
4148 2016-01-13 Pedro Alves <palves@redhat.com>
4149
4150 * NEWS: Mention "info threads -gid".
4151 * gdbthread.h (struct thread_info) <global_num>: Mention "info
4152 threads -gid".
4153 * thread.c (info_threads_command): Handle "-gid".
4154 (_initialize_thread): Adjust "info threads" help string to mention
4155 -gid.
4156
4157 2016-01-13 Pedro Alves <palves@redhat.com>
4158
4159 * NEWS: Mention InferiorThread.global_num.
4160 * python/py-infthread.c (thpy_get_global_num): New function.
4161 (thread_object_getset): Register "global_num".
4162
4163 2016-01-13 Pedro Alves <palves@redhat.com>
4164
4165 * NEWS: Mention that thread IDs are now per inferior and global
4166 thread IDs.
4167 * Makefile.in (SFILES): Add tid-parse.c.
4168 (COMMON_OBS): Add tid-parse.o.
4169 (HFILES_NO_SRCDIR): Add tid-parse.h.
4170 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
4171 * breakpoint.c (insert_breakpoint_locations)
4172 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
4173 (print_one_breakpoint_location, set_longjmp_breakpoint)
4174 (check_longjmp_breakpoint_for_call_dummy)
4175 (set_momentary_breakpoint): Adjust to use global IDs.
4176 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
4177 (until_break_command, longjmp_bkpt_dtor)
4178 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
4179 to use global IDs.
4180 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
4181 ptid_to_global_thread_id.
4182 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4183 * gdbthread.h (struct thread_info): Rename field 'num' to
4184 'global_num. Add new fields 'per_inf_num' and 'inf'.
4185 (thread_id_to_pid): Rename thread_id_to_pid to
4186 global_thread_id_to_ptid.
4187 (pid_to_thread_id): Rename to ...
4188 (ptid_to_global_thread_id): ... this.
4189 (valid_thread_id): Rename to ...
4190 (valid_global_thread_id): ... this.
4191 (find_thread_id): Rename to ...
4192 (find_thread_global_id): ... this.
4193 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
4194 (print_thread_info): Add comment.
4195 * tid-parse.h: New file.
4196 * tid-parse.c: New file.
4197 * infcmd.c (step_command_fsm_prepare)
4198 (step_command_fsm_should_stop): Adjust to use the global thread
4199 ID.
4200 (until_next_command, until_next_command)
4201 (finish_command_fsm_should_stop): Adjust to use the global thread
4202 ID.
4203 (attach_post_wait): Adjust to check the inferior number too.
4204 * inferior.h (struct inferior) <highest_thread_num>: New field.
4205 * infrun.c (handle_signal_stop)
4206 (insert_exception_resume_breakpoint)
4207 (insert_exception_resume_from_probe): Adjust to use the global
4208 thread ID.
4209 * record-btrace.c (record_btrace_open): Use global thread IDs.
4210 * remote.c (process_initial_stop_replies): Also consider the
4211 inferior number.
4212 * target.c (target_pre_inferior): Clear the inferior's highest
4213 thread num.
4214 * thread.c (clear_thread_inferior_resources): Adjust to use the
4215 global thread ID.
4216 (new_thread): New inferior parameter. Adjust to use it. Set both
4217 the thread's global ID and the thread's per-inferior ID.
4218 (add_thread_silent): Adjust.
4219 (find_thread_global_id): New.
4220 (find_thread_id): Make static. Adjust to rename.
4221 (valid_thread_id): Rename to ...
4222 (valid_global_thread_id): ... this.
4223 (pid_to_thread_id): Rename to ...
4224 (ptid_to_global_thread_id): ... this.
4225 (thread_id_to_pid): Rename to ...
4226 (global_thread_id_to_ptid): ... this. Adjust.
4227 (first_thread_of_process): Adjust.
4228 (do_captured_list_thread_ids): Adjust to use global thread IDs.
4229 (should_print_thread): New function.
4230 (print_thread_info): Rename to ...
4231 (print_thread_info_1): ... this, and add new show_global_ids
4232 parameter. Handle it. Iterate over inferiors.
4233 (print_thread_info): Reimplement as wrapper around
4234 print_thread_info_1.
4235 (show_inferior_qualified_tids): New function.
4236 (print_thread_id): Use it.
4237 (tp_array_compar): Compare inferior numbers too.
4238 (thread_apply_command): Use tid_range_parser.
4239 (do_captured_thread_select): Use parse_thread_id.
4240 (thread_id_make_value): Adjust.
4241 (_initialize_thread): Adjust "info threads" help string.
4242 * varobj.c (struct varobj_root): Update comment.
4243 (varobj_create): Adjust to use global thread IDs.
4244 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
4245 * windows-tdep.c (display_tib): No longer accept an argument.
4246 * cli/cli-utils.c (get_number_trailer): Make extern.
4247 * cli/cli-utils.h (get_number_trailer): Declare.
4248 (get_number_const): Adjust documentation.
4249 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
4250 thread IDs.
4251 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4252 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
4253 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
4254 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
4255 Likewise.
4256 * python/py-breakpoint.c (bppy_set_thread): Likewise.
4257 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4258 * python/py-infthread.c (thpy_get_num): Add comment and return the
4259 per-inferior thread ID.
4260 (thread_object_getset): Update comment of "num".
4261
4262 2016-01-13 Pedro Alves <palves@redhat.com>
4263
4264 * breakpoint.c (remove_threaded_breakpoints)
4265 (print_one_breakpoint_location): Use print_thread_id.
4266 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4267 (btrace_fetch, btrace_clear): Use print_thread_id.
4268 * common/print-utils.c (CELLSIZE): Delete.
4269 (get_cell): Rename to ...
4270 (get_print_cell): ... this and made extern. Adjust call callers.
4271 Adjust to use PRINT_CELL_SIZE.
4272 * common/print-utils.h (get_print_cell): Declare.
4273 (PRINT_CELL_SIZE): New.
4274 * gdbthread.h (print_thread_id): Declare.
4275 * infcmd.c (signal_command): Use print_thread_id.
4276 * inferior.c (print_inferior): Use print_thread_id.
4277 * infrun.c (handle_signal_stop)
4278 (insert_exception_resume_breakpoint)
4279 (insert_exception_resume_from_probe)
4280 (print_signal_received_reason): Use print_thread_id.
4281 * record-btrace.c (record_btrace_info)
4282 (record_btrace_resume_thread, record_btrace_cancel_resume)
4283 (record_btrace_step_thread, record_btrace_wait): Use
4284 print_thread_id.
4285 * thread.c (thread_apply_all_command): Use print_thread_id.
4286 (print_thread_id): New function.
4287 (thread_apply_command): Use print_thread_id.
4288 (thread_command, thread_find_command, do_captured_thread_select):
4289 Use print_thread_id.
4290
4291 2016-01-13 Pedro Alves <palves@redhat.com>
4292
4293 * NEWS: Mention InferiorThread.inferior.
4294 * python/py-infthread.c (thpy_get_inferior): New.
4295 (thread_object_getset): Register "inferior".
4296
4297 2016-01-13 Pedro Alves <palves@redhat.com>
4298
4299 * NEWS: Mention $_inferior.
4300 * inferior.c (inferior_id_make_value): New.
4301 (inferior_funcs): New.
4302 (_initialize_inferior): Create $_inferior variable.
4303
4304 2016-01-13 Pedro Alves <palves@redhat.com>
4305
4306 PR breakpoints/19388
4307 * frame.c (get_current_frame): Use validate_registers_access.
4308 * gdbthread.h (validate_registers_access): Declare.
4309 * infrun.c (validate_siginfo_access): Delete.
4310 (siginfo_value_read, siginfo_value_write): Use
4311 validate_registers_access.
4312 * thread.c (validate_registers_access): New function.
4313
4314 2016-01-12 Josh Stone <jistone@redhat.com>
4315 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4316
4317 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
4318 syscall_entry and syscall_return stop reasons. Mention GDB
4319 support for remote catch syscall.
4320 * remote.c (PACKET_QCatchSyscalls): New enum.
4321 (remote_set_syscall_catchpoint): New function.
4322 (remote_protocol_features): New element for QCatchSyscalls.
4323 (remote_parse_stop_reply): Parse syscall_entry/return stops.
4324 (init_remote_ops): Install remote_set_syscall_catchpoint.
4325 (_initialize_remote): Config QCatchSyscalls.
4326 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
4327
4328 2016-01-12 Yao Qi <yao.qi@linaro.org>
4329
4330 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
4331 to gdb_byte * and pass to linux_fork_to_function.
4332
4333 2016-01-12 Yao Qi <yao.qi@linaro.org>
4334
4335 * nat/linux-ptrace.c (linux_fork_to_function): Change type
4336 of argument 'function'.
4337 (linux_grandchild_function): Change return type to 'int'.
4338 Change child_stack's type to 'void *'.
4339 (linux_child_function): Likewise.
4340
4341 2016-01-12 Pedro Alves <palves@redhat.com>
4342
4343 Remove use of the registered trademark symbol throughout.
4344
4345 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
4346
4347 * reply_mig_hack.awk: Rewrite one regular expression.
4348
4349 2016-01-11 Mike Frysinger <vapier@gentoo.org>
4350
4351 * acinclude.m4: Include new warning.m4 file.
4352 * configure: Regenerated.
4353 * configure.ac: Move all warning logic ...
4354 * warning.m4: ... here.
4355
4356 2016-01-08 Yao Qi <yao.qi@linaro.org>
4357
4358 * extension.c: Include target.h.
4359 (set_active_ext_lang): Only call install_gdb_sigint_handler,
4360 check_quit_flag, and set_quit_flag if target_terminal_is_ours
4361 returns false.
4362 (restore_active_ext_lang): Likewise.
4363 * target.c (target_terminal_is_ours): New function.
4364 * target.h (target_terminal_is_ours): Declare.
4365
4366 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
4367
4368 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
4369 to `err' in the little-endian leg.
4370
4371 2016-01-06 Yao Qi <yao.qi@linaro.org>
4372
4373 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
4374 lines below.
4375 (thumb_get_next_pcs_raw): Make it static.
4376 (arm_get_next_pcs_raw): Likewise.
4377 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
4378 declaration.
4379 (arm_get_next_pcs_raw): Likewise.
4380
4381 2016-01-05 Mike Frysinger <vapier@gentoo.org>
4382
4383 * version.in: Change cvs to git.
4384
4385 2016-01-05 Mike Frysinger <vapier@gentoo.org>
4386
4387 * configure.tgt (score-*-*): Delete gdb_sim assignment.
4388
4389 2016-01-05 Pedro Alves <palves@redhat.com>
4390
4391 PR sim/13418
4392 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
4393 the target is powerpc*.
4394 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
4395 of WITH_SIM.
4396 * configure: Regenerate.
4397 * config.in: Regenerate.
4398
4399 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
4400
4401 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
4402
4403 2016-01-02 Mike Frysinger <vapier@gentoo.org>
4404
4405 * configure.tgt (powerpc*-*-*): Delete test call and
4406 always assign gdb_sim.
4407
4408 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4409
4410 Update year range in copyright notice of all files.
4411
4412 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4413
4414 * top.c (print_gdb_version): Change copyright year in version
4415 message.
4416
4417 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4418
4419 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
4420
4421 For older changes see ChangeLog-2015.
4422 \f
4423 Local Variables:
4424 mode: change-log
4425 left-margin: 8
4426 fill-column: 74
4427 version-control: never
4428 coding: utf-8
4429 End:
This page took 0.123123 seconds and 4 git commands to generate.