Convert infcalls to thread_fsm mechanism
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
388a7084
PA
12015-09-09 Pedro Alves <palves@redhat.com>
2
3 * infcall.c: Include thread_fsm.h.
4 (struct call_return_meta_info): New.
5 (get_call_return_value): New function, factored out from
6 call_function_by_hand_dummy.
7 (struct call_thread_fsm): New.
8 (call_thread_fsm_ops): New global.
9 (new_call_thread_fsm, call_thread_fsm_should_stop)
10 (call_thread_fsm_should_notify_stop): New functions.
11 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
12 the thread.
13 (call_function_by_hand_dummy): Create a new call_thread_fsm
14 instance, associate it with the thread, and wait for the FSM to
15 finish. If finished successfully, fetch the function's result
16 value out of the FSM.
17 * infrun.c (fetch_inferior_event): If the FSM says the stop
18 shouldn't be notified, don't call normal_stop.
19 (maybe_remove_breakpoints): New function, factored out from ...
20 (normal_stop): ... here. Simplify.
21 * infrun.h (maybe_remove_breakpoints): Declare.
22 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
23 (thread-fsm.h) <struct thread_fsm_ops>: New field.
24 (thread_fsm_should_notify_stop): Declare.
25
243a9253
PA
262015-09-09 Pedro Alves <palves@redhat.com>
27
28 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
29 * breakpoint.c (handle_jit_event): Print debug output.
30 (bpstat_what): Split event callback handling to ...
31 (bpstat_run_callbacks): ... this new function.
32 (momentary_bkpt_print_it): No longer handle bp_finish here.
33 * breakpoint.h (bpstat_run_callbacks): Declare.
34 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
35 <thread_fsm>: New field.
36 (thread_cancel_execution_command): Declare.
37 * infcmd.c: Include thread-fsm.h.
38 (struct step_command_fsm): New.
39 (step_command_fsm_ops): New global.
40 (new_step_command_fsm, step_command_fsm_prepare): New functions.
41 (step_1): Adjust to use step_command_fsm_prepare and
42 prepare_one_step.
43 (struct step_1_continuation_args): Delete.
44 (step_1_continuation): Delete.
45 (step_command_fsm_should_stop): New function.
46 (step_once): Delete.
47 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
48 (prepare_one_step): New function, based on step_once.
49 (until_next_command): Remove step_multi reference.
50 (struct return_value_info): New.
51 (print_return_value): Rename to ...
52 (print_return_value_1): ... this. New struct return_value_info
53 parameter. Adjust.
54 (print_return_value): Reimplement as wrapper around
55 print_return_value_1.
56 (struct finish_command_fsm): New.
57 (finish_command_continuation): Delete.
58 (finish_command_fsm_ops): New global.
59 (new_finish_command_fsm, finish_command_fsm_should_stop): New
60 functions.
61 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
62 New.
63 (finish_command_continuation_free_arg): Delete.
64 (finish_command_fsm_async_reply_reason): New.
65 (finish_backward, finish_forward): Change symbol parameter to a
66 finish_command_fsm. Adjust.
67 (finish_command): Create a finish_command_fsm. Adjust.
68 * infrun.c: Include "thread-fsm.h".
69 (clear_proceed_status_thread): Delete the thread's FSM.
70 (infrun_thread_stop_requested_callback): Cancel the thread's
71 execution command.
72 (clean_up_just_stopped_threads_fsms): New function.
73 (fetch_inferior_event): Handle the event_thread's should_stop
74 method saying the command isn't done yet.
75 (process_event_stop_test): Run breakpoint callbacks here.
76 (print_stop_event): Rename to ...
77 (print_stop_location): ... this.
78 (restore_current_uiout_cleanup): New function.
79 (print_stop_event): Reimplement.
80 (normal_stop): No longer notify the end_stepping_range observers
81 here handle "step N" nor "finish" here. No longer call
82 print_stop_event here.
83 * infrun.h (struct return_value_info): Forward declare.
84 (print_return_value): Declare.
85 (print_stop_event): Change prototype.
86 * thread-fsm.c: New file.
87 * thread-fsm.h: New file.
88 * thread.c: Include "thread-fsm.h".
89 (thread_cancel_execution_command): New function.
90 (clear_thread_inferior_resources): Call it.
91 * cli/cli-interp.c (cli_on_normal_stop): New function.
92 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
93 observer.
94 * mi/mi-interp.c: Include "thread-fsm.h".
95 (restore_current_uiout_cleanup): Delete.
96 (mi_on_normal_stop): If the thread has an FSM associated, and it
97 finished, ask it for the async-reply-reason to print. Always call
98 print_stop_event here, regardless of the top-level interpreter.
99 Check bpstat_what to tell whether an asynchronous breakpoint hit
100 triggered.
101 * tui/tui-interp.c (tui_on_normal_stop): New function.
102 (tui_init): Install tui_on_normal_stop as normal_stop observer.
103
0b333c5e
PA
1042015-09-09 Pedro Alves <palves@redhat.com>
105
106 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
107 check whether the target can async.
108 * inf-loop.c (inferior_event_handler): Only call target_async if
109 the target can async.
110 * infcall.c: Include top.h and interps.h.
111 (run_inferior_call): For the interpreter to sync mode while
112 running the infcall. Call wait_sync_command_done instead of
113 wait_for_inferior plus normal_stop.
114 * infcmd.c (prepare_execution_command): Don't check whether the
115 target can async when running in the foreground.
116 (step_1): Delete synchronous case handling.
117 (step_once): Always install a continuation, even in sync mode.
118 (until_next_command, finish_forward): Don't check whether the
119 target can async.
120 (attach_command_post_wait, notice_new_inferior): Always install a
121 continuation, even in sync mode.
122 * infrun.c (mark_infrun_async_event_handler): New function.
123 (proceed): In sync mode, mark infrun's event source instead of
124 waiting for events here.
125 (fetch_inferior_event): If the target can't async, do a blocking
126 wait.
127 (prepare_to_wait): In sync mode, mark infrun's event source.
128 (infrun_async_inferior_event_handler): No longer bail out if the
129 target can't async.
130 * infrun.h (mark_infrun_async_event_handler): New declaration.
131 * linux-nat.c (linux_nat_wait_1): Remove calls to
132 set_sigint_trap/clear_sigint_trap.
133 (linux_nat_terminal_inferior): No longer check whether the target
134 can async.
135 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
136 comment.
137 (mi_execute_command_input_handler): No longer check whether the
138 target is async. Update and simplify comment.
139 * target.c (default_target_wait): New function.
140 * target.h (struct target_ops) <to_wait>: Now defaults to
141 default_target_wait.
142 (default_target_wait): Declare.
143 * top.c (wait_sync_command_done): New function, factored out from
144 ...
145 (maybe_wait_sync_command_done): ... this.
146 * top.h (wait_sync_command_done): Declare.
147 * target-delegates.c: Regenerate.
148
0568462b
MM
1492015-09-09 Markus Metzger <markus.t.metzger@intel.com>
150
151 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
152 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
153 Remove include of sys/utsname.h.
154 (linux_determine_kernel_ptr_bits): Remove.
155 (linux_determine_kernel_start): New.
156 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
157 Update check.
158 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
159 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
160 initialization.
161 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
162 assignment.
163
72e02483
PA
1642015-09-07 Pedro Alves <palves@redhat.com>
165
166 * guile/guile-internal.h (as_a_scm_t_subr): New.
167 * guile/guile.c (misc_guile_functions): Use it.
168 * guile/scm-arch.c (arch_functions): Use it.
169 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
170 Use it.
171 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
172 * guile/scm-cmd.c (command_functions): Use it.
173 * guile/scm-disasm.c (disasm_functions): Use it.
174 * guile/scm-exception.c (exception_functions)
175 (private_exception_functions): Use it.
176 * guile/scm-frame.c (frame_functions)
177 * guile/scm-gsmob.c (gsmob_functions): Use it.
178 * guile/scm-iterator.c (iterator_functions): Use it.
179 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
180 * guile/scm-math.c (math_functions): Use it.
181 * guile/scm-objfile.c (objfile_functions): Use it.
182 * guile/scm-param.c (parameter_functions): Use it.
183 * guile/scm-ports.c (port_functions, private_port_functions): Use
184 it.
185 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
186 * guile/scm-progspace.c (pspace_functions): Use it.
187 * guile/scm-string.c (string_functions): Use it.
188 * guile/scm-symbol.c (symbol_functions): Use it.
189 * guile/scm-symtab.c (symtab_functions): Use it.
190 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
191 it.
192 * guile/scm-value.c (value_functions): Use it.
193
e65b5245
AB
1942015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
197 (tui_next_win): Likewise.
198 (tui_prev_win): Likewise.
199 (tui_partial_win_by_name): Likewise.
200 (tui_init_generic_part): Likewise.
201 (init_content_element): Likewise.
202 (tui_del_window): Likewise.
203 (tui_free_window): Likewise.
204 (tui_del_data_windows): Likewise.
205 (tui_free_data_content): Likewise.
206 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
207 * tui/tui-regs.c (tui_show_register_group): Likewise.
208 * tui/tui-win.c (tui_resize_all): Likewise.
209 (tui_set_focus): Likewise.
210 (tui_set_win_height): Likewise.
211 (make_invisible_and_set_new_height): Likewise.
212 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
213 * tui/tui-wingeneral.c (make_visible): Likewise.
214
b03e6ad9
AB
2152015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
218
be903358
AB
2192015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
222 pointer.
223 * dbxread.c (dbx_end_psymtab): Likewise.
224 * gnu-nat.c (gnu_write_inferior): Likewise.
225 * mdebugread.c (cross_ref): Likewise.
226 * p-valprint.c (pascal_val_print): Likewise.
227 * xcoffread.c (xcoff_end_psymtab): Likewise.
228
02f024f9
YQ
2292015-09-04 Yao Qi <yao.qi@linaro.org>
230
231 * NEWS: Mention the aarch64 multi-arch debugging support.
232
cd7c1778
PMR
2332015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
234
235 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
236 type instead of a TYPE_CODE_INT one for the string_char_type
237 and the ada_primitive_type_char types.
238
39edd165
YQ
2392015-09-03 Yao Qi <yao.qi@linaro.org>
240
241 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
242 Move code to aarch64_linux_region_ok_for_watchpoint. Call
243 aarch64_linux_region_ok_for_watchpoint.
244 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
245 New function.
246 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
247 Declare it.
248
6c214e7c
PP
2492015-09-02 Patrick Palka <patrick@parcs.ath.cx>
250
251 * gdb_obstack.h (obstack_strdup): Declare.
252 * gdb_obstack.c (obstack_strdup): Define.
253 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
254 * gdbarch.c: Regenerate.
255 * gdbarch.h: Regenerate.
256 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
257
eed8b28a
PP
2582015-09-02 Patrick Palka <patrick@parcs.ath.cx>
259
260 * gdbtypes.c (copy_type_recursive): Update documentation.
261
73c6b475
SDJ
2622015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
263
264 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
265 as zero.
266
ad1c917a
SDJ
2672015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
268
269 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
270
3bd7e5b7
SDJ
2712015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
272
273 * solib-svr4.c (solib_event_probe_action): Call
274 get_probe_argument_count using TRY...CATCH.
275 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
276
f469e8ce
SDJ
2772015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
278
279 * probe.h (struct probe_ops) <get_probe_argument_count,
280 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
281 the comment that the function can throw an exception.
282 (get_probe_argument_count): Likewise.
283 (evaluate_probe_argument): Likewise.
284 * stap-probe.c (stap_get_opcode): Call error instead of
285 internal_error.
286 (stap_get_expected_argument_type): Likewise. Add argument
287 'probe'. Improve error message by mentioning the probe's name.
288 (stap_parse_probe_arguments): Adjust call to
289 stap_get_expected_argument_type.
290 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
291 not zero. Call internal_error if GDB requests an argument but the
292 probe has no arguments.
293
dc5c8746
PMR
2942015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
295
296 * ada-lang.c (ada_resolve_function): Do not ask the user what
297 match to use when in completion mode.
298
136765ea
AB
2992015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
300
301 * tui/tui-data.c (tui_win_name): Make local variable const, remove
302 cast of NULL.
303
90b81c5f
MF
3042015-08-31 Max Filippov <jcmvbkbc@gmail.com>
305
306 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
307 call_abi using XSHAL_ABI macro.
308
1cd36e54
DE
3092015-08-29 Doug Evans <xdje42@gmail.com>
310
311 * symtab.h (struct symbol): Tweak comment.
312
8f57eec2
PP
3132015-08-29 Patrick Palka <patrick@parcs.ath.cx>
314
315 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
316 gdbarch obstack instead of on the heap. Update commentary
317 accordingly.
318
38eebd71
JB
3192015-08-28 Joel Brobecker <brobecker@adacore.com>
320
321 GDB 7.10 released.
322
d63dd61e
SM
3232015-08-28 Simon Marchi <simon.marchi@ericsson.com>
324
325 * NEWS: Update entry about non-8-bits addressable memory.
326
6f059256
UW
3272015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
328
329 Revert:
330 2014-11-06 Doug Evans <xdje42@gmail.com>
331 * solib.c (solib_global_lookup): Fetch arch from objfile,
332 not target_gdbarch.
333
70987a92 3342015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
335
336 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
337 attempt to relocate a TLS variable offset.
338
70987a92 3392015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
340
341 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
342 registered yet. Set inferior_ptid while calling target_read_memory.
343
70987a92 3442015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
345
346 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
347 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
348 * linux-nat.c (check_stopped_by_breakpoint): Use
349 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
350
70987a92 3512015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
352
353 * linux-thread-db.c (thread_db_get_thread_local_address): If the
354 thread was not yet discovered, use thread_from_lwp instead of
355 calling thread_db_find_new_threads_1.
356
f5cdf498
SM
3572015-08-27 Simon Marchi <simon.marchi@ericsson.com>
358
359 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
360 statements.
361
fd2ae5d6
SM
3622015-08-27 Simon Marchi <simon.marchi@ericsson.com>
363
364 * NEWS: Document support for non-8-bits addressable memory.
365
14d88147
PA
3662015-08-27 Pedro Alves <palves@redhat.com>
367
368 * configure.ac: Remove AC_TYPE_SIGNAL call.
369 * configure, config.in: Regenerate.
370
a40805d4
PA
3712015-08-27 Pedro Alves <palves@redhat.com>
372
373 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
374 * extension-priv.h: Include signal.h.
375 (struct signal_handler) <handler>: Change type to sighandler_t.
376 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
377 * inflow.c (sigint_ours, sigquit_ours): Change type to
378 sighandler_t.
379 (child_terminal_inferior): Remove casts.
380 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
381 (osig): Change type to sighandler_t.
382 * nto-procfs.c (ofunc): Change type to sighandler_t.
383 (procfs_wait): Remove casts.
384 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
385 * remote-sim.c (gdbsim_wait): Use sighandler_t.
386 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
387
0750520d
PA
3882015-08-27 Pedro Alves <palves@redhat.com>
389
390 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
391 * gnulib/aclocal.m4: Renegerate.
392 * gnulib/config.in: Renegerate.
393 * gnulib/configure: Renegerate.
394 * gnulib/import/Makefile.am: Update.
395 * gnulib/import/Makefile.in: Regenerate.
396 * gnulib/import/m4/gnulib-cache.m4: Update.
397 * gnulib/import/m4/gnulib-comp.m4: Update.
398 * gnulib/import/m4/signal_h.m4: New file.
399 * gnulib/import/signal.in.h: New file.
400
a5c0808e
PA
4012015-08-27 Pedro Alves <palves@redhat.com>
402
403 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
404 (MIN_MEMORY_PACKET_SIZE): New.
405 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
406 (get_memory_packet_size): Adjust. No longer limit the max packet
407 size.
408 (set_memory_packet_size): Adjust, and remove dead code.
409 (remote_check_symbols): Use xmalloc and a cleanup instead of
410 alloca.
411 (remote_packet_size): No longer cap the packet size.
412 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
413
cdaec3f3
LM
4142015-08-26 Luis Machado <lgustavo@codesourcery.com>
415
416 * compile/compile.c (compile_to_object): Mention language in
417 error message.
418
e9756d52
PP
4192015-08-26 Patrick Palka <patrick@parcs.ath.cx>
420
421 * target.c (target_pre_inferior): Unset attach_flag.
422
1dc7a623
SM
4232015-08-26 Simon Marchi <simon.marchi@ericsson.com>
424
425 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
426 * gdbarch.c: Re-generate.
427
8d749320
SM
4282015-08-26 Simon Marchi <simon.marchi@ericsson.com>
429
6711b7f8
SM
430 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
431 function with the XNEW-family equivalent.
8d749320
SM
432 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
433 * ada-exp.y (write_ambiguous_var): Likewise.
434 * ada-lang.c (resolve_subexp): Likewise.
435 (user_select_syms): Likewise.
436 (assign_aggregate): Likewise.
437 (ada_evaluate_subexp): Likewise.
438 (cache_symbol): Likewise.
439 * addrmap.c (allocate_key): Likewise.
440 (addrmap_create_mutable): Likewise.
441 * aix-thread.c (sync_threadlists): Likewise.
442 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
443 (alpha_gdbarch_init): Likewise.
444 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
445 * arm-linux-nat.c (arm_linux_add_process): Likewise.
446 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
447 * arm-tdep.c (push_stack_item): Likewise.
448 (arm_displaced_step_copy_insn): Likewise.
449 (arm_gdbarch_init): Likewise.
450 (_initialize_arm_tdep): Likewise.
451 * avr-tdep.c (push_stack_item): Likewise.
452 * ax-general.c (new_agent_expr): Likewise.
453 * block.c (block_initialize_namespace): Likewise.
454 * breakpoint.c (alloc_counted_command_line): Likewise.
455 (update_dprintf_command_list): Likewise.
456 (parse_breakpoint_sals): Likewise.
457 (decode_static_tracepoint_spec): Likewise.
458 (until_break_command): Likewise.
459 (clear_command): Likewise.
460 (update_global_location_list): Likewise.
461 (get_breakpoint_objfile_data) Likewise.
462 * btrace.c (ftrace_new_function): Likewise.
463 (btrace_set_insn_history): Likewise.
464 (btrace_set_call_history): Likewise.
465 * buildsym.c (add_symbol_to_list): Likewise.
466 (record_pending_block): Likewise.
467 (start_subfile): Likewise.
468 (start_buildsym_compunit): Likewise.
469 (push_subfile): Likewise.
470 (end_symtab_get_static_block): Likewise.
471 (buildsym_init): Likewise.
472 * cli/cli-cmds.c (source_command): Likewise.
473 * cli/cli-decode.c (add_cmd): Likewise.
474 * cli/cli-script.c (build_command_line): Likewise.
475 (setup_user_args): Likewise.
476 (realloc_body_list): Likewise.
477 (process_next_line): Likewise.
478 (copy_command_lines): Likewise.
479 * cli/cli-setshow.c (do_set_command): Likewise.
480 * coff-pe-read.c (read_pe_exported_syms): Likewise.
481 * coffread.c (coff_locate_sections): Likewise.
482 (coff_symtab_read): Likewise.
483 (coff_read_struct_type): Likewise.
484 * common/cleanups.c (make_my_cleanup2): Likewise.
485 * common/common-exceptions.c (throw_it): Likewise.
486 * common/filestuff.c (make_cleanup_close): Likewise.
487 * common/format.c (parse_format_string): Likewise.
488 * common/queue.h (DEFINE_QUEUE_P): Likewise.
489 * compile/compile-object-load.c (munmap_list_add): Likewise.
490 (compile_object_load): Likewise.
491 * compile/compile-object-run.c (compile_object_run): Likewise.
492 * compile/compile.c (append_args): Likewise.
493 * corefile.c (specify_exec_file_hook): Likewise.
494 * cp-support.c (make_symbol_overload_list): Likewise.
495 * cris-tdep.c (push_stack_item): Likewise.
496 (cris_gdbarch_init): Likewise.
497 * ctf.c (ctf_trace_file_writer_new): Likewise.
498 * dbxread.c (init_header_files): Likewise.
499 (add_new_header_file): Likewise.
500 (init_bincl_list): Likewise.
501 (dbx_end_psymtab): Likewise.
502 (start_psymtab): Likewise.
503 (dbx_end_psymtab): Likewise.
504 * dcache.c (dcache_init): Likewise.
505 * dictionary.c (dict_create_hashed): Likewise.
506 (dict_create_hashed_expandable): Likewise.
507 (dict_create_linear): Likewise.
508 (dict_create_linear_expandable): Likewise.
509 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
510 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
511 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
512 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
513 (decode_frame_entry_1): Likewise.
514 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
515 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
516 * dwarf2read.c (dwarf2_has_info): Likewise.
517 (create_signatured_type_table_from_index): Likewise.
518 (dwarf2_read_index): Likewise.
519 (dw2_get_file_names_reader): Likewise.
520 (create_all_type_units): Likewise.
521 (read_cutu_die_from_dwo): Likewise.
522 (init_tu_and_read_dwo_dies): Likewise.
523 (init_cutu_and_read_dies): Likewise.
524 (create_all_comp_units): Likewise.
525 (queue_comp_unit): Likewise.
526 (inherit_abstract_dies): Likewise.
527 (read_call_site_scope): Likewise.
528 (dwarf2_add_field): Likewise.
529 (dwarf2_add_typedef): Likewise.
530 (dwarf2_add_member_fn): Likewise.
531 (attr_to_dynamic_prop): Likewise.
532 (abbrev_table_alloc_abbrev): Likewise.
533 (abbrev_table_read_table): Likewise.
534 (add_include_dir): Likewise.
535 (add_file_name): Likewise.
536 (dwarf_decode_line_header): Likewise.
537 (dwarf2_const_value_attr): Likewise.
538 (dwarf_alloc_block): Likewise.
539 (parse_macro_definition): Likewise.
540 (set_die_type): Likewise.
541 (write_psymtabs_to_index): Likewise.
542 (create_cus_from_index): Likewise.
543 (dwarf2_create_include_psymtab): Likewise.
544 (process_psymtab_comp_unit_reader): Likewise.
545 (build_type_psymtab_dependencies): Likewise.
546 (read_comp_units_from_section): Likewise.
547 (compute_compunit_symtab_includes): Likewise.
548 (create_dwo_unit_in_dwp_v1): Likewise.
549 (create_dwo_unit_in_dwp_v2): Likewise.
550 (read_func_scope): Likewise.
551 (process_structure_scope): Likewise.
552 (mark_common_block_symbol_computed): Likewise.
553 (load_partial_dies): Likewise.
554 (dwarf2_symbol_mark_computed): Likewise.
555 * elfread.c (elf_symfile_segments): Likewise.
556 (elf_read_minimal_symbols): Likewise.
557 * environ.c (make_environ): Likewise.
558 * eval.c (evaluate_subexp_standard): Likewise.
559 * event-loop.c (create_file_handler): Likewise.
560 (create_async_signal_handler): Likewise.
561 (create_async_event_handler): Likewise.
562 (create_timer): Likewise.
563 * exec.c (build_section_table): Likewise.
564 * fbsd-nat.c (fbsd_remember_child): Likewise.
565 * fork-child.c (fork_inferior): Likewise.
566 * frv-tdep.c (new_variant): Likewise.
567 * gdbarch.sh (gdbarch_alloc): Likewise.
568 (append_name): Likewise.
569 * gdbtypes.c (rank_function): Likewise.
570 (copy_type_recursive): Likewise.
571 (add_dyn_prop): Likewise.
572 * gnu-nat.c (make_proc): Likewise.
573 (make_inf): Likewise.
574 (gnu_write_inferior): Likewise.
575 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
576 (build_std_type_info_type): Likewise.
577 * guile/scm-param.c (compute_enum_list): Likewise.
578 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
579 * guile/scm-value.c (gdbscm_value_call): Likewise.
580 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
581 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
582 (read_unwind_info): Likewise.
583 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
584 * infcall.c (dummy_frame_context_saver_setup): Likewise.
585 (call_function_by_hand_dummy): Likewise.
586 * infcmd.c (step_once): Likewise.
587 (finish_forward): Likewise.
588 (attach_command): Likewise.
589 (notice_new_inferior): Likewise.
590 * inferior.c (add_inferior_silent): Likewise.
591 * infrun.c (add_displaced_stepping_state): Likewise.
592 (save_infcall_control_state): Likewise.
593 (save_inferior_ptid): Likewise.
594 (_initialize_infrun): Likewise.
595 * jit.c (bfd_open_from_target_memory): Likewise.
596 (jit_gdbarch_data_init): Likewise.
597 * language.c (add_language): Likewise.
598 * linespec.c (decode_line_2): Likewise.
599 * linux-nat.c (add_to_pid_list): Likewise.
600 (add_initial_lwp): Likewise.
601 * linux-thread-db.c (add_thread_db_info): Likewise.
602 (record_thread): Likewise.
603 (info_auto_load_libthread_db): Likewise.
604 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
606 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
607 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
608 * macrocmd.c (macro_define_command): Likewise.
609 * macroexp.c (gather_arguments): Likewise.
610 * macroscope.c (sal_macro_scope): Likewise.
611 * macrotab.c (new_macro_table): Likewise.
612 * mdebugread.c (push_parse_stack): Likewise.
613 (parse_partial_symbols): Likewise.
614 (parse_symbol): Likewise.
615 (psymtab_to_symtab_1): Likewise.
616 (new_block): Likewise.
617 (new_psymtab): Likewise.
618 (mdebug_build_psymtabs): Likewise.
619 (add_pending): Likewise.
620 (elfmdebug_build_psymtabs): Likewise.
621 * mep-tdep.c (mep_gdbarch_init): Likewise.
622 * mi/mi-main.c (mi_execute_command): Likewise.
623 * mi/mi-parse.c (mi_parse_argv): Likewise.
624 * minidebug.c (lzma_open): Likewise.
625 * minsyms.c (terminate_minimal_symbol_table): Likewise.
626 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
627 * mips-tdep.c (mips_gdbarch_init): Likewise.
628 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
629 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
630 * mt-tdep.c (mt_registers_info): Likewise.
631 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
632 * nat/linux-btrace.c (linux_enable_bts): Likewise.
633 (linux_enable_pt): Likewise.
634 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
635 (linux_xfer_osdata_processgroups): Likewise.
636 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
637 * nto-procfs.c (procfs_meminfo): Likewise.
638 * objc-lang.c (start_msglist): Likewise.
639 (selectors_info): Likewise.
640 (classes_info): Likewise.
641 (find_methods): Likewise.
642 * objfiles.c (allocate_objfile): Likewise.
643 (update_section_map): Likewise.
644 * osabi.c (gdbarch_register_osabi): Likewise.
645 (gdbarch_register_osabi_sniffer): Likewise.
646 * parse.c (start_arglist): Likewise.
647 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
648 (hwdebug_insert_point): Likewise.
649 * printcmd.c (display_command): Likewise.
650 (ui_printf): Likewise.
651 * procfs.c (create_procinfo): Likewise.
652 (load_syscalls): Likewise.
653 (proc_get_LDT_entry): Likewise.
654 (proc_update_threads): Likewise.
655 * prologue-value.c (make_pv_area): Likewise.
656 (pv_area_store): Likewise.
657 * psymtab.c (extend_psymbol_list): Likewise.
658 (init_psymbol_list): Likewise.
659 (allocate_psymtab): Likewise.
660 * python/py-inferior.c (add_thread_object): Likewise.
661 * python/py-param.c (compute_enum_values): Likewise.
662 * python/py-value.c (valpy_call): Likewise.
663 * python/py-varobj.c (py_varobj_iter_next): Likewise.
664 * python/python.c (ensure_python_env): Likewise.
665 * record-btrace.c (record_btrace_start_replaying): Likewise.
666 * record-full.c (record_full_reg_alloc): Likewise.
667 (record_full_mem_alloc): Likewise.
668 (record_full_end_alloc): Likewise.
669 (record_full_core_xfer_partial): Likewise.
670 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
671 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
672 * remote-notif.c (remote_notif_state_allocate): Likewise.
673 * remote.c (demand_private_info): Likewise.
674 (remote_notif_stop_alloc_reply): Likewise.
675 (remote_enable_btrace): Likewise.
676 * reverse.c (save_bookmark_command): Likewise.
677 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
678 * rx-tdep.c (rx_gdbarch_init): Likewise.
679 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
680 * ser-go32.c (dos_get_tty_state): Likewise.
681 (dos_copy_tty_state): Likewise.
682 * ser-mingw.c (ser_windows_open): Likewise.
683 (ser_console_wait_handle): Likewise.
684 (ser_console_get_tty_state): Likewise.
685 (make_pipe_state): Likewise.
686 (net_windows_open): Likewise.
687 * ser-unix.c (hardwire_get_tty_state): Likewise.
688 (hardwire_copy_tty_state): Likewise.
689 * solib-aix.c (solib_aix_new_lm_info): Likewise.
690 * solib-dsbt.c (dsbt_current_sos): Likewise.
691 (dsbt_relocate_main_executable): Likewise.
692 * solib-frv.c (frv_current_sos): Likewise.
693 (frv_relocate_main_executable): Likewise.
694 * solib-spu.c (spu_bfd_fopen): Likewise.
695 * solib-svr4.c (lm_info_read): Likewise.
696 (svr4_copy_library_list): Likewise.
697 (svr4_default_sos): Likewise.
698 * source.c (find_source_lines): Likewise.
699 (line_info): Likewise.
700 (add_substitute_path_rule): Likewise.
701 * spu-linux-nat.c (spu_bfd_open): Likewise.
702 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
703 * stabsread.c (dbx_lookup_type): Likewise.
704 (read_type): Likewise.
705 (read_member_functions): Likewise.
706 (read_struct_fields): Likewise.
707 (read_baseclasses): Likewise.
708 (read_args): Likewise.
709 (_initialize_stabsread): Likewise.
710 * stack.c (func_command): Likewise.
711 * stap-probe.c (handle_stap_probe): Likewise.
712 * symfile.c (addrs_section_sort): Likewise.
713 (addr_info_make_relative): Likewise.
714 (load_section_callback): Likewise.
715 (add_symbol_file_command): Likewise.
716 (init_filename_language_table): Likewise.
717 * symtab.c (create_filename_seen_cache): Likewise.
718 (sort_search_symbols_remove_dups): Likewise.
719 (search_symbols): Likewise.
720 * target.c (make_cleanup_restore_target_terminal): Likewise.
721 * thread.c (new_thread): Likewise.
722 (enable_thread_stack_temporaries): Likewise.
723 (make_cleanup_restore_current_thread): Likewise.
724 (thread_apply_all_command): Likewise.
725 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
726 * top.c (gdb_readline_wrapper): Likewise.
727 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
728 * tracepoint.c (trace_find_line_command): Likewise.
729 (all_tracepoint_actions_and_cleanup): Likewise.
730 (make_cleanup_restore_current_traceframe): Likewise.
731 (get_uploaded_tp): Likewise.
732 (get_uploaded_tsv): Likewise.
733 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
734 (tui_alloc_win_info): Likewise.
735 (tui_alloc_content): Likewise.
736 (tui_add_content_elements): Likewise.
737 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
738 (tui_set_disassem_content): Likewise.
739 * ui-file.c (ui_file_new): Likewise.
740 (stdio_file_new): Likewise.
741 (tee_file_new): Likewise.
742 * utils.c (make_cleanup_restore_integer): Likewise.
743 (add_internal_problem_command): Likewise.
744 * v850-tdep.c (v850_gdbarch_init): Likewise.
745 * valops.c (find_oload_champ): Likewise.
746 * value.c (allocate_value_lazy): Likewise.
747 (record_latest_value): Likewise.
748 (create_internalvar): Likewise.
749 * varobj.c (install_variable): Likewise.
750 (new_variable): Likewise.
751 (new_root_variable): Likewise.
752 (cppush): Likewise.
753 (_initialize_varobj): Likewise.
754 * windows-nat.c (windows_make_so): Likewise.
755 * x86-nat.c (x86_add_process): Likewise.
756 * xcoffread.c (arrange_linetable): Likewise.
757 (allocate_include_entry): Likewise.
758 (process_linenos): Likewise.
759 (SYMBOL_DUP): Likewise.
760 (xcoff_start_psymtab): Likewise.
761 (xcoff_end_psymtab): Likewise.
762 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
763 * xtensa-tdep.c (xtensa_register_type): Likewise.
764 * gdbarch.c: Regenerate.
765 * gdbarch.h: Regenerate.
766
17d8546e
DB
7672015-08-25 Don Breazeal <donb@codesourcery.com>
768
769 * infrun.c (follow_exec): Re-order operations for
770 handling follow-exec-mode "new".
771 (handle_inferior_event_1): Assign ecs->event_thread
772 to the current thread.
773 * remote.c (get_remote_arch_state): Add an assertion.
774
ba49e44b
PA
7752015-08-26 Pedro Alves <palves@redhat.com>
776
777 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
778
7541ab03 7792015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 780
7541ab03 781 PR gdb/18804
abc56d60
PA
782 * defs.h (maybe_quit): Declare.
783 (QUIT): Now calls maybe_quit.
784 * event-loop.c (clear_async_signal_handler)
785 (async_signal_handler_is_marked): New functions.
786 * event-loop.h (async_signal_handler_is_marked)
787 (clear_async_signal_handler): New declarations.
788 * remote.c (remote_check_pending_interrupt): New function.
789 (interrupt_query): Use make_cleanup_restore_target_terminal. No
790 longer check whether the target is async. If waiting for a stop
791 reply, and a Ctrl-C as been sent to the target, offer to
792 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
793 Otherwise do not disconnect and throw a quit.
794 (_initialize_remote): Install remote_check_pending_interrupt as
795 to_check_pending_interrupt.
796 * target.c (target_check_pending_interrupt): New function.
797 * target.h (struct target_ops) <to_check_pending_interrupt>: New
798 field.
799 (target_check_pending_interrupt): New declaration.
800 * utils.c (maybe_quit): New function.
801 * target-delegates.c: Regenerate.
802
dfe7f77c
YQ
8032015-08-25 Yao Qi <yao.qi@linaro.org>
804
805 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
806 Rename local variable pid to tid, and get lwpid of lwp. Update
807 debug output.
808
63e43d3a
PMR
8092015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
810
811 * ada-lang.c (ada_read_var_value): Add a var_block argument
812 and pass it to default_read_var_value.
813 * block.c (block_static_link): New accessor.
814 * block.h (block_static_link): Declare it.
815 * buildsym.c (finish_block_internal): Add a static_link
816 argument. If there is a static link, associate it to the new
817 block.
818 (finish_block): Add a static link argument and pass it to
819 finish_block_internal.
820 (end_symtab_get_static_block): Update calls to finish_block and
821 to finish_block_internal.
822 (end_symtab_with_blockvector): Update call to
823 finish_block_internal.
824 * buildsym.h: Forward-declare struct dynamic_prop.
825 (struct context_stack): Add a static_link field.
826 (finish_block): Add a static link argument.
827 * c-exp.y: Remove an obsolete comment (evaluation of variables
828 already start from the selected frame, and now they climb *up*
829 the call stack) and propagate the block information to the
830 produced expression.
831 * d-exp.y: Likewise.
832 * f-exp.y: Likewise.
833 * go-exp.y: Likewise.
834 * jv-exp.y: Likewise.
835 * m2-exp.y: Likewise.
836 * p-exp.y: Likewise.
837 * coffread.c (coff_symtab_read): Update calls to finish_block.
838 * dbxread.c (process_one_symbol): Likewise.
839 * xcoffread.c (read_xcoff_symtab): Likewise.
840 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
841 "sym" parameter to struct block_symbol, update its uses and pass
842 its block to calls to read_var_value.
843 (convert_symbol_sym): Update the calls to convert_one_symbol.
844 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
845 call to read_var_value.
846 * dwarf2loc.c (block_op_get_frame_base): New.
847 (dwarf2_block_frame_base_locexpr_funcs): Implement the
848 get_frame_base method.
849 (dwarf2_block_frame_base_loclist_funcs): Likewise.
850 (dwarf2locexpr_baton_eval): Add a frame argument and use it
851 instead of the selected frame in order to evaluate the
852 expression.
853 (dwarf2_evaluate_property): Add a frame argument. Update call
854 to dwarf2_locexpr_baton_eval to provide a frame in available and
855 to handle the absence of address stack.
856 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
857 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
858 declaration.
859 (read_func_scope): Record any available static link description.
860 Update call to finish_block.
861 (read_lexical_block_scope): Update call to finish_block.
862 * findvar.c (follow_static_link): New.
863 (get_hosting_frame): New.
864 (default_read_var_value): Add a var_block argument. Use
865 get_hosting_frame to handle non-local references.
866 (read_var_value): Add a var_block argument and pass it to the
867 LA_READ_VAR_VALUE method.
868 * gdbtypes.c (resolve_dynamic_range): Update calls to
869 dwarf2_evaluate_property.
870 (resolve_dynamic_type_internal): Likewise.
871 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
872 read_var_value, passing it the block coming from symbol lookup.
873 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
874 read_var_value (TODO).
875 * infcmd.c (finish_command_continuation): Update call to
876 read_var_value, passing it the block coming from symbol lookup.
877 * infrun.c (insert_exception_resume_breakpoint): Likewise.
878 * language.h (struct language_defn): Add a var_block argument to
879 the LA_READ_VAR_VALUE method.
880 * objfiles.c (struct static_link_htab_entry): New.
881 (static_link_htab_entry_hash): New.
882 (static_link_htab_entry_eq): New.
883 (objfile_register_static_link): New.
884 (objfile_lookup_static_link): New.
885 (free_objfile): Free the STATIC_LINKS hashed map if needed.
886 * objfiles.h: Include hashtab.h.
887 (struct objfile): Add a static_links field.
888 (objfile_register_static_link): New.
889 (objfile_lookup_static_link): New.
890 * printcmd.c (print_variable_and_value): Update call to
891 read_var_value.
892 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
893 * python/py-frame.c (frapy_read_var): Update call to
894 read_var_value, passing it the block coming from symbol lookup.
895 * python/py-framefilter.c (extract_sym): Add a sym_block
896 parameter and set the pointed value to NULL (TODO).
897 (enumerate_args): Update call to extract_sym.
898 (enumerate_locals): Update calls to extract_sym and to
899 read_var_value.
900 * python/py-symbol.c (sympy_value): Update call to
901 read_var_value (TODO).
902 * stack.c (read_frame_local): Update call to read_var_value.
903 (read_frame_arg): Likewise.
904 (return_command): Likewise.
905 * symtab.h (struct symbol_block_ops): Add a get_frame_base
906 method.
907 (struct symbol): Add a block field.
908 (SYMBOL_BLOCK): New accessor.
909 * valops.c (value_of_variable): Remove frame/block handling and
910 pass the block argument to read_var_value, which does this job
911 now.
912 (value_struct_elt_for_reference): Update calls to
913 read_var_value.
914 (value_of_this): Pass the block found to read_var_value.
915 * value.h (read_var_value): Add a var_block argument.
916 (default_read_var_value): Likewise.
917
ed8b7b42
YQ
9182015-08-25 Yao Qi <yao.qi@linaro.org>
919
920 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
921 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
922 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
923
db3cb7cb
YQ
9242015-08-25 Yao Qi <yao.qi@linaro.org>
925
926 * Makefile.in (aarch64-liunx.o): New rule.
927 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
928 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
929 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
930 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
931 extern.
932 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
933 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
934 * nat/aarch64-linux.c: New file.
935 * nat/aarch64-linux.h: New file.
936
f6011a1c
YQ
9372015-08-25 Yao Qi <yao.qi@linaro.org>
938
939 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
940 lwp_arch_private_info and ptid_of_lwp.
941
5e35436e
YQ
9422015-08-25 Yao Qi <yao.qi@linaro.org>
943
944 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
945 Move it to nat/aarch64-linux-hw-point.c.
946 (debug_reg_change_callback): Likewise.
947 (aarch64_notify_debug_reg_change): :Likewise.
948 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
949 (aarch64_dr_update_callback_param): New.
950 (debug_reg_change_callback): New function.
951 (aarch64_notify_debug_reg_change): Likewise.
952 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
953 Remove the declaration.
954
4a8a7965
YQ
9552015-08-25 Yao Qi <yao.qi@linaro.org>
956
957 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
958 Call current_lwp_ptid.
959
32a271ee
YQ
9602015-08-25 Yao Qi <yao.qi@linaro.org>
961
962 * aarch64-linux-nat.c (debug_reg_change_callback): Use
963 debug_printf.
964
5e137137
YQ
9652015-08-25 Yao Qi <yao.qi@linaro.org>
966
967 * aarch64-linux-nat.c (debug_reg_change_callback): Call
968 ptid_get_pid rather than ptid_get_lwp.
969
73b8c1fd
PA
9702015-08-24 Pedro Alves <palves@redhat.com>
971
972 * NEWS (New commands): Mention set/show remote
973 multiprocess-extensions-packet.
974 * remote.c (remote_query_supported): Only tell the server to use
975 the multiprocess extensions if the user hasn't force-disabled them
976 with "set remote multiprocess-extensions-packet off".
977
4a626d0a
PA
9782015-08-24 Pedro Alves <palves@redhat.com>
979
980 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
981 1029a8112290f6eee9d7878a391c49db42c999bd.
982 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
983 Regenerate.
984 * gnulib/import/Makefile.am: Update.
985 * gnulib/import/Makefile.in: Update.
986 * gnulib/import/alloca.in.h: Update.
987 * gnulib/import/basename-lgpl.c: Update.
988 * gnulib/import/canonicalize-lgpl.c: Update.
989 * gnulib/import/config.charset: Update.
990 * gnulib/import/dirent.in.h: Update.
991 * gnulib/import/dirfd.c: Update.
992 * gnulib/import/dirname-lgpl.c: Update.
993 * gnulib/import/dirname.h: Update.
994 * gnulib/import/dosname.h: Update.
995 * gnulib/import/errno.in.h: Update.
996 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
997 * gnulib/import/extra/snippet/c++defs.h: Update.
998 * gnulib/import/extra/snippet/warn-on-use.h: Update.
999 * gnulib/import/extra/update-copyright: Update.
1000 * gnulib/import/float+.h: Update.
1001 * gnulib/import/float.c: Update.
1002 * gnulib/import/float.in.h: Update.
1003 * gnulib/import/fnmatch.c: Update.
1004 * gnulib/import/fnmatch.in.h: Update.
1005 * gnulib/import/fnmatch_loop.c: Update.
1006 * gnulib/import/fpucw.h: Update.
1007 * gnulib/import/frexp.c: Update.
1008 * gnulib/import/frexpl.c: Update.
1009 * gnulib/import/gettimeofday.c: Update.
1010 * gnulib/import/inttypes.in.h: Update.
1011 * gnulib/import/isnan.c: Update.
1012 * gnulib/import/isnand-nolibm.h: Update.
1013 * gnulib/import/isnand.c: Update.
1014 * gnulib/import/isnanl-nolibm.h: Update.
1015 * gnulib/import/isnanl.c: Update.
1016 * gnulib/import/itold.c: Update.
1017 * gnulib/import/localcharset.c: Update.
1018 * gnulib/import/localcharset.h: Update.
1019 * gnulib/import/lstat.c: Update.
1020 * gnulib/import/m4/00gnulib.m4: Update.
1021 * gnulib/import/m4/absolute-header.m4: Update.
1022 * gnulib/import/m4/alloca.m4: Update.
1023 * gnulib/import/m4/canonicalize.m4: Update.
1024 * gnulib/import/m4/codeset.m4: Update.
1025 * gnulib/import/m4/configmake.m4: Update.
1026 * gnulib/import/m4/dirent_h.m4: Update.
1027 * gnulib/import/m4/dirfd.m4: Update.
1028 * gnulib/import/m4/dirname.m4: Update.
1029 * gnulib/import/m4/double-slash-root.m4: Update.
1030 * gnulib/import/m4/eealloc.m4: Update.
1031 * gnulib/import/m4/errno_h.m4: Update.
1032 * gnulib/import/m4/exponentd.m4: Update.
1033 * gnulib/import/m4/exponentl.m4: Update.
1034 * gnulib/import/m4/extensions.m4: Update.
1035 * gnulib/import/m4/extern-inline.m4: Update.
1036 * gnulib/import/m4/fcntl-o.m4: Update.
1037 * gnulib/import/m4/float_h.m4: Update.
1038 * gnulib/import/m4/fnmatch.m4: Update.
1039 * gnulib/import/m4/fpieee.m4: Update.
1040 * gnulib/import/m4/frexp.m4: Update.
1041 * gnulib/import/m4/frexpl.m4: Update.
1042 * gnulib/import/m4/gettimeofday.m4: Update.
1043 * gnulib/import/m4/glibc21.m4: Update.
1044 * gnulib/import/m4/gnulib-cache.m4: Update.
1045 * gnulib/import/m4/gnulib-common.m4: Update.
1046 * gnulib/import/m4/gnulib-comp.m4: Update.
1047 * gnulib/import/m4/gnulib-tool.m4: Update.
1048 * gnulib/import/m4/include_next.m4: Update.
1049 * gnulib/import/m4/inttypes-pri.m4: Update.
1050 * gnulib/import/m4/inttypes.m4: Update.
1051 * gnulib/import/m4/isnand.m4: Update.
1052 * gnulib/import/m4/isnanl.m4: Update.
1053 * gnulib/import/m4/largefile.m4: Update.
1054 * gnulib/import/m4/localcharset.m4: Update.
1055 * gnulib/import/m4/locale-fr.m4: Update.
1056 * gnulib/import/m4/locale-ja.m4: Update.
1057 * gnulib/import/m4/locale-zh.m4: Update.
1058 * gnulib/import/m4/longlong.m4: Update.
1059 * gnulib/import/m4/lstat.m4: Update.
1060 * gnulib/import/m4/malloc.m4: Update.
1061 * gnulib/import/m4/malloca.m4: Update.
1062 * gnulib/import/m4/math_h.m4: Update.
1063 * gnulib/import/m4/mbrtowc.m4: Update.
1064 * gnulib/import/m4/mbsinit.m4: Update.
1065 * gnulib/import/m4/mbsrtowcs.m4: Update.
1066 * gnulib/import/m4/mbstate_t.m4: Update.
1067 * gnulib/import/m4/memchr.m4: Update.
1068 * gnulib/import/m4/memmem.m4: Update.
1069 * gnulib/import/m4/mmap-anon.m4: Update.
1070 * gnulib/import/m4/multiarch.m4: Update.
1071 * gnulib/import/m4/nocrash.m4: Update.
1072 * gnulib/import/m4/off_t.m4: Update.
1073 * gnulib/import/m4/pathmax.m4: Update.
1074 * gnulib/import/m4/readlink.m4: Update.
1075 * gnulib/import/m4/rename.m4: Update.
1076 * gnulib/import/m4/rmdir.m4: Update.
1077 * gnulib/import/m4/ssize_t.m4: Update.
1078 * gnulib/import/m4/stat.m4: Update.
1079 * gnulib/import/m4/stdbool.m4: Update.
1080 * gnulib/import/m4/stddef_h.m4: Update.
1081 * gnulib/import/m4/stdint.m4: Update.
1082 * gnulib/import/m4/stdio_h.m4: Update.
1083 * gnulib/import/m4/stdlib_h.m4: Update.
1084 * gnulib/import/m4/string_h.m4: Update.
1085 * gnulib/import/m4/strstr.m4: Update.
1086 * gnulib/import/m4/strtok_r.m4: Update.
1087 * gnulib/import/m4/sys_socket_h.m4: Update.
1088 * gnulib/import/m4/sys_stat_h.m4: Update.
1089 * gnulib/import/m4/sys_time_h.m4: Update.
1090 * gnulib/import/m4/sys_types_h.m4: Update.
1091 * gnulib/import/m4/time_h.m4: Update.
1092 * gnulib/import/m4/unistd_h.m4: Update.
1093 * gnulib/import/m4/warn-on-use.m4: Update.
1094 * gnulib/import/m4/wchar_h.m4: Update.
1095 * gnulib/import/m4/wchar_t.m4: Update.
1096 * gnulib/import/m4/wctype_h.m4: Update.
1097 * gnulib/import/m4/wint_t.m4: Update.
1098 * gnulib/import/malloc.c: Update.
1099 * gnulib/import/malloca.c: Update.
1100 * gnulib/import/malloca.h: Update.
1101 * gnulib/import/math.in.h: Update.
1102 * gnulib/import/mbrtowc.c: Update.
1103 * gnulib/import/mbsinit.c: Update.
1104 * gnulib/import/mbsrtowcs-impl.h: Update.
1105 * gnulib/import/mbsrtowcs-state.c: Update.
1106 * gnulib/import/mbsrtowcs.c: Update.
1107 * gnulib/import/memchr.c: Update.
1108 * gnulib/import/memmem.c: Update.
1109 * gnulib/import/pathmax.h: Update.
1110 * gnulib/import/readlink.c: Update.
1111 * gnulib/import/ref-add.sin: Update.
1112 * gnulib/import/ref-del.sin: Update.
1113 * gnulib/import/rename.c: Update.
1114 * gnulib/import/rmdir.c: Update.
1115 * gnulib/import/same-inode.h: Update.
1116 * gnulib/import/stat.c: Update.
1117 * gnulib/import/stdbool.in.h: Update.
1118 * gnulib/import/stddef.in.h: Update.
1119 * gnulib/import/stdint.in.h: Update.
1120 * gnulib/import/stdio.c: Update.
1121 * gnulib/import/stdio.in.h: Update.
1122 * gnulib/import/stdlib.in.h: Update.
1123 * gnulib/import/str-two-way.h: Update.
1124 * gnulib/import/streq.h: Update.
1125 * gnulib/import/string.in.h: Update.
1126 * gnulib/import/stripslash.c: Update.
1127 * gnulib/import/strnlen1.c: Update.
1128 * gnulib/import/strnlen1.h: Update.
1129 * gnulib/import/strstr.c: Update.
1130 * gnulib/import/strtok_r.c: Update.
1131 * gnulib/import/sys_stat.in.h: Update.
1132 * gnulib/import/sys_time.in.h: Update.
1133 * gnulib/import/sys_types.in.h: Update.
1134 * gnulib/import/time.in.h: Update.
1135 * gnulib/import/unistd.in.h: Update.
1136 * gnulib/import/verify.h: Update.
1137 * gnulib/import/wchar.in.h: Update.
1138 * gnulib/import/wctype.in.h: Update.
1139 * gnulib/import/gettimeofday.c: New file.
1140 * gnulib/import/m4/absolute-header.m4: New file.
1141 * gnulib/import/m4/gettimeofday.m4: New file.
1142 * gnulib/import/m4/sys_socket_h.m4: New file.
1143 * gnulib/import/m4/sys_time_h.m4: New file.
1144 * gnulib/import/stdio.c: Delete file.
1145 * gnulib/import/sys_time.in.h: New file.
1146
438e1e42
PA
11472015-08-24 Pedro Alves <palves@redhat.com>
1148
1149 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1150 * common/gdb_sys_time.h: New file.
1151 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1152 * gdb_select.h: Likewise.
1153 * gdb_usleep.c: Likewise.
1154 * maint.c: Likewise.
1155 * mi/mi-main.c: Likewise.
1156 * mi/mi-parse.h: Likewise.
1157 * remote-fileio.c: Likewise.
1158 * remote-m32r-sdi.c: Likewise.
1159 * remote.c: Likewise.
1160 * ser-base.c: Likewise.
1161 * ser-pipe.c: Likewise.
1162 * ser-tcp.c: Likewise.
1163 * ser-unix.c: Likewise.
1164 * symfile.c: Likewise.
1165 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
1166 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1167 * utils.c: Likewise.
1168
40e0b271
PA
11692015-08-24 Pedro Alves <palves@redhat.com>
1170
1171 * NEWS: Mention removed support for the various ROM monitors.
1172 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1173 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1174 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1175 gdb_target_obs.
1176 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1177 gdb_target_obs.
1178 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1179 dsrec.o from gdb_target_obs.
1180 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1181 from gdb_target_obs.
1182 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1183 gdb_target_obs.
1184 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1185 dink32-rom.o from gdb_target_obs.
1186 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1187 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1188 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1189 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1190
f8904751
PA
11912015-08-21 Pedro Alves <palves@redhat.com>
1192
1193 * frame.c (null_frame_id): Explicitly zero-initialize.
1194
049412e3
TT
11952015-08-21 Tom Tromey <tromey@redhat.com>
1196
1197 * dwarf2read.c (struct dwarf2_section_info): Rename field
1198 'asection' to 'section'.
1199 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1200 (dwarf2_locate_sections, dwarf2_locate_sections)
1201 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1202 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1203 (dwarf2_locate_v2_dwp_sections): Adjust.
1204
948578a9
PP
12052015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1206
1207 * top.h (gdb_in_secondary_prompt_p): Declare.
1208 * top.c (gdb_secondary_prompt_depth): Define.
1209 (gdb_in_secondary_prompt_p): Define.
1210 (gdb_readline_wrapper_cleanup): Decrement
1211 gdb_secondary_prompt_depth.
1212 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1213 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1214 are in a secondary prompt.
1215
7a8bcb88
PP
12162015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1217
1218 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1219 emit the newline.
1220
2d7711a3
GB
12212015-08-21 Gary Benson <gbenson@redhat.com>
1222
1223 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1224
4313b8c0
GB
12252015-08-21 Gary Benson <gbenson@redhat.com>
1226
1227 * target.h (struct target_ops) <to_fileio_open>: New argument
1228 warn_if_slow. Update comment. All implementations updated.
1229 (target_fileio_open_warn_if_slow): New declaration.
1230 * target.c (target_fileio_open): Renamed as...
1231 (target_fileio_open_1): ...this. New argument warn_if_slow.
1232 Pass warn_if_slow to implementation. Update debug printing.
1233 (target_fileio_open): New function.
1234 (target_fileio_open_warn_if_slow): Likewise.
1235 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1236 target_fileio_open_warn_if_slow.
1237
f36b8719
GB
12382015-08-21 Gary Benson <gbenson@redhat.com>
1239
1240 * nat/linux-namespaces.c (linux_mntns_access_fs):
1241 Do not overwrite old_chain.
1242
40045d91
MF
12432015-08-20 Max Filippov <jcmvbkbc@gmail.com>
1244
1245 * arch/xtensa.h: New file.
1246 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1247 (ps_get_thread_area): New function.
1248 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1249 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1250 * xtensa-tdep.c (osabi.h): New #include.
1251 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1252 xtensa-specific hooks.
1253 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1254 member and move the structure to arch/xtensa.h.
1255
80152258
PA
12562015-08-21 Pedro Alves <palves@redhat.com>
1257
1258 * remote.c (struct readahead_cache): New.
1259 (struct remote_state) <readahead_cache>: New field.
1260 (remote_open_1): Invalidate the cache.
1261 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1262 functions.
1263 (remote_hostio_pwrite): Invalidate the readahead cache.
1264 (remote_hostio_pread): Rename to ...
1265 (remote_hostio_pread_vFile): ... this.
1266 (remote_hostio_pread_from_cache): New function.
1267 (remote_hostio_pread): Reimplement.
1268 (remote_hostio_close): Invalidate the readahead cache.
1269
88fc5eb7
MC
12702015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
1271
1272 PR build/18843
1273 * procfs.c: Include "filestuff.h".
1274
6f1cb6ea
PP
12752015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1276
1277 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1278 curch.
1279 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1280 cur_line or curch, instead call wmove().
1281 (init_win_info) [CMD_WIN]: Likewise.
1282 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1283 instead call getcury().
1284 (tui_redisplay_readline): Don't set cur_line or curch.
1285 (tui_mld_erase_entire_line): Don't read cur_line, instead call
1286 getcury().
1287 (tui_cont_sig): Remove call to wmove.
1288 (tui_getc): Don't read cur_line or curch, instead call getcury()
1289 or getyx(). Don't set curch.
1290 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1291 set cur_line or curch. Always move cursor to (0,0).
1292
221e1a37
PA
12932015-08-20 Pedro Alves <palves@redhat.com>
1294
1295 * infrun.c (print_target_wait_results): Make extern.
1296 * infrun.h (print_target_wait_results): Declare.
1297 * remote.c (set_stop_requested_callback): Delete.
1298 (process_initial_stop_replies): New function.
1299 (remote_start_remote): Use it.
1300 (stop_reply_queue_length): New function.
1301
40e3ad0e
PA
13022015-08-20 Pedro Alves <palves@redhat.com>
1303
1304 * dwarf2read.c (process_full_comp_unit): To tell whether
1305 start_subfile managed to deduce a language, test for
1306 language_unknown instead of language_c.
1307
af39b327
PMR
13082015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
1309
1310 * ada-lex.l: Reset the start condition to INITIAL in the rule that
1311 matches attributes.
1312
7d45c7c3
KB
13132015-08-19 Kevin Buettner <kevinb@redhat.com>
1314
1315 * dwarf2read.c (dwarf2_string_attr): New function.
1316 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1317 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1318 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1319 (anonymous_struct_prefix, prepare_one_comp_unit): Use
1320 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1321
4d6cceb4
DE
13222015-08-18 Doug Evans <dje@google.com>
1323 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1324
1325 PR mi/18833
1326 * cli/cli-logging.c (pop_output_files): Don't restore redirection
1327 if MI-like.
1328 * mi/mi-out.c: #include "vec.h".
1329 (ui_filep): New type.
1330 (DEV_VEC_P (ui_filep)): New type.
1331 (struct ui_out_data) <buffer, original_buffer>: Delete.
1332 (struct ui_out_data) <streams>: New member.
1333 (mi_ui_out_impl): Add data_destroy field.
1334 (mi_field_string, mi_field_fmt): Update.
1335 (mi_flush, mi_redirect, field_separator): Update.
1336 (mi_open, mi_close): Update.
1337 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1338 (mi_out_data_ctor, mi_out_data_dtor): New functions.
1339 (mi_out_new): Call mi_out_data_ctor.
1340
26d56a93
SL
13412015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1342
1343 * remote.c (strprefix): New.
1344 (remote_parse_stop_reply): Use strprefix instead of strncmp
1345 to ensure exact match of keyword.
1346
566f5e3b
AB
13472015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * gdb_bfd.c (debug_bfd_cache): New variable.
1350 (show_bfd_cache_debug): New function.
1351 (gdb_bfd_open): Add debug logging.
1352 (gdb_bfd_ref): Likewise.
1353 (gdb_bfd_unref): Likewise.
1354 (_initialize_gdb_bfd): Add new set/show command.
1355 * NEWS: Mention new command.
1356
18989b3c
AB
13572015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1358
1359 * gdb_bfd.c (bfd_sharing): New variable.
1360 (show_bfd_sharing): New function.
1361 (gdb_bfd_open): Check bfd_sharing variable.
1362 (_initialize_gdb_bfd): Add new set/show command.
1363 * NEWS: Mention new command.
1364
c04fe68f
AB
13652015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1368 field.
1369 (struct gdb_bfd_cache_search): Likewise.
1370 (eq_bfd): Compare the size, inode, and device id fields.
1371 (gdb_bfd_open): Initialise the size, inode, and device id fields.
1372 (gdb_bfd_ref): Likewise.
1373 (gdb_bfd_unref): Likewise.
1374
b2a33439
PA
13752015-08-18 Pedro Alves <palves@redhat.com>
1376
1377 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1378 target implements to_always_non_stop_p, call it.
1379 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1380 (x86_linux_create_target): Install it as to_always_non_stop_p
1381 method.
1382
71b57e37
DE
13832015-08-17 Doug Evans <dje@google.com>
1384
1385 * ui-out.c (default_ui_out_impl): Add comment.
1386
7f3706eb
IB
13872015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
1388
1389 * d-exp.y (type_aggregate_p): New function.
1390 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1391 (classify_inner_name): Likewise.
1392 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1393
1762568f
DE
13942015-08-15 Doug Evans <xdje42@gmail.com>
1395
1396 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1397 updated.
1398 (add_psymbol_to_list): Ditto.
1399
8763cede
DE
14002015-08-15 Doug Evans <xdje42@gmail.com>
1401
1402 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1403 updated. Call end_psymtab_common.
1404 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1405 end_psymtab_common.
1406 (build_type_psymtabs_reader): Ditto.
1407 * psympriv.h (sort_pst_symbols): Delete.
1408 (end_psymtab_common): Declare.
1409 * psymtab.c (sort_pst_symbols): Make static.
1410 (end_psymtab_common): New function.
1411 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1412
51cdc993
DE
14132015-08-15 Doug Evans <xdje42@gmail.com>
1414
1415 * defs.h (LANGUAGE_BITS): Define.
1416 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1417 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1418 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1419 (minimal_symbol_type): Add nr_minsym_types.
1420 (MINSYM_TYPE_BITS): Define.
1421 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1422 (domain_enum_tag): Add NR_DOMAINS.
1423 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1424 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1425
95cf5869
DE
14262015-08-15 Doug Evans <xdje42@gmail.com>
1427
1428 * objfiles.h: Whitespace cleanup.
1429 * psympriv.h: Whitespace cleanup.
1430 * psymtab.c: Whitespace/coding convention cleanup.
1431
e3ae3c43
PP
14322015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1433
1434 * inferior.c (detach_inferior_command): Don't call
1435 any_thread_of_process when pid is 0.
1436 (kill_inferior_command): Likewise.
1437
6ff0ba5f
DE
14382015-08-14 Doug Evans <xdje42@gmail.com>
1439
1440 PR gdb/11833
1441 * NEWS: Document new /s modifier for the disassemble command.
1442 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1443 (_initialize_cli_cmds): Update online docs of disassemble command.
1444 * disasm.c: #include "source.h".
1445 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1446 All uses updated.
1447 (dis_line_entry): New struct.
1448 (hash_dis_line_entry, eq_dis_line_entry): New functions.
1449 (allocate_dis_line_table): New functions.
1450 (maybe_add_dis_line_entry, line_has_code_p): New functions.
1451 (dump_insns): New arg end_pc. All callers updated.
1452 (do_mixed_source_and_assembly_deprecated): Renamed from
1453 do_mixed_source_and_assembly. All callers updated.
1454 (do_mixed_source_and_assembly): New function.
1455 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1456 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1457 DISASSEMBLY_SOURCE. All uses updated.
1458 (DISASSEMBLY_SOURCE): New macro.
1459 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1460
b56ccc20
KS
14612015-08-14 Keith Seitz <keiths@redhat.com>
1462
1463 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1464 `typename' to `type_name' to avoid C++ reserved word.
1465
ebdad8fc
KS
14662015-08-14 Keith Seitz <keiths@redhat.com>
1467
1468 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1469 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1470 silence ARI errors.
1471
c0fe2ae7
IB
14722015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
1473
1474 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1475 xstrprintf instead of malloc and sprintf.
1476 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1477 (lex_one_token): Likewise.
1478
a738da3a
MF
14792015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1480
1481 * solib-svr4.c (read_program_header): Add base_addr argument to
1482 report the runtime address of the segment.
1483 (find_program_interpreter): Update read_program_header call to pass
1484 a NULL pointer for the new argument.
1485 (scan_dyntag): Add ptr_addr argument to report the runtime address
1486 of the tag payload.
1487 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1488 read_program_header to get the base address of the dynamic segment.
1489 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1490 read_program_header.
1491 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1492
f8edc4ff
MF
14932015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1494
1495 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1496
444c1ed8
IB
14972015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1498
1499 * d-exp.y (%union): Add voidval.
1500 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1501 name in the lexing stage.
1502 (PostfixExpression): Move symbol completion handling in grammar here
1503 from PrimaryExpression.
1504 (PrimaryExpression): Move routines to handle resolving identifier
1505 tokens in the grammar here from push_expression_name.
1506 (IdentifierExp): Remove the handling of alternating '.' and identifier
1507 tokens.
1508 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1509 (BasicType): Remove C-style typename rules.
1510 (d_type_from_name, d_module_from_name, push_variable)
1511 (push_fieldnames, push_type_name, push_module_name)
1512 (push_expression_name): Remove.
1513 (lex_one_token): Rename from yylex. Replace pstate with par_state.
1514 (token_and_value): New type.
1515 (token_fifo, popping, name_obstack): New globals.
1516 (classify_name): New function.
1517 (classify_inner_name): Likewise.
1518 (yylex): Likewise.
1519 (d_parse): Initialize token_fifo, popping and name_obstack.
1520
bc7c9fab
IB
15212015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1522
1523 * Makefile.in (SFILES): Add d-namespace.c.
1524 (COMMON_OBS): Add d-namespace.o.
1525 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1526 la_lookup_symbol_nonlocal callback function pointer.
1527 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1528 (d_lookup_nested_symbol): New declaration.
1529 * d-namespace.c: New file.
1530
3207396b
PA
15312015-08-13 Pedro Alves <palves@redhat.com>
1532
1533 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1534 cleanup after the decref cleanup, not before.
1535
5d8c3ed3
PMR
15362015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
1537
1538 * ada-lang.c: Include namespace.h
1539 (aux_add_nonlocal_symbols): Fix a function name in comment.
1540 (ada_add_block_renamings): New.
1541 (add_nonlocal_symbols): Add global renamings handling.
1542 (ada_lookup_symbol_list_worker): Move the symbol lookup part
1543 to...
1544 (ada_add_all_symbols): ... this new function.
1545 (ada_add_block_symbols): Try to match the input name against the
1546 "using directives list", perform a recursive symbol lookup on
1547 the matched declarations.
1548 * block.h (struct block): Move the_namespace to top-level as
1549 namespace_info. Remove the language_specific field.
1550 (BLOCK_NAMESPACE): Update access to the namespace_info field.
1551 * buildsym.h (using_directives): Rename into...
1552 (local_using_directives): ... this.
1553 (global_using_directives): New.
1554 (struct context_stack): Rename the using_directives field into
1555 local_using_directives.
1556 * buildsym.c (finish_block_internal): Deal with the proper
1557 using directives repository (local or global).
1558 (prepare_for_building): Reset local_using_directives. Assert
1559 that there is no pending global using directive.
1560 (reset_symtab_globals): Reset global_using_directives and
1561 local_using_directives.
1562 (end_symtab_get_static_block): Don't ignore symtabs that have
1563 only using directives.
1564 (push_context): Update references to local_using_directives.
1565 (buildsym_init): Do not reset using_directives.
1566 * cp-support.c: Include namespace.h.
1567 * cp-support.h (struct using_direct): Move to namespace.h.
1568 (cp_add_using_directives): Move to namespace.h.
1569 * cp-namespace.c: Include namespace.h
1570 (cp_add_using_directive): Move to namespace.c, rename it to
1571 add_using_directive, add a "using_directives" argument and use
1572 it as the pending using directives repository. All callers
1573 updated.
1574 * dwarf2read.c (using_directives): New.
1575 (read_import_statement): Call using_directives.
1576 (read_func_scope): Update references to local_using_directives.
1577 (read_lexical_block_scope): Likewise.
1578 (read_namespace): Update the heading comment, call
1579 using_directives.
1580 * namespace.h: New file.
1581 * namespace.c: New file.
1582 * Makefile.in (SFILES): Add namespace.c.
1583 (COMMON_OBS): Add namespace.o
1584
4dafcdeb
JB
15852015-08-12 Joel Brobecker <brobecker@adacore.com>
1586
1587 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1588 compute RETADDR.
1589
67994074
KS
15902015-08-12 Keith Seitz <keiths@redhat.com>
1591
1592 * break-catch-throw.c (re_set_exception_catchpoint) Rename
1593 reserved C++ keyword "explicit" to "explicit_loc".
1594 * breakpoint.c (create_overlay_event_breakpoint)
1595 (create_longjmp_master_breakpoint)
1596 (create_std_terminate_master_breakpoint)
1597 (create_exception_master_breakpoint, update_static_tracepoint):
1598 Rename reserved C++ keyword "explicit" to "explicit_loc".
1599 * completer.c (collect_explicit_location_matches)
1600 (explicit_location_completer): Rename reserved C++ keyword
1601 "explicit" to "explicit_loc".
1602 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1603 (canonicalize_linespec, create_sals_line_offset)
1604 (convert_linespec_to_sals, convert_explicit_location_to_sals)
1605 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1606 "explicit" to "explicit_loc".
1607 * location.c (struct event_location) <explicit>: Rename to
1608 "explicit_loc".
1609 (initialize_explicit_location, new_explicit_location)
1610 (explicit_location_to_string_internal, explicit_location_to_linespec):
1611 Rename reserved C++ keyword "explicit" to "explicit_loc".
1612 * location.h (explicit_location_to_string)
1613 (explicit_location_to_linespec, initialize_explicit_location)
1614 (new_explicit_location): Rename reserved C++ keyword "explicit"
1615 to "explicit_loc".
1616 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1617 keyword "explicit" to "explicit_loc".
1618
59ecaff3
KS
16192015-08-12 Keith Seitz <keiths@redhat.com>
1620
1621 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1622 and only call decode_line_1 when it is non-NULL.
1623
244558af
LM
16242015-08-12 Luis Machado <lgustavo@codesourcery.com>
1625
1626 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1627 location address is not meaningful.
1628 (breakpoint_address_is_meaningful): Update comment.
1629
629500fa
KS
16302015-08-11 Keith Seitz <keiths@redhat.com>
1631
1632 * NEWS: Mention explicit locations.
1633 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1634 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1635 (_initialize_breakpoint): Update documentation for
1636 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1637
eb8c4e2e
KS
16382015-08-11 Keith Seitz <keiths@redhat.com>
1639
1640 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1641 explicit locations, options "--source", "--function",
1642 "--label", and "--line".
1643
87f0e720
KS
16442015-08-11 Keith Seitz <keiths@redhat.com>
1645
1646 * completer.c: Include location.h.
1647 (enum match_type): New enum.
1648 (location_completer): Rename to ...
1649 (linespec_completer): ... this.
1650 (collect_explicit_location_matches, backup_text_ptr)
1651 (explicit_location_completer): New functions.
1652 (location_completer): "New" function; handle linespec
1653 and explicit location completions.
1654 (complete_line_internal): Remove all location completer-specific
1655 handling.
1656 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
1657 (find_toplevel_char): Export.
1658 (linespec_parse_line_offset): Export.
1659 Issue error if STRING is not numerical.
1660 (gdb_get_linespec_parser_quote_characters): New function.
1661 * linespec.h (linespec_parse_line_offset): Declare.
1662 (get_gdb_linespec_parser_quote_characters): Declare.
1663 (is_ada_operator): Declare.
1664 (find_toplevel_char): Declare.
1665 (linespec_lexer_lex_keyword): Declare.
1666 * location.c (explicit_to_event_location): New function.
1667 (explicit_location_lex_one): New function.
1668 (string_to_explicit_location): New function.
1669 (string_to_event_location): Handle explicit locations.
1670 * location.h (explicit_to_event_location): Declare.
1671 (string_to_explicit_location): Declare.
1672
00e52e53
KS
16732015-08-11 Keith Seitz <keiths@redhat.com>
1674
1675 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1676 linespec into explicit location.
1677 * breakpoint.c (create_overlay_breakpoint)
1678 (create_longjmp_master_breakpoint)
1679 (create_std_terminate_master_breakpoint)
1680 (create_exception_master_breakpoint): Convert linespec into explicit
1681 location.
1682 (update_static_tracepoint): Convert linespec into explicit location.
1683 * linespec.c (enum offset_relative_sign, struct line_offset): Move
1684 location.h.
1685 (struct linespec) <expression, expr_pc, source_filename>
1686 <function_name, label_name, line_offset>: Replace with ...
1687 <explicit>: ... this.
1688 <is_linespec>: New member.
1689 (PARSER_EXPLICIT): New accessor macro.
1690 (undefined_label_error): New function.
1691 (source_file_not_found_error): New function.
1692 (linespec_parse_basic): The parser result is now an explicit location.
1693 Use PARSER_EXPLICIT to access it.
1694 Use undefined_label_error.
1695 (canonicalize_linespec): Convert canonical linespec into explicit
1696 location.
1697 Move string representation of location to explicit_location_to_linespec
1698 and use it and explicit_location_to_string to save string
1699 representations of the canonical location.
1700 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
1701 explicit location. Update all references.
1702 (convert_explicit_location_to_sals): New function.
1703 (parse_linespec): Use PARSER_EXPLICIT to access the parser
1704 result's explicit location.
1705 (linespec_state_constructor): Initialize is_linespec.
1706 Use PARSER_EXPLICIT.
1707 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
1708 result.
1709 (event_location_to_sals): For linespec locations, set is_linespec.
1710 Handle explicit locations.
1711 (decode_objc): 'ls' contains an explicit location now. Update all
1712 references.
1713 (symtabs_from_filename): Use source_file_not_found_error.
1714 * location.c (struct event_location.u) <explicit>: New member.
1715 (initialize_explicit_location): New function.
1716 (initialize_event_location): Initialize explicit locations.
1717 (new_explicit_location, get_explicit_location)
1718 (get_explicit_location_const): New functions.
1719 (explicit_to_string_internal): New function; most of contents moved
1720 from canonicalize_linespec.
1721 (explicit_location_to_string): New function.
1722 (explicit_location_to_linespec): New function.
1723 (copy_event_location, delete_event_location)
1724 (event_location_to_string_const, event_location_empty_p): Handle
1725 explicit locations.
1726 * location.h (enum offset_relative_sign, struct line_offset): Move
1727 here from linespec.h.
1728 (enum event_location_type): Add EXPLICIT_LOCATION.
1729 (struct explicit_location): New structure.
1730 (explicit_location_to_string): Declare.
1731 (explicit_location_to_linespec): Declare.
1732 (new_explicit_location, get_explicit_locationp
1733 (get_explicit_location_const, initialize_explicit_location): Declare.
1734
5b56227b
KS
17352015-08-11 Keith Seitz <keiths@redhat.com>
1736
1737 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1738 linespec for stap probe to probe location.
1739 * breakpoint.c (create_longjmp_master_breakpoint)
1740 (create_exception_master_breakpoint): Likewise.
1741 (break_command_1): Remove local variable `arg_cp'.
1742 Check location type to set appropriate breakpoint ops methods.
1743 (trace_command): Likewise.
1744 * linespec.c (event_location_to_sals): Assert on probe locations.
1745 * location.c (EL_PROBE): Add macro definition.
1746 (new_probe_location, get_probe_location): New functions.
1747 (copy_event_location, delete_event_location, event_location_to_string)
1748 (string_to_event_location, event_location_empty_p): Handle probe
1749 locations.
1750 * location.h (enum event_location_type): Add PROBE_LOCATION.
1751 (new_probe_location, get_probe_location): Declare.
1752 * probe.c (parse_probes): Assert that LOCATION is a probe location.
1753 Convert linespec into probe location.
1754
a06efdd6
KS
17552015-08-11 Keith Seitz <keiths@redhat.com>
1756
1757 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
1758 Convert linespec to address location.
1759 * linespec.c (canonicalize_linespec): Do not handle address
1760 locations here.
1761 (convert_address_location_to_sals): New function; contents moved
1762 from ...
1763 (convert_linespc_to_sals): ... here.
1764 (parse_linespec): Remove address locations from linespec grammar.
1765 Remove handling of address locations.
1766 (linespec_lex_to_end): Remove handling of address linespecs.
1767 (event_location_to_sals): Handle ADDRESS_LOCATION.
1768 (linespec_expression_to_pc): Export.
1769 * linespec.h (linespec_expression_to_pc): Add declaration.
1770 * location.c (struct event_location.u) <address>: New member.
1771 (new_address_location, get_address_location): New functions.
1772 (copy_event_location, delete_event_location, event_location_to_string)
1773 (string_to_event_location, event_location_empty_p): Handle address
1774 locations.
1775 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
1776 (new_address_location, get_address_location): Declare.
1777 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
1778 to address location.
1779 * spu-tdep.c (spu_catch_start): Likewise.
1780
f00aae0f
KS
17812015-08-11 Keith Seitz <keiths@redhat.com>
1782
1783 * ax-gdb.c: Include location.h.
1784 (agent_command_1) Use linespec location instead of address
1785 string.
1786 * break-catch-throw.c: Include location.h.
1787 (re_set_exception_catchpoint): Use linespec locations instead
1788 of address strings.
1789 * breakpoint.c: Include location.h.
1790 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
1791 (create_std_terminate_master_breakpoint)
1792 (create_exception_master_breakpoint, update_breakpoints_after_exec):
1793 Use linespec location instead of address string.
1794 (print_breakpoint_location): Use locations and
1795 event_location_to_string.
1796 Print extra_string for pending locations for non-MI streams.
1797 (print_one_breakpoint_location): Use locations and
1798 event_location_to_string.
1799 (init_raw_breakpoint_without_location): Initialize b->location.
1800 (create_thread_event_breakpoint): Use linespec location instead of
1801 address string.
1802 (init_breakpoint_sal): Likewise.
1803 Only save extra_string if it is non-NULL and not the empty string.
1804 Use event_location_to_string instead of `addr_string'.
1805 Constify `p' and `endp'.
1806 Use skip_spaces_const/skip_space_const instead of non-const versions.
1807 Copy the location into the breakpoint.
1808 If LOCATION is NULL, save the breakpoint address as a linespec location
1809 instead of an address string.
1810 (create_breakpoint_sal): Change `addr_string' parameter to a struct
1811 event_location. All uses updated.
1812 (create_breakpoints_sal): Likewise for local variable `addr_string'.
1813 (parse_breakpoint_sals): Use locations instead of address strings.
1814 Remove check for empty linespec with conditional.
1815 Refactor.
1816 (decode_static_tracepoint_spec): Make argument const and update
1817 function.
1818 (create_breakpoint): Change `arg' to a struct event_location and
1819 rename.
1820 Remove `copy_arg' and `addr_start'.
1821 If EXTRA_STRING is empty, set it to NULL.
1822 Don't populate `canonical' for pending breakpoints.
1823 Pass `extra_string' to find_condition_and_thread.
1824 Clear `extra_string' if `rest' was NULL.
1825 Do not error with "garbage after location" if setting a dprintf
1826 breakpoint.
1827 Copy the location into the breakpoint instead of an address string.
1828 (break_command_1): Use string_to_event_location and pass this to
1829 create_breakpoint instead of an address string.
1830 Check against `arg_cp' for a probe linespec.
1831 (dprintf_command): Use string_to_event_location and pass this to
1832 create_breakpoint instead of an address string.
1833 Throw an exception if no format string was specified.
1834 (print_recreate_ranged_breakpoint): Use event_location_to_string
1835 instead of address strings.
1836 (break_range_command, until_break_command)
1837 (init_ada_exception_breakpoint): Use locations instead
1838 of address strings.
1839 (say_where): Print out extra_string for pending locations.
1840 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
1841 the breakpoint.
1842 (base_breakpoint_create_sals_from_location): Use struct event_location
1843 instead of address string.
1844 Remove `addr_start' and `copy_arg' parameters.
1845 (base_breakpoint_decode_location): Use struct event_location instead of
1846 address string.
1847 (bkpt_re_set): Use locations instead of address strings.
1848 Use event_location_empty_p to check for unset location.
1849 (bkpt_print_recreate): Use event_location_to_string instead of
1850 an address string.
1851 Print out extra_string for pending locations.
1852 (bkpt_create_sals_from_location, bkpt_decode_location)
1853 (bkpt_probe_create_sals_from_location): Use struct event_location
1854 instead of address string.
1855 (bkpt_probe_decode_location): Use struct event_location instead of
1856 address string.
1857 (tracepoint_print_recreate): Use event_location_to_string to
1858 recreate the tracepoint.
1859 (tracepoint_create_sals_from_location, tracepoint_decode_location)
1860 (tracepoint_probe_create_sals_from_location)
1861 (tracepoint_probe_decode_location): Use struct event_location
1862 instead of address string.
1863 (dprintf_print_recreate): Use event_location_to_string to recreate
1864 the dprintf.
1865 (dprintf_re_set): Remove check for valid/missing format string.
1866 (strace_marker_create_sals_from_location)
1867 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
1868 (update_static_tracepoint): Use struct event_location instead of
1869 address string.
1870 (location_to_sals): Likewise.
1871 Pass `extra_string' to find_condition_and_thread.
1872 For newly resolved pending breakpoint locations, clear the location's
1873 string representation.
1874 Assert that the breakpoint's condition string is NULL when
1875 condition_not_parsed.
1876 (breakpoint_re_set_default, create_sals_from_location_default)
1877 (decode_location_default, trace_command, ftrace_command)
1878 (strace_command, create_tracepoint_from_upload): Use locations
1879 instead of address strings.
1880 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
1881 Use struct event_location instead of address string.
1882 Update all uses.
1883 <decode_location>: Likewise.
1884 (struct breakpoint) <addr_string>: Change to struct event_location
1885 and rename `location'.
1886 <addr_string_range_end>: Change to struct event_location and rename
1887 `location_range_end'.
1888 (create_breakpoint): Use struct event_location instead of address
1889 string.
1890 * cli/cli-cmds.c: Include location.h.
1891 (edit_command, list_command): Use locations instead of address strings.
1892 * elfread.c: Include location.h.
1893 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
1894 * guile/scm-breakpoint.c: Include location.h.
1895 (bpscm_print_breakpoint_smob): Use event_location_to_string.
1896 (gdbscm_register_breakpoint): Use locations instead of address
1897 strings.
1898 * linespec.c: Include location.h.
1899 (struct ls_parser) <stream>: Change to const char *.
1900 (PARSER_STREAM): Update.
1901 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
1902 keywords must be followed by whitespace.
1903 (canonicalize_linespec): Save a linespec location into `canonical'.
1904 Save a canonical linespec into `canonical'.
1905 (parse_linespec): Change `argptr' to const char * and rename `arg'.
1906 All uses updated.
1907 Update function description.
1908 (linespec_parser_new): Initialize `parser'.
1909 Update initialization of parsing stream.
1910 (event_location_to_sals): New function.
1911 (decode_line_full): Change `argptr' to a struct event_location and
1912 rename it `location'.
1913 Use locations instead of address strings.
1914 Call event_location_to_sals instead of parse_linespec.
1915 (decode_line_1): Likewise.
1916 (decode_line_with_current_source, decode_line_with_last_displayed)
1917 Use locations instead of address strings.
1918 (decode_objc): Likewise.
1919 Change `argptr' to const char * and rename `arg'.
1920 (destroy_linespec_result): Delete the linespec result's location
1921 instead of freeing the address string.
1922 * linespec.h (struct linespec_result) <addr_string>: Change to
1923 struct event_location and rename to ...
1924 <location>: ... this.
1925 (decode_line_1, decode_line_full): Change `argptr' to struct
1926 event_location. All callers updated.
1927 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
1928 (mi_cmd_break_insert_1): Use locations instead of address strings.
1929 Throw an error if there was "garbage" at the end of the specified
1930 linespec.
1931 * probe.c: Include location.h.
1932 (parse_probes): Change `argptr' to struct event_location.
1933 Use event locations instead of address strings.
1934 * probe.h (parse_probes): Change `argptr' to struct event_location.
1935 * python/py-breakpoint.c: Include location.h.
1936 (bppy_get_location): Constify local variable `str'.
1937 Use event_location_to_string.
1938 (bppy_init): Use locations instead of address strings.
1939 * python/py-finishbreakpoint.c: Include location.h.
1940 (bpfinishpy_init): Remove local variable `addr_str'.
1941 Use locations instead of address strings.
1942 * python/python.c: Include location.h.
1943 (gdbpy_decode_line): Use locations instead of address strings.
1944 * remote.c: Include location.h.
1945 (remote_download_tracepoint): Use locations instead of address
1946 strings.
1947 * spu-tdep.c: Include location.h.
1948 (spu_catch_start): Remove local variable `buf'.
1949 Use locations instead of address strings.
1950 * tracepoint.c: Include location.h.
1951 (scope_info): Use locations instead of address strings.
1952 (encode_source_string): Constify parameter `src'.
1953 * tracepoint.h (encode_source_string): Likewise.
1954
c7c1b3e9
KS
19552015-08-11 Keith Seitz <keiths@redhat.com>
1956
1957 * Makefile.in (SFILES): Add location.c.
1958 (HFILES_NO_SRCDIR): Add location.h.
1959 (COMMON_OBS): Add location.o.
1960 * linespec.c (linespec_lex_to_end): New function.
1961 * linespec.h (linespec_lex_to_end): Declare.
1962 * location.c: New file.
1963 * location.h: New file.
1964
5f700d83
KS
19652015-08-11 Keith Seitz <keiths@redhat.com>
1966
1967 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
1968 Renamed to create_sals_from_location.
1969 <decode_linespec>: Renamed to decode_location.
1970 Update all callers.
1971 * breakpoint.c (create_sals_from_address_default): Renamed to ...
1972 (create_sals_from_location_default): ... this.
1973 (addr_string_to_sals): Renamed to ...
1974 (location_to_sals): ... this.
1975 (decode_linespec_default): Renamed to ...
1976 (decode_location_default): ... this.
1977 (base_breakpoint_create_sals_from_address): Renamed to ...
1978 (base_breakpoint_create_sals_from_location): ... this.
1979 (bkpt_create_sals_from_address): Renamed to ...
1980 (bkpt_create_sals_from_location): ... this.
1981 (bkpt_decode_linespec): Renamed to ...
1982 (bkpt_decode_location): ... this.
1983 (bkpt_probe_create_sals_from_address): Renamed to ...
1984 (bkpt_probe_create_sals_from_location): ... this.
1985 (tracepoint_create_sals_from_address): Renamed to ...
1986 (tracepoint_create_sals_from_location): ... this.
1987 (tracepoint_decode_linespec): Renamed to ...
1988 (tracepoint_decode_location): ... this.
1989 (tracepoint_probe_create_sals_from_address): Renamed to ...
1990 (tracepoint_probe_create_sals_from_location): ... this.
1991 (tracepoint_probe_decode_linespec): Renamed to ...
1992 (tracepoint_probe_decode_location): ... this.
1993 (strace_marker_create_sals_from_address): Renamed to ...
1994 (strace_marker_create_sals_from_location): ... this.
1995 (decode_linespec_default): Renamed to ...
1996 (decode_location_default): ... this.
1997
e27852be
DE
19982015-08-10 Doug Evans <dje@google.com>
1999 Keith Seitz <keiths@redhat.com>
2000
2001 PR gdb/17960
2002 * symtab.c (make_file_symbol_completion_list_1): Renamed from
2003 make_file_symbol_completion_list and made static.
2004 (make_file_symbol_completion_list): New function.
80af41e0 2005
fd7dcb94
JB
20062015-08-10 Joel Brobecker <brobecker@adacore.com>
2007
2008 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2009 trailing new-line at end of warning message.
2010 (proceed): Add i18n marker to error messages.
2011
f12899e9
PA
20122015-08-07 Pedro Alves <palves@redhat.com>
2013
2014 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2015
5ac21343
PA
20162015-08-07 Pedro Alves <palves@redhat.com>
2017
2018 * s390-linux-tdep.c (is_non_branch_ril)
2019 (s390_displaced_step_copy_insn): New functions.
2020 (s390_displaced_step_fixup): Update comment.
2021 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2022 gdbarch_displaced_step_copy_insn hook.
2023
7f03bd92
PA
20242015-08-07 Pedro Alves <palves@redhat.com>
2025
2026 * infrun.c (displaced_step_prepare_throw): Return -1 if
2027 gdbarch_displaced_step_copy_insn returns NULL. Update intro
2028 comment.
2029 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2030 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2031 in file.
2032 (ppc_displaced_step_copy_insn): New function.
2033 (ppc_displaced_step_fixup): Update comment.
2034 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2035 gdbarch_displaced_step_copy_insn hook.
2036 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2037 NULL return.
2038 * gdbarch.h: Regenerate.
2039
3fc8eb30
PA
20402015-08-07 Pedro Alves <palves@redhat.com>
2041
2042 * inferior.h (struct inferior) <displaced_stepping_failed>: New
2043 field.
2044 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2045 Return false if dispaced stepping failed before.
2046 (resume): Pass the current inferior to
2047 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
2048 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
2049 displaced_stepping_failed flag, and fall back to an in-line
2050 step-over.
2051
bfedc46a
PA
20522015-08-07 Pedro Alves <palves@redhat.com>
2053
2054 * darwin-nat.c (darwin_stop): Rename to ...
2055 (darwin_interrupt): ... this.
2056 (_initialize_darwin_inferior): Adjust.
2057 * gnu-nat.c (gnu_stop): Delete.
2058 (gnu_target): Don't install gnu_stop.
2059 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2060 (inf_ptrace_interrupt): ... this.
2061 (inf_ptrace_target): Adjust.
2062 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2063 target_stop.
2064 * linux-nat (linux_nat_stop): Rename to ...
2065 (linux_nat_interrupt): ... this.
2066 (linux_nat_stop): Reimplement.
2067 (linux_nat_add_target): Install linux_nat_interrupt.
2068 * nto-procfs.c (nto_interrupt_twice): Rename to ...
2069 (nto_handle_sigint_twice): ... this.
2070 (nto_interrupt): Rename to ...
2071 (nto_handle_sigint): ... this. Call target_interrupt instead of
2072 target_stop.
2073 (procfs_wait): Adjust.
2074 (procfs_stop): Rename to ...
2075 (procfs_interrupt): ... this.
2076 (init_procfs_targets): Adjust.
2077 * procfs.c (procfs_stop): Rename to ...
2078 (procfs_interrupt): ... this.
2079 (procfs_target): Adjust.
2080 * remote-m32r-sdi.c (m32r_stop): Rename to ...
2081 (m32r_interrupt): ... this.
2082 (init_m32r_ops): Adjust.
2083 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2084 (gdbsim_interrupt_inferior): ... this.
2085 (gdbsim_stop): Rename to ...
2086 (gdbsim_interrupt): ... this.
2087 (gdbsim_cntrl_c): Adjust.
2088 (init_gdbsim_ops): Adjust.
2089 * remote.c (sync_remote_interrupt): Adjust comments.
2090 (remote_stop_as): Rename to ...
2091 (remote_interrupt_as): ... this.
2092 (remote_stop): Adjust comment.
2093 (remote_interrupt): New function.
2094 (init_remote_ops): Install remote_interrupt.
2095 * target.c (target_interrupt): New function.
2096 * target.h (struct target_ops) <to_interrupt>: New field.
2097 (target_interrupt): New declaration.
2098 * windows-nat.c (windows_stop): Rename to ...
2099 (windows_interrupt): ... this.
2100 * target-delegates.c: Regenerate.
2101
d55007b5
PA
21022015-08-07 Pedro Alves <palves@redhat.com>
2103
2104 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2105 threads" as alternative to "switching back to stepped thread".
2106
fbea99ea
PA
21072015-08-07 Pedro Alves <palves@redhat.com>
2108
2109 * NEWS: Mention "maint set/show target-non-stop".
2110 * breakpoint.c (update_global_location_list): Check
2111 target_is_non_stop_p instead of non_stop.
2112 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2113 * infrun.c (show_can_use_displaced_stepping)
2114 (can_use_displaced_stepping_p, start_step_over_inferior):
2115 Likewise.
2116 (internal_resume_ptid): New function.
2117 (resume): Use it.
2118 (proceed): Check target_is_non_stop_p instead of non_stop. If in
2119 all-stop mode but the target is always in non-stop mode, start all
2120 the other threads that are implicitly resumed too.
2121 (for_each_just_stopped_thread, fetch_inferior_event)
2122 (adjust_pc_after_break, stop_all_threads): Check
2123 target_is_non_stop_p instead of non_stop.
2124 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
2125 with the target always in non-stop mode.
2126 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2127 instead of non_stop.
2128 (switch_back_to_stepped_thread): Check target_is_non_stop_p
2129 instead of non_stop.
2130 (keep_going_stepped_thread): Use internal_resume_ptid.
2131 (stop_waiting): If in all-stop mode, and the target is in non-stop
2132 mode, stop all threads.
2133 (keep_going_pass): Likewise, when starting a new in-line step-over
2134 sequence.
2135 * linux-nat.c (get_pending_status, select_event_lwp)
2136 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2137 target_is_non_stop_p instead of non_stop.
2138 (linux_nat_always_non_stop_p): New function.
2139 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2140 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2141 * target-delegates.c: Regenerate.
2142 * target.c (target_is_non_stop_p): New function.
2143 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2144 (maint_set_target_non_stop_command)
2145 (maint_show_target_non_stop_command): New functions.
2146 (_initilize_target): Install "maint set/show target-non-stop"
2147 commands.
2148 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2149 (target_non_stop_enabled): New declaration.
2150 (target_is_non_stop_p): New declaration.
2151
372316f1
PA
21522015-08-07 Pedro Alves <pedro@codesourcery.com>
2153
2154 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2155 has a pending status, return true.
2156 * gdbthread.h: Include target/waitstatus.h.
2157 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2158 stop_pc>: New fields.
2159 (struct thread_info) <resumed>: New field.
2160 (set_resumed): Declare.
2161 * infrun.c: Include "event-loop.h".
2162 (infrun_async_inferior_event_token, infrun_is_async): New globals.
2163 (infrun_async): New function.
2164 (clear_step_over_info): Add debug output.
2165 (displaced_step_in_progress_any_inferior): New function.
2166 (displaced_step_fixup): New returns int.
2167 (start_step_over): Handle in-line step-overs too. Assert the
2168 thread is marked resumed.
2169 (resume_cleanups): Clear the thread's resumed flag.
2170 (resume): Set the thread's resumed flag. Return early if the
2171 thread has a pending status. Allow stepping a breakpoint with no
2172 signal.
2173 (proceed): Adjust to check 'resumed' instead of 'executing'.
2174 (clear_proceed_status_thread): If the thread has a pending status,
2175 and that status is a finished step, discard the pending status.
2176 (clear_proceed_status): Don't clear step_over_info here.
2177 (random_pending_event_thread, do_target_wait): New functions.
2178 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2179 do_target_wait.
2180 (wait_one): New function.
2181 (THREAD_STOPPED_BY): New macro.
2182 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2183 (thread_stopped_by_hw_breakpoint): New functions.
2184 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2185 functions.
2186 (handle_inferior_event): Also call set_resumed(false) on all
2187 threads implicitly stopped by the event.
2188 (restart_threads, resumed_thread_with_pending_status): New
2189 functions.
2190 (finish_step_over): If we were doing an in-line step-over before,
2191 and no longer are after trying to start a new step-over, restart
2192 all threads. If we have multiple threads with pending events,
2193 save the current event and go through the event loop again.
2194 (handle_signal_stop): Return early if finish_step_over returns
2195 false.
2196 <random signal>: If we get a signal while stepping over a
2197 breakpoint in-line in non-stop mode, restart all threads. Clear
2198 step_over_info before delivering the signal.
2199 (keep_going_stepped_thread): Use internal_error instead of
2200 gdb_assert. Mark the thread as resumed.
2201 (keep_going_pass_signal): Assert the thread isn't already resumed.
2202 If some other thread is doing an in-line step-over, defer the
2203 resume. If we just started a new in-line step-over, stop all
2204 threads. Don't clear step_over_info.
2205 (infrun_async_inferior_event_handler): New function.
2206 (_initialize_infrun): Create async event handler with
2207 infrun_async_inferior_event_handler as callback.
2208 (infrun_async): New declaration.
2209 * target.c (target_async): New function.
2210 * target.h (target_async): Declare macro and readd as function
2211 declaration.
2212 * target/waitstatus.h (enum target_stop_reason)
2213 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2214 * thread.c (new_thread): Clear the new waitstatus field.
2215 (set_resumed): New function.
2216
2ac7589c
PA
22172015-08-07 Pedro Alves <palves@redhat.com>
2218
2219 * infrun.c (keep_going_stepped_thread): New function, factored out
2220 from ...
2221 (switch_back_to_stepped_thread): ... here.
2222
8b061563
PA
22232015-08-07 Pedro Alves <palves@redhat.com>
2224
2225 * infrun.c (currently_stepping): Extend intro comment.
2226 * target.h (target_resume): Extend intro comment.
2227
1afd5965
PA
22282015-08-07 Pedro Alves <palves@redhat.com>
2229
2230 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2231 of inferior_ptid. If the stepped thread vanished, return 0
2232 instead of resuming here. Use reset_ecs. Print the prev_pc and
2233 the current stop_pc in log message. Clear trap_expected if the
2234 thread advanced. Don't pass currently_stepping to
2235 do_target_resume.
2236
4d9d9d04
PA
22372015-08-07 Pedro Alves <palves@redhat.com>
2238
2239 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2240 * infrun.c (struct execution_control_state): Move higher up in the
2241 file.
2242 (reset_ecs): New function.
2243 (start_step_over): Now returns int. Rewrite to use
2244 keep_going_pass_signal instead of manually starting a displaced step.
2245 (resume): Don't call set_running here. If displaced stepping
2246 can't start now, clear trap_expected.
2247 (find_thread_needs_step_over): Delete function.
2248 (proceed): Set up finish_thread_state_cleanup. Call set_running.
2249 If the current thread needs a step over, push it in the step-over
2250 chain. Don't set insert breakpoints nor call resume directly
2251 here. Instead rewrite to use start_step_over and
2252 keep_going_pass_signal.
2253 (finish_step_over): New function.
2254 (handle_signal_stop): Call finish_step_over instead of
2255 start_step_over.
2256 (switch_back_to_stepped_thread): If the event thread needs another
2257 step-over do that first. Use start_step_over.
2258 (keep_going_pass_signal): New function, factored out from ...
2259 (keep_going): ... here.
2260 (_initialize_infrun): Comment moved here.
2261 * thread.c (set_running_thread): New function.
2262 (set_running, finish_thread_state): Use set_running_thread.
2263
c2829269
PA
22642015-08-07 Pedro Alves <palves@redhat.com>
2265
2266 * gdbthread.h (struct thread_info) <step_over_prev,
2267 step_over_next>: New fields.
2268 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2269 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2270 declarations.
2271 * infrun.c (struct displaced_step_request): Delete.
2272 (struct displaced_step_inferior_state) <step_request_queue>:
2273 Delete field.
2274 (displaced_step_prepare): Assert that trap_expected is set. Use
2275 thread_step_over_chain_enqueue. Split starting a new displaced
2276 step to ...
2277 (start_step_over): ... this new function.
2278 (resume): Assert the thread isn't waiting for a step over already.
2279 (proceed): Assert the thread isn't waiting for a step over
2280 already.
2281 (infrun_thread_stop_requested): Adjust to remove threads from the
2282 embedded step-over chain.
2283 (handle_inferior_event) <fork/vfork>: Call start_step_over after
2284 displaced_step_fixup.
2285 (handle_signal_stop): Call start_step_over after
2286 displaced_step_fixup.
2287 * infrun.h (step_over_queue_head): New declaration.
2288 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2289 (thread_step_over_chain_next, thread_is_in_step_over_chain)
2290 (thread_step_over_chain_enqueue)
2291 (thread_step_over_chain_remove): New functions.
2292 (delete_thread_1): Remove thread from the step-over chain.
2293
6c4cfb24
PA
22942015-08-07 Pedro Alves <palves@redhat.com>
2295
2296 * infrun.c (thread_still_needs_step_over): Rename to ...
2297 (thread_still_needs_step_over_bp): ... this.
2298 (enum step_over_what): New.
2299 (thread_still_needs_step_over): Reimplement.
2300
567420d1
PA
23012015-08-07 Pedro Alves <palves@redhat.com>
2302
2303 * remote.c (remote_wait_as): If not waiting for a stop reply,
2304 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
2305 requested, don't block waiting forever.
2306
d8dd4d5f
PA
23072015-08-07 Pedro Alves <pedro@codesourcery.com>
2308
2309 * infrun.c (adjust_pc_after_break): Now takes thread_info and
2310 waitstatus pointers instead of an ecs. Adjust.
2311 (handle_inferior_event): Adjust caller.
2312
e1316e60
PA
23132015-08-07 Pedro Alves <palves@redhat.com>
2314
2315 * infrun.c (handle_inferior_event): If we get
2316 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2317 mode, mark all threads of the exiting process as not-executing.
2318 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2319 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2320 exiting process, if inferior_ptid still points at a process.
2321 * thread.c (struct current_thread_cleanup) <next>: New field.
2322 (current_thread_cleanup_chain): New global.
2323 (restore_current_thread_ptid_changed): New function.
2324 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2325 current_thread_cleanup_chain list.
2326 (make_cleanup_restore_current_thread): Add the cleanup data to the
2327 current_thread_cleanup_chain list.
2328 (_initialize_thread): Install restore_current_thread_ptid_changed
2329 as thread_ptid_changed observer.
2330
47e9c225
JB
23312015-08-07 Joel Brobecker <brobecker@adacore.com>
2332
2333 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2334 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2335 smaller than expected.
2336
06096720
AB
23372015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 * stack.c (get_frame_language): Moved ...
2340 * frame.c (get_frame_language): ... to here.
2341 * language.h (get_frame_language): Declaration moved to frame.h.
2342 * frame.h: Add language.h include, for language enum.
2343 (get_frame_language): Declaration moved from language.h.
2344 * language.c: Add frame.h include.
2345 * top.c: Add frame.h include.
2346 * symtab.h (struct obj_section): Declare.
2347 (struct cmd_list_element): Declare.
2348
7ff38b1c
AB
23492015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * language.c (show_language_command): Find selected frame before
2352 asking for the language of that frame.
2353 (set_language_command): Likewise.
2354 * language.h (get_frame_language): Add frame parameter.
2355 * stack.c (get_frame_language): Add frame parameter, assert
2356 parameter is not NULL, update comment and reindent.
2357 * top.c (check_frame_language_change): Pass the selected frame
2358 into get_frame_language.
2359
da8c46d2
MM
23602015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2361
2362 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2363 (pt_btrace_insn_flags): New.
2364 (ftrace_add_pt): Call pt_btrace_insn_flags.
2365 * btrace.h (btrace_insn_flag): New.
2366 (btrace_insn) <flags>: New.
2367 * record-btrace.c (btrace_insn_history): Print insn prefix.
2368 * NEWS: Announce it.
2369
5599c404
MM
23702015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2371
2372 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2373 * configure: Regenerate.
2374
016a3251
DD
23752015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2376
2377 * Makefile.in (LIBICONV): Define.
2378 (CLIBS): Add LIBICONV.
2379 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2380 * configure: Regenerate.
2381
aead7601
SM
23822015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2383 Pedro Alves <palves@redhat.com>
2384
2385 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2386 (arm_set_abi): Likewise.
2387 * ax-general.c (ax_print): Likewise.
2388 * c-exp.y (exp : string_exp): Likewise.
2389 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2390 (do_compile_dwarf_expr_to_c): Likewise.
2391 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2392 Likewise.
2393 * dwarf2expr.c (execute_stack_op): Likewise.
2394 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2395 (disassemble_dwarf_expression): Likewise.
2396 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2397 (read_array_order): Likewise.
2398 (abbrev_table_read_table): Likewise.
2399 (read_attribute_value): Likewise.
2400 (skip_unknown_opcode): Likewise.
2401 (dwarf_decode_macro_bytes): Likewise.
2402 (dwarf_decode_macros): Likewise.
2403 * eval.c (value_f90_subarray): Likewise.
2404 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2405 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2406 * infrun.c (handle_command): Likewise.
2407 * memory-map.c (memory_map_start_memory): Likewise.
2408 * osabi.c (set_osabi): Likewise.
2409 * parse.c (operator_length_standard): Likewise.
2410 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2411 single return point.
2412 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2413 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2414 (gdbpy_lookup_global_symbol): Likewise.
2415 * record-full.c (record_full_restore): Likewise.
2416 * regcache.c (regcache_register_status): Likewise.
2417 (regcache_raw_read): Likewise.
2418 (regcache_cooked_read): Likewise.
2419 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2420 * symtab.c (initialize_ordinary_address_classes): Likewise.
2421 * target-debug.h (target_debug_print_signals): Likewise.
2422 * utils.c (do_restore_current_language): Likewise.
2423
ca0a5f0b
CD
24242015-08-06 Clem Dickey <clemd@acm.org>
2425
2426 PR python/17136
2427 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2428
05d999b0
SM
24292015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2430
2431 * complaints.c (enum complaint_series): Add newlines and remove
2432 out of date comment.
2433 (struct complaints) <series>: Change type to enum
2434 complaint_series and remove out of date comment.
2435 (symfile_complaint_hook): Use equivalent enum value
2436 ISOLATED_MESSAGE instead of 0.
2437
bf47e248
PA
24382015-08-06 Pedro Alves <palves@redhat.com>
2439
2440 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2441 returned > 0.
2442
b6b9ffcc
PL
24432015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2444
2445 * common/agent.c (symbol_list) <required>: Remove.
2446
863d01bd
PA
24472015-08-06 Pedro Alves <palves@redhat.com>
2448
2449 * target/waitstatus.h (enum target_stop_reason)
2450 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2451
0a39bb32
PA
24522015-08-05 Pedro Alves <palves@redhat.com>
2453 Joel Brobecker <brobecker@adacore.com>
2454
9d996aba 2455 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
2456 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2457 case where BS->STOP is not set.
2458
260439cb
UW
24592015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
2460
2461 * nat/gdb_thread_db.h: Add copyright header.
2462 Protect against multiple inclusion.
2463
d89fa914
YQ
24642015-08-05 Yao Qi <yao.qi@linaro.org>
2465
2466 * aarch64-linux-nat.c (get_thread_id): Remove.
2467 (debug_reg_change_callback): Call ptid_get_lwp instead of
2468 get_thread_id.
2469 (fetch_gregs_from_thread): Likewise.
2470 (store_gregs_to_thread): Likewise.
2471 (fetch_fpregs_from_thread): Likewise.
2472 (store_fpregs_to_thread): Likewise.
2473 (aarch64_linux_get_debug_reg_capacity): Likewise.
2474 * arm-linux-nat.c (get_thread_id): Remove.
2475 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2476 * xtensa-linux-nat.c (get_thread_id): Remove.
2477 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2478 * arm-linux-nat.c (get_thread_id): Remove.
2479 (GET_THREAD_ID): Remove.
2480 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2481 (store_fpregs, fetch_regs, store_regs): Likewise.
2482 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2483 (fetch_vfp_regs, store_vfp_regs): Likewise.
2484 (arm_linux_read_description): Likewise.
2485 (arm_linux_get_hwbp_cap): Likewise.
2486 * xtensa-linux-nat.c (get_thread_id): Remove.
2487 (GET_THREAD_ID): Remove.
2488 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2489 GET_THREAD_ID.
2490
4efd80aa
CS
24912015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
2492
2493 * python/py-linetable.c: Fix case of Linetable to LineTable
2494 in docstrings and code comments.
2495 * python/py-symtab.c: Same.
2496
c6343a91
JK
24972015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2498
2499 * infcmd.c (signal_command): Call do_cleanups for args_chain.
2500
978b9495
JK
25012015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 PR gdb/18767
2504 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2505 use.
2506
96e9210f
PA
25072015-08-04 Pedro Alves <palves@redhat.com>
2508
2509 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2510 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2511 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2512 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2513 (td_thr_validate_ftype, td_thr_get_info_ftype)
2514 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2515 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2516 New typedefs.
2517 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2518 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2519 local macros and use them instead of verbose_dlsym and dlsym
2520 calls.
2521
af60a1ef
SL
25222015-08-03 Sandra Loosemore <sandra@codesourcery.com>
2523
2524 * nios2-tdep.h: Include opcode/nios2.h here.
2525 (NIOS2_CDX_OPCODE_SIZE): New.
2526 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2527 * nios2-tdep.c: Don't include opcode/nios2.h here.
2528 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2529 4-byte read fails.
2530 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2531 (nios2_match_addi, nios2_match_orhi): Likewise.
2532 (nios2_match_stw, nios2_match_ldw): Likewise.
2533 (nios2_match_rdctl): Likewise.
2534 (nios2_match_stwm, nios2_match_ldwm): New.
2535 (nios2_match_branch): Add cases for R2 encodings.
2536 (nios2_match_jmpi, nios2_match_calli): Likewise.
2537 (nios2_match_jmpr, nios2_match_callr): Likewise.
2538 (nios2_match_break, nios2_match_trap): Likewise.
2539 (nios2_in_epilogue_p): Add R2 support.
2540 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
2541 prologues.
2542 (nios2_breakpoint_from_pc): Handle R2 instructions.
2543 (nios2_get_next_pc): Likewise. Adjust call to
2544 tdep->syscall_next_pc.
2545 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2546 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
2547 instruction field macros instead of literal hex values.
2548 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2549 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2550 Use size field from OP instead of assuming all instructions
2551 are the same size.
2552 (nios2_linux_init_abi): Register appropriate unwinder for mach.
2553
1da03605
UW
25542015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
2555
2556 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2557 variable warning with some compilers.
2558
8156fe7f
YQ
25592015-08-03 Yao Qi <yao.qi@linaro.org>
2560
2561 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2562 in comment. Replace "rw" with "type".
2563 (arm_linux_remove_watchpoint): Change type of "rw" to
2564 "enum target_hw_bp_type".
2565
835a09d9
PMR
25662015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
2567
2568 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2569 lookup_symbol.
2570 * ft32-tdep.c (ft32_skip_prologue): Likewise.
2571 * moxie-tdep.c (moxie_skip_prologue): Likewise.
2572 * mt-tdep.c (mt_skip_prologue): Likewise.
2573 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2574
d12307c1
PMR
25752015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
2576
2577 * ada-exp.y (write_object_renaming): Replace struct
2578 ada_symbol_info with struct block_symbol. Update field
2579 references accordingly.
2580 (block_lookup, select_possible_type_sym): Likewise.
2581 (find_primitive_type): Likewise. Also update call to
2582 ada_lookup_symbol to extract the symbol itself.
2583 (write_var_or_type, write_name_assoc): Likewise.
2584 * ada-lang.h (struct ada_symbol_info): Remove.
2585 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2586 struct block_symbol.
2587 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2588 (ada_lookup_symbol): Return struct block_symbol instead of a
2589 mere symbol.
2590 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2591 with struct block_symbol.
2592 (resolve_subexp, ada_resolve_function, sort_choices,
2593 user_select_syms, is_nonfunction, add_defn_to_vec,
2594 num_defns_collected, defns_collected,
2595 symbols_are_identical_enums, remove_extra_symbols,
2596 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2597 ada_lookup_symbol_list, ada_iterate_over_symbols,
2598 ada_lookup_encoded_symbol, get_var_value): Likewise.
2599 (ada_lookup_symbol): Return a block_symbol instead of a mere
2600 symbol. Replace struct ada_symbol_info with struct
2601 block_symbol.
2602 (ada_lookup_symbol_nonlocal): Likewise.
2603 (standard_lookup): Make block passing explicit through
2604 lookup_symbol_in_language.
2605 * ada-tasks.c (get_tcb_types_info): Update the calls to
2606 lookup_symbol_in_language to extract the mere symbol out of the
2607 returned value.
2608 (ada_tasks_inferior_data_sniffer): Likewise.
2609 * ax-gdb.c (gen_static_field): Likewise for the call to
2610 lookup_symbol.
a5fdf78a 2611 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
2612 lookup functions.
2613 (gen_expr): Likewise.
2614 * c-exp.y: Likewise. Remove uses of block_found.
2615 (lex_one_token, classify_inner_name, c_print_token): Likewise.
2616 (classify_name): Likewise. Rename the "sym" local variable to
2617 "bsym".
2618 * c-valprint.c (print_unpacked_pointer): Likewise.
2619 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2620 "sym" parameter from struct symbol * to struct block_symbol.
2621 Use it to remove uses of block_found. Deal with struct
a5fdf78a 2622 block_symbol from lookup functions.
d12307c1
PMR
2623 (gcc_convert_symbol): Likewise. Update the call to
2624 convert_symbol_sym.
2625 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 2626 struct block_symbol from lookup functions.
d12307c1
PMR
2627 * cp-namespace.c (cp_lookup_nested_symbol_1,
2628 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2629 cp_search_static_and_baseclasses,
2630 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2631 cp_lookup_symbol_imports_or_template,
2632 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2633 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
2634 find_symbol_in_baseclass): Return struct block_symbol instead of
2635 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
2636 functions.
2637 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 2638 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
2639 lookup functions.
2640 * cp-support.h (cp_lookup_symbol_nonlocal,
2641 cp_lookup_symbol_from_namespace,
2642 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 2643 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
2644 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2645 push_module_name):
a5fdf78a 2646 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
2647 uses of block_found.
2648 * eval.c (evaluate_subexp_standard): Update call to
2649 cp_lookup_symbol_namespace.
a5fdf78a
PMR
2650 * f-exp.y: Deal with struct block_symbol from lookup functions.
2651 Remove uses of block_found.
d12307c1
PMR
2652 (yylex): Likewise.
2653 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2654 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 2655 struct block_symbol from lookup functions.
d12307c1
PMR
2656 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
2657 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
2658 (gdbscm_lookup_global_symbol): Likewise.
2659 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
2660 * go-exp.y: Likewise. Remove uses of block_found.
2661 (package_name_p, classify_packaged_name, classify_name):
2662 Likewise.
2663 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2664 * jv-exp.y (push_variable): Likewise.
2665 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
2666 * language.c (language_bool_type): Likewise.
2667 * language.h (struct language_defn): Update
a5fdf78a
PMR
2668 la_lookup_symbol_nonlocal to return a struct block_symbol rather
2669 than a mere symbol.
2670 * linespec.c (find_label_symbols): Deal with struct block_symbol
2671 from lookup functions.
d12307c1
PMR
2672 * m2-exp.y: Likewise. Remove uses of block_found.
2673 (yylex): Likewise.
2674 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2675 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
2676 * p-exp.y: Likewise. Remove uses of block_found.
2677 (yylex): Likewise.
2678 * p-valprint.c (pascal_val_print): Likewise.
2679 * parse.c (write_dollar_variable): Likewise. Remove uses of
2680 block_found.
2681 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
2682 struct block_symbol.
2683 * printcmd.c (address_info): Deal with struct block_symbol from
2684 lookup functions.
d12307c1
PMR
2685 * python/py-frame.c (frapy_read_var): Likewise.
2686 * python/py-symbol.c (gdbpy_lookup_symbol,
2687 gdbpy_lookup_global_symbol): Likewise.
2688 * skip.c (skip_function_command): Likewise.
2689 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 2690 block_symbol instead of a mere symbol.
d12307c1
PMR
2691 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
2692 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2693 * solib.c (solib_global_lookup): Likewise.
2694 * solist.h (solib_global_lookup): Likewise.
2695 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
2696 return a struct block_symbol rather than a mere symbol.
2697 * source.c (select_source_symtab): Deal with struct block_symbol
2698 from lookup functions.
d12307c1
PMR
2699 * stack.c (print_frame_args, iterate_over_block_arg_vars):
2700 Likewise.
2701 * symfile.c (set_initial_language): Likewise.
2702 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 2703 block_symbol.
d12307c1
PMR
2704 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
2705 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 2706 block_symbol.
d12307c1 2707 (block_found): Remove.
a5fdf78a 2708 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 2709 cache slots.
a5fdf78a
PMR
2710 (symbol_cache_lookup): Return a struct block_symbol rather than
2711 a mere symbol.
d12307c1
PMR
2712 (symbol_cache_mark_found): Add a BLOCK parameter to fill
2713 appropriately the cache slots. Update callers.
2714 (symbol_cache_dump): Update cache slots handling to the type
2715 change.
2716 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
2717 lookup_symbol_aux, lookup_local_symbol,
2718 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
2719 lookup_symbol_in_objfile_symtabs,
2720 lookup_symbol_in_objfile_from_linkage_name,
2721 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
2722 lookup_symbol_in_static_block, lookup_static_symbol,
2723 lookup_global_symbol):
a5fdf78a
PMR
2724 Return a struct block_symbol rather than a mere symbol. Deal
2725 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
2726 uses of block_found.
2727 (lookup_symbol_in_block): Remove uses of block_found.
2728 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 2729 struct block_symbol.
d12307c1
PMR
2730 (lookup_symbol_global_iterator_cb): Update references to the
2731 RESULT field.
a5fdf78a 2732 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 2733 functions.
a5fdf78a 2734 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
2735 (block_found): Remove.
2736 (lookup_symbol_in_language, lookup_symbol,
2737 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
2738 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
2739 lookup_global_symbol_from_objfile): Return a struct block_symbol
2740 rather than just a mere symbol. Update comments to remove
2741 mentions of block_found.
d12307c1
PMR
2742 * valops.c (find_function_in_inferior,
2743 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 2744 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
2745 functions.
2746 * value.c (value_static_field, value_fn_field): Likewise.
2747
b1c59ddc
SM
27482015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2749
2750 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
2751 instead of integer.
2752
f486487f 27532015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 2754 Pedro Alves <palves@redhat.com>
f486487f
SM
2755
2756 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
2757 type or value instead of integer.
2758 (aarch64_linux_insert_watchpoint): Likewise.
2759 (aarch64_linux_remove_watchpoint): Likewise.
2760 * ada-lang.c (ada_op_print_tab): Likewise.
2761 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
2762 (amd64_linux_syscall_record_common): Likewise.
2763 * arch-utils.c (target_byte_order_user): Likewise.
2764 (default_byte_order): Likewise.
2765 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
2766 (arm_linux_get_hwbp_type): Likewise.
2767 (arm_linux_hw_watchpoint_initialize): Likewise.
2768 (arm_linux_insert_watchpoint): Likewise.
2769 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
2770 (arm_linux_syscall_record): Likewise.
2771 * breakpoint.c (update_watchpoint): Likewise.
2772 (breakpoint_here_p): Likewise.
2773 (bpstat_print): Likewise.
2774 (enable_breakpoint_disp): Likewise.
2775 * c-lang.c (c_op_print_tab): Likewise.
2776 * cli/cli-decode.c (add_info_alias): Likewise.
2777 * d-lang.c (d_op_print_tab): Likewise.
2778 * eval.c (evaluate_subexp_standard): Likewise.
2779 * f-exp.y (dot_ops): Likewise.
2780 (f77_keywords): Likewise.
2781 * f-lang.c (f_op_print_tab): Likewise.
2782 * go-lang.c (go_op_print_tab): Likewise.
2783 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
2784 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
2785 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2786 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
2787 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
2788 (struct scm_from_stringn_data): Likewise.
2789 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2790 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2791 (ia64_linux_remove_watchpoint): Likewise.
2792 (ia64_linux_can_use_hw_breakpoint): Likewise.
2793 * infrun.c (print_stop_event): Likewise.
2794 * jv-lang.c (java_op_print_tab): Likewise.
2795 * linux-nat.c (linux_proc_xfer_partial): Likewise.
2796 * linux-nat.h (struct lwp_info): Likewise.
2797 * linux-thread-db.c (enable_thread_event): Likewise.
2798 * m2-lang.c (m2_op_print_tab): Likewise.
2799 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2800 (mi_cmd_stack_list_variables): Likewise.
2801 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2802 * mi/mi-out.c (mi_table_begin): Likewise.
2803 (mi_table_header): Likewise.
2804 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
2805 (mips_linux_insert_watchpoint): Likewise.
2806 (mips_linux_remove_watchpoint): Likewise.
2807 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
2808 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
2809 (mips_linux_watch_type_to_irw): Likewise.
2810 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2811 (procfs_insert_hw_watchpoint): Likewise.
2812 (procfs_remove_hw_watchpoint): Likewise.
2813 (procfs_hw_watchpoint): Likewise.
2814 (procfs_can_use_hw_breakpoint): Likewise.
2815 (procfs_remove_hw_watchpoint): Likewise.
2816 (procfs_insert_hw_watchpoint): Likewise.
2817 * p-lang.c (pascal_op_print_tab): Likewise.
2818 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
2819 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
2820 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
2821 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2822 (procfs_insert_watchpoint): Likewise.
2823 (procfs_remove_watchpoint): Likewise.
2824 * psymtab.c (recursively_search_psymtabs): Likewise.
2825 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
2826 (m32r_insert_watchpoint): Likewise.
2827 * remote-mips.c (mips_can_use_watchpoint): Likewise.
2828 (mips_insert_watchpoint): Likewise.
2829 (mips_remove_watchpoint): Likewise.
2830 * remote.c (watchpoint_to_Z_packet): Likewise.
2831 (remote_insert_watchpoint): Likewise.
2832 (remote_remove_watchpoint): Likewise.
2833 (remote_check_watch_resources): Likewise.
2834 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2835 (s390_remove_watchpoint): Likewise.
2836 (s390_can_use_hw_breakpoint): Likewise.
2837 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2838 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
2839 * target.h (struct target_ops): Likewise.
2840 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2841 * ui-out.c (struct ui_out_hdr): Likewise.
2842 (append_header_to_list): Likewise.
2843 (get_next_header): Likewise.
2844 (verify_field): Likewise.
2845 (ui_out_begin): Likewise.
2846 (ui_out_field_int): Likewise.
2847 (ui_out_field_fmt_int): Likewise.
2848 (ui_out_field_skip): Likewise.
2849 (ui_out_field_string): Likewise.
2850 (ui_out_field_fmt): Likewise.
2851 * varobj.c (new_variable): Likewise.
2852 * x86-nat.c (x86_insert_watchpoint): Likewise.
2853 (x86_remove_watchpoint): Likewise.
2854 (x86_can_use_hw_breakpoint): Likewise.
2855 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
2856 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
2857 previously anonymous enumeration type..
2858 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
2859 value.
2860 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
2861 (target_debug_print_enum_bptype): New.
2862 * target-delegates.c: Regenerate.
2863
e1b5381f
SL
28642015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2865
2866 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
2867 already says and disallow non-stack memory writes in the prologue.
2868
9aaf8e3a
SL
28692015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2870
2871 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
2872 reflect how current GCC emits stack overflow checks. Match
2873 both trap and break instructions for backward compatbility.
2874 Disallow other trap and break instructions in the prologue.
2875
69dde7dc
PA
28762015-07-30 Pedro Alves <palves@redhat.com>
2877
2878 PR threads/18600
2879 * linux-nat.c (wait_lwp): Report to the core when thread group
2880 leader exits.
2881
4dd63d48
PA
28822015-07-30 Pedro Alves <palves@redhat.com>
2883 Simon Marchi <simon.marchi@ericsson.com>
2884
2885 PR threads/18600
2886 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
2887 mark the new thread as resumed. Remove STOPPING parameter.
2888 (wait_lwp): Adjust call to linux_handle_extended_wait.
2889 (linux_nat_filter_event): Adjust call to
2890 linux_handle_extended_wait.
2891 (resume_stopped_resumed_lwps): Add debug output.
2892
6b940e6a
PL
28932015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2894
2895 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
2896 isize argument.
2897 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
2898 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
2899 gdbarch_fast_tracepoint_valid_at.
2900 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
2901 * gdbarch.h: Regenerate.
2902 * gdbarch.c: Regenerate.
2903 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
2904 argument. Do not set it.
2905 * remote.c (remote_download_tracepoint): Adjust call to
2906 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
2907 the instruction length.
2908
ec741292
YQ
29092015-07-30 Yao Qi <yao.qi@linaro.org>
2910
2911 * arm-tdep.h (enum gdb_regnum): Move it to ...
2912 * arch/arm.h: ... here. New file.
2913 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
2914
0ea6402e
PL
29152015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2916
2917 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
2918 Change its type to int *.
2919 (decode_br): Rename link argument to is_blr. Change its type to
2920 int *.
2921 (decode_cb): Rename op argument to is_cbnz. Change its type to
2922 int *.
2923 (decode_tb): Rename op argument to is_tbnz. Change its type to
2924 int *. Set is_tbnz to either 1 or 0.
2925 (aarch64_analyze_prologue): Change type of is_link to int. Add
2926 new variables is_cbnz and is_tbnz. Adjust call to
2927 aarch64_decode_cb and aarch64_decode_tb.
2928
aa58a496
SM
29292015-07-29 Simon Marchi <simon.marchi@ericsson.com>
2930
2931 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
2932 parameter.
2933 (mips_linux_new_thread): Likewise.
2934 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
2935
18206ca3
PP
29362015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2937
2938 * top.c: Include "tui/tui.h".
2939 (undo_terminal_modifications_before_exit): New static function.
2940 (quit_force): Use it.
2941
7afa63c6
PP
29422015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2943
2944 * target.c (terminal_state): Initialize to terminal_is_ours.
2945
cc9f16aa
YQ
29462015-07-29 Yao Qi <yao.qi@linaro.org>
2947
2948 PR record/18691
2949 * dcache.c (dcache_read_memory_partial): Call
2950 raw_memory_xfer_partial.
2951 * target.c (raw_memory_xfer_partial): Make it non-static.
2952 * target.h (raw_memory_xfer_partial): Declare.
2953
3ae385af
SM
29542015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2955
2956 * c-valprint.c (c_val_print_array): Consider addressable memory
2957 unit size.
2958 (c_val_print_ptr): Likewise.
2959 (c_val_print_int): Likewise.
2960 * findvar.c (read_frame_register_value): Likewise.
2961 * valarith.c (find_size_for_pointer_math): Likewise.
2962 (value_ptrdiff): Likewise.
2963 (value_subscripted_rvalue): Likewise.
2964 * valops.c (read_value_memory): Likewise (and rename variables).
2965 (value_assign): Likewise.
2966 (value_repeat): Likewise.
2967 (value_array): Likewise.
2968 (value_slice): Likewise.
2969 * valprint.c (generic_val_print_ptr): Likewise.
2970 (generic_val_print_enum): Likewise.
2971 (generic_val_print_bool): Likewise.
2972 (generic_val_print_int): Likewise.
2973 (generic_val_print_char): Likewise.
2974 (generic_val_print_float): Likewise.
2975 (generic_val_print_decfloat): Likewise.
2976 (generic_val_print_complex): Likewise.
2977 (val_print_scalar_formatted): Likewise.
2978 (val_print_array_elements): Likewise.
2979 * value.c (set_value_parent): Likewise.
2980 (value_contents_copy_raw): Likewise.
2981 (set_internalvar_component): Likewise.
2982 (value_primitive_field): Likewise.
2983 (value_fetch_lazy): Likewise.
2984 * value.h (read_value_memory): Update comment.
2985
e512cdbd
SM
29862015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2987
2988 * value.c (get_value_arch): New function.
2989 * value.h (get_value_arch): New declaration.
2990
3723fda8
SM
29912015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2992
2993 * value.c (struct value): Update comments.
2994
2e056931
SM
29952015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2996
2997 * gdbtypes.c (type_length_units): New function.
2998 * gdbtypes.h (type_length_units): New declaration.
2999 (struct type) <length>: Update comment.
3000
0c87c0bf
SM
30012015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3002
3003 * valprint.c (generic_val_print): Factor out complex
3004 printing code to ...
3005 (generic_val_print_complex): ... this new function.
3006
9550ae5e
SM
30072015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3008
3009 * valprint.c (generic_val_print): Factor out decfloat
3010 printing code to ...
3011 (generic_val_print_decfloat): ... this new function.
3012
7784724b
SM
30132015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3014
3015 * valprint.c (generic_val_print): Factor out float
3016 printing code to ...
3017 (generic_val_print_float): ... this new function.
3018
385f5aff
SM
30192015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3020
3021 * valprint.c (generic_val_print): Factor out char
3022 printing code to ...
3023 (generic_val_print_char): ... this new function.
3024
b21b6342
SM
30252015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3026
3027 * valprint.c (generic_val_print): Factor out integer
3028 printing code to ...
3029 (generic_val_print_int): ... this new function.
3030
e5bead4b
SM
30312015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3032
3033 * valprint.c (generic_val_print): Factor out bool
3034 printing code to ...
3035 (generic_val_print_bool): ... this new function.
3036
4a8c372f
SM
30372015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3038
3039 * valprint.c (generic_val_print): Factor out function/method
3040 printing code to ...
3041 (generic_val_print_func): ... this new function.
3042
d93880bd
SM
30432015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3044
3045 * valprint.c (generic_val_print): Factor out flags
3046 printing code to ...
3047 (generic_val_print_flags): ... this new function.
3048
ef0bc0dd
SM
30492015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3050
3051 * valprint.c (generic_val_print): Factor out enum
3052 printing code to ...
3053 (generic_val_print_enum): ... this new function.
3054
fe43fede
SM
30552015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3056
3057 * valprint.c (generic_val_print): Factor out reference
3058 printing code to ...
3059 (generic_val_print_ref): ... this new function.
3060
45000ea2
SM
30612015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3062
3063 * valprint.c (generic_val_print): Factor out memberptr
3064 printing code to ...
3065 (generic_val_print_memberptr): ... this new function.
3066
81eb921a
SM
30672015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3068
3069 * valprint.c (generic_val_print): Factor out pointer
3070 printing code to ...
3071 (generic_val_print_ptr): ... this new function.
3072
557dbe8a
SM
30732015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3074
3075 * valprint.c (generic_val_print): Factor out array
3076 printing code to ...
3077 (generic_val_print_array): ... this new function.
3078
9f436164
SM
30792015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3080
3081 * valprint.c (generic_val_print): Factor out
3082 print_unpacked_pointer code to ...
3083 (print_unpacked_pointer): ... this new function.
3084
077836f7
PP
30852015-07-27 Patrick Palka <patrick@parcs.ath.cx>
3086
3087 * event-top.c (handle_sigterm): Don't inspect
3088 target_can_async_p. Always set the quit flag and always mark
3089 the async signal handler.
3090
3a60804f
YQ
30912015-07-27 Yao Qi <yao.qi@linaro.org>
3092
3093 * Makefile.in (REMOTE_EXAMPLES): Remove it.
3094
c9f35b34
KB
30952015-07-25 Kevin Buettner <kevinb@redhat.com>
3096
3097 * remote.c (read_ptid): Return null_ptid when no thread id
3098 is found.
3099 (remote_current_thread): Add log warning for malformed
3100 qC reply.
3101 (remote_start_remote): Add log warning when current thread
3102 not found.
3103
2b4cab86
PA
31042015-07-24 Pedro Alves <palves@redhat.com>
3105
3106 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3107 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3108 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3109
77598427
PA
31102015-07-24 Pedro Alves <palves@redhat.com>
3111
3112 PR gdb/18717
3113 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3114 is resumed, and extend the debug log.
3115
fe23c31f
PA
31162015-07-24 Pedro Alves <palves@redhat.com>
3117
3118 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3119
5826e159
PA
31202015-07-24 Pedro Alves <palves@redhat.com>
3121
3122 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3123 sys/ptrace.h.
3124 * alpha-linux-nat.c: Likewise.
3125 * amd64-linux-nat.c: Likewise.
3126 * arm-linux-nat.c: Likewise.
3127 * hppa-linux-nat.c: Likewise.
3128 * i386-linux-nat.c: Likewise.
3129 * ia64-linux-nat.c: Likewise.
3130 * linux-fork.c: Likewise.
3131 * linux-nat.c: Likewise.
3132 * m32r-linux-nat.c: Likewise.
3133 * m68klinux-nat.c: Likewise.
3134 * mips-linux-nat.c: Likewise.
3135 * nat/linux-btrace.c: Likewise.
3136 * nat/linux-ptrace.c: Likewise.
3137 * nat/linux-ptrace.h
3138 * nat/mips-linux-watch.c: Likewise.
3139 * nat/x86-linux-dregs.c: Likewise.
3140 * ppc-linux-nat.c: Likewise.
3141 * s390-linux-nat.c: Likewise.
3142 * spu-linux-nat.c: Likewise.
3143 * tilegx-linux-nat.c: Likewise.
3144 * x86-linux-nat.c: Likewise.
3145 * xtensa-linux-nat.c: Likewise.
3146
54019719
PA
31472015-07-24 Pedro Alves <palves@redhat.com>
3148
3149 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
3150 __ptrace_request as first parameter type instead of int.
3151 (PTRACE_TYPE_ARG1): Define.
3152 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3153 that casts first argument to PTRACE_TYPE_ARG1.
3154 * config.in: Regenerate.
3155 * configure: Regenerate.
3156
e3790375
PA
31572015-07-24 Pedro Alves <palves@redhat.com>
3158
3159 * gdb_ptrace.h: Move ...
3160 * nat/gdb_ptrace.h: ... here.
3161 * inf-ptrace.c: Adjust.
3162
eb7aa561
PA
31632015-07-24 Pedro Alves <palves@redhat.com>
3164
3165 * acinclude.m4: Include ptrace.m4.
3166 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3167 * ptrace.m4: ... to this new file.
3168
cc12ce38
DE
31692015-07-23 Doug Evans <dje@google.com>
3170
3171 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3172 (load_cu): Handle dummy CUs.
3173 (dw2_do_instantiate_symtab, process_queuef): Ditto.
3174 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3175
7b849db4
CS
31762015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
3177
3178 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3179 documentation to say that it returns a list rather than
3180 a FrozenSet.
3181 (linetable_object_methods): Update the docstring of the
3182 "source_line" entry.
3183
d0d84780
PMR
31842015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
3185
3186 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3187 type to the recursive call instead of the original (maybe
3188 TYPE_CODE_TYPEDEF) type.
3189
c2fbdc59
YQ
31902015-07-23 Yao Qi <yao.qi@linaro.org>
3191
3192 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3193 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3194 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3195
af1b22f3
YQ
31962015-07-21 Yao Qi <yao.qi@linaro.org>
3197
3198 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3199 Move it to nat/aarch64-linux-hw-point.c.
3200 (aarch64_linux_child_post_startup_inferior): Update.
3201 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3202 New function.
3203 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3204 Declare it.
3205
40e050d2
MM
32062015-07-21 Markus Metzger <markus.t.metzger@intel.com>
3207
3208 * common/btrace-common.c (btrace_data_append): Change case label.
3209
3675a06a
YQ
32102015-07-20 Yao Qi <yao.qi@linaro.org>
3211
3212 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3213 Re-indent the code.
3214 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3215 "unsigned long long".
3216
b4e1fd61
KB
32172015-07-18 Kevin Buettner <kevinb@redhat.com>
3218
3219 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3220 to be set for SEC_ALLOC sections too.
3221
554717a3
YQ
32222015-07-17 Yao Qi <yao.qi@linaro.org>
3223
3224 * Makefile.in (HFILES_NO_SRCDIR): Add
3225 nat/aarch64-linux-hw-point.h.
3226 (aarch64-linux-hw-point.o): New rule.
3227 * nat/aarch64-linux-hw-point.h: New file.
3228 * nat/aarch64-linux-hw-point.c: New file.
3229 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3230 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3231 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3232 (AARCH64_HWP_ALIGNMENT): Likewise.
3233 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3234 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3235 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3236 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3237 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3238 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3239 (struct aarch64_debug_reg_state): Likewise.
3240 (struct arch_lwp_info): Likewise.
3241 (aarch64_linux_set_debug_regs): Likewise.
3242 (aarch64_notify_debug_reg_change): Remove static.
3243 (aarch64_align_watchpoint): Likewise.
3244 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3245 (aarch64_watchpoint_length): Likewise.
3246 (aarch64_point_encode_ctrl_reg): Likewise
3247 (aarch64_point_is_aligned): Likewise.
3248 (aarch64_dr_state_insert_one_point): Likewise.
3249 (aarch64_dr_state_remove_one_point): Likewise.
3250 (aarch64_handle_breakpoint): Likewise.
3251 (aarch64_handle_aligned_watchpoint): Likewise.
3252 (aarch64_handle_unaligned_watchpoint): Likewise.
3253 (aarch64_handle_watchpoint): Likewise.
3254 * config/aarch64/linux.mh (NAT_FILE): Add
3255 aarch64-linux-hw-point.o.
3256
c67ca4de
YQ
32572015-07-17 Yao Qi <yao.qi@linaro.org>
3258
3259 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3260 state and don't call aarch64_get_debug_reg_state. All callers
3261 update.
3262 (aarch64_linux_insert_hw_breakpoint): Call
3263 aarch64_get_debug_reg_state earlier.
3264 (aarch64_linux_remove_hw_breakpoint): Likewise.
3265 (aarch64_handle_aligned_watchpoint): Add argument state and
3266 don't call aarch64_get_debug_reg_state. All callers update.
3267 (aarch64_handle_unaligned_watchpoint): Likewise.
3268 (aarch64_handle_watchpoint): Add argument state.
3269 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3270 earlier.
3271 (aarch64_linux_remove_watchpoint): Likewise.
3272
25abf979
YQ
32732015-07-17 Yao Qi <yao.qi@linaro.org>
3274
3275 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3276 debug_printf.
3277 (aarch64_handle_unaligned_watchpoint): Likewise.
3278
2ecd81c2
YQ
32792015-07-17 Yao Qi <yao.qi@linaro.org>
3280
3281 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3282 argument type's type to 'enum target_hw_bp_type'.
3283 (aarch64_dr_state_remove_one_point): Likewise.
3284 (aarch64_handle_breakpoint): Likewise.
3285 (aarch64_linux_insert_hw_breakpoint): Likewise.
3286 (aarch64_linux_remove_hw_breakpoint): Likewise.
3287 (aarch64_handle_aligned_watchpoint): Likewise.
3288
e53b6938
YQ
32892015-07-17 Yao Qi <yao.qi@linaro.org>
3290
3291 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3292 ptid_get_pid instead of get_thread_id.
3293
6a49a997
YQ
32942015-07-17 Yao Qi <yao.qi@linaro.org>
3295
3296 * remote.c (get_current_thread): Initialise ptid to null_ptid.
3297 (add_current_inferior_and_thread): Don't initialise ptid.
3298
4bcddace
PL
32992015-07-16 Pierre Langlois <pierre.langlois@arm.com>
3300
3301 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3302 unavailable if invalid.
3303
db1ff28b
JK
33042015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3305
3306 Revert the previous 6 commits:
3307 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3308 Move gdb_regex* to common/
3309 Prepare linux_find_memory_regions_full & co. for move
3310 Move linux_find_memory_regions_full & co.
3311 gdbserver build-id attribute generator
3312 Validate symbol file using build-id
3313
ca5268b6
JK
33142015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3315 Jan Kratochvil <jan.kratochvil@redhat.com>
3316
3317 Validate symbol file using build-id.
3318 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3319 and 'show validate-build-id'. Add build-id attribute.
3320 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3321 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3322 * solib-frv.c (_initialize_frv_solib): Ditto.
3323 * solib-spu.c (set_spu_solib_ops): Ditto.
3324 * solib-svr4.c: Include rsp-low.h.
3325 (NOTE_GNU_BUILD_ID_NAME): New define.
3326 (svr4_validate): New function.
3327 (svr4_copy_library_list): Duplicate field build_id.
3328 (library_list_start_library): Parse 'build-id' attribute.
3329 (svr4_library_attributes): Add 'build-id' attribute.
3330 (_initialize_svr4_solib): Assign validate value.
3331 * solib-target.c (solib.h): Include.
3332 (_initialize_solib_target): Assign validate value.
3333 * solib.c (validate_build_id, show_validate_build_id): New.
3334 (solib_map_sections): Use ops->validate.
3335 (clear_so): Free build_id.
3336 (default_solib_validate): New function.
3337 (_initialize_solib): Add "validate-build-id".
3338 * solib.h (default_solib_validate): New declaration.
3339 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3340 (target_so_ops): New field 'validate'.
3341
700ca40f
JK
33422015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3343 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 gdbserver build-id attribute generator.
3346 * features/library-list-svr4.dtd (library-list-svr4): New
3347 'build-id' attribute.
3348
9904185c
JK
33492015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3350 Jan Kratochvil <jan.kratochvil@redhat.com>
3351
3352 Move linux_find_memory_regions_full & co.
3353 * linux-tdep.c (nat/linux-maps.h): Include.
3354 (gdb_regex.h): Remove the include.
3355 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3356 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3357 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3358 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3359 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3360 and target/target.h.
3361 (struct smaps_vmflags, read_mapping, decode_vmflags)
3362 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3363 (linux_find_memory_regions_full): Move from linux-tdep.c.
3364 * nat/linux-maps.h (read_mapping): New declaration.
3365 (linux_find_memory_region_ftype, enum filterflags): Moved from
3366 linux-tdep.c.
3367 (linux_find_memory_regions_full): New declaration.
3368 * target.c (target/target-utils.h): Include.
3369 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3370 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3371 definitions to target/target-utils.c.
3372 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3373 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3374 from target.c.
3375 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3376 (read_alloc): New declaration.
3377 (read_stralloc_func_ftype): New typedef.
3378 (read_stralloc): New declaration.
3379 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3380
f7af1fcd
JK
33812015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3382 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 Prepare linux_find_memory_regions_full & co. for move.
3385 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3386 (linux_find_memory_regions_full): Change signature and prepare
3387 for moving to linux-maps.
3388 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3389 (linux_find_memory_regions_thunk): New.
3390 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3391 (linux_find_memory_regions_gdb): New.
3392 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3393 (linux_make_mappings_corefile_notes): Use
3394 linux_find_memory_regions_gdb.
3395 * target.c (read_alloc_pread_ftype): New typedef.
3396 (target_fileio_read_alloc_1_pread): New function.
3397 (read_alloc): Refactor from target_fileio_read_alloc_1.
3398 (read_stralloc_func_ftype): New typedef.
3399 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3400 (read_stralloc): Refactored from target_fileio_read_stralloc.
3401 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3402
6e5b4429
JK
34032015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3404
3405 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3406 common/gdb_regex.h.
3407 (COMMON_OBS): Add gdb_regex.o.
3408 (gdb_regex.o): New.
3409 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3410 --without-included-regex and USE_INCLUDED_REGEX.
3411 * common/gdb_regex.c: New file from utils.c functions.
3412 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3413 file wrapping define name.
3414 * configure: Rebuilt.
3415 * configure.ac (gdb_use_included_regex, --without-included-regex)
3416 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3417 * gdb_regex.h: Move it to common/gdb_regex.h.
3418 * utils.c: Remove include gdb_regex.h.
3419 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3420 (compile_rx_or_error): Move them to common/gdb_regex.c.
3421
ddc98fbf
JK
34222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3423 Jan Kratochvil <jan.kratochvil@redhat.com>
3424
3425 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3426 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3427 common/target-utils.h.
3428 (COMMON_OBS): Add target-utils.o.
3429 (linux-maps.o, target-utils.o): New.
3430 * target/target-utils.c: New file.
3431 * target/target-utils.h: New file.
3432 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3433 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3434 * nat/linux-maps.c: New file.
3435 * nat/linux-maps.h: New file.
3436
e7b01ce0
MM
34372015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3438 Pedro Alves <palves@redhat.com>
3439
3440 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3441 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3442 (perf_event_read_bts): Change the type of SIZE and READ.
3443 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3444 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
3445 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
3446 mmap page.
3447 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
3448 buffer size to UINT_MAX.
3449 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3450 DATA_TAIL.
3451 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3452 <last_head>: Change type.
3453 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3454 * common/btrace-common.c (btrace_data_append): Change the type of
3455 SIZE.
3456 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
3457 check.
3458
f168693b
SM
34592015-07-14 Simon Marchi <simon.marchi@ericsson.com>
3460
3461 * gdbtypes.h (CHECK_TYPEDEF): Remove.
3462 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3463 with check_typedef.
3464 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3465 (ada_array_length): Likewise.
3466 (find_parallel_type_by_descriptive_type): Likewise.
3467 (ada_check_typedef): Likewise.
3468 * arm-tdep.c (arm_return_in_memory): Likewise.
3469 * ax-gdb.c (gen_trace_static_fields): Likewise.
3470 (gen_struct_ref_recursive): Likewise.
3471 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3472 (variable: block COLONCOLON name): Likewise.
3473 (qualified_name: TYPENAME COLONCOLON name): Likewise.
3474 * c-lang.c (classify_type): Likewise.
3475 * c-typeprint.c (c_print_type): Likewise.
3476 (c_print_typedef): Likewise.
3477 (c_type_print_base): Likewise.
3478 * c-valprint.c (c_val_print): Likewise.
3479 * compile/compile-c-types.c (convert_type): Likewise.
3480 * compile/compile-object-load.c (get_out_value_type): Likewise.
3481 * completer.c (add_struct_fields): Likewise.
3482 (expression_completer): Likewise.
3483 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3484 (cp_lookup_nested_symbol_1): Likewise.
3485 (cp_lookup_nested_symbol): Likewise.
3486 * cp-valprint.c (cp_print_value_fields): Likewise.
3487 (cp_print_static_field): Likewise.
3488 * d-valprint.c (d_val_print): Likewise.
3489 * eval.c (evaluate_subexp_standard): Likewise.
3490 (evaluate_subexp_for_sizeof): Likewise.
3491 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3492 * f-typeprint.c (f_type_print_base): Likewise.
3493 * f-valprint.c (f_val_print): Likewise.
3494 * gdbtypes.c (get_discrete_bounds): Likewise.
3495 (create_array_type_with_stride): Likewise.
3496 (type_name_no_tag_or_error): Likewise.
3497 (lookup_struct_elt_type): Likewise.
3498 (get_unsigned_type_max): Likewise.
3499 (internal_type_vptr_fieldno): Likewise.
3500 (set_type_vptr_fieldno): Likewise.
3501 (internal_type_vptr_basetype): Likewise.
3502 (set_type_vptr_basetype): Likewise.
3503 (get_vptr_fieldno): Likewise.
3504 (is_integral_type): Likewise.
3505 (is_scalar_type): Likewise.
3506 (is_scalar_type_recursive): Likewise.
3507 (distance_to_ancestor): Likewise.
3508 (is_unique_ancestor_worker): Likewise.
3509 (check_types_equal): Likewise.
3510 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3511
45280282
IB
35122015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
3513
3514 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3515 also test for language_d.
3516 (dwarf2_compute_name): Likewise.
3517 (read_func_scope): Likewise.
3518 (read_structure_type): Likewise.
3519 (new_symbol_full): Likewise.
3520 (determine_prefix): Likewise.
3521 (read_import_statement): Use dot as the separator for language_d.
3522 (typename_concat): Likewise, but don't prefix the D main function.
3523
99fe86f7
PB
35242015-07-14 Peter Bergner <bergner@vnet.ibm.com>
3525
3526 * nat/linux-namespaces.c (setns): Rename from this ...
3527 (do_setns): ... to this. Support calling setns if it exists.
3528 (mnsh_handle_setns): Call do_setns.
3529
d5131498
YQ
35302015-07-13 Yao Qi <yao.qi@linaro.org>
3531
3532 * exec.c (exec_file_attach): Add period at the end of error
3533 message.
3534
97605e61
AB
35352015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3536
3537 * tui/tui-win.c (window_name_completer): New function.
3538 (focus_completer): Call window_name_completer. All old content
3539 moved into window_name_completer.
3540 (winheight_completer): New function.
3541 (_initialize_tui_win): Rename variable. Add completer to
3542 winheight command. Update doc string on winheight.
3543
8d6dbeb4
SL
35442015-07-12 Sandra Loosemore <sandra@codesourcery.com>
3545
3546 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3547 all nios2 mach variants.
3548
a0e28e54
KB
35492015-07-10 Kevin Buettner <kevinb@redhat.com>
3550
3551 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3552 of target_read_memory.
3553
c101f28f
AB
35542015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3555
3556 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3557 string copy.
3558 (parse_scrolling_args): Likewise.
3559
150375dc
AB
35602015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3561
3562 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3563 names in this function.
3564
6dce28e4
AB
35652015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3566
3567 * tui/tui-data.h (SRC_NAME): Convert to lower case.
3568 (CMD_NAME): Likewise.
3569 (DATA_NAME): Likewise.
3570 (DISASSEM_NAME): Likewise.
3571 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3572 (tui_set_win_height): Likewise.
3573 (parse_scrolling_args): Likewise.
3574
485668e5
MM
35752015-07-10 Markus Metzger <markus.t.metzger@intel.com>
3576
3577 * record-btrace.c (record_btrace_goto_begin)
3578 (record_btrace_goto_end, record_btrace_goto): Move call to
3579 print_stack_frame ...
3580 (record_btrace_set_replay): ... here. Set stop_pc.
3581 * record-full.c (record_full_goto_entry): Set stop_pc.
3582
58d2eda5
PL
35832015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3584
3585 * NEWS: Mention support for tracepoints on aarch64-linux.
3586
7671bf47
PL
35872015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3588
3589 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3590 function. Return 1.
3591 (the_low_target): Install it.
3592
7890fb45
PL
35932015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3594
3595 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3596 * gdb.trace/collection.exp: Likewise.
3597 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3598 * gdb.trace/mi-trace-unavailable.exp: Likewise.
3599 * gdb.trace/report.exp: Likewise.
3600 * gdb.trace/trace-break.exp: Likewise.
3601 * gdb.trace/unavailable.exp: Likewise.
3602 * gdb.trace/while-dyn.exp: Likewise.
3603
ea873d8e
PL
36042015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3605
3606 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3607 (aarch64_gen_return_address): New function.
3608 (aarch64_gdbarch_init): Hook it.
3609
02a2a705
PL
36102015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3611
3612 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3613 swallow NOT_AVAILABLE_ERROR.
3614 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3615 available_p is not set.
3616 (aarch64_stub_frame_unwind_stop_reason): New function.
3617 (aarch64_stub_unwind): Install it.
3618
7dfa3edc
PL
36192015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3620
3621 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3622 field.
3623 (aarch64_make_prologue_cache_1): New function, factored out from
3624 aarch64_make_prologue_cache. Do not allocate cache. Set
3625 available_p.
3626 (aarch64_make_prologue_cache): Reimplement wrapping
3627 aarch64_make_prologue_cache_1, and swallowing
3628 NOT_AVAILABLE_ERROR.
3629 (aarch64_prologue_frame_unwind_stop_reason): New function.
3630 Return UNWIND_UNAVAILABLE if available_p is not set.
3631 (aarch64_prologue_unwind): Install it.
3632 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3633 checks into aarch64_prologue_frame_unwind_stop_reason. Call
3634 frame_id_build_unavailable_stack if available_p is not set.
3635
db634143
PL
36362015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3637
3638 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3639 fields.
3640 (aarch64_scan_prologue): Set prev_pc.
3641 (aarch64_make_prologue_cache): Set func.
3642 (aarch64_make_stub_cache): Set prev_pc.
3643 (aarch64_prologue_this_id): Remove local variables id, pc and
3644 func. Read prev_pc and func from cache.
3645 (aarch64_stub_this_id): Read prev_pc from cache.
3646
8b61f75d
PL
36472015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3648
3649 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
3650 argument this_cache. Remove unused local variables reg and
3651 unwound_fp. Return early if this_cache is already set. Set
3652 this_cache.
3653 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3654
7c8edfae
PL
36552015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3656
3657 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
3658 New argument this_cache. Return early if this_cache is already
3659 set. Set this_cache.
3660 (aarch64_prologue_this_id): Update call to
3661 aarch64_make_prologue_cache.
3662 (aarch64_prologue_prev_register): Likewise.
3663 (aarch64_normal_frame_base): Likewise.
3664
938c69a1
SM
36652015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3666
3667 * c-valprint.c (c_val_print): Factor out memberptr printing code
3668 from c_val_print to ...
3669 (c_val_print_memberptr): ... this new function.
3670
49f7fe28
SM
36712015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3672
3673 * c-valprint.c (c_val_print): Factor out int printing code to ...
3674 (c_val_print_int): ... this new function.
3675
9e4f353c
SM
36762015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 * c-valprint.c (c_val_print): Factor out struct and union
3679 printing code to ...
3680 (c_val_print_struct): ... this new function ...
3681 (c_val_print_union): ... and this new function.
3682
1c67f032
SM
36832015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3684
3685 * c-valprint.c (c_val_print): Factor out pointer printing code
3686 to ...
3687 (c_val_print_ptr): ... this new function.
3688
0b6ef777
SM
36892015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3690
3691 * c-valprint.c (c_valprint): Factor our array printing code from
3692 c_val_print to ...
3693 (c_val_print_array): ... this new function.
3694
1033c33c
SM
36952015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3696
3697 * c-valprint.c (c_val_print): Factor out pointer printing code
3698 to ...
3699 (print_unpacked_pointer): ... this new function.
3700
f6b93c34
SM
37012015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3702
3703 * c-valprint.c (c_val_print): Remove an assignment to i and move
3704 its declaration.
3705
0f4576e3
YQ
37062015-07-09 Yao Qi <yao.qi@linaro.org>
3707
3708 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
3709 argument ptid. Update comments. Caller update.
3710
37fdfe4c
MM
37112015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3712
3713 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
3714 mnt packets.
3715
80a2b330
MM
37162015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3717
3718 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
3719
4ab31498
SM
37202015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3721
3722 * progspace.c (delete_program_space): Add missing spaces.
3723
7a41607e
SM
37242015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3725
3726 * inferior.c (delete_inferior_1): Rename to ...
3727 (delete_inferior): ..., remove 'silent' parameter, delete
3728 program space when unused and remove call to prune_program_spaces.
3729 Remove the old, unused, delete_inferior.
3730 (delete_inferior_silent): Remove.
3731 (prune_inferiors): Change call from delete_inferior_1 to
3732 delete_inferior and remove 'silent' parameter. Remove call to
3733 prune_program_spaces.
3734 (remove_inferior_command): Idem.
3735 * inferior.h (delete_inferior_1): Rename to...
3736 (delete_inferior): ..., remove 'silent' parameter and remove the
3737 original delete_inferior.
3738 (delete_inferior_silent): Remove.
3739 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
3740 delete_inferior_1 to delete_inferior and remove 'silent'
3741 parameter.
3742 * progspace.c (prune_program_spaces): Remove.
3743 (pspace_empty_p): Rename to...
3744 (program_space_empty_p): ... and make non-static.
3745 (delete_program_space): New.
3746 * progspace.h (prune_program_spaces): Remove declaration.
3747 (program_space_empty_p): New declaration.
3748 (delete_program_space): New declaration.
3749 * monitor.c (monitor_close): Replace call to
3750 delete_thread_silent and delete_inferior_silent with
3751 discard_all_inferiors.
3752
a9bd710f
PP
37532015-07-08 Patrick Palka <patrick@parcs.ath.cx>
3754
3755 * defs.h (deprecated_register_changed_hook): Remove prototype.
3756 * interps.c (clear_iterpreter_hooks): Remove reference to
3757 deprecated_register_changed_hook.
3758 * top.c (deprecated_register_changed_hook): Remove prototype.
3759 * valops.c (value_assign): Remove reference to
3760 deprecated_register_changed_hook.
3761 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
3762 Add comment documenting the function.
3763 (tui_register_changed_observer): Define.
3764 (tui_install_hooks): Remove reference to
3765 deprecated_register_changed_hook. Set
3766 tui_register_changed_observer.
3767 (tui_remove_hooks): Remove reference to
3768 deprecated_register_changed_hook. Unset
3769 tui_register_changed_observer.
3770
08464196
JK
37712015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 PR compile/18484
3774 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
3775
bcf5c1d9
RC
37762015-07-08 Robert O'Callahan <robert@ocallahan.org>
3777
3778 PR exp/18617
3779 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
3780
e8643a45
MM
37812015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3782
3783 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
3784
76fb6829
MM
37852015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3786
3787 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
3788 Use safe_strerror() instead of strerror().
3789
82c40d4b
YQ
37902015-07-07 Yao Qi <yao.qi@linaro.org>
3791
3792 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
3793 * features/arm-with-m-fpa-layout.c: Regenerated.
3794 * features/arm-with-m-vfp-d16.xml: Likewise.
3795 * features/arm-with-m-vfp-d16.c: Regenerated.
3796 * features/arm-with-m.xml: Likewise.
3797 * features/arm-with-m.c: Regenerated.
3798 * features/arm-with-neon.xml: Likewise.
3799 * features/arm-with-neon.c: Regenerated.
3800 * features/arm-with-vfpv2.xml: Likewise.
3801 * features/arm-with-vfpv2.c: Regenerated.
3802 * features/arm-with-vfpv3.xml: Likewise.
3803 * features/arm-with-vfpv3.c: Regenerated.
3804
607685ec
YQ
38052015-07-07 Yao Qi <yao.qi@linaro.org>
3806
3807 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
3808 arm-linux-nat.c.
3809 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
3810 elf/external.h.
3811 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
3812 if target is 32-bit.
3813 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
3814 if target is 32-bit.
3815 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
3816 if target is 32-bit.
3817 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
3818 if target is 32-bit.
3819 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
3820 (aarch64_linux_read_description): Return the right target
3821 description.
3822 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
3823 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3824 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
3825 arm-linux-tdep.o.
3826
f1b67888
YQ
38272015-07-07 Yao Qi <yao.qi@linaro.org>
3828
3829 * aarch32-linux-nat.c: New file.
3830 * aarch32-linux-nat.h: New file.
3831 * arm-linux-nat.c: Include aarch32-linux-nat.h.
3832 (fetch_regs): Move code to aarch32-linux-nat.c. Call
3833 aarch32_gp_regcache_supply.
3834 (store_regs): Move code to aarch32-linux-nat.c. Call
3835 aarch32_gp_regcache_collect.
3836 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
3837 aarch32_vfp_regcache_supply.
3838 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
3839 aarch32_vfp_regcache_collect.
3840 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3841
179bfe82
YQ
38422015-07-07 Yao Qi <yao.qi@linaro.org>
3843
3844 * arm-linux-nat.c (store_fpregister): Remove.
3845 (store_register): Likewise.
3846 (fetch_fpregister): Likewise.
3847 (fetch_register): Likewise.
3848 (arm_linux_store_inferior_registers): Call store_regs and
3849 store_fpregs instead.
3850 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
3851 fetch_regs instead.
3852
6008fc5f
AB
38532015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
3856 and focus commands.
3857
7c79d316
JB
38582015-07-06 Joel Brobecker <brobecker@adacore.com>
3859
3860 * NEWS: Create a new section for the next release branch.
3861 Rename the section of the current branch, now that it has
3862 been cut.
3863
f2232bea
JB
38642015-07-06 Joel Brobecker <brobecker@adacore.com>
3865
3866 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
3867 * version.in: Bump version to 7.10.50.DATE-cvs.
3868
66c4b3e8
LM
38692015-07-06 Luis Machado <lgustavo@codesourcery.com>
3870
3871 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
3872 breakpoints in a special way.
3873 (remove_breakpoint): Likewise.
3874 (mark_breakpoints_out): Likewise.
3875
bcd8537c
AB
38762015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3877
3878 * doc/gdb.texinfo (TUI): Add comma after @xref.
3879
10e9aaa3
AB
38802015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
3883 instead of casting the structure type.
3884
8a13d42d
SM
38852015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3886
3887 * valops.c (search_struct_field): Remove OFFSET parameter.
3888 (value_cast_structs): Adjust calls to search_struct_field.
3889 (value_struct_elt): Same.
3890 (find_overload_match): Same.
3891
a844296a
SM
38922015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3893
3894 * value.c (value_fetch_lazy): Update comment, change return
3895 value to void.
3896 * value.h (value_fetch_lazy): Change return value to void.
3897
f41cbf58
AB
38982015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
3901 (tui_win_name): Make parameter and result const.
3902 * tui/tui-data.h (tui_win_name): Make parameter and result const.
3903
118ca224
PP
39042015-07-06 Patrick Palka <patrick@parcs.ath.cx>
3905
3906 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
3907 use printf_unfiltered.
3908 (set_mpx_cmd): Add missing trailing space to command string
3909 literal.
3910 (_initialize_i386_tdep): Give the "mpx" prefix command its
3911 correct name.
3912
1b485e67
KB
39132015-07-02 Kevin Buettner <kevinb@redhat.com>
3914
3915 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
3916 (enum rx_frame_type): New.
3917 (struct rx_prologue): Add new field `frame_type'.
3918 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
3919 parameter in the prologue struct. Add code for recording
3920 locations of PC and PSW for fast interrupt and exception frames.
3921 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
3922 (rx_analyze_frame_prologue): Add `frame_type' parameter.
3923 (rx_frame_type): New function.
3924 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
3925 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
3926 `this_cache'.
3927 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 3928 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
3929 RX_FRAME_TYPE_FAST_INTERRUPT.
3930 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
3931 (rx_frame_sniffer, rx_exception_sniffer): New functions.
3932 (rx_frame_unwind): Use rx_frame_sniffer instead of
3933 default_frame_sniffer.
3934 (rx_frame_unwind): New unwinder.
3935 (rx_gdbarch_init): Register new unwinder.
3936
0561fea4
KB
39372015-07-02 Kevin Buettner <kevinb@redhat.com>
3938
3939 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
3940 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
3941 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
3942 and RX_FPSW_REGNUM.
3943 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
3944
decf8d9a
JK
39452015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3946
3947 Fix GCC false warning.
3948 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
3949
2fd0f80d
YQ
39502015-07-02 Yao Qi <yao.qi@linaro.org>
3951
3952 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
3953 typo in the debugging message.
3954
b0627500
MM
39552015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3956
3957 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
3958 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
3959 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
3960 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
3961 (btrace_maint_clear): New.
3962 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
3963 (pt_print_packet, btrace_maint_decode_pt)
3964 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
3965 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
3966 (maint_btrace_packet_history_cmd)
3967 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3968 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
3969 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
3970 (maint_info_btrace_cmd, _initialize_btrace): New.
3971 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
3972 (btrace_maint_packet_history, btrace_maint_info): New.
3973 (btrace_thread_info) <maint>: New.
3974 * NEWS: Announce it.
3975
9be54cae
MM
39762015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3977
3978 * btrace.c (btrace_fetch): Append the new trace data.
3979 (btrace_clear): Clear the stored trace data.
3980 * btrace.h (btrace_thread_info) <data>: New.
3981 * common/btrace-common.h (btrace_data_clear)
3982 (btrace_data_append): New.
3983 * common/btrace-common.c (btrace_data_clear)
3984 (btrace_data_append): New.
3985
010a18a1
MM
39862015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3987
3988 * nat/linux-btrace.c (linux_enable_bts): Check for
3989 PERF_ATTR_SIZE_VER5.
3990 Check for data_offset and data_size fields. Use them.
3991
b20a6524
MM
39922015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3993
3994 * NEWS: Announce new commands "record btrace pt" and "record pt".
3995 Announce new options "set|show record btrace pt buffer-size".
3996 * btrace.c: Include "rsp-low.h".
3997 Include "inttypes.h".
3998 (btrace_add_pc): Add forward declaration.
3999 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4000 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4001 (btrace_compute_ftrace_pt): New.
4002 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4003 (check_xml_btrace_version): Update version check.
4004 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4005 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4006 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4007 (btrace_pt_children): New.
4008 (btrace_children): Add support for "pt".
4009 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4010 (btrace_conf_children): Add support for "pt".
4011 * btrace.h: Include "intel-pt.h".
4012 (btrace_pt_error): New.
4013 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4014 (btrace_data_empty): Support BTRACE_FORMAT_PT.
4015 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4016 (struct btrace_config_pt): New.
4017 (struct btrace_config)<pt>: New.
4018 (struct btrace_data_pt_config, struct btrace_data_pt): New.
4019 (struct btrace_data)<pt>: New.
4020 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4021 (pt): New.
4022 * features/btrace.dtd (btrace)<pt>: New.
4023 (pt, pt-config, cpu): New.
4024 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4025 (perf_event_pt_event_type, kernel_supports_pt)
4026 (linux_supports_pt): New.
4027 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4028 (linux_enable_bts): Free tinfo on error.
4029 (linux_enable_pt): New.
4030 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4031 (linux_disable_pt): New.
4032 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4033 (linux_fill_btrace_pt_config, linux_read_pt): New.
4034 (linux_read_btrace): Support BTRACE_FORMAT_PT.
4035 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4036 (struct btrace_target_info)<pt>: New.
4037 * record-btrace.c (set_record_btrace_pt_cmdlist)
4038 (show_record_btrace_pt_cmdlist): New.
4039 (record_btrace_print_pt_conf): New.
4040 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4041 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4042 (cmd_record_btrace_pt_start): New.
4043 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4044 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4045 (_initialize_record_btrace): Add new commands.
4046 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4047 (remote_protocol_features): Add "Qbtrace:pt".
4048 Add "Qbtrace-conf:pt:size".
4049 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4050 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4051 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4052 (_initialize_remote): Add new commands.
4053
58bfce93
MM
40542015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4055
4056 * configure.ac: check for libipt
4057 * configure: Regenerate.
4058 * config.in: Regenerate.
4059 * Makefile.in (LIBIPT): New.
4060 (CLIBS): Add $LIBIPT.
4061 * NEWS: document new configure options
4062
b0fd6b30
JK
40632015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4064
4065 * compile/compile-object-load.c (compile_object_load): Replace debug
4066 message "lookup undefined ELF symbol" by 3 more specific messages.
4067
e6280369
KB
40682015-07-01 Kevin Buettner <kevinb@redhat.com>
4069
4070 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4071 (rl78_register_type): Add case for RL78_PSW_REGNUM.
4072 (rl78_gdbarch_init): Initialize rl78_psw_type.
4073
bbcbf914
PP
40742015-07-01 Patrick Palka <patrick@parcs.ath.cx>
4075
4076 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4077 Update commentary. Always refresh the registers when frame
4078 information has changed.
4079 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4080 Change return type to int. Return 1 if frame information has
4081 changed, 0 otherwise.
4082 (tui_before_prompt): Update commentary.
4083 * tui/tui-stack.h (tui_show_frame_info): Change return type to
4084 int.
4085
0986c744
PP
40862015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4087
4088 PR tui/13378
4089 * frame.c (select_frame): Remove reference to
4090 deprecated_selected_frame_level_changed_hook.
4091 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4092 declaration.
4093 * stack.c (deprecated_selected_frame_level_changed_hook):
4094 Likewise.
4095 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4096 Rename to ...
4097 (tui_refresh_frame_and_register_information): ... this. Bail
4098 out if there is no stack. Don't update register information
4099 unless registers_too_p is true.
4100 (tui_print_frame_info_listing_hook): Rename to ...
4101 (tui_dummy_print_frame_info_listing_hook): ... this.
4102 (tui_before_prompt): New function.
4103 (tui_normal_stop): New function.
4104 (tui_before_prompt_observer): New observer.
4105 (tui_normal_stop_observer): New observer.
4106 (tui_install_hooks): Set
4107 deprecated_print_frame_info_listing_hook to
4108 tui_dummy_print_frame_info_listing_hook. Register
4109 tui_before_prompt_observer to call tui_before_prompt and
4110 tui_normal_stop_observer to call tui_normal_stop. Remove
4111 reference to deprecated_selected_frame_level_changed_hook.
4112 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4113 and tui_normal_stop_observer. Remove reference to
4114 deprecated_selected_frame_level_changed_hook.
4115
b5fca6d7
PP
41162015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4117
4118 PR tui/13378
4119 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4120 return an int instead of void. Return whether the locator
4121 window has changed.
4122 (tui_show_frame_info): If the locator info has not changed, then
4123 bail out early to avoid refreshing the windows.
4124
c45613e3
PP
41252015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4126
4127 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4128 LOCATOR_WIN to tui_alloc_content.
4129
7b9be803
YQ
41302015-06-30 Yao Qi <yao.qi@linaro.org>
4131
4132 PR tdep/18605
4133 * arm-tdep.c (arm_get_next_pc_raw): Break for media
4134 instructions.
4135
fd6e021d
KB
41362015-06-29 Kevin Buettner <kevinb@redhat.com>
4137
78ab7e9d
KB
4138 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4139 (rx_dwarf_reg_to_regnum): New function.
4140 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
4141 unwinding.
fd6e021d 4142
28bf096c
PA
41432015-06-29 Pedro Alves <palves@redhat.com>
4144
4145 PR threads/18127
4146 * infcall.c (run_inferior_call): On infcall success, if the thread
4147 was marked stopped before, reset it back to stopped.
4148 * infrun.c (resume): Don't suppress the set_running calls when
4149 doing an infcall.
4150 (normal_stop): Only discard the finish_thread_state cleanup if the
4151 infcall succeeded.
4152
2880b51c 41532015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
4154
4155 * MAINTAINERS (Write After Approval): Update my email address.
4156
ee93cd5e
KS
41572015-06-26 Keith Seitz <keiths@redhat.com>
4158 Doug Evans <dje@google.com>
4159
4160 PR 16253
4161 * block.c (block_lookup_symbol): For non-function blocks,
4162 continue to search for a symbol with an exact domain match
4163 Otherwise, return any previously found "best domain" symbol.
4164 (block_lookup_symbol_primary): Likewise.
4165
fc637f04
PP
41662015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4167
4168 * NEWS: Mention the new option "history remove-duplicates".
4169 * top.c (history_remove_duplicates): New static variable.
4170 (show_history_remove_duplicates): New static function.
4171 (gdb_add_history): Conditionally remove duplicate history
4172 entries.
4173 (init_main): Add "history remove-duplicates" option.
4174
2e52ae68
PP
41752015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4176
4177 * tui/tui-win.c (focus_completer): New static function.
4178 (_initialize_tui_win): Set the completion function of the
4179 "focus" command to focus_completer.
4180
6e22494e
JK
41812015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4182
4183 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4184 and language_asm..
4185 * symtab.c (find_function_start_sal): Likewise.
4186
f8773be1
GB
41872015-06-25 Gary Benson <gbenson@redhat.com>
4188
4189 * solib.c (solib_find_1): Set local variable sysroot to NULL if
4190 it is the empty string after trailing slashes have been stripped.
4191
a3be80c3
GB
41922015-06-25 Gary Benson <gbenson@redhat.com>
4193
4194 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4195 * infrun.c (follow_exec): Likewise.
4196 * remote.c (remote_filesystem_is_local): Likewise.
4197 * solib.c (solib_find_1): Likewise.
4198
32fad71f
KS
41992015-06-24 Keith Seitz <keiths@redhat.com>
4200
4201 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4202 return value from lrealpath.
4203
87d1b309
MF
42042015-06-24 Mike Frysinger <vapier@gentoo.org>
4205
4206 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4207
23bf70af
MF
42082015-06-24 Mike Frysinger <vapier@gentoo.org>
4209
4210 * remote-sim.c: Include gdb_bfd.h.
4211 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4212 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4213
5cd867b4
YQ
42142015-06-24 Yao Qi <yao.qi@linaro.org>
4215
4216 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4217 set_gdbarch_get_siginfo_type.
4218 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4219 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4220 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4221 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4222 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4223 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4224 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4225 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4226 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4227 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4228
dc06243f
GB
42292015-06-24 Gary Benson <gbenson@redhat.com>
4230
4231 * common/buffer.c (stdint.h): Do not include.
4232 * common/print-utils.c (stdint.h): Likewise.
4233 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4234 * compile/compile-c-types.c (gdb_assert.h): Likewise.
4235 * ft32-tdep.c (gdb_assert.h): Likewise.
4236 * guile/scm-utils.c (stdint.h): Likewise.
4237 * i386-linux-tdep.c (stdint.h): Likewise.
4238 * i386-tdep.c (stdint.h): Likewise.
4239 * nat/linux-btrace.c (stdint.h): Likewise.
4240 * nat/linux-btrace.h (stdint.h): Likewise.
4241 * nat/linux-ptrace.c (stdint.h): Likewise.
4242 * nat/mips-linux-watch.h (stdint.h): Likewise.
4243 * ppc-linux-nat.c (stdint.h): Likewise.
4244 * python/python-internal.h (stdint.h): Likewise.
4245 * stub-termcap.c (stdlib.h): Likewise.
4246 * target/target.h (stdint.h): Likewise.
4247 * xtensa-linux-nat.c (stdint.h): Likewise.
4248
0fc26caf
PP
42492015-06-23 Patrick Palka <patrick@parcs.ath.cx>
4250
4251 * top.c (init_history): Look at errno after calling strtol to
4252 properly map large GDBHISTSIZE values to infinity.
4253
a38fe4fe
DE
42542015-06-23 Doug Evans <dje@google.com>
4255
4256 * inferior.h (struct inferior_suspend_state): Delete, unused.
4257 All references deleted.
4258
7564fe45
MF
42592015-06-23 Mike Frysinger <vapier@gentoo.org>
4260
4261 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4262 (microblaze_push_dummy_call): Likewise.
4263 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4264 and set_gdbarch_push_dummy_call.
4265
0bdb2f78
YQ
42662015-06-23 Yao Qi <yao.qi@linaro.org>
4267
4268 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4269 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4270 (amd64_linux_store_inferior_registers): Likewise.
4271 * arm-linux-nat.c (fetch_fpregister): Likewise.
4272 (fetch_fpregs, store_fpregister): Likewise.
4273 (store_fpregister, store_fpregs): Likewise.
4274 (fetch_register, fetch_regs): Likewise.
4275 (store_register, store_regs): Likewise.
4276 (fetch_vfp_regs, store_vfp_regs): Likewise.
4277 (arm_linux_read_description): Check have_ptrace_getregset is
4278 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
4279 or TRIBOOL_FALSE.
4280 * i386-linux-nat.c (fetch_xstateregs): Check
4281 have_ptrace_getregset is not TRIBOOL_TRUE.
4282 (store_xstateregs): Likewise.
4283 * linux-nat.c (have_ptrace_getregset): Change its type to
4284 enum tribool.
4285 * linux-nat.h (tribool): New enum.
4286 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4287 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4288
18a94d75
DE
42892015-06-19 Doug Evans <dje@google.com>
4290
4291 * NEWS: Mention Sun's version of stabs is no longer supported.
4292 * elfread.c (free_elfinfo): Delete. All uses updated.
4293 (elfstab_offset_sections): Delete. All uses updated.
4294 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
4295 * psympriv.h (partial_symtab) <section_offsets>: Delete.
4296 All uses updated.
4297 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4298 All callers updated.
4299
124e13d9
SM
43002015-06-18 Simon Marchi <simon.marchi@ericsson.com>
4301
4302 * common/rsp-low.c (needs_escaping): New.
4303 (remote_escape_output): Add unit_size parameter. Refactor to
4304 support multi-byte addressable units. Rename parameters.
4305 * common/rsp-low.h (remote_escape_output): Add unit_size
4306 parameter and rename others. Update doc.
4307 * remote.c (align_for_efficient_write): New.
4308 (remote_write_bytes_aux): Add unit_size parameter and use it.
4309 Rename some variables. Update doc.
4310 (remote_xfer_partial): Get unit size and use it.
4311 (remote_read_bytes_1): Add unit_size parameter and use it.
4312 Rename some variables. Update doc.
4313 (remote_write_bytes): Same.
4314 (remote_xfer_live_readonly_partial): Same.
4315 (remote_read_bytes): Same.
4316 (remote_flash_write): Update call to remote_write_bytes_aux.
4317 (remote_write_qxfer): Update call to remote_escape_output.
4318 (remote_search_memory): Same.
4319 (remote_hostio_pwrite): Same.
4320
6ae88661
LM
43212015-06-17 Luis Machado <lgustavo@codesourcery.com>
4322
4323 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4324 locations as inserted.
4325 Update and expand comment about permanent locations.
4326 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4327 Move comment to add_location_to_breakpoint.
4328 (update_global_location_list): Don't error out if a permanent
4329 breakpoint is not marked inserted.
4330 Don't error out if a non-permanent breakpoint location is inserted on
4331 top of a permanent breakpoint.
4332
da4616f6
LM
43332015-06-17 Luis Machado <lgustavo@codesourcery.com>
4334
4335 * breakpoint.c (make_breakpoint_permanent): Remove unused
4336 function.
4337 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4338
bc460514
PP
43392015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4340
4341 PR gdb/16999
4342 * NEWS: Mention new GDBHISTSIZE behavior.
4343 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4344 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
4345
b58c513b
PP
43462015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4347
4348 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4349 * top.c (init_history): Read from GDBHISTSIZE instead of
4350 HISTSIZE.
4351 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4352
2093d2d3
PP
43532015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4354
4355 * top.c (gdb_safe_append_history): Do not call
4356 history_truncate_file if the history is not stifled.
4357
fc248485
AA
43582015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4359
4360 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4361 * syscalls/s390x-linux.xml: Likewise.
4362
4da680ad
ME
43632015-06-16 Michael Eager <eager@eagercon.com>
4364
4365 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4366
0a75489f
PP
43672015-06-16 Patrick Palka <patrick@parcs.ath.cx>
4368
4369 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4370 target_terminal_ours_for_output() before calling
4371 tui_show_frame_info(), and restore the original terminal
4372 settings afterwards.
4373
95855ca8
MS
43742015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4375
4376 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4377
cfc32360
SM
43782015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4379
4380 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4381 memory unit size.
4382 (mi_cmd_data_write_memory_bytes): Same.
4383
cb6f16cf
SM
43842015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4385
4386 * corefile.c (write_memory): Update doc.
4387 * gdbcore.h (write_memory): Same.
4388
31b7833d
JK
43892015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4390
4391 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4392 (dump_mapping_p): Use it for parameter filterflags.
4393 (linux_find_memory_regions_full): Use it for variable filterflags.
4394
909c2cda
JK
43952015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4396 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 Merge multiple hex conversions.
4399 * monitor.c: Include rsp-low.h.
4400 (fromhex): Remove definition.
4401
03aef70f
JK
44022015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4403 Jan Kratochvil <jan.kratochvil@redhat.com>
4404
4405 Move utility functions to common/.
4406 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4407 Move defs to common/common-utils.c.
4408 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4409 (skip_to_space_const): Move decls to common/common-utils.h.
4410 * common/common-defs.h: Move include of common-types.h before
4411 common-utils.h.
4412 * common/common-utils.c: Include host-defs.h and ctype.h.
4413 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4414 from utils.c.
4415 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4416 cli/cli-utils.c.
4417 * common/common-utils.h (strtoulst): Move decl from utils.h.
4418 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4419 Move from cli/cli-utils.h.
4420 * common/host-defs.h: Include limits.h.
4421 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4422 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4423 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4424 common/common-utils.h.
4425 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4426 (strtoulst): Move to common/common-utils.c.
4427 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4428
d1168cc1
YQ
44292015-06-15 Yao Qi <yao.qi@linaro.org>
4430
4431 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4432
c74f7d1c
JT
44332015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4434
4435 * build-id.c: Don't include elf-bfd.h.
4436 (build_id_bfd_get): Use bfd_build_id.
4437 (build_id_verify): Ditto.
4438 * build-id.h: Ditto.
4439 (find_separate_debug_file_by_buildid): Ditto.
4440 * python/py-objfile.c: Don't include elf-bfd.h.
4441 (objfpy_get_build_id) Use bfd_build_id.
4442 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4443 * coffread.c: Include build-id.h.
4444 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4445
f20c58f5
JT
44462015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4447
4448 * windows-nat.c (do_windows_fetch_inferior_registers)
4449 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4450 conditional with __CYGWIN__.
4451
51f0e40d
AB
44522015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
4453
4454 * completer.c: Add arch-utils.h include.
4455 (enum reg_completer_targets): New enum.
4456 (reg_or_group_completer_1): New function containing old
4457 reg_or_group_completer, add and use new parameter to control what
4458 is completed on. Use get_current_arch rather than architecture of
4459 currently selected frame.
4460 (reg_or_group_completer): Call new reg_or_group_completer_1.
4461 (reggroup_completer): Call new reg_or_group_completer_1.
4462 * completer.h (reggroup_completer): Add declaration.
4463 * tui/tui-regs.c: Add 'completer.h' include.
4464 (tui_reg_next_command): Renamed to...
4465 (tui_reg_next): ...this. Adjust parameters and return rather than
4466 display new group.
4467 (tui_reg_prev_command): Renamed to...
4468 (tui_reg_prev): ...this. Adjust parameters and return rather than
4469 display new group.
4470 (tui_reg_float_command): Delete.
4471 (tui_reg_general_command): Delete.
4472 (tui_reg_system_command): Delete.
4473 (tui_reg_command): Rewrite to perform switching of register group.
4474 Add header comment.
4475 (tuireglist): Remove.
4476 (tui_reggroup_completer): New function.
4477 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4478 creation of 'tui reg' command.
4479 * NEWS: Add comment about 'tui reg' changes.
4480
d309493c
SM
44812015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4482
4483 * target.c (target_read): Consider addressable unit size when
4484 reading from a memory object.
4485 (read_memory_robust): Same.
4486 (read_whatever_is_readable): Same.
4487 (target_write_with_progress): Consider addressable unit size
4488 when writing to a memory object.
4489 * target.h (target_read): Update documentation.
4490 (target_write): Add documentation.
4491
3374165f
SM
44922015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4493
4494 * arch-utils.h (default_addressable_memory_unit_size): New.
4495 * arch-utils.c (default_addressable_memory_unit_size): New.
4496 * gdbarch.sh (addressable_memory_unit_size): New.
4497 * gdbarch.h: Re-generate.
4498 * gdbarch.c: Re-generate.
4499
279a6fed
SM
45002015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4501
4502 * target.c (target_read): Rename variables and use
4503 TARGET_XFER_E_IO.
4504 (target_read_with_progress): Same.
4505 (read_memory_robust): Constify parameters and rename
4506 variables.
4507 (read_whatever_is_readable): Constify parameters,
4508 rename variables, adjust formatting.
4509 * target.h (read_memory_robust): Constify parameters.
4510
1e5338b6 45112015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
4512
4513 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4514 synthetic (non-AltiVec) vector types.
4515 (ppc64_sysv_abi_return_value): Likewise.
4516
98aa42ee
AT
45172015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
4518
4519 PR breakpoints/16465
4520 * breakpoint.c (create_breakpoint): Save extra_string for
4521 pending breakpoints.
4522
966f0aef
WT
45232015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4524
4525 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4526 and bt_mask to CORE_ADDR.
4527
6449ed0d
GB
45282015-06-11 Gary Benson <gbenson@redhat.com>
4529
4530 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4531 (mnsh_recv_message): Likewise.
4532
34f8ac9f
WT
45332015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
4534
4535 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4536 long long int and plongest instead of %ll.
4537
198c808c
GB
45382015-06-11 Gary Benson <gbenson@redhat.com>
4539
4540 * nat/linux-namespaces.c (gdb_wait.h): New include.
4541 (sys/wait.h): Do not include.
4542
e815d2d2
SM
45432015-06-10 Simon Marchi <simon.marchi@ericsson.com>
4544
4545 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4546 end_sequence is true.
4547
8847cac2
JK
45482015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4549
4550 Code cleanup.
4551 * solib-target.c (library_list_start_list): Use explicit NULL
4552 comparison.
4553
24c05f46
JK
45542015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4555
4556 * solib-target.c (library_list_start_list): Do not dereference
4557 variable version in its initialization. Make the VERSION check handle
4558 NULL.
4559 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4560
51aad7cc
GB
45612015-06-10 Gary Benson <gbenson@redhat.com>
4562
4563 * NEWS: Announce support for direct access of executable and
4564 shared library files when attaching to inferiors in containers
4565 on GNU/Linux systems.
4566
15a201c8
GB
45672015-06-10 Gary Benson <gbenson@redhat.com>
4568
4569 * remote.c (struct remote_state) <fs_pid>: New field.
4570 (new_remote_state): Initialize the above.
4571 (PACKET_vFile_setfs): New enum value.
4572 (remote_hostio_set_filesystem): New function.
4573 (remote_hostio_open): Call the above.
4574 (remote_hostio_unlink): Likewise.
4575 (remote_hostio_readlink): Likewise.
4576 (_initialize_remote): Register new "set/show remote
4577 hostio-setfs-packet" command.
4578 * NEWS: Announce new vFile:setfs packet.
4579
7a6a1731
GB
45802015-06-10 Gary Benson <gbenson@redhat.com>
4581
4582 * linux-nat.c (nat/linux-namespaces.h): New include.
4583 (fileio.h): Likewise.
4584 (linux_nat_filesystem_is_local): New function.
4585 (linux_nat_fileio_pid_of): Likewise.
4586 (linux_nat_fileio_open): Likewise.
4587 (linux_nat_fileio_readlink): Likewise.
4588 (linux_nat_fileio_unlink): Likewise.
4589 (linux_nat_add_target): Initialize to_filesystem_is_local,
4590 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4591 (_initialize_linux_nat): New "set/show debug linux-namespaces"
4592 commands.
4593 * NEWS: Mention new "set/show debug linux-namespaces" commands.
4594
07c138c8
GB
45952015-06-10 Gary Benson <gbenson@redhat.com>
4596
4597 * target.h (struct inferior): New forward declaration.
4598 (struct target_ops) <to_filesystem_is_local>: Update comment.
4599 (struct target_ops) <to_fileio_open>: New argument inf.
4600 Update comment. All implementations updated.
4601 (struct target_ops) <to_fileio_unlink>: Likewise.
4602 (struct target_ops) <to_fileio_readlink>: Likewise.
4603 (target_filesystem_is_local): Update comment.
4604 (target_fileio_open): New argument inf. Update comment.
4605 (target_fileio_unlink): Likewise.
4606 (target_fileio_readlink): Likewise.
4607 (target_fileio_read_alloc): Likewise.
4608 (target_fileio_read_stralloc): Likewise.
4609 * target.c (target_fileio_open): New argument inf.
4610 Pass inf to implementation. Update debug printing.
4611 (target_fileio_unlink): Likewise.
4612 (target_fileio_readlink): Likewise.
4613 (target_fileio_read_alloc_1): New argument inf. Pass inf
4614 to target_fileio_open.
4615 (target_fileio_read_alloc): New argument inf. Pass inf to
4616 target_fileio_read_alloc_1.
4617 (target_fileio_read_stralloc): Likewise.
4618 * gdb_bfd.c (inferior.h): New include.
4619 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4620 argument with new argument "inferior". Pass inferior to
4621 target_fileio_open.
4622 (gdb_bfd_open): Supply inferior argument to
4623 gdb_bfd_iovec_fileio_open.
4624 * linux-tdep.c (linux_info_proc): Supply inf argument to
4625 relevant target_fileio calls.
4626 (linux_find_memory_regions_full): Likewise.
4627 (linux_fill_prpsinfo): Likewise.
4628 * remote.c (remote_filesystem_is_local): Supply inf
4629 argument to remote_hostio_open.
4630 (remote_file_put): Likewise.
4631 (remote_file_get): Likewise.
4632 (remote_file_delete): Supply inf argument to
4633 remote_hostio_unlink.
4634
12e2a5fd
GB
46352015-06-10 Gary Benson <gbenson@redhat.com>
4636
4637 * inf-child.c (inf_child_fileio_open): Replace comment.
4638 (inf_child_fileio_pwrite): Likewise.
4639 (inf_child_fileio_pread): Likewise.
4640 (inf_child_fileio_fstat): Insert blank line before comment.
4641 (inf_child_fileio_close): Replace comment.
4642 (inf_child_fileio_unlink): Likewise.
4643 (inf_child_fileio_readlink): Likewise.
4644 * remote.c (remote_hostio_open): Likewise.
4645 (remote_hostio_pread): Likewise.
4646 (remote_hostio_pwrite): Likewise.
4647 (remote_hostio_close): Likewise.
4648 (remote_hostio_unlink): Likewise.
4649 (remote_hostio_readlink): Likewise.
4650 (remote_hostio_fstat): Likewise.
4651 (remote_filesystem_is_local): Likewise.
4652 * target.c (target_fileio_open): Likewise.
4653 (target_fileio_pwrite): Likewise.
4654 (target_fileio_pread): Likewise.
4655 (target_fileio_fstat): Insert blank line before comment.
4656 (target_fileio_close): Replace comment.
4657 (target_fileio_unlink): Likewise.
4658 (target_fileio_readlink): Likewise.
4659 (target_fileio_read_alloc): Likewise.
4660 (target_fileio_read_stralloc): Likewise.
4661
9bc3a976
GB
46622015-06-10 Gary Benson <gbenson@redhat.com>
4663
4664 * linux-thread-db.c (nat/linux-namespaces.h): New include.
4665 (check_pid_namespace_match): Use linux_ns_same rather than
4666 linux_proc_pid_get_ns to spot PID namespace mismatches.
4667 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
4668 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
4669
4b8b5e72
GB
46702015-06-10 Gary Benson <gbenson@redhat.com>
4671
4672 * configure.ac (AC_CHECK_FUNCS): Add setns.
4673 * config.in: Regenerate.
4674 * configure: Likewise.
4675 * nat/linux-namespaces.h: New file.
4676 * nat/linux-namespaces.c: Likewise.
4677 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
4678 (linux-namespaces.o): New rule.
4679 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
4680 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4681 * config/arm/linux.mh (NATDEPFILES): Likewise.
4682 * config/i386/linux.mh (NATDEPFILES): Likewise.
4683 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4684 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4685 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4686 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4687 * config/mips/linux.mh (NATDEPFILES): Likewise.
4688 * config/pa/linux.mh (NATDEPFILES): Likewise.
4689 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4690 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4691 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4692 * config/s390/linux.mh (NATDEPFILES): Likewise.
4693 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4694 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4695 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4696 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4697
ca095836
GB
46982015-06-10 Gary Benson <gbenson@redhat.com>
4699
4700 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
4701 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
4702 (make_cleanup_close): Likewise.
4703 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
4704 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
4705 (make_cleanup_close): Likewise.
4706
5d9c55d3
JT
47072015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4708
4709 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
4710 from SuspendThread().
4711
040ea00b
JT
47122015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4713
4714 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
4715 from OutputDebugString.
4716
7d73c23c
WT
47172015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4718 Mircea Gherzan <mircea.gherzan@intel.com>
4719
4720 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
4721 MPX_BT_MASK_32): New macros.
4722 (i386_mpx_set_bounds): New function that implements
4723 the command "set-mpx-bound".
4724 (i386_mpx_enabled): Helper function to test MPX availability.
4725 (i386_mpx_bd_base): Helper function to calculate the base directory
4726 address.
4727 (i386_mpx_get_bt_entry): Helper function to access a bound
4728 table entry.
4729 (i386_mpx_print_bounds): Effectively display bound information.
4730 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
4731 "show mpx".
4732 (_initialize_i386_tdep):
4733 Add "bound" to the commands "show mpx" and "set mpx" commands.
4734 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
4735 and "show mpx" commands.
4736 * NEWS: List new commands for MPX support.
4737
3ac2e371
GB
47382015-06-09 Gary Benson <gbenson@redhat.com>
4739
4740 * common/fileio.h (fileio_to_host_mode): New declaration.
4741 * common/fileio.c (fileio_to_host_mode): New Function.
4742 * inf-child.c (inf_child_fileio_open): Process mode argument
4743 with fileio_to_host_mode.
4744
ecef18c5
GB
47452015-06-09 Gary Benson <gbenson@redhat.com>
4746
4747 * common/fileio.c (fileio_mode_pack): Fix preprocessor
4748 conditional.
4749
e3dd7556
GB
47502015-06-05 Gary Benson <gbenson@redhat.com>
4751
4752 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
4753 * remote.c (remote_filesystem_is_local): ...here.
4754
5b74bf7d
YQ
47552015-06-04 Yao Qi <yao.qi@linaro.org>
4756
4757 * gdbarch.c: Regenerate it.
4758
7f361056
JK
47592015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4760
4761 * arch-utils.c (default_infcall_munmap): New.
4762 * arch-utils.h (default_infcall_munmap): New declaration.
4763 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
4764 (munmap_list_free, munmap_listp_free_cleanup): New.
4765 (struct setup_sections_data): Add field munmap_list_headp.
4766 (setup_sections): Call munmap_list_add.
4767 (compile_object_load): New variable munmap_list_head, initialize
4768 setup_sections_data.munmap_list_headp, return munmap_list_head.
4769 * compile/compile-object-load.h (struct munmap_list): New declaration.
4770 (struct compile_module): Add field munmap_list_head.
4771 (munmap_list_free): New declaration.
4772 * compile/compile-object-run.c (struct do_module_cleanup): Add field
4773 munmap_list_head.
4774 (do_module_cleanup): Call munmap_list_free.
4775 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
4776 * gdbarch.c: Regenerate.
4777 * gdbarch.h: Regenerate.
4778 * gdbarch.sh (infcall_munmap): New.
4779 * linux-tdep.c (linux_infcall_munmap): New.
4780 (linux_init_abi): Install it.
4781
3b462ec2
SM
47822015-06-02 Simon Marchi <simon.marchi@ericsson.com>
4783
4784 PR gdb/15564
4785 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
4786
8d683210
YQ
47872015-06-02 Yao Qi <yao.qi@linaro.org>
4788
4789 * i386-linux-nat.c: Include linux-nat.h.
4790
e0619de6
JK
47912015-06-01 Andreas Schwab <schwab@linux-m68k.org>
4792 Jan Kratochvil <jan.kratochvil@redhat.com>
4793
4794 PR symtab/18392
4795 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
4796 assertion.
4797 * dwarf2loc.c (chain_candidate): Likewise.
4798
bd16da51
YQ
47992015-06-01 Yao Qi <yao.qi@linaro.org>
4800
4801 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
4802 (store_vfp_regs): Use PTRACE_SETREGSET.
4803
df9d7ec9
YQ
48042015-06-01 Yao Qi <yao.qi@linaro.org>
4805
4806 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
4807 (fetch_fpregs): Likewise.
4808 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
4809 (store_fpregs): Likewise.
4810
10766686
YQ
48112015-06-01 Yao Qi <yao.qi@linaro.org>
4812
4813 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
4814 (fetch_regs): Likewise.
4815 (store_regs): Use PTRACE_SETREGSET.
4816 (store_register): Likewise.
4817
7efe48d1
YQ
48182015-06-01 Yao Qi <yao.qi@linaro.org>
4819
4820 * arm-linux-nat.c (arm_linux_read_description): Check whether
4821 kernel supports PTRACE_GETREGSET.
4822
433bbbf8
YQ
48232015-06-01 Yao Qi <yao.qi@linaro.org>
4824
4825 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
4826 * linux-nat.c: ... here.
4827 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
4828 to ...
4829 * linux-nat.h: ... here.
4830
ca9b78ce
YQ
48312015-06-01 Yao Qi <yao.qi@linaro.org>
4832
4833 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
4834 * i386-linux-nat.c: Likewise.
4835 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
4836 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
4837 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4838 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
4839 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4840
99cee7b7
EZ
48412015-05-30 Eli Zaretskii <eliz@gnu.org>
4842
4843 * go32-nat.c (go32_xfer_memory): Fix the return value to be
4844 compatible to what read_child and write_child return. This
4845 unbreaks that DJGPP build of GDB which was broken since v7.7.
4846
2147f5bd
MG
48472015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
4848
4849 * MAINTAINERS (Write After Approval): Add Martin Galvan.
4850
c8f6c93c
RM
48512015-05-29 Roland McGrath <mcgrathr@google.com>
4852
4853 PR gdb/18464
4854 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
4855 rather than internal_error for an unrecognized value.
4856
8c6a948d
MF
48572015-05-29 Max Filippov <jcmvbkbc@gmail.com>
4858
4859 * xtensa-tdep.c (xtensa_pseudo_register_read)
4860 (xtensa_pseudo_register_write): Don't alias last pseudo register
4861 to a1.
4862
8dd06f7a
DB
48632015-05-28 Don Breazeal <donb@codesourcery.com>
4864
4865 * infrun.c (follow_fork_inferior): Ensure the use of
4866 process-style ptids (pid,0,0) in verbose/debug "Detaching"
4867 messages.
4868
a051152b
DE
48692015-05-28 Doug Evans <dje@google.com>
4870
4871 * dwarf2read.c (record_line_ftype): Remove, duplicate.
4872
a56cc1ce
YQ
48732015-05-28 Yao Qi <yao.qi@linaro.org>
4874
4875 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
4876 (arm_linux_fetch_inferior_registers): Use
4877 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
4878 (arm_linux_store_inferior_registers): Likewise.
4879 (arm_linux_read_description): Don't set
4880 arm_linux_has_wmmx_registers.
4881 * arm-tdep.c (arm_gdbarch_init): Set
4882 tdep->have_wmmx_registers according target descriptions.
4883 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
4884 field.
4885
330c6ca9
YQ
48862015-05-28 Yao Qi <yao.qi@linaro.org>
4887
4888 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
4889 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
4890 instead of arm_linux_vfp_register_count.
4891 (store_vfp_regs): Likewise.
4892 (arm_linux_fetch_inferior_registers): Likewise.
4893 (arm_linux_store_inferior_registers): Likewise.
4894 (arm_linux_read_description): Don't set
4895 arm_linux_vfp_register_count.
4896 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
4897 Adjust.
4898 * arm-tdep.c (arm_gdbarch_init): Add assert on
4899 vfp_register_count.
4900 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
4901 field to vfp_register_count. All users updated.
4902
d403db27
KH
49032015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
4904
4905 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
4906 ELFOSABI_GNU binaries.
4907
d9b3de22
DE
49082015-05-27 Doug Evans <dje@google.com>
4909
4910 * dwarf2read.c (lnp_state_machine): New typedef.
4911 (lnp_reader_state): New typedef.
4912 (dwarf_record_line_1): Renamed from dwarf_record_line.
4913 All callers updated.
4914 (dwarf_record_line): New function.
4915 (init_lnp_state_machine): New function.
4916 (check_line_address): Replace p_record_line parameter with state.
4917 All callers updated.
4918 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
4919 Update to record state in lnp_state_machine.
4920
924c2928
DE
49212015-05-27 Doug Evans <dje@google.com>
4922
4923 * dwarf2read.c (record_line_ftype): New typedef.
4924 (check_line_address): New function.
4925 (dwarf_decode_lines_1): Call it.
4926
27e0867f
DE
49272015-05-27 Doug Evans <dje@google.com>
4928
4929 * NEWS: Mention "set debug dwarf-line".
4930 * dwarf2read.c (dwarf_line_debug): New static global.
4931 (add_include_dir): Add debug dwarf-line support.
4932 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
4933 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
4934
4dcabcc2
DE
49352015-05-27 Doug Evans <dje@google.com>
4936
4937 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
4938 All callers updated.
4939 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
4940 * cp-support.h (cp_lookup_nested_symbol): Update.
4941
b2e2f908
DE
49422015-05-27 Doug Evans <dje@google.com>
4943
4944 PR symtab/18258
4945 * block.c (block_find_symbol): New function.
4946 (block_find_non_opaque_type): Ditto.
4947 (block_find_non_opaque_type_preferred): Ditto.
4948 * block.h (block_symbol_matcher_ftype): New typedef.
4949 (block_find_symbol): Declare.
4950 (block_find_non_opaque_type): Ditto.
4951 (block_find_non_opaque_type_preferred): Ditto.
4952 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
4953 * psymtab.c (psym_lookup_symbol): Ditto.
4954 * symtab.c (basic_lookup_transparent_type_1): New function.
4955 (basic_lookup_transparent_type): Call it.
4956
f62fce35
YQ
49572015-05-27 Yao Qi <yao.qi@linaro.org>
4958
4959 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
4960 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
4961
5d98d3cd
YQ
49622015-05-27 Yao Qi <yao.qi@linaro.org>
4963
4964 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
4965 before operator &&.
4966 (aarch64_record_load_store): Likewise.
4967
82c7be31
DE
49682015-05-26 Doug Evans <dje@google.com>
4969
4970 PR c++/18141, c++/18417.
4971 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
4972 a typedef.
4973
b4f54984
DE
49742015-05-26 Doug Evans <dje@google.com>
4975
4976 * NEWS: Add entries for command renamings.
4977 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
4978 All uses updated.
4979 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
4980 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
4981 All uses updated.
4982 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
4983 All callers updated. Fix spelling of DWARF in help text.
4984 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
4985 All uses updated.
4986 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
4987 All uses updated.
4988 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
4989 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
4990 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
4991 All uses updated.
4992 (show_dwarf_always_disassemble): Renamed from
4993 show_dwarf2_always_disassemble. All callers updated.
4994 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
4995 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
4996 "set/show dwarf max-cache-age". Rename
4997 "set/show dwarf2 always-disassemble" to
4998 "set/show dwarf always-disassemble". Rename
4999 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
5000 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5001
4ea6efe9
DE
50022015-05-26 Doug Evans <dje@google.com>
5003
5004 PR python/18438
5005 * python/py-lazy-string.c (stpy_convert_to_value): Use
5006 gdbpy_gdb_memory_error not PyExc_MemoryError.
5007 (gdbpy_create_lazy_string_object): Ditto.
5008
b93fd21d
AB
50092015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5010
5011 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5012
55b40027
AB
50132015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * tui/tui-regs.c (tui_reg_prev_command): New function.
5016 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5017 * reggroups.c (reggroup_prev): New function.
5018 * reggroups.h (reggroup_prev): Add declaration. Update comment.
5019
99afc88b
OJ
50202015-05-26 Omair Javaid <omair.javaid@linaro.org>
5021 Yao Qi <yao.qi@linaro.org>
5022
5023 * aarch64-linux-tdep.c: Include linux-record.h and
5024 record-full.h.
5025 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5026 (aarch64_syscall): New enum.
5027 (aarch64_canonicalize_syscall): New function.
5028 (aarch64_all_but_pc_registers_record): New function.
5029 (aarch64_linux_syscall_record): New function.
5030 (aarch64_linux_init_abi): Install AArch64 process record
5031 handler. Update to handle syscall recording.
5032 * aarch64-tdep.c: Include record.h and record-full.h.
5033 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5034 (struct aarch64_mem_r): Define.
5035 (aarch64_record_result): New enum.
5036 (struct insn_decode_record): Define.
5037 (insn_decode_record): New typedef.
5038 (aarch64_record_data_proc_reg): New function.
5039 (aarch64_record_data_proc_imm): New function.
5040 (aarch64_record_branch_except_sys): New function.
5041 (aarch64_record_load_store): New function.
5042 (aarch64_record_data_proc_simd_fp): New function.
5043 (aarch64_record_asimd_load_store): New function.
5044 (aarch64_record_decode_insn_handler): New function.
5045 (deallocate_reg_mem): New function.
5046 (aarch64_process_record): New function.
5047 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5048 New field.
5049 (aarch64_process_record): New extern declaration.
5050 * configure.tgt: Add linux-record.o to gdb_target_obs.
5051 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5052
c16a3f52
OJ
50532015-05-26 Omair Javaid <omair.javaid@linaro.org>
5054
5055 * NEWS: Add a note on process record-replay support on aarch64*-linux*
5056 targets.
5057
c9cf6e20
MG
50582015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
5059
5060 * amd64-tdep.c: Replace in_function_epilogue_p with
5061 stack_frame_destroyed_p throughout.
5062 * arch-utils.c: Ditto.
5063 * arch-utils.h: Ditto.
5064 * arm-tdep.c: Ditto.
5065 * breakpoint.c: Ditto.
5066 * gdbarch.sh: Ditto.
5067 * hppa-tdep.c: Ditto.
5068 * i386-tdep.c: Ditto.
5069 * mips-tdep.c: Ditto.
5070 * nios2-tdep.c: Ditto.
5071 * rs6000-tdep.c: Ditto.
5072 * s390-linux-tdep.c: Ditto.
5073 * score-tdep.c: Ditto.
5074 * sh-tdep.c: Ditto.
5075 * sparc-tdep.c: Ditto.
5076 * sparc-tdep.h: Ditto.
5077 * sparc64-tdep.c: Ditto.
5078 * spu-tdep.c: Ditto.
5079 * tic6x-tdep.c: Ditto.
5080 * tilegx-tdep.c: Ditto.
5081 * xstormy16-tdep.c: Ditto.
5082 * gdbarch.c, gdbarch.h: Re-generated.
5083
a4ea0946
AB
50842015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5085
5086 * NEWS: Mention 'tui enable' and 'tui disable'.
5087 * tui/tui.c (tui_enable_command): New function.
5088 (tui_disable_command): New function.
5089 (_initialize_tui): New function.
5090
b75c69bb
AB
50912015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5092
5093 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5094
c1b009ee
AB
50952015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5098 buf_ptr is freed.
5099
880d1e40
AB
51002015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5103 into ...
5104 (tui_set_layout_for_display_command): ...here, before calling
5105 tui_set_layout. Only set the layout if gdb has not already
5106 entered the TUI_FAILURE state.
5107
a0145030
AB
51082015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5109
5110 * tui/tui-layout.c (layout_completer): New function.
5111 (_initialize_tui_layout): Set completer on layout command.
5112
7bd0be3a
AB
51132015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * tui/tui-layout.c (tui_set_layout): Remove
5116 tui_register_display_type parameter. Remove all checking of this
5117 parameter, and reindent function. Update header comment.
5118 (tui_set_layout_for_display_command): Rename to...
5119 (tui_set_layout_by_name): ...this, and don't check for different
5120 register class types, don't pass a tui_register_display_type to
5121 tui_set_layout. Update header comment.
5122 (layout_names): Remove register set specific names.
5123 * tui/tui-layout.h (tui_set_layout): Remove
5124 tui_register_display_type parameter.
5125 * tui/tui.c (tui_rl_change_windows): Don't pass a
5126 tui_register_display_type to tui_set_layout.
5127 (tui_rl_delete_other_windows): Likewise.
5128 (tui_enable): Likewise.
5129 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5130 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5131 (TUI_GENERAL_REGS_NAME): Remove.
5132 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5133 (TUI_SPECIAL_REGS_NAME): Remove.
5134 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5135 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5136 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5137 (enum tui_register_display_type): Remove.
5138 (struct tui_layout_def): Remove regs_display_type and
5139 float_regs_display_type fields.
5140 (struct tui_data_info): Remove regs_display_type field.
5141 (tui_layout_command): Use new name for
5142 tui_set_layout_for_display_command.
5143 * tui/tui-data.c (layout_def): Don't initialise removed fields.
5144 (tui_clear_win_detail): Don't initialise removed fields of
5145 win_info.
5146 * tui/tui-regs.c (tui_show_registers): Use new name for
5147 tui_set_layout_for_display_command.
5148 * tui/tui.h (tui_set_layout_for_display_command): Rename
5149 declaration to...
5150 (tui_set_layout_by_name): ...this.
5151 * printcmd.c (display_command): Remove tui related layout call,
5152 and reindent.
5153
0b6e5e10
JB
51542015-05-20 Joel Brobecker <brobecker@adacore.com>
5155
5156 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5157 (handle_inferior_event): New function.
5158
1da0522e
JB
51592015-05-20 Joel Brobecker <brobecker@adacore.com>
5160
5161 * ada-lang.c (to_fixed_array_type): Rename local variable
5162 typename into type_name.
5163
5fe75eec
JK
51642015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5165
5166 Fix ASAN crash for gdb.compile/compile.exp.
5167 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5168
a4063588
JK
51692015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5170
5171 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5172 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5173 * compile/compile-object-load.c (setup_sections, compile_object_load):
5174 Likewise.
5175 * compile/compile.c (compile_to_object): Likewise.
5176
37442ce1
DE
51772015-05-16 Doug Evans <xdje42@gmail.com>
5178
5179 * NEWS: Mention support for unbuffered Guile memory ports.
5180 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5181 (ioscm_lseek_address): Improve overflow calculation.
5182 (gdbscm_memory_port_fill_input): Add assert.
5183 (gdbscm_memory_port_write): Handle unbuffered ports.
5184 Handle large writes identical to Guile's fport_write.
5185 (gdbscm_memory_port_seek): Fix seeking past end check.
5186 (gdbscm_memory_port_close): Handle closing unbuffered port.
5187 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5188 (ioscm_init_memory_port): Handle unbuffered ports.
5189 (ioscm_reinit_memory_port): Ditto.
5190 (ioscm_init_memory_port): Update size calculation.
5191 (gdbscm_open_memory): Support zero sized ports.
5192
d976bace
JK
51932015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5194
5195 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5196 variable compiler warnings.
5197
4d18dfad
JK
51982015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5199
5200 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5201
36de76f9
JK
52022015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5203 Phil Muldoon <pmuldoon@redhat.com>
5204
5205 * NEWS (Changes since GDB 7.9): Add compile print.
5206 * compile/compile-c-support.c (add_code_header, add_code_footer)
5207 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5208 COMPILE_I_PRINT_VALUE_SCOPE.
5209 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5210 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5211 New.
5212 * compile/compile-object-load.c: Include block.h.
5213 (get_out_value_type): New function.
5214 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5215 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
5216 OUT_VALUE_TYPE.
5217 * compile/compile-object-load.h (struct compile_module): Add fields
5218 out_value_addr and out_value_type.
5219 * compile/compile-object-run.c: Include valprint.h and compile.h.
5220 (struct do_module_cleanup): Add fields out_value_addr and
5221 out_value_type.
5222 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5223 COMPILE_I_PRINT_VALUE_SCOPE.
5224 (compile_object_run): Propagate out_value_addr and out_value_type.
5225 Pass OUT_VALUE_ADDR.
5226 * compile/compile.c: Include valprint.h.
5227 (compile_print_value, compile_print_command): New functions.
5228 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5229 (_initialize_compile): Update compile code help text. Install
5230 compile_print_command.
5231 * compile/compile.h (compile_print_value): New prototype.
5232 * defs.h (enum compile_i_scope_types): Add
5233 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5234
83d3415e
JK
52352015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5238 Rely on its parameter count.
5239 (compile_object_load): Replace lookup_minimal_symbol_text by
5240 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
5241 return value.
5242 * compile/compile-object-load.h (struct compile_module): Replace
5243 func_addr by func_sym.
5244 * compile/compile-object-run.c: Include block.h.
5245 (compile_object_run): Reset module variable after it is freed. Use
5246 FUNC_SYM instead of FUNC_ADDR. Rely on it.
5247
3a9558c4
JK
52482015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5249
5250 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5251 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5252 (c_compute_program): Call generate_register_struct after typedefs.
5253 * compile/compile-loc2c.c (push, pushf_register_address)
5254 (pushf_register): Cast to GCC_UINTPTR.
5255 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
5256 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
5257 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5258 * compile/compile.c (_initialize_compile): Enable warnings for
5259 COMPILE_ARGS.
5260
5c65b58a
JK
52612015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5262
5263 * cli/cli-script.c (execute_control_command): Update
5264 eval_compile_command caller.
5265 * compile/compile-object-load.c (compile_object_load): Add parameters
5266 scope and scope_data. Set them.
5267 * compile/compile-object-load.h (struct compile_module): Add fields
5268 scope and scope_data.
5269 (compile_object_load): Add parameters scope and scope_data.
5270 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5271 scope and scope_data.
5272 (compile_object_run): Propagate the fields scope and scope_data.
5273 * compile/compile.c (compile_file_command, compile_code_command):
5274 Update eval_compile_command callers.
5275 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
5276 * compile/compile.h (eval_compile_command): Add parameter scope_data.
5277 * defs.h (struct command_line): Add field scope_data.
5278
1c88ceb1
JK
52792015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5280
5281 * printcmd.c (struct format_data): Move it to valprint.h.
5282 (print_command_parse_format, print_value): New functions from ...
5283 (print_command_1): ... here. Call them.
5284 * valprint.h (struct format_data): Move it here from printcmd.c.
5285 (print_command_parse_format, print_value): New declarations.
5286
0b738f27
JK
52872015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5288
5289 * compile/compile-object-load.c (compile_object_load): Add
5290 COMPILE_DEBUG message.
5291
aa715135
JG
52922015-05-15 Jerome Guitton <guitton@adacore.com>
5293
5294 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5295 index to get element instead of enum value.
5296 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5297 of index to compute length, but enum values to compute bounds.
5298 (ada_array_length): Use enum position of index instead of enum value.
5299 (pos_atr): Move position computation to...
5300 (ada_evaluate_subexp): Use enum values to compute bounds.
5301 * gdbtypes.c (discrete_position): ...this new function.
5302 * gdbtypes.h (discrete_position): New function declaration.
5303 * valprint.c (val_print_array_elements): Call discrete_position
5304 to handle array indexed by non-contiguous enumeration types.
5305
931e5bc3
JG
53062015-05-15 Jerome Guitton <guitton@adacore.com>
5307
5308 * ada-lang.c (find_parallel_type_by_descriptive_type):
5309 Go through typedefs during lookup.
5310 (to_fixed_array_type): Add support for non-bit packed arrays
5311 as variable-length fields.
5312
4e63d0ac
PA
53132015-05-15 Pedro Alves <palves@redhat.com>
5314 Simon Marchi <simon.marchi@ericsson.com>
5315
5316 * event-loop.c (gdb_notifier) <next_file_handler,
5317 next_poll_fds_index>: New fields.
5318 (get_next_file_handler_to_handle_and_advance): New function.
5319 (delete_file_handler): If deleting the next file handler to
5320 handle, advance to the next file handler.
5321 (gdb_wait_for_event): Bail early if no event fired. Poll file
5322 handlers in round-robin fashion.
5323
52e48b36
PA
53242015-05-15 Pedro Alves <palves@redhat.com>
5325
5326 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5327 'private' to 'priv'.
5328
2465e12e
PA
53292015-05-15 Pedro Alves <palves@redhat.com>
5330
5331 * nat/linux-nat.h: Include "target/waitstatus.h".
5332
13fa0398
YZ
53332015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
5334
5335 * python/py-unwind.c (struct reg_info): Move out of ...
5336 (struct cached_frame_info): ... this scope.
5337 (pending_frame_object_type, unwind_info_object_type): Make extern.
5338
9cd4d857
JB
53392015-05-15 Joel Brobecker <brobecker@adacore.com>
5340
5341 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5342 accumSize is never negative.
5343
e3555239
PP
53442015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5345
5346 * tui/tui-command.c: Remove include of <ctype.h>.
5347 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5348
08a76f8a
MG
53492015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5350
5351 * dwarf2read.c (die_needs_namespace): Return 1 for
5352 DW_TAG_inlined_subroutine.
5353
bd49952b
JK
53542015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5355
5356 * regcache.c (regcache_cpy_no_passthrough): New declaration.
5357 (regcache_cpy_no_passthrough): Make it static, add function comment.
5358 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5359 (regcache_cpy_no_passthrough): Remove declaration.
5360
46c03469
JK
53612015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5362
5363 * gdbthread.h (struct thread_control_state): Update comment for
5364 proceed_to_finish.
5365 * infcall.c (run_inferior_call): Update comment about
5366 proceed_to_finish.
5367 * infcmd.c (get_return_value): Update comment about stop_registers.
5368 (finish_forward): Update comment about proceed_to_finish.
5369 * infrun.c (stop_registers): Remove.
5370 (clear_proceed_status, normal_stop): Remove stop_registers handling.
5371 * infrun.h (stop_registers): Remove.
5372
8a6c4031
JK
53732015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5374
5375 * infcall.c (struct dummy_frame_context_saver)
5376 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5377 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5378 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5379 New.
5380 (call_function_by_hand_dummy): Move discard_cleanups of
5381 inf_status_cleanup before dummy_frame_push. Call
5382 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5383 Use dummy_frame_context_saver_get_regs instead of stop_registers.
5384 * infcall.h (struct dummy_frame_context_saver)
5385 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5386 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5387 New declarations.
5388 * infcmd.c: Include infcall.h.
5389 (get_return_value): Add parameter ctx_saver, use it instead of
5390 stop_registers.
5391 (print_return_value): Add parameter ctx_saver, pass it.
5392 (struct finish_command_continuation_args): Add field ctx_saver.
5393 (finish_command_continuation): Update print_return_value caller.
5394 (finish_command_continuation_free_arg): Free also ctx_saver.
5395 (finish_forward): Call dummy_frame_context_saver_setup.
5396 * inferior.h (struct dummy_frame_context_saver): New declaration.
5397 (get_return_value): Add parameter ctx_saver.
5398 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5399 get_return_value caller.
5400
10989690
JK
54012015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5402
5403 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5404 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5405 (remove_dummy_frame): Process dtor_list.
5406 (pop_dummy_frame): Process dtor_list.
5407 (register_dummy_frame_dtor): Maintain dtor_list.
5408 (find_dummy_frame_dtor): Handle dtor_list.
5409 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5410 Update comments.
5411
5e970501
JK
54122015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5413
5414 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5415 registers_valid.
5416 (compile_object_run): Update do_module_cleanup caller.
5417 * dummy-frame.c: Include infcall.h.
5418 (struct dummy_frame): Update dtor comment.
5419 (remove_dummy_frame): Call dtor.
5420 (pop_dummy_frame): Update dtor caller.
5421 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5422 registers_valid.
5423
1c4eb778
JB
54242015-05-13 Joel Brobecker <brobecker@adacore.com>
5425
5426 GDB 7.9.1 released.
5427
f5f85ab9
JB
54282015-05-13 Joel Brobecker <brobecker@adacore.com>
5429
5430 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5431 Xmethods now being able to specify a result type to that new
5432 sectioin.
5433
242cd84c
PP
54342015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5435
5436 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5437 first before resizing the window.
e3555239 5438 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
5439
54402015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
5441
5442 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5443 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5444 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5445 dummy_dtor parameter.
5446 * infcall.h: Include dummy-frame.h.
5447 (call_function_by_hand_dummy_dtor_ftype): Remove.
5448 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5449 parameter.
5450
ebfd00d2
PP
54512015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5452
5453 PR gdb/17820
5454 * top.c (history_size_setshow_var): Change type to signed.
5455 Initialize to -2. Update documentation.
5456 (set_readline_history_size): Define.
5457 (set_history_size_command): Use it. Remove logic for handling
5458 out-of-range sizes.
5459 (init_history): Use set_readline_history_size(). Test for a
5460 value of -2 instead of 0 when determining whether to set a
5461 default history size.
5462 (init_main): Decode the argument of the "size" command as a
5463 zuinteger_unlimited.
5464
83769d0b
DE
54652015-05-12 Doug Evans <dje@google.com>
5466
5467 * dwarf2read.c (struct file_entry): Tweak comments.
5468 (get_debug_line_section): Tweak comments.
5469
0d71eef5
DB
54702015-05-12 Don Breazeal <donb@codesourcery.com>
5471
5472 * NEWS: Announce fork support in the RSP and support
5473 for fork debugging in extended mode.
5474
cbb8991c
DB
54752015-05-12 Don Breazeal <donb@codesourcery.com>
5476
5477 * remote.c (remote_insert_fork_catchpoint): New function.
5478 (remote_remove_fork_catchpoint): New function.
5479 (remote_insert_vfork_catchpoint): New function.
5480 (remote_remove_vfork_catchpoint): New function.
5481 (pending_fork_parent_callback): New function.
5482 (remove_new_fork_child): New function.
5483 (remote_update_thread_list): Call remote_notif_get_pending_events
5484 and remove_new_fork_child.
5485 (extended_remote_kill): Kill fork child when killing the
5486 parent before follow_fork completes.
5487 (init_extended_remote_ops): Initialize target vector with
5488 new fork catchpoint functions.
5489
c269dbdb
DB
54902015-05-12 Don Breazeal <donb@codesourcery.com>
5491
5492 * remote.c (remove_vfork_event_p): New function.
5493 (remote_follow_fork): Add vfork event type to event checking.
5494 (remote_parse_stop_reply): New stop reasons "vfork" and
5495 "vforkdone" for RSP 'T' Stop Reply Packet.
5496
de0d863e
DB
54972015-05-12 Don Breazeal <donb@codesourcery.com>
5498
5499 * linux-nat.c (linux_nat_ptrace_options): New function.
5500 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5501 Call linux_nat_ptrace_options and use different argument to
5502 linux_enable_event_reporting.
5503 (_initialize_linux_nat): Delete call to
5504 linux_ptrace_set_additional_flags.
c8f6c93c 5505 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
5506 supported_ptrace_options.
5507 (additional_flags): Delete variable.
5508 (linux_check_ptrace_features): Use supported_ptrace_options.
5509 (linux_test_for_tracesysgood, linux_test_for_tracefork):
5510 Likewise, and remove additional_flags check.
5511 (linux_enable_event_reporting): Change 'attached' argument to
5512 'options'. Use supported_ptrace_options.
c8f6c93c 5513 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
5514 supported_ptrace_options.
5515 (linux_ptrace_set_additional_flags): Delete function.
5516 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5517 Delete function prototype.
5518 * remote.c (remote_fork_event_p): New function.
5519 (remote_detach_pid): New function.
5520 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5521 if doing detach-on-fork.
5522 (remote_follow_fork): New function.
5523 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5524 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5525 (init_extended_remote_ops): Initialize to_follow_fork.
5526
89245bc0
DB
55272015-05-12 Don Breazeal <donb@codesourcery.com>
5528
5529 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5530 from static to extern.
5531 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5532 * remote.c (anonymous enum): <PACKET_fork_event_feature,
5533 * PACKET_vfork_event_feature>: New enumeration constants.
5534 (remote_protocol_features): Add table entries for new packets.
5535 (remote_query_supported): Add new feature queries to qSupported
5536 packet.
5537
835205d0
GB
55382015-05-12 Gary Benson <gbenson@redhat.com>
5539
5540 * remote.c (remote_add_inferior): Call exec_file_locate_attach
5541 for fake PIDs as well as real ones.
5542 (remote_pid_to_exec_file): Send empty annex if PID is fake.
5543
4c082a81
SC
55442015-05-09 Siva Chandra Reddy <sivachandra@google.com>
5545
5546 * NEWS (Python Scripting): Mention the new gdb.Value methods.
5547 * python/py-value.c (valpy_reference_value): New function.
5548 (valpy_const_value): Likewise.
5549 (value_object_methods): Add new methods.
5550 * value.c (make_cv_value): New function.
5551 * value.h (make_cv_value): Declare.
5552
afa6c9ab
SL
55532015-05-08 Yao Qi <yao@codesourcery.com>
5554 Sandra Loosemore <sandra@codesourcery.com>
5555
5556 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5557 to 'lh->include_dirs' before accessing to it.
5558 (psymtab_include_file_name): Likewise.
5559 (dwarf_decode_lines_1): Likewise.
5560 (dwarf_decode_lines): Likewise.
5561 (file_file_name): Likewise.
5562
35d54293
SL
55632015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5564
5565 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5566 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5567 (nios2_linux_rt_sigreturn_init): Adjust base address of
5568 register save area.
5569
b73c49b7
SL
55702015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5571
5572 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5573 "trap 31" as the breakpoint instruction on all targets.
5574
dd9f02a0
JK
55752015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5576
5577 * infcmd.c (print_return_value): Remove unused declaration.
5578
6ad395a7
JB
55792015-05-08 Joel Brobecker <brobecker@adacore.com>
5580
5581 * dwarf2read.c (attr_to_dynamic_prop)
5582 <DW_AT_data_member_location>: Use read_type_die isntead of
5583 get_die_type.
5584
8344af1e
JB
55852015-05-08 Joel Brobecker <brobecker@adacore.com>
5586
5587 * ada-lang.c (ada_convert_actual): Add handling of formals
5588 passed inside an aligner type.
5589
80b0912b
JB
55902015-05-08 Joel Brobecker <brobecker@adacore.com>
5591
5592 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5593
df2eb078
SC
55942015-05-08 Siva Chandra Reddy <sivachandra@google.com>
5595
5596 PR python/18291
5597 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5598 Print xmethod matcher status.
5599
2492f0d0
AA
56002015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
5601
5602 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5603 register in the regcache when treating the PSWM register, and vice
5604 versa.
5605
1c56a84d
GB
56062015-05-07 Gary Benson <gbenson@redhat.com>
5607
5608 * linux-thread-db.c (struct thread_db_info)
5609 <td_ta_map_id2thr_p>: Remove field.
5610 (try_thread_db_load_1): Remove initialization for the above.
5611
74850322
GB
56122015-05-07 Gary Benson <gbenson@redhat.com>
5613
5614 * linux-thread-db.c (struct thread_db_info)
5615 <td_thr_validate_p>: Remove field.
5616 (try_thread_db_load_1): Remove initialization for the above.
5617
e26efa40
JK
56182015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5619
5620 * compile/compile-object-load.c (compile_object_load): Support
5621 mst_text_gnu_ifunc.
5622
851c9091
JK
56232015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5624
5625 * compile/compile.c (compile_to_object): Make the cmd_string parameter
5626 const. Use new variables for the const compatibility.
5627 (eval_compile_command): Make the cmd_string parameter const.
5628 * compile/compile.h (eval_compile_command): Make the cmd_string
5629 parameter const.
5630
f218b647
JB
56312015-05-06 Joel Brobecker <brobecker@adacore.com>
5632
5633 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
5634 comment.
5635 * top.c (deprecated_init_ui_hook): Delete.
5636 (gdb_init): Remove handling of deprecated_init_ui_hook.
5637 * interps.c (clear_interpreter_hooks): Remove handling of
5638 deprecated_init_ui_hook.
5639 * main.c (captured_main): Update comment.
5640
b30a0bc3
JB
56412015-05-06 Joel Brobecker <brobecker@adacore.com>
5642
5643 * solib.c (_initialize_solib): Add "info dll" alias creation.
5644 * windows-nat.c (set_windows_aliases): Delete.
5645 (_initialize_windows_nat): Remove deprecated_init_ui_hook
5646 assignment.
5647 * NEWS: Add news entry about "info dll" now being available
5648 on all platforms.
5649
7c512744
JB
56502015-05-05 Joel Brobecker <brobecker@adacore.com>
5651
5652 * ada-lang.c (value_assign_to_component): Reformat and improve
5653 documentation. Remove all trailing spaces.
5654
0fa7fe50
JB
56552015-05-05 Joel Brobecker <brobecker@adacore.com>
5656
5657 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5658 Stop counting inlined frames as soon as an out-of-line function
5659 is found.
5660
3ea89b92
PMR
56612014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
5662
5663 * dwarf2read.c (inherit_abstract_dies): Skip
5664 DW_TAG_GNU_call_site dies while inheriting children of an
5665 abstract DIE into a scope.
5666 (read_lexical_block_scope): Inherit abstract DIE's for
5667 lexical scopes.
5668
2478d075
JB
56692015-05-05 Joel Brobecker <brobecker@adacore.com>
5670
5671 * ada-valprint.c (val_print_packed_array_elements): Delete
5672 variable "len". Add a type-length check when comparing two
5673 consecutive elements of the array. Use the element's actual
5674 length in call to value_contents_eq.
5675 * ada-lang.c (ada_value_primitive_packed_val): Always return
5676 a value whose type has been resolved.
5677
fc958966
JB
56782015-05-05 Joel Brobecker <brobecker@adacore.com>
5679
5680 * ada-lang.c (ada_value_primitive_packed_val): Recompute
5681 BIT_SIZE and LEN if the size of the resolved type is smaller
5682 than BIT_SIZE * HOST_CHAR_BIT.
5683
ca34b84f
JB
56842015-05-05 Joel Brobecker <brobecker@adacore.com>
5685
5686 * ada-lang.c (ada_value_primitive_packed_val): Use a more
5687 correct address in call to value_at. Adjust call to
5688 value_address accordingly.
5689
62c67f3c
JB
56902015-05-05 Joel Brobecker <brobecker@adacore.com>
5691
5692 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5693 to print it.
5694
c3345124
JB
56952015-05-05 Joel Brobecker <brobecker@adacore.com>
5696
5697 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
5698 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
5699 pinfo->valaddr.
5700 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
5701 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
5702 (resolve_dynamic_type_internal): Set pinfo.valaddr.
5703 Add handling of addr_stack->valaddr.
5704 (resolve_dynamic_type): Add "valaddr" parameter.
5705 Set pinfo.valaddr field.
5706 * ada-lang.c (ada_discrete_type_high_bound): Update call to
5707 resolve_dynamic_type.
5708 (ada_discrete_type_low_bound): Likewise.
5709 * findvar.c (default_read_var_value): Likewise.
5710 * value.c (value_from_contents_and_address): Likewise.
5711
75ea5859
JB
57122015-05-05 Joel Brobecker <brobecker@adacore.com>
5713
5714 * gdbtypes.c (resolve_dynamic_array): Use
5715 create_array_type_with_stride instead of create_array_type.
5716
0952813b
DD
57172015-04-30 DJ Delorie <dj@redhat.com>
5718
5719 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
5720 rl78_decode_opcode
5721
2ce1cdbf
DE
57222015-04-29 Doug Evans <dje@google.com>
5723
5724 PR python/18285
5725 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
5726 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
5727 EVAL_AVOID_SIDE_EFFECTS for xmethods.
5728 * extension-priv.h (struct extension_language_ops)
5729 <get_xmethod_result_type>: New member.
5730 * extension.c (get_xmethod_result_type): New function.
5731 * extension.h (get_xmethod_result_type): Declare.
5732 * python/py-xmethods.c (get_result_type_method_name): New static
5733 global.
5734 (py_get_result_type_method_name): Ditto.
5735 (gdbpy_get_xmethod_result_type): New function.
5736 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
5737 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
5738 * python/python.c (python_extension_ops): Add
5739 gdbpy_get_xmethod_result_type.
5740 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
5741 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
5742 xmethods.
5743 (value_x_unop): Ditto.
5744 * value.c (result_type_of_xmethod): New function.
5745 * value.h (result_type_of_xmethod): Declare.
5746
998d2a3e
GB
57472015-04-29 Gary Benson <gbenson@redhat.com>
5748
5749 * solib.c (solib_find_1): Allow fd argument to be NULL.
5750 (exec_file_find): Update comment.
5751 (solib_find): Likewise.
5752 * exec.c (exec_file_locate_attach): Use NULL as fd
5753 argument to exec_file_find to avoid having to close
5754 the opened file.
5755 * infrun.c (follow_exec): Likewise.
5756
34f5f757
DE
57572015-04-28 Doug Evans <dje@google.com>
5758
5759 PR python/18299
5760 * python/lib/gdb/printing.py (register_pretty_printer): Handle
5761 name or __name__ attributes. Handle gdb module as first argument.
5762
69b4374a
DE
57632015-04-28 Doug Evans <dje@google.com>
5764
5765 PR python/18089
5766 * python/py-prettyprint.c (print_children): Verify result of children
5767 iterator. Provide better error message.
5768 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
5769 * python/python.c (gdbpy_print_python_errors_p): New function.
5770
5e7cf078
DE
57712015-04-28 Doug Evans <dje@google.com>
5772
5773 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
5774
59fb7612
SS
57752015-04-28 Sasha Smundak <asmundak@google.com>
5776
5777 * NEWS: Mention gdb.Type.optimized_out method.
5778 * python/py-type.c (typy_optimized_out): New function.
5779
cea6e4f1
JB
57802015-04-28 John Baldwin <jhb@FreeBSD.org>
5781
5782 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5783
24b73f8e
PP
57842015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5785
5786 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
5787 (initialize_utils): Move call of init_page_info() to ...
5788 * top.c (gdb_init): ... here.
5789
a88d0bb3
PP
57902015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5791
5792 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
5793 (tui_sigwinch_handler): Still update our idea of
5794 the terminal's width and height even when TUI is not active.
5795
d6e5e7f7
PP
57962015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5797
5798 * utils.h (set_screen_width_and_height): Declare.
5799 * utils.c (set_screen_width_and_height): Define.
5800 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
5801
ff862be4
GB
58022015-04-28 Gary Benson <gbenson@redhat.com>
5803
5804 * infrun.c (solist.h): New include.
5805 (follow_exec): Use exec_file_find to prefix execd_pathname
5806 with gdb_sysroot.
5807
2eb639cb
PP
58082015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5809
5810 * tui/tui-source.c (tui_set_source_content): Avoid calling
5811 strcpy() when offset is 0.
5812
97206799
PP
58132015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5814
5815 PR gdb/18155
5816 * tui/tui-data.c (tui_free_window): Don't free the locator
5817 window when passed an SRC_WIN or a DISASSEM_WIN.
5818
63ed8182
PP
58192015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5820
5821 * tui/tui-data.h (struct tui_win_element): Forward-declare.
5822 (tui_win_content): Move declaration.
5823 (struct tui_gen_win_info): Give 'content' field the
5824 type tui_win_content.
5825 * tui/tui-data.c (init_content_element): Remove redundant and
5826 erroneous casts.
5827 (tui_add_content_elements): Remove erroneous cast.
5828 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
5829 casts.
5830 (tui_get_begin_asm_address): Likewise.
5831 * tui/tui-regs.c (tui_show_registers): Likewise.
5832 (tui_show_register_group): Likewise.
5833 (tui_display_registers_from): Likewise.
5834 (tui_check_register_values): Likewise.
5835 * tui/tui-source.c (tui_set_source_content): Likewise.
5836 (tui_set_source_content_nil): Likewise.
5837 (tui_source_is_displayed): Likewise.
5838 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5839 (tui_set_locator_fullname): Likewise.
5840 (tui_set_locator_info): Likewise.
5841 (tui_show_frame_info): Likewise.
5842 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
5843 (tui_show_source_line): Likewise.
5844 (tui_horizontal_source_scroll): Likewise.
5845 (tui_update_breakpoint_info): Likewise.
5846 (tui_set_exec_info_content): Likewise.
5847 (tui_show_exec_info_content): Likewise.
5848 (tui_alloc_source_buffer): Likewise.
5849 (tui_line_is_displayed): Likewise.
5850 (tui_addr_is_displayed): Likewise.
5851
d2b41ca0
JB
58522015-04-27 John Baldwin <jhb@FreeBSD.org>
5853
5854 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
5855 event if PL_FLAG_EXEC is set.
5856 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
5857 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
5858 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
5859 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
5860 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
5861
e58e05d6
JB
58622015-04-27 John Baldwin <jhb@FreeBSD.org>
5863
5864 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
5865 [TDP_RFPPWAIT] New variable fbsd_pending_children.
5866 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
5867 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
5868 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
5869 [PT_LWPINFO] (fbsd_wait): New function.
5870 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
5871 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
5872 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
5873 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
5874 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
5875 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
5876 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
5877 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
5878 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
5879 "fbsd_wait".
5880 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
5881 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
5882 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
5883 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
5884 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
5885 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
5886 Set "to_post_attach" to "fbsd_post_attach".
5887
8f60fe01
JB
58882015-04-27 John Baldwin <jhb@FreeBSD.org>
5889
5890 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
5891 (fbsd_find_memory_regions): Mark static.
5892 (fbsd_nat_add_target): New function.
5893 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
5894 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
5895 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
5896 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
5897 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
5898 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
5899
5fbae7d1
GB
59002015-04-27 Gary Benson <gbenson@redhat.com>
5901
5902 * objfiles.c (allocate_objfile): Do not attempt to expand name
5903 if name is a "target:" filename.
5904 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
5905 to load auto-load scripts for objfiles with "target:" filenames.
5906
417c80f9
AA
59072015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5908
5909 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
5910 (enum s390_vector_abi_kind): New enum.
5911 (struct gdbarch_tdep)<vector_abi>: New field.
5912 (s390_effective_inner_type): Add parameter min_size. Stop
5913 unwrapping if the inner type is smaller than min_size.
5914 (s390_function_arg_float): Adjust call to
5915 s390_effective_inner_type.
5916 (s390_function_arg_vector): New function.
5917 (s390_function_arg_integer): Adjust comment.
5918 (struct s390_arg_state)<vr>: New field.
5919 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
5920 arguments according to vector ABI when appropriate.
5921 (s390_push_dummy_call): Initialize the argument state's field
5922 'vr'. Adjust calls to s390_handle_arg.
5923 (s390_register_return_value): Handle vector return values.
5924 (s390_return_value): Apply the "register" return value convention
5925 to a vector when appropriate.
5926 (s390_gdbarch_init): Initialize tdep->vector_abi.
5927 * NEWS: Announce S390 vector ABI support.
5928
4e65a17e
AA
59292015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5930
5931 * s390-linux-tdep.c (s390_return_value_convention): Remove
5932 function. Inline its logic...
5933 (s390_return_value): ...here. Instead, move the handling of the
5934 "register" return value convention...
5935 (s390_register_return_value): ...here. New function.
5936
80f75320
AA
59372015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5938
5939 * s390-linux-tdep.c
5940 (is_float_singleton): Remove function. Move the "singleton" part
5941 of the logic...
5942 (s390_effective_inner_type): ...here. New function.
5943 (is_float_like): Remove function. Inline its logic...
5944 (s390_function_arg_float): ...here.
5945 (is_pointer_like, is_integer_like, is_struct_like): Remove
5946 functions. Inline their logic...
5947 (s390_function_arg_integer): ...here.
5948 (s390_function_arg_pass_by_reference): Remove function.
5949 (extend_simple_arg): Remove function.
5950 (alignment_of): Remove function.
5951 (struct s390_arg_state): New structure.
5952 (s390_handle_arg): New function.
5953 (s390_push_dummy_call): Move parameter placement logic to the new
5954 function s390_handle_arg. Call it for calculating the stack area
5955 sizes first, and again for actually writing the parameters.
5956
6dbc9c04
AA
59572015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5958
5959 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
5960 false if the argument is zero.
5961
9e195661
PMR
59622015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
5963
5964 * ada-lang.c (template_to_static_fixed_type): Return input type
5965 when it is already fixed. Cache the input type itself when not
5966 creating a static fixed copy. Make it explicit that we never
5967 molestate the input type.
5968 * gdbtypes.c (resolve_dynamic_struct): Reset the
5969 TYPE_TARGET_TYPE field for resolved copies.
5970
460efde1
JB
59712015-04-27 Joel Brobecker <brobecker@adacore.com>
5972
5973 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
5974 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
5975 (template_to_static_fixed_type): Call ada_check_typedef only
5976 when necessary.
5977
6faec16b
AB
59782015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5979
5980 * cli/cli-dump.c (srec_dump_command): Add internationalization
5981 mark ups.
5982 (ihex_dump_command): Likewise.
5983 (tekhex_dump_command): Likewise.
5984 (binary_dump_command): Likewise.
5985 (binary_append_command): Likewise.
5986
cf75d6c3
AB
59872015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5988
5989 * cli/cli-dump.c (verilog_cmdlist): New variable.
5990 (dump_verilog_memory): New function.
5991 (dump_verilog_value): New function.
5992 (verilog_dump_command): New function.
5993 (_initialize_cli_dump): Add new commands to support verilog dump
5994 format.
5995 * NEWS: Add entry for "dump verilog".
5996
8cd00c59
PMR
59972015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
5998
5999 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6000 descriptive type when there is none.
6001
8900d71e
PP
60022015-04-23 Patrick Palka <patrick@parcs.ath.cx>
6003
6004 * tui/tui-win.c (tui_async_resize_screen): Call
6005 rl_resize_terminal().
6006
f16eab5f
JT
60072015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6008
6009 * windows-nat.c (handle_output_debug_string): Don't change
6010 current_event.dwThreadId.
6011 (get_windows_debug_event): Use thread_id, rather than relying on
6012 current_event.dwThreadId being changed.
6013
68ffc902
JT
60142015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6015
6016 * windows-nat.c (windows_continue): Report an error if
6017 ContinueDebugEvent() fails.
6018
23942819
JT
60192015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6020
6021 * windows-nat.c (windows_resume): Fix misspelling in debug output.
6022
e6ad66bd
JT
60232015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6024
6025 * windows-nat.c (get_windows_debug_event): Replace retval with
6026 thread_id throughout. Update stale comment.
6027
776704b9
JT
60282015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6029
6030 * windows-nat.c (get_windows_debug_event): Don't use ternary
6031 conditional operator.
6032
8aae4344
PM
60332015-04-21 Pierre Muller <muller@sourceware.org>
6034
6035 PR pascal/17815
6036 p-exp.y (yylex): Reorganize code to return the matched pattern
6037 for a field of this.
6038
819843c7
GB
60392015-04-21 Gary Benson <gbenson@redhat.com>
6040
6041 * common/fileio.h (fileio_to_host_openflags): New declaration.
6042 * common/fileio.c (fcntl.h): New include.
6043 (fileio_to_host_openflags): New function, factored out from...
6044 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6045 Single use updated.
6046
0bca7f99
KB
60472015-04-21 Kevin Buettner <kevinb@redhat.com>
6048
6049 * rl78-tdep.c (RL78_SP_ADDR): Define.
6050 (opc_reg_to_gdb_regnum): New static function.
6051 (rl78_analyze_prologue): Recognize instructions forming slightly
6052 more interesting prologues.
6053
e771e4be
PMR
60542015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6055
6056 Revert:
6057 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6058 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6059 TYPE_CODE_REF types so that they are not considered as dynamic
6060 depending on the referenced type.
6061 (resolve_dynamic_type_internal): Likewise.
6062
ee715b5a
PMR
60632015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6064
6065 Revert:
6066 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6067 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6068 "top_level" parameter.
6069 (resolve_dynamic_type_internal): Remove the unused "top_level"
6070 parameter. Update call to is_dynamic_type_internal.
6071 (is_dynamic_type): Update call to is_dynamic_type_internal.
6072 (resolve_dynamic_range): Update call to
6073 resolve_dynamic_type_internal.
6074 (resolve_dynamic_union): Likewise.
6075 (resolve_dynamic_struct): Likewise.
6076 (resolve_dynamic_type): Likewise.
6077
e31d7699
GKB
60782015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
6079
6080 * breakpoint.c (update_dprintf_command_list): Remove duplicated
6081 xmalloc.
6082
d214e5e7
TS
60832015-04-20 Thomas Schwinge <thomas@codesourcery.com>
6084
110f9112
TS
6085 * reply_mig_hack.awk: Robustify parsing.
6086
d214e5e7
TS
6087 * reply_mig_hack.awk: Don't bother to declare an intermediate
6088 function pointer variable.
6089
8f61baf8
DE
60902015-04-17 Doug Evans <dje@google.com>
6091
6092 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6093 to "exec_displacement" to avoid confusion with inner use of the name.
6094
dbbf180a
YQ
60952015-04-17 Pedro Alves <palves@redhat.com>
6096
6097 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6098 if HW point of TYPE isn't supported.
6099
059790a0
YQ
61002015-04-17 Yao Qi <yao.qi@linaro.org>
6101 Pedro Alves <palves@redhat.com>
6102
6103 * target.h (target_can_use_hardware_watchpoint): Update comments.
6104 Remove trailing ";".
6105
1b6e6f5c
GB
61062015-04-17 Gary Benson <gbenson@redhat.com>
6107
6108 * remote.c (remote_add_inferior): New argument try_open_exec.
6109 If nonzero, attempt to open the inferior's executable file as
6110 the main executable if no main executable is open already.
6111 All callers updated.
6112 * NEWS: Mention that GDB now supports automatic location and
6113 retrieval of executable + files from remote targets.
6114
c78fa86a
GB
61152015-04-17 Gary Benson <gbenson@redhat.com>
6116
6117 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6118 * remote.c (PACKET_qXfer_exec_file): Likewise.
6119 (remote_protocol_features): Register the
6120 "qXfer:exec-file:read" feature.
6121 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6122 (remote_pid_to_exec_file): New function.
6123 (init_remote_ops): Initialize to_pid_to_exec_file.
6124 (_initialize_remote): Register new "set/show remote
6125 pid-to-exec-file-packet" command.
6126 * NEWS: Announce new qXfer:exec-file:read packet.
6127
e0d86d2c
GB
61282015-04-17 Gary Benson <gbenson@redhat.com>
6129
6130 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6131 New declaration.
6132 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6133 New function, factored out from...
6134 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6135
a9a5a3d1
GB
61362015-04-17 Gary Benson <gbenson@redhat.com>
6137
6138 * exec.c (solist.h): New include.
6139 (exec_file_locate_attach): Prefix absolute executable
6140 paths with gdb_sysroot if set.
6141 * NEWS: Mention that executable paths may be prepended
6142 with sysroot.
6143
af1900b0
GB
61442015-04-17 Gary Benson <gbenson@redhat.com>
6145
6146 * solist.h (exec_file_find): New declaration.
6147 * solib.c (solib_find_1): New function, factored out from...
6148 (solib_find): ...here.
6149 (exec_file_find): New function.
6150
a10de604
GB
61512015-04-17 Gary Benson <gbenson@redhat.com>
6152
6153 * gdbcore.h (exec_file_locate_attach): New declaration.
6154 * exec.c (exec_file_locate_attach): New function, factored
6155 out from...
6156 * infcmd.c (attach_command_post_wait): ...here.
6157
92209ddf
MF
61582015-04-17 Mike Frysinger <vapier@gentoo.org>
6159
6160 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6161
8550d3b3
YQ
61622015-04-16 Yao Qi <yao.qi@linaro.org>
6163
6164 * infrun.c (maybe_software_singlestep): Declare.
6165 (displaced_step_fixup): Call maybe_software_singlestep.
6166
30b3dd9d
DE
61672015-04-15 Doug Evans <dje@google.com>
6168
6169 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6170
61d96d7e
DE
61712015-04-15 Doug Evans <dje@google.com>
6172
6173 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6174
40d2f8d6
SM
61752015-04-15 Simon Marchi <simon.marchi@ericsson.com>
6176
6177 * python/lib/gdb/command/unwinders.py: Add parentheses.
6178
6bbbba9b
YQ
61792015-04-15 Yao Qi <yao.qi@linaro.org>
6180
6181 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6182
2bb2dcab
YQ
61832015-04-15 Yao Qi <yao.qi@linaro.org>
6184
6185 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6186
41f071ef
YQ
61872015-04-15 Yao Qi <yao.qi@linaro.org>
6188
6189 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6190 dsc->insn_size instead of 4.
6191
326a5c7e
GB
61922015-04-14 Gary Benson <gbenson@redhat.com>
6193
6194 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6195 * minidebug.c (lzma_stat): Likewise.
6196 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6197 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6198
dd177e81
SS
61992015-04-13 Stan Shebs <stanshebs@google.com>
6200
6201 * MAINTAINERS: Update my email address.
6202
97de3545
JB
62032015-04-13 John Baldwin <jhb@FreeBSD.org>
6204
6205 * amd64-tdep.c (amd64_target_description): New function.
6206 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6207 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6208 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6209 x86 extended save area.
6210 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6211 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6212 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6213 (_initialize_amd64fbsd_nat): Set "to_read_description" to
6214 "amd64fbsd_read_description".
6215 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6216 (amd64fbsd_supply_xstateregset): New function.
6217 (amd64fbsd_collect_xstateregset): New function.
6218 Add "amd64fbsd_xstateregset".
6219 (amd64fbsd_iterate_over_regset_sections): New function.
6220 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6221 "I386_FBSD_XSAVE_XCR0_OFFSET".
6222 Add "iterate_over_regset_sections" gdbarch method.
6223 Add "core_read_description" gdbarch method.
6224 * i386-tdep.c (i386_target_description): New function.
6225 * i386-tdep.h: Export i386_target_description and tdesc_i386.
6226 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6227 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6228 x86 extended save area.
6229 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6230 * i386bsd-nat.h: Export i386bsd_xsave_len.
6231 * i386fbsd-nat.c (i386fbsd_read_description): New function.
6232 (_initialize_i386fbsd_nat): Set "to_read_description" to
6233 "i386fbsd_read_description".
6234 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6235 (i386fbsd_core_read_description): New function.
6236 (i386fbsd_supply_xstateregset): New function.
6237 (i386fbsd_collect_xstateregset): New function.
6238 Add "i386fbsd_xstateregset".
6239 (i386fbsd_iterate_over_regset_sections): New function.
6240 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6241 "I386_FBSD_XSAVE_XCR0_OFFSET".
6242 Add "iterate_over_regset_sections" gdbarch method.
6243 Add "core_read_description" gdbarch method.
6244 * i386fbsd-tdep.h: New file.
6245
4f45d445
JK
62462015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6247
6248 * NEWS (Changes since GDB 7.9): Add removed -xdb.
6249 * breakpoint.c (command_line_is_silent): Remove xdb_commands
6250 conditional.
6251 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6252 and lb.
6253 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6254 va.
6255 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6256 conditional.
6257 * defs.h (xdb_commands): Remove declaration.
6258 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6259 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6260 * infcmd.c (run_no_args_command, go_command): Remove.
6261 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6262 * infrun.c (xdb_handle_command): Remove.
6263 (_initialize_infrun): Remove xdb_commands for lz and z.
6264 * main.c (xdb_commands): Remove variable.
6265 (captured_main): Remove "xdb" from long_options.
6266 (print_gdb_help): Remove --xdb from help.
6267 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6268 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6269 * stack.c (backtrace_full_command, args_plus_locals_info)
6270 (current_frame_command): Remove.
6271 (_initialize_stack): Remove xdb_commands for t, T and l.
6272 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6273 * thread.c (_initialize_thread): Remove xdb_commands condition.
6274 * tui/tui-layout.c (tui_toggle_layout_command)
6275 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6276 (_initialize_tui_layout): Remove xdb_commands for td and ts.
6277 * tui/tui-regs.c (tui_scroll_regs_forward_command)
6278 (tui_scroll_regs_backward_command): Remove.
6279 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6280 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6281 (_initialize_tui_win): Remove xdb_commands for U and w.
6282 * utils.c (pagination_on_command, pagination_off_command): Remove.
6283 (initialize_utils): Remove xdb_commands for am and sm.
6284
cb71640d
PA
62852015-04-10 Pedro Alves <palves@redhat.com>
6286
6287 * infrun.c (displaced_step_fixup): Switch to the event ptid
6288 earlier. If the thread stopped for a watchpoint and the
6289 target/arch has non-continuable watchpoints, cancel the displaced
6290 step.
6291 (resume): Don't start a displaced step if in-line step-over info
6292 is valid.
6293
8f572e5c
PA
62942015-04-10 Pedro Alves <palves@redhat.com>
6295
6296 * infrun.c (displaced_step_in_progress): New function.
6297 (do_target_resume): Advise target to report all signals if
6298 displaced stepping.
6299
8d707a12
PA
63002015-04-10 Pedro Alves <palves@redhat.com>
6301
6302 PR gdb/18216
6303 * infrun.c (process_event_stop_test): Don't assume a step-resume
6304 is set if tp->stepped_breakpoint is true.
6305
ef713951
YQ
63062015-04-10 Yao Qi <yao.qi@linaro.org>
6307
6308 * arm-tdep.c (install_alu_reg): Update comment.
6309 (thumb_copy_alu_reg): Remove local variable rn. Update
6310 debugging message. Use r2 instead of r1 in the modified
6311 instruction.
6312
906d60cf
PA
63132015-04-10 Pedro Alves <palves@redhat.com>
6314
6315 PR gdb/13858
6316 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6317 linux_displaced_step_location as gdbarch_displaced_step_location
6318 hook.
6319 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6320 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6321 * linux-tdep.c (linux_displaced_step_location): New function,
6322 based on ppc_linux_displaced_step_location.
6323 * linux-tdep.h (linux_displaced_step_location): New declaration.
6324 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6325 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6326 Delete.
6327 (ppc_linux_init_abi): Install linux_displaced_step_location as
6328 gdbarch_displaced_step_location hook, even without Cell/B.E..
6329 (_initialize_ppc_linux_tdep): Don't install
6330 ppc_linux_inferior_created as inferior_created observer.
6331 * s390-linux-tdep.c (s390_gdbarch_init): Install
6332 linux_displaced_step_location as gdbarch_displaced_step_location
6333 hook.
6334
7823a941
GB
63352015-04-09 Gary Benson <gbenson@redhat.com>
6336
6337 * common/common-remote-fileio.h: Rename to...
6338 * common/fileio.h: ...this. Update all references.
6339 (remote_fileio_to_fio_error): Rename to...
6340 (host_to_fileio_error): ...this.
6341 (remote_fileio_to_be): Rename to...
6342 (host_to_bigendian): ...this. Update all callers.
6343 (remote_fileio_to_fio_uint): Rename to...
6344 (host_to_fileio_uint): ...this. Update all callers.
6345 (remote_fileio_to_fio_time): Rename to...
6346 (host_to_fileio_time): ...this. Update all callers.
6347 (remote_fileio_to_fio_stat): Rename to...
6348 (host_to_fileio_stat): ...this.
6349 Update all references.
6350 * common/common-remote-fileio.c: Rename to...
6351 * common/fileio.c: ...this. Update all references.
6352 (remote_fileio_to_fio_error): Rename to...
6353 (host_to_fileio_error): ...this. Update all callers.
6354 (remote_fileio_mode_to_target): Rename to...
6355 (fileio_mode_pack): ...this. Update all callers.
6356 (remote_fileio_to_fio_mode): Rename to...
6357 (host_to_fileio_mode): ...this. Update all callers.
6358 (remote_fileio_to_fio_ulong): Rename to...
6359 (host_to_fileio_ulong): ...this. Update all callers.
6360 (remote_fileio_to_fio_stat): Rename to...
6361 (host_to_fileio_stat): ...this. Update all callers.
6362
f2983cc3
AW
63632015-04-09 Andy Wingo <wingo@igalia.com>
6364
6365 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6366 (frame_functions): Bind gdbscm_frame_read_register to
6367 frame-read-register.
6368 * guile/lib/gdb.scm (frame-read-register): Export.
6369
b88bb450
GB
63702015-04-09 Gary Benson <gbenson@redhat.com>
6371
6372 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6373 New declaration.
6374 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6375 New function, factored out the named functions below.
6376 * inf-child.c (gdb/fileio.h): Remove include.
6377 (common-remote-fileio.h): New include.
6378 (inf_child_errno_to_fileio_error): Remove function. Update
6379 all callers to use remote_fileio_to_fio_error.
6380 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6381
2f2680f3
AW
63822015-04-09 Andy Wingo <wingo@igalia.com>
6383
6384 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6385
5a2d4533
L
63862015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6387
6388 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6389 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6390 * configure: Regenerated.
6391
421693b0
PA
63922015-04-09 Pedro Alves <palves@redhat.com>
6393
6394 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6395 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6396 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6397 * gnulib/import/Makefile.am: Update.
6398 * gnulib/import/Makefile.in: Update.
6399 * gnulib/import/m4/gnulib-cache.m4: Update.
6400 * gnulib/import/m4/gnulib-comp.m4: Update.
6401 * gnulib/import/m4/strtok_r.m4: New file.
6402 * gnulib/import/strtok_r.c: New file.
6403
f543dc83
PA
64042015-04-09 Pedro Alves <palves@redhat.com>
6405
6406 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6407 "called too early to check prototype".
6408
6d62641c
SDJ
64092015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6410
6411 PR python/16699
6412 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6413 use a caching mechanism. Adjust comments and code to reflect
6414 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6415 (cmdpy_completer_handle_brkchars): Adjust call to
6416 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6417 (cmdpy_completer): Likewise.
6418
85558555
YQ
64192015-04-08 Yao Qi <yao.qi@linaro.org>
6420
6421 * spu-tdep.c (spu_gdbarch_init): Don't call
6422 set_gdbarch_cannot_step_breakpoint.
6423
d249a14a
SDJ
64242015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6425
6426 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6427
8a06aea7
PA
64282015-04-07 Pedro Alves <palves@redhat.com>
6429
6430 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6431 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6432 (delete_exited_threads): New declaration.
6433 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6434 * linux-nat.c (linux_nat_update_thread_list): New function.
6435 (linux_nat_add_target): Install it.
6436 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6437 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6438 (delete_exited_threads): New function.
6439
d9b67d9f
PA
64402015-04-07 Pedro Alves <pedro@codesourcery.com>
6441
6442 * infrun.c (resume) <displaced stepping debug output>: Get the
6443 leader thread's regcache, not resume_ptid's.
6444
2c26b84f
DE
64452015-04-06 Doug Evans <xdje42@gmail.com>
6446
6447 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6448 VAR_DOMAIN.
6449 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6450 Include symbol domain in debugging output.
6451
7a85168d
PA
64522015-04-06 Pedro Alves <palves@redhat.com>
6453 Bernd Edlinger <bernd.edlinger@hotmail.de>
6454
6455 * configure.ac: Remove the mingw32-specific stub-termcap.o
6456 fallback, and instead fallback to the stub termcap on all hosts.
6457 * configure: Regenerate.
6458 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6459 symbols.
6460
25755e2b
PMR
64612015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6462
6463 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6464 "top_level" parameter.
6465 (resolve_dynamic_type_internal): Remove the unused "top_level"
6466 parameter. Update call to is_dynamic_type_internal.
6467 (is_dynamic_type): Update call to is_dynamic_type_internal.
6468 (resolve_dynamic_range): Update call to
6469 resolve_dynamic_type_internal.
6470 (resolve_dynamic_union): Likewise.
6471 (resolve_dynamic_struct): Likewise.
6472 (resolve_dynamic_type): Likewise.
6473
961f4160
PMR
64742015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6475
6476 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6477 TYPE_CODE_REF types so that they are not considered as dynamic
6478 depending on the referenced type.
6479 (resolve_dynamic_type_internal): Likewise.
6480
39f3de7c
L
64812015-04-02 H.J. Lu <hongjiu.lu@intel.com>
6482
6483 * Makefile.in (top_srcdir): New.
6484 * configure: Regenerated.
6485
599bd15c
GB
64862015-04-02 Gary Benson <gbenson@redhat.com>
6487
6488 * NEWS: Announce the new default sysroot of "target:".
6489
fed040c6
GB
64902015-04-02 Gary Benson <gbenson@redhat.com>
6491
6492 * main.c (captured_main): Set gdb_sysroot to "target:"
6493 if not otherwise set.
6494
64c0b5de
GB
64952015-04-02 Gary Benson <gbenson@redhat.com>
6496
6497 * exec.c (exec_file_attach): Support "target:" filenames.
6498
b57fbfba
GB
64992015-04-02 Gary Benson <gbenson@redhat.com>
6500
6501 * solib.c (solib_find): Strip "target:" prefix from sysroot
6502 if accessing local files.
6503
97a41605
GB
65042015-04-02 Gary Benson <gbenson@redhat.com>
6505
6506 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6507 checks and error messages.
6508
2938e6cf
GB
65092015-04-02 Gary Benson <gbenson@redhat.com>
6510
6511 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6512 (remote_filename_p): Remove declaration.
6513 (remote_bfd_open): Likewise.
6514 * remote.c (remote_bfd_iovec_open): Remove function.
6515 (remote_bfd_iovec_close): Likewise.
6516 (remote_bfd_iovec_pread): Likewise.
6517 (remote_bfd_iovec_stat): Likewise.
6518 (remote_filename_p): Likewise.
6519 (remote_bfd_open): Likewise.
6520 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6521 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6522 (gdb_bfd_open_maybe_remote): Remove function.
6523 (symfile_bfd_open): Replace remote filename check with
6524 target filename check.
6525 (reread_symbols): Use gdb_bfd_open.
6526 * build-id.c (gdbcore.h): New include.
6527 (build_id_to_debug_bfd): Use gdb_bfd_open.
6528 * infcmd.c (attach_command_post_wait): Remove remote filename
6529 check.
6530 * solib.c (solib_find): Replace remote-specific handling with
6531 target-specific handling. Update comments where necessary.
6532 (solib_bfd_open): Replace remote-specific handling with
6533 target-specific handling.
6534 (gdb_sysroot_changed): New function.
6535 (_initialize_solib): Call the above when gdb_sysroot changes.
6536 * windows-tdep.c (gdbcore.h): New include.
6537 (windows_xfer_shared_library): Use gdb_bfd_open.
6538
f08e97fe
GB
65392015-04-02 Gary Benson <gbenson@redhat.com>
6540
6541 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6542 (is_target_filename): New declaration.
6543 (gdb_bfd_has_target_filename): Likewise.
6544 (gdb_bfd_open): Update documentation comment.
6545 * gdb_bfd.c (target.h): New include.
6546 (gdb/fileio.h): Likewise.
6547 (is_target_filename): New function.
6548 (gdb_bfd_has_target_filename): Likewise.
6549 (fileio_errno_to_host): Likewise.
6550 (gdb_bfd_iovec_fileio_open): Likewise.
6551 (gdb_bfd_iovec_fileio_pread): Likewise.
6552 (gdb_bfd_iovec_fileio_close): Likewise.
6553 (gdb_bfd_iovec_fileio_fstat): Likewise.
6554 (gdb_bfd_open): Use target fileio to access paths prefixed
6555 with "target:" where necessary.
6556
4bd7dc42
GB
65572015-04-02 Gary Benson <gbenson@redhat.com>
6558
6559 * target.h (struct target_ops) <to_filesystem_is_local>:
6560 New field.
6561 (target_filesystem_is_local): New macro.
6562 * target-delegates.c: Regenerate.
6563 * remote.c (remote_filesystem_is_local): New function.
6564 (init_remote_ops): Initialize to_filesystem_is_local.
6565
9b15c1f0
GB
65662015-04-02 Gary Benson <gbenson@redhat.com>
6567
6568 * target.h (struct target_ops) <to_fileio_fstat>: New field.
6569 (target_fileio_fstat): New declaration.
6570 * target.c (target_fileio_fstat): New function.
6571 * inf-child.c (inf_child_fileio_fstat): Likewise.
6572 (inf_child_target): Initialize to_fileio_fstat.
6573 * remote.c (init_remote_ops): Likewise.
6574
d11916aa
SS
65752015-04-01 Sasha Smundak <asmundak@google.com>
6576
6577 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6578 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6579 (py-unwind.o): New recipe.
6580 * NEWS: mention Python frame unwinding.
6581 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6582 gdb/unwinder.py and gdb/command/unwinder.py
6583 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6584 list.
6585 (execute_unwinders): New function.
6586 * python/lib/gdb/command/unwinders.py: New file.
6587 * python/lib/gdb/unwinder.py: New file.
6588 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6589 (objfpy_dealloc): Decrement frame_unwinders reference count.
6590 (objfpy_initialize): Create frame_unwinders list.
6591 (objfpy_get_frame_unwinders): New function.
6592 (objfpy_set_frame_unwinders): Ditto.
6593 (objfile_getset): Add frame_unwinders attribute to Objfile.
6594 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6595 (pspy_dealloc): Decrement frame_unwinders reference count.
6596 (pspy_initialize): Create frame_unwinders list.
6597 (pspy_get_frame_unwinders): New function.
6598 (pspy_set_frame_unwinders): Ditto.
6599 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6600 * python/py-unwind.c: New file.
6601 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6602 (objpy_get_frame_unwinders): New prototype.
6603 (gdbpy_initialize_unwind): New prototype.
6604 * python/python.c (gdbpy_apply_type_printers): Call
6605 gdbpy_initialize_unwind.
6606
6b403daa
PA
66072015-04-01 Pedro Alves <palves@redhat.com>
6608
6609 * infrun.c (resume): Check currently_stepping after clearing
6610 stepped_breakpoint, not before.
6611
1176ecec
PA
66122015-04-01 Pedro Alves <palves@redhat.com>
6613
6614 * infrun.c (print_target_wait_results): Print all the ptid
6615 elements.
6616
de1fe8c8
PA
66172015-04-01 Pedro Alves <palves@redhat.com>
6618
6619 * infrun.c (keep_going): Also discard cleanups if inserting
6620 breakpoints fails.
6621
e6f5c25b
PA
66222015-04-01 Pedro Alves <palves@redhat.com>
6623
6624 * infrun.c (wait_for_inferior): Install the
6625 finish_thread_state_cleanup cleanup across the whole function, not
6626 just around handle_inferior_event.
6627
1ac806b8
PA
66282015-04-01 Pedro Alves <palves@redhat.com>
6629
6630 * infrun.c (resume) <step past permanent breakpoint>: Use
6631 do_target_resume.
6632
2ee52aa4
PA
66332015-04-01 Pedro Alves <palves@redhat.com>
6634
6635 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6636
5445da1b
PMR
66372015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
6638
6639 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6640
4eec2deb
PA
66412015-04-01 Pedro Alves <palves@redhat.com>
6642
6643 * linux-thread-db.c (record_thread): Readd the thread to gdb's
6644 list if it was marked exited.
6645
afa59b79
L
66462015-04-01 H.J. Lu <hongjiu.lu@intel.com>
6647
6648 * configure: Regenerated.
6649
df8411da
SDJ
66502015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6651 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 Oleg Nesterov <oleg@redhat.com>
6653
6654 PR corefiles/16092
6655 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6656 New enum identifying the various options of the coredump_filter
6657 file.
6658 (struct smaps_vmflags): New struct.
6659 (use_coredump_filter): New variable.
6660 (decode_vmflags): New function.
6661 (mapping_is_anonymous_p): Likewise.
6662 (dump_mapping_p): Likewise.
6663 (linux_find_memory_regions_full): New variables
6664 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
6665 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
6666 parsing of its information. Implement memory mapping filtering
6667 based on its contents.
6668 (show_use_coredump_filter): New function.
6669 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
6670 * NEWS: Mention the possibility of using the
6671 '/proc/PID/coredump_filter' file when generating a corefile.
6672 Mention new command 'set use-coredump-filter'.
6673
416f679e
SDJ
66742015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6675
6676 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6677 read_memory_unsigned_integer.
6678
711a72d3
L
66792015-03-31 H.J. Lu <hongjiu.lu@intel.com>
6680
6681 * Makefile.in (ZLIB): New.
6682 (ZLIBINC): Likewise.
6683 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
6684 (CLIBS): Add $(ZLIB).
6685 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
6686 Add -lz to LIBS.
6687 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6688 * top.c (print_gdb_configuration): Remove --with-zlib and
6689 --without-zlib.
6690 * config.in: Regenerated.
6691 * configure: Likewise.
6692
d33279b3
AT
66932015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6694
6695 * NEWS: Mention info os cpus support.
6696 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
6697 (struct osdata_type): Add cpus entry, reorder the entries in
6698 alphabetical order.
6699
71b30f27
MK
67002015-03-31 Matthias Klose <doko@ubuntu.com>
6701
6702 * compile/compile.c (compile_to_object): Allow triplets with or
6703 without vendor set.
6704
13ce9222
DE
67052015-03-30 Doug Evans <dje@google.com>
6706
6707 PR c++/18141
6708 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
6709 klass in VAR_DOMAIN.
6710
20f796c9
GB
67112015-03-30 Gary Benson <gbenson@redhat.com>
6712
6713 * remote.c (remote_mourn_1): Remove function. Update all callers
6714 to use remote_mourn.
6715 (extended_remote_mourn_1): Remove function. Update all callers
6716 to use extended_remote_mourn.
6717 (extended_remote_attach_1): Remove function. Update all callers
6718 to use extended_remote_attach.
6719
49d45b20
JB
67202015-03-28 James Bowman <james.bowman@ftdichip.com>
6721
6722 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
6723 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
6724 (ALLDEPFILES): Add ft32-tdep.c.
6725 * configure.tgt: Add FT32 entry.
6726 * ft32-tdep.c: New file, FT32 target-dependent code.
6727 * ft32-tdep.h: New file, FT32 target-dependent code.
6728
1c4ff080
JK
67292015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6730
6731 Revert:
6732 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6733 Code cleanup.
6734 * printcmd.c (print_command_1): Move expr variable scope.
6735
79498702
JB
67362015-03-27 Joel Brobecker <brobecker@adacore.com>
6737
6738 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
6739
ce9c0ca1
AK
67402015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
6741
6742 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
6743 sections.
6744
429e1e81
JB
67452015-03-26 Joel Brobecker <brobecker@adacore.com>
6746
6747 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
6748 exception raised while parsing the probe arguments.
6749 Force parsing to be done using the C language parser.
6750 * expression.h (parse_expression_with_language): Declare.
6751 * parse.c (parse_expression_with_language): New function.
6752
4593441b
JT
67532015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
6754
6755 * MAINTAINERS (Write After Approval): Add "Jon Turney".
6756
ff908ebf
AW
67572015-03-26 Andy Wingo <wingo@igalia.com>
6758
6759 PR symtab/18148
6760 * dwarf2read.c (struct partial_die_info): Add has_const_value
6761 member.
6762 (add_partial_symbol): Don't punt on symbols that have const_value
6763 attributes.
6764 (read_partial_die): Detect DW_AT_const_value.
6765
f30d5c78
JK
67662015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6767
6768 Code cleanup.
6769 * printcmd.c (print_command_1): Move expr variable scope.
6770
8d89f51a
JK
67712015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6772
6773 Code cleanup.
6774 * printcmd.c (validate_format): Make the parameter cmdname const.
6775
0b736949
DB
67762015-03-26 Don Breazeal <donb@codesourcery.com>
6777
6778 * remote.c (_initialize_remote): Update comment.
6779
20d35291
PA
67802015-03-26 Pedro Alves <palves@redhat.com>
6781 Jon TURNEY <jon.turney@dronecode.org.uk>
6782
6783 * coffread.c (coff_symfile_read): When constructing the name of an
6784 import stub symbol from import symbol for amd64, only skip the
6785 char after _imp_ if the target is underscored (like i386) and the
6786 char is indeed the target's leading char.
6787
6a3753b3
PA
67882015-03-25 Pedro Alves <palves@redhat.com>
6789
6790 * target.h <to_async>: Replace 'callback' and 'context' parameters
6791 with boolean 'enable' parameter.
6792 (target_async): Replace CALLBACK and CONTEXT parameters with
6793 boolean ENABLE parameter.
6794 * inf-loop.c (inferior_event_handler): Adjust.
6795 * linux-nat.c (linux_nat_attach, linux_nat_resume)
6796 (linux_nat_resume): Adjust.
6797 (async_client_callback, async_client_context): Delete.
6798 (handle_target_event): Call inferior_event_handler directly.
6799 (linux_nat_async): Replace 'callback' and 'context' parameters
6800 with boolean 'enable' parameter. Adjust. Remove references to
6801 async_client_callback and async_client_context.
6802 (linux_nat_close): Adjust.
6803 * record-btrace.c (record_btrace_async): Replace 'callback' and
6804 'context' parameters with boolean 'enable' parameter. Adjust.
6805 (record_btrace_resume): Adjust.
6806 * record-full.c (record_full_async): Replace 'callback' and
6807 'context' parameters with boolean 'enable' parameter. Adjust.
6808 (record_full_resume, record_full_core_resume): Adjust.
6809 * remote.c (struct remote_state) <async_client_callback,
6810 async_client_context>: Delete fields.
6811 (remote_start_remote, extended_remote_attach_1, remote_resume)
6812 (extended_remote_create_inferior): Adjust.
6813 (remote_async_serial_handler): Call inferior_event_handler
6814 directly.
6815 (remote_async): Replace 'callback' and 'context' parameters with
6816 boolean 'enable' parameter. Adjust.
6817 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
6818 Adjust.
6819 * target-delegates.c: Regenerate.
6820
1c4b552b
GB
68212015-03-25 Gary Benson <gbenson@redhat.com>
6822 Pedro Alves <palves@redhat.com>
6823
6824 * target.c (fileio_ft_t): New typedef, define object vector.
6825 (fileio_fhandles): New static variable.
6826 (is_closed_fileio_fh): New macro.
6827 (lowest_closed_fd): New static variable.
6828 (acquire_fileio_fd): New function.
6829 (release_fileio_fd): Likewise.
6830 (fileio_fd_to_fh): New macro.
6831 (target_fileio_open): Wrap the file descriptor on success.
6832 (target_fileio_pwrite): Updated to use wrapped file descriptor.
6833 (target_fileio_pread): Likewise.
6834 (target_fileio_close): Likewise.
6835
a25d8bf9
PA
68362015-03-24 Pedro Alves <palves@redhat.com>
6837
6838 * thread.c (thread_apply_all_command): Take exited threads into
6839 account.
6840
44a1ee51
PA
68412015-03-24 Pedro Alves <palves@redhat.com>
6842
6843 * infrun.c (resume, proceed): Mention
6844 switch_back_to_stepped_thread, not switch_back_to_stepping.
6845
f3263aa4
PA
68462015-03-24 Pedro Alves <palves@redhat.com>
6847
6848 * infrun.c (user_visible_resume_ptid): Rewrite going from
6849 most-locked to unlocked instead of the opposite. Move comment ...
6850 * infrun.h (user_visible_resume_ptid): ... here.
6851
2bf6fb9d
PA
68522015-03-24 Pedro Alves <palves@redhat.com>
6853
6854 * linux-nat.c (linux_nat_resume): Output debug logs before trying
6855 to resume the event lwp. Use the lwp's ptid instead of the passed
6856 in (maybe wildcard) ptid.
6857 (stop_wait_callback): Tweak debug log output.
6858 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
6859 TRAP_TRACE.
6860 (linux_nat_filter_event): In debug output, distinguish a
6861 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
6862 before trying to resume the lwp.
6863
283a9958
JB
68642015-03-24 Joel Brobecker <brobecker@adacore.com>
6865
6866 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
6867 pointer indirection.
6868 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
6869 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
6870
93a8e227
JB
68712015-03-24 Joel Brobecker <brobecker@adacore.com>
6872
6873 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
6874 Renames DYN_ATTR_DATA_LOCATION.
6875 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
6876 DYN_ATTR_DATA_LOCATION.
6877 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
6878 instead of DYN_ATTR_DATA_LOCATION.
6879
64ce06e4
PA
68802015-03-24 Pedro Alves <palves@redhat.com>
6881
6882 * breakpoint.c (until_break_command): Adjust call to proceed.
6883 * gdbthread.h (struct thread_control_state) <stepping_command>:
6884 New field.
6885 * infcall.c (run_inferior_call): Adjust call to proceed.
6886 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
6887 Adjust calls to proceed.
6888 (set_step_frame): Set the current thread's step_start_function
6889 here.
6890 (step_once): Adjust calls to proceed.
6891 (jump_command, signal_command, until_next_command)
6892 (finish_backward, finish_forward, proceed_after_attach_callback)
6893 (attach_command_post_wait): Adjust calls to proceed.
6894 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
6895 (do_target_resume): New function, factored out from ...
6896 (resume): ... here. Remove 'step' parameter. Instead, check
6897 currently_stepping to determine whether the thread should be
6898 single-stepped.
6899 (proceed): Remove 'step' parameter and don't set the thread's
6900 step_start_function here. Adjust call to 'resume'.
6901 (handle_inferior_event): Adjust calls to 'resume'.
6902 (switch_back_to_stepped_thread): Use do_target_resume instead of
6903 'resume'.
6904 (keep_going): Adjust calls to 'resume'.
6905 * infrun.h (proceed): Remove 'step' parameter.
6906 (resume): Likewise.
6907 * windows-nat.c (do_initial_windows_stuff): Adjust call to
6908 'resume'.
6909 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
6910
856e7dd6
PA
69112015-03-24 Pedro Alves <palves@redhat.com>
6912
6913 * gdbthread.h (struct thread_control_state) <stepping_command>:
6914 New field.
6915 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
6916 the thread's stepping_command field.
6917 * infrun.c (resume): Check the thread's stepping_command flag to
6918 determine which threads should be resumed. Rename 'entry_step'
6919 local to user_step.
6920 (clear_proceed_status_thread): Clear 'stepping_command'.
6921 (schedlock_applies): Change parameter type to struct thread_info
6922 pointer. Adjust.
6923 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
6924 (switch_back_to_stepped_thread): Adjust calls to
6925 'schedlock_applies'.
6926 (_initialize_infrun): Adjust "set scheduler-locking step" help.
6927
885eeb5b
PA
69282015-03-24 Pedro Alves <palves@redhat.com>
6929
6930 * infrun.c (step_start_function): Delete and ...
6931 * gdbthread.h (struct thread_control_state) <step_start_function>:
6932 ... now a field here.
6933 * infrun.c (clear_proceed_status_thread): Clear the thread's
6934 step_start_function.
6935 (proceed, process_event_stop_test, print_stop_event): Adjust.
6936
3333f03a
PA
69372015-03-24 Pedro Alves <palves@redhat.com>
6938
6939 * infrun.c (proceed): No longer handle negative step.
6940
369f6daa
GB
69412015-03-24 Gary Benson <gbenson@redhat.com>
6942
6943 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
6944 (x86_linux_prepare_to_resume): Likewise.
6945 * x86-linux-nat.c (x86_linux_new_thread):
6946 Moved to nat/x86-linux.c.
6947 (x86_linux_prepare_to_resume): Likewise.
6948 * nat/x86-linux.c (x86_linux_new_thread): New function.
6949 (x86_linux_prepare_to_resume): Likewise.
6950
8e5d4070
GB
69512015-03-24 Gary Benson <gbenson@redhat.com>
6952
6953 * nat/x86-linux-dregs.h: New file.
6954 * nat/x86-linux-dregs.c: Likewise.
6955 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
6956 (x86-linux-dregs.o): New rule.
6957 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
6958 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6959 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
6960 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6961 (x86_linux_dr_get): Likewise.
6962 (x86_linux_dr_set): Likewise.
6963 (x86_linux_dr_get_addr): Likewise.
6964 (x86_linux_dr_get_control): Likewise.
6965 (x86_linux_dr_get_status): Likewise.
6966 (update_debug_registers_callback): Likewise.
6967 (x86_linux_dr_set_control): Likewise.
6968 (x86_linux_dr_set_addr): Likewise.
6969 (x86_linux_update_debug_registers): Likewise.
6970
2b95d440
GB
69712015-03-24 Gary Benson <gbenson@redhat.com>
6972
6973 * x86-linux-nat.c (x86_linux_update_debug_registers):
6974 New function, factored out from...
6975 (x86_linux_prepare_to_resume): ...this.
6976
14b0bc68
GB
69772015-03-24 Gary Benson <gbenson@redhat.com>
6978
6979 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
6980 (x86_linux_dr_set): Likewise.
6981 (x86_linux_dr_get_addr): Likewise.
6982 (x86_linux_dr_get_control): Likewise.
6983 (x86_linux_dr_get_status): Likewise.
6984 (update_debug_registers_callback): Likewise.
6985 (x86_linux_dr_set_control): Likewise.
6986 (x86_linux_dr_set_addr): Likewise.
6987 (x86_linux_prepare_to_resume): Likewise.
6988 (x86_linux_new_thread): Likewise.
6989
5dfe6ca8
GB
69902015-03-24 Gary Benson <gbenson@redhat.com>
6991
6992 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
6993 (x86_linux_new_thread): Rename argument.
6994
4b134ca1
GB
69952015-03-24 Gary Benson <gbenson@redhat.com>
6996
6997 * nat/x86-linux.h: New file.
6998 * nat/x86-linux.c: Likewise.
6999 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7000 (x86-linux.o): New rule.
7001 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7002 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7003 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7004 (lwp_set_arch_private_info): New declaration.
7005 (lwp_arch_private_info): Likewise.
7006 * linux-nat.c (lwp_set_arch_private_info): New function.
7007 (lwp_arch_private_info): Likewise.
7008 * x86-linux-nat.c: Include nat/x86-linux.h.
7009 (arch_lwp_info): Removed structure.
7010 (update_debug_registers_callback):
7011 Use lwp_set_debug_registers_changed.
7012 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7013 and lwp_set_debug_registers_changed.
7014 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7015
cff068da
GB
70162015-03-24 Gary Benson <gbenson@redhat.com>
7017
7018 * nat/linux-nat.h (ptid_of_lwp): New declaration.
7019 (lwp_is_stopped): Likewise.
7020 (lwp_stop_reason): Likewise.
7021 * linux-nat.c (ptid_of_lwp): New function.
7022 (lwp_is_stopped): Likewise.
7023 (lwp_is_stopped_by_watchpoint): Likewise.
7024 * x86-linux-nat.c (update_debug_registers_callback):
7025 Use lwp_is_stopped.
7026 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7027 lwp_stop_reason.
7028
b2f7c7e8
GB
70292015-03-24 Gary Benson <gbenson@redhat.com>
7030
7031 * linux-nat.h (linux_stop_lwp): Move declaration to...
7032 * nat/linux-nat.h (linux_stop_lwp): New declaration.
7033
6d4ee8c6
GB
70342015-03-24 Gary Benson <gbenson@redhat.com>
7035
7036 * linux-nat.h: Include nat/linux-nat.h.
7037 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7038 * nat/linux-nat.h (struct lwp_info): New forward declaration.
7039 (iterate_over_lwps_ftype): New typedef.
7040 (iterate_over_lwps): New declaration.
7041 * linux-nat.h (iterate_over_lwps): Update comment. Use
7042 iterate_over_lwps_ftype. Update callback return value check.
7043
70a0bb6b
GB
70442015-03-24 Gary Benson <gbenson@redhat.com>
7045
7046 * x86-nat.h (x86_debug_reg_state): Move declaration to...
7047 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7048
7b669087
GB
70492015-03-24 Gary Benson <gbenson@redhat.com>
7050
7051 * nat/linux-nat.h (current_lwp_ptid): New declaration.
7052 * linux-nat.c (current_lwp_ptid): New function.
7053 * x86-linux-nat.c: Include nat/linux-nat.h.
7054 (x86_linux_dr_get_addr): Use current_lwp_ptid.
7055 (x86_linux_dr_get_control): Likewise.
7056 (x86_linux_dr_get_status): Likewise.
7057 (x86_linux_dr_set_control): Likewise.
7058 (x86_linux_dr_set_addr): Likewise.
7059
15630549
AT
70602015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
7061
7062 PR breakpoints/16466
7063 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7064
8a4506c0
JB
70652015-03-23 Joel Brobecker <brobecker@adacore.com>
7066
7067 * ser-mingw.c (ser_windows_setparity): Fix indentation.
7068 * ser-unix.c (hardwire_setparity): Likewise.
7069
236af5e3
YG
70702015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7071
7072 * NEWS: Mention set/show serial parity command.
7073 * monitor.c (monitor_open): Call serial_setparity.
7074 * remote.c (remote_open_1): Likewise.
7075 * ser-base.c (ser_base_serparity): New function.
7076 * ser-base.h (ser_base_setparity): Add declaration.
7077 * ser-go32.c (dos_ops): Set "setparity" field.
7078 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7079 state.Parity.
7080 (ser_windows_setparity): New function.
7081 (hardwire_ops): Add ser_windows_setparity.
7082 (tty_ops): Add NULL for setparity field.
7083 (pipe_ops): Add ser_base_setparity.
7084 (tcp_ops): Likewise.
7085 * ser-pipe.c (pipe_ops): Likewise.
7086 * ser-tcp.c (tcp_ops): Likewise.
7087 * ser-unix.c (hardwire_setparity): Add declaration.
7088 (hardwire_raw): Don't reset PARENB flag.
7089 (hardwire_setparity): New function.
7090 (hardwire_ops): Add hardwire_setparity.
7091 * serial.c (serial_setparity): New function.
7092 (serial_parity): New global.
7093 (parity_none, parity_odd, parity_even, parity_enums, parity):
7094 New static globals.
7095 (set_parity): New function.
7096 (_initialize_serial): Add set/show serial parity commands.
7097 * serial.h (GDBPARITY_NONE): Define.
7098 (GDBPARITY_ODD): Define.
7099 (GDBPARITY_EVEN): Define.
7100 (serial_setparity) Add declaration.
7101 (struct serial_ops): Add setparity field.
7102 * target.h (serial_parity): Add declaration.
7103
32b40af9
KS
71042015-03-23 Keith Seitz <keiths@redhat.com>
7105
7106 * linespec.c (linespec_lexer_lex_keyword): Update comment.
7107
693dca06
KS
71082015-03-23 Keith Seitz <keiths@redhat.com>
7109
7110 * breakpoint.c (parse_breakpoint_sals): Use
7111 linespec_lexer_lex_keyword to ascertain if the user specified
7112 a NULL location.
7113 * linespec.c [IF_KEYWORD_INDEX]: Define.
7114 (linespec_lexer_lex_keyword): Export.
7115 (struct ls_parser) <keyword_ok>: Remove.
7116 A keyword is only a keyword if not followed by another keyword.
7117 (linespec_lexer_lex_one): Remove keyword_ok handling.
7118 Add comment explaining why the parsing stream is not advanced
7119 when a keyword is seen.
7120 (parse_linespec): Remove parser->keyword_ok.
7121 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7122
7e993ebf
KS
71232015-03-23 Keith Seitz <keiths@redhat.com>
7124
7125 PR gdb/18021
7126 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7127 if we find a static method with DW_AT_vtable_elem_location.
7128
b1a0f704
EZ
71292015-03-21 Eli Zaretskii <eliz@gnu.org>
7130
7131 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7132 before the second loop, to avoid undefined behavior. Reported by
7133 Anton Blanchard <anton@samba.org>.
7134
d9823cbb
KB
71352015-03-20 Keven Boell <keven.boell@intel.com>
7136
7137 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7138 data_location usage to linked list.
7139 (resolve_dynamic_type_internal): Adapt data_location to
7140 linked list.
7141 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7142 (copy_type_recursive, copy_type): Add copy of linked list.
7143 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7144 (struct dynamic_prop_list): New struct.
7145 * dwarf2read.c (set_die_type): Set data_location data.
7146
2e7bf1d7
PA
71472015-03-20 Pedro Alves <palves@redhat.com>
7148
7149 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7150 inner block and make it const.
7151 * machoread.c (get_archive_prefix_len): Make "lparen" const.
7152
7a26bd4d
PA
71532015-03-20 Pedro Alves <palves@redhat.com>
7154
7155 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7156 * breakpoint.h (set_breakpoint_condition): Update declaration.
7157
cd46431b
PA
71582015-03-20 Pedro Alves <palves@redhat.com>
7159
7160 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7161
e28566f7
PA
71622015-03-20 Pedro Alves <palves@redhat.com>
7163
7164 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7165
f6fc92f6
PA
71662015-03-20 Pedro Alves <palves@redhat.com>
7167
7168 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7169
c32ed3ef
PA
71702015-03-20 Pedro Alves <palves@redhat.com>
7171
7172 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7173 (nto_init_solib_absolute_prefix): Likewise.
7174
53e78085
PA
71752015-03-20 Pedro Alves <palves@redhat.com>
7176
7177 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7178 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7179
bc23328c
JK
71802015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7181
7182 * config/djgpp/README: Remove gdb.hp.
7183
e8ffc436
YQ
71842015-03-20 Yao Qi <yao.qi@linaro.org>
7185
7186 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7187 set_gdbarch_cannot_step_breakpoint.
7188
23f238d3
PA
71892015-03-19 Pedro Alves <palves@redhat.com>
7190
7191 * linux-nat.c (linux_resume_one_lwp): Rename to ...
7192 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7193 instead call perror_with_name.
7194 (check_ptrace_stopped_lwp_gone): New function.
7195 (linux_resume_one_lwp): Reimplement as wrapper around
7196 linux_resume_one_lwp_throw that swallows errors if the LWP is
7197 gone.
7198 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7199 swallows errors if the LWP is gone. Use
7200 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7201
eb54c8bf
PA
72022015-03-19 Pedro Alves <palves@redhat.com>
7203
7204 * linux-nat.c (status_callback): Return early if the LWP has no
7205 status pending.
7206
b90fc188
PA
72072015-03-19 Pedro Alves <palves@redhat.com>
7208
7209 * linux-nat.c (select_event_lwp_callback): Update comment to no
7210 longer mention SIGTRAP.
7211
670f82d4
TG
72122015-03-18 Tristan Gingold <gingold@adacore.com>
7213
72f4393d
L
7214 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7215 redirection code to ...
7216 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
7217 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 7218
464b0089
GB
72192015-03-18 Gary Benson <gbenson@redhat.com>
7220
7221 (remote_protocol_features): Remove the "vFile:fstat" feature.
7222 (remote_hostio_fstat): Probe for "vFile:fstat" support.
7223
f68f11b7
YQ
72242015-03-11 Yao Qi <yao.qi@linaro.org>
7225
7226 PR tdep/18107
7227 * aarch64-linux-tdep.c: Include xml-syscall.h
7228 (aarch64_linux_get_syscall_number): New function.
7229 (aarch64_linux_init_abi): Call
7230 set_gdbarch_get_syscall_number.
7231 * syscalls/aarch64-linux.xml: New file.
7232
393bd0c0
YG
72332015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7234
7235 * ser-base.h (ser_base_setstopbits): Change second argument name
7236 from "rate" to "num".
7237
7f3647e2
GB
72382015-03-17 Gary Benson <gbenson@redhat.com>
7239 Luke Allardyce <lukeallardyce@gmail.com>
7240
7241 PR gdb/18131
7242 * common/common-remote-fileio.h (sys/stat.h): New include.
7243 (stuct stat): Remove forward declaration.
7244
3ce5b6e2
JB
72452015-03-16 John Baldwin <jhb@FreeBSD.org>
7246
7247 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7248 before writing core register notes.
7249
d053f6be
YZ
72502015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7251 Pedro Alves <palves@redhat.com>
7252
7253 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7254 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7255 (tgoto): Wrap with extern "C".
7256
b1a921c8
PA
72572015-03-16 Pedro Alves <palves@redhat.com>
7258 Yuanhui Zhang <asmwarrior@gmail.com>
7259
7260 * stub-termcap.c (tputs): Change prototype.
7261
876d1cd7
YZ
72622015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7263 Pedro Alves <palves@redhat.com>
7264
7265 * windows-nat.c (struct thread_info_struct): Rename to ...
7266 (struct windows_thread_info_struct): ... this.
7267 (thread_info): Rename to ...
7268 (windows_thread_info): ... this.
7269 All users updated.
7270
0800b440
JK
72712015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7272 Pedro Alves <palves@redhat.com>
7273
7274 * NEWS: New Removed targets and native configurations.
7275
72762015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
7277
7278 Remove HPUX.
7279 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7280 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7281 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7282 ia64-hpux-tdep.h, solib-ia64-hpux.h.
7283 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7284 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7285 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7286 hppa-hpux-tdep.c.
7287 * config/ia64/hpux.mh: Remove file.
7288 * config/pa/hpux.mh: Remove file.
7289 * configure: Rebuilt.
7290 * configure.ac (dlgetmodinfo, somread.o): Remove.
7291 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7292 (ia64-*-hpux*): Remove its float format exception.
7293 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7294 * hppa-hpux-nat.c: Remove file.
7295 * hppa-hpux-tdep.c: Remove file.
7296 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7297 Move them here from hppa-tdep.h
7298 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7299 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7300 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7301 Move them to hppa-tdep.c.
7302 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7303 declarations.
7304 * ia64-hpux-nat.c: Remove file.
7305 * ia64-hpux-tdep.c: Remove file.
7306 * ia64-hpux-tdep.h: Remove file.
7307 * inf-ttrace.c: Remove file.
7308 * inf-ttrace.h: Remove file.
7309 * solib-ia64-hpux.c: Remove file.
7310 * solib-ia64-hpux.h: Remove file.
7311 * solib-pa64.c: Remove file.
7312 * solib-pa64.h: Remove file.
7313 * solib-som.c: Remove file.
7314 * solib-som.h: Remove file.
7315 * somread.c: Remove file.
7316
25268153
JB
73172015-03-13 John Baldwin <jhb@FreeBSD.org>
7318
7319 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7320 * config.in: Regenerate.
7321 * configure: Regenerate.
7322 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 7323 define.
25268153
JB
7324 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7325 enumerate memory regions if present.
7326
773eacf5
JB
73272015-03-13 John Baldwin <jhb@FreeBSD.org>
7328
7329 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7330 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7331 expressions.
7332 (i386fbsd_sigtramp_p): Likewise.
7333
01b6bdb0
JB
73342015-03-12 John Baldwin <jhb@FreeBSD.org>
7335
7336 * MAINTAINERS (Write After Approval): Add John Baldwin.
7337
811a659a
GB
73382015-03-12 Gary Benson <gbenson@redhat.com>
7339
7340 * solib.c (_initialize_solib): Make "set/show sysroot" use
7341 add_setshow_optional_filename_cmd so it can be restored to
7342 empty after being set.
7343
10304ef3
SDJ
73442015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7345
7346 * Makefile.in (SFILES): New source break-catch-syscall.c.
7347 (COMMON_OBS): New object break-catch-syscall.o.
7348 * break-catch-syscall.c: New file.
7349 * breakpoint.c: Remove inclusion of "xml-syscall.h".
7350 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7351 (struct syscall_catchpoint): Likewise.
7352 (dtor_catch_syscall): Likewise.
7353 (catch_syscall_inferior_data): Likewise.
7354 (struct catch_syscall_inferior_data): Likewise.
7355 (get_catch_syscall_inferior_data): Likewise.
7356 (catch_syscall_inferior_data_cleanup): Likewise.
7357 (insert_catch_syscall): Likewise.
7358 (remove_catch_syscall): Likewise.
7359 (breakpoint_hit_catch_syscall): Likewise.
7360 (print_it_catch_syscall): Likewise.
7361 (print_one_catch_syscall): Likewise.
7362 (print_mention_catch_syscall): Likewise.
7363 (print_recreate_catch_syscall): Likewise.
7364 (catch_syscall_breakpoint_ops): Likewise.
7365 (syscall_catchpoint_p): Likewise.
7366 (create_syscall_event_catchpoint): Likewise.
7367 (catch_syscall_split_args): Likewise.
7368 (catch_syscall_command_1): Likewise.
7369 (is_syscall_catchpoint_enabled): Likewise.
7370 (catch_syscall_enabled): Likewise.
7371 (catching_syscall_number): Likewise.
7372 (catch_syscall_completer): Likewise.
7373 (clear_syscall_counts): Likewise.
7374 (initialize_breakpoint_ops): Move initialization of syscall
7375 catchpoints to break-catch-syscall.c.
7376 (_initialize_breakpoint): Move code related to syscall catchpoints
7377 to break-catch-syscall.c.
7378
badd37ce
SDJ
73792015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7380
7381 * breakpoint.c (breakpoint_find_if): New function.
7382 * breakpoint.h (breakpoint_find_if): New prototype.
7383
0a93529c
GB
73842015-03-11 Gary Benson <gbenson@redhat.com>
7385
7386 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7387 * remote-fileio.c (remote_fileio_to_host_uint): New function.
7388 (remote_fileio_to_host_ulong): Likewise.
7389 (remote_fileio_to_host_mode): Likewise.
7390 (remote_fileio_to_host_time): Likewise.
7391 (remote_fileio_to_host_stat): Likewise.
7392 * remote.c (PACKET_vFile_fstat): New enum value.
7393 (remote_protocol_features): Register the "vFile:fstat" feature.
7394 (remote_hostio_fstat): New function.
7395 (remote_bfd_iovec_stat): Use the above.
7396 (_initialize_remote): Register new "set/show remote
7397 hostio-fstat-packet" command.
7398 * symfile.c (separate_debug_file_exists): Update comment.
7399 * NEWS: Announce new vFile:fstat packet.
7400
791c0056
GB
74012015-03-11 Gary Benson <gbenson@redhat.com>
7402
7403 * common/common-remote-fileio.h: New file.
7404 * common/common-remote-fileio.c: Likewise.
7405 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7406 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7407 (COMMON_OBS): Add common-remote-fileio.o.
7408 (common-remote-fileio.o): New rule.
7409 * remote-fileio.h (common-remote-fileio.h): New include.
7410 * remote-fileio.c (gdb/fileio.h): Do not include.
7411 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7412 (remote_fileio_to_fio_uint): Likewise.
7413 (remote_fileio_to_fio_time): Likewise.
7414 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7415 (remote_fileio_to_fio_mode): Likewise.
7416 (remote_fileio_to_fio_ulong): Likewise.
7417 (remote_fileio_to_fio_stat): Likewise.
7418
1390d0ef
AW
74192015-03-11 Andy Wingo <wingo@igalia.com>
7420
7421 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7422 we were checking the cached type, not the cached dynamic type.
7423
84a4591a
AW
74242015-03-11 Andy Wingo <wingo@igalia.com>
7425
7426 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7427 other strings, as these are on the GC'd heap, and will be
7428 collected along with the smob.
7429
85642ba0
AW
74302015-03-11 Andy Wingo <wingo@igalia.com>
7431
7432 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7433 (objfile_functions): Bind gdbscm_objfile_progspace to
7434 objfile-progspace.
7435 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7436
92fab5a6
AW
74372015-03-11 Andy Wingo <wingo@igalia.com>
7438
7439 * guile/guile.c (_initialize_guile): Disable automatic
7440 finalization, if Guile offers us that possibility.
7441 * guile/guile.c (call_initialize_gdb_module):
7442 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7443 finalizers in appropriate places.
7444 * configure.ac (AC_TRY_LIBGUILE): Add a check for
7445 scm_set_automatic_finalization_enabled.
7446 * configure: Regenerated.
7447
f054145e
AA
74482015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7449
7450 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7451 SAL, if possible.
7452
18396193
AA
74532015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7454
7455 * s390-linux-nat.c (struct arch_lwp_info): New.
7456 (s390_fix_watch_points): Rename to...
7457 (s390_prepare_to_resume): ...this. Skip the PER info update
7458 unless the watch points have changed.
7459 (s390_refresh_per_info, s390_new_thread): New functions.
7460 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7461 s390_fix_watch_points.
7462 (s390_remove_watchpoint): Likewise.
7463 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7464 Register s390_prepare_to_resume.
7465
9eb1356e
PA
74662015-03-09 Pedro Alves <palves@redhat.com>
7467
7468 Revert:
7469 2015-03-07 Pedro Alves <palves@redhat.com>
7470 * common/gdb_socket.h: New file.
7471 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7472 sys/socket.h.
7473 (net_open): Use union gdb_sockaddr_u.
7474
aac331e4
PA
74752015-03-07 Pedro Alves <palves@redhat.com>
7476
7477 * configure.ac (build_warnings): Move -Wmissing-prototypes
7478 -Wdeclaration-after-statement -Wmissing-parameter-type
7479 -Wold-style-declaration -Wold-style-definition to the C-specific
7480 set.
7481 * configure: Regenerate.
7482
366c75fc
PA
74832015-03-07 Pedro Alves <palves@redhat.com>
7484
7485 * common/gdb_socket.h: New file.
7486 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7487 sys/socket.h.
7488 (net_open): Use union gdb_sockaddr_u.
7489
72df25b2
PA
74902015-03-07 Pedro Alves <palves@redhat.com>
7491
7492 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7493 (exceptions_state_mc_action_iter)
7494 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7495 Don't define.
7496 [__cplusplus] (try_scope_depth): New global.
7497 [__cplusplus] (exception_try_scope_entry)
7498 (exception_try_scope_exit, gdb_exception_sliced_copy)
7499 (exception_rethrow): New functions.
7500 (throw_exception): In C++ mode, throw
7501 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7502 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7503 (throw_it): In C++ mode, use try_scope_depth.
7504 * common/common-exceptions.h [!__cplusplus]
7505 (exceptions_state_mc_action_iter)
7506 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7507 Don't declare.
7508 [__cplusplus] (exception_try_scope_entry)
7509 (exception_try_scope_exit, exception_rethrow): Declare.
7510 [__cplusplus] (struct exception_try_scope): New struct.
7511 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7512 C++ exceptions.
7513 (struct gdb_exception_RETURN_MASK_ALL)
7514 (struct gdb_exception_RETURN_MASK_ERROR)
7515 (struct gdb_exception_RETURN_MASK_QUIT): New types.
7516
284e6217
PA
75172015-03-07 Pedro Alves <palves@redhat.com>
7518
7519 * main.c (handle_command_errors): Remove volatile qualifier from
7520 parameter.
7521
6c63c96a
PA
75222015-03-07 Pedro Alves <palves@redhat.com>
7523
7524 * breakpoint.c (save_breakpoints): Adjust to avoid code between
7525 TRY and CATCH.
7526 * gdbtypes.c (safe_parse_type): Remove empty line.
7527 (types_deeply_equal):
7528 * guile/scm-frame.c (gdbscm_frame_name):
7529 * linux-thread-db.c (find_new_threads_once):
7530 * python/py-breakpoint.c (bppy_get_commands):
7531 * record-btrace.c (record_btrace_insert_breakpoint)
7532 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7533 (record_btrace_start_replaying): Adjust to avoid code between TRY
7534 and CATCH.
7535
492d29ea
PA
75362015-03-07 Pedro Alves <palves@redhat.com>
7537
7538 * common/common-exceptions.c (struct catcher) <exception>: No
7539 longer a pointer to volatile exception. Now an exception value.
7540 <mask>: Delete field.
7541 (exceptions_state_mc_init): Remove all parameters. Adjust.
7542 (exceptions_state_mc): No longer pop the catcher here.
7543 (exceptions_state_mc_catch): New function.
7544 (throw_exception): Adjust.
7545 * common/common-exceptions.h (exceptions_state_mc_init): Remove
7546 all parameters.
7547 (exceptions_state_mc_catch): Declare.
7548 (TRY_CATCH): Rename to ...
7549 (TRY): ... this. Remove EXCEPTION and MASK parameters.
7550 (CATCH, END_CATCH): New.
7551 All callers adjusted.
7552
ece957c8
TT
75532015-03-07 Tom Tromey <tromey@redhat.com>
7554
7555 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7556
7556d4a4
PA
75572015-03-07 Pedro Alves <palves@redhat.com>
7558
7559 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7560 (amd64_epilogue_frame_cache): Normal exception handling code.
7561 * break-catch-throw.c (check_status_exception_catchpoint)
7562 (re_set_exception_catchpoint): Ditto.
7563 * cli/cli-interp.c (safe_execute_command):
7564 * cli/cli-script.c (script_from_file): Ditto.
7565 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7566 Ditto.
7567 * compile/compile-object-run.c (compile_object_run): Ditto.
7568 * cp-abi.c (baseclass_offset): Ditto.
7569 * cp-valprint.c (cp_print_value): Ditto.
7570 * exceptions.c (catch_exceptions_with_msg):
7571 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7572 * frame.c (get_frame_address_in_block_if_available): Ditto.
7573 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7574 (i386_sigtramp_frame_cache): Ditto.
7575 * infcmd.c (post_create_inferior): Ditto.
7576 * linespec.c (parse_linespec, find_linespec_symbols):
7577 * p-valprint.c (pascal_object_print_value): Ditto.
7578 * parse.c (parse_expression_for_completion): Ditto.
7579 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7580 * remote.c (remote_get_noisy_reply): Ditto.
7581 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7582 * solib-svr4.c (solib_svr4_r_map): Ditto.
7583
f873665f 75842015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
7585
7586 * common/common-utils.h (startswith): New inline function.
7587 All places where this logic was used updated to use the above.
7588
68901c4d
PA
75892015-03-05 Pedro Alves <palves@redhat.com>
7590
7591 PR gdb/18002
7592 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7593 after reading the breakpoint's shadow memory.
7594
2dcb2b1a
MK
75952015-03-05 Mark Kettenis <kettenis@gnu.org>
7596
7597 * hppabsd-nat.c: Remove file.
7598 * hppaobsd-nat.c: New file.
7599 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
7600 hppaobsd-nat.c.
7601 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7602 hppaobsd-nat.o.
7603
527a273a
PA
76042015-03-04 Pedro Alves <palves@redhat.com>
7605
7606 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7607 (target_decr_pc_after_break): Delete declaration.
7608 * target.c (default_target_decr_pc_after_break)
7609 (target_decr_pc_after_break): Delete.
7610 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7611 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7612 * linux-thread-db.c (check_event): Likewise.
7613 * infrun.c (adjust_pc_after_break): Likewise.
7614 * darwin-nat.c (cancel_breakpoint): Likewise.
7615 * aix-thread.c (aix_thread_wait): Likewise.
7616 * target-delegates.c: Regenerate.
7617
faf09f01
PA
76182015-03-04 Pedro Alves <palves@redhat.com>
7619
7620 * linux-nat.c (save_sigtrap): Check for breakpoints before
7621 checking watchpoints.
7622 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7623 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7624 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7625 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7626 (linux_nat_stopped_by_sw_breakpoint)
7627 (linux_nat_supports_stopped_by_sw_breakpoint)
7628 (linux_nat_stopped_by_hw_breakpoint)
7629 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7630 (linux_nat_wait_1): Don't re-increment the PC if relying on
7631 SIGTRAP's siginfo->si_code.
7632 (linux_nat_add_target): Install new target methods.
7633 * linux-thread-db.c (check_event): Don't account for breakpoint PC
7634 offset if the target already adjusted the PC.
7635 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7636 (GDB_ARCH_TRAP_BRKPT): New.
7637 (TRAP_HWBKPT): Define if not already defined.
7638
f7e6eed5
PA
76392015-03-04 Pedro Alves <palves@redhat.com>
7640
7641 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7642 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
7643 Delete field.
7644 <stop_reason>: New field.
7645 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
7646 (packet_set_cmd_state): New function.
7647 (remote_protocol_features): Register the "swbreak" and "hwbreak"
7648 features.
7649 (remote_query_supported): If not disabled with the corresponding
7650 "set remote foo-packet" command, report support for the swbreak
7651 and hwbreak features.
7652 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
7653 field.
7654 <stop_reason>: New field.
7655 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
7656 (remote_wait_as): Adjust.
7657 (remote_stopped_by_sw_breakpoint)
7658 (remote_supports_stopped_by_sw_breakpoint)
7659 (remote_stopped_by_hw_breakpoint)
7660 (remote_supports_stopped_by_hw_breakpoint): New functions.
7661 (remote_stopped_by_watchpoint): New function.
7662 (init_remote_ops): Install them.
7663 (_initialize_remote): Register new "set/show remote
7664 swbreak-feature-packet" and "set/show remote
7665 swbreak-feature-packet" commands.
7666
9e8915c6
PA
76672015-03-04 Pedro Alves <palves@redhat.com>
7668
7669 * btrace.h: Include target/waitstatus.h.
7670 (struct btrace_thread_info) <stop_reason>: New field.
7671 * record-btrace.c (record_btrace_step_thread): Use
7672 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7673 (record_btrace_decr_pc_after_break): Delete.
7674 (record_btrace_stopped_by_sw_breakpoint)
7675 (record_btrace_supports_stopped_by_sw_breakpoint)
7676 (record_btrace_stopped_by_hw_breakpoint)
7677 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
7678 (init_record_btrace_ops): Install them.
7679 * record-full.c (record_full_hw_watchpoint): Delete and replace
7680 with ...
7681 (record_full_stop_reason): ... this throughout.
7682 (record_full_exec_insn): Adjust.
7683 (record_full_wait_1): Adjust. No longer re-increment the PC.
7684 (record_full_wait_1): Adjust. Use
7685 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7686 (record_full_stopped_by_watchpoint): Adjust.
7687 (record_full_stopped_by_sw_breakpoint)
7688 (record_full_supports_stopped_by_sw_breakpoint)
7689 (record_full_supports_stopped_by_sw_breakpoint)
7690 (record_full_stopped_by_hw_breakpoint)
7691 (record_full_supports_stopped_by_hw_breakpoint): New functions.
7692 (init_record_full_ops, init_record_full_core_ops): Install them.
7693 * record.c (record_check_stopped_by_breakpoint): New function.
7694 * record.h: Include target/waitstatus.h.
7695 (record_check_stopped_by_breakpoint): New declaration.
7696
15c66dd6
PA
76972015-03-04 Pedro Alves <palves@redhat.com>
7698
7699 enum lwp_stop_reason -> enum target_stop_reason
7700 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
7701 (linux_nat_stopped_by_watchpoint, status_callback)
7702 (linux_nat_wait_1): Adjust.
7703 * linux-nat.h (enum lwp_stop_reason): Delete.
7704 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7705 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7706 * target/waitstatus.h (enum target_stop_reason): New.
7707
1cf4d951
PA
77082015-03-04 Pedro Alves <palves@redhat.com>
7709
7710 * breakpoint.c (need_moribund_for_location_type): New function.
7711 (bpstat_stop_status): Don't skipping checking moribund locations
7712 of breakpoint types which the target tell caused a stop.
7713 (program_breakpoint_here_p): New function, factored out from ...
7714 (bp_loc_is_permanent): ... this.
7715 (update_global_location_list): Don't create a moribund location if
7716 the target supports reporting stops of the type of the removed
7717 breakpoint.
7718 * breakpoint.h (program_breakpoint_here_p): New declaration.
7719 * infrun.c (adjust_pc_after_break): Return early if the target has
7720 already adjusted the PC. Add comments.
7721 (handle_signal_stop): If nothing explains a signal, and the target
7722 tells us the stop was caused by a software breakpoint, check if
7723 there's a breakpoint instruction in the memory. If so, adjust the
7724 PC before presenting the stop to the user. Otherwise, ignore the
7725 trap. If nothing explains a signal, and the target tells us the
7726 stop was caused by a hardware breakpoint, ignore the trap.
7727 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
7728 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
7729 to_supports_stopped_by_hw_breakpoint>: New fields.
7730 (target_stopped_by_sw_breakpoint)
7731 (target_supports_stopped_by_sw_breakpoint)
7732 (target_stopped_by_hw_breakpoint)
7733 (target_supports_stopped_by_hw_breakpoint): Define.
7734 * target-delegates.c: Regenerate.
7735
79639e11
PA
77362015-03-04 Pedro Alves <palves@redhat.com>
7737
7738 * infrun.c (follow_fork_inferior): Use the whole of the
7739 inferior_ptid and pending_follow.related_pid ptids instead of
7740 building ptids from the process components. Adjust verbose output
7741 to use target_pid_to_str.
7742 * linux-nat.c (linux_child_follow_fork): Use the whole of the
7743 inferior_ptid and pending_follow.related_pid ptids instead of
7744 building ptids from the process components.
7745
e85e8e5e
MK
77462015-03-04 Mark Kettenis <kettenis@gnu.org>
7747
7748 * inf-ptrace.c [PT_GET_PROCESS_STATE]
7749 (inf_ptrace_insert_fork_catchpoint): New function.
7750 (inf_ptrace_remove_fork_catchpoint): New function.
7751 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
7752
87de11c0
AA
77532015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7754
7755 * s390-linux-tdep.c (s390_register_name): Return empty string
7756 instead of NULL for registers that shouldn't be visible.
7757
d851a69a
AA
77582015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7759
7760 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
7761 XML file for 64-bit targets.
7762
b072f6c1
SM
77632015-03-03 Simon Marchi <simon.marchi@ericsson.com>
7764
7765 * target.h (find_default_create_inferior): Remove declaration.
7766 (find_default_attach): Likewise.
7767
c1593e4f
PA
77682015-03-03 Pedro Alves <palves@redhat.com>
7769
7770 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
7771 Use ptid_get_pid to get the overall process id when resuming all
7772 threads.
7773
90ad5e1d
PA
77742015-03-03 Pedro Alves <palves@redhat.com>
7775
7776 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
7777 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
7778 * inf-ptrace.c (get_ptrace_pid): New function.
7779 (inf_ptrace_resume): Use it.
7780 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
7781 to the lower layer.
7782
d68e53f4
MM
77832015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7784
7785 * nat/linux-btrace.c: Include sys/utsname.h.
7786 (linux_determine_kernel_ptr_bits): New.
7787 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
7788 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
7789 ptr_bits.
7790
986b6601
MM
77912015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7792
7793 * btrace.c (ftrace_update_function): Treat return as tailcall for
7794 "_dl_runtime_resolve".
7795
ce0dfbea
MM
77962015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7797
7798 * btrace.h (btrace_function) <lbegin, lend>: Remove.
7799 * btrace.c (ftrace_debug): Do not print the line range.
7800 (ftrace_skip_file, ftrace_update_lines): Remove.
7801 (ftrace_new_function): Remove lbegin and lend initialization.
7802 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
7803 * record-btrace.c (btrace_compute_src_line_range): New.
7804 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
7805
95e50b27
PA
78062015-03-02 Pedro Alves <palves@redhat.com>
7807
7808 * infrun.c (follow_exec): Delete all threads of the process except
7809 the event thread. Extended comments.
7810
00e474c2
JB
78112015-03-02 Joel Brobecker <brobecker@adacore.com>
7812
7813 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
7814
cc7039d3
JB
78152015-03-02 Joel Brobecker <brobecker@adacore.com>
7816
7817 * utils.h: Remove <stdbool.h> #include.
7818 (producer_is_gcc): Change return type to "int".
7819 * utils.c (producer_is_gcc): Change return type to int.
7820 Return 1 instead of true, and 0 instead of false.
7821 Adjust function documentation accordingly.
7822
550bdf96
AA
78232015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7824
7825 * s390-linux-nat.c (have_regset_vxrs): New static variable.
7826 (s390_linux_fetch_inferior_registers): Handle vector registers, if
7827 present.
7828 (s390_linux_store_inferior_registers): Likewise.
7829 (s390_get_hwcap): Remove function. Embed its logic...
7830 (s390_read_description): ...here. Yield a target description with
7831 vector registers if applicable.
7832 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
7833 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
7834 "features/s390x-tevx-linux64.c".
7835 (struct gdbarch_tdep) <v0_full_regnum>: New field.
7836 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
7837 for "GNU/Linux-specific registers".
7838 (s390_dwarf_reg_r0l): New enum value.
7839 (s390_dwarf_reg_to_regnum): Support vector registers.
7840 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
7841 of GPR lower halves.
7842 (regnum_is_vxr_full): New function.
7843 (s390_register_name): New function.
7844 (s390_pseudo_register_name): Handle v0-v15, which are composed of
7845 f0-f15 and v0l-v15l.
7846 (s390_pseudo_register_type): Likewise.
7847 (s390_pseudo_register_read): Likewise.
7848 (s390_pseudo_register_write): Likewise.
7849 (s390_value_from_register): Account for the fact that values are
7850 placed left-justified in vector registers.
7851 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
7852 the vector reggroup and omit them from the general reggroup.
7853 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
7854 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
7855 (s390_iterate_over_regset_sections): Add iterations for the two
7856 new vector regsets.
7857 (s390_core_read_description): Yield a target description with
7858 vector registers if applicable.
7859 (s390_gdbarch_init): Handle target descriptions with vector
7860 registers. Add "register_name" gdbarch method.
7861 (_initialize_s390_tdep): Call new tdesc initialization functions.
7862 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
7863 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
7864 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
7865 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
7866 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
7867 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
7868 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
7869 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
7870 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
7871 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
7872 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
7873 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
7874 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
7875 (S390_NUM_REGS): Adjust value.
7876 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
7877 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7878 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
7879 * NEWS: Announce S/390 vector register support.
7880
446899e4
AA
78812015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7882
7883 * features/s390-tevx-linux64.xml: New file.
7884 * features/s390-vx-linux64.xml: New file.
7885 * features/s390-vx.xml: New file.
7886 * features/s390x-tevx-linux64.xml: New file.
7887 * features/s390x-vx-linux64.xml: New file.
7888 * features/Makefile (WHICH): Add s390-vx-linux64,
7889 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
7890 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
7891 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
7892 macros.
7893 * features/s390-tevx-linux64.c: New generated file.
7894 * features/s390-vx-linux64.c: Likewise.
7895 * features/s390x-tevx-linux64.c: Likewise.
7896 * features/s390x-vx-linux64.c: Likewise.
7897 * regformats/s390-tevx-linux64.dat: Likewise.
7898 * regformats/s390-vx-linux64.dat: Likewise.
7899 * regformats/s390x-tevx-linux64.dat: Likewise.
7900 * regformats/s390x-vx-linux64.dat: Likewise.
7901
b7236fbe
DE
79022015-02-28 Doug Evans <xdje42@gmail.com>
7903
7904 * symtab.h (struct symtab) <next>: Fix comment.
7905
02e62830
SM
79062015-02-27 Simon Marchi <simon.marchi@ericsson.com>
7907
7908 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
7909 python_GdbMethods.
7910
bf36a1e7
PA
79112015-02-27 Pedro Alves <palves@redhat.com>
7912
7913 * dtrace-probe.c (dtrace_probe_ops): Make extern.
7914
ad6aff7d
PA
79152015-02-27 Pedro Alves <palves@redhat.com>
7916
7917 * common/common-exceptions.h (exception_none): Declare.
7918 * common/common-exceptions.c (exception_none): Moved from
7919 exceptions.c.
7920 (exceptions_state_mc_init): Use exception_none.
7921 * exceptions.c (exception_none): Move to
7922 common/common-exceptions.c.
7923 * exceptions.h (exception_none): Move to
7924 common/common-exceptions.h.
7925
97c18565
PA
79262015-02-27 Pedro Alves <palves@redhat.com>
7927
7928 * main.c (catch_command_errors, catch_command_errors_const):
7929 Remove 'mask' argument. Adjust.
7930 (captured_main): Adjust callers.
7931
e992c591
PA
79322015-02-27 Pedro Alves <palves@redhat.com>
7933
7934 * python/python-internal.h: Include "extension-priv.h".
7935
64166036
PA
79362015-02-27 Pedro Alves <palves@redhat.com>
7937
7938 * breakpoint.h (enum print_stop_action): Move further up in the
7939 file.
7940
8a526fa6
PA
79412015-02-27 Pedro Alves <palves@redhat.com>
7942
7943 * gdbarch.sh: Include regcache.h.
7944 * gdbarch.h: Regenerate.
7945
0fa9c223
PA
79462015-02-27 Pedro Alves <palves@redhat.com>
7947
7948 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
7949 Remove duplicate const.
7950 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
7951 duplicate const.
7952
7cf99fb1
PA
79532015-02-27 Pedro Alves <palves@redhat.com>
7954
7955 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
7956 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
7957 * features/feature_to_c.sh: Tag the generated xml_builtin array
7958 with extern const in C++ mode.
7959
1424c16e
TT
79602015-02-27 Tom Tromey <tromey@redhat.com>
7961
7962 * minidebug.c (struct lzma_stream): Rename to ...
7963 (struct gdb_lzma_stream): ... this.
7964 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
7965
10367c7c
PA
79662015-02-27 Pedro Alves <palves@redhat.com>
7967
7968 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
7969 function.
7970 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7971 (mi_cmd_stack_list_variables): Use it.
7972
4180215b
PA
79732015-02-27 Pedro Alves <palves@redhat.com>
7974
7975 * x86-linux-nat.c (u_debugreg_offset): New function.
7976 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7977
2f56f7c3
PA
79782015-02-27 Pedro Alves <palves@redhat.com>
7979
7980 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
7981 declaration.
7982 Include break-common.h.
7983
570dc176
TT
79842015-02-27 Tom Tromey <tromey@redhat.com>
7985 Pedro Alves <palves@redhat.com>
7986
7987 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
7988 local used to iterate over enums.
7989 * completer.c (signal_completer): Likewise.
7990 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
7991 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
7992 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
7993 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
7994 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
7995 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
7996 * tui-wingeneral.c (tui_refresh_all): Likewise.
7997
68c14faa
PA
79982015-02-27 Pedro Alves <palves@redhat.com>
7999
8000 * target.h: Include "infrun.h".
8001
749bab01
PA
80022015-02-27 Pedro Alves <palves@redhat.com>
8003
8004 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8005
3c14e5a3
PA
80062015-02-27 Pedro Alves <palves@redhat.com>
8007
8008 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8009 (IPA_SYM): Use it.
8010 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8011
56000a98
PA
80122015-02-27 Pedro Alves <palves@redhat.com>
8013
8014 * cli-out.c (_rl_erase_entire_line): Move declaration out of
8015 cli_mld_erase_entire_line, and make it extern "C".
8016 * common/common-defs.h (EXTERN_C): New.
8017 * completer.c (_rl_completion_prefix_display_length)
8018 (_rl_print_completions_horizontally, QSFUNC): Move declarations
8019 out of gdb_display_match_list_1.
8020 (_rl_qsort_string_compare): Move declaration out of
8021 gdb_display_match_list_1, and make it extern "C".
8022 * defs.h (re_comp): Use EXTERN_C.
8023 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8024 and make it extern "C".
8025 (monstartup): Move declaration out of maintenance_set_profile_cmd,
8026 and make it extern "C".
8027 (main): Move declaration out of maintenance_set_profile_cmd.
8028 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8029 EXTERN_C.
8030
bcabf420
PA
80312015-02-27 Pedro Alves <palves@redhat.com>
8032
8033 * python/python.c (GdbMethods): Rename to ...
8034 (python_GdbMethods): ... this and make extern.
8035 (GdbModuleDef): Rename to ...
8036 (python_GdbModuleDef): ... this and make extern.
8037
928dbe07
PA
80382015-02-27 Pedro Alves <palves@redhat.com>
8039
8040 * record-btrace.c (set_record_btrace_cmdlist)
8041 (show_record_btrace_cmdlist): Remove redefinitions.
8042
52059ffd
TT
80432015-02-27 Tom Tromey <tromey@redhat.com>
8044 Pedro Alves <palves@redhat.com>
8045
8046 * dwarf2-frame.c (enum cfa_how_kind, struct
8047 dwarf2_frame_state_reg_info): Move out of struct
8048 dwarf2_frame_state.
8049 * dwarf2read.c (struct tu_stats): Move out of struct
8050 dwarf2_per_objfile.
8051 (struct file_entry): Move out of struct line_header.
8052 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8053 typedef_field_list): Move out of struct field_info.
8054 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8055 Move out of struct dynamic_prop.
8056 (union type_owner, union field_location, struct field, struct
8057 range_bounds, union type_specific): Move out of struct main_type.
8058 (struct fn_fieldlist, struct fn_field, struct typedef_field)
8059 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8060 (struct call_site_target, union call_site_parameter_u, struct
8061 call_site_parameter): Move out of struct call_site.
8062 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8063 m32c_prologue.
8064 (enum srcdest_kind): Move out of struct srcdest.
8065 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8066 * prologue-value.h (enum prologue_value_kind): Move out of struct
8067 prologue_value.
8068 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8069 gdbarch_tdep.
8070 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8071 out of struct field_info.
8072 * symfile.h (struct other_sections): Move out of struct
8073 section_addr_info.
8074 * symtab.c (struct symbol_cache_slot): Move out struct
8075 block_symbol_cache.
8076 * target-descriptions.c (enum tdesc_type_kind): Move out of
8077 typedef struct tdesc_type.
8078 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8079 struct tui_line_or_address.
8080 * value.c (enum internalvar_kind, union internalvar_data): Move
8081 out of struct internalvar.
8082 * xtensa-tdep.h (struct ctype_cache): Move out of struct
8083 gdbarch_tdep.
8084
fe978cb0
PA
80852015-02-27 Tom Tromey <tromey@redhat.com>
8086 Pedro Alves <palves@redhat.com>
8087
8088 Rename symbols whose names are reserved C++ keywords throughout.
8089
3bc3d82a
PA
80902015-02-27 Pedro Alves <palves@redhat.com>
8091
8092 * Makefile.in (COMPILER): New, get it from autoconf.
8093 (COMPILE.pre, CC_LD): Use COMPILER.
8094 (CXX): Get from autoconf instead.
8095 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8096 * acinclude.m4: Include build-with-cxx.m4.
8097 * build-with-cxx.m4: New file.
8098 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8099 Disable -Werror by default if building in C++ mode.
8100 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8101 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
8102 Run supported-warning-flags tests with the C++ compiler.
8103 Save/restore CXXFLAGS too.
8104 * configure: Regenerate.
8105
07697489
PA
81062015-02-27 Pedro Alves <palves@redhat.com>
8107
8108 * libiberty.m4: New file.
8109 * acinclude.m4: Include libiberty.m4.
8110 * configure.ac: Call libiberty_INIT.
8111 * config.in, configure: Regenerate.
8112
60abeae4
AA
81132015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8114
8115 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8116 31-bit targets, but 64-bit targets as well.
8117 (s390_gnu_triplet_regexp): New function.
8118 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8119 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
8120 method.
8121
f44466fb 81222015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
8123
8124 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8125 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
8126 from CONTEXT_DEBUGGER.
8127
0def5aaa
DE
81282015-02-26 Doug Evans <dje@google.com>
8129
8130 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8131 CHECK_TYPEDEF.
8132 (set_type_vptr_fieldno): Ditto.
8133 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8134 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8135
77b64a49
PA
81362015-02-26 Pedro Alves <palves@redhat.com>
8137
8138 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8139 * complaints.c (vcomplaint): Pass argument FMT directly to
8140 printf-like functions instead of complaint->fmt.
8141 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8142 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8143 * compile/compile-loc2c.c (pushf, unary, binary): Add
8144 ATTRIBUTE_PRINTF.
8145 (do_compile_dwarf_expr_to_c): Pass string literal as format string
8146 to pushf.
8147 (BINARY): Pass string literal as format string to 'binary'.
8148 * compile/compile-object-load.c (link_callbacks_einfo): Add
8149 ATTRIBUTE_PRINTF.
8150 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8151
532f44ed
PA
81522015-02-26 Pedro Alves <palves@redhat.com>
8153
8154 * windows-termcap.c: Rename to ...
8155 * stub-termcap.c: ... this. Adjust header line.
8156 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8157 windows-termcap.c.
8158 * configure: Regenerate.
8159 * configure.ac: Refer to stub-termcap.o instead of
8160 windows-termcap.o.
8161 * gdb_curses.h: Mention stub-termcap.c instead of
8162 windows-termcap.c.
8163
081a1c2c
JK
81642015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8165
8166 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8167 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8168
2f41223f
AT
81692015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
8170
8171 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8172
80c57053
JK
81732015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8174
8175 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8176 bfd_canonicalize_symtab.
8177
cf424aef
JB
81782015-02-25 John Baldwin <jhb@FreeBSD.org>
8179
8180 * amd64fbsd-nat.c: Include sys/user.h.
8181 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8182 instead of KERN_PS_STRINGS to locate the signal trampoline.
8183 * i386fbsd-nat.c: Include sys/user.h.
8184 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8185 instead of KERN_PS_STRINGS to locate the signal trampoline.
8186 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8187 (amd64fbsd_sigtramp_p): New.
8188 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8189 longer set default values.
8190 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8191 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8192 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8193 (i386fbsd_freebsd4_sigtramp_start)
8194 (i386fbsd_freebsd4_sigtramp_middle)
8195 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8196 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8197 (i386fbsd_sigtramp_p): New.
8198 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8199 longer set default values.
8200 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8201
c5cb74ee
JB
82022015-02-25 John Baldwin <jhb@freebsd.org>
8203
8204 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8205 get_frame_register instead of frame_unwind_register_unsigned.
8206
17487d85
JK
82072015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8208
8209 PR build/18033
8210 * compile/compile-c-support.c (c_compute_program): Change // comment.
8211 * compile/compile-object-load.c (setup_sections): Change // comment.
8212
9357a9e6
JB
82132015-02-26 Joel Brobecker <brobecker@adacore.com>
8214
8215 PR build/18033:
8216 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8217
1f10ba14
PA
82182015-02-23 Pedro Alves <palves@redhat.com>
8219
8220 * remote.c (skip_to_semicolon): New function.
8221 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
8222 special case the stop reasons that look like hex numbers
8223 upfront. Instead handle real register numbers after matching
8224 all the known stop reasons.
8225
96553a0c
DE
82262015-02-21 Doug Evans <dje@google.com>
8227
8228 PR c++/17976, symtab/17821
8229 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8230 is_in_anonymous. All callers updated.
8231 (find_symbol_in_baseclass): Ditto.
8232 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
8233 for symbols in an anonymous namespace.
8234 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8235 DW_AT_name directly.
8236 (dwarf2_name): Convert missing namespace name to
8237 CP_ANONYMOUS_NAMESPACE_STR.
8238
2db9a427
PA
82392015-02-20 Pedro Alves <palves@redhat.com>
8240
8241 * linux-nat.c (linux_handle_extended_wait): Call
8242 thread_db_notice_clone whenever a new clone LWP is detected.
8243 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8244 functions.
8245 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8246 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8247 (linux_unstop_all_lwps): Declare.
8248 * linux-thread-db.c (struct thread_get_info_inout): Delete.
8249 (thread_get_info_callback): Delete.
8250 (thread_from_lwp): Use td_thr_get_info and record_thread.
8251 (thread_db_attach_lwp): Delete.
8252 (thread_db_notice_clone): New function.
8253 (try_thread_db_load_1): If /proc is mounted and shows the
8254 process'es task list, walk over all LWPs and call thread_from_lwp
8255 instead of relying on td_ta_thr_iter.
8256 (attach_thread): Don't call check_thread_signals here. Split the
8257 tail part of the function (which adds the thread to the core GDB
8258 thread list) to ...
8259 (record_thread): ... this function. Call check_thread_signals
8260 here.
8261 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
8262 call thread_from_lwp.
8263 (thread_db_update_thread_list): Rename to ...
8264 (thread_db_update_thread_list_org): ... this.
8265 (thread_db_update_thread_list): New function.
8266 (thread_db_find_thread_from_tid): Delete.
8267 (thread_db_get_ada_task_ptid): Simplify.
8268 * nat/linux-procfs.c: Include <sys/stat.h>.
8269 (linux_proc_task_list_dir_exists): New function.
8270 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8271
3b27ef47
PA
82722015-02-20 Pedro Alves <palves@redhat.com>
8273
8274 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8275 main LWP. Handle the case of waitpid returning 0 if we're already
8276 attached to the LWP. Don't set the LWP's last_resume_kind to
8277 resume_stop if we already knew about the LWP.
8278 (linux_nat_filter_event): Add debug logs.
8279
1cc28231
PA
82802015-02-20 Pedro Alves <palves@redhat.com>
8281
8282 * target.h (forward_target_decr_pc_after_break): Delete
8283 declaration.
8284
5c5019c2
PA
82852015-02-20 Pedro Alves <palves@redhat.com>
8286
8287 PR threads/18006
8288 * linux-thread-db.c (thread_get_info_callback): Return early if
8289 the thread's lwp id is -1.
8290
f3978e91
JB
82912015-02-20 Joel Brobecker <brobecker@adacore.com>
8292
8293 GDB 7.9 released.
8294
ffdf88ec
SE
82952015-02-19 Steve Ellcey <sellcey@imgtec.com>
8296
8297 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8298 (dtrace_get_probes) Change type of variable 'dof'.
8299
c9587f88
AT
83002015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8301
8302 PR breakpoints/16812
8303 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8304 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8305 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8306
53cf2ee0
DT
83072015-02-19 David Taylor <dtaylor@emc.com>
8308
8309 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8310
acfe0940
PP
83112015-02-18 Patrick Palka <patrick@parcs.ath.cx>
8312
8313 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8314 function.
8315 (tui_putc): Don't call tui_handle_resize_during_io.
8316 (tui_getc): Likewise.
8317 (tui_mld_getc): Likewise.
8318 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8319 (tui_sigwinch_token): New static variable.
8320 (tui_initialize_win): Adjust documentation. Set
8321 tui_sigwinch_token.
8322 (tui_async_resize_screen): New asynchronous callback.
8323 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8324 invoke tui_async_resize_screen.
8325
f6a88844
JM
83262015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
8327
8328 * configure: Regenerated.
8329 * configure.ac: Use GDB_AC_TRANSFORM.
8330 * Makefile.in (aclocal_m4_deps): Added transform.m4.
8331 * acinclude.m4: sinclude transform.m4.
8332 * transform.m4: New file.
8333 (GDB_AC_TRANSFORM): New macro.
8334
b05e3b0d
JM
83352015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8336
8337 * NEWS: Announce the support for DTrace SDT probes.
8338
c3e3045e
JM
83392015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8340
8341 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8342 (amd64_dtrace_parse_probe_argument): New function.
8343 (amd64_dtrace_probe_is_enabled): Likewise.
8344 (amd64_dtrace_enable_probe): Likewise.
8345 (amd64_dtrace_disable_probe): Likewise.
8346 (amd64_linux_init_abi): Register the
8347 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8348 `gdbarch_dtrace_disable_probe' and
8349 `gdbarch_dtrace_probe_is_enabled' hooks.
8350 (amd64_dtrace_disabled_probe_sequence_1): New constant.
8351 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8352 (amd64_dtrace_enable_probe_sequence): Likewise.
8353 (amd64_dtrace_disable_probe_sequence): Likewise.
8354
d4777acb
JM
83552015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8356
8357 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8358 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8359 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8360 handle ELF files.
8361 * Makefile.in (SFILES): dtrace-probe.c added.
8362 * configure: Regenerate.
8363 * dtrace-probe.c: New file.
8364 (SHT_SUNW_dof): New constant.
8365 (dtrace_probe_type): New enum.
8366 (dtrace_probe_arg): New struct.
8367 (dtrace_probe_arg_s): New typedef.
8368 (struct dtrace_probe_enabler): New struct.
8369 (dtrace_probe_enabler_s): New typedef.
8370 (dtrace_probe): New struct.
8371 (dtrace_probe_is_linespec): New function.
8372 (dtrace_dof_sect_type): New enum.
8373 (dtrace_dof_dofh_ident): Likewise.
8374 (dtrace_dof_encoding): Likewise.
8375 (DTRACE_DOF_ENCODE_LSB): Likewise.
8376 (DTRACE_DOF_ENCODE_MSB): Likewise.
8377 (dtrace_dof_hdr): New struct.
8378 (dtrace_dof_sect): Likewise.
8379 (dtrace_dof_provider): Likewise.
8380 (dtrace_dof_probe): Likewise.
8381 (DOF_UINT): New macro.
8382 (DTRACE_DOF_PTR): Likewise.
8383 (DTRACE_DOF_SECT): Likewise.
8384 (dtrace_process_dof_probe): New function.
8385 (dtrace_process_dof): Likewise.
8386 (dtrace_build_arg_exprs): Likewise.
8387 (dtrace_get_arg): Likewise.
8388 (dtrace_get_probes): Likewise.
8389 (dtrace_get_probe_argument_count): Likewise.
8390 (dtrace_can_evaluate_probe_arguments): Likewise.
8391 (dtrace_evaluate_probe_argument): Likewise.
8392 (dtrace_compile_to_ax): Likewise.
8393 (dtrace_probe_destroy): Likewise.
8394 (dtrace_gen_info_probes_table_header): Likewise.
8395 (dtrace_gen_info_probes_table_values): Likewise.
8396 (dtrace_probe_is_enabled): Likewise.
8397 (dtrace_probe_ops): New variable.
8398 (info_probes_dtrace_command): New function.
8399 (_initialize_dtrace_probe): Likewise.
8400 (dtrace_type_name): Likewise.
8401
8b367e17
JM
84022015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8403
8404 * gdbarch.sh (dtrace_parse_probe_argument): New.
8405 (dtrace_probe_is_enabled): Likewise.
8406 (dtrace_enable_probe): Likewise.
8407 (dtrace_disable_probe): Likewise.
8408 * gdbarch.c: Regenerate.
8409 * gdbarch.h: Regenerate.
8410
9aca2ff8
JM
84112015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8412
8413 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8414 stap_probe_ops for `enable_probe' and `disable_probe'.
8415 * probe.c (enable_probes_command): New function.
8416 (disable_probes_command): Likewise.
8417 (_initialize_probe): Define the cli commands `enable probe' and
8418 `disable probe'.
8419 (parse_probe_linespec): New function.
8420 (info_probes_for_ops): Use parse_probe_linespec.
8421 * probe.h (probe_ops): New hooks `enable_probe' and
8422 `disable_probe'.
8423
03e98035
JM
84242015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8425
8426 * probe.c (compute_probe_arg): Moved from stap-probe.c
8427 (compile_probe_arg): Likewise.
8428 (probe_funcs): Likewise.
8429 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8430 (compile_probe_arg): Likewise.
8431 (probe_funcs): Likewise.
8432
6f9b8491
JM
84332015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8434
8435 * probe.c (print_ui_out_not_applicables): New function.
8436 (exists_probe_with_pops): Likewise.
8437 (info_probes_for_ops): Do not include column headers for probe
8438 types for which no probe has been actually found on any object.
8439 Also invoke `print_ui_out_not_applicables' in order to match the
8440 column rows with the header when probes of several types are
8441 listed.
8442 Print the "Type" column.
8443 * probe.h (probe_ops): Added a new probe operation `type_name'.
8444 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8445 (stap_type_name): New function.
8446
69efdff1
PP
84472015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8448
8449 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8450 (key_is_command_char): Delete.
8451
f8e5e23e
PA
84522015-02-17 Pedro Alves <palves@redhat.com>
8453
8454 * tui/tui.c (tui_enable): Resize windows before anything
8455 might show a window.
8456
9f2e0721
MO
84572015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
8458
8459 PR gdb/17984
8460 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8461 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8462 call.
8463 * aarch64-tdep.h (tdesc_aarch64): Declare.
8464
171e6b1c
MW
84652015-02-12 Mark Wielaard <mjw@redhat.com>
8466
8467 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8468
d5ff0482
DE
84692015-02-13 Doug Evans <dje@google.com>
8470
8471 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8472 anonymous_namespace to is_in_anonymous for consistency with the rest
8473 of the file.
8474 (cp_lookup_bare_symbol): Fix typo in comment.
8475 (cp_search_static_and_baseclasses): Ditto.
8476 (search_symbol_list): Use vertical space in comment better.
8477 (reset_directive_searched): Ditto. Fix typo.
8478 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8479
9f04ac5f
YQ
84802015-02-13 Yao Qi <yao.qi@arm.com>
8481
8482 * MAINTAINERS: Update my email address.
8483
013d0319
DE
84842015-02-12 Doug Evans <dje@google.com>
8485
b615dd20 8486 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 8487
9a7e538e
DE
84882015-02-12 Doug Evans <dje@google.com>
8489
8490 * completer.c (complete_line): Remove incorrect comment.
8491
e1fcd575
JK
84922015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8493
8494 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8495 (py_print_frame): Use RETURN_MASK_ERROR.
8496
b99bf4e3
JK
84972015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8498
8499 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8500 function comment. Wrap all function that can throw in cleanups.
8501 (gdbpy_apply_frame_filter): Wrap all function that can throw in
8502 cleanups.
8503
800eb1ce
JK
85042015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8505
8506 * python/py-framefilter.c (py_print_frame): Substitute goto error.
8507 Remove the error label.
8508
34019068
JK
85092015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8510
8511 * python/py-framefilter.c (py_print_frame): Put conditional code paths
8512 with goto first, indent the former else codepath left. Put variable
8513 'elided' to a new inner block.
8514
8d4a54e2
JK
85152015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8516
8517 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8518
18ad82c1
PA
85192015-02-11 Pedro Alves <palves@redhat.com>
8520
8521 * xcoffread.c (within_function): Delete.
8522
e36122e9
TT
85232015-02-11 Tom Tromey <tromey@redhat.com>
8524 Pedro Alves <palves@redhat.com>
8525
8526 * breakpoint.c (base_breakpoint_ops): Delete.
8527 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8528 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8529 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8530 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8531 * python/py-arch.c (arch_object_type): Make extern.
8532 * python/py-block.c (block_syms_iterator_object_type): Make extern.
8533 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8534 * python/py-cmd.c (cmdpy_object_type): Make extern.
8535 * python/py-continueevent.c (continue_event_object_type)
8536 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8537 parameter. Update all callers.
8538 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8539 * python/py-exitedevent.c (exited_event_object_type): Make extern.
8540 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8541 * python/py-function.c (fnpy_object_type): Make extern.
8542 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8543 * python/py-infevents.c (call_pre_event_object_type)
8544 (inferior_call_post_event_object_type).
8545 (memory_changed_event_object_type): Make extern.
8546 * python/py-infthread.c (thread_object_type): Make extern.
8547 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8548 * python/py-linetable.c (linetable_entry_object_type)
8549 (linetable_object_type, ltpy_iterator_object_type): Make extern.
8550 * python/py-newobjfileevent.c (new_objfile_event_object_type)
8551 (clear_objfiles_event_object_type): Make extern.
8552 * python/py-objfile.c (objfile_object_type): Make extern.
8553 * python/py-param.c (parmpy_object_type): Make extern.
8554 * python/py-progspace.c (pspace_object_type): Make extern.
8555 * python/py-signalevent.c (signal_event_object_type): Make extern.
8556 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8557 * python/py-type.c (type_object_type, field_object_type)
8558 (type_iterator_object_type): Make extern.
8559 * python/python.c (python_extension_script_ops)
8560 (python_extension_ops): Make extern.
8561 * stap-probe.c (stap_probe_ops): Make extern.
8562
0703599a
PA
85632015-02-11 Pedro Alves <pedro@codesourcery.com>
8564
8565 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8566 because the event thread is not the current thread.
8567
eaaf76ab
DE
85682015-02-11 Doug Evans <xdje42@gmail.com>
8569
8570 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8571 been initialized yet, return NULL.
8572
e7d52ed3
DE
85732015-02-11 Doug Evans <dje@google.com>
8574
8575 * symfile.h (new_symfile_objfile): Delete.
8576 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8577 All callers updated.
8578
fc6b1256
PP
85792015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8580
8581 * tui/tui-io.c (tui_handle_resize_during_io): Call
8582 tui_update_gdb_sizes() after resizing the screen.
8583 * tui/tui.c (tui_enable): Resize the terminal before
8584 calling tui_update_gdb_sizes().
8585
d9080678
PP
85862015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8587
8588 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8589 line before printing a newline.
8590
9f615e3a
MW
85912015-02-11 Mark Wielaard <mjw@redhat.com>
8592
8593 * utils.c (producer_is_gcc): Return true or false.
8594
d9080678 85952015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
8596
8597 * utils.h (producer_is_gcc): Change return type to bool. Add major
8598 argument.
8599 * utils.c (producer_is_gcc): Likewise.
8600 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8601 * dwarf2read.c (check_producer): Likewise.
8602
b052c4fb
PA
86032015-02-10 Pedro Alves <palves@redhat.com>
8604
8605 * infrun.c (displaced_step_fixup): Switch to the event thread
8606 before calling gdbarch_displaced_step_fixup.
8607
3ac240d4
AT
86082015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8609
8610 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8611
c1cc6152
SM
86122015-02-10 Simon Marchi <simon.marchi@ericsson.com>
8613
8614 * ada-varobj.c (ada_name_of_child): Constify parent.
8615 (ada_path_expr_of_child): Same.
8616 (ada_value_of_child): Same.
8617 (ada_type_of_child): Same.
8618 * c-varobj.c (c_is_path_expr_parent): Same.
8619 (c_describe_child): Same.
8620 (c_name_of_child): Same.
8621 (c_value_of_child): Same.
8622 (c_type_of_child): Same.
8623 (cplus_number_of_children): Same.
8624 (cplus_describe_child): Constify var.
8625 (cplus_name_of_child): Constify parent.
8626 (cplus_value_of_child): Same.
8627 (cplus_type_of_child): Same.
8628 * jv-varobj.c (java_name_of_child): Same.
8629 (java_value_of_child): Same.
8630 (java_type_of_child): Same.
8631 * varobj.c (value_of_child): Same.
8632 (varobj_default_is_path_expr_parent): Constify var, parent and return
8633 value.
8634 (varobj_get_path_expr): Constify var, modify path_expr through
8635 mutable_var.
8636 (install_new_value): Constify parent.
8637 (value_of_child): Constify parent.
8638 * varobj.h (struct varobj): Constify parent.
8639 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8640 type_of_child.
8641 (varobj_get_path_expr): Constify var.
8642 (varobj_get_path_expr_parent): Constify var and return value.
8643
c1ee9414
LM
86442015-02-10 Luis Machado <lgustavo@codesourcery.com>
8645
8646 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
8647 (arm_prologue_this_id): Move PC and SP limit checks to
8648 arm_prologue_unwind_stop_reason.
8649 (arm_prologue_unwind) <stop_reason> : Set to
8650 arm_prologue_unwind_stop_reason.
8651
f7de9aab
MW
86522015-02-09 Mark Wielaard <mjw@redhat.com>
8653
8654 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8655 DW_LANG_Fortran08 as language_fortran.
8656
0b24eb2d
SDJ
86572015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
8658
8659 PR remote/17946
8660 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8661 of pointer against char.
8662
a2c2acaf
MW
86632015-02-09 Mark Wielaard <mjw@redhat.com>
8664
8665 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
8666 (c_type_print_modifier): Likewise.
8667 * dwarf2read.c (read_tag_atomic_type): New function.
8668 (read_type_die_1): Handle DW_TAG_atomic_type.
8669 * gdbtypes.c (make_atomic_type): New function.
8670 (recursive_dump_type): Handle TYPE_ATOMIC.
8671 * gdbtypes.h (enum type_flag_values): Renumber.
8672 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
8673 (TYPE_ATOMIC): New macro.
8674 (make_atomic_type): Declare.
8675
31fd9caa
MM
86762015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8677
8678 * btrace.c (ftrace_find_call): Skip gaps.
8679 (ftrace_new_function): Initialize level.
8680 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
8681 (ftrace_new_switch): Update
8682 level computation.
8683 (ftrace_new_gap): New.
8684 (ftrace_update_function): Create new function after gap.
8685 (btrace_compute_ftrace_bts): Create gap on error.
8686 (btrace_stitch_bts): Update parameters. Clear trace if it
8687 becomes empty.
8688 (btrace_stitch_trace): Update parameters. Update callers.
8689 (btrace_clear): Reset the number of gaps.
8690 (btrace_insn_get): Return NULL if the iterator points to a gap.
8691 (btrace_insn_number): Return zero if the iterator points to a gap.
8692 (btrace_insn_end): Allow gaps at the end.
8693 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
8694 (btrace_find_insn_by_number): Assert that the found iterator does
8695 not point to a gap.
8696 (btrace_call_next, btrace_call_prev): Assert that the last function
8697 is not a gap.
8698 * btrace.h (btrace_bts_error): New.
8699 (btrace_function): Update comment.
8700 (btrace_function) <insn, insn_offset, number>: Update comment.
8701 (btrace_function) <errcode>: New.
8702 (btrace_thread_info) <ngaps>: New.
8703 (btrace_thread_info) <replay>: Update comment.
8704 (btrace_insn_get): Update comment.
8705 * record-btrace.c (btrace_ui_out_decode_error): New.
8706 (record_btrace_info): Print number of gaps.
8707 (btrace_insn_history, btrace_call_history): Call
8708 btrace_ui_out_decode_error for gaps.
8709 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
8710
afb778a2
MM
87112015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8712
8713 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
8714 * nat/linux-btrace.c: (btrace_this_cpu): New.
8715 (cpu_supports_bts): Call btrace_this_cpu.
8716 (intel_supports_bts): Add cpu parameter.
8717
7d5c24b3
MM
87182015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8719
8720 * btrace.h (btrace_insn_class): New.
8721 (btrace_insn) <size, iclass>: New.
8722 * btrace.c (ftrace_find_call): Update parameters. Update users.
8723 Use instruction classification.
8724 (ftrace_new_return): Update parameters. Update users.
8725 (ftrace_update_function): Update parameters. Update users. Use
8726 instruction classification.
8727 (ftrace_update_insns): Update parameters. Update users.
8728 (ftrace_classify_insn): New.
8729 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
8730 TRY_CATCH around call to gdb_insn_length.
8731
76235df1
MM
87322015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8733
8734 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
8735 Update parameters. Update users.
8736
d33501a5
MM
87372015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8738
8739 * btrace.c (parse_xml_btrace_conf_bts): Add size.
8740 (btrace_conf_bts_attributes): New.
8741 (btrace_conf_children): Add attributes.
8742 * common/btrace-common.h (btrace_config_bts): New.
8743 (btrace_config)<bts>: New.
8744 (btrace_config): Update comment.
8745 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
8746 Use config.
8747 * features/btrace-conf.dtd: Increment version. Add size
8748 attribute to bts element.
8749 * record-btrace.c (set_record_btrace_bts_cmdlist,
8750 show_record_btrace_bts_cmdlist): New.
8751 (record_btrace_adjust_size, record_btrace_print_bts_conf,
8752 record_btrace_print_conf, cmd_set_record_btrace_bts,
8753 cmd_show_record_btrace_bts): New.
8754 (record_btrace_info): Call record_btrace_print_conf.
8755 (_initialize_record_btrace): Add commands.
8756 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
8757 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
8758 (btrace_sync_conf): Synchronize bts size.
8759 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
8760 * NEWS: Announce new commands and new packets.
8761
f4abbc16
MM
87622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8763
8764 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
8765 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
8766 (x86_linux_btrace_conf): New.
8767 (x86_linux_create_target): Initialize to_btrace_conf.
8768 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
8769 Check format. Split into this and ...
8770 (linux_enable_bts): ... this.
8771 (linux_btrace_conf): New.
8772 (perf_event_skip_record): Renamed into ...
8773 (perf_event_skip_bts_record): ... this. Updated users.
8774 (linux_disable_btrace): Split into this and ...
8775 (linux_disable_bts): ... this.
8776 (linux_read_btrace): Check format.
8777 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
8778 (linux_btrace_conf): New.
8779 (btrace_target_info)<ptid>: Moved.
8780 (btrace_target_info)<conf>: New.
8781 (btrace_target_info): Split into this and ...
8782 (btrace_tinfo_bts): ... this. Updated users.
8783 * btrace.c (btrace_enable): Update parameters.
8784 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
8785 (btrace_conf_children, btrace_conf_attributes)
8786 (btrace_conf_elements): New.
8787 * btrace.h (btrace_enable): Update parameters.
8788 (btrace_conf, parse_xml_btrace_conf): New.
8789 * common/btrace-common.h (btrace_config): New.
8790 * feature/btrace-conf.dtd: New.
8791 * record-btrace.c (record_btrace_conf): New.
8792 (record_btrace_cmdlist): New.
8793 (record_btrace_enable_warn, record_btrace_open): Pass
8794 &record_btrace_conf.
8795 (record_btrace_info): Print recording format.
8796 (cmd_record_btrace_bts_start): New.
8797 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
8798 (_initialize_record_btrace): Add "record btrace bts" subcommand.
8799 Add "record bts" alias command.
8800 * remote.c (remote_state)<btrace_config>: New.
8801 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
8802 (remote_protocol_features): Add qXfer:btrace-conf:read.
8803 (remote_open_1): Call remote_btrace_reset.
8804 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
8805 (btrace_target_info)<conf>: New.
8806 (btrace_sync_conf, btrace_read_config): New.
8807 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
8808 btrace_read_conf.
8809 (remote_btrace_conf): New.
8810 (init_remote_ops): Initialize to_btrace_conf.
8811 (_initialize_remote): Add qXfer:btrace-conf packet.
8812 * target.c (target_enable_btrace): Update parameters.
8813 (target_btrace_conf): New.
8814 * target.h (target_enable_btrace): Update parameters.
8815 (target_btrace_conf): New.
8816 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
8817 (target_ops)<to_enable_btrace>: Update parameters and comment.
8818 (target_ops)<to_btrace_conf>: New.
8819 * target-delegates: Regenerate.
8820 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
8821 (target_debug_print_const_struct_btrace_target_info_p): New.
8822 * NEWS: Announce new command and new packet.
8823
aadf7753
MM
88242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8825
8826 * nat/linux-btrace.h (perf_event_buffer): New.
8827 (btrace_target_info) <buffer, size, data_head>: Replace with ...
8828 <bts>: ... this.
8829 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
8830 (perf_event_buffer_size, perf_event_buffer_begin)
8831 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
8832 Updated users.
8833 (perf_event_new_data): New.
8834
043c3577
MM
88352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8836
8837 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
8838 * record-btrace.c (record_btrace_open): Remove call to
8839 target_supports_btrace.
8840 * remote.c (remote_supports_btrace): Update parameters.
8841 * target.c (target_supports_btrace): Update parameters.
8842 * target.h (to_supports_btrace, target_supports_btrace): Update
8843 parameters.
8844 * target-delegates.c: Regenerate.
8845 * target-debug.h (target_debug_print_enum_btrace_format): New.
8846 * nat/linux-btrace.c
8847 (kernel_supports_btrace): Rename into ...
8848 (kernel_supports_bts): ... this. Update users. Update warning text.
8849 (intel_supports_btrace): Rename into ...
8850 (intel_supports_bts): ... this. Update users.
8851 (cpu_supports_btrace): Rename into ...
8852 (cpu_supports_bts): ... this. Update users.
8853 (linux_supports_btrace): Update parameters. Split into this and ...
8854 (linux_supports_bts): ... this.
8855 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
8856
734b0e4b
MM
88572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8858
8859 * Makefile.in (SFILES): Add common/btrace-common.c.
8860 (COMMON_OBS): Add common/btrace-common.o.
8861 (btrace-common.o): Add build rules.
8862 * btrace.c (parse_xml_btrace): Update parameters.
8863 (parse_xml_btrace_block): Set format field.
8864 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
8865 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
8866 (btrace_compute_ftrace): Split into this and...
8867 (btrace_compute_ftrace_bts): ...this.
8868 (btrace_stitch_trace): Split into this and...
8869 (btrace_stitch_bts): ...this.
8870 * btrace.h (parse_xml_btrace): Update parameters.
8871 (make_cleanup_btrace_data): New.
8872 * common/btrace-common.c: New.
8873 * common/btrace-common.h: Include common-defs.h.
8874 (btrace_block_s): Update comment.
8875 (btrace_format): New.
8876 (btrace_format_string): New.
8877 (btrace_data_bts): New.
8878 (btrace_data): New.
8879 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
8880 * remote.c (remote_read_btrace): Update parameters.
8881 * target.c (target_read_btrace): Update parameters.
8882 * target.h (target_read_btrace): Update parameters.
8883 (target_ops)<to_read_btrace>: Update parameters.
8884 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
8885 * target-delegates.c: Regenerate.
8886 * target-debug (target_debug_print_struct_btrace_data_p): New.
8887 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
8888 (linux_read_bts): ...this.
8889 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
8890
bd2e0e9e
DE
88912015-02-06 Doug Evans <dje@google.com>
8892
8893 * remote-m32r-sdi.c: Include symfile.h.
8894
f176c4b5
DE
88952015-02-06 Doug Evans <dje@google.com>
8896
8897 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
8898 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
8899 to here.
8900
d6c146e9
PA
89012015-02-06 Pedro Alves <palves@redhat.com>
8902
8903 * linux-thread-db.c (find_new_threads_callback): Add debug output.
8904
b9d61307
SM
89052015-02-06 Simon Marchi <simon.marchi@ericsson.com>
8906
8907 PR gdb/15678
8908 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
8909 (enable_count_command): Check args for NULL value.
8910
e9fbd043
DE
89112015-02-05 Doug Evans <xdje42@gmail.com>
8912
8913 * guile/scm-frame.c: Fix spelling errors in a comment.
8914
881d5d5d
JK
89152015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8916
8917 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
8918 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
8919 return type.
8920
20ba1ce6
PA
89212015-02-04 Pedro Alves <palves@redhat.com>
8922
8923 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
8924 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
8925 returns true.
8926 (resume_stopped_resumed_lwps): Don't check whether the thread is
8927 marked as executing.
8928 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
8929
f962539a
AA
89302015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8931
8932 * regset.h (struct regset): Add flags field.
8933 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
8934 * corelow.c (get_core_register_section): Add warning if the size
8935 exceeds the requested size and the regset does not have the
8936 REGSET_VARIABLE_SIZE flag set.
8937 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
8938 flag.
8939 * armbsd-tdep.c (armbsd_gregset): Likewise.
8940 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8941 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
8942 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
8943 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
8944
dde9acd6
AA
89452015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8946
8947 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
8948 For ".reg-xstate", explicitly specify the requested section size
8949 via X86_XSTATE_SIZE instead of just 0 on input and
8950 X86_XSTATE_MAX_SIZE on output.
8951 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
8952 Likewise.
8953
1528345d
AA
89542015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8955
8956 PR corefiles/17808:
8957 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
8958 function type, particularly its SIZE parameter.
8959 * gdbarch.h: Regenerate.
8960 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
8961 actual against required size using ">=" instead of "==".
8962 (amd64_collect_fpregset): Likewise.
8963 * i386-tdep.c (i386_supply_gregset): Likewise.
8964 (i386_collect_gregset): Likewise.
8965 (i386_supply_fpregset): Likewise.
8966 (i386_collect_fpregset): Likewise.
8967 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
8968 (mips_fill_gregset_wrapper): Likewise.
8969 (mips_supply_fpregset_wrapper): Likewise.
8970 (mips_fill_fpregset_wrapper): Likewise.
8971 (mips64_supply_gregset_wrapper): Likewise.
8972 (mips64_fill_gregset_wrapper): Likewise.
8973 (mips64_supply_fpregset_wrapper): Likewise.
8974 (mips64_fill_fpregset_wrapper): Likewise.
8975 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
8976 (am33_supply_fpregset_method): Likewise.
8977 (am33_collect_gregset_method): Likewise.
8978 (am33_collect_fpregset_method): Likewise.
8979
518be979
DE
89802015-02-04 Doug Evans <dje@google.com>
8981 Pedro Alves <palves@redhat.com>
8982 Eli Zaretskii <eliz@gnu.org>
8983
8984 PR tui/17810
8985 * tui/tui-command.c (tui_refresh_cmd_win): New function.
8986 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
8987 * tui/tui-file.c: #include tui/tui-command.h.
8988 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
8989 (tui_file_flush): Refresh command window if stream is gdb_stdout.
8990 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
8991
80bd5fab
PA
89922015-02-04 Pedro Alves <palves@redhat.com>
8993
8994 Fix build breakage.
8995 * event-loop.c (gdb_do_one_event): Add default switch case.
8996
a7606d80
JK
89972015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8998
8999 Filter out inferior gcc option -fpreprocessed.
9000 * compile/compile.c (filter_args): New function.
9001 (get_args): Use it.
9002
70b66289
PA
90032015-02-03 Pedro Alves <palves@redhat.com>
9004
9005 * event-loop.c: Don't declare nor define a queue type for
9006 gdb_event_p.
9007 (event_queue): Delete.
9008 (create_event, create_file_event, gdb_event_xfree)
9009 (initialize_event_loop, process_event): Delete.
9010 (gdb_do_one_event): Return as soon as one event is handled.
9011 (handle_file_event): Change prototype. Used the passed in
9012 file_handler pointer and ready_mask instead of looping over all
9013 file handlers.
9014 (gdb_wait_for_event): Update the poll/select timeouts before
9015 blocking. Run event handlers directly instead of queueing events.
9016 Return as soon as one event is handled.
9017 (struct async_event_handler_data): Delete.
9018 (invoke_async_event_handler): Delete.
9019 (check_async_event_handlers): Change return type to int. Run
9020 event handlers directly instead of queueing events. Return as
9021 soon as one event is handled.
9022 (handle_timer_event): Delete.
9023 (update_wait_timeout): New function, factored out from
9024 poll_timers.
9025 (poll_timers): Reimplement.
9026 * event-loop.h (initialize_event_loop): Delete declaration.
9027 * top.c (gdb_init): Don't call initialize_event_loop.
9028
b7d2e916
PA
90292015-02-03 Pedro Alves <palves@redhat.com>
9030
9031 * event-loop.c (clear_async_event_handler): New function.
9032 * event-loop.h (clear_async_event_handler): New declaration.
9033 * record-btrace.c (record_btrace_async): New function.
9034 (init_record_btrace_ops): Install record_btrace_async.
9035 * record-full.c (record_full_async): New function.
9036 (record_full_resume): Don't mark the async event source here.
9037 (init_record_full_ops): Install record_full_async.
9038 (record_full_core_resume): Don't mark the async event source here.
9039 (init_record_full_core_ops): Install record_full_async.
9040 * remote.c (remote_async): Mark and clear the async stop reply
9041 queue event-loop token as appropriate.
9042
d9d41e78
PA
90432015-02-03 Pedro Alves <palves@redhat.com>
9044
9045 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9046 target_is_async_p instead of target_can_async.
9047 (linux_nat_wait): Use target_is_async_p instead of
9048 target_can_async. Don't enable async here.
9049 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9050 target_is_async_p instead of target_can_async.
9051
aa3de267
SM
90522015-02-02 Simon Marchi <simon.marchi@ericsson.com>
9053
9054 * varobj.h (lang_varobj_ops): Mention which return values need
9055 to be freed.
9056
2c811c0f
JB
90572015-02-02 Joel Brobecker <brobecker@adacore.com>
9058
9059 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9060
b1eedac9
JB
90612015-02-02 Joel Brobecker <brobecker@adacore.com>
9062
9063 PR gdb/17856:
9064 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9065 results found in the cache.
9066
66c168ae
JB
90672015-02-02 Joel Brobecker <brobecker@adacore.com>
9068
9069 PR gdb/17854:
9070 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9071 when allocating a new one.
9072
4bdc02b2
TT
90732015-02-01 Tom Tromey <tom@tromey.com>
9074
9075 * MAINTAINERS: Remove myself.
9076
ae6ae975
DE
90772015-01-31 Doug Evans <xdje42@gmail.com>
9078
9079 * dwarf2read.c (process_structure_scope): Update setting of
9080 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9081 * gdbtypes.c (internal_type_vptr_fieldno): New function.
9082 (set_type_vptr_fieldno): New function.
9083 (internal_type_vptr_basetype): New function.
9084 (set_type_vptr_basetype): New function.
9085 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9086 TYPE_VPTR_BASETYPE.
9087 (allocate_cplus_struct_type): Initialize vptr_fieldno.
9088 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9089 (print_cplus_stuff): ... moved here.
9090 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9091 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9092 moved to ...
9093 (struct cplus_struct_type): ... here. All uses updated.
9094 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9095 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9096 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9097 * stabsread.c (read_tilde_fields): Update setting of
9098 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9099
09e2d7c7
DE
91002015-01-31 Doug Evans <xdje42@gmail.com>
9101
9102 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9103 to self_p.
9104 (cp_print_class_member): Rename local domain to self_type.
9105 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9106 domain_type to self_type.
9107 (set_die_type) <need_gnat_info>: Handle
9108 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9109 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9110 TYPE_SPECIFIC_SELF_TYPE.
9111 * gdbtypes.c (internal_type_self_type): New function.
9112 (set_type_self_type): New function.
9113 (smash_to_memberptr_type): Rename parameter domain to self_type.
9114 Update setting of TYPE_SELF_TYPE.
9115 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9116 (smash_to_method_type): Rename parameter domain to self_type.
9117 Update setting of TYPE_SELF_TYPE.
9118 (check_stub_method): Call smash_to_method_type.
9119 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9120 (copy_type_recursive): Ditto.
9121 * gdbtypes.h (enum type_specific_kind): New value
9122 TYPE_SPECIFIC_SELF_TYPE.
9123 (struct main_type) <type_specific>: New member self_type.
9124 (struct cplus_struct_type) <fn_field.type>: Update comment.
9125 (TYPE_SELF_TYPE): Rewrite.
9126 (internal_type_self_type, set_type_self_type): Declare.
9127 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9128 self_type.
9129 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9130 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9131 TYPE_TARGET_TYPE.
9132 * stabsread.c (read_member_functions): Mark methods with
9133 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
9134 TYPE_SELF_TYPE.
9135
4bfb94b8
DE
91362015-01-31 Doug Evans <xdje42@gmail.com>
9137
9138 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9139 All uses updated.
9140
5f4ce105
DE
91412015-01-31 Doug Evans <xdje42@gmail.com>
9142
9143 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9144 or unions. Return zero if union.
9145 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
9146 (gnuv3_rtti_type): Pass already-check_typedef'd value to
9147 gnuv3_get_vtable.
9148 (compute_vtable_size): Assert only passed structs.
9149 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9150
f6b3afbf
DE
91512015-01-31 Doug Evans <xdje42@gmail.com>
9152
9153 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9154 kinds.
9155
cfb069a8
GB
91562015-01-31 Gary Benson <gbenson@redhat.com>
9157 Doug Evans <dje@google.com>
9158
9159 PR cli/9007
9160 PR cli/11920
9161 PR cli/15548
9162 * cli/cli-cmds.c (complete_command): Notify user if max-completions
9163 reached.
9164 * common/common-exceptions.h (enum errors)
9165 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9166 * completer.h (get_max_completions_reached_message): New declaration.
9167 (max_completions): Likewise.
9168 (completion_tracker_t): New typedef.
9169 (new_completion_tracker): New declaration.
9170 (make_cleanup_free_completion_tracker): Likewise.
9171 (maybe_add_completion_enum): New enum.
9172 (maybe_add_completion): New declaration.
9173 (throw_max_completions_reached_error): Likewise.
9174 * completer.c (max_completions): New global variable.
9175 (new_completion_tracker): New function.
9176 (free_completion_tracker): Likewise.
9177 (make_cleanup_free_completion_tracker): Likewise.
9178 (maybe_add_completions): Likewise.
9179 (throw_max_completions_reached_error): Likewise.
9180 (complete_line): Remove duplicates and limit result to max_completions
9181 entries.
9182 (get_max_completions_reached_message): New function.
9183 (gdb_display_match_list): Handle max_completions.
9184 (_initialize_completer): New declaration and function.
9185 * symtab.c: Include completer.h.
9186 (completion_tracker): New static variable.
9187 (completion_list_add_name): Call maybe_add_completion.
9188 (default_make_symbol_completion_list_break_on_1): Renamed from
9189 default_make_symbol_completion_list_break_on. Maintain
9190 completion_tracker across calls to completion_list_add_name.
9191 (default_make_symbol_completion_list_break_on): New function.
9192 * top.c (init_main): Set rl_completion_display_matches_hook.
9193 * tui/tui-io.c: Include completer.h.
9194 (tui_old_rl_display_matches_hook): New static global.
9195 (tui_rl_display_match_list): Notify user if max-completions reached.
9196 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9197 * NEWS (New Options): Mention set/show max-completions.
9198
e11c72c7
GB
91992015-01-31 Gary Benson <gbenson@redhat.com>
9200
9201 * symtab.c (struct add_name_data) <code>: New field.
9202 Updated comments.
9203 (add_symtab_completions): New function.
9204 (symtab_expansion_callback): Likewise.
9205 (default_make_symbol_completion_list_break_on): Set datum.code.
9206 Move minimal symbol scan before calling expand_symtabs_matching.
9207 Scan known primary symtabs for externs and statics before calling
9208 expand_symtabs_matching. Pass symtab_expansion_callback as
9209 expansion_notify argument to expand_symtabs_matching. Do not scan
9210 primary symtabs for externs and statics after calling
9211 expand_symtabs_matching.
9212
276d885b
GB
92132015-01-31 Gary Benson <gbenson@redhat.com>
9214
9215 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9216 (struct quick_symbol_functions) <expand_symtabs_matching>:
9217 New argument expansion_notify. All uses updated.
9218 (expand_symtabs_matching): New argument expansion_notify.
9219 All uses updated.
9220 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9221 Also print expansion notify.
9222 * symtab.c (expand_symtabs_matching_via_partial): Call
9223 expansion_notify whenever a partial symbol table is expanded.
9224 * dwarf2read.c (dw2_expand_symtabs_matching): Call
9225 expansion_notify whenever a symbol table is instantiated.
9226
82083d6d
DE
92272015-01-31 Doug Evans <xdje42@gmail.com>
9228
9229 * cli-out.c: #include completer.h, readline/readline.h.
9230 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9231 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9232 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9233 * cli-out.h (cli_display_match_list): Declare.
9234 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9235 (ELLIPSIS_LEN): Ditto.
9236 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9237 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9238 (gdb_fnprint, gdb_print_filename): Ditto.
9239 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9240 (gdb_display_match_list): Ditto.
9241 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9242 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9243 (mld_beep_ftype, mld_read_key_ftype): Ditto.
9244 (match_list_displayer): New struct.
9245 (gdb_display_match_list): Declare.
9246 * top.c (init_main): Set rl_completion_display_matches_hook.
9247 * tui/tui-io.c: #include completer.h.
9248 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9249 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9250 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9251 (tui_mld_getc, tui_mld_read_key): Ditto.
9252 (tui_rl_display_match_list): Rewrite.
9253 (tui_handle_resize_during_io): New arg for_completion. All callers
9254 updated.
9255
f57d2163
DE
92562015-01-31 Doug Evans <xdje42@gmail.com>
9257
9258 Add symbol lookup cache.
9259 * NEWS: Document new options and commands.
9260 * symtab.c (symbol_cache_key): New static global.
9261 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9262 (SYMBOL_LOOKUP_FAILED): New macro.
9263 (symbol_cache_slot_state): New enum.
9264 (block_symbol_cache): New struct.
9265 (symbol_cache): New struct.
9266 (new_symbol_cache_size, symbol_cache_size): New static globals.
9267 (hash_symbol_entry, eq_symbol_entry): New functions.
9268 (symbol_cache_byte_size, resize_symbol_cache): New functions.
9269 (make_symbol_cache, free_symbol_cache): New functions.
9270 (get_symbol_cache, symbol_cache_cleanup): New function.
9271 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9272 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9273 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9274 (symbol_cache_flush, symbol_cache_dump): New functions.
9275 (maintenance_print_symbol_cache): New function.
9276 (maintenance_flush_symbol_cache): New function.
9277 (symbol_cache_stats): New function.
9278 (maintenance_print_symbol_cache_statistics): New function.
9279 (symtab_new_objfile_observer): New function.
9280 (symtab_free_objfile_observer): New function.
9281 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9282 (_initialize_symtab): Init symbol_cache_key. New parameter
9283 maint symbol-cache-size. New maint commands print symbol-cache,
9284 print symbol-cache-statistics, flush-symbol-cache.
9285 Install new_objfile, free_objfile observers.
9286
e700d1b2
JB
92872015-01-31 Joel Brobecker <brobecker@adacore.com>
9288
9289 PR symtab/17855
9290 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9291 to end.
9292
9f050062
DE
92932015-01-31 Doug Evans <xdje42@gmail.com>
9294
9295 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9296 * auto-load.c: #include ctype.h.
9297 (struct auto_load_pspace_info): Replace member loaded_scripts with
9298 new members loaded_script_files, loaded_script_texts.
9299 (auto_load_pspace_data_cleanup): Update.
9300 (init_loaded_scripts_info): Update.
9301 (get_auto_load_pspace_data_for_loading): Update.
9302 (maybe_add_script_file): Renamed from maybe_add_script. All callers
9303 updated.
9304 (maybe_add_script_text): New function.
9305 (clear_section_scripts): Update.
9306 (source_script_file, execute_script_contents): New functions.
9307 (source_section_scripts): Add support for
9308 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9309 (print_scripts): New function.
9310 (auto_load_info_scripts): Also print inlined scripts.
9311 (maybe_print_unsupported_script_warning): Renamed from
9312 unsupported_script_warning_print. All callers updated.
9313 (maybe_print_script_not_found_warning): Renamed from
9314 script_not_found_warning_print. All callers updated.
9315 * extension-priv.h (struct extension_language_script_ops): New member
9316 objfile_script_executor.
9317 * extension.c (ext_lang_objfile_script_executor): New function.
9318 * extension.h (objfile_script_executor_func): New typedef.
9319 (ext_lang_objfile_script_executor): Declare.
9320 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9321 * guile/guile.c (guile_extension_script_ops): Update.
9322 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9323 * python/python.c (python_extension_script_ops): Update.
9324 (gdbpy_execute_objfile_script): New function.
9325
312809f8
EZ
93262015-01-31 Eli Zaretskii <eliz@gnu.org>
9327
9328 * tui/tui-io.c (tui_expand_tabs): New function.
9329 (tui_puts, tui_redisplay_readline): Expand TABs into the
9330 appropriate number of spaces.
9331 * tui/tui-regs.c: Include tui-io.h.
9332 (tui_register_format): Call tui_expand_tabs to expand TABs into
9333 the appropriate number of spaces.
9334 * tui/tui-io.h: Add prototype for tui_expand_tabs.
9335
b6577aab
DE
93362015-01-30 Doug Evans <dje@google.com>
9337
9338 * NEWS: "info source" command now display producer string if present.
9339 * source.c (source_info): Print producer string if present.
9340
6da58d3e
SM
93412015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9342
9343 * varobj.c (varobj_delete): Fix comment.
9344
837ce252
SM
93452015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9346
9347 * varobj.c (create_child): Modify comment.
9348
b09e2c59
SM
93492015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9350
9351 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9352 parameter.
9353 (ada_name_of_variable): Same.
9354 (ada_path_expr_of_child): Same.
9355 (ada_value_of_variable): Same.
9356 (ada_value_is_changeable_p): Same.
9357 (ada_value_has_mutated): Same.
9358 * c-varobj.c (varobj_is_anonymous_child): Same.
9359 (c_is_path_expr_parent): Same.
9360 (c_number_of_children): Same.
9361 (c_name_of_variable): Same.
9362 (c_path_expr_of_child): Same.
9363 (get_type): Same.
9364 (c_value_of_variable): Same.
9365 (cplus_number_of_children): Same.
9366 (cplus_name_of_variable): Same.
9367 (cplus_path_expr_of_child): Same.
9368 (cplus_value_of_variable): Same.
9369 * jv-varobj.c (java_number_of_children): Same.
9370 (java_name_of_variable): Same.
9371 (java_path_expr_of_child): Same.
9372 (java_value_of_variable): Same.
9373 * varobj.c (number_of_children): Same.
9374 (name_of_variable): Same.
9375 (is_root_p): Same.
9376 (varobj_ensure_python_env): Same.
9377 (varobj_get_objname): Same.
9378 (varobj_get_expression): Same.
9379 (varobj_get_display_format): Same.
9380 (varobj_get_display_hint): Same.
9381 (varobj_has_more): Same.
9382 (varobj_get_thread_id): Same.
9383 (varobj_get_frozen): Same.
9384 (dynamic_varobj_has_child_method): Same.
9385 (varobj_get_gdb_type): Same.
9386 (is_path_expr_parent): Same.
9387 (varobj_default_is_path_expr_parent): Same.
9388 (varobj_get_language): Same.
9389 (varobj_get_attributes): Same.
9390 (varobj_is_dynamic_p): Same.
9391 (varobj_get_child_range): Same.
9392 (varobj_value_has_mutated): Same.
9393 (varobj_get_value_type): Same.
9394 (number_of_children): Same.
9395 (name_of_variable): Same.
9396 (check_scope): Same.
9397 (varobj_editable_p): Same.
9398 (varobj_value_is_changeable_p): Same.
9399 (varobj_floating_p): Same.
9400 (varobj_default_value_is_changeable_p): Same.
9401
2568868e
SM
94022015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9403
9404 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9405 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9406 child->path_expr.
9407 (cplus_path_expr_of_child): Same.
9408
ca83fa81
SM
94092015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9410
9411 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9412 result.
9413 (mi_cmd_var_info_expression): Same.
9414 * varobj.c (varobj_get_expression): Mention in the comment that
9415 the result must by freed by the caller.
9416
afa269ae
SM
94172015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9418
9419 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9420 varobj_get_type.
9421 (varobj_update_one): Same.
9422 * varobj.c (update_type_if_necessary): Free curr_type_str and
9423 new_type_str.
9424 (varobj_get_type): Specify in comment that the result needs to be
9425 freed by the caller.
9426
cd366ee8
DE
94272015-01-29 Doug Evans <dje@google.com>
9428
9429 PR symtab/17890
9430 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9431
38360086
MW
94322015-01-25 Mark Wielaard <mjw@redhat.com>
9433
9434 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9435 * utils.c (producer_is_gcc_ge_4): Likewise.
9436 (producer_is_gcc): New function.
9437 * utils.h (producer_is_gcc): New declaration.
9438
df25ebbd
JB
94392015-01-29 Joel Brobecker <brobecker@adacore.com>
9440
9441 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9442 kind.
9443 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9444 parameter by "addr_stack" parameter.
9445 (resolve_dynamic_range): Replace "addr" parameter by
9446 "stack_addr" parameter. Update function documentation.
9447 Update code accordingly.
9448 (resolve_dynamic_array, resolve_dynamic_union)
9449 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9450 (resolve_dynamic_type): Update code, following the changes made
9451 to resolve_dynamic_type_internal's interface.
9452 * dwarf2loc.h (struct property_addr_info): New.
9453 (dwarf2_evaluate_property): Replace "address" parameter
9454 by "addr_stack" parameter. Adjust function documentation.
9455 (struct dwarf2_offset_baton): New.
9456 (struct dwarf2_property_baton): Update documentation of
9457 field "referenced_type" to be more general. New field
9458 "offset_info" in union data field.
9459 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9460 parameter by "addr_stack" parameter. Adjust code accordingly.
9461 Add support for PROP_ADDR_OFFSET properties.
9462 * dwarf2read.c (attr_to_dynamic_prop): Add support for
9463 DW_AT_data_member_location attributes as well. Use case
9464 statements instead of if/else condition.
9465
4a0ca9ec
JB
94662015-01-29 Joel Brobecker <brobecker@adacore.com>
9467
9468 * ada-varobj.c (ada_varobj_get_array_number_of_children):
9469 Return zero if PARENT_VALUE is NULL and parent_type's
9470 range type is dynamic.
9471
ddb87a81
JB
94722015-01-29 Joel Brobecker <brobecker@adacore.com>
9473
9474 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9475 nonzero if the type's subtype is dynamic.
9476 (resolve_dynamic_range): Also resolve the range's subtype.
9477
3d7ad9b4 94782015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 9479
3d7ad9b4 9480 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
9481 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9482
3a8b707a
DE
94832015-01-27 Doug Evans <dje@google.com>
9484
9485 * NEWS: Mention gdb.Objfile.username.
9486 * python/py-objfile.c (objfpy_get_username): New function.
9487 (objfile_getset): Add "username".
9488
d35b90fb
MW
94892015-01-24 Mark Wielaard <mjw@redhat.com>
9490
9491 * stack.c (return_command): Markup warning message with _.
9492
734ae125
DE
94932015-01-24 Doug Evans <xdje42@gmail.com>
9494
9495 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9496
527f3840
JK
94972015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9498
9499 Fix 100x slowdown regression on DWZ files.
9500 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9501 (struct line_header): Add offset and offset_in_dwz.
9502 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9503 (free_line_header_voidp): New declaration.
9504 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9505 functions.
9506 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9507 (handle_DW_AT_stmt_list): Use line_header_hash.
9508 (free_line_header_voidp): New function.
9509 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9510 (dwarf_decode_lines): New parameter decode_mapping, use it.
9511 (dwarf2_free_objfile): Free line_header_hash.
9512
f7e5394d
SM
95132015-01-23 Simon Marchi <simon.marchi@ericsson.com>
9514
9515 PR gdb/17416
9516 * valops.c (value_rtti_indirect_type): Catch exception thrown by
9517 value_ind.
9518
743649fd
MW
95192015-01-15 Mark Wielaard <mjw@redhat.com>
9520
9521 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9522 DW_AT_noreturn.
9523 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9524 calling_convention an 8 bit bit field.
9525 (TYPE_NO_RETURN): New macro.
9526 * infcmd.c (finish_command): Query if function does not return
9527 normally.
9528 * stack.c (return_command): Likewise.
9529
198297aa
PA
95302015-01-23 Pedro Alves <palves@redhat.com>
9531
9532 * linux-nat.c (linux_is_async_p): New macro.
9533 (linux_nat_is_async_p):
9534 (linux_nat_terminal_inferior): Check whether the target can async
9535 instead of whether it is already async.
9536 (linux_nat_terminal_ours): Don't check whether the target is
9537 async.
9538 (linux_async_pipe): Use linux_is_async_p.
9539
253828f1
JK
95402015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9541
9542 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9543 '-ascending'.
9544 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9545 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9546 Sort tp_array using tp_array_compar.
9547 (_initialize_thread): Extend thread_apply_all_command help.
9548
f0e8c4c5
JK
95492015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9550
9551 * corelow.c (core_open): Call also thread_command.
9552 * gdbthread.h (thread_command): New prototype moved from ...
9553 * thread.c (thread_command): ... here.
9554 (thread_command): Make it global.
9555
03b79603
PA
95562015-01-22 Pedro Alves <palves@redhat.com>
9557
9558 * configure.ac [*mingw32*]: Check $curses_found instead of
9559 $prefer_curses.
9560 * configure: Regenerate.
9561 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9562 HAVE_NCURSES_NCURSES_H checks.
9563
6b8a872f
EZ
95642015-01-22 Eli Zaretskii <eliz@gnu.org>
9565
bbbbffbb 9566 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
9567 fails with the 1st arg NULL, try again with "unknown". Don't test
9568 the "cup" capability: it isn't supported by the Windows port of
9569 ncurses, but the Windows console driver is still capable of
9570 supporting TUI.
9571
4b62a76e
JK
95722015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9573
9574 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9575
82a864f9
EZ
95762015-01-22 Eli Zaretskii <eliz@gnu.org>
9577
9578 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9579 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
9580 reason that "make TAGS" is broken.
9581
b35018fd
CG
95822015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9583
9584 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9585 and check additional store instructions.
9586
ffbc4646
WW
95872015-01-21 Wei-cheng Wang <cole945@gmail.com>
9588
9589 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9590
ddeca1df
WW
95912015-01-21 Wei-cheng Wang <cole945@gmail.com>
9592
9593 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9594 ppc_canonicalize_syscall, ppc_linux_syscall_record,
9595 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9596 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9597 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9598 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9599 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9600 ppc_process_record_op19, ppc_process_record_op31,
9601 ppc_process_record_op59, ppc_process_record_op60,
9602 ppc_process_record_op63): Likewise.
9603
049bb5de
JB
96042015-01-20 Joel Brobecker <brobecker@adacore.com>
9605
9606 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9607 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9608 strerror.
9609
42b87c63 96102015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
9611
9612 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9613 ppc_process_record_op31, ppc_process_record_op59,
9614 ppc_process_record_op60, ppc_process_record_op63,
9615 ppc_process_record): Fix -Wformat warning.
9616 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9617 Remove unused variables.
9618
569340fc
CG
96192015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
9620
9621 * MAINTAINERS (Write After Approval): Add "Chen Gang".
9622
63413d85
EZ
96232015-01-19 Eli Zaretskii <eliz@gnu.org>
9624
9625 * configure.ac [*mingw32*]: Only add windows-termcap.o to
9626 CONFIG_OBS if not building with a curses library.
9627 * configure: Regenerate.
9628
9629 * windows-termcap.c: Include defs.h. Make the whole body empty if
9630 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9631 HAVE_NCURSES_NCURSES_H is defined.
9632
16d8013c
JB
96332015-01-19 Joel Brobecker <brobecker@adacore.com>
9634
9635 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9636 from end of line to start of next line.
9637
cf90fd9a
WW
96382015-01-17 Wei-cheng Wang <cole945@gmail.com>
9639
9640 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9641 Scan PLT stub backward for reverse debugging.
9642 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9643
b4cdae6f
WW
96442015-01-17 Wei-cheng Wang <cole945@gmail.com>
9645 Ulrich Weigand <uweigand@de.ibm.com>
9646
9647 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9648 gdb_target_obs.
9649 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
9650 record.
9651 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
9652 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
9653 (ppc_linux_init_abi): Set process_record, process_record_signal.
9654 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
9655 ppc_linux_record_tdep to gdbarch_tdep.
9656 (ppc_process_record): New declaration.
9657 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
9658 ppc_process_record_op19, ppc_process_record_op31,
9659 ppc_process_record_op59, ppc_process_record_op60,
9660 ppc_process_record_op63, ppc_process_record): New functions.
9661
2608dbf8
WW
96622015-01-17 Wei-cheng Wang <cole945@gmail.com>
9663
9664 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9665 rs6000_in_function_epilogue_frame_p and add an argument
9666 for frame_info.
9667 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9668 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9669 New functions.
9670 (rs6000_epilogue_frame_unwind): New.
9671 (rs6000_gdbarch_init): Append epilogue unwinder.
9672
4c347be6
SDJ
96732015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9674
9675 * nat/linux-personality.c: Replace "#ifndef
9676 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
9677 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
9678 systems.
9679
9f2850ba
EZ
96802015-01-16 Eli Zaretskii <eliz@gnu.org>
9681
6cdb25f4
EZ
9682 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9683 functions.
9684 (_initialize_tui_win) <border-kind, border-mode>:
9685 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
9686 (tui_set_tab_width_command): Fix the commentary.
9687
6cdb25f4
EZ
9688 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9689
bf555842
EZ
9690 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9691 Doc fix.
cb86fcc1
EZ
9692 (tui_set_tab_width_command): Delete and recreate the source and
9693 the disassembly windows, to show the effect of the changed tab
9694 size immediately.
bf555842 9695
9f2850ba
EZ
9696 * tui/tui-data.h (LINE_PREFIX): Make shorter
9697 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
9698 "Thread NNNNN.XXXX" thread ID notation on Windows.
9699
95761b2d
JK
97002015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 Fix gcc-5 compilation.
9703 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
9704
8cc73a39
SDJ
97052015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9706
9707 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
9708 (linux-personality.o): New rule.
9709 * common/common-defs.h: Include <stdint.h>.
9710 * config/aarch64/linux.mh (NATDEPFILES): Include
9711 linux-personality.o.
9712 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9713 * config/arm/linux.mh (NATDEPFILES): Likewise.
9714 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9715 * config/i386/linux.mh (NATDEPFILES): Likewise.
9716 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9717 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9718 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9719 * config/mips/linux.mh (NATDEPFILES): Likewise.
9720 * config/pa/linux.mh (NATDEPFILES): Likewise.
9721 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9722 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9723 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9724 * config/s390/linux.mh (NATDEPFILES): Likewise.
9725 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9726 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9727 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9728 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9729 * defs.h: Remove #include <stdint.h> (moved to
9730 common/common-defs.h).
9731 * linux-nat.c: Include nat/linux-personality.h. Remove #include
9732 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
9733 nat/linux-personality.c).
9734 (linux_nat_create_inferior): Remove code to disable address space
9735 randomization (moved to nat/linux-personality.c). Create cleanup
9736 to disable address space randomization.
9737 * nat/linux-personality.c: New file.
9738 * nat/linux-personality.h: Likewise.
9739
fb23d554
SDJ
97402015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9741
9742 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
9743 common/posix-strerror.c.
9744 (posix-strerror.o): New rule.
9745 (mingw-strerror.o): Likewise.
9746 * common/common-utils.h (safe_strerror): Move prototype to here,
9747 from utils.h.
9748 * common/common.host: New file.
9749 * common/mingw-strerror.c: Likewise.
9750 * common/posix-strerror.c: Likewise.
9751 * configure: Regenerated.
9752 * configure.ac: Source common/common.host. Add variable
9753 common_host_obs to gdb_host_obs.
9754 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
9755 gdb/common/posix-strerror.c when warning about the use of
9756 strerror.
9757 * mingw-hdep.c (safe_strerror): Remove definition; move it to
9758 common/mingw-strerror.c.
9759 * posix-hdep.c (safe_strerror): Remove definition; move it to
9760 common/posix-hdep.c.
9761 * utils.h (safe_strerror): Remove prototype; move to
9762 common/common-utils.h.
9763
3af8af43
JB
97642015-01-15 Joel Brobecker <brobecker@adacore.com>
9765
9766 GDB 7.8.2 released.
9767
bafffb51
JB
97682015-01-15 Joel Brobecker <brobecker@adacore.com>
9769
9770 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
9771 ___XA type if the array has already been fixed.
9772
cdf43629
YQ
97732015-01-14 Yao Qi <yao@codesourcery.com>
9774
9775 * Makefile.in (ppc-linux.o): New rule.
9776 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
9777 * configure.ac: AC_CHECK_FUNCS(getauxval).
9778 * config.in: Re-generated.
9779 * configure: Re-generated.
9780 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
9781 Declare.
9782 * nat/ppc-linux.c: New file.
9783 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
9784 Call ppc64_64bit_inferior_p.
9785
514c5338
YQ
97862015-01-14 Yao Qi <yao@codesourcery.com>
9787
9788 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
9789 nat/ppc-linux.h.
9790 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
9791 (PPC_FEATURE_HAS_DFP): Likewise.
9792 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9793 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9794 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9795 Include "nat/ppc-linux.h".
9796 * nat/ppc-linux.h: New file.
9797 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
9798
5589af0e
PA
97992015-01-14 Pedro Alves <palves@redhat.com>
9800
9801 PR gdb/17525
9802 * breakpoint.c: Include "interps.h".
9803 (bpstat_do_actions_1): Also check whether the interpreter is
9804 async.
9805
6c400b59
PA
98062015-01-14 Pedro Alves <palves@redhat.com>
9807
9808 PR cli/17828
9809 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
9810 reinstall if the interpreter is sync.
9811
e02c96a7
DE
98122015-01-13 Doug Evans <dje@google.com>
9813
9814 * objfiles.c (objfile_filename): New function.
9815 * objfiles.h (objfile_filename): Declare it.
9816 (objfile_name): Add function comment.
9817 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
9818 bfd file name (which may be realpath'd), and the original name.
9819
3b2f13ff
JB
98202015-01-13 Joel Brobecker <brobecker@adacore.com>
9821
9822 * NEWS: Create a new section for the next release branch.
9823 Rename the section of the current branch, now that it has
9824 been cut.
9825
b4cfe7f8
JB
98262015-01-13 Joel Brobecker <brobecker@adacore.com>
9827
9828 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
9829 * version.in: Bump version to 7.9.50.DATE-cvs.
9830
92fc2e69
JB
98312015-01-13 Joel Brobecker <brobecker@adacore.com>
9832
9833 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9834 Remove trailing new-line in argument of call to warning.
9835
f71f0b0d
JB
98362015-01-13 Joel Brobecker <brobecker@adacore.com>
9837
9838 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
9839 new-line in argument of call to "warning".
9840
04dccad0
JB
98412015-01-13 Joel Brobecker <brobecker@adacore.com>
9842
9843 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9844 in static block, then try searching for primitive types.
9845
08b13bdd
PP
98462015-01-12 Patrick Palka <patrick@parcs.ath.cx>
9847
9848 * top.h (gdb_add_history): Declare.
9849 * top.c (command_count): New variable.
9850 (gdb_add_history): New function.
9851 (gdb_safe_append_history): New static function.
9852 (quit_force): Call it.
9853 (command_line_input): Use gdb_add_history instead of
9854 add_history.
9855 * event-top.c (command_line_handler): Likewise.
9856
4ac15b59
JC
98572015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
9858
9859 PR gdb/17046
9860 * darwin-nat.c: Replace <machine/setjmp.h> #include by
9861 <setjmp.h> #include.
9862
005e54bb
DE
98632015-01-11 Doug Evans <xdje42@gmail.com>
9864
9865 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
9866
439250fb
DE
98672015-01-11 Doug Evans <xdje42@gmail.com>
9868
9869 PR gdb/15830
9870 * NEWS: The "maint demangle" command is renamed as "demangle".
9871 * demangle.c: #include cli/cli-utils.h, language.h.
9872 (demangle_command): New function.
9873 (_initialize_demangle): Add new command "demangle".
9874 * maint.c (maintenance_demangle): Stub out.
9875 (_initialize_maint_cmds): Update help text for "maint demangle",
9876 and mark as deprecated.
9877
ebf3aa72
MK
98782015-01-11 Mark Kettenis <kettenis@gnu.org>
9879
9880 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
9881 inferior_thread is a function.
9882
6bf045cd
PP
98832015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9884
9885 * Makefile.in (.y.c): Don't munge yacc's #line
9886 directives.
9887
588dcc3e
PP
98882015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9889
9890 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
9891 to prompt for input.
9892 * tui/tui-hooks.c (tui_query_hook): Remove.
9893 (tui_install_hooks): Don't set deprecated_query_hook.
9894 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
9895 height calculation. Always update the command window's cur_line.
9896
9c02b525
PA
98972015-01-09 Pedro Alves <palves@redhat.com>
9898
9899 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
9900 function.
9901 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
9902 declaration.
9903 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
9904 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
9905 stop_reason.
9906 (check_stopped_by_watchpoint): New function.
9907 (save_sigtrap): Reimplement.
9908 (linux_nat_stopped_by_watchpoint): Adjust.
9909 (linux_nat_lp_status_is_event): Delete.
9910 (stop_wait_callback): Only call save_sigtrap after storing the
9911 pending status.
9912 (status_callback): If the thread had been stopped for a breakpoint
9913 that has since been removed, discard the event and resume the LWP.
9914 (count_events_callback, select_event_lwp_callback): Use
9915 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
9916 (cancel_breakpoint): Rename to ...
9917 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9918 stopped for a software breakpoint or hardware breakpoint.
9919 (select_event_lwp): Only give preference to the stepping LWP in
9920 all-stop mode. Adjust comments.
9921 (stop_and_resume_callback): Remove references to new_pending_p.
9922 (linux_nat_filter_event): Likewise. Leave exit events of the
9923 leader thread pending here. Handle signal short circuiting here.
9924 Only call save_sigtrap after storing the pending waitstatus.
9925 (linux_nat_wait_1): Remove 'retry' label. Remove references to
9926 new_pending. Don't handle leaving events the caller is not
9927 interested in pending here, nor handle signal short-circuiting
9928 here. Also give equal priority to all LWPs that have had events
9929 in non-stop mode. If reporting a software breakpoint event,
9930 unadjust the LWP's PC.
9931 * linux-nat.h (enum lwp_stop_reason): New.
9932 (struct lwp_info) <stop_pc>: New field.
9933 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
9934 (struct lwp_info) <stop_reason>: New field.
9935 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9936
8af756ef
PA
99372015-01-09 Pedro Alves <palves@redhat.com>
9938
9939 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
9940 Set the LWP's 'resumed' flag.
9941
8a99810d
PA
99422015-01-09 Pedro Alves <palves@redhat.com>
9943
9944 * linux-nat.c (linux_resume_one_lwp): New function.
9945 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
9946 (linux_nat_resume): Use lwp_status_pending_p and
9947 linux_resume_one_lwp.
9948 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
9949 (linux_handle_extended_wait): Use linux_resume_one_lwp.
9950 (status_callback, running_callback): Use lwp_status_pending_p.
9951 (lwp_status_pending_p): New function.
9952 (stop_and_resume_callback): Use lwp_status_pending_p.
9953 (linux_nat_filter_event): Use linux_resume_one_lwp.
9954 (linux_nat_wait_1): Always use status_callback to look for an LWP
9955 with a pending status. Use linux_resume_one_lwp.
9956 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
9957 linux_resume_one_lwp.
9958
f7ce857f
PA
99592015-01-09 Pedro Alves <palves@redhat.com>
9960
9961 * breakpoint.c (bp_location_inserted_here_p): New function,
9962 factored out from ...
9963 (breakpoint_inserted_here_p): ... here. Use
9964 ALL_BP_LOCATIONS_AT_ADDR.
9965 (software_breakpoint_inserted_here_p): Use
9966 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
9967
c1a747c1
PA
99682014-01-09 Pedro Alves <palves@redhat.com>
9969
9970 Skip enabling event reporting if the kernel supports
9971 PTRACE_EVENT_CLONE.
9972 * linux-thread-db.c: Include "nat/linux-ptrace.h".
9973 (thread_db_use_events): New function.
9974 (try_thread_db_load_1): Check thread_db_use_events before enabling
9975 event reporting.
9976 (update_thread_state): New function.
9977 (attach_thread): Use it. Check thread_db_use_events before
9978 enabling event reporting.
9979 (thread_db_detach): Check thread_db_use_events before disabling
9980 event reporting.
9981 (find_new_threads_callback): Check thread_db_use_events before
9982 enabling event reporting. Update the thread's state if not using
9983 libthread_db events.
9984
a33e3959
PA
99852015-01-09 Pedro Alves <palves@redhat.com>
9986
9987 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
9988 about to wait for is > 0.
9989 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
9990 the kernel thread ID is -1.
9991
8784d563
PA
99922015-01-09 Pedro Alves <palves@redhat.com>
9993
9994 * linux-nat.c (attach_proc_task_lwp_callback): New function.
9995 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
9996 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
9997 ptrace option flags.
9998 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
9999 field.
10000 * nat/linux-procfs.c: Include <dirent.h>.
10001 (linux_proc_get_int): New parameter "warn". Handle it.
10002 (linux_proc_get_tgid): Adjust.
10003 (linux_proc_get_tracerpid): Rename to ...
10004 (linux_proc_get_tracerpid_nowarn): ... this.
10005 (linux_proc_pid_get_state): New function, factored out from
10006 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
10007 and handle it.
10008 (linux_proc_pid_is_gone): New function.
10009 (linux_proc_pid_is_stopped): Adjust.
10010 (linux_proc_pid_is_zombie_maybe_warn)
10011 (linux_proc_pid_is_zombie_nowarn): New functions.
10012 (linux_proc_pid_is_zombie): Use
10013 linux_proc_pid_is_zombie_maybe_warn.
10014 (linux_proc_attach_tgid_threads): New function.
10015 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10016 (linux_proc_get_tracerpid): Rename to ...
10017 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10018 (linux_proc_pid_is_gone): New declaration.
10019 (linux_proc_pid_is_zombie): Update comment.
10020 (linux_proc_pid_is_zombie_nowarn): New declaration.
10021 (linux_proc_attach_lwp_func): New typedef.
10022 (linux_proc_attach_tgid_threads): New declaration.
10023 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10024 use nowarn functions.
10025 (linux_ptrace_attach_fail_reason_string): Move here from
10026 gdbserver/linux-low.c and rename.
10027 (ptrace_supports_feature): If the current ptrace options are not
10028 known yet, check them now, instead of asserting.
10029 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10030 Declare.
10031
883ed13e
PA
100322015-01-09 Pedro Alves <palves@redhat.com>
10033
10034 * linux-thread-db.c (thread_db_find_new_threads_silently)
10035 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10036 (find_new_threads_once): Print debug output on gdb_stdlog.
10037
1710aab8
CG
100382015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
10039 Pedro Alves <palves@redhat.com>
10040
10041 * compile/compile.c: Include "gdb_wait.h".
10042 (do_rmdir): Check return value, and free 'zap'.
10043
b597c318
YQ
100442015-01-08 Pedro Alves <palves@redhat.com>
10045 Yao Qi <yao@codesourcery.com>
10046
10047 * dwarf2loc.c (indirect_pieced_value): Don't call
10048 gdb_sign_extend. Call extract_signed_integer instead.
10049 * utils.c (gdb_sign_extend): Remove.
10050 * utils.h (gdb_sign_extend): Remove declaration.
10051
025ac414
PM
100522015-01-07 Pierre Muller <muller@sourceware.org>
10053
10054 PR symtab/17811
10055 * stabsread.c (define_symbol): Set language for C++ special symbols.
10056
fa5af12a
PP
100572015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10058
10059 * inflow.c (initial_gdb_ttystate): Tweak comment.
10060
ea42d6f8
JB
100612015-01-07 Joel Brobecker <brobecker@adacore.com>
10062
10063 * inflow.c (set_initial_gdb_ttystate): Add empty line after
10064 comment documenting function.
10065
6a06d660
PP
100662015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10067
10068 * terminal.h (set_initial_gdb_ttystate): Declare.
10069 * inflow.c (initial_gdb_ttystate): New static variable.
10070 (set_initial_gdb_ttystate): New setter.
10071 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10072 instead of our current terminal state.
10073 * top.c (gdb_init): Call set_initial_gdb_ttystate.
10074
e810d75b
JB
100752015-01-07 Joel Brobecker <brobecker@adacore.com>
10076
10077 * guile/scm-type.c (tyscm_array_1): Add comment.
10078 * python/py-type.c (typy_array_1): Add comment.
10079
fce10a84
JB
100802015-01-06 Joel Brobecker <brobecker@adacore.com>
10081
10082 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10083 error if N2 is equal to N1 - 1.
10084
8503d6e1
JB
100852015-01-06 Joel Brobecker <brobecker@adacore.com>
10086
10087 * python/py-type.c (typy_array_1): Do not raise negative-length
10088 exception if N2 is equal to N1 - 1.
10089
4d29c0a8
DE
100902015-01-03 Doug Evans <xdje42@gmail.com>
10091
10092 * c-exp.y: Whitespace cleanup.
10093 (classify_inner_name): Remove extra ;.
10094
eaa6a9a4
MR
100952015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
10096
10097 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10098 offset signed.
10099
02fe9972
DE
101002015-01-02 Doug Evans <dje@google.com>
10101
10102 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10103
e2ada9cb
DE
101042015-01-02 Doug Evans <dje@google.com>
10105
10106 * symtab.h (struct symbol): Fix typo in comment.
10107
32d0add0
JB
101082015-01-01 Joel Brobecker <brobecker@adacore.com>
10109
10110 Update year range in copyright notice of all files.
10111
76f2b779
JB
101122015-01-01 Joel Brobecker <brobecker@adacore.com>
10113
10114 * top.c (print_gdb_version): Update copyright year to 2015.
10115
077309e2 101162015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 10117
077309e2 10118 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 10119
077309e2 10120For older changes see ChangeLog-2014.
c906108c
SS
10121\f
10122Local Variables:
10123mode: change-log
10124left-margin: 8
10125fill-column: 74
10126version-control: never
57da7796 10127coding: utf-8
c906108c 10128End:
This page took 2.612632 seconds and 4 git commands to generate.