Add missing ChangeLog entry for 15cd413a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cc1c52ad
PA
12014-07-14 Pedro Alves <palves@redhat.com>
2
3 * utils.c (prompt_for_continue): Call target_terminal_ours.
4
1e973570
PA
52014-07-14 Pedro Alves <palves@redhat.com>
6
7 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
8 catch_errors. Don't re-enable stdin or notify observers where,
9 and rethrow error.
10 (fetch_inferior_event_wrapper): Delete.
11
93d6eb10
PA
122014-07-14 Pedro Alves <palves@redhat.com>
13
14 PR gdb/17072
15 * top.c: Include "inf-loop.h".
16 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
17 field.
18 (gdb_readline_wrapper_cleanup): Make the target async again, if it
19 was async before.
20 (gdb_readline_wrapper): Store whether the target is async, and
21 make it sync.
22
0017922d
PA
232014-07-14 Pedro Alves <palves@redhat.com>
24
25 PR gdb/17072
26 * top.c (gdb_readline_wrapper_line): Tweak comment.
27 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
28 the input handler callback.
29
94696ad3
PA
302014-07-14 Pedro Alves <palves@redhat.com>
31
32 PR gdb/17072
33 * main.c: Include event-top.h.
34 (handle_command_errors): New function.
35 (catch_command_errors, catch_command_errors_const): Use it.
36
9d1e69a2
PA
372014-07-14 Pedro Alves <palves@redhat.com>
38
39 * exceptions.c (catch_command_errors, catch_command_errors_const):
40 Moved to main.c.
41 * exceptions.h (catch_command_errors_ftype)
42 (catch_command_errors_const_ftype): Moved to main.c.
43 (catch_command_errors, catch_command_errors_const): Delete
44 declarations.
45 * main.c (catch_command_errors_ftype)
46 (catch_command_errors_const_ftype): Moved here from exceptions.h.
47 (catch_command_errors, catch_command_errors_const)): Moved here
48 from exceptions.c and make static.
49
feefc97b
PA
502014-07-14 Pedro Alves <palves@redhat.com>
51
52 * exceptions.c (print_any_exception): Delete.
53 (catch_exceptions_with_msg): Use exception_print instead of
54 print_any_exception.
55 (catch_errors): Use exception_fprintf instead of
56 print_any_exception.
57 (catch_command_errors, catch_command_errors_const): Use
58 exception_print instead of print_any_exception.
59
c933f875
PA
602014-07-14 Pedro Alves <palves@redhat.com>
61
62 * infcall.c (run_inferior_call): Set 'sync_execution' while
63 running the inferior call.
64
feb6f816
PA
652014-07-14 Pedro Alves <palves@redhat.com>
66
67 * value.c (value_contents_equal): Delete function.
68 * value.h (value_contents_equal): Delete declaration.
69
d98b7a16
TT
702014-07-14 Tom Tromey <tromey@redhat.com>
71
72 PR exp/17106:
73 * gdbtypes.c (is_dynamic_type_internal): New function, from
74 is_dynamic_type.
75 (is_dynamic_type): Rewrite.
76 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
77 (resolve_dynamic_struct): Likewise.
78 (resolve_dynamic_type_internal): New function, from
79 resolve_dynamic_type.
80 (resolve_dynamic_type): Rewrite.
81
548740d6
TT
822014-07-14 Tom Tromey <tromey@redhat.com>
83
84 * target.c (target_require_runnable): Also check record_stratum.
85 Update comment.
86
808f7ab1
YQ
872014-07-11 Yao Qi <yao@codesourcery.com>
88
89 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
90 thumb_instruction_restores_sp return true.
91
540314bd
YQ
922014-07-11 Yao Qi <yao@codesourcery.com>
93
94 * arm-tdep.c (thumb_instruction_restores_sp): New function.
95 (thumb_in_function_epilogue_p): Call
96 thumb_instruction_restores_sp.
97
1db01f22
YQ
982014-07-11 Yao Qi <yao@codesourcery.com>
99
100 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
101 'add sp, #imm'.
102 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
103
3116063b
GB
1042014-07-11 Gary Benson <gbenson@redhat.com>
105
106 * amd64-linux-nat.c (gdbcore.h): Remove include.
107 (regset.h): Likewise.
108 (nat/linux-btrace.h): Likewise.
109 (btrace.h): Likewise.
110 (gdb_assert.h): Likewise.
111 (string.h): Likewise.
112 (sys/uio.h): Likewise.
113 (sys/debugreg.h): Likewise.
114 (sys/syscall.h): Likewise.
115 (sys/procfs.h): Likewise.
116 (sys/user.h): Likewise.
117 (asm/ptrace.h): Likewise.
118 (i386-nat.h): Likewise.
119 * i386-linux-nat.c (i386-nat.h): Likewise.
120 (regset.h): Likewise.
121 (target.h): Likewise.
122 (linux-nat.h): Likewise.
123 (nat/linux-btrace.h): Likewise.
124 (btrace.h): Likewise.
125 (gdb_assert.h): Likewise.
126 (string.h): Likewise.
127 (sys/uio.h): Likewise.
128 (sys/user.h): Likewise.
129 (sys/procfs.h): Likewise.
130 (sys/reg.h): Likewise.
131 (sys/debugreg.h): Likewise.
132 (ORIG_EAX): Remove definition.
133
040baaf6
GB
1342014-07-11 Gary Benson <gbenson@redhat.com>
135
136 * i386-linux-nat.h: New file.
137 * x86-linux-nat.h: Likewise.
138 * x86-linux-nat.c: Likewise.
139 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
140 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
141 * config/i386/linux64.mh (NATDEPFILES): Likewise.
142 * amd64-linux-nat.c (x86-linux-nat.h): New include.
143 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
144 (PTRACE_SETREGSET): Likewise.
145 (arch_lwp_info): Now in x86-linux-nat.c.
146 (have_ptrace_getregset): Now in x86-linux-nat.h.
147 (x86_linux_dr_get): Now in x86-linux-nat.c.
148 (x86_linux_dr_set): Likewise.
149 (x86_linux_dr_get_addr): Likewise.
150 (x86_linux_dr_get_control): Likewise.
151 (x86_linux_dr_get_status): Likewise.
152 (update_debug_registers_callback): Likewise.
153 (x86_linux_dr_set_control): Likewise.
154 (x86_linux_dr_set_addr): Likewise.
155 (x86_linux_prepare_to_resume): Likewise.
156 (x86_linux_new_thread): Likewise.
157 (x86_linux_new_fork): Likewise.
158 (x86_linux_get_thread_area): Likewise.
159 (super_post_startup_inferior): Likewise.
160 (x86_linux_child_post_startup_inferior): Likewise.
161 (AMD64_LINUX_USER64_CS): Likewise.
162 (AMD64_LINUX_X32_DS): Likewise.
163 (x86_linux_read_description): Likewise.
164 (x86_linux_enable_btrace): Likewise.
165 (x86_linux_disable_btrace): Likewise.
166 (x86_linux_teardown_btrace): Likewise.
167 (x86_linux_read_btrace): Likewise.
168 (x86_linux_create_target): Likewise.
169 (x86_linux_add_target): Likewise.
170 * i386-linux-nat.c (x86-linux-nat.h): New include.
171 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
172 (PTRACE_SETREGSET): Likewise.
173 (arch_lwp_info): Now in x86-linux-nat.c.
174 (have_ptrace_getregset): Now in x86-linux-nat.h.
175 (x86_linux_dr_get): Now in x86-linux-nat.c.
176 (x86_linux_dr_set): Likewise.
177 (x86_linux_dr_get_addr): Likewise.
178 (x86_linux_dr_get_control): Likewise.
179 (x86_linux_dr_get_status): Likewise.
180 (update_debug_registers_callback): Likewise.
181 (x86_linux_dr_set_control): Likewise.
182 (x86_linux_dr_set_addr): Likewise.
183 (x86_linux_prepare_to_resume): Likewise.
184 (x86_linux_new_thread): Likewise.
185 (x86_linux_new_fork): Likewise.
186 (x86_linux_get_thread_area): Likewise.
187 (super_post_startup_inferior): Likewise.
188 (x86_linux_child_post_startup_inferior): Likewise.
189 (AMD64_LINUX_USER64_CS): Likewise.
190 (AMD64_LINUX_X32_DS): Likewise.
191 (x86_linux_read_description): Likewise.
192 (x86_linux_enable_btrace): Likewise.
193 (x86_linux_disable_btrace): Likewise.
194 (x86_linux_teardown_btrace): Likewise.
195 (x86_linux_read_btrace): Likewise.
196 (x86_linux_create_target): Likewise.
197 (x86_linux_add_target): Likewise.
198
1aa7e42c
GB
1992014-07-11 Gary Benson <gbenson@redhat.com>
200
201 * amd64-linux-nat.c: Comment and whitespace changes.
202 * i386-linux-nat.c: Comment and whitespace changes.
203
c1e246a0
GB
2042014-07-11 Gary Benson <gbenson@redhat.com>
205
206 * amd64-linux-nat.c (x86_linux_create_target): New function.
207 (x86_linux_add_target): Likewise.
208 (_initialize_amd64_linux_nat): Delegate to the above new functions.
209 * i386-linux-nat.c (x86_linux_create_target): New function.
210 (x86_linux_add_target): Likewise.
211 (_initialize_i386_linux_nat): Delegate to the above new functions.
212
8c420b8d
GB
2132014-07-11 Gary Benson <gbenson@redhat.com>
214
215 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
216 (ps_get_thread_area): Delegate to the above in 32-bit mode.
217 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
218 (ps_get_thread_area): Delegate to the above.
219
cb1da100
GB
2202014-07-11 Gary Benson <gbenson@redhat.com>
221
222 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
223 x86_linux_read_description. All uses updated. amd64-specific
224 code conditionalized. Conditionalized i386-specific code added.
225 Redundant cast removed.
226 * i386-linux-nat.c (i386_linux_read_description): Renamed to
227 x86_linux_read_description. All uses updated. i386-specific
228 code conditionalized. Conditionalized amd64-specific code added.
229 One sizeof replaced with the actual type it is describing.
230
2acf3cd0
GB
2312014-07-11 Gary Benson <gbenson@redhat.com>
232
233 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
234 x86_linux_dr_get. All uses updated.
235 (amd64_linux_dr_set): Renamed to
236 x86_linux_dr_set. All uses updated.
237 (amd64_linux_dr_get_addr): Renamed to
238 x86_linux_dr_get_addr. All uses updated.
239 (amd64_linux_dr_get_control): Renamed to
240 x86_linux_dr_get_control. All uses updated.
241 (amd64_linux_dr_get_status): Renamed to
242 x86_linux_dr_get_status. All uses updated.
243 (amd64_linux_dr_set_control): Renamed to
244 x86_linux_dr_set_control. All uses updated.
245 (amd64_linux_dr_set_addr): Renamed to
246 x86_linux_dr_set_addr. All uses updated.
247 (amd64_linux_prepare_to_resume): Renamed to
248 x86_linux_prepare_to_resume. All uses updated.
249 (amd64_linux_new_thread): Renamed to
250 x86_linux_new_thread. All uses updated.
251 (amd64_linux_new_fork): Renamed to
252 x86_linux_new_fork. All uses updated.
253 (amd64_linux_child_post_startup_inferior): Renamed to
254 x86_linux_child_post_startup_inferior. All uses updated.
255 (amd64_linux_enable_btrace): Renamed to
256 x86_linux_enable_btrace. All uses updated.
257 (amd64_linux_disable_btrace): Renamed to
258 x86_linux_disable_btrace. All uses updated.
259 (amd64_linux_teardown_btrace): Renamed to
260 x86_linux_teardown_btrace. All uses updated.
261 (amd64_linux_read_btrace): Renamed to
262 x86_linux_read_btrace. All uses updated.
263 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
264 x86_linux_dr_get. All uses updated.
265 (i386_linux_dr_set): Renamed to
266 x86_linux_dr_set. All uses updated.
267 (i386_linux_dr_get_addr): Renamed to
268 x86_linux_dr_get_addr. All uses updated.
269 (i386_linux_dr_get_control): Renamed to
270 x86_linux_dr_get_control. All uses updated.
271 (i386_linux_dr_get_status): Renamed to
272 x86_linux_dr_get_status. All uses updated.
273 (i386_linux_dr_set_control): Renamed to
274 x86_linux_dr_set_control. All uses updated.
275 (i386_linux_dr_set_addr): Renamed to
276 x86_linux_dr_set_addr. All uses updated.
277 (i386_linux_prepare_to_resume): Renamed to
278 x86_linux_prepare_to_resume. All uses updated.
279 (i386_linux_new_thread): Renamed to
280 x86_linux_new_thread. All uses updated.
281 (i386_linux_new_fork): Renamed to
282 x86_linux_new_fork. All uses updated.
283 (i386_linux_child_post_startup_inferior): Renamed to
284 x86_linux_child_post_startup_inferior. All uses updated.
285 (i386_linux_enable_btrace): Renamed to
286 x86_linux_enable_btrace. All uses updated.
287 (i386_linux_disable_btrace): Renamed to
288 x86_linux_disable_btrace. All uses updated.
289 (i386_linux_teardown_btrace): Renamed to
290 x86_linux_teardown_btrace. All uses updated.
291 (i386_linux_read_btrace): Renamed to
292 x86_linux_read_btrace. All uses updated.
293
b9c1d481
AS
2942014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
295
296 * remote.c (extended_remote_post_attach): New function.
297 (init_extended_remote_ops): Install it as to_post_attach method.
298
7180e04a
PA
2992014-07-09 Pedro Alves <palves@redhat.com>
300
301 * infcmd.c (attach_command_post_wait): Don't call
302 target_terminal_inferior here.
303 (attach_command): Call it here instead.
304
9a9a7608
AB
3052014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
308 field.
309 * c-varobj.c (c_is_path_expr_parent): New function, moved core
310 from varobj.c, with additional checks.
311 (c_varobj_ops): Fill in is_path_expr_parent field.
312 (cplus_varobj_ops): Fill in is_path_expr_parent field.
313 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
314 field.
315 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
316 ops method.
317 (varobj_default_is_path_expr_parent): New function.
318 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
319 (varobj_default_is_path_expr_parent): Declare new function.
320
1f267ae3
MM
3212014-07-08 Markus Metzger <markus.t.metzger@intel.com>
322
323 * infcmd.c (finish_backward): Turn internal error into normal error.
324
b2ee242b
PA
3252014-07-07 Pedro Alves <palves@redhat.com>
326
8a869bca 327 PR gdb/17096
b2ee242b
PA
328 * remote.c (async_handle_remote_sigint)
329 (async_handle_remote_sigint_twice): Call
330 gdb_call_async_signal_handler instead of
331 mark_async_signal_handler.
332
38e229b2
TT
3332014-07-07 Tom Tromey <tromey@redhat.com>
334
335 * target-delegates.c: Rebuild.
336 * target.c (target_info_record): Remove.
337 * record.c (info_record_command): Unconditionally call
338 to_info_record.
339 * target.h (struct target_ops) <to_info_record>: Use
340 TARGET_DEFAULT_IGNORE.
341 (target_info_record): Remove.
342
f0f9ff95
TT
3432014-07-07 Tom Tromey <tromey@redhat.com>
344
345 * target.h (struct target_ops) <to_get_thread_local_address>: Use
346 TARGET_DEFAULT_NORETURN.
347 * target.c (generic_tls_error): New function.
348 (target_translate_tls_address): Don't search target stack.
349 * target-delegates.c: Rebuild.
350 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
351 stack.
352 * linux-thread-db.c (thread_db_get_thread_local_address):
353 Unconditionally call beneath target.
354
4a5be5ee
MK
3552014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
356
357 * cli/cli-logging.c (pop_output_files): Assign targerr to
358 gdb_stdtargerr.
359
92c3b204
AB
3602014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 * MAINTAINERS (Write After Approval): Update my email address.
363
9b11e3a7
GB
3642014-07-02 Gary Benson <gbenson@redhat.com>
365
366 * proc-service.c (ps_xfer_memory): Update comment.
367 (ps_pstop): Remove unused function.
368 (ps_pcontinue): Likewise.
369 (ps_lstop): Likewise.
370 (ps_lcontinue): Likewise.
371 (ps_lgetxregsize): Likewise.
372 (ps_lgetxregs): Likewise.
373 (ps_lsetxregs): Likewise.
374 (ps_plog): Likewise.
375 (ps_ptread): Likewise.
376 (ps_ptwrite): Likewise.
377
cf363f18
MW
3782014-07-01 Mark Wielaard <mjw@redhat.com>
379
380 * dwarf2read.c (add_array_cv_type): New function.
381 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
382 (read_tag_volatile_type): Likewise.
383
82ae6c8d
TT
3842014-07-01 Tom Tromey <tromey@redhat.com>
385
386 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
387 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
388 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
389 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
390 * command.h (cmd_cfunc_ftype): Move earlier.
391 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
392 (add_com, add_info): Use cmd_cfunc_ftype.
393
96142726
TT
3942014-06-30 Tom Tromey <tromey@redhat.com>
395
396 * symtab.c (operator_chars): Make parameters and return type
397 const.
398 (file_matches): Make "files" const.
399 (struct search_symbols_data) <files>: Now const.
400 (search_symbols): Make "regexp" and "files" parameters const.
401 Update.
402 (symtab_symbol_info): Remove cast.
403 (rbreak_command): Update.
404 * symtab.h (search_symbols): Update.
405
b67a2c6f
YQ
4062014-06-27 Yao Qi <yao@codesourcery.com>
407
408 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
409 Change parameter type to 'struct thread_info *'. Caller
410 updated.
411 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
412 Update declaration.
413 * dummy-frame.c (struct dummy_frame_id): New.
414 (dummy_frame_id_eq): New function.
415 (struct dummy_frame) <id>: Change its type to 'struct
416 dummy_frame_id'.
417 (dummy_frame_push): Add parameter ptid and save it in
418 dummy_frame_id.
419 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
420 inferior_ptid.
421 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
422 to inferior_ptid.
423 (lookup_dummy_frame): Change parameter type to 'struct
424 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
425 instead of frame_id_eq.
426 (dummy_frame_pop): Add parameter ptid. Callers updated.
427 Update comments. Compose dummy_frame_id and pass it to
428 lookup_dummy_frame.
429 (dummy_frame_discard): Add parameter ptid.
430 (dummy_frame_sniffer): Compose dummy_frame_id and call
431 dummy_frame_id_eq instead of frame_id_eq.
432 (fprint_dummy_frames): Print ptid.
433 * dummy-frame.h: Remove comments.
434 (dummy_frame_push): Add ptid in declaration.
435 (dummy_frame_pop, dummy_frame_discard): Likewise.
436
5b10184c
TT
4372014-06-26 Tom Tromey <tromey@redhat.com>
438
439 * cli/cli-cmds.c (error_no_arg): Make "why" const.
440 * command.h (error_no_arg): Update.
441
06900326
TT
4422014-06-26 Tom Tromey <tromey@redhat.com>
443
444 * cli/cli-setshow.c (do_set_command): Make "arg" const.
445 (do_show_command): Make "arg" const.
446 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
447
c2bcbb1d
TT
4482014-06-26 Tom Tromey <tromey@redhat.com>
449
450 * record-full.c (record_full_get_bookmark): Make "args" const.
451 (record_full_goto_bookmark): Make "raw_bookmark" const.
452 * record.c (record_goto): New function.
453 (cmd_record_goto): Use it. Now static.
454 * record.h (record_goto): Declare.
455 (cmd_record_goto): Remove declaration.
456 * target-delegates.c: Rebuild.
457 * target.h (struct target_ops) <to_get_bookmark,
458 to_goto_bookmark>: Make parameter const.
459
9cbe5fff
TT
4602014-06-26 Tom Tromey <tromey@redhat.com>
461
462 * defs.h (generic_load): Update.
463 * m32r-rom.c (m32r_load_gen): Make "filename" const.
464 * monitor.c (monitor_load): Make "args" const.
465 * remote-m32r-sdi.c (m32r_load): Make "args" const.
466 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
467 const.
468 (mips_load): Make "file" const.
469 * remote-sim.c (gdbsim_load): Make "args" const.
470 * remote.c (remote_load): Make "name" const.
471 * symfile.c (generic_load): Make "args" const.
472 * target-delegates.c: Rebuild.
473 * target.c (target_load): Make "arg" const.
474 (debug_to_load): Make "args" const.
475 * target.h (struct target_ops) <to_load>: Make parameter const.
476 (target_load): Update.
477
34a68019
TT
4782014-06-26 Tom Tromey <tromey@redhat.com>
479
480 PR symtab/16902:
481 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
482 (dwarf2_physname, read_partial_die)
483 (guess_partial_die_structure_name, fixup_partial_die)
484 (guess_full_die_structure_name, anonymous_struct_prefix)
485 (dwarf2_name): Use per-BFD obstack.
486
efc889c1
YQ
4872014-06-26 Yao Qi <yao@codesourcery.com>
488
489 * dummy-frame.c (dummy_frame_sniffer): Move local variables
490 dummyframe and this_id into inner block below.
491
4395285e
YQ
4922014-06-26 Yao Qi <yao@codesourcery.com>
493
494 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
495 with "signal_pass[0]" in the initialization of signal_pass.
496
aef92902
MM
4972014-06-25 Markus Metzger <markus.t.metzger@intel.com>
498
499 * record-btrace.c (record_btrace_generating_corefile)
500 (record_btrace_prepare_to_generate_core)
501 (record_btrace_done_generating_core): New.
502 (record_btrace_xfer_partial, record_btrace_fetch_registers)
503 (record_btrace_store_registers, record_btrace_prepare_to_store):
504 Forward request when generating a core file.
505 (record_btrace_open): Set record_btrace_generating_corefile to zero.
506 (init_record_btrace_ops): Set to_prepare_to_generate_core and
507 to_done_generating_core.
508
5fff78c4
MM
5092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
510
511 * target.h (target_ops) <to_prepare_to_generate_core>
512 <to_done_generating_core>: New.
513 (target_prepare_to_generate_core, target_done_generating_core): New.
514 * target.c (target_prepare_to_generate_core)
515 (target_done_generating_core): New.
516 * target-delegates.c: Regenerate.
517 * gcore.c: (write_gcore_file): Rename to ...
518 (write_gcore_file_1): ...this.
519 (write_gcore_file): Call target_prepare_to_generate_core
520 and target_done_generating_core.
521
1d1f1ccb
MM
5222014-06-25 Markus Metzger <markus.t.metzger@intel.com>
523
524 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
525 * gcore.c (write_gcore_file): Free memory returned from
526 make_corefile_notes.
527 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
528 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
529
3343ef86
YQ
5302014-06-24 Yao Qi <yao@codesourcery.com>
531
532 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
533 (arm_linux_init_abi): Set skip_trampoline_code with
534 gdbarch_skip_trampoline_code instead of
535 find_solib_trampoline_target.
536
18d18ac8
YQ
5372014-06-24 Yao Qi <yao@codesourcery.com>
538
539 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
540 arm_skip_bx_reg returns non-zero.
541
80d8d390
YQ
5422014-06-24 Yao Qi <yao@codesourcery.com>
543
544 * arm-tdep.c (arm_skip_bx_reg): New function.
545 (arm_skip_stub): Call arm_skip_bx_reg.
546
6a18a01c
DB
5472014-06-23 Don Breazeal <donb@codesourcery.com>
548
549 * MAINTAINERS: Add myself as write-after-approval maintainer.
550
8e9db26e
PA
5512014-06-23 Pedro Alves <palves@redhat.com>
552
553 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
554 DR_CONTROL before setting DR0..DR3.
555 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
556 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
557 bits of DR_CONTROL related to the debug register slot being
558 disabled. If all slots are vacant, clear local slowdown as well,
559 and assert DR_CONTROL is 0.
560
70afc5b7
SC
5612014-06-23 Siva Chandra Reddy <sivachandra@google.com>
562
563 * python/lib/gdb/command/xmethods.py
564 (get_method_matchers_in_loci): Lookup xmethod matchers in the
565 current progspace only if the string "progspace" matches LOCUS_RE.
566
840ed64d
JK
5672014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
568
569 Fix --with-system-readline with readline-6.3 patch 5.
570 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
571 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
572 types.
573
26f2dc30
TT
5742014-06-20 Tom Tromey <tromey@redhat.com>
575
576 * dwarf2read.c (dw2_get_real_path): Use correct type in
577 OBSTACK_CALLOC.
578 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
579
125f8a3d
GB
5802014-06-20 Gary Benson <gbenson@redhat.com>
581
582 * common/gdb_thread_db.h: Moved to nat. All includes updated.
583 * common/glibc_thread_db.h: Likewise.
584 * common/i386-cpuid.h: Likewise.
585 * common/i386-gcc-cpuid.h: Likewise.
586 * common/linux-btrace.h: Likewise.
587 * common/linux-osdata.h: Likewise.
588 * common/linux-procfs.h: Likewise.
589 * common/linux-ptrace.h: Likewise.
590 * common/mips-linux-watch.h: Likewise.
591 * common/linux-btrace.c: Moved to nat.
592 * common/linux-osdata.c: Likewise.
593 * common/linux-procfs.c: Likewise.
594 * common/linux-ptrace.c: Likewise.
595 * common/mips-linux-watch.c: Likewise.
596 * nat/gdb_thread_db.h: Moved from common.
597 * nat/glibc_thread_db.h: Likewise.
598 * nat/i386-cpuid.h: Likewise.
599 * nat/i386-gcc-cpuid.h: Likewise.
600 * nat/linux-btrace.c: Likewise.
601 * nat/linux-btrace.h: Likewise.
602 * nat/linux-osdata.c: Likewise.
603 * nat/linux-osdata.h: Likewise.
604 * nat/linux-procfs.c: Likewise.
605 * nat/linux-procfs.h: Likewise.
606 * nat/linux-ptrace.c: Likewise.
607 * nat/linux-ptrace.h: Likewise.
608 * nat/mips-linux-watch.c: Likewise.
609 * nat/mips-linux-watch.h: Likewise.
610 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
611 (object file files): Reordered.
612 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
613 of glibc_thread_db.h.
614
42995dbd
GB
6152014-06-20 Gary Benson <gbenson@redhat.com>
616
617 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
618 (i386_dr_low_type): Moved to nat/i386-dregs.h.
619 (i386_dr_low): Likewise.
620 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
621 (i386_dr_low_set_addr): Likewise.
622 (i386_dr_low_get_addr): Likewise.
623 (i386_dr_low_can_set_control): Likewise.
624 (i386_dr_low_set_control): Likewise.
625 (i386_dr_low_get_control): Likewise.
626 (i386_dr_low_get_status): Likewise.
627 (i386_get_debug_register_length): Likewise.
628 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
629 (i386_dr_low): Likewise.
630 * nat/i386-dregs.c (i386-low.h): Remove include.
631 (i386-nat.h): Likewise.
632 (nat/i386-dregs.h): New include.
633 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
634 (i386_dr_low_set_addr): Likewise.
635 (i386_dr_low_get_addr): Likewise.
636 (i386_dr_low_can_set_control): Likewise.
637 (i386_dr_low_set_control): Likewise.
638 (i386_dr_low_get_control): Likewise.
639 (i386_dr_low_get_status): Likewise.
640 (i386_get_debug_register_length): Likewise.
641 (debug_hw_points): Likewise.
642
3ed9baed
IB
6432014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
644
645 * Makefile.in (SFILES): Add d-exp.y.
646 (YYFILES): Add d-exp.c.
647 (YYOBJ): Add d-exp.o.
648 (local-maintainer-clean): Delete d-exp.c.
649 * d-exp.y: New file.
650 * d-lang.h (d_parse): New declaration.
651 (d_error): New declaration.
652 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
653 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
654 PREC_ORDER operators.
655 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
656
78c164b0
YQ
6572014-06-19 Yao Qi <yao@codesourcery.com>
658
659 * gdbthread.h (any_running): Remove the declaration.
660 * thread.c (any_running): Remove.
661
f6e29b6e
YQ
6622014-06-19 Yao Qi <yao@codesourcery.com>
663
664 * gdbthread.h (struct thread_info) <state>: Change its type to
665 'enum thread_state'. Update comments.
666
034f788c
PA
6672014-06-19 Pedro Alves <palves@redhat.com>
668
669 * gdbthread.h (ALL_THREADS): Delete.
670 (ALL_NON_EXITED_THREADS): New macro.
671 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
672 instead of ALL_THREADS.
673 * infrun.c (find_thread_needs_step_over)
674 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
675 instead of ALL_THREADS.
676 * record-btrace.c (record_btrace_open)
677 (record_btrace_stop_recording, record_btrace_close)
678 (record_btrace_is_replaying, record_btrace_resume)
679 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
680 * remote.c (append_pending_thread_resumptions): Likewise.
681 * thread.c (thread_apply_all_command): Likewise.
682
46e33252
GB
6832014-06-19 Gary Benson <gbenson@redhat.com>
684
685 * i386-nat.c (i386_stopped_by_watchpoint):
686 Use i386_dr_stopped_by_watchpoint.
687 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
688 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
689
3a8ee006
GB
6902014-06-19 Gary Benson <gbenson@redhat.com>
691
692 * nat/i386-dregs.c: New file.
693 * Makefile.in (i386-dregs.o): New rule.
694 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
695 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
696 * config/i386/darwin.mh (NATDEPFILES): Likewise.
697 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
698 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
699 * config/i386/go32.mh (NATDEPFILES): Likewise.
700 * config/i386/linux.mh (NATDEPFILES): Likewise.
701 * config/i386/linux64.mh (NATDEPFILES): Likewise.
702 * config/i386/mingw.mh (NATDEPFILES): Likewise.
703 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
704 * i386-nat.h (debug_hw_points): New declaration.
705 * i386-nat.c (breakpoint.h): Remove include.
706 (command.h): Likewise.
707 (target.h): Likewise.
708 (gdb_assert.h): Likewise.
709 (debug_hw_points): Made nonstatic.
710 (debug_printf): Now in i386-dregs.c.
711 (TARGET_HAS_DR_LEN_8): Likewise.
712 (DR_CONTROL_SHIFT): Likewise.
713 (DR_CONTROL_SIZE): Likewise.
714 (DR_RW_EXECUTE): Likewise.
715 (DR_RW_WRITE): Likewise.
716 (DR_RW_READ): Likewise.
717 (DR_RW_IORW): Likewise.
718 (DR_LEN_1): Likewise.
719 (DR_LEN_2): Likewise.
720 (DR_LEN_4): Likewise.
721 (DR_LEN_8): Likewise.
722 (DR_LOCAL_ENABLE_SHIFT): Likewise.
723 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
724 (DR_ENABLE_SIZE): Likewise.
725 (DR_LOCAL_SLOWDOWN): Likewise.
726 (DR_GLOBAL_SLOWDOWN): Likewise.
727 (DR_CONTROL_RESERVED): Likewise.
728 (I386_DR_CONTROL_MASK): Likewise.
729 (I386_DR_VACANT): Likewise.
730 (I386_DR_LOCAL_ENABLE): Likewise.
731 (I386_DR_GLOBAL_ENABLE): Likewise.
732 (I386_DR_DISABLE): Likewise.
733 (I386_DR_SET_RW_LEN): Likewise.
734 (I386_DR_GET_RW_LEN): Likewise.
735 (I386_DR_WATCH_HIT): Likewise.
736 (i386_wp_op_t): Likewise.
737 (i386_show_dr): Likewise.
738 (i386_length_and_rw_bits): Likewise.
739 (i386_insert_aligned_watchpoint): Likewise.
740 (i386_remove_aligned_watchpoint): Likewise.
741 (i386_handle_nonaligned_watchpoint): Likewise.
742 (i386_update_inferior_debug_regs): Likewise.
743 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
744 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
745 (i386_region_ok_for_watchpoint):
746 Use i386_dr_region_ok_for_watchpoint.
747 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
748
322a8e06
GB
7492014-06-19 Gary Benson <gbenson@redhat.com>
750
751 * i386-nat.c (i386_insert_hw_breakpoint): Use
752 i386_insert_watchpoint.
753 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
754
8f26655c
GB
7552014-06-19 Gary Benson <gbenson@redhat.com>
756
757 * i386-nat.c (i386_dr_show): Renamed to
758 i386_show_dr and made static. All uses updated.
759 (i386_dr_length_and_rw_bits): Renamed to
760 i386_length_and_rw_bits and made static.
761 All uses updated.
762 (i386_dr_insert_aligned_watchpoint): Renamed to
763 i386_insert_aligned_watchpoint and made static.
764 All uses updated.
765 (i386_dr_remove_aligned_watchpoint): Renamed to
766 i386_remove_aligned_watchpoint and made static.
767 All uses updated.
768 (i386_dr_update_inferior_debug_regs): Renamed to
769 i386_update_inferior_debug_regs and made static.
770 All uses updated.
771 * nat/i386-dregs.h (i386_dr_show): Removed.
772 (i386_dr_length_and_rw_bits): Likewise.
773 (i386_dr_insert_aligned_watchpoint): Likewise.
774 (i386_dr_remove_aligned_watchpoint): Likewise.
775 (i386_dr_update_inferior_debug_regs): Likewise.
776
992c7d70
GB
7772014-06-19 Gary Benson <gbenson@redhat.com>
778
779 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
780 * configure: Regenerate.
781 * config.in: Likewise.
782 * main.c (signal.h): New include.
783 (setup_alternate_signal_stack): New function.
784 (captured_main): Call the above.
785 * cp-support.c (signal.h): New include.
786 (catch_demangler_crashes): New flag.
787 (SIGJMP_BUF): New define.
788 (SIGSETJMP): Likewise.
789 (SIGLONGJMP): Likewise.
790 (gdb_demangle_jmp_buf): New static global.
791 (gdb_demangle_attempt_core_dump): Likewise.
792 (gdb_demangle_signal_handler): New function.
793 (gdb_demangle): If catch_demangler_crashes is set, install the
794 above signal handler before calling bfd_demangle, and restore
795 the original signal handler afterwards. Display the offending
796 symbol and call demangler_warning the first time a segmentation
797 fault is caught.
798 (_initialize_cp_support): New maint set/show command.
799
eae7090b
GB
8002014-06-19 Gary Benson <gbenson@redhat.com>
801
802 * utils.h (resource_limit_kind): New enum.
803 (can_dump_core): New declaration.
804 (warn_cant_dump_core): Likewise.
805 (dump_core): Likewise.
806 * utils.c (dump_core): Made nonstatic. Added new
807 parameter "limit_kind".
808 (can_dump_core): Made nonstatic. Moved printing code to...
809 (warn_cant_dump_core): New function.
810 (can_dump_core_warn): Likewise.
811 (internal_vproblem): Replace calls to can_dump_core with
812 calls to can_dump_core_warn. Supply new argument to each.
813
57fcfb1b
GB
8142014-06-19 Gary Benson <gbenson@redhat.com>
815
816 * utils.h (demangler_vwarning): New declaration.
817 (demangler_warning): Likewise.
818 * utils.c (struct internal_problem)
819 <user_settable_should_quit>: New field.
820 <user_settable_should_dump_core>: Likewise
821 (internal_error_problem): Add values for above new fields.
822 (internal_warning_problem): Likewise.
823 (demangler_warning_problem): New static global.
824 (demangler_vwarning): New function.
825 (demangler_warning): Likewise.
826 (add_internal_problem_command): Selectively add commands.
827 (_initialize_utils): New internal problem command.
828 * maint.c (maintenance_demangler_warning): New function.
829 (_initialize_maint_cmds): New command.
830
17a40b44
TT
8312014-06-18 Tom Tromey <tromey@redhat.com>
832
833 * f-valprint.c (info_common_command_for_block): Update.
834 * symtab.h (struct general_symbol_info) <common_block>: Now
835 const.
836
346d1dfe
TT
8372014-06-18 Tom Tromey <tromey@redhat.com>
838
839 * symtab.h (struct symtab) <blockvector>: Now const.
840 * ada-lang.c (ada_add_global_exceptions): Update.
841 * buildsym.c (augment_type_symtab): Update.
842 * dwarf2read.c (dw2_lookup_symbol): Update.
843 * jit.c (finalize_symtab): Update.
844 * jv-lang.c (add_class_symtab_symbol): Update.
845 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
846 Update.
847 * objfiles.c (objfile_relocate1): Update.
848 * psymtab.c (lookup_symbol_aux_psymtabs)
849 (maintenance_check_psymtabs): Update.
850 * python/py-symtab.c (stpy_global_block, stpy_static_block):
851 Update.
852 * spu-tdep.c (spu_catch_start): Update.
853 * symmisc.c (dump_symtab_1): Update.
854 * symtab.c (lookup_global_symbol_from_objfile)
855 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
856 (basic_lookup_transparent_type_quick)
857 (basic_lookup_transparent_type, find_pc_sect_symtab)
858 (find_pc_sect_line, search_symbols): Update.
859 * block.c (find_block_in_blockvector): Make "bl" const.
860 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
861 const.
862 (blockvector_contains_pc): Make "bv" const.
863 (block_for_pc_sect): Update.
864 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
865 (blockvector_contains_pc): Update.
866 * breakpoint.c (resolve_sal_pc): Update.
867 * inline-frame.c (block_starting_point_at): Update.
868
1834676b
TT
8692014-06-18 Tom Tromey <tromey@redhat.com>
870
871 * completer.c (complete_line): Make "line_buffer" const.
872 * completer.h (complete_line): Update.
873
ac1a991b
TT
8742014-06-18 Tom Tromey <tromey@redhat.com>
875
876 * symtab.c (add_macro_name): Remove unneeded cast.
877
5bc98e52
TT
8782014-06-18 Tom Tromey <tromey@redhat.com>
879
880 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
881 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
882
8236def8
TT
8832014-06-18 Tom Tromey <tromey@redhat.com>
884
885 * probe.c (info_probes_for_ops): Make "arg" const.
886 * probe.h (info_probes_for_ops): Update.
887
3977b71f
TT
8882014-06-18 Tom Tromey <tromey@redhat.com>
889
890 * varobj.c (varobj_create): Update.
891 * valops.c (value_of_this): Update.
892 * tracepoint.c (add_local_symbols, scope_info): Update.
893 * symtab.h (struct general_symbol_info) <block>: Now const.
894 * symtab.c (skip_prologue_sal)
895 (default_make_symbol_completion_list_break_on)
896 (skip_prologue_using_sal): Update.
897 * stack.h (iterate_over_block_locals)
898 (iterate_over_block_local_vars): Update.
899 * stack.c (print_frame_args): Update.
900 (iterate_over_block_locals, iterate_over_block_local_vars): Make
901 parameter const.
902 (get_selected_block): Make return type const.
903 * python/py-frame.c (frapy_block): Update.
904 * python/py-block.c (gdbpy_block_for_pc): Update.
905 * p-exp.y (%union) <bval>: Now const.
906 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
907 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
908 * m2-exp.y (%union) <bval>: Now const.
909 * linespec.c (get_current_search_block): Make return type const.
910 (create_sals_line_offset, find_label_symbols): Update.
911 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
912 Update.
913 (block_starting_point_at): Make "block" const.
914 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
915 (check_exception_resume): Update.
916 * guile/scm-frame.c (gdbscm_frame_block): Update.
917 * guile/scm-block.c (gdbscm_lookup_block): Update.
918 * frame.h (get_frame_block): Update.
919 (get_selected_block): Make return type const.
920 * frame.c (frame_id_inner): Update.
921 * f-valprint.c (info_common_command_for_block)
922 (info_common_command): Update.
923 * dwarf2loc.c (dwarf2_find_location_expression)
924 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
925 (locexpr_describe_location_piece): Update.
926 * c-exp.y (%union) <bval>: Now const.
927 * breakpoint.c (resolve_sal_pc): Update.
928 * blockframe.c (get_frame_block):Make return type const.
929 (get_pc_function_start, get_frame_function, find_pc_sect_function)
930 (block_innermost_frame): Update.
931 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
932 (block_for_pc, block_for_pc_sect): Update.
933 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
934 'pblock' const.
935 (block_for_pc_sect, block_for_pc): Make return type const.
936 * ax-gdb.c (gen_expr): Update.
937 * alpha-mdebug-tdep.c (find_proc_desc): Update.
938 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
939 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
940 (ada_read_var_value): Update.
941 * ada-exp.y (struct name_info) <block>: Now const.
942 (%union): Likewise.
943 (block_lookup): Constify.
944
b9228891
GB
9452014-06-18 Gary Benson <gbenson@redhat.com>
946
947 * nat/i386-dregs.h: New file.
948 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
949 * i386-nat.h (i386-dregs.h): New include.
950 (DR_FIRSTADDR): Now in i386-dregs.h.
951 (DR_LASTADDR): Likewise.
952 (DR_NADDR): Likewise.
953 (DR_STATUS): Likewise.
954 (DR_CONTROL): Likewise.
955 (i386_debug_reg_state): Likewise.
956 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
957
a1aa2221
LM
9582014-06-18 Don Breazeal <donb@codesourcery.com>
959
960 * breakpoint.c (set_longjmp_breakpoint): Call
961 momentary_breakpoint_from_master with additional argument.
962 (set_longjmp_breakpoint_for_call_dummy): Call
963 momentary_breakpoint_from_master with additional argument.
964 (set_std_terminate_breakpoint): Call
965 momentary_breakpoint_from_master with additional argument.
966 (momentary_breakpoint_from_master): Add argument to function
967 definition and use it to initialize structure member flag.
968 (clone_momentary_breakpoint): Call
969 momentary_breakpoint_from_master with additional argument.
970 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
971 member flags set in momentary_breakpoint_from_master.
972
4be83cc2
GB
9732014-06-18 Gary Benson <gbenson@redhat.com>
974
975 * i386-nat.c (i386_show_dr): Renamed to
976 i386_dr_show and made nonstatic. All uses updated.
977 (i386_length_and_rw_bits): Renamed to
978 i386_dr_length_and_rw_bits and made nonstatic.
979 All uses updated.
980 (i386_insert_aligned_watchpoint): Renamed to
981 i386_dr_insert_aligned_watchpoint and made nonstatic.
982 All uses updated.
983 (i386_remove_aligned_watchpoint): Renamed to
984 i386_dr_remove_aligned_watchpoint and made nonstatic.
985 All uses updated.
986 (i386_update_inferior_debug_regs): Renamed to
987 i386_dr_update_inferior_debug_regs and made nonstatic.
988 All uses updated.
989
131aa0d4
GB
9902014-06-18 Gary Benson <gbenson@redhat.com>
991
992 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
993 (i386_dr_low_can_set_control): Likewise.
994 (i386_dr_low_set_addr): Likewise.
995 (i386_dr_low_set_control): Likewise.
996 (i386_dr_low_get_addr): Likewise.
997 (i386_dr_low_get_status): Likewise.
998 (i386_dr_low_get_control): Likewise.
999 (i386_insert_aligned_watchpoint): Use new macros.
1000 (i386_update_inferior_debug_regs): Likewise.
1001 (i386_stopped_data_address): Likewise.
1002
d9305f7f
GB
10032014-06-18 Gary Benson <gbenson@redhat.com>
1004
1005 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1006 New parameter. All uses updated.
1007
ea008da4
GB
10082014-06-18 Gary Benson <gbenson@redhat.com>
1009
1010 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1011 All uses updated.
1012
1b6d4134
GB
10132014-06-18 Gary Benson <gbenson@redhat.com>
1014
1015 * i386-nat.c (debug_printf): New macro.
1016 (i386_get_debug_register_length): Likewise.
1017 (TARGET_HAS_DR_LEN_8): Use above macro.
1018 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1019 and printf_unfiltered. Use phex to format values.
1020
9b4550ef
GB
10212014-06-18 Gary Benson <gbenson@redhat.com>
1022
1023 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1024 Make const.
1025
6e62758f
GB
10262014-06-18 Gary Benson <gbenson@redhat.com>
1027
1028 * i386-nat.c: Comment changes.
1029
51c79e94
GB
10302014-06-18 Gary Benson <gbenson@redhat.com>
1031
1032 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1033
3e11889a
GB
10342014-06-18 Gary Benson <gbenson@redhat.com>
1035
1036 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1037 (i386_insert_aligned_watchpoint): Likewise.
1038 (i386_remove_aligned_watchpoint): Likewise.
1039 (i386_handle_nonaligned_watchpoint): Likewise.
1040
fc6e2f03
GB
10412014-06-18 Gary Benson <gbenson@redhat.com>
1042
1043 * i386-nat.c: Whitespace changes.
1044
2afe7d50
SB
10452014-06-17 Samuel Bronson <naesten@gmail.com>
1046
1047 * MAINTAINERS: Update Roland McGrath's email address.
1048 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 1049 Red Hat a while ago, and giving me a current address.
2afe7d50 1050
3bca49ee
TT
10512014-06-17 Tom Tromey <tromey@redhat.com>
1052
1053 * utils.h (savestring): Remove declaration.
1054
6e366df1
TT
10552014-06-17 Tom Tromey <tromey@redhat.com>
1056
1057 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1058
6be47f0c
KS
10592014-06-16 Keith Seitz <keiths@redhat.com>
1060
1061 PR mi/15863
1062 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1063 to update the varobj if inferior_ptid is null_ptid.
1064
7bc112c1
TT
10652014-06-16 Tom Tromey <tromey@redhat.com>
1066
1067 * target.h (struct target_ops) <to_info_proc>: Make parameter
1068 const.
1069 (target_info_proc): Update.
1070 * target.c (target_info_proc): Make "args" const.
1071 * procfs.c (procfs_info_proc): Update.
1072 * linux-tdep.c (linux_info_proc): Update.
1073 (linux_core_info_proc_mappings): Make "args" const.
1074 (linux_core_info_proc): Update.
1075 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1076 * gdbarch.c: Rebuild.
1077 * gdbarch.h: Rebuild.
1078 * corelow.c (core_info_proc): Update.
1079
fee354ee
TT
10802014-06-16 Tom Tromey <tromey@redhat.com>
1081
1082 * target.h (struct target_ops) <to_disconnect>: Make parameter
1083 const.
1084 (target_disconnect): Update.
1085 * target.c (target_disconnect): Make "args" const.
1086 * target-delegates.c: Rebuild.
1087 * remote.c (remote_disconnect): Update.
1088 * record.h (record_disconnect): Update.
1089 * record.c (record_disconnect): Update.
1090 * inf-child.c (inf_child_disconnect): Update.
1091
a30bf1f1
TT
10922014-06-16 Tom Tromey <tromey@redhat.com>
1093
1094 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1095 * target.c (debug_to_rcmd, default_rcmd): Update.
1096 * target-delegates.c: Rebuild.
1097 * remote.c (remote_rcmd): Update.
1098 * monitor.c (monitor_rcmd): Update.
1099
d03de421
PA
11002014-06-16 Pedro Alves <palves@redhat.com>
1101
1102 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1103 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1104 have OBJF_SHARED set.
1105 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1106 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1107 instead of OBJF_USERLOADED.
1108 * objfiles.h (OBJF_SHARED): Update comment.
1109 (userloaded_objfile_contains_address_p): Rename to ...
1110 (shared_objfile_contains_address_p): ... this, and update
1111 comments.
1112 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1113 new objfile.
1114 (remove_symbol_file_command): Skip objfiles that don't have
1115 OBJF_SHARED set.
1116
99f4262f
TT
11172014-06-16 Tom Tromey <tromey@redhat.com>
1118
1119 * minsyms.h (prim_record_minimal_symbol)
1120 (prim_record_minimal_symbol_and_info): Update comments.
1121
97d66cc6
EZ
11222014-06-14 Eli Zaretskii <eliz@gnu.org>
1123
1124 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1125 or --without-guile, according to how GDB was built.
1126
635c7e8a
TT
11272014-06-13 Tom Tromey <tromey@redhat.com>
1128
1129 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1130 to help_list.
1131 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1132 to help_list.
1133 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1134 help_list.
1135 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1136 help_list.Pass all_commands, not -1, to help_list.
1137 * cli/cli-dump.c (dump_command, append_command)
1138 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1139 (binary_dump_command, binary_append_command): Pass all_commands,
1140 not -1, to help_list.
1141 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1142 -1, to help_list.
1143 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1144 -1, to help_list.
1145 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1146 help_list.
1147 * top.c (set_history): Pass all_commands, not -1, to help_list.
1148 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1149 all_commands, not -1, to help_list.
1150 * symfile.c (overlay_command): Pass all_commands, not -1, to
1151 help_list.
1152 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1153 help_list.
1154 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1155 help_list.
1156 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1157 -1, to help_list.
1158 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1159 not -1, to help_list.
1160 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1161 not -1, to help_list.
1162 * maint.c (maintenance_command, maintenance_info_command)
1163 (maintenance_print_command, maintenance_set_cmd): Pass
1164 all_commands, not -1, to help_list.
1165 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1166 help_list.
1167 * language.c (set_check): Pass all_commands, not -1, to help_list.
1168 * infcmd.c (unset_command): Pass all_commands, not -1, to
1169 help_list.
1170 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1171 help_list.
1172 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1173 help_list.
1174 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1175 help_list.
1176 * breakpoint.c (save_command): Pass all_commands, not -1, to
1177 help_list.
1178 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1179 all_commands, not -1, to help_list.
1180
b94ade42
PL
11812014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1182
1183 * regcache.c (struct register_to_invalidate): New structure.
1184 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1185 functions.
1186 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1187
31f628ae
YQ
11882014-06-12 Yao Qi <yao@codesourcery.com>
1189
1190 * varobj.c (varobj_get_num_children): Call
1191 varobj_is_dynamic_p.
1192 (varobj_list_children): Likewise.
1193 (varobj_update): Likewise. Update comments.
1194
cde5ef40
YQ
11952014-06-12 Yao Qi <yao@codesourcery.com>
1196
1197 * varobj.c (varobj_pretty_printed_p): Rename to ...
1198 (varobj_is_dynamic_p): ... this. New function.
1199 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1200 (varobj_is_dynamic_p): Declare.
1201 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1202 (mi_print_value_p, varobj_update_one): Likewise.
1203
576ea091
YQ
12042014-06-12 Pedro Alves <pedro@codesourcery.com>
1205 Yao Qi <yao@codesourcery.com>
1206
1207 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1208 (varobj_get_iterator): Wrap up code for pretty-printer by
1209 "#if HAVE_PYTHON" and "#endif".
1210 (update_dynamic_varobj_children): Likewise.
1211
827f100c
YQ
12122014-06-12 Pedro Alves <pedro@codesourcery.com>
1213 Yao Qi <yao@codesourcery.com>
1214
1215 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1216 gdb_python_initialized is false. Move some code from varobj.c.
1217 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1218 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1219 (struct varobj_item): Moved to varobj-iter.h".
1220 (varobj_clear_saved_item): New function.
1221 (update_dynamic_varobj_children): Move python-related code to
1222 py-varobj.c.
1223 (free_variable): Call varobj_clear_saved_item and
1224 varobj_iter_delete.
1225
e5250216
YQ
12262014-06-12 Pedro Alves <pedro@codesourcery.com>
1227 Yao Qi <yao@codesourcery.com>
1228
1229 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1230 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1231 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1232 (py-varobj.o): New rule.
1233 * python/py-varobj.c: New file.
1234 * python/python-internal.h (py_varobj_get_iterator): Declare.
1235 * varobj-iter.h: New file.
1236 * varobj.c: Include "varobj-iter.h"
1237 (struct varobj) <child_iter>: Change its type from "PyObject *"
1238 to "struct varobj_iter *".
1239 <saved_item>: Likewise.
1240 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1241 [HAVE_PYTHON] (varobj_get_iterator): New function.
1242 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1243 python-specific code to python/py-varobj.c.
1244 (install_visualizer): Call varobj_iter_delete instead of
1245 Py_XDECREF.
1246 * varobj.h (varobj_ensure_python_env): Declare.
1247
5a2e0d6e
YQ
12482014-06-12 Yao Qi <yao@codesourcery.com>
1249
1250 * varobj.c (struct varobj_item): New structure.
1251 (create_child_with_value): Update declaration.
1252 (varobj_add_child): Replace arguments 'name' and 'value' with
1253 'item'. All callers updated.
1254 (install_dynamic_child): Likewise.
1255 (update_dynamic_varobj_children): Likewise.
1256 (varobj_add_child): Likewise.
1257 (create_child_with_value): Likewise.
1258
919b9a93
JB
12592014-06-11 Joel Brobecker <brobecker@adacore.com>
1260
1261 * NEWS: Create a new section for the next release branch.
1262 Rename the section of the current branch, now that it has
1263 been cut.
1264
71a55bdf
JB
12652014-06-11 Joel Brobecker <brobecker@adacore.com>
1266
1267 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1268 * version.in: Bump version to 7.8.50.DATE-cvs.
1269
364fe1f7
PA
12702014-06-11 Pedro Alves <palves@redhat.com>
1271
1272 PR remote/17028
1273 * ser-mingw.c (net_windows_socket_check_pending): New function.
1274 (net_windows_select_thread): Ignore spurious wakeups. Use
1275 net_windows_socket_check_pending.
1276 (net_windows_wait_handle): Check for pending events with
1277 ioctlsocket, through net_windows_socket_check_pending, instead of
1278 checking the socket's event.
1279
5a6c7709
SC
12802014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1281
1282 * python/python-internal.h (gdb_PyObject_GetAttrString)
1283 (gdb_PyObject_HasAttrString): New inline function definitions.
1284 * py-value.c (get_field_flag): Remove the now unnecessary cast to
1285 char * of the second argument to PyObject_GetAttrString.
1286
0e58ee40
JB
12872014-06-10 Joel Brobecker <brobecker@adacore.com>
1288
1289 * serial.c (serial_write): Fix index of character to be printed
1290 in call to serial_logchar when serial debug traces are enabled.
1291
d190df30
JB
12922014-06-10 Joel Brobecker <brobecker@adacore.com>
1293
1294 * gdbtypes (resolve_dynamic_range): Add function description.
1295
b4b01d36
PA
12962014-06-09 Pedro Alves <palves@redhat.com>
1297
1298 * linux-nat.c (linux_child_follow_fork): Initialize status with
1299 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
1300 inner block. Only pass the signal to PTRACE_DETACH if in pass
1301 state.
1302
3657956b
GB
13032014-06-09 Gary Benson <gbenson@redhat.com>
1304
1305 * common/signals.c (gdb_signal_from_host): Reorder to separate
1306 the always-available ANSI-standard signals from the signals that
1307 require checking.
1308 (do_gdb_signal_to_host): Likewise.
1309 * proc-events.c (signal_table): Likewise.
1310
c077881a
HZ
13112014-06-08 Hui Zhu <hui@codesourcery.com>
1312
1313 * common/linux-ptrace.c (linux_disable_event_reporting): New
1314 function.
1315 * common/linux-ptrace.h (linux_disable_event_reporting): New
1316 declaration.
1317 * linux-nat.c (linux_child_follow_fork): Do a single step before
1318 detach.
1319
4186eb54
KS
13202014-06-07 Keith Seitz <keiths@redhat.com>
1321
1322 Revert:
1323 PR c++/16253
1324 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1325 from symbol_matches_domain in symtab.c. All local callers
1326 of symbol_matches_domain updated.
1327 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1328 search STRUCT_DOMAIN.
1329 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1330 independently. standard_lookup will do that automatically.
1331 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1332 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1333 (cp_lookup_symbol_in_namespace): Likewise.
1334 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1335 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1336 may return a STRUCT_DOMAIN match.
1337 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1338 * cp-support.c: Include language.h.
1339 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1340 VAR_DOMAIN.
1341 * psymtab.c (match_partial_symbol): Compare the requested
1342 domain with the symbol's domain directly.
1343 (lookup_partial_symbol): Likewise.
1344 * symtab.c (lookup_symbol_in_language): Explain when/why
1345 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1346 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1347 appropriate languages.
1348 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1349 and moved to ada-lang.c
1350 (lookup_block_symbol): Explain that this function only returns
1351 symbol matching the requested DOMAIN.
1352 Compare the requested domain with the symbol's domain directly.
1353 (iterate_over_symbols): Compare the requested domain with the
1354 symbol's domain directly.
1355 * symtab.h (symbol_matches_domain): Remove.
1356
25326a28 13572014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
1358
1359 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
1360 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
1361 (gdbscm_guile_version_is_at_least): Declare.
1362 (gdbscm_scm_string_to_int): Declare.
1363 * guile/guile.c (gdbscm_guile_major_version): New global.
1364 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
1365 (guile_datadir): New static global.
1366 (gdbscm_guile_data_directory): New function.
1367 (initialize_scheme_side): Update.
1368 (misc_guile_functions): Add guile-data-directory.
1369 (initialize_gdb_module): Fetch guile version number.
1370 * guile/lib/gdb.scm: Remove call to add-to-load-path.
1371 * guile/lib/gdb/init.scm (%initialize!): Ditto.
1372 * guile/lib/gdb/boot.scm: Use guile-data-directory.
1373 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
1374 comments.
1375 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
1376 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
1377 * guile/scm-value.c (gdbscm_value_to_string): Only call
1378 scm_port_conversion_strategy if Guile version >= 2.0.6.
1379
0a770bb2 13802014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
1381
1382 * main.c (print_gdb_help): Add -q and --silent.
1383
73ba372c
GB
13842014-06-06 Gary Benson <gbenson@redhat.com>
1385
1386 * common/signals.c: Remove preprocessor conditionals for
1387 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
1388 SIGSEGV and SIGTERM.
1389 * proc-events.c: Likewise.
1390
c33b2f12
MM
13912014-06-06 Markus Metzger <markus.t.metzger@intel.com>
1392
1393 * symfile.c (symfile_free_objfile): Remove restriction to
1394 OBJF_USERLOADED.
1395 * symfile-mem.c (symbol_file_add_from_memory): Call
1396 add_target_sections_of_objfile.
1397
fb934770
LC
13982014-06-05 Ludovic Courtès <ludo@gnu.org>
1399
1400 * guile/scm-value.c (gdbscm_history_append_x): Use
1401 'vlscm_get_value_smob_arg_unsafe' instead of
1402 'vlscm_scm_to_value'.
1403
6ef284bd
SM
14042014-06-05 Simon Marchi <simon.marchi@ericsson.com>
1405
1406 PR mi/15806
1407 * utils.c (printchar): Don't escape at all if quoter is NUL.
1408 Update function documentation to clarify effect of parameter
1409 QUOTER.
1410 * remote.c (escape_buffer): Pass '\\' as the quoter to
1411 fputstrn_unfiltered.
1412 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
1413 generate the output.
1414 (mi_solib_unloaded): Same.
1415
270c9937
JB
14162014-06-05 Joel Brobecker <brobecker@adacore.com>
1417
1418 * development.sh: Delete.
1419 * Makefile.in (config.status): Adjust dependency on development.sh.
1420 * configure.ac: Adjust development.sh source call.
1421 * configure: Regenerate.
1422
16f691fb
DE
14232014-06-04 Doug Evans <xdje42@gmail.com>
1424
1425 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
1426 is_scheme_bkpt, spec.
1427 (bpscm_make_breakpoint_smob): Initialize new members.
1428 (gdbscm_create_breakpoint_x): Split into two ...
1429 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
1430 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
1431 (scheme_function breakpoint_functions): Update.
1432 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
1433 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
1434 register-breakpoint!.
1435
ef7cab6b
JB
14362014-06-04 Joel Brobecker <brobecker@adacorer.com>
1437
1438 PR server/17023
1439 * mem-break.c (z_type_supported): Return zero if
1440 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
1441
012370f6
TT
14422014-06-04 Tom Tromey <tromey@redhat.com>
1443
1444 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1445 value_from_contents_and_address_unresolved.
1446 (ada_template_to_fixed_record_type_1): Likewise.
1447 (ada_which_variant_applies): Likewise.
1448 * value.h (value_from_contents_and_address_unresolved): Declare.
1449 * value.c (value_from_contents_and_address_unresolved): New
1450 function.
1451 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
1452 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
1453 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
1454
92e2a17f
TT
14552014-06-04 Tom Tromey <tromey@redhat.com>
1456
1457 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
1458
c0939df1
TT
14592014-06-04 Tom Tromey <tromey@redhat.com>
1460
1461 * procfs.c (procfs_attach): Make "args" const.
1462 * windows-nat.c (windows_attach): Make "args" const.
1463 * nto-procfs.c (procfs_attach): Make "args" const.
1464 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
1465 * go32-nat.c (go32_attach): Make "args" const.
1466 * gnu-nat.c (gnu_attach): Make "args" const.
1467 * darwin-nat.c (darwin_attach): Make "args" const.
1468 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
1469 * linux-nat.c (linux_nat_attach): Make "args" const.
1470 * remote.c (extended_remote_attach_1, extended_remote_attach):
1471 Make "args" const.
1472 * target.h (struct target_ops) <to_attach>: Make "args" const.
1473 (find_default_attach): Likewise.
1474 * utils.c (parse_pid_to_attach): Make "args" const.
1475 * utils.h (parse_pid_to_attach): Update.
1476
8eaff7cd
TT
14772014-06-04 Tom Tromey <tromey@redhat.com>
1478
1479 * target-delegates.c: Rebuild.
1480 * target.c (default_thread_address_space): New function.
1481 (target_thread_address_space): Simplify.
1482 * target.h (struct target_ops) <to_thread_address_space>: Add
1483 TARGET_DEFAULT_FUNC.
1484
1913f160
DE
14852014-06-04 Doug Evans <xdje42@gmail.com>
1486
1487 * guile/scm-type.c (type_smob): Remove duplicate typedef.
1488
70ad5bff
MM
14892014-06-04 Markus Metzger <markus.t.metzger@intel.com>
1490
1491 * record-btrace.c: Include event-loop.h and inf-loop.h.
1492 (record_btrace_resume_exec_dir)
1493 (record_btrace_async_inferior_event_handler)
1494 (record_btrace_handle_async_inferior_event): New.
1495 (record_btrace_open): Create async event handler.
1496 (record_btrace_close): Delete async event handler.
1497 (record_btrace_resume): Set record_btrace_resume_exec_dir,
1498 Mark async event handler.
1499 (record_btrace_execution_direction): New.
1500 (init_record_btrace_ops): Initialize to_execution_direction.
1501
b6210538
DE
15022014-06-03 Doug Evans <xdje42@gmail.com>
1503
1504 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
1505 (gdbscm_make_parameter): Ditto.
1506
a5b1fd27
DE
15072014-06-03 Doug Evans <dje@google.com>
1508
1509 * exec.c (exec_close_1): Call clear_section_table instead of
1510 resize_section_table.
1511 (clear_section_table): New function.
1512 (resize_section_table): Make static. Rename arg num_added to
1513 adjustment.
1514 * exec.h (clear_section_table): Declare.
1515 (resize_section_table): Delete.
1516 * progspace.c (release_program_space): Call clear_section_table
1517 instead of resize_section_table.
1518
0c6e92a5
SC
15192014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1520
1521 * NEWS (Python Scripting): Add entry about the new xmethods
1522 feature.
1523
883964a7
SC
15242014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1525
1526 * python/py-xmethods.c: New file.
1527 * python/py-objfile.c (objfile_object): New field 'xmethods'.
1528 (objfpy_dealloc): XDECREF on the new xmethods field.
1529 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
1530 field.
1531 (objfpy_get_xmethods): New function.
1532 (objfile_getset): New entry 'xmethods'.
1533 * python/py-progspace.c (pspace_object): New field 'xmethods'.
1534 (pspy_dealloc): XDECREF on the new xmethods field.
1535 (pspy_new, pspace_to_pspace_object): Initialize xmethods
1536 field.
1537 (pspy_get_xmethods): New function.
1538 (pspace_getset): New entry 'xmethods'.
1539 * python/python-internal.h: Add declarations for new functions.
1540 * python/python.c (_initialize_python): Invoke
1541 gdbpy_initialize_xmethods.
1542 * python/lib/gdb/__init__.py (xmethods): New
1543 attribute.
1544 * python/lib/gdb/xmethod.py: New file.
1545 * python/lib/gdb/command/xmethods.py: New file.
1546
58992dc5
SC
15472014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1548
1549 * eval.c (evaluate_subexp_standard): Call the xmethod if the
1550 best match method returned by find_overload_match is an xmethod.
1551 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
1552 the best matching operator returned by find_overload_match is an
1553 xmethod.
1554 * valops.c: #include "extension.h".
1555 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
1556 Return void. The list of matching source methods is returned in
1557 "fn_list" and a vector of matching debug method workers is
1558 returned in "xm_worker_vec". Update all callers.
1559 (value_find_oload_method_list): Likewise.
1560 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
1561 non-NULL, then the index of the best matching method in this
1562 vector is returned. Update all callers.
1563 (find_overload_match): Include xmethods while performing overload
1564 resolution.
1565
e81e7f5e
SC
15662014-06-03 Siva Chandra Reddy <sivachandra@google.com>
1567
1568 * defs.h (enum lval_type): New enumerator "lval_xcallable".
1569 * extension-priv.h (struct extension_language_ops): Add the
1570 xmethod interface.
1571 * extension.c (new_xmethod_worker, clone_xmethod_worker,
1572 get_matching_xmethod_workers, get_xmethod_argtypes,
1573 invoke_xmethod, free_xmethod_worker,
1574 free_xmethod_worker_vec): New functions.
1575 * extension.h: #include "common/vec.h".
1576 New function declarations.
1577 (struct xmethod_worker): New struct.
1578 (VEC (xmethod_worker_ptr)): New vector type.
1579 (xmethod_worker_ptr): New typedef.
1580 (xmethod_worker_vec): Likewise.
1581 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
1582 builtin_type.
1583 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
1584 (struct builtin_type): New field "xmethod".
1585 * valarith.c (value_ptradd): Assert that the value argument is not
1586 lval_xcallable.
1587 * valops.c (value_must_coerce_to_target): Return 0 for
1588 lval_xcallable values.
1589 * value.c (struct value): New field XM_WORKER in the field
1590 LOCATION.
1591 (value_address, value_raw_address): Return 0 for lval_xcallable
1592 values.
1593 (set_value_address): Assert that the value is not an
1594 lval_xcallable.
1595 (value_free): Free the associated xmethod worker when freeing
1596 lval_xcallable values.
1597 (set_value_component_location): Assert that the WHOLE value is not
1598 lval_xcallable.
1599 (value_of_xmethod, call_xmethod): New functions.
1600 * value.h: Declare "struct xmethod_worker".
1601 Declare new functions value_of_xmethod, call_xmethod.
1602
ef370185
JB
16032014-06-03 Joel Brobecker <brobecker@adacore.com>
1604 Pedro Alves <palves@redhat.com>
1605
1606 PR breakpoints/17000
1607 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
1608 New function, extracted from software_breakpoint_inserted_here_p.
1609 (software_breakpoint_inserted_here_p): Replace factored out code
1610 by call to find_non_raw_software_breakpoint_inserted_here.
1611 (bp_target_info_copy_insertion_state): New function.
1612 (bkpt_insert_location): Handle the case of a single-step
1613 breakpoint already inserted at the same address.
1614 (bkpt_remove_location): Handle the case of a single-step
1615 breakpoint still inserted at the same address.
1616 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
1617 breakpoint already inserted at the same address.
1618 (deprecated_remove_raw_breakpoint): Handle the case of a
1619 non-raw breakpoint still inserted at the same address.
1620 (find_single_step_breakpoint): New function, extracted from
1621 single_step_breakpoint_inserted_here_p.
1622 (find_single_step_breakpoint): New function,
1623 factored out from single_step_breakpoint_inserted_here_p.
1624 (single_step_breakpoint_inserted_here_p): Reimplement.
1625
1e2ccb61
BM
16262014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
1627
1628 Pushed by Joel Brobecker <brobecker@adacore.com>
1629 * source.c (show_substitute_path_command): Fix display of matching
1630 substitution rules.
1631
d3448d85
GB
16322014-06-03 Gary Benson <gbenson@redhat.com>
1633
1634 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
1635
06eb1586
DE
16362014-06-02 Doug Evans <xdje42@gmail.com>
1637
1638 Add parameter support for Guile.
1639 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
1640 (SUBDIR_GUILE_SRCS): Add scm-param.c.
1641 (scm-param.o): New rule.
1642 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
1643 (gdbscm_misc_error): Declare.
1644 (gdbscm_canonicalize_command_name): Declare.
1645 (gdbscm_scm_to_host_string): Declare.
1646 (gdbscm_scm_from_host_string): Declare.
1647 (gdbscm_initialize_parameters): Declare.
1648 * guile/guile.c (initialize_gdb_module): Call
1649 gdbscm_initialize_parameters.
1650 * guile/lib/gdb.scm: Export parameter symbols.
1651 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
1652 cmdscm_canonicalize_name and made public. All callers updated.
1653 * guile/scm-exception.c (gdbscm_misc_error): New function.
1654 * guile/scm-param.c: New file.
1655 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
1656 (gdbscm_scm_to_host_string): New function.
1657 (gdbscm_scm_from_host_string): New function.
1658 * scm-utils.c (gdbscm_gc_dup_argv): New function.
1659
e698b8c4
DE
16602014-06-02 Doug Evans <xdje42@gmail.com>
1661
1662 Add command support for Guile.
1663 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
1664 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
1665 (scm-cmd.o): New rule.
1666 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1667 (gdbscm_user_error_p): Declare.
1668 (gdbscm_parse_command_name): Declare.
1669 (gdbscm_valid_command_class_p): Declare.
1670 (gdbscm_initialize_commands): Declare.
1671 * guile/guile.c (initialize_gdb_module): Call
1672 gdbscm_initialize_commands.
1673 * guile/lib/gdb.scm: Export command symbols.
1674 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1675 (throw-user-error): New function.
1676 * guile/scm-cmd.c: New file.
1677 * guile/scm-exception.c (user_error_symbol): New static global.
1678 (gdbscm_user_error_p): New function.
1679 (gdbscm_initialize_exceptions): Set user_error_symbol.
1680 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1681
fb1f94b0
PM
16822014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1683
1684 * top.c (command_loop): Handle comments here...
1685 (command_line_input): ... not here.
1686
ded03782
DE
16872014-06-02 Doug Evans <xdje42@gmail.com>
1688
1689 Add progspace support for Guile.
1690 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1691 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1692 (scm-progspace.o): New rule.
1693 * guile/guile-internal.h (pspace_smob): New typedef.
1694 (psscm_pspace_smob_pretty_printers): Declare.
1695 (psscm_pspace_smob_from_pspace): Declare.
1696 (psscm_scm_from_pspace): Declare.
1697 * guile/guile.c (initialize_gdb_module): Call
1698 gdbscm_initialize_pspaces.
1699 * guile/lib/gdb.scm: Export progspace symbols.
1700 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1701 support.
1702 (append-pretty-printer!): Ditto.
1703 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1704 Implement.
1705 * guile/scm-progspace.c: New file.
1706
397998fc
AM
17072014-06-03 Alan Modra <amodra@gmail.com>
1708
1709 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1710 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1711
6aa5f3a6
DE
17122014-06-02 Doug Evans <dje@google.com>
1713
1714 Add support for skeletonless type units.
1715 * dwarf2read.c (struct dwarf2_per_objfile): New member
1716 n_allocated_type_units.
1717 (struct dwarf2_per_objfile) <tu_stats>: New member
1718 nr_all_type_units_reallocs.
1719 (create_signatured_type_table_from_index): Initialize
1720 n_allocated_type_units
1721 (create_all_type_units): Ditto.
1722 (add_type_unit): Move up in file. New arg slot.
1723 All callers updated. Increase space for all_type_units more
1724 efficiently.
1725 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1726 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1727 (lookup_dwp_signatured_type): Ditto.
1728 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1729 All callers updated.
1730 (build_type_psymtabs_1): Leave type_unit_groups as
1731 NULL if no TUs present.
1732 (print_tu_stats): New function.
1733 (process_skeletonless_type_unit): New function.
1734 (process_dwo_file_for_skeletonless_type_units): New
1735 function.
1736 (process_skeletonless_type_units): New function.
1737 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1738 Call print tu_stats if debugging enabled.
1739
41fac0cf
PA
17402014-06-02 Pedro Alves <palves@redhat.com>
1741
1742 * breakpoint.c (build_target_command_list): Don't build a command
1743 list if we have any duplicate location that isn't a dprintf.
1744
cd1608cc
PA
17452014-06-02 Pedro Alves <palves@redhat.com>
1746
1747 * breakpoint.c (dprintf_breakpoint_hit): New function.
1748 (initialize_breakpoint_ops): Install it as dprintf's
1749 breakpoint_hit method.
1750
486ef3b9
JB
17512014-06-02 Joel Brobecker <brobecker@adacore.com>
1752
1753 * source.c (substitute_path_rule_matches): Simplify using
1754 filename_ncmp instead of FILENAME_CMP.
1755
230cd560
JB
17562014-06-02 Joel Brobecker <brobecker@adacore.com>
1757
1758 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1759
16954d5d
LC
17602014-06-01 Ludovic Courtès <ludo@gnu.org>
1761
1762 * configure.ac: When Guile is available, check for the
1763 availability of 'scm_new_smob'.
1764 * configure, config.h.in: Regenerate.
1765 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1766 function.
1767
53e8a631
AB
17682014-05-30 Andrew Burgess <aburgess@broadcom.com>
1769
1770 * frame.c (struct frame_info): Add stop_string field.
1771 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1772 (get_prev_frame_always): Old content moved into
1773 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1774 TRY_CATCH, handle MEMORY_ERROR exceptions.
1775 (frame_stop_reason_string): New function definition.
1776 * frame.h (unwind_stop_reason_to_string): Extend comment to
1777 mention frame_stop_reason_string.
1778 (frame_stop_reason_string): New function declaration.
1779 * stack.c (frame_info): Switch to frame_stop_reason_string.
1780 (backtrace_command_1): Switch to frame_stop_reason_string.
1781 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1782 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1783 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1784
70e38b8e
AB
17852014-05-30 Andrew Burgess <aburgess@broadcom.com>
1786
1787 * frame.c (frame_stop_reason_string): Rename to ...
1788 (unwind_stop_reason_to_string): this.
1789 * frame.h (frame_stop_reason_string): Rename to ...
1790 (unwind_stop_reason_to_string): this.
1791 * stack.c (frame_info): Update call to frame_stop_reason_string.
1792 (backtrace_command_1): Likewise.
1793 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1794 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1795
938f0e2f
AB
17962014-05-30 Andrew Burgess <aburgess@broadcom.com>
1797
1798 * frame.c (remove_prev_frame): New function.
1799 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1800 remove_prev_frame.
1801
a09dd441
PA
18022014-05-29 Pedro Alves <palves@redhat.com>
1803
1804 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1805 and make it const. When a single-step decays to a continue,
1806 clear 'step', not 'hw_step'. Pass whether the caller wanted
1807 to step to user_visible_resume_ptid, not what we ask the
1808 target to do.
1809
bdc36728
PA
18102014-05-29 Pedro Alves <palves@redhat.com>
1811
1812 * infrun.c (process_event_stop_test, handle_step_into_function)
1813 (handle_step_into_function_backward): Adjust.
1814 Don't set the even thread's stop_step and call stop_waiting before
1815 calling end_stepping_range. Instead do that ...
1816 (end_stepping_range): ... here. Take an ecs pointer parameter.
1817
22bcd14b
PA
18182014-05-29 Pedro Alves <palves@redhat.com>
1819
1820 * infrun.c (stop_stepping): Rename to ...
1821 (stop_waiting): ... this.
1822 (proceed): Update comment.
1823 (process_event_stop_test, handle_inferior_event)
1824 (handle_signal_stop, handle_step_into_function)
1825 (handle_step_into_function_backward): Update.
1826
4ae57c05
PA
18272014-05-29 Pedro Alves <palves@redhat.com>
1828
1829 * infcall.c (run_inferior_call): Don't check whether the current
1830 thread is running after the proceed call.
1831
329ea579
PA
18322014-05-29 Pedro Alves <palves@redhat.com>
1833 Tom Tromey <tromey@redhat.com>
1834
1835 * NEWS: Mention "maint set target-async", "set mi-async", and that
1836 background execution commands are now always available.
1837 * target.h (target_async_permitted): Update comment.
1838 * target.c (target_async_permitted, target_async_permitted_1):
1839 Default to 1.
1840 (set_target_async_command): Rename to ...
1841 (maint_set_target_async_command): ... this.
1842 (show_target_async_command): Rename to ...
1843 (maint_show_target_async_command): ... this.
1844 (_initialize_target): Adjust.
1845 * infcmd.c (prepare_execution_command): Make extern.
1846 * inferior.h (prepare_execution_command): Declare.
1847 * infrun.c (set_observer_mode): Leave target async alone.
1848 * mi/mi-interp.c (mi_interpreter_init): Install
1849 mi_on_sync_execution_done as sync_execution_done observer.
1850 (mi_on_sync_execution_done): New function.
1851 (mi_execute_command_input_handler): Don't print the prompt if we
1852 just started a synchronous command with an async target.
1853 (mi_on_resume): Check sync_execution before printing prompt.
1854 * mi/mi-main.h (mi_async_p): Declare.
1855 * mi/mi-main.c: Include gdbcmd.h.
1856 (mi_async_p): New function.
1857 (mi_async, mi_async_1): New globals.
1858 (set_mi_async_command, show_mi_async_command, mi_async): New
1859 functions.
1860 (exec_continue): Call prepare_execution_command.
1861 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1862 (mi_execute_async_cli_command): Use mi_async_p.
1863 (_initialize_mi_main): Install "set mi-async". Make
1864 "target-async" a deprecated alias.
1865
92bcb5f9
PA
18662014-05-29 Pedro Alves <palves@redhat.com>
1867
1868 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1869 (_initialize_cli_interp): Adjust.
1870 * event-loop.c: Include "observer.h".
1871 (start_event_loop): Notify 'command_error' observers instead of
1872 calling display_gdb_prompt. Remove FIXME comment.
1873 * event-top.c (display_gdb_prompt): Remove call into the
1874 interpreters.
1875 * inf-loop.c: Include "observer.h".
1876 (inferior_event_handler): Notify 'command_error' observers instead
1877 of calling display_gdb_prompt.
1878 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1879 observers instead of calling display_gdb_prompt.
1880 * interps.c (interp_set): Don't call display_gdb_prompt.
1881 (current_interp_display_prompt_p): Delete.
1882 * interps.h (interp_prompt_p): Delete declaration.
1883 (interp_prompt_p_ftype): Delete.
1884 (struct interp_procs) <prompt_proc_p>: Delete field.
1885 (current_interp_display_prompt_p): Delete declaration.
1886 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1887 (_initialize_mi_interp): Adjust.
1888 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1889 'command_error' observers.
1890 (tui_on_sync_execution_done, tui_on_command_error): New
1891 functions.
1892 (tui_display_prompt_p): Delete.
1893 (_initialize_tui_interp): Adjust.
1894
fd664c91
PA
18952014-05-29 Pedro Alves <palves@redhat.com>
1896
1897 PR gdb/13860
1898 * cli/cli-interp.c: Include infrun.h and observer.h.
1899 (cli_uiout, cli_interp): New globals.
1900 (cli_on_signal_received, cli_on_end_stepping_range)
1901 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1902 functions.
1903 (cli_interpreter_init): Install them as 'end_stepping_range',
1904 'signal_received' 'signal_exited', 'exited' and 'no_history'
1905 observers.
1906 (_initialize_cli_interp): Remove cli_interp local.
1907 * infrun.c (handle_inferior_event): Call the several stop reason
1908 observers instead of printing the stop reason directly.
1909 (end_stepping_range): New function.
1910 (print_end_stepping_range_reason, print_signal_exited_reason)
1911 (print_exited_reason, print_signal_received_reason)
1912 (print_no_history_reason): Make static, and add an uiout
1913 parameter. Print to that instead of to CURRENT_UIOUT.
1914 * infrun.h (print_end_stepping_range_reason)
1915 (print_signal_exited_reason, print_exited_reason)
1916 (print_signal_received_reason print_no_history_reason): New
1917 declarations.
1918 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1919 'mi_uiout'.
1920 <cli_uiout>: New field.
1921 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1922 uiout for CLI output. Install 'signal_received',
1923 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1924 observers.
1925 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1926 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1927 (mi_on_no_history): New functions.
1928 (ui_out_free_cleanup): Delete function.
1929 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1930 instead use the one already stored in the MI interpreter data.
1931 (mi_ui_out): Adjust.
1932 * tui/tui-interp.c: Include infrun.h and observer.h.
1933 (tui_interp): New global.
1934 (tui_on_signal_received, tui_on_end_stepping_range)
1935 (tui_on_signal_exited, tui_on_exited)
1936 (tui_on_no_history): New functions.
1937 (tui_init): Install them as 'end_stepping_range',
1938 'signal_received' 'signal_exited', 'exited' and 'no_history'
1939 observers.
1940 (_initialize_tui_interp): Delete tui_interp local.
1941
8817a6f2
PA
19422014-05-29 Pedro Alves <palves@redhat.com>
1943
1944 PR gdb/15713
1945 * linux-nat.c (linux_nat_resume_callback): Rename the second
1946 parameter to 'except'. Skip LP if it points to EXCEPT.
1947 (linux_nat_resume): Don't mark the event lwp as not stopped
1948 before resuming sibling lwps. Instead ask
1949 linux_nat_resume_callback to skip the event lwp. Mark it as not
1950 stopped after actually resuming it.
1951 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1952 resuming it.
1953 (wait_lwp): Mark the lwp as stopped here.
1954 (stop_wait_callback): Mark the lwp as not stopped right after
1955 resuming it. Don't mark lwps as stopped here.
1956 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1957 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1958
251bde03
PA
19592014-05-29 Pedro Alves <palves@redhat.com>
1960
1961 PR PR15693
1962 * infrun.c (resume): Determine how much to resume depending on
1963 whether the caller wanted a step, not whether we can hardware step
1964 the target. Mark all threads that we intend to run as running,
1965 unless we're calling an inferior function.
1966 (normal_stop): If the thread is running an infcall, don't finish
1967 thread state.
1968 * target.c (target_resume): Don't mark threads as running here.
1969
7f3c0343
JB
19702014-05-28 Joel Brobecker <brobecker@adacore.com>
1971
1972 * serial.c (_initialize_serial): Remove support for
1973 the "set remotebaud" and "show remotebaud" commands.
1974 * NEWS: Add entry documenting the removal of that command.
1975
ee34b3f9
YQ
19762014-05-28 Yao Qi <yao@codesourcery.com>
1977
1978 * charset.c: Fix typo in comments.
1979
add6c04d
GB
19802014-05-27 Gary Benson <gbenson@redhat.com>
1981
1982 * utils.c (internal_vproblem): Prompt for a bug report.
1983
92c48fc5
AW
19842014-05-26 Andy Wingo <wingo@igalia.com>
1985
1986 * guile/scm-arch.c (arscm_mark_arch_smob):
1987 * guile/scm-block.c (bkscm_mark_block_smob)
1988 (bkscm_mark_block_syms_progress_smob):
1989 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1990 * guile/scm-exception.c (exscm_mark_exception_smob):
1991 * guile/scm-frame.c (frscm_mark_frame_smob):
1992 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1993 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1994 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1995 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1996 (ppscm_mark_pretty_printer_worker_smob):
1997 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1998 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1999 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2000 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2001 mark functions.
2002 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2003 function.
2004
b2715b27
AW
20052014-05-26 Andy Wingo <wingo@igalia.com>
2006 Doug Evans <xdje42@gmail.com>
2007
2008 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2009 empty_base_class. All uses updated.
2010 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2011 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2012 Adapt all callers.
2013 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2014 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2015 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2016 (gdbscm_gsmob_has_property_p, add_property_name)
2017 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2018 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2019 (gdb-object-has-property?, gdb-object-properties): Remove.
2020 (gdb-object-kind): Renamed from gsmob-kind.
2021
214ab2da
AW
20222014-05-26 Andy Wingo <wingo@igalia.com>
2023
2024 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2025 * configure: Regenerate.
2026
589fdceb
MM
20272014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2028
2029 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2030
67b5c0c1
MM
20312014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2032
2033 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2034 (replay_memory_access_read_only, replay_memory_access_read_write)
2035 (replay_memory_access_types, replay_memory_access)
2036 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2037 (cmd_set_record_btrace, cmd_show_record_btrace)
2038 (cmd_show_replay_memory_access): New.
2039 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2040 (record_btrace_remove_breakpoint): Replace
2041 record_btrace_allow_memory_access with replay_memory_access.
2042 (_initialize_record_btrace): Add commands.
2043 * NEWS: Announce it.
2044
036cd381
RR
20452014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2046
2047 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2048
c77c1e42
RR
20492014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2050
2051 * MAINTAINERS (Write After Approval): Move self back from
2052 paper trail.
2053
45741a9c
PA
20542014-05-22 Pedro Alves <palves@redhat.com>
2055
2056 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2057 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2058 (disable_randomization, enum exec_direction_kind)
2059 (execution_direction, stop_registers, start_remote)
2060 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2061 (wait_for_inferior, normal_stop, get_last_target_status)
2062 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2063 (insert_step_resume_breakpoint_at_sal)
2064 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2065 (set_step_info, print_stop_event, signal_stop_state)
2066 (signal_print_state, signal_pass_state, signal_stop_update)
2067 (signal_print_update, signal_pass_update)
2068 (update_signals_program_target, clear_exit_convenience_vars)
2069 (displaced_step_dump_bytes, update_observer_mode)
2070 (signal_catch_update, gdb_signal_from_command): Move
2071 declarations ...
2072 * infrun.h: ... to this new file.
2073 * amd64-tdep.c: Include infrun.h.
2074 * annotate.c: Include infrun.h.
2075 * arch-utils.c: Include infrun.h.
2076 * arm-linux-tdep.c: Include infrun.h.
2077 * arm-tdep.c: Include infrun.h.
2078 * break-catch-sig.c: Include infrun.h.
2079 * breakpoint.c: Include infrun.h.
2080 * common/agent.c: Include infrun.h instead of inferior.h.
2081 * corelow.c: Include infrun.h.
2082 * event-top.c: Include infrun.h.
2083 * go32-nat.c: Include infrun.h.
2084 * i386-tdep.c: Include infrun.h.
2085 * inf-loop.c: Include infrun.h.
2086 * infcall.c: Include infrun.h.
2087 * infcmd.c: Include infrun.h.
2088 * infrun.c: Include infrun.h.
2089 * linux-fork.c: Include infrun.h.
2090 * linux-nat.c: Include infrun.h.
2091 * linux-thread-db.c: Include infrun.h.
2092 * monitor.c: Include infrun.h.
2093 * nto-tdep.c: Include infrun.h.
2094 * procfs.c: Include infrun.h.
2095 * record-btrace.c: Include infrun.h.
2096 * record-full.c: Include infrun.h.
2097 * remote-m32r-sdi.c: Include infrun.h.
2098 * remote-mips.c: Include infrun.h.
2099 * remote-notif.c: Include infrun.h.
2100 * remote-sim.c: Include infrun.h.
2101 * remote.c: Include infrun.h.
2102 * reverse.c: Include infrun.h.
2103 * rs6000-tdep.c: Include infrun.h.
2104 * s390-linux-tdep.c: Include infrun.h.
2105 * solib-irix.c: Include infrun.h.
2106 * solib-osf.c: Include infrun.h.
2107 * solib-svr4.c: Include infrun.h.
2108 * target.c: Include infrun.h.
2109 * top.c: Include infrun.h.
2110 * windows-nat.c: Include infrun.h.
2111 * mi/mi-interp.c: Include infrun.h.
2112 * mi/mi-main.c: Include infrun.h.
2113 * python/py-threadevent.c: Include infrun.h.
2114
98eb56a4
PA
21152014-05-22 Pedro Alves <palves@redhat.com>
2116
2117 * infrun.c (handle_inferior_event): Store the exit code for
2118 --return-child-result here, instead of ...
2119 (print_exited_reason): ... here.
2120
17b2616c
PA
21212014-05-21 Pedro Alves <palves@redhat.com>
2122
2123 PR gdb/13860
2124 * gdbthread.h (struct thread_control_state): New field
2125 `command_interp'.
2126 * infrun.c (follow_fork): Copy the new thread control field to the
2127 child fork thread.
2128 (clear_proceed_status_thread): Clear the new thread control field.
2129 (proceed): Set the new thread control field.
2130 * interps.h (command_interp): Declare.
2131 * interps.c (command_interpreter): New global.
2132 (command_interp): New function.
2133 (interp_exec): Set `command_interpreter' while here.
2134 * cli-out.c (cli_uiout_dtor): New function.
2135 (cli_ui_out_impl): Install it.
2136 * mi/mi-interp.c: Include cli-out.h.
2137 (mi_cmd_interpreter_exec): Add comment.
2138 (restore_current_uiout_cleanup): New function.
2139 (ui_out_free_cleanup): New function.
2140 (mi_on_normal_stop): If finishing an execution command started by
2141 a CLI command, or any kind of breakpoint-like event triggered,
2142 print the stop event to the output (CLI) stream.
2143 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2144
5166082f
PA
21452014-05-21 Pedro Alves <palves@redhat.com>
2146
2147 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2148 current source line having changed.
2149 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2150 * infrun.c (normal_stop): Adjust call to
2151 set_current_sal_from_frame.
2152 * source.c (clear_lines_listed_range): New function.
2153 (set_current_source_symtab_and_line, identify_source_line): Clear
2154 the lines listed range.
2155 (line_info): Handle the first "info line" after the current source
2156 line having changed.
2157 * stack.c (print_stack_frame): Remove center handling.
2158 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2159 center sal.line.
2160
c1ee2fb3
PA
21612014-05-21 Pedro Alves <palves@redhat.com>
2162
2163 * inf-child.c (inf_child_mourn_inferior): New function.
2164 * inf-child.h (inf_child_mourn_inferior): New declaration.
2165 * darwin-nat.c (darwin_mourn_inferior): Use
2166 inf_child_mourn_inferior.
2167 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2168 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2169 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2170 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2171 * windows-nat.c (windows_mourn_inferior): Likewise.
2172
5c6d4fb2
DE
21732014-05-21 Doug Evans <xdje42@gmail.com>
2174
250748cb 2175 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 2176
4a2722c5
DE
21772014-05-21 Doug Evans <xdje42@gmail.com>
2178
17292b30 2179 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
2180 (gdbscm_out_of_range_error): Ditto.
2181 (gdbscm_memory_error): Ditto.
250748cb
DE
2182 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2183 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
2184 (gdbscm_out_of_range_error): Update.
2185 (gdbscm_memory_error): Update.
2186 (gdbscm_scm_to_target_string_unsafe): Delete.
2187
6a3cb8e8
PA
21882014-05-21 Pedro Alves <palves@redhat.com>
2189
2190 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2191 globals.
2192 (inf_child_open_target): New function.
2193 (inf_child_open): Use inf_child_open_target to push the target
2194 instead of erroring out.
2195 (inf_child_disconnect, inf_child_close)
2196 (inf_child_maybe_unpush_target): New functions.
2197 (inf_child_target): Install inf_child_disconnect and
2198 inf_child_close. Store a pointer to the returned object.
2199 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2200 declarations.
2201 * target.c (auto_connect_native_target): New global.
2202 (show_default_run_target): New function.
2203 (find_default_run_target): Return NULL if automatically connecting
2204 to the native target is disabled.
2205 (_initialize_target): Install set/show auto-connect-native-target.
2206 * NEWS: Mention "set auto-connect-native-target", and "target
2207 native".
2208 * linux-nat.c (super_close): New global.
2209 (linux_nat_close): Call super_close.
2210 (linux_nat_add_target): Store a pointer to the base class's
2211 to_close method.
2212 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2213 inf_child_maybe_unpush.
2214 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2215 already pushed.
2216 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2217 the inferior. Use inf_child_maybe_unpush_target.
2218 (inf_ttrace_attach): Don't push the target if it is already
2219 pushed.
2220 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2221 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2222 after mourning the inferior. Use inf_child_maybe_unpush_target.
2223 (darwin_attach_pid): Don't push the target if it is already
2224 pushed.
2225 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2226 mourning the inferior. Use inf_child_maybe_unpush_target.
2227 (gnu_detach): Use inf_child_maybe_unpush_target.
2228 * go32-nat.c (go32_create_inferior): Don't push the target if it
2229 is already pushed.
2230 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2231 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2232 (procfs_open): Rename to ...
2233 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2234 comments. Can target_preopen before changing node. Call
2235 inf_child_open_target to push the target explicitly.
2236 (procfs_attach): Don't push the target if it is already pushed.
2237 (procfs_detach): Use inf_child_maybe_unpush_target.
2238 (procfs_create_inferior): Don't push the target if it is already
2239 pushed.
2240 (nto_native_ops): New global.
2241 (procfs_open): Reimplement.
2242 (procfs_native_open): New function.
2243 (init_procfs_targets): Install procfs_native_open as to_open of
2244 "target native". Store a pointer to the "native" target in
2245 nto_native_ops.
2246 * procfs.c (procfs_attach): Don't push the target if it is already
2247 pushed.
2248 (procfs_detach): Use inf_child_maybe_unpush_target.
2249 (procfs_mourn_inferior): Only unpush the target after mourning the
2250 inferior. Use inf_child_maybe_unpush_target.
2251 (procfs_init_inferior): Don't push the target if it is already
2252 pushed.
2253 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2254 if it is already pushed.
2255
930ee1b1
PA
22562014-05-21 Pedro Alves <palves@redhat.com>
2257
2258 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2259 and "procfs" targets are now called "native" instead.
2260
1f5d1b13
PA
22612014-05-21 Pedro Alves <palves@redhat.com>
2262
2263 * go32-nat.c (go32_open): Delete.
2264 (go32_target): Don't override the to_open method.
2265
132f8e03
PA
22662014-05-21 Pedro Alves <palves@redhat.com>
2267
2268 * nto-procfs.c (procfs_can_run): New function.
2269 (nto_procfs_ops): New global.
2270 (init_procfs_targets): New, based on procfs_target. Install
2271 "target native" in addition to "target procfs".
2272 (_initialize_procfs): Call init_procfs_targets instead of adding
2273 the target here.
2274
03c136c3
PA
22752014-05-21 Pedro Alves <palves@redhat.com>
2276
2277 * windows-nat.c (windows_target): Don't override to_shortname,
2278 to_longname or to_doc.
2279
a635d0f3
PA
22802014-05-21 Pedro Alves <palves@redhat.com>
2281
2282 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2283 to_doc.
2284
4f9b5133
PA
22852014-05-21 Pedro Alves <palves@redhat.com>
2286
2287 * darwin-nat.c (_initialize_darwin_inferior): Don't override
2288 to_shortname, to_longname or to_doc.
2289
bc85afde
PA
22902014-05-21 Pedro Alves <palves@redhat.com>
2291
2292 * go32-nat.c (go32_target): Don't override to_shortname,
2293 to_longname or to_doc.
2294
4ebfc96e
PA
22952014-05-21 Pedro Alves <palves@redhat.com>
2296
2297 * inf-child.c (inf_child_open): Remove mention of "child".
2298 (inf_child_target): Rename target to "native" instead of "child".
2299
2648dfed
AA
23002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301
2302 * Makefile.in (SFILES): Delete "regset.c".
2303 (COMMON_OBS): Delete "regset.o".
2304 * regset.c: Remove.
2305 * regset.h (regset_alloc): Delete prototype.
2306
b13feb94
AA
23072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2308
2309 * sparc-linux-tdep.c (sparc32_linux_gregset)
2310 (sparc32_linux_fpregset): New static regset structures.
2311 (sparc32_linux_init_abi): Drop dynamic regset allocations.
2312 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
2313 'fpregset' fields.
2314 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
2315 (sparc64_linux_fpregset): New static regset structures.
2316 (sparc64_linux_init_abi): Drop dynamic regset allocations.
2317 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
2318 New static regset structures.
2319 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
2320 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
2321 New static regset structures.
2322 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
2323 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
2324 New static regset structures.
2325 (sparc64obsd_init_abi): Drop dynamic regset allocations.
2326 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
2327 New static regset structures.
2328 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
2329
b4fd25c9
AA
23302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2331
2332 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
2333 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
2334 register maps ("regmaps") from "*regset" to "*regmap". Do this
2335 for all regmap types and variables.
2336 * sparc-linux-tdep.c (sparc32_linux_step_trap)
2337 (sparc32_linux_supply_core_gregset)
2338 (sparc32_linux_collect_core_gregset)
2339 (sparc32_linux_supply_core_fpregset)
2340 (sparc32_linux_collect_core_fpregset): Likewise.
2341 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
2342 (sparc_gregmap, sparc_fpregmap): ... these.
2343 (sparc_supply_gregset, sparc_collect_gregset)
2344 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2345 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
2346 (_initialize_sparc_nat): Rename regmaps.
2347 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
2348 (sparc_gregmap, sparc_fpregmap): ... these.
2349 (sparc_supply_gregset, sparc_collect_gregset)
2350 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
2351 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
2352 Rename macros to...
2353 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
2354 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
2355 Likewise.
2356 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
2357 Rename to...
2358 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
2359 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
2360 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
2361 regmaps.
2362 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2363 (sparc32_bsd_fpregset): Rename to...
2364 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2365 (sparc32_bsd_fpregmap): ... these.
2366 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
2367 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
2368 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
2369 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
2370 (struct sparc_gregmap, struct sparc_fpregmap)
2371 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
2372 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
2373 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
2374 (sparc32_supply_regset, sparc32_collect_gregset)
2375 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
2376 prototypes.
2377 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
2378 (sparc64_linux_ptrace_gregmap): ... this.
2379 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
2380 (_initialize_sparc64_linux_nat): Rename regmaps.
2381 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
2382 (sparc64_linux_core_gregmap): ... this.
2383 (sparc64_linux_supply_core_gregset)
2384 (sparc64_linux_collect_core_gregset)
2385 (sparc64_linux_supply_core_fpregset)
2386 (sparc64_linux_collect_core_fpregset): Rename regmaps.
2387 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
2388 (sparc64_sol2_fpregset): Rename to...
2389 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
2390 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2391 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
2392 regmaps.
2393 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
2394 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
2395 (sparc64_bsd_fpregset): Rename to...
2396 (struct sparc_gregmap, sparc64_sol2_gregmap)
2397 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
2398 (sparc64_bsd_fpregmap): ... these.
2399 (sparc64_supply_gregset, sparc64_collect_gregset)
2400 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
2401 prototypes.
2402 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
2403 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
2404 (sparc64fbsd_gregmap): ... this.
2405 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
2406 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
2407 Rename regmaps.
2408 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
2409 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2410 (sparc64nbsd_collect_fpregset): Likewise.
2411 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
2412 (sparc64nbsd_gregmap): ... this.
2413 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
2414 regmaps.
2415 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
2416 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
2417 (sparc64obsd_gregmap): ... this.
2418 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
2419 regmaps.
2420 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
2421 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
2422 (sparc32nbsd_gregmap): ... this.
2423 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
2424 regmaps.
2425
8fea3224
AA
24262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2427
2428 * score-tdep.c (score7_linux_gregset): New static regset
2429 structure.
2430 (score7_linux_regset_from_core_section): Remove dynamic regset
2431 allocation.
2432 (score_gdbarch_init): Drop allocation of tdep structure.
2433 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
2434
24534243
AA
24352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2436
2437 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
2438 regset structures.
2439 (am33_regset_from_core_section): Remove dynamic regset
2440 allocations.
2441
b7195f27
AA
24422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2443
2444 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
2445 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
2446 structures.
2447 (mips_linux_regset_from_core_section): Remove dynamic regset
2448 allocations.
2449 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2450 'gregset64', 'fpregset', and 'fpregset64'.
2451 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
2452 deleted tdep fields.
2453
ecc37a5a
AA
24542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2455
2456 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
2457 regset structures.
2458 (amd64_regset_from_core_section): Remove dynamic regset
2459 allocations.
2460 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
2461 structure.
2462 (amd64obsd_regset_from_core_section): Remove dynamic regset
2463 allocation.
2464 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2465 Likewise.
2466 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
2467 x86-common regset supply function.
2468 * i386-tdep.c (i386_collect_gregset): Make static.
2469 (i386_gregset): New global regset structure.
2470 (i386_fpregset, i386_xstateregset): New static regset structures.
2471 (i386_regset_from_core_section): Remove dynamic regset
2472 allocations.
2473 (i386_gdbarch_init): Remove initialization of tdep fields
2474 'gregset', 'fpregset', and 'xstateregset'.
2475 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
2476 'fpregset', and 'xstateregset'.
2477 (i386_collect_gregset): Remove prototype.
2478 (i386_gregset): New declaration.
2479 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
2480 structure.
2481 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
2482 allocation.
2483
b7611c43
AA
24842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2485
2486 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
2487 (arm_linux_vfpregset): New static regset structures.
2488 (arm_linux_regset_from_core_section): Remove dynamic allocation of
2489 regset structures.
2490 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
2491 and 'vfpregset' fields.
2492
a069a2bd
AA
24932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2494
2495 * aarch64-linux-tdep.c (aarch64_linux_gregset)
2496 (aarch64_linux_fpregset): New static regset structures.
2497 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
2498 of regset structures.
2499 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
2500 'fpregset' fields.
2501
09424cff
AA
25022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2503
2504 * regset.h (struct regset): Remove gdbarch field.
2505 * regset.c (regset_alloc): Drop initialization of gdbarch field.
2506 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2507 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
2508 Likewise.
2509 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
2510 (ppc32_linux_fpregset, ppc32_linux_vrregset)
2511 (ppc32_linux_vsxregset): Likewise.
2512 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
2513 via the regcache instead of the regset.
2514 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
2515 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
2516 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
2517 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
2518 Likewise.
2519
3ca7dae4
AA
25202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2521
2522 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
2523 Constify structures.
2524 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
2525 (alphanbsd_aout_gregset): Likewise.
2526 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
2527 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
2528 Likewise.
2529 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2530 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
2531 Likewise.
2532 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
2533 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
2534 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
2535 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
2536 * m88k-tdep.c (m88k_gregset): Likewise.
2537 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
2538 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
2539 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
2540 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
2541 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2542 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
2543 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2544 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
2545 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
2546 Likewise.
2547 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
2548 * sh-tdep.h (sh_corefile_gregset): Likewise.
2549 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
2550 * vax-tdep.c (vax_gregset): Likewise.
2551
5876f503
JK
25522014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2553
2554 Fix TLS access for -static -pthread.
2555 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
2556 (try_thread_db_load_1): Initialize it.
2557 (thread_db_get_thread_local_address): Call it if LM is zero.
2558 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
2559 * target.h (struct target_ops) (to_get_thread_local_address): Add
2560 load_module_addr comment.
2561
0256a6ac
PA
25622014-05-21 Pedro Alves <palves@redhat.com>
2563
2564 * dcache.c (dcache_read_memory_partial): If reading the cache line
2565 fails, fallback to reading just the memory the caller wanted.
2566
227533ac
DE
25672014-05-20 Doug Evans <dje@google.com>
2568
2569 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
2570 instead of get_current_arch.
2571
936d2992
PA
25722014-05-20 Pedro Alves <palves@redhat.com>
2573
2574 * NEWS: Mention that compare-sections now works with all targets.
2575
2576 * remote.c (PACKET_qCRC): New enum value.
2577 (remote_verify_memory): Don't send qCRC if the target has no
2578 execution. Use packet_support/packet_ok. If the target doesn't
2579 support the qCRC packet, fallback to a deep memory copy.
2580 (compare_sections_command): Say "target image" instead of "remote
2581 executable".
2582 (_initialize_remote): Add PACKET_qCRC to the list of config
2583 packets that have no associated command. Extend comment.
2584 * target.c (simple_verify_memory, default_verify_memory): New
2585 function.
2586 * target.h (struct target_ops) <to_verify_memory>: Default to
2587 default_verify_memory.
2588 (simple_verify_memory): New declaration.
2589 * target-delegates.c: Regenerate.
2590
e59fa00f
MM
25912014-05-20 Markus Metzger <markus.t.metzger@intel.com>
2592
2593 * record-btrace.c (record_btrace_step_thread): Check for empty history.
2594
f2205de0
HZ
25952014-05-20 Hui Zhu <hui@codesourcery.com>
2596 Yao Qi <yao@codesourcery.com>
2597
2598 PR backtrace/16558
2599 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
2600 and change address of sp and pc.
2601
c4e54771
TT
26022014-05-19 Tom Tromey <tromey@redhat.com>
2603
2604 * gdbtypes.c (rank_function): Use XNEWVEC.
2605 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
2606
73051182
DE
26072014-05-19 Doug Evans <dje@google.com>
2608
2609 * dwarf2read.c (build_type_psymtabs_1): Renamed from
2610 build_type_unit_groups and moved closer to only caller. Remove
2611 arguments. All references updated. Remove outdated .gdb_index
2612 comment.
2613 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
2614 build_type_psymtabs_1.
2615
8832e7e3
DE
26162014-05-19 Doug Evans <dje@google.com>
2617
2618 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
2619 n_type_unit_groups, all_type_unit_groups. All uses removed.
2620 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
2621 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
2622 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
2623 (add_type_unit_group_to_table): Delete.
2624
cd8ae15e
DE
26252014-05-19 Doug Evans <dje@google.com>
2626
2627 * eval.c (evaluate_subexp_standard): Add some comments.
2628
08f4850b
DE
26292014-05-17 Doug Evans <xdje42@gmail.com>
2630
2631 * progspace.c (remove_program_space): Delete, unused.
2632 * progspace.h (remove_program_space): Ditto.
2633
bed8455c
DE
26342014-05-17 Doug Evans <xdje42@gmail.com>
2635
2636 * inferior.c (prune_inferiors): Fix comment.
2637 (remove_inferior_command): Call prune_program_spaces.
2638
8d551b02
DE
26392014-05-16 Doug Evans <dje@google.com>
2640
2641 New command line option -D.
2642 * NEWS: Mention it.
2643 * main.c (set_gdb_data_directory): New function.
2644 (captured_main): Recognize -D. Flag error for --data-directory "".
2645 Call set_gdb_data_directory.
2646 (print_gdb_help): Print --data-directory, -D.
2647 * main.h (set_gdb_data_directory): Declare.
2648 * top.c (staged_gdb_datadir): New static global.
2649 (set_gdb_datadir): Call set_gdb_data_directory
2650 (show_gdb_datadir): New function.
2651 (init_main): Update init of data-directory parameter.
2652
18848e28
GF
26532014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
2654
2655 Import the "dirfd" gnulib module.
2656 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
2657 * gnulib/aclocal.m4: Update.
2658 * gnulib/config.in: Update.
2659 * gnulib/configure: Update.
2660 * gnulib/import/Makefile.am: Update.
2661 * gnulib/import/Makefile.in: Update.
2662 * gnulib/import/dirfd.c: New.
2663 * gnulib/import/m4/dirfd.m4: New.
2664 * gnulib/import/m4/gnulib-cache.m4: Update.
2665 * gnulib/import/m4/gnulib-comp.m4: Update.
2666
95c64f92
YQ
26672014-05-16 Pierre Muller <muller@sourceware.org>
2668 Yao Qi <yao@codesourcery.com>
2669
2670 * valprint.c (print_wchar): Move the code on checking whether
2671 W is a printable wide char to the default branch of switch
2672 statement below. Call wchar_printable instead of gdb_iswprint.
2673
cac395ea
TM
26742014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2675
19679eca 2676 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
2677 ldr.w and ldrd instructions.
2678
83655187
DE
26792014-05-15 Doug Evans <dje@google.com>
2680
2681 * dwarf2read.c (read_structure_type): Delete outdated comments.
2682
dd756689
TT
26832014-05-14 Tom Tromey <tromey@redhat.com>
2684
2685 * macrocmd.c (print_macro_definition): Reindent.
2686
75ddda77
DE
26872014-05-13 Doug Evans <xdje42@gmail.com>
2688
2689 * python/py-cmd.c (cmdpy_completer): Add comment.
2690 (completers): Make const.
2691
b0f16a3e
SM
26922014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2693
2694 * infrun.c (resume): Remove should_resume (unused). Move up
2695 declaration of resume_ptid.
2696
033c3379
TT
26972014-05-13 Tom Tromey <tromey@redhat.com>
2698
2699 * language.h (unop_type_check): Remove.
2700 (binop_type_check): Don't declare.
2701
9b44a3a5
AA
27022014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2703
2704 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2705 call to regcache_raw_collect.
2706
303a33fa
SM
27072014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2708
2709 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2710 mi_console->quote as the quoting character.
2711
196100a0
SM
27122014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2713
2714 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2715
f989a1c8
TT
27162014-04-29 Tom Tromey <tromey@redhat.com>
2717
2718 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2719 "show debug varobj".
2720
9404b58f
KM
27212014-05-07 Kyle McMartin <kyle@redhat.com>
2722
2723 Pushed by Joel Brobecker <brobecker@adacore.com>.
2724 * aarch64-tdep.c (aarch64_software_single_step): New function.
2725 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2726 with aarch64_software_single_step.
2727
5e49ba57
JB
27282014-05-05 Joel Brobecker <brobecker@adacore.com>
2729
2730 GDB 7.7.1 released.
2731
c888a17d
KS
27322014-05-05 Keith Seitz <keiths@redhat.com>
2733
2734 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2735 variable or history value is successfully parsed.
2736
290a839c
YQ
27372014-05-05 Yao Qi <yao@codesourcery.com>
2738 Pedro Alves <palves@redhat.com>
2739
2740 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2741 address of blocks that intersects the requested range. Trim
2742 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2743 sections.
2744 * ctf.c (ctf_xfer_partial): Likewise.
2745
91256dc2
YQ
27462014-05-05 Yao Qi <yao@codesourcery.com>
2747
2748 * printcmd.c (display_command): Remove the check to
2749 target_has_execution.
2750
07284463
MK
27512014-05-03 Mark Kettenis <kettenis@gnu.org>
2752
2753 * ppcobsd-nat.c: Include "obsd-nat.h".
2754 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2755 add_target.
2756 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2757
30a1e6cc
SDJ
27582014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2759
2760 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2761 and 16-bit signed and unsigned arguments. Update comment.
2762 (stap_parse_probe_arguments): Extend code to handle such
2763 arguments. Use warning instead of complaint to notify about
2764 unrecognized bitness.
2765
f33da99a
SDJ
27662014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2767
2768 PR breakpoints/16889
2769 * stap-probe.c (stap_parse_probe_arguments): Simplify
2770 check for non-prefixed probes (i.e., probes whose
2771 arguments do not start with "N@"). Always set the
2772 argument type to a sane value.
2773
95cf3b38
DT
27742014-05-01 David Taylor <dtaylor@emc.com>
2775
2776 * remote.c (compare_sections_command): Add -r option to compare
2777 all loadable read-only sections.
2778
1cfdf534
SC
27792014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2780
2781 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2782 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2783 Update all callers.
2784 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2785 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2786 Remove unused CORE_ADDR argument. Update all callers.
2787
ca4f7f8b
PA
27882014-04-29 Pedro Alves <palves@redhat.com>
2789
2790 * remote.c (struct packet_config) <detect>: Extend comment.
2791 (add_packet_config_cmd): Don't set the config's detect or support
2792 fields here.
2793 (init_all_packet_configs): Also initialize the config's 'detect'
2794 field.
2795 (reset_all_packet_configs_support): New function.
2796 (remote_open_1): Call reset_all_packet_configs_support instead of
2797 init_all_packet_configs.
2798 (_initialize_remote): Initialize all packet configs. Assert that
2799 all packets have an associated command, except a few known
2800 outliers.
2801
11c1ba78
JB
28022014-04-28 Joel Brobecker <brobecker@adacore.com>
2803
2804 * dwarf2read.c (read_subrange_type): Handle dynamic
2805 DW_AT_lower_bound attributes.
2806
8739bc53
JB
28072014-04-28 Joel Brobecker <brobecker@adacore.com>
2808
2809 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2810 dynamic bounds before computing its upper bound.
2811 (ada_discrete_type_low_bound): Same as above with the lower bound.
2812
6f8a3220
JB
28132014-04-28 Joel Brobecker <brobecker@adacore.com>
2814
2815 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2816 range types. Adjust the array handling implementation to
2817 take advantage of this change.
2818 (resolve_dynamic_range): New function, mostly extracted from
2819 resolve_dynamic_bounds.
2820 (resolve_dynamic_array): New function, mostly extracted from
2821 resolve_dynamic_bounds.
2822 (resolve_dynamic_bounds): Delete.
2823 (resolve_dynamic_type): Reimplement. Add handling of
2824 TYPE_CODE_RANGE types.
2825
4d072ce4
JB
28262014-04-28 Joel Brobecker <brobecker@adacore.com>
2827
2828 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2829 handling of parallel ___XA types.
2830
52865325
JB
28312014-04-28 Joel Brobecker <brobecker@adacore.com>
2832
2833 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2834 unnecessary second call to static_unwrap_type.
2835
433e77fa
HZ
28362014-04-27 Hui Zhu <hui@codesourcery.com>
2837
2838 * stack.c (print_frame_info): Call do_gdb_disassembly with
2839 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2840
b51a69ee
DE
28412014-04-26 Doug Evans <xdje42@gmail.com>
2842
2843 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2844
7ae1a6a6
PA
28452014-04-25 Pedro Alves <palves@redhat.com>
2846
2847 PR server/16255
2848 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2849 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2850 and newline from built string.
2851 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2852 (linux_ptrace_attach_fail_reason): ... this.
2853 * linux-nat.c (linux_nat_attach): Adjust to use
2854 linux_ptrace_attach_fail_reason.
2855
4082afcc
PA
28562014-04-25 Pedro Alves <palves@redhat.com>
2857
2858 * remote.c (struct remote_state): Remove multi_process_aware,
2859 non_stop_aware, cond_tracepoints, cond_breakpoints,
2860 breakpoint_commands, fast_tracepoints, static_tracepoints,
2861 install_in_trace, disconnected_tracing,
2862 enable_disable_tracepoints, string_tracing, and
2863 augmented_libraries_svr4_read fields.
2864 (remote_multi_process_p): Move further below in the file.
2865 (struct packet_config): Add comments.
2866 (update_packet_config): Delete function.
2867 (show_packet_config_cmd): Use packet_config_support.
2868 (add_packet_config_cmd): Use NULL as set callback.
2869 (packet_ok): "set remote foo-packet"-style commands no longer
2870 change config->supported -- adjust.
2871 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2872 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2873 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2874 (PACKET_QNonStop, PACKET_multiprocess_feature)
2875 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2876 (PACKET_DisconnectedTracing_feature)
2877 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2878 (set_remote_protocol_packet_cmd): Delete function.
2879 (packet_config_support, packet_support): New functions.
2880 (set_remote_protocol_Z_packet_cmd): Don't call
2881 update_packet_config.
2882 (remote_query_attached, remote_pass_signals)
2883 (remote_program_signals, remote_threads_info)
2884 (remote_threads_extra_info, remote_start_remote): Use
2885 packet_support.
2886 (remote_start_remote): Use packet_config_support and
2887 packet_support.
2888 (init_all_packet_configs): Set all packets to unknown support,
2889 instead of calling update_packet_config.
2890 (remote_check_symbols): Use packet_support.
2891 (remote_supported_packet): Unconditionally set the packet config's
2892 support status.
2893 (remote_multi_process_feature, remote_non_stop_feature)
2894 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2895 (remote_breakpoint_commands_feature)
2896 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2897 (remote_install_in_trace_feature)
2898 (remote_disconnected_tracing_feature)
2899 (remote_enable_disable_tracepoint_feature)
2900 (remote_string_tracing_feature)
2901 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2902 (remote_protocol_features): Adjust to use remote_supported_packet
2903 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2904 "ConditionalTracepoints", "ConditionalBreakpoints",
2905 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2906 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2907 "EnableDisableTracepoints", and "tracenz".
2908 (remote_query_supported): Use packet_support.
2909 (remote_open_1): Adjust.
2910 (extended_remote_attach_1): Use packet_support. Switch on the
2911 result of packet_ok instead of checking whether the packet ended
2912 up disabled.
2913 (remote_vcont_resume): Use packet_support.
2914 (remote_resume, remote_stop_ns, fetch_register_using_p)
2915 (remote_prepare_to_store, store_register_using_P)
2916 (check_binary_download, remote_write_bytes): Use packet_support.
2917 (remote_vkill): Use packet_support. Switch on the result of
2918 packet_ok instead of checking whether the packet ended up
2919 disabled.
2920 (extended_remote_supports_disable_randomization): Use
2921 packet_support.
2922 (extended_remote_run): Switch on the result of packet_ok instead
2923 of checking whether the packet ended up disabled.
2924 (remote_insert_breakpoint, remote_remove_breakpoint)
2925 (remote_insert_watchpoint, remote_remove_watchpoint)
2926 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2927 packet_support.
2928 (remote_search_memory): Use packet_config_support.
2929 (remote_get_thread_local_address, remote_get_tib_address)
2930 (remote_hostio_send_command, remote_can_execute_reverse): Use
2931 packet_support.
2932 (remote_supports_cond_tracepoints)
2933 (remote_supports_cond_breakpoints)
2934 (remote_supports_fast_tracepoints)
2935 (remote_supports_static_tracepoints)
2936 (remote_supports_install_in_trace)
2937 (remote_supports_enable_disable_tracepoint)
2938 (remote_supports_string_tracing)
2939 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2940 the packet config says the feature is enabled or disabled.
2941 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2942 (remote_get_trace_status): Use packet_support.
2943 (remote_set_disconnected_tracing): Adjust to check whether the
2944 feature is enabled with packet_support.
2945 (remote_set_trace_buffer_size, remote_use_agent)
2946 (remote_can_use_agent, remote_supports_btrace): Use
2947 packet_support.
2948 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2949 Use packet_config_support.
2950 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2951 the packet config says the feature is enabled or disabled.
2952 (set_range_stepping): Use packet_support.
2953
bdb52a22
TT
29542014-04-25 Tom Tromey <tromey@redhat.com>
2955
2956 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2957 argument.
2958
e9475ead
SA
29592014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2960
2961 * NEWS: Mention support for C99 variable length arrays.
2962
82eacd52
JB
29632014-04-24 Joel Brobecker <brobecker@adacore.com>
2964
2965 * ada-lang.c (standard_exc): Expand introductory comment.
2966
01f9f808
MS
29672014-04-24 Michael Sturm <michael.sturm@mintel.com>
2968 Walfred Tedeschi <walfred.tedeschi@intel.com>
2969
2970 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2971 AVX512 registers.
2972 (amd64_linux_read_description): Add code to handle AVX512 xstate
2973 mask and return respective tdesc.
2974 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2975 and features/i386/x32-avx512-linux.c.
2976 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2977 (amd64_linux_core_read_description): Add code to handle AVX512
2978 xstate mask and return respective tdesc.
2979 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2980 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2981 calculation.
2982 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2983 (tdesc_amd64_avx512_linux): New prototype.
2984 (tdesc_x32_avx512_linux): Likewise.
2985 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2986 features/i386/x32-avx512.c.
2987 (amd64_ymm_avx512_names): New register names for pseudo
2988 registers YMM16-31.
2989 (amd64_ymmh_avx512_names): New register names for raw registers
2990 YMMH16-31.
2991 (amd64_k_names): New register names for K registers.
2992 (amd64_zmmh_names): New register names for ZMM raw registers.
2993 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2994 (amd64_xmm_avx512_names): New register names for XMM16-31
2995 registers.
2996 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2997 registers.
2998 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2999 if feature is present.
3000 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3001 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3002 (AMD64_NUM_REGS): Adjust to new number of registers.
3003 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3004 registers supplied via XSTATE by AVX512 registers.
3005 (i386_linux_read_description): Add case for AVX512.
3006 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3007 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3008 (i386_linux_core_read_description): Add case for AVX512.
3009 (i386_linux_init_abi): Install supported register note section
3010 for AVX512.
3011 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3012 AVX512.
3013 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3014 registers to be number of zmm7h + 1.
3015 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3016 * i386-tdep.c: Include features/i386/i386-avx512.c.
3017 (i386_zmm_names): Add ZMM pseudo register names array.
3018 (i386_zmmh_names): Add ZMM raw register names array.
3019 (i386_k_names): Add K raw register names array.
3020 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3021 registers. AVX512 has 16 more ZMM registers than there are YMM
3022 registers.
3023 (i386_zmmh_regnum_p): Add function to look up register number of
3024 ZMM raw registers.
3025 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3026 (i386_k_regnum_p): Likewise for K raw registers.
3027 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3028 registers added by AVX512.
3029 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3030 registers added by AVX512.
3031 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3032 added by AVX512.
3033 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3034 (i386_pseudo_register_name): Add ZMM pseudo registers.
3035 (i386_zmm_type): Construct and return vector registers type for ZMM
3036 registers.
3037 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3038 ZMM0-31 pseudo registers and K registers.
3039 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3040 and YMM16-31 registers from register cache.
3041 (i386_pseudo_register_write): Add code to write K, ZMM and
3042 YMM16-31 registers.
3043 (i386_register_reggroup_p): Add code to include/exclude AVX512
3044 registers in/from respective register groups.
3045 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3046 registers if feature is present in xcr0.
3047 (i386_gdbarch_init): Add code to initialize AVX512 feature
3048 variables in tdep structure, wire in pseudo registers and call
3049 initialize_tdesc_i386_avx512.
3050 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3051 variables.
3052 (i386_regnum): Add AVX512 registers.
3053 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3054 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3055 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3056 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3057 512 bits wide.
3058 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3059 (i386_ymm_avx512_regnum_p): Likewise.
3060 (i386_k_regnum_p): Likewise.
3061 (i386_zmm_regnum_p): Likewise.
3062 (i386_zmmh_regnum_p): Likewise.
3063 * i387-tdep.c : Update year in copyright notice.
3064 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3065 XSAVE buffer.
3066 (XSAVE_YMM_AVX512_ADDR): New macro.
3067 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3068 XSAVE buffer.
3069 (XSAVE_XMM_AVX512_ADDR): New macro.
3070 (xsave_avx512_k_offset): New table for K register offsets in
3071 XSAVE buffer.
3072 (XSAVE_AVX512_K_ADDR): New macro.
3073 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3074 in XSAVE buffer.
3075 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3076 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3077 buffer.
3078 (i387_collect_xsave): Add code to collect AVX512 registers from
3079 XSAVE buffer.
3080 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3081 of XMM16-31 registers.
3082 (I387_NUM_K_REGS): New define for number of K registers.
3083 (I387_K0_REGNUM): New define for K0 register number.
3084 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3085 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3086 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3087 registers.
3088 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3089 (I387_XMM16_REGNUM): New define for XMM16 register number.
3090 (I387_YMM0_REGNUM): New define for YMM0 register number.
3091 (I387_KEND_REGNUM): New define for last K register number.
3092 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3093 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3094 number.
3095 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3096 number.
3097 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3098 size.
3099 * features/Makefile: Add AVX512 related files.
3100 * features/i386/32bit-avx512.xml: New file.
3101 * features/i386/64bit-avx512.xml: Likewise.
3102 * features/i386/amd64-avx512-linux.c: Likewise.
3103 * features/i386/amd64-avx512-linux.xml: Likewise.
3104 * features/i386/amd64-avx512.c: Likewise.
3105 * features/i386/amd64-avx512.xml: Likewise.
3106 * features/i386/i386-avx512-linux.c: Likewise.
3107 * features/i386/i386-avx512-linux.xml: Likewise.
3108 * features/i386/i386-avx512.c: Likewise.
3109 * features/i386/i386-avx512.xml: Likewise.
3110 * features/i386/x32-avx512-linux.c: Likewise.
3111 * features/i386/x32-avx512-linux.xml: Likewise.
3112 * features/i386/x32-avx512.c: Likewise.
3113 * features/i386/x32-avx512.xml: Likewise.
3114 * regformats/i386/amd64-avx512-linux.dat: New file.
3115 * regformats/i386/amd64-avx512.dat: Likewise.
3116 * regformats/i386/i386-avx512-linux.dat: Likewise.
3117 * regformats/i386/i386-avx512.dat: Likewise.
3118 * regformats/i386/x32-avx512-linux.dat: Likewise.
3119 * regformats/i386/x32-avx512.dat: Likewise.
3120 * NEWS: Add note about new support for AVX512.
3121
3122
08351840
PA
31232014-04-23 Pedro Alves <palves@redhat.com>
3124
3125 * breakpoint.c (insert_bp_location): Tolerate errors if the
3126 breakpoint is set in a user-loaded objfile.
3127 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3128 location is marked shlib_disabled. If the breakpoint is set in a
3129 user-loaded objfile is a GDB-side memory breakpoint, validate it
3130 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3131 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3132 flag.
3133 * mem-break.c (memory_validate_breakpoint): New function.
3134 * objfiles.c (userloaded_objfile_contains_address_p): New
3135 function.
3136 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3137 * target.h (memory_validate_breakpoint): New declaration.
3138
076855f9
PA
31392014-04-23 Pedro Alves <palves@redhat.com>
3140
3141 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3142 the breakpoint is set in a shared library, only suppress
3143 errors for software breakpoints, not hardware breakpoints.
3144
483805cf
PA
31452014-04-22 Pedro Alves <palves@redhat.com>
3146
3147 * infrun.c (schedlock_applies): New function, factored out from
3148 find_thread_needs_step_over.
3149 (find_thread_needs_step_over): Use it.
3150 (switch_back_to_stepped_thread): Always clear trap_expected if the
3151 step over is finished. Return early if scheduler locking applies.
3152 Look for the stepping thread and a potential step-over thread with
3153 a single loop.
3154 (currently_stepping_or_nexting_callback): Delete.
3155
a75fef0e
NC
31562014-04-22 Nick Clifton <nickc@redhat.com>
3157
3158 * NEWS: Mention that ARM sim now supports tracing.
3159
48b6e87e
YQ
31602014-04-22 Yao Qi <yao@codesourcery.com>
3161
3162 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3163 to ...
3164 * tracefile.c (tracefile_fetch_registers): ... it. New
3165 function.
3166 * tracefile.h (tracefile_fetch_registers): Declare.
3167 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3168 tracefile_fetch_registers.
3169
17617f2d
EZ
31702014-04-19 Eli Zaretskii <eliz@gnu.org>
3171
3172 PR gdb/14018
3173 * windows-nat.c (thread_rec): Don't display a warning when
3174 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3175 fails for any reason, set th->suspended to -1, so that we don't
3176 try to resume such a thread. Also, don't return NULL in these
3177 cases, to avoid completely ruin the session due to "PC register is
3178 not available" error.
3179 (do_windows_fetch_inferior_registers): Check errors in
3180 GetThreadContext call.
3181 (windows_continue): Accept an additional argument KILLED; if not
3182 zero, ignore errors in the SetThreadContext call, since the
3183 inferior was killed and is shutting down.
3184 (windows_resume, get_windows_debug_event)
3185 (windows_create_inferior, windows_mourn_inferior)
3186 (windows_kill_inferior): All callers of windows_continue changed
3187 to adjust to its new calling sequence.
3188
5723a6fd
YQ
31892014-04-19 Yao Qi <yao@codesourcery.com>
3190
3191 * ctf.c (ctf_open): Call post_create_inferior.
3192
614d5099
YQ
31932014-04-19 Yao Qi <yao@codesourcery.com>
3194
3195 * ctf.c (handle_id): New static variable.
3196 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3197 value. Get the declaration of event "register" and get length
3198 of field "contents".
3199
dac3e710
YQ
32002014-04-19 Yao Qi <yao@codesourcery.com>
3201
3202 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3203
2bca57ba
SC
32042014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3205
3206 * valops.c (oload_method_static): Remove unnecessary argument
3207 METHOD. Update all callers.
3208
51d48146
PA
32092014-04-18 Pedro alves <palves@redhat.com>
3210 Tom Tromey <tromey@redhat.com>
3211
3212 PR backtrace/15558
3213 * frame.c (get_prev_frame_1): Rename to ...
3214 (get_prev_frame_always): ... this, and make extern. Adjust.
3215 (skip_artificial_frames): Use get_prev_frame_always.
3216 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3217 (get_frame_unwind_stop_reason): Adjust to rename.
3218 * frame.h (get_prev_frame_always): Declare.
3219 * inline-frame.c: Include frame.h.
3220 (inline_frame_this_id): Use get_prev_frame_always.
3221
1bdad2e0
TG
32222014-04-18 Tristan Gingold <gingold@adacore.com>
3223
3224 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3225 code by using bfd_mach_o_get_base_address.
3226
7ce16bd4
UW
32272014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3228
3229 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3230 (spu_ax_pseudo_register_collect): New function.
3231 (spu_ax_pseudo_register_push_stack): Likewise.
3232 (spu_dwarf_reg_to_regnum): Likewise.
3233 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3234
2ed3c037
UW
32352014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3236
3237 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3238 Replace FRAME argument with FRAME_ID.
3239 * gdbarch.c, gdbarch.h: Regenerate.
3240 * findvar.c (default_value_from_register): Add GDBARCH argument;
3241 replace FRAME by FRAME_ID. No longer call get_frame_id.
3242 (value_from_register): Update call to gdbarch_value_from_register.
3243 * value.h (default_value_from_register): Update prototype.
3244 * s390-linux-tdep.c (s390_value_from_register): Update interface
3245 and call to default_value_from_register.
3246 * spu-tdep.c (spu_value_from_register): Likewise.
3247
3248 * findvar.c (address_from_register): Remove TYPE argument.
3249 Do not call value_from_register; use gdbarch_value_from_register
3250 with null_frame_id instead.
3251 * value.h (address_from_register): Update prototype.
3252 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3253 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3254 address_from_register interface change.
3255
71e50e83
YQ
32562014-04-17 Yao Qi <yao@codesourcery.com>
3257
3258 * gdbtypes.h: Update comments to link to types and macros'
3259 definitions.
3260
7a23c549
SC
32612014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3262
3263 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3264
22869d73
KS
32652014-04-16 Keith Seitz <keiths@redhat.com>
3266
3267 PR gdb/15827
3268 * dwarf2read.c (skip_one_die): Check that all relative-offset
3269 sibling DIEs fall within range of the current reader's buffer.
3270 (read_partial_die): Likewise.
3271
c4f87ca6
KS
32722014-04-16 Keith Seitz <keiths@redhat.com>
3273
3274 PR c++/16597
3275 * cp-namespace.c (lookup_symbol_file): If the type name of
3276 `this' is NULL, return immediately.
3277
b50c8614
KS
32782014-04-14 Keith Seitz <keiths@redhat.com>
3279
3280 PR c++/16253
3281 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3282 from symbol_matches_domain in symtab.c. All local callers
3283 of symbol_matches_domain updated.
3284 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3285 search STRUCT_DOMAIN.
3286 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3287 independently. standard_lookup will do that automatically.
3288 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3289 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3290 (cp_lookup_symbol_in_namespace): Likewise.
3291 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3292 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3293 may return a STRUCT_DOMAIN match.
3294 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3295 * cp-support.c: Include language.h.
3296 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3297 VAR_DOMAIN.
3298 * psymtab.c (match_partial_symbol): Compare the requested
3299 domain with the symbol's domain directly.
3300 (lookup_partial_symbol): Likewise.
3301 * symtab.c (lookup_symbol_in_language): Explain when/why
3302 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3303 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3304 appropriate languages.
3305 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3306 and moved to ada-lang.c
3307 (lookup_block_symbol): Explain that this function only returns
3308 symbol matching the requested DOMAIN.
3309 Compare the requested domain with the symbol's domain directly.
3310 (iterate_over_symbols): Compare the requested domain with the
3311 symbol's domain directly.
3312 * symtab.h (symbol_matches_domain): Remove.
3313
3d567982
TT
33142014-04-14 Tom Tromey <tromey@redhat.com>
3315
3316 PR c++/15246:
3317 * c-exp.y (type_aggregate_p): New function.
3318 (qualified_name, classify_inner_name): Use it.
3319 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
3320 and TYPE_TARGET_TYPE of an enum type.
3321 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
3322 an enum type.
3323 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
3324 handle TYPE_DECLARED_CLASS.
3325 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
3326 types.
3327 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
3328 * valops.c (enum_constant_from_type): New function.
3329 (value_aggregate_elt): Use it.
3330 * cp-namespace.c (cp_lookup_nested_symbol): Handle
3331 TYPE_CODE_ENUM.
3332
c848d642
TT
33332014-04-14 Tom Tromey <tromey@redhat.com>
3334
3335 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
3336 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
3337 const.
3338 * value.h (value_aggregate_elt): Update.
3339
0626fc76
TT
33402014-04-14 Tom Tromey <tromey@redhat.com>
3341
3342 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
3343
5ecaaa66
SA
33442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3345
3346 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3347 (evaluate_subexp_standard): Pass noside argument.
3348 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3349 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3350 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3351 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3352 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3353
1612e0c0
SA
33542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3355
3356 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3357 points to a constant blob.
3358
c451ebe5
SA
33592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3360
3361 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3362 property and store it as the high bound and flag the range accordingly.
3363 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3364 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3365 * gdbtypes.h (enum range_flags): New enum.
3366 (struct range_bounds): Add flags member.
3367
1d42e4c4
SA
33682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3369
3370 * c-typeprint.c (c_type_print_varspec_suffix): Added
3371 check for not yet resolved high bound. If unresolved, print
3372 "variable length" string to the console instead of random
3373 length.
3374
9f1f738a
SA
33752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3376
3377 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
3378 value.
3379 (ada_template_to_fixed_record_type_1): Likewise.
3380 (ada_to_fixed_type_1): Likewise.
3381 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3382 (cp_print_value): Likewise.
3383 * d-valprint.c (dynamic_array_type): Likewise.
3384 * findvar.c (address_of_variable): Likewise.
3385 * jv-valprint.c (java_value_print): Likewise.
3386 * valops.c (value_ind): Likewise.
3387 * value.c (coerce_ref): Likewise.
3388
3c8452d4
SA
33892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3390
3391 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3392 value and retrieve the dynamic type size.
3393
4ad88275
SA
33942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3395
3396 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3397 passed to sizeof is dynamic evaluate the argument to compute the length.
3398
80180f79
SA
33992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
3400 Joel Brobecker <brobecker@adacore.com>
3401
3402 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3403 (dwarf2_evaluate_property): New function.
3404 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3405 * dwarf2read.c (attr_to_dynamic_prop): New function.
3406 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3407 attribute.
3408 * gdbtypes.c: Include dwarf2loc.h.
3409 (is_dynamic_type): New function.
3410 (resolve_dynamic_type): New function.
3411 (resolve_dynamic_bounds): New function.
3412 (get_type_length): New function.
3413 (check_typedef): Use get_type_length to compute type length.
3414 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3415 (TYPE_LOW_BOUND_KIND): New macro.
3416 (is_dynamic_type): New function prototype.
3417 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3418 to resolve dynamic properties of the type. Update comment.
3419 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3420
a1556843
RH
34212014-04-14 Richard Henderson <rth@redhat.com>
3422
3423 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
3424
0be03e84
DE
34252014-04-12 Siva Chandra Reddy <sivachandra@google.com>
3426 Doug Evans <xdje42@gmail.com>
3427
3428 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
3429 dereference TYPE_CODE_REF values.
3430
6b662e19
JB
34312014-04-11 Joel Brobecker <brobecker@adacore.com>
3432
3433 Revert the following changes due to regressions:
3434
3435 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3436 (dwarf2_evaluate_property): New function.
3437 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3438 * dwarf2read.c (attr_to_dynamic_prop): New function.
3439 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3440 attribute.
3441 * gdbtypes.c: Include dwarf2loc.h.
3442 (is_dynamic_type): New function.
3443 (resolve_dynamic_type): New function.
3444 (resolve_dynamic_bounds): New function.
3445 (get_type_length): New function.
3446 (check_typedef): Use get_type_length to compute type length.
3447 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3448 (TYPE_LOW_BOUND_KIND): New macro.
3449 (is_dynamic_type): New function prototype.
3450 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3451 to resolve dynamic properties of the type. Update comment.
3452 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3453
3454 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3455 passed to sizeof is dynamic evaluate the argument to compute the length.
3456
3457 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3458 value and retrieve the dynamic type size.
3459
3460 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3461 (ada_template_to_fixed_record_type_1): Likewise.
3462 (ada_to_fixed_type_1): Likewise.
3463 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3464 (cp_print_value): Likewise.
3465 * d-valprint.c (dynamic_array_type): Likewise.
3466 * eval.c (evaluate_subexp_with_coercion): Likewise.
3467 * findvar.c (address_of_variable): Likewise.
3468 * jv-valprint.c (java_value_print): Likewise.
3469 * valops.c (value_ind): Likewise.
3470 * value.c (coerce_ref): Likewise.
3471
3472 * c-typeprint.c (c_type_print_varspec_suffix): Added
3473 check for not yet resolved high bound. If unresolved, print
3474 "variable length" string to the console instead of random
3475 length.
3476
3477 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3478 property and store it as the high bound and flag the range accordingly.
3479 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3480 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3481 * gdbtypes.h (enum range_flags): New enum.
3482 (struct range_bounds): Add flags member.
3483
3484 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3485 points to a constant blob.
3486
3487 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3488 (evaluate_subexp_standard): Pass noside argument.
3489 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3490 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3491 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3492 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3493 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3494
245a5f0b
KS
34952014-04-11 Keith Seitz <keiths@redhat.com>
3496
3497 PR c++/16675
3498 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
3499 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
3500 reference types.
3501
3bce8237
SA
35022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3503
3504 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
3505 (evaluate_subexp_standard): Pass noside argument.
3506 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
3507 if noside equals EVAL_NORMAL. If the subscript yields a vla type
3508 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
3509 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
3510 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
3511
92b09522
SA
35122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3513
3514 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
3515 points to a constant blob.
3516
e1969afb
SA
35172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3518
3519 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
3520 property and store it as the high bound and flag the range accordingly.
3521 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
3522 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
3523 * gdbtypes.h (enum range_flags): New enum.
3524 (struct range_bounds): Add flags member.
3525
b86138fb
SA
35262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3527
3528 * c-typeprint.c (c_type_print_varspec_suffix): Added
3529 check for not yet resolved high bound. If unresolved, print
3530 "variable length" string to the console instead of random
3531 length.
3532
bcd629a4
SA
35332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3534
3535 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
3536 (ada_template_to_fixed_record_type_1): Likewise.
3537 (ada_to_fixed_type_1): Likewise.
3538 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
3539 (cp_print_value): Likewise.
3540 * d-valprint.c (dynamic_array_type): Likewise.
3541 * eval.c (evaluate_subexp_with_coercion): Likewise.
3542 * findvar.c (address_of_variable): Likewise.
3543 * jv-valprint.c (java_value_print): Likewise.
3544 * valops.c (value_ind): Likewise.
3545 * value.c (coerce_ref): Likewise.
3546
04b19544
SA
35472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3548
3549 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
3550 value and retrieve the dynamic type size.
3551
26cb189f
SA
35522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3553
3554 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
3555 passed to sizeof is dynamic evaluate the argument to compute the length.
3556
37c1ab67
SA
35572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3558
3559 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
3560 (dwarf2_evaluate_property): New function.
3561 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
3562 * dwarf2read.c (attr_to_dynamic_prop): New function.
3563 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
3564 attribute.
3565 * gdbtypes.c: Include dwarf2loc.h.
3566 (is_dynamic_type): New function.
3567 (resolve_dynamic_type): New function.
3568 (resolve_dynamic_bounds): New function.
3569 (get_type_length): New function.
3570 (check_typedef): Use get_type_length to compute type length.
3571 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
3572 (TYPE_LOW_BOUND_KIND): New macro.
3573 (is_dynamic_type): New function prototype.
3574 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
3575 to resolve dynamic properties of the type. Update comment.
3576 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
3577
729efb13
SA
35782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3579
3580 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
3581 declaring high/low bounds and change uses accordingly. Call
3582 create_range_type instead of create_static_range_type.
3583 * gdbtypes.c (create_range_type): New function.
3584 (create_range_type): Convert bounds into struct bound_prop and pass
3585 them to create_range_type.
3586 * gdbtypes.h (struct bound_prop): New struct.
3587 (create_range_type): New function prototype.
3588 (struct range_bounds): Use struct bound_prop instead of LONGEST for
3589 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
3590 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
3591 part of the bound.
3592 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
3593
0c9c3474
SA
35942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
3595
3596 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
3597 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
3598 * ada-lang.c: All uses of create_range_type updated.
3599 * coffread.c: All uses of create_range_type updated.
3600 * dwarf2read.c: All uses of create_range_type updated.
3601 * f-exp.y: All uses of create_range_type updated.
3602 * m2-valprint.c: All uses of create_range_type updated.
3603 * mdebugread.c: All uses of create_range_type updated.
3604 * stabsread.c: All uses of create_range_type updated.
3605 * valops.c: All uses of create_range_type updated.
3606 * valprint.c: All uses of create_range_type updated.
3607
9d497a19
PA
36082014-04-10 Pedro Alves <palves@redhat.com>
3609
3610 * breakpoint.c (single_step_breakpoints)
3611 (single_step_gdbarch): Move up in the file.
3612 (one_breakpoint_xfer_memory): New function, factored out from ...
3613 (breakpoint_xfer_memory): ... here. Also process single-step
3614 breakpoints.
3615
15a9128a
TG
36162014-04-09 Tristan Gingold <gingold@adacore.com>
3617
3618 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
3619 comments.
3620 (darwin_decode_exception_message): Free port only after use.
3621
9c97a070
PL
36222014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
3623
3624 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
3625 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
3626 when setting the size of call_length.
3627
7af389b8
SC
36282014-04-07 Siva Chandra Reddy <sivachandra@google.com>
3629
3630 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
3631 dereference TYPE_CODE_REF values.
3632
86ad98c3
JB
36332014-04-07 Joel Brobecker <brobecker@adacore.com>
3634
3635 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
3636 end of warning message.
3637
b0aeadb3
DE
36382014-04-03 Doug Evans <dje@google.com>
3639
3640 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
3641 of stub_comp_unit_die, stub_comp_dir is non-NULL.
3642
5979d6b6
AM
36432014-04-02 Alan Modra <amodra@gmail.com>
3644
3645 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
3646 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
3647 (struct symbol_file_add_from_memory_args): Add size field.
3648 (find_vdso_size): New function.
3649 (add_vsyscall_page): Attempt to find vdso size.
3650
0d60c288
DE
36512014-04-01 Doug Evans <dje@google.com>
3652
3653 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
3654
a41f2563
TG
36552014-04-01 Tristan Gingold <gingold@adacore.com>
3656
3657 * darwin-nat.c (darwin_encode_reply): Add prototype.
3658 (darwin_decode_exception_message): Reply to unknown inferiors.
3659 (darwin_decode_message): Handle message by id. Ignore message
3660 to unknown inferior.
3661 (darwin_wait): Discard unknown messages, add debug trace.
3662
11a865c8
DE
36632014-03-31 Doug Evans <dje@google.com>
3664
3665 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3666 comp_dir_string.
3667
770e7fc7
DE
36682014-03-31 Doug Evans <dje@google.com>
3669
3670 New option "set print symbol-loading".
3671 * NEWS: Mention it.
3672 * solib.c (solib_read_symbols): Only print symbol loading messages
3673 if requested.
3674 (solib_add): If symbol loading is in "brief" mode, notify user
3675 symbols are being loaded.
3676 (reload_shared_libraries_1): Ditto.
3677 * symfile.c (print_symbol_loading_off): New static global.
3678 (print_symbol_loading_brief): New static global.
3679 (print_symbol_loading_full): New static global.
3680 (print_symbol_loading_enums): New static global.
3681 (print_symbol_loading): New static global.
3682 (print_symbol_loading_p): New function.
3683 (symbol_file_add_with_addrs): Only print symbol loading messages
3684 if requested.
3685 (_initialize_symfile): Register "print symbol-loading" set/show
3686 command.
3687 * symfile.h (print_symbol_loading_p): Declare.
3688
c32c64b7
DE
36892014-03-30 Doug Evans <xdje42@gmail.com>
3690
3691 * infrun.c (set_last_target_status): New function.
3692 (handle_inferior_event): Call it.
3693
7c0bc051
DE
36942014-03-30 Doug Evans <xdje42@gmail.com>
3695
3696 * inferior.h (enum stop_kind): Improve comment.
3697
8776cfe9
JB
36982014-03-28 Joel Brobecker <brobecker@adacore.com>
3699
3700 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3701 a reference, strip the reference layer before calling
3702 the lang_ops value_has_mutated callback.
3703
410a0ff2
SDJ
37042014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3705
3706 Remove some globals from our parser.
3707 * language.c (unk_lang_parser): Add "struct parser_state"
3708 argument.
3709 * language.h (struct language_defn) <la_parser>: Likewise.
3710 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3711 (initialize_expout): Add "struct parser_state" argument.
3712 Rewrite function to use the parser state.
3713 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3714 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3715 write_exp_elt_longcst, write_exp_elt_dblcst,
3716 write_exp_elt_decfloatcst, write_exp_elt_type,
3717 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3718 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3719 write_dollar_variable): Likewise.
3720 (parse_exp_in_context_1): Use parser state.
3721 (insert_type_address_space): Add "struct parser_state" argument.
3722 Use parser state.
3723 (increase_expout_size): New function.
3724 * parser-defs.h: Forward declare "struct language_defn" and
3725 "struct parser_state".
3726 (expout, expout_size, expout_ptr): Remove extern declarations.
3727 (parse_gdbarch, parse_language): Rewrite macro declarations to
3728 accept the parser state.
3729 (struct parser_state): New struct.
3730 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3731 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3732 write_exp_elt_decfloatcst, write_exp_elt_type,
3733 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3734 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3735 write_exp_msymbol, write_dollar_variable,
3736 mark_struct_expression, insert_type_address_space): Add "struct
3737 parser_state" argument.
3738 (increase_expout_size): New function.
3739 * utils.c (do_clear_parser_state): New function.
3740 (make_cleanup_clear_parser_state): Likewise.
3741 * utils.h (make_cleanup_clear_parser_state): New function
3742 prototype.
3743 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3744 Update calls to write_exp* in order to pass the parser state.
3745 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3746 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3747 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3748 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3749 * stap-probe.c (stap_parse_register_operand): Likewise.
3750 (stap_parse_single_operand): Likewise.
3751 (stap_parse_argument_1): Likewise.
3752 (stap_parse_argument): Use parser state.
3753 * stap-probe.h: Include "parser-defs.h".
3754 (struct stap_parse_info) <pstate>: New field.
3755 * c-exp.y (parse_type): Rewrite to use parser state.
3756 (yyparse): Redefine to c_parse_internal.
3757 (pstate): New global variable.
3758 (parse_number): Add "struct parser_state" argument.
3759 (write_destructor_name): Likewise.
3760 (type_exp): Update calls to write_exp* and similars in order to
3761 use parser state.
3762 (exp1, exp, variable, qualified_name, space_identifier,
3763 typename, typebase): Likewise.
3764 (write_destructor_name, parse_number, lex_one_token,
3765 classify_name, classify_inner_name, c_parse): Add "struct
3766 parser_state" argument. Update function to use parser state.
3767 * c-lang.h: Forward declare "struct parser_state".
3768 (c_parse): Add "struct parser_state" argument.
3769 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3770 (yyparse): Redefine macro to ada_parse_internal.
3771 (pstate): New variable.
3772 (write_int, write_object_renaming, write_var_or_type,
3773 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3774 type_int, type_long, type_long_long, type_float, type_double,
3775 type_long_double, type_char, type_boolean, type_system_address):
3776 Add "struct parser_state" argument.
3777 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3778 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3779 var_or_type, aggregate, aggregate_component_list,
3780 positional_list, others, component_group,
3781 component_associations): Update calls to write_exp* and similar
3782 functions in order to use parser state.
3783 (ada_parse, write_var_from_sym, write_int,
3784 write_exp_op_with_string, write_object_renaming,
3785 find_primitive_type, write_selectors, write_ambiguous_var,
3786 write_var_or_type, write_name_assoc, type_int, type_long,
3787 type_long_long, type_float, type_double, type_long_double,
3788 type_char, type_boolean, type_system_address): Add "struct
3789 parser_state" argument. Adjust function to use parser state.
3790 * ada-lang.c (parse): Likewise.
3791 * ada-lang.h: Forward declare "struct parser_state".
3792 (ada_parse): Add "struct parser_state" argument.
3793 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3794 calls to both functions.
3795 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3796 parser state.
3797 (yyparse): Redefine macro to f_parse_internal.
3798 (pstate): New variable.
3799 (parse_number): Add "struct parser_state" argument.
3800 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3801 and similars in order to use parser state.
3802 (parse_number): Adjust code to use parser state.
3803 (yylex): Likewise.
3804 (f_parse): New function.
3805 * f-lang.h: Forward declare "struct parser_state".
3806 (f_parse): Add "struct parser_state" argument.
3807 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3808 parser state.
3809 (yyparse): Redefine macro for java_parse_internal.
3810 (pstate): New variable.
3811 (push_expression_name, push_expression_name, insert_exp): Add
3812 "struct parser_state" argument.
3813 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3814 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3815 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3816 PostIncrementExpression, PostDecrementExpression,
3817 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3818 UnaryExpressionNotPlusMinus, CastExpression,
3819 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3820 RelationalExpression, EqualityExpression, AndExpression,
3821 ExclusiveOrExpression, InclusiveOrExpression,
3822 ConditionalAndExpression, ConditionalOrExpression,
3823 ConditionalExpression, Assignment, LeftHandSide): Update
3824 calls to write_exp* and similars in order to use parser state.
3825 (parse_number): Ajust code to use parser state.
3826 (yylex): Likewise.
3827 (java_parse): New function.
3828 (push_variable): Add "struct parser_state" argument. Adjust
3829 code to user parser state.
3830 (push_fieldnames, push_qualified_expression_name,
3831 push_expression_name, insert_exp): Likewise.
3832 * jv-lang.h: Forward declare "struct parser_state".
3833 (java_parse): Add "struct parser_state" argument.
3834 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3835 parser state.
3836 (yyparse): Redefine macro to m2_parse_internal.
3837 (pstate): New variable.
3838 (type_exp, exp, fblock, variable, type): Update calls to
3839 write_exp* and similars to use parser state.
3840 (yylex): Likewise.
3841 (m2_parse): New function.
3842 * m2-lang.h: Forward declare "struct parser_state".
3843 (m2_parse): Add "struct parser_state" argument.
3844 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3845 * objc-lang.h: Forward declare "struct parser_state".
3846 (end_msglist): Add "struct parser_state" argument.
3847 * p-exp.y (parse_type): Rewrite macro to use parser state.
3848 (yyparse): Redefine macro to pascal_parse_internal.
3849 (pstate): New variable.
3850 (parse_number): Add "struct parser_state" argument.
3851 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3852 write_exp* and similars in order to use parser state.
3853 (parse_number, yylex): Adjust code to use parser state.
3854 (pascal_parse): New function.
3855 * p-lang.h: Forward declare "struct parser_state".
3856 (pascal_parse): Add "struct parser_state" argument.
3857 * go-exp.y (parse_type): Rewrite macro to use parser state.
3858 (yyparse): Redefine macro to go_parse_internal.
3859 (pstate): New variable.
3860 (parse_number): Add "struct parser_state" argument.
3861 (type_exp, exp1, exp, variable, type): Update calls to
3862 write_exp* and similars in order to use parser state.
3863 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3864 to use parser state.
3865 (go_parse): Likewise.
3866 * go-lang.h: Forward declare "struct parser_state".
3867 (go_parse): Add "struct parser_state" argument.
3868
342587c4
DE
38692014-03-27 Doug Evans <dje@google.com>
3870
3871 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3872
33e80786
DE
38732014-03-27 Doug Evans <dje@google.com>
3874
3875 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3876 Remove argument abbrev_section. All callers updated.
3877
1dbab08b
DE
38782014-03-27 Doug Evans <dje@google.com>
3879
3880 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3881 addr_base, ranges_base.
3882
318d3177
KS
38832014-03-26 Keith Seitz <keiths@redhat.com>
3884
3885 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3886 types, not VAR_DOMAIN.
3887
1e54db15
SL
38882014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3889
3890 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3891 "ra" registers.
3892 * features/nios2-linux.c: Regenerated.
3893 * features/nios2.c: Regenerated.
3894
d3839ede
PA
38952014-03-25 Pedro Alves <palves@redhat.com>
3896
3897 * cli/cli-script.c (script_from_file): Force the interpreter to
3898 sync mode.
3899
7588d2ec
PL
39002014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3901
3902 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3903 small stack allocation.
3904
a6290449
TG
39052014-03-24 Tristan Gingold <gingold@adacore.com>
3906
3907 * darwin-nat.c (exc_server): Remove unused prototype.
3908 (darwin_dump_message): Correctly display data on x86_64.
3909 (darwin_encode_reply): Fix style.
3910 Add comments and fix indentation.
3911
31ae9d24 39122014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
3913
3914 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3915
6339bfc4
DE
39162014-03-22 Doug Evans <xdje42@gmail.com>
3917
3918 * infcmd.c: Whitespace fixes.
3919 (interrupt_command): Merge two function comments into one.
3920
0a07590b
DE
39212014-03-22 Doug Evans <xdje42@gmail.com>
3922
3923 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3924 All uses updated.
3925
b55fbac4
YQ
39262014-03-22 Yao Qi <yao@codesourcery.com>
3927
3928 * remote.c (target_read_live_memory): Remove.
3929 (memory_xfer_live_readonly_partial): Rename it to
3930 remote_xfer_live_readonly_partial. Remove argument 'object'.
3931 All callers updated. Call remote_read_bytes_1
3932 instead of target_read_live_memory.
3933 * tracepoint.c (set_traceframe_number): Remove.
3934 (make_cleanup_restore_traceframe_number): Likewise .
3935 * tracepoint.h (set_traceframe_number): Remove declaration.
3936 (make_cleanup_restore_traceframe_number): Likewise.
3937
9217e74e
YQ
39382014-03-22 Yao Qi <yao@codesourcery.com>
3939
3940 * remote.c (remote_read_bytes): Move code on reading from the
3941 remote stub to ...
3942 (remote_read_bytes_1): ... here. New function.
3943
8acf9577
YQ
39442014-03-22 Yao Qi <yao@codesourcery.com>
3945
3946 * ctf.c (ctf_xfer_partial): Check the return value of
3947 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3948 return TARGET_XFER_UNAVAILABLE.
3949 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3950 * target.c (target_read_live_memory): Move it to remote.c.
3951 (memory_xfer_live_readonly_partial): Likewise.
3952 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3953 * remote.c (target_read_live_memory): Moved from target.c.
3954 (memory_xfer_live_readonly_partial): Likewise.
3955 (remote_read_bytes): Factored out from
3956 memory_xfer_partial_1.
3957
feef67ab
DE
39582014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3959
3960 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3961 NULL pointer.
3962
b65dc60b
PA
39632014-03-21 Pedro Alves <palves@redhat.com>
3964
3965 * infrun.c (normal_stop): Extend comment.
3966
b4ab256d
HZ
39672014-03-21 Hui Zhu <hui@codesourcery.com>
3968 Pedro Alves <palves@redhat.com>
3969
3970 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3971 static buffer.
3972 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3973 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3974 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3975
deba7593
MR
39762014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3977
3978 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3979 `z' formatted output modifier.
3980
1bff71c3
SDJ
39812014-03-20 Tom Tromey <tromey@redhat.com>
3982 Sergio Durigan Junior <sergiodj@redhat.com>
3983
3984 * probe.c (parse_probes): Turn assert into an ordinary error.
3985 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3986 exceptions when parsing probes. Rearrange the code for clarity.
3987
90e28950
TT
39882014-03-20 Tom Tromey <tromey@redhat.com>
3989
3990 PR gdb/14135
3991 * top.c (execute_command): Only dispatch events if the command
3992 started the target.
3993
beb460e8
PA
39942014-03-20 Tom Tromey <tromey@redhat.com>
3995
3996 PR cli/15718
3997 * infcall.c: Include event-top.h.
3998 (run_inferior_call): Call async_disable_stdin if needed.
3999
99619bea
PA
40002014-03-20 Pedro Alves <palves@redhat.com>
4001
4002 * infrun.c (prepare_to_proceed): Delete.
4003 (thread_still_needs_step_over): New function.
4004 (find_thread_needs_step_over): New function.
4005 (proceed): If the current thread needs a step-over, set its
4006 steping_over_breakpoint flag. Adjust to use
4007 find_thread_needs_step_over instead of prepare_to_proceed.
4008 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4009 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4010 breakpoint.
4011 (switch_back_to_stepped_thread): Step over breakpoints of all
4012 threads not the stepping thread, before switching back to the
4013 stepping thread.
4014
2adfaa28
PA
40152014-03-20 Pedro Alves <palves@redhat.com>
4016
4017 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4018 extern.
4019 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4020 * infrun.c (saved_singlestep_ptid)
4021 (stepping_past_singlestep_breakpoint): Delete.
4022 (resume): Remove stepping_past_singlestep_breakpoint handling.
4023 (proceed): Store the prev_pc of the stepping thread too.
4024 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4025 singlestep_pc.
4026 (enum infwait_states): Delete infwait_thread_hop_state.
4027 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4028 field.
4029 (handle_inferior_event): Adjust.
4030 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4031 handling and the thread-hop code. Before removing single-step
4032 breakpoints, check whether the thread hit a single-step breakpoint
4033 of another thread. If it did, the trap is not a random signal.
4034 (switch_back_to_stepped_thread): If the event thread hit a
4035 single-step breakpoint, unblock it before switching to the
4036 stepping thread. Handle the case of the stepped thread having
4037 advanced already.
4038 (keep_going): Handle the case of the current thread moving past a
4039 single-step breakpoint.
4040
31e77af2
PA
40412014-03-20 Pedro Alves <palves@redhat.com>
4042
4043 PR breakpoints/7143
4044 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4045 are being stepped over.
4046 (breakpoint_address_match): Make extern.
4047 * breakpoint.h (breakpoint_address_match): New declaration.
4048 * inferior.h (stepping_past_instruction_at): New declaration.
4049 * infrun.c (struct step_over_info): New type.
4050 (step_over_info): New global.
4051 (set_step_over_info, clear_step_over_info)
4052 (stepping_past_instruction_at): New functions.
4053 (handle_inferior_event): Clear the step-over info when
4054 trap_expected is cleared.
4055 (resume): Remove now stale comment.
4056 (clear_proceed_status): Clear step-over info.
4057 (proceed): Adjust step-over handling to set or clear the step-over
4058 info instead of removing all breakpoints.
4059 (handle_signal_stop): When setting up a thread-hop, don't remove
4060 breakpoints here.
4061 (stop_stepping): Clear step-over info.
4062 (keep_going): Adjust step-over handling to set or clear step-over
4063 info and then always inserting breakpoints, instead of removing
4064 all breakpoints when stepping over one.
4065
b9f437de
PA
40662014-03-20 Pedro Alves <palves@redhat.com>
4067
4068 * infrun.c (previous_inferior_ptid): Adjust comment.
4069 (deferred_step_ptid): Delete.
4070 (infrun_thread_ptid_changed, prepare_to_proceed)
4071 (init_wait_for_inferior): Adjust.
4072 (handle_signal_stop): Delete deferred_step_ptid handling.
4073
06c868a8
JK
40742014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4075
4076 PR gdb/15358
4077 * defs.h (sync_quit_force_run): New declaration.
4078 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4079 * event-top.c (async_sigterm_handler): New declaration.
4080 (async_sigterm_token): New variable.
4081 (async_init_signals): Create also async_sigterm_token.
4082 (async_sigterm_handler): New function.
4083 (sync_quit_force_run): New variable.
4084 (handle_sigterm): Replace quit_force call by other calls.
4085 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4086
dea80df0
MR
40872014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4088
4089 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4090 offset into SPE pseudo registers.
4091
0c7e1a46
PA
40922014-03-18 Pedro Alves <palves@redhat.com>
4093
4094 PR gdb/13860
4095 * inferior.h (print_stop_event): Declare.
4096 * infrun.c (print_stop_event): New, factored out from ...
4097 (normal_stop): ... this.
4098 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4099 of bpstat_print/print_stack_frame.
4100
9c1fcd01
TT
41012014-03-17 Tom Tromey <tromey@redhat.com>
4102
4103 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4104
11aa919a
PMR
41052014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4106
4107 * ada-lang.c (decode_constrained_packed_array): Perform a
4108 minimal coercion for reference with coerce_ref instead of
4109 ada_coerce_ref.
4110
d4ccb5e0
TG
41112014-03-17 Tristan Gingold <gingold@adacore.com>
4112
4113 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4114 (darwin_solib_create_inferior_hook): Emit a warning if version
4115 is unhandled.
4116
49840f2a
UW
41172014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4118
4119 * python/py-value.c (get_field_flag): Cast flag_name argument to
4120 PyObject_GetAttrString to support Python 2.4.
4121
ed4123e5
JK
41222014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4123
4124 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4125 (Global Maintainers): Remove Jan Kratochvil.
4126
d6b64346
PA
41272014-03-14 Pedro Alves <palves@redhat.com>
4128
4129 * inferior.h (terminal_ours_for_output): Rename to ...
4130 (child_terminal_ours_for_output): ... this.
4131 (terminal_save_ours): Rename to ...
4132 (child_terminal_save_ours): ... this.
4133 (terminal_ours): Rename to ...
4134 (child_terminal_ours): ... this.
4135 (terminal_inferior): Rename to ...
4136 (child_terminal_inferior): ... this.
4137 (terminal_init_inferior): Rename to ...
4138 (child_terminal_init_inferior): ... this.
4139 (terminal_init_inferior_with_pgrp): Rename to ...
4140 (child_terminal_init_inferior_with_pgrp): ... this.
4141 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4142 (child_terminal_init_with_pgrp): ... this.
4143 (terminal_save_ours): Rename to ...
4144 (child_terminal_save_ours): ... this.
4145 (terminal_init_inferior): Rename to ...
4146 (child_terminal_init): ... this. Adjust.
4147 (terminal_inferior): Rename to ...
4148 (child_terminal_inferior): ... this.
4149 (terminal_ours_for_output): Rename to ...
4150 (child_terminal_ours_for_output): ... this. Adjust.
4151 (terminal_ours): Rename to ...
4152 (child_terminal_ours): ... this.
4153 (terminal_ours_1): Rename to ...
4154 (child_terminal_ours_1): ... this. Adjust.
4155 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4156 * windows-nat.c (do_initial_windows_stuff): Adjust.
4157 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4158 (gnu_terminal_init): ... this. Adjust.
4159 (gnu_target): Adjust.
4160 * inf-child.c (inf_child_target): Adjust.
4161
5a1e8c7a
DE
41622014-03-13 Doug Evans <xdje42@gmail.com>
4163
4164 PR guile/16612
4165 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4166 new eq?-hashtab.
4167
350e1a76
DE
41682014-03-13 Doug Evans <xdje42@gmail.com>
4169
4170 * value.c (record_latest_value): Call release_value_or_incref
4171 instead of release_value.
4172
a69900ae
PA
41732014-03-13 Pedro Alves <palves@redhat.com>
4174
4175 * procfs.c (procfs_target): Don't override to_shortname,
4176 to_longname or to_doc.
4177
5db9f0bd
PA
41782014-03-13 Pedro Alves <palves@redhat.com>
4179
4180 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4181 Unix in user visible strings.
4182
5e3a2c38
SS
41832014-03-12 Stan Shebs <stan@codesourcery.com>
4184
4185 * gdbtypes.h: Annotate comments for Doxygen, add a page
4186 block comment with some general info.
4187
8bc2fe48
PA
41882014-03-12 Pedro Alves <palves@redhat.com>
4189
4190 * infcmd.c (prepare_execution_command): New function, factored out
4191 from several execution commands.
4192 (run_command_1, continue_command, step_1, jump_command)
4193 (signal_command, until_command, advance_command, finish_command)
4194 (attach_command): Use prepare_execution_command.
4195
638c5f49
OJ
41962014-03-12 Omair Javaid <omair.javaid@linaro.org>
4197
4198 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4199 (MAX_BPTS): Define.
4200 (MAX_WPTS): Define.
4201 (struct arm_linux_thread_points): Removed.
4202 (struct arm_linux_process_info): New.
4203 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4204 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4205 (arm_linux_find_breakpoints_by_tid): Removed.
4206 (struct arch_lwp_info): New.
4207 (arm_linux_find_process_pid): New functions.
4208 (arm_linux_add_process): New functions.
4209 (arm_linux_process_info_get): New functions.
4210 (arm_linux_forget_process): New function.
4211 (arm_linux_get_debug_reg_state): New function.
4212 (struct update_registers_data): New.
4213 (update_registers_callback): New function.
4214 (arm_linux_insert_hw_breakpoint1): Updated.
4215 (arm_linux_remove_hw_breakpoint1): Updated.
4216 (arm_linux_insert_hw_breakpoint): Updated.
4217 (arm_linux_remove_hw_breakpoint): Updated.
4218 (arm_linux_insert_watchpoint): Updated.
4219 (arm_linux_remove_watchpoint): Updated.
4220 (arm_linux_new_thread): Updated.
4221 (arm_linux_prepare_to_resume): New function.
4222 (arm_linux_new_fork): New function.
4223 (_initialize_arm_linux_nat): Updated.
4224
6d03af93
PA
42252014-03-12 Pedro Alves <palves@redhat.com>
4226
4227 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4228
b3ccfe11
TT
42292014-03-12 Tom Tromey <tromey@redhat.com>
4230
4231 * inf-child.c (return_zero): New function.
4232 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4233 * aix-thread.c (aix_thread_inferior_created): New function.
4234 (aix_thread_attach): Remove.
4235 (init_aix_thread_ops): Don't set to_attach.
4236 (_initialize_aix_thread): Register inferior_created observer.
4237 * corelow.c (init_core_ops): Don't set to_attach or
4238 to_create_inferior.
4239 * exec.c (init_exec_ops): Don't set to_attach or
4240 to_create_inferior.
4241 * infcmd.c (run_command_1): Use find_run_target. Make direct
4242 target calls.
4243 (attach_command): Use find_attach_target. Make direct target
4244 calls.
4245 * record-btrace.c (init_record_btrace_ops): Don't set
4246 to_create_inferior.
4247 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4248 Remove.
4249 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4250 set to_create_inferior.
4251 * target.c (complete_target_initialization): Add assertion.
4252 (target_create_inferior): Remove.
4253 (find_default_attach, find_default_create_inferior): Remove.
4254 (find_attach_target, find_run_target): New functions.
4255 (find_default_is_async_p, find_default_can_async_p)
4256 (target_supports_non_stop, target_attach): Remove.
4257 (init_dummy_target): Don't set to_create_inferior or
4258 to_supports_non_stop.
4259 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4260 TARGET_DEFAULT_FUNC.
4261 <to_create_inferior>: Add comment.
4262 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4263 TARGET_DEFAULT_RETURN.
4264 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4265 (find_attach_target, find_run_target): Declare.
4266 (target_create_inferior): Remove.
4267 (target_has_execution_1): Update comment.
4268 (target_supports_non_stop): Remove.
4269 * target-delegates.c: Rebuild.
4270
91f83b02
PA
42712014-03-12 Pedro Alves <palves@redhat.com>
4272
4273 * inf-child.h: Update comment to not mention Unix.
4274
f1aea813
PA
42752014-03-12 Pedro Alves <palves@redhat.com>
4276
4277 * inf-child.c: Update top comment to not mention Unix. Add
4278 generic comment describing how this target is meant to be used.
4279 (inf_child_post_attach, inf_child_post_startup_inferior)
4280 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4281 Unix in comment.
4282
ee8e9165
PA
42832014-03-12 Pedro Alves <palves@redhat.com>
4284
4285 * nto-procfs.c: Include inf-child.h.
4286 (procfs_ops): Delete global.
4287 (procfs_can_run): Delete method.
4288 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
4289 target pointer instead of referencing procfs_ops.
4290 (procfs_prepare_to_store): Delete.
4291 (init_procfs_ops): Delete function.
4292 (procfs_target): New function, based on init_procfs_ops, but
4293 inherit inf_child_target.
4294 (_initialize_procfs): Use procfs_target.
4295
51a9c8c5
PA
42962014-03-12 Pedro Alves <palves@redhat.com>
4297
4298 * windows-nat.c: Include inf-child.h.
4299 (windows_ops): Delete global.
4300 (windows_open, windows_prepare_to_store, windows_can_run): Delete
4301 methods.
4302 (init_windows_ops): Delete function.
4303 (windows_target): New function, based on init_windows_ops, but
4304 inherit inf_child_target.
4305 (_initialize_windows_nat): Use windows_target. Install x86
4306 specific target methods here.
4307
c1966e26
DE
43082014-03-10 Doug Evans <xdje42@gmail.com>
4309
4310 * guile/guile.c (call_initialize_gdb_module): New function.
4311 (initialize_guile): Replace call to scm_init_guile with call to
4312 scm_with_guile.
4313
023db19c
JB
43142014-03-10 Joel Brobecker <brobecker@adacore.com>
4315
4316 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
4317 in call to TYPE_CODE macro.
4318
5ec18f2b
JG
43192014-03-10 Jerome Guitton <guitton@adacore.com>
4320
8668be63
JB
4321 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
4322 Resolve tagged types to full view.
5ec18f2b 4323
7d03f2eb
HZ
43242014-03-10 Hui Zhu <hui@codesourcery.com>
4325
4326 * target.h (target_insert_breakpoint): Remove "hardware" from its
4327 comments.
4328
c5164cbc
DE
43292014-03-07 Doug Evans <dje@google.com>
4330
4331 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
4332
c4a3fee2
DE
43332014-03-07 Doug Evans <dje@google.com>
4334
4335 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
4336 Remove unused local comp_dir_attr. Assert exactly one of
4337 stub_comp_unit_die, stub_comp_dir is non-NULL.
4338
3156469c
JB
43392014-03-07 Joel Brobecker <brobecker@adacore.com>
4340
4341 * target.h (complete_target_initialization, add_target):
4342 Add comment.
4343
c1a7b7c6
PA
43442014-03-07 Pedro Alves <palves@redhat.com>
4345
4346 * go32-nat.c: Include inf-child.h.
4347 (go32_ops): Delete global.
4348 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
4349 Delete methods.
4350 (go32_create_inferior): Push the passed in target pointer instead
4351 of referencing go32_ops.
4352 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
4353 (go32_target): New function, based on init_go32_ops, but inherit
4354 inf_child_target.
4355 (_initialize_go32_nat): Use go32_target. Move parts of
4356 init_go32_ops here.
4357
d3c1a85f
JB
43582014-03-06 Joel Brobecker <brobecker@adacore.com>
4359
4360 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
4361 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
4362 SYMBOL_VALUE_ADDRESS.
4363 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
4364
5fa1d40e
YQ
43652014-03-06 Yao Qi <yao@codesourcery.com>
4366
4367 * breakpoint.c (get_tracepoint_by_number): Remove argument
4368 optional_p. All callers updated. Adjust comments. Update
4369 output message.
4370 * breakpoint.h (get_tracepoint_by_number): Update declaration.
4371
0c13193f
YQ
43722014-03-06 Yao Qi <yao@codesourcery.com>
4373
4374 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
4375 early if get_number returns zero. Use 'p' instead of 'args'.
4376
2217da06
YQ
43772014-03-06 Yao Qi <yao@codesourcery.com>
4378
4379 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
4380 message.
4381
cc3da688
YQ
43822014-03-06 Yao Qi <yao@codesourcery.com>
4383
4384 PR breakpoints/16508
4385 * tracepoint.c (check_trace_running): New function.
4386 (trace_find_command): Move code to check_trace_running and
4387 call check_trace_running.
4388 (trace_find_pc_command): Likewise.
4389 (trace_find_tracepoint_command): Likewise.
4390 (trace_find_line_command): Likewise.
4391 (trace_find_range_command): Likewise.
4392 * tracepoint.h (check_trace_running): Likewise.
4393 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
4394
6a5f844b
YQ
43952014-03-06 Yao Qi <yao@codesourcery.com>
4396
4397 * target.h (struct target_ops) <to_traceframe_info>: Use
4398 TARGET_DEFAULT_NORETURN (tcomplain ()).
4399 * target-delegates.c: Regenerated.
4400
0f26cec1
PA
44012014-03-05 Pedro Alves <palves@redhat.com>
4402
4403 PR gdb/16575
4404 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
4405 void. Update comment.
4406 (dcache_xfer_memory): Delete.
4407 (dcache_read_memory_partial): New, based on the read bits of
4408 dcache_xfer_memory.
4409 (dcache_update): Add status parameter. Use ULONGEST for len, and
4410 adjust. Discard cache lines if the reason for the update was
4411 error.
4412 * dcache.h (dcache_xfer_memory): Delete declaration.
4413 (dcache_read_memory_partial): New declaration.
4414 (dcache_update): Update prototype.
4415 * target.c (raw_memory_xfer_partial): Update the dcache here.
4416 (memory_xfer_partial_1): Don't handle dcache writes here.
4417
b2b255bd
MF
44182014-03-05 Mike Frysinger <vapier@gentoo.org>
4419
4420 * remote-sim.c (gdbsim_load): Add const to prog.
4421
5d9cf8a4
TT
44222014-03-03 Tom Tromey <tromey@redhat.com>
4423
4424 * elfread.c (probe_key): Change to bfd_data.
4425 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
4426 now per-BFD, not per-objfile.
4427 * stap-probe.c (stap_probe_destroy): Update comment.
4428 (handle_stap_probe): Allocate on the per-BFD obstack.
4429
729662a5
TT
44302014-03-03 Tom Tromey <tromey@redhat.com>
4431
4432 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
4433 * breakpoint.c (create_longjmp_master_breakpoint): Use
4434 get_probe_address.
4435 (add_location_to_breakpoint, bkpt_probe_insert_location)
4436 (bkpt_probe_remove_location): Update.
4437 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
4438 * elfread.c (elf_symfile_relocate_probe): Remove.
4439 (elf_probe_fns): Update.
4440 (insert_exception_resume_breakpoint): Change type of "probe"
4441 parameter to bound_probe.
4442 (check_exception_resume): Update.
4443 * objfiles.c (objfile_relocate1): Don't relocate probes.
4444 * probe.c (bound_probe_s): New typedef.
4445 (parse_probes): Use get_probe_address. Set sal's objfile.
4446 (find_probe_by_pc): Return a bound_probe.
4447 (collect_probes): Return a VEC(bound_probe_s).
4448 (compare_probes): Update.
4449 (gen_ui_out_table_header_info): Change type of "probes"
4450 parameter. Update.
4451 (info_probes_for_ops): Update.
4452 (get_probe_address): New function.
4453 (probe_safe_evaluate_at_pc): Update.
4454 * probe.h (struct probe_ops) <get_probe_address>: New field.
4455 <set_semaphore, clear_semaphore>: Add objfile parameter.
4456 (struct probe) <objfile>: Remove field.
4457 <arch>: New field.
4458 <address>: Update comment.
4459 (struct bound_probe): New.
4460 (find_probe_by_pc): Return a bound_probe.
4461 (get_probe_address): Declare.
4462 * solib-svr4.c (struct probe_and_action) <address>: New field.
4463 (hash_probe_and_action, equal_probe_and_action): Update.
4464 (register_solib_event_probe): Add address parameter.
4465 (solib_event_probe_at): Update.
4466 (svr4_create_probe_breakpoints): Add objfile parameter. Use
4467 get_probe_address.
4468 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
4469 (stap_get_probe_address): New function.
4470 (stap_can_evaluate_probe_arguments, compute_probe_arg)
4471 (compile_probe_arg): Update.
4472 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
4473 address.
4474 (handle_stap_probe): Don't relocate the probe.
4475 (stap_relocate): Remove.
4476 (stap_gen_info_probes_table_values): Update.
4477 (stap_probe_ops): Remove stap_relocate.
4478 * symfile-debug.c (debug_sym_relocate_probe): Remove.
4479 (debug_sym_probe_fns): Update.
4480 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
4481 * symtab.c (init_sal): Use memset.
4482 * symtab.h (struct symtab_and_line) <objfile>: New field.
4483 * tracepoint.c (start_tracing, stop_tracing): Update.
4484
ff887920
TT
44852014-03-03 Tom Tromey <tromey@redhat.com>
4486
4487 * probe.h (parse_probes, find_probe_by_pc)
4488 (find_probes_in_objfile): Fix comments.
4489
f0407826
DE
44902014-03-02 Doug Evans <xdje42@gmail.com>
4491
4492 * infrun.c (handle_signal_stop): Replace test for
4493 TARGET_WAITKIND_STOPPED with an assert.
4494
35e6a711
DE
44952014-03-02 Doug Evans <xdje42@gmail.com>
4496
4497 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
4498
667f9d0b
DE
44992014-03-02 Doug Evans <xdje42@gmail.com>
4500
4501 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
4502
dc92ace0
MK
45032014-03-01 Mark Kettenis <kettenis@gnu.org>
4504
4505 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4506
a900370f
MK
45072014-03-01 Mark Kettenis <kettenis@gnu.org>
4508
4509 * i386obsd-nat.c: Include "obsd-nat.h".
4510 (_initialize_i386obsd_nat): Call obsd_add_target instead of
4511 add_target.
4512 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4513
b72a7981
MK
45142014-03-01 Mark Kettenis <kettenis@gnu.org>
4515
4516 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
4517
96c70aba
MK
45182014-03-01 Mark Kettenis <kettenis@gnu.org>
4519
4520 * mips64obsd-nat.c: Include "obsd-nath".
4521 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
4522 add_target
4523 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4524
874a80af
MK
45252014-03-01 Mark Kettenis <kettenis@gnu.org>
4526
8fd408f1
MK
4527 * amd64obsd-nat.c: Include "obsd-nat,h.
4528 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
4529 add_target.
874a80af
MK
4530 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
4531
9cf95373
SC
45322014-02-28 Siva Chandra Reddy <sivachandra@google.com>
4533
4534 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
4535 (find_overload_match): Update call to find_oload_champ.
4536 (find_oload_champ_namespace_loop): Likewise
4537
863e4da4
MK
45382014-02-28 Mark Kettenis <kettenis@gnu.org>
4539
025cac40
MK
4540 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
4541
1ed586ce
MK
4542 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
4543 * config/sparc/obsd64.mh: New file.
4544 * sparc64obsd-nat.c: New file.
4545
863e4da4
MK
4546 * obsd-nat.h: New file.
4547 * obsd-nat.c: New file.
4548 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
4549 (ALLDEPFILES): Add obsd-nat.c.
4550
89de4da4
TT
45512014-02-28 Tom Tromey <tromey@redhat.com>
4552
4553 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
4554 * cli-out.h (cli_ui_out_impl): Now const.
4555 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
4556 * ui-out.c (struct ui_out) <impl>: Now const.
4557 (default_ui_out_impl): Now const.
4558 (ui_out_new): Make 'impl' parameter const.
4559 * ui-out.h (ui_out_new): Update.
4560
c725e7b6
MK
45612014-02-27 Mark Kettenis <kettenis@gnu.org>
4562
4563 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
4564
670b46b3
MK
45652014-02-27 Mark Kettenis <kettenis@gnu.org>
4566
4567 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
4568
c91550fc
JK
45692014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4570
4571 Additional PR 8882 fix.
4572 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
4573
2fa0369e
PA
45742014-02-27 Pedro Alves <palves@redhat.com>
4575
4576 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
4577 isn't set.
4578
d632a097
PA
45792014-02-27 Pedro Alves <palves@redhat.com>
4580
4581 PR 12702
4582 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
4583 * nat/linux-waitpid.c: Include string.h.
4584 (status_to_str): Moved here and made extern.
4585 * nat/linux-waitpid.h (status_to_str): New declaration.
4586
2ebd5a35
HZ
45872014-02-27 Hui Zhu <hui@codesourcery.com>
4588
4589 PR 12702
4590 * infrun.c (ptid_match): Move ...
4591 * common/ptid.c (ptid_match): ... here.
4592 * inferior.h (ptid_match): Move ...
4593 * common/ptid.h (ptid_match): ... here.
4594
3cdd631f
MK
45952014-02-27 Mark Kettenis <kettenis@gnu.org>
4596
4597 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
4598 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
4599 gdb_target_obs.
4600
bee30a64
MK
46012014-02-27 Mark Kettenis <kettenis@gnu.org>
4602
4603 * obsd-tdep.c (obsd_auxv_parse): New function.
4604 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
4605
4606 * gdbarch.sh (auxv_parse): New.
4607 * gdbarch.h: Regenerated.
4608 * gdbarch.c: Regenerated.
4609 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
4610
7a5a839f
LC
46112014-02-26 Ludovic Courtès <ludo@gnu.org>
4612
4613 * guile/scm-value.c (gdbscm_history_append_x): New function.
4614 (value_functions): Add it.
4615
31aa7e4e
JB
46162014-02-27 Joel Brobecker <brobecker@adacore.com>
4617
4618 * dwarf2read.c (attr_value_as_address): New function.
4619 (dwarf2_find_base_address, read_call_site_scope): Use
4620 attr_value_as_address in place of DW_ADDR.
4621 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
4622 the low and high addresses. Slight rework of the handling
4623 of the high pc being a constant form, and limit it to
4624 DWARF verson 4 or higher.
4625 (dwarf2_record_block_ranges): Likewise.
4626 (read_partial_die): Likewise.
4627 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
4628
9b333ba3
TT
46292014-02-26 Tom Tromey <tromey@redhat.com>
4630
4631 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
4632
5f6cac40
TT
46332014-02-26 Tom Tromey <tromey@redhat.com>
4634
4635 * elfread.c (elf_read_minimal_symbols): Return early if
4636 minimal symbols have already been read. Add "ei" parameter.
4637 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
4638 * minsyms.c (prim_record_minimal_symbol_full): Update.
4639 * objfiles.h (struct objstats) <n_minsyms>: Move...
4640 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
4641 * symmisc.c (print_objfile_statistics): Update.
4642
2750ef27
TT
46432014-02-26 Tom Tromey <tromey@redhat.com>
4644
4645 * elfread.c (elf_read_minimal_symbols): New function, from
4646 elf_symfile_read.
4647 (elf_symfile_read): Call it.
4648
34643a32
TT
46492014-02-26 Tom Tromey <tromey@redhat.com>
4650
4651 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
4652 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
4653 (lookup_minimal_symbol_solib_trampoline)
4654 (lookup_minimal_symbol_by_pc_section_1)
4655 (lookup_minimal_symbol_and_objfile): Update.
4656 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
4657 Don't allocate a minimal symbol if minsyms have already been read.
4658 (build_minimal_symbol_hash_tables): Update.
4659 (install_minimal_symbols): Do nothing if minsyms already read.
4660 Use the per-BFD obstack.
4661 (terminate_minimal_symbol_table): Use the per-BFD obstack.
4662 * objfiles.c (allocate_objfile): Call
4663 terminate_minimal_symbol_table later.
4664 (have_minimal_symbols): Update.
4665 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4666 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4667 Move from struct objfile.
4668 <minsyms_read>: New field.
4669 (struct objfile) <msymbols, minimal_symbol_count,
4670 msymbol_hash, msymbol_demangled_hash>: Move.
4671 (ALL_OBJFILE_MSYMBOLS): Update.
4672 * symfile.c (read_symbols): Set minsyms_read.
4673 (reread_symbols): Update.
4674 * symmisc.c (dump_objfile, dump_msymbols): Update.
4675
2273f0ac
TT
46762014-02-26 Tom Tromey <tromey@redhat.com>
4677
4678 * minsyms.c (msymbols_sort): Remove.
4679 * minsyms.h (msymbols_sort): Remove.
4680 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4681 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4682 * elfread.c (elf_symtab_read): Don't add section offsets.
4683 * xcoffread.c (record_minimal_symbol): Don't add section offset
4684 to minimal symbol address.
4685 * somread.c (text_offset, data_offset): Remove.
4686 (som_symtab_read): Don't add section offsets to minimal symbol
4687 addresses.
4688 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4689 Don't add section offsets to minimal symbols.
4690 * coffread.c (coff_symtab_read): Don't add section offsets
4691 to minimal symbol addresses.
4692 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4693 to minimal symbol addresses.
4694 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4695 section offset to minimal symbol addresses.
4696 * mdebugread.c (parse_partial_symbols): Don't add section
4697 offset to minimal symbol addresses.
4698 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4699 offset to minimal symbol addresses.
4700
77e371c0
TT
47012014-02-26 Tom Tromey <tromey@redhat.com>
4702
4703 * ada-lang.c (ada_main_name): Update.
4704 (ada_add_standard_exceptions): Update.
4705 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4706 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4707 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4708 * auxv.c (ld_so_xfer_auxv): Update.
4709 * avr-tdep.c (avr_scan_prologue): Update.
4710 * ax-gdb.c (gen_var_ref): Update.
4711 * blockframe.c (get_pc_function_start)
4712 (find_pc_partial_function_gnu_ifunc): Update.
4713 * breakpoint.c (create_overlay_event_breakpoint)
4714 (create_longjmp_master_breakpoint)
4715 (create_std_terminate_master_breakpoint)
4716 (create_exception_master_breakpoint): Update.
4717 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4718 * c-valprint.c (c_val_print): Update.
4719 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4720 * common/agent.c (agent_look_up_symbols): Update.
4721 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4722 * dwarf2loc.c (call_site_to_target_addr): Update.
4723 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4724 * elfread.c (elf_gnu_ifunc_record_cache)
4725 (elf_gnu_ifunc_resolve_by_got): Update.
4726 * findvar.c (default_read_var_value): Update.
4727 * frame.c (inside_main_func): Update.
4728 * frv-tdep.c (frv_frame_this_id): Update.
4729 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4730 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4731 Update.
4732 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4733 (hppa_hpux_find_dummy_bpaddr): Update.
4734 * hppa-tdep.c (hppa_symbol_address): Update.
4735 * infcmd.c (until_next_command): Update.
4736 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4737 Update.
4738 * linespec.c (minsym_found, add_minsym): Update.
4739 * linux-nat.c (get_signo): Update.
4740 * linux-thread-db.c (inferior_has_bug): Update.
4741 * m32c-tdep.c (m32c_return_value)
4742 (m32c_m16c_address_to_pointer): Update.
4743 * m32r-tdep.c (m32r_frame_this_id): Update.
4744 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4745 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4746 * maint.c (maintenance_translate_address): Update.
4747 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4748 (frob_address): New function.
4749 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4750 frob_address. Rename parameter to "pc_in".
4751 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4752 addresses.
4753 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4754 Update.
4755 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4756 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4757 * objc-lang.c (find_objc_msgsend): Update.
4758 * objfiles.c (objfile_relocate1): Update.
4759 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4760 * p-valprint.c (pascal_val_print): Update.
4761 * parse.c (write_exp_msymbol): Update.
4762 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4763 (ppc_elfv2_skip_entrypoint): Update.
4764 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4765 * printcmd.c (build_address_symbolic, msym_info)
4766 (address_info): Update.
4767 * proc-service.c (ps_pglobal_lookup): Update.
4768 * psymtab.c (find_pc_sect_psymtab_closer)
4769 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4770 Change msymbol parameter to bound_minimal_symbol.
4771 * ravenscar-thread.c (get_running_thread_id): Update.
4772 * remote.c (remote_check_symbols): Update.
4773 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4774 address.
4775 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4776 * solib-dsbt.c (lm_base): Update.
4777 * solib-frv.c (lm_base, main_got): Update.
4778 * solib-irix.c (locate_base): Update.
4779 * solib-som.c (som_solib_create_inferior_hook)
4780 (link_map_start): Update.
4781 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4782 * solib-svr4.c (elf_locate_base, enable_break): Update.
4783 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4784 (flush_ea_cache): Update.
4785 * stabsread.c (define_symbol, scan_file_globals): Update.
4786 * stack.c (find_frame_funname): Update.
4787 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4788 (debug_qf_find_pc_sect_symtab): Update.
4789 * symfile.c (simple_read_overlay_table)
4790 (simple_overlay_update): Update.
4791 * symfile.h (struct quick_symbol_functions)
4792 <find_pc_sect_symtab>: Change type of msymbol to
4793 bound_minimal_symbol.
4794 * symmisc.c (dump_msymbols): Update.
4795 * symtab.c (find_pc_sect_symtab_via_partial)
4796 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4797 (search_symbols, print_msymbol_info): Update.
4798 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4799 (MSYMBOL_VALUE_ADDRESS): Redefine.
4800 (BMSYMBOL_VALUE_ADDRESS): New macro.
4801 * tracepoint.c (scope_info): Update.
4802 * tui/tui-disasm.c (tui_find_disassembly_address)
4803 (tui_get_begin_asm_address): Update.
4804 * valops.c (find_function_in_inferior): Update.
4805 * value.c (value_static_field, value_fn_field): Update.
4806
3b7344d5
TT
48072014-02-26 Tom Tromey <tromey@redhat.com>
4808
4809 * ada-lang.c (ada_update_initial_language): Update.
4810 (ada_main_name, ada_has_this_exception_support): Update.
4811 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4812 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4813 * arm-tdep.c (arm_skip_stub): Update.
4814 * auxv.c (ld_so_xfer_auxv): Update.
4815 * avr-tdep.c (avr_scan_prologue): Update.
4816 * ax-gdb.c (gen_var_ref): Update.
4817 * breakpoint.c (struct breakpoint_objfile_data)
4818 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4819 type to bound_minimal_symbol.
4820 (create_overlay_event_breakpoint)
4821 (create_longjmp_master_breakpoint)
4822 (create_std_terminate_master_breakpoint)
4823 (create_exception_master_breakpoint): Update.
4824 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4825 * c-exp.y (classify_name): Update.
4826 * coffread.c (coff_symfile_read): Update.
4827 * common/agent.c (agent_look_up_symbols): Update.
4828 * d-lang.c (d_main_name): Update.
4829 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4830 * dec-thread.c (enable_dec_thread): Update.
4831 * dwarf2loc.c (call_site_to_target_addr): Update.
4832 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4833 * eval.c (evaluate_subexp_standard): Update.
4834 * findvar.c (struct minsym_lookup_data) <result>: Change type
4835 to bound_minimal_symbol.
4836 <objfile>: Remove.
4837 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4838 * frame.c (inside_main_func): Update.
4839 * frv-tdep.c (frv_frame_this_id): Update.
4840 * gcore.c (call_target_sbrk): Update.
4841 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4842 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4843 Update.
4844 * go-lang.c (go_main_name): Update.
4845 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4846 (hppa_hpux_find_import_stub_for_addr): Update.
4847 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4848 Update. Change return type.
4849 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4850 type.
4851 * jit.c (jit_breakpoint_re_set_internal): Update.
4852 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4853 Update.
4854 * linux-nat.c (get_signo): Update.
4855 * linux-thread-db.c (inferior_has_bug): Update
4856 * m32c-tdep.c (m32c_return_value)
4857 (m32c_m16c_address_to_pointer): Update.
4858 * m32r-tdep.c (m32r_frame_this_id): Update.
4859 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4860 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4861 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4862 lookup_minimal_symbol. Change return type.
4863 (lookup_minimal_symbol): Remove.
4864 (lookup_bound_minimal_symbol): Update.
4865 (lookup_minimal_symbol_text): Change return type.
4866 (lookup_minimal_symbol_solib_trampoline): Change return type.
4867 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4868 (lookup_minimal_symbol_solib_trampoline): Change return type.
4869 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4870 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4871 (value_nsstring, find_imps): Update.
4872 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4873 * p-lang.c (pascal_main_name): Update.
4874 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4875 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4876 * proc-service.c (ps_pglobal_lookup): Update.
4877 * ravenscar-thread.c (get_running_thread_msymbol): Change
4878 return type.
4879 (has_ravenscar_runtime, get_running_thread_id): Update.
4880 * remote.c (remote_check_symbols): Update.
4881 * sol-thread.c (ps_pglobal_lookup): Update.
4882 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4883 * solib-dsbt.c (lm_base): Update.
4884 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4885 Update.
4886 * solib-irix.c (locate_base): Update.
4887 * solib-som.c (som_solib_create_inferior_hook)
4888 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4889 Update.
4890 * solib-spu.c (spu_enable_break): Update.
4891 * solib-svr4.c (elf_locate_base, enable_break): Update.
4892 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4893 (flush_ea_cache): Update.
4894 * stabsread.c (define_symbol): Update.
4895 * symfile.c (simple_read_overlay_table): Update.
4896 * symtab.c (find_pc_sect_line): Update.
4897 * tracepoint.c (scope_info): Update.
4898 * tui-disasm.c (tui_get_begin_asm_address): Update.
4899 * value.c (value_static_field): Update.
4900
40c1a007
TT
49012014-02-26 Tom Tromey <tromey@redhat.com>
4902
4903 * minsyms.c (prim_record_minimal_symbol_full): Use
4904 SET_MSYMBOL_VALUE_ADDRESS.
4905 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4906 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4907 SET_MSYMBOL_VALUE_ADDRESS.
4908 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4909 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4910
efd66ac6
TT
49112014-02-26 Tom Tromey <tromey@redhat.com>
4912
4913 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4914 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4915 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4916 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4917 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4918 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4919 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4920 * ada-lang.c (ada_main_name): Update.
4921 (ada_lookup_simple_minsym): Update.
4922 (ada_make_symbol_completion_list): Update.
4923 (ada_add_standard_exceptions): Update.
4924 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4925 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4926 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4927 * arm-tdep.c (skip_prologue_function): Update.
4928 (arm_skip_stack_protector, arm_skip_stub): Update.
4929 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4930 (arm_wince_skip_main_prologue): Update.
4931 * auxv.c (ld_so_xfer_auxv): Update.
4932 * avr-tdep.c (avr_scan_prologue): Update.
4933 * ax-gdb.c (gen_var_ref): Update.
4934 * block.c (call_site_for_pc): Update.
4935 * blockframe.c (get_pc_function_start): Update.
4936 (find_pc_partial_function_gnu_ifunc): Update.
4937 * breakpoint.c (create_overlay_event_breakpoint): Update.
4938 (create_longjmp_master_breakpoint): Update.
4939 (create_std_terminate_master_breakpoint): Update.
4940 (create_exception_master_breakpoint): Update.
4941 (resolve_sal_pc): Update.
4942 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4943 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4944 Update.
4945 * c-valprint.c (c_val_print): Update.
4946 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4947 * coffread.c (coff_symfile_read): Update.
4948 * common/agent.c (agent_look_up_symbols): Update.
4949 * dbxread.c (find_stab_function_addr): Update.
4950 (end_psymtab): Update.
4951 * dwarf2loc.c (call_site_to_target_addr): Update.
4952 (func_verify_no_selftailcall): Update.
4953 (tailcall_dump): Update.
4954 (call_site_find_chain_1): Update.
4955 (dwarf_expr_reg_to_entry_parameter): Update.
4956 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4957 (elf_gnu_ifunc_resolve_by_got): Update.
4958 * f-valprint.c (info_common_command): Update.
4959 * findvar.c (read_var_value): Update.
4960 * frame.c (get_prev_frame_1): Update.
4961 (inside_main_func): Update.
4962 * frv-tdep.c (frv_skip_main_prologue): Update.
4963 (frv_frame_this_id): Update.
4964 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4965 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4966 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4967 (gnuv3_skip_trampoline): Update.
4968 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4969 (hppa64_hpux_in_solib_call_trampoline): Update.
4970 (hppa_hpux_skip_trampoline_code): Update.
4971 (hppa64_hpux_search_dummy_call_sequence): Update.
4972 (hppa_hpux_find_import_stub_for_addr): Update.
4973 (hppa_hpux_find_dummy_bpaddr): Update.
4974 * hppa-tdep.c (hppa_symbol_address)
4975 (hppa_lookup_stub_minimal_symbol): Update.
4976 * i386-tdep.c (i386_skip_main_prologue): Update.
4977 (i386_pe_skip_trampoline_code): Update.
4978 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4979 * infcall.c (get_function_name): Update.
4980 * infcmd.c (until_next_command): Update.
4981 * jit.c (jit_breakpoint_re_set_internal): Update.
4982 (jit_inferior_init): Update.
4983 * linespec.c (minsym_found): Update.
4984 (add_minsym): Update.
4985 * linux-fork.c (info_checkpoints_command): Update.
4986 * linux-nat.c (get_signo): Update.
4987 * linux-thread-db.c (inferior_has_bug): Update.
4988 * m32c-tdep.c (m32c_return_value): Update.
4989 (m32c_m16c_address_to_pointer): Update.
4990 (m32c_m16c_pointer_to_address): Update.
4991 * m32r-tdep.c (m32r_frame_this_id): Update.
4992 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4993 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4994 * maint.c (maintenance_translate_address): Update.
4995 * minsyms.c (add_minsym_to_hash_table): Update.
4996 (add_minsym_to_demangled_hash_table): Update.
4997 (msymbol_objfile): Update.
4998 (lookup_minimal_symbol): Update.
4999 (iterate_over_minimal_symbols): Update.
5000 (lookup_minimal_symbol_text): Update.
5001 (lookup_minimal_symbol_by_pc_name): Update.
5002 (lookup_minimal_symbol_solib_trampoline): Update.
5003 (lookup_minimal_symbol_by_pc_section_1): Update.
5004 (lookup_minimal_symbol_and_objfile): Update.
5005 (prim_record_minimal_symbol_full): Update.
5006 (compare_minimal_symbols): Update.
5007 (compact_minimal_symbols): Update.
5008 (build_minimal_symbol_hash_tables): Update.
5009 (install_minimal_symbols): Update.
5010 (terminate_minimal_symbol_table): Update.
5011 (find_solib_trampoline_target): Update.
5012 (minimal_symbol_upper_bound): Update.
5013 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5014 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5015 (mips_skip_pic_trampoline_code): Update.
5016 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5017 * objc-lang.c (selectors_info): Update.
5018 (classes_info): Update.
5019 (find_methods): Update.
5020 (find_imps): Update.
5021 (find_objc_msgsend): Update.
5022 * objfiles.c (objfile_relocate1): Update.
5023 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5024 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5025 * p-valprint.c (pascal_val_print): Update.
5026 * parse.c (write_exp_msymbol): Update.
5027 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5028 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5029 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5030 * printcmd.c (build_address_symbolic): Update.
5031 (sym_info): Update.
5032 (address_info): Update.
5033 * proc-service.c (ps_pglobal_lookup): Update.
5034 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5035 (find_pc_sect_psymtab): Update.
5036 * python/py-framefilter.c (py_print_frame): Update.
5037 * ravenscar-thread.c (get_running_thread_id): Update.
5038 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5039 Update.
5040 * remote.c (remote_check_symbols): Update.
5041 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5042 (rs6000_skip_trampoline_code): Update.
5043 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5044 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5045 * solib-dsbt.c (lm_base): Update.
5046 * solib-frv.c (lm_base): Update.
5047 (main_got): Update.
5048 * solib-irix.c (locate_base): Update.
5049 * solib-som.c (som_solib_create_inferior_hook): Update.
5050 (som_solib_desire_dynamic_linker_symbols): Update.
5051 (link_map_start): Update.
5052 * solib-spu.c (spu_enable_break): Update.
5053 (ocl_enable_break): Update.
5054 * solib-svr4.c (elf_locate_base): Update.
5055 (enable_break): Update.
5056 * spu-tdep.c (spu_get_overlay_table): Update.
5057 (spu_catch_start): Update.
5058 (flush_ea_cache): Update.
5059 * stabsread.c (define_symbol): Update.
5060 (scan_file_globals): Update.
5061 * stack.c (find_frame_funname): Update.
5062 (frame_info): Update.
5063 * symfile.c (simple_read_overlay_table): Update.
5064 (simple_overlay_update): Update.
5065 * symmisc.c (dump_msymbols): Update.
5066 * symtab.c (fixup_section): Update.
5067 (find_pc_sect_line): Update.
5068 (skip_prologue_sal): Update.
5069 (search_symbols): Update.
5070 (print_msymbol_info): Update.
5071 (rbreak_command): Update.
5072 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5073 (completion_list_objc_symbol): Update.
5074 (default_make_symbol_completion_list_break_on): Update.
5075 * tracepoint.c (scope_info): Update.
5076 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5077 (tui_get_begin_asm_address): Update.
5078 * valops.c (find_function_in_inferior): Update.
5079 * value.c (value_static_field): Update.
5080 (value_fn_field): Update.
5081
50e65b17
TT
50822014-02-26 Tom Tromey <tromey@redhat.com>
5083
5084 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5085 bound minimal symbols. Move code that knows about minsym
5086 table layout...
5087 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5088 function.
5089 * minsyms.h (minimal_symbol_upper_bound): Declare.
5090 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5091 minimal_symbol_upper_bound.
5092
1b588015
JB
50932014-02-27 Joel Brobecker <brobecker@adacore.com>
5094
5095 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5096 Use the type's name if its basic type does not have a tag.
5097
dbb9c2b1
JB
50982014-02-27 Joel Brobecker <brobecker@adacore.com>
5099
5100 * dwarf2read.c (read_subrange_type): Add comment.
5101
55426c9d
JB
51022014-02-27 Joel Brobecker <brobecker@adacore.com>
5103
5104 * dwarf2read.c (update_enumeration_type_from_children): New
5105 function, mostly extracted from process_structure_scope.
5106 (read_enumeration_type): Call update_enumeration_type_from_children.
5107 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5108 and flag_flag_enum fields.
5109
f2fce0ca
PA
51102014-02-26 Pedro Alves <palves@redhat.com>
5111
5112 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5113 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5114 to_xfer_partial method.
5115
7a44e40e
PA
51162014-02-26 Pedro Alves <palves@redhat.com>
5117
5118 * target.c (complete_target_initialization): Don't install
5119 default_xfer_partial as to_xfer_partial hook.
5120 (nomemory): Delete.
5121 (update_current_target): Don't INHERIT nor de_fault
5122 deprecated_xfer_memory. Delete de_fault macro.
5123 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5124 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5125 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5126 field.
5127
bd265cd0
PA
51282014-02-26 Pedro Alves <palves@redhat.com>
5129
5130 * go32-nat.c (my_write_child): New function.
5131 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5132 (go32_xfer_partial): New function.
5133 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5134 Instead install a to_xfer_partial hook.
5135
9d46c4e5
PA
51362014-02-26 Pedro Alves <palves@redhat.com>
5137
5138 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5139 to_xfer_partial helper. Rewrite.
5140 (procfs_xfer_partial): New function.
5141 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5142 Install a to_xfer_partial hook.
5143
a1583b1f
PA
51442014-02-26 Pedro Alves <palves@redhat.com>
5145
5146 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5147 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5148 (m32r_xfer_partial): New function.
5149 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5150 Install a to_xfer_partial hook.
5151
6df1b29f
PA
51522014-02-26 Pedro Alves <palves@redhat.com>
5153
5154 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5155 helper.
5156 (mips_xfer_partial): New function.
5157 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5158 hook. Install a to_xfer_partial hook.
5159
dc53a7ad
JB
51602014-02-26 Joel Brobecker <brobecker@adacore.com>
5161
5162 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5163 * gdbtypes.c (create_array_type_with_stride): New function,
5164 renaming create_array_type, but with an added parameter
5165 called "bit_stride".
5166 (create_array_type): Re-implement using
5167 create_array_type_with_stride.
5168 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5169 and DW_AT_bit_stride attributes.
5170
12ab52e9
PA
51712014-02-26 Pedro Alves <palves@redhat.com>
5172
5173 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5174 task-specific breakpoints.
5175
d16461ae
PA
51762014-02-25 Pedro Alves <palves@redhat.com>
5177
5178 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5179 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5180
a8b16220
SS
51812014-02-25 Stan Shebs <stan@codesourcery.com>
5182
5183 * defs.h: Annotate comments for Doxygen.
5184
b9e795ee
TT
51852014-02-25 Tom Tromey <tromey@redhat.com>
5186
5187 * target.h (target_ignore): Don't declare.
5188 * target.c (target_ignore): Remove.
5189
849c862e
JK
51902014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5191
5192 PR gdb/16626
5193 * auto-load.c (auto_load_objfile_script_1): Change filename to
5194 debugfile.
5195
475109d8
JB
51962014-02-25 Joel Brobecker <brobecker@adacore.com>
5197
5198 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5199 documentation. Adjust prototype to match the target_ops
5200 to_xfer_partial method. Adjust implementation accordingly.
5201
e186c3bd
HZ
52022014-02-25 Hui Zhu <hui@codesourcery.com>
5203
5204 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5205 to_traceframe_info.
5206
6d451942
KB
52072014-02-25 Kevin Buettner <kevinb@redhat.com>
5208
041ab8b4 5209 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
5210 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5211 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5212 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5213 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5214 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5215 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5216 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5217 New constants.
5218 (rl78_register_type): Use a data pointer type for SP and
5219 new pseudo registers mentioned above. Use a 16 bit integer
5220 type for all other register pairs.
5221 (rl78_register_name, rl78_g10_register_name): Update for
5222 new pseudo registers.
5223 (rl78_pseudo_register_read): Likewise.
5224 (rl78_pseudo_register_write): Likewise.
5225 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5226 to the newly added pseudo registers.
5227
eddf0bae
DE
52282014-02-24 Doug Evans <dje@google.com>
5229
5230 * value.c (record_latest_value): Fix comment.
5231 * printcmd.c (print_command_1): Remove code to handle -1 return from
5232 record_latest_value.
5233
e96027e0
PA
52342014-02-24 Pedro Alves <palves@redhat.com>
5235
5236 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5237 deprecated_xfer_memory hook.
5238 (procfs_xfer_partial): Call procfs_xfer_memory instead
5239 of the deprecated_xfer_memory target hook.
5240 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5241 helper.
5242
0837c976
YZ
52432014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5244
5245 * windows-nat.c (windows_xfer_shared_libraries): Return
5246 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5247 requested object is TARGET_OBJECT_LIBRARIES.
5248
bc113b4e
YQ
52492014-02-24 Yao Qi <yao@codesourcery.com>
5250
5251 * target.h (enum target_xfer_status)
5252 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5253 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5254 explicitly. New.
5255 * corefile.c (memory_error_message): User updated.
5256 * exec.c (section_table_read_available_memory): Likewise.
5257 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5258 * target.c (target_xfer_status_to_string): Likewise.
5259 (raw_memory_xfer_partial): Likewise.
5260 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5261 * valops.c (read_value_memory): Likewise.
5262 * exec.h: Update comments.
5263
01cb8804
YQ
52642014-02-24 Yao Qi <yao@codesourcery.com>
5265
5266 * target.c (target_xfer_status_to_string): Rename argument err
5267 to status.
5268 * target.h (target_xfer_status_to_string): Update declaration.
5269 Replace target_xfer_error_to_string with
5270 target_xfer_status_to_string in comment.
5271
93063aa6
YQ
52722014-02-24 Yao Qi <yao@codesourcery.com>
5273
5274 * mips-linux-nat.c (super_close): Update its type.
5275 (mips_linux_close): Pass 'self' to super_close.
5276
5c328c05
YQ
52772014-02-24 Yao Qi <yao@codesourcery.com>
5278
5279 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5280 * corefile.c (read_memory): Adjusted.
5281 * target.c (target_write_with_progress): Adjusted.
5282
f73023dd
YQ
52832014-02-23 Yao Qi <yao@codesourcery.com>
5284
5285 Revert two patches:
5286
5287 2013-10-25 Yao Qi <yao@codesourcery.com>
5288
5289 * remote.c (remote_traceframe_info): Return early if
5290 traceframe is not selected.
5291
5292 2013-07-19 Yao Qi <yao@codesourcery.com>
5293
5294 * target.c (update_current_target): Change the default action
5295 of 'to_traceframe_info' from tcomplain to return_zero.
5296 * target.h (struct target_ops) <to_traceframe_info>: Add more
5297 comments.
5298
5a2eb0ef
YQ
52992014-02-23 Yao Qi <yao@codesourcery.com>
5300
5301 * valops.c (read_value_memory): Rewrite it. Call
5302 target_xfer_partial in a loop.
5303 * exec.h (section_table_available_memory): Remove declaration.
5304 Move comments to ...
5305 * exec.c (section_table_available_memory): ... here. Make it
5306 static.
5307
1ee79381
YQ
53082014-02-23 Yao Qi <yao@codesourcery.com>
5309
5310 * exec.c (section_table_read_available_memory): New function.
5311 * exec.h (section_table_read_available_memory): Declare.
5312 * ctf.c (ctf_xfer_partial): Call
5313 section_table_read_available_memory.
5314 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5315
1ca49d37
YQ
53162014-02-23 Yao Qi <yao@codesourcery.com>
5317
5318 * ctf.c (ctf_xfer_partial): Move code to ...
5319 * exec.c (exec_read_partial_read_only): ... it. New function.
5320 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5321 * tracefile.c: Include "exec.h".
5322 * exec.h (exec_read_partial_read_only): Declare.
5323
a283690e
YQ
53242014-02-23 Yao Qi <yao@codesourcery.com>
5325
5326 * tracefile-tfile.c (tfile_has_all_memory): Remove.
5327 (tfile_has_memory): Remove.
5328 (init_tfile_ops): Don't set fields to_has_all_memory and
5329 to_has_memory of tfile_ops.
5330 * tracefile.c (tracefile_has_all_memory): New function.
5331 (tracefile_has_memory): New function.
5332 (init_tracefile_ops): Initialize fields to_has_all_memory and
5333 to_has_memory of 'ops'.
5334
12e03cd0
YQ
53352014-02-23 Yao Qi <yao@codesourcery.com>
5336
5337 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
5338 (ctf_thread_alive, ctf_get_trace_status): Remove.
5339 (init_ctf_ops): Don't set some fields of ctf_ops. Call
5340 init_tracefile_ops.
5341 * tracefile-tfile.c (tfile_get_trace_status): Remove.
5342 (tfile_has_stack, tfile_has_registers): Remove.
5343 (tfile_thread_alive): Remove.
5344 (init_tfile_ops): Don't set some fields of tfile_ops. Call
5345 init_tracefile_ops.
5346 * tracefile.c (tracefile_has_stack): New function.
5347 (tracefile_has_registers): New function.
5348 (tracefile_thread_alive): New function.
5349 (tracefile_get_trace_status): New function.
5350 (init_tracefile_ops): New function.
5351 * tracefile.h (init_tracefile_ops): Declare.
5352
11395323
YQ
53532014-02-23 Yao Qi <yao@codesourcery.com>
5354
5355 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
5356 (O_LARGEFILE): Likewise.
5357 (tfile_ops): Likewise.
5358 (TRACE_HEADER_SIZE): Likewise.
5359 (trace_fd, trace_frames_offset, cur_offset): Likewise.
5360 (cur_data_size): Likewise.
5361 (tfile_read, tfile_open, tfile_interp_line): Likewise.
5362 (tfile_close, tfile_files_info): Likewise.
5363 (tfile_get_trace_status): Likewise.
5364 (tfile_get_tracepoint_status): Likewise.
5365 (tfile_get_traceframe_address): Likewise.
5366 (tfile_trace_find, match_blocktype): Likewise.
5367 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
5368 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
5369 (tfile_get_trace_state_variable_value): Likewise.
5370 (tfile_has_all_memory, tfile_has_memory): Likewise.
5371 (tfile_has_stack, tfile_has_registers): Likewise.
5372 (tfile_thread_alive, build_traceframe_info): Likewise.
5373 (tfile_traceframe_info, init_tfile_ops): Likewise.
5374 (_initialize_tracepoint): Don't call init_tfile_ops
5375 and add_target_with_completer.
5376 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
5377 exec.h, completer.h and filenames.h.
5378 (_initialize_tracefile_tfile): New function.
5379
7951c4eb
YQ
53802014-02-23 Yao Qi <yao@codesourcery.com>
5381
5382 * Makefile.in (REMOTE_OBS): Append tracefile.o and
5383 tracefile-tfile.o.
5384 (HFILES_NO_SRCDIR): Add tracefile.h.
5385 * ctf.c: Include "tracefile.h".
5386 * tracefile.h: New file.
5387 * tracefile.c: New file
5388 * tracefile-tfile.c: New file.
5389 * tracepoint.c: Include "tracefile.h".
5390 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
5391 (stop_reason_names): Add const.
5392 (trace_file_writer_xfree): Move it to tracefile.c.
5393 (trace_save, trace_save_command, trace_save_tfile): Likewise.
5394 (trace_save_ctf): Likewise.
5395 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
5396 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
5397 (tfile_write_header, tfile_write_regblock_type): Likewise.
5398 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
5399 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
5400 (tfile_write_raw_data, tfile_end): Likewise.
5401 (tfile_trace_file_writer_new): Likewise.
5402 (free_uploaded_tp): Make it extern.
5403 (free_uploaded_tsv): Make it extern.
5404 (_initialize_tracepoint): Move code to register command 'tsave'
5405 to tracefile.c.
5406 * tracepoint.h (stop_reason_names): Declare.
5407 (struct trace_frame_write_ops): Move it to tracefile.h.
5408 (struct trace_file_write_ops): Likewise.
5409 (struct trace_file_writer): Likewise.
5410 (free_uploaded_tsvs, free_uploaded_tps): Declare.
5411
184cd072
JK
54122014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5413
5414 PR gdb/16594
5415 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
5416 process name.
5417 (get_cores_used_by_process): New parameter num_cores, use it.
5418 (linux_xfer_osdata_processes): Pass num_cores to it.
5419 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
5420 process name.
5421
c63528fc
AK
54222014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
5423
5424 * target.c (memory_xfer_partial): Fix length arg in call to
5425 breakpoint_xfer_memory.
5426
d7b30f67
SDJ
54272014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5428
5429 PR tdep/16397
5430 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
5431 number comes after the + or - signs. Adjust length of register
5432 name to be extracted.
5433
8838afaf
TT
54342014-02-20 Tom Tromey <tromey@redhat.com>
5435
5436 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
5437 (ada_varobj_ops): Mark "extern".
5438
05227d14
TT
54392014-02-20 Tom Tromey <tromey@redhat.com>
5440
5441 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
5442
1254eefc
DE
54432014-02-20 Doug Evans <xdje42@gmail.com>
5444
5445 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
5446 All callers updated.
5447 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
5448 All callers updated.
5449 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
5450 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
5451
adde2bff
DE
54522014-02-20 lin zuojian <manjian2006@gmail.com>
5453 Joel Brobecker <brobecker@adacore.com>
5454 Doug Evans <xdje42@gmail.com>
5455
5456 PR symtab/16581
5457 * dwarf2read.c (struct die_info): New member in_process.
5458 (reset_die_in_process): New function.
5459 (process_die): Set it at the start, reset when returning.
5460 (inherit_abstract_dies): Only call process_die if origin_child_die
5461 not already being processed.
5462
3be75f87
JB
54632014-02-20 Joel Brobecker <brobecker@adacore.com>
5464
5465 * windows-nat.c (handle_unload_dll): Add function documentation.
5466 (do_initial_windows_stuff): Add comment explaining why we wait
5467 until after inferior initialization has finished before
5468 processing all DLLs.
5469
47f7ffdb
JB
54702014-02-20 Joel Brobecker <brobecker@adacore.com>
5471
5472 * windows-nat.c (get_module_name): Delete.
5473 (windows_get_exec_module_filename): New function, mostly
5474 inspired from get_module_name.
5475 (windows_pid_to_exec_file): Replace call to get_module_name
5476 by call to windows_get_exec_module_filename.
5477
1cd9feab
JB
54782014-02-20 Joel Brobecker <brobecker@adacore.com>
5479
5480 * windows-nat.c (handle_load_dll): Rewrite this function's
5481 introductory comment. Remove code using get_module_name
5482 to get the DLL's name.
5483
ea39ad35
JB
54842014-02-20 Joel Brobecker <brobecker@adacore.com>
5485
5486 * windows-nat.c (get_windows_debug_event): Ignore
5487 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
5488 if windows_initialization_done == 0.
5489 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
5490 Adjust implementation to always load all DLLs.
5491 (do_initial_windows_stuff): Replace call to
5492 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
5493
95060284
JB
54942014-02-20 Joel Brobecker <brobecker@adacore.com>
5495
5496 * windows-nat.c (_initialize_windows_nat): Deprecate the
5497 "dll-symbols" command. Turn the "add-shared-symbol-files"
5498 and "assf" aliases into commands, and deprecate them as well.
5499 * NEWS: Add entry explaining that "dll-symbols" and its two
5500 aliases are now deprecated.
5501
8d4fdb12
JB
55022014-02-20 Joel Brobecker <brobecker@adacore.com>
5503
5504 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
5505 new-line in debug string. Remove trailing spaces.
5506
1b281443
SS
55072014-02-19 Stan Shebs <stan@codesourcery.com>
5508
5509 * darwin-nat.c (darwin_xfer_partial): Fix return type.
5510
f7bd0f78
SC
55112014-02-19 Siva Chandra Reddy <sivachandra@google.com>
5512
5513 * NEWS: Add entry for the new feature
5514 * python/py-value.c (valpy_binop): Call value_x_binop for struct
5515 and class values.
5516
399ebc3d
SS
55172014-02-19 Stan Shebs <stan@codesourcery.com>
5518
5519 * MAINTAINERS: List Yao Qi as nios2 maintainer.
5520
c658158d
PA
55212014-02-19 Pedro Alves <palves@redhat.com>
5522
5523 * common/ptid.h (struct ptid): Mention that process_stratum
5524 targets should prefer ptid.lwp.
5525
ba348170
PA
55262014-02-19 Pedro Alves <palves@redhat.com>
5527
5528 * remote.c (remote_thread_alive, write_ptid, read_ptid)
5529 (read_ptid, remote_newthread_step, remote_threads_extra_info)
5530 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
5531 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
5532 store remote thread ids rather than ptid.tid.
5533 (_initialize_remote): Adjust.
5534
ac01945b
TT
55352014-02-19 Tom Tromey <tromey@redhat.com>
5536
5537 * target.c (target_get_unwinder): Rewrite.
5538 (target_get_tailcall_unwinder): Rewrite.
5539 * record-btrace.c (record_btrace_to_get_unwinder): New function.
5540 (record_btrace_to_get_tailcall_unwinder): New function.
5541 (init_record_btrace_ops): Update.
5542 * target.h (struct target_ops) <to_get_unwinder,
5543 to_get_tailcall_unwinder>: Now function pointers. Use
5544 TARGET_DEFAULT_RETURN.
5545
8476dc92
TT
55462014-02-19 Tom Tromey <tromey@redhat.com>
5547
5548 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
5549 argument.
5550 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
5551
c0eca49f
TT
55522014-02-19 Tom Tromey <tromey@redhat.com>
5553
5554 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
5555 directly.
5556 * target-delegates.c: Rebuild.
5557 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
5558 TARGET_DEFAULT_FUNC.
5559 * target.c (default_target_decr_pc_after_break): Rename from
5560 forward_target_decr_pc_after_break. Simplify.
5561 (target_decr_pc_after_break): Rely on delegation.
5562
596b6b39
TT
55632014-02-19 Tom Tromey <tromey@redhat.com>
5564
5565 * target.c (update_current_target): Do not INHERIT to_doc or
5566 to_magic. Do not de_fault to_open or to_close.
5567
b427c1bc
TT
55682014-02-19 Tom Tromey <tromey@redhat.com>
5569
5570 * gcore.h (objfile_find_memory_regions): Declare.
5571 * gcore.c (objfile_find_memory_regions): No longer static. Add
5572 "self" argument.
5573 (_initialize_gcore): Don't call exec_set_find_memory_regions.
5574 * exec.c: Include gcore.h.
5575 (exec_set_find_memory_regions): Remove.
5576 (exec_find_memory_regions): Remove.
5577 (exec_do_find_memory_regions): Remove.
5578 (init_exec_ops): Update.
5579 * defs.h (exec_set_find_memory_regions): Remove.
5580
9b144037
TT
55812014-02-19 Tom Tromey <tromey@redhat.com>
5582
5583 * target-delegates.c: Rebuild.
5584 * target.h (struct target_ops) <to_extra_thread_info,
5585 to_thread_name, to_pid_to_exec_file, to_get_section_table,
5586 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
5587 not 0, in TARGET_DEFAULT_RETURN.
5588
555bbdeb
TT
55892014-02-19 Tom Tromey <tromey@redhat.com>
5590
5591 * target.c (complete_target_initialization): Remove casts. Use
5592 return_zero_has_execution.
5593 (return_zero): Add "ignore" argument.
5594 (return_zero_has_execution): New function.
5595 (init_dummy_target): Remove casts. Use
5596 return_zero_has_execution.
5597
be4ddd36
TT
55982014-02-19 Tom Tromey <tromey@redhat.com>
5599
5600 * target.c (update_current_target): Update comments. Do not
5601 INHERIT to_stratum.
5602
2117c711
TT
56032014-02-19 Tom Tromey <tromey@redhat.com>
5604
5605 * arm-linux-nat.c (arm_linux_read_description): Delegate when
5606 needed.
5607 * corelow.c (core_read_description): Delegate when needed.
5608 * remote.c (remote_read_description): Delegate when needed.
5609 * target-delegates.c: Rebuild.
5610 * target.c (target_read_description): Rewrite.
5611 * target.h (struct target_ops) <to_read_description>: Update
5612 comment. Use TARGET_DEFAULT_RETURN.
5613
e88ef65c
TT
56142014-02-19 Tom Tromey <tromey@redhat.com>
5615
5616 * target-delegates.c: Rebuild.
5617 * target.c (update_current_target): Don't inherit or default
5618 to_can_run.
5619 (find_default_run_target): Check against delegate_can_run.
5620 * target.h (struct target_ops) <to_can_run>: Use
5621 TARGET_DEFAULT_RETURN.
5622
86a0854a
TT
56232014-02-19 Tom Tromey <tromey@redhat.com>
5624
5625 * target-delegates.c: Rebuild.
5626 * target.c (target_disconnect): Unconditionally delegate.
5627 * target.h (struct target_ops) <to_disconnect>: Use
5628 TARGET_DEFAULT_NORETURN.
5629
ee97f592
TT
56302014-02-19 Tom Tromey <tromey@redhat.com>
5631
5632 * record.c (record_stop): Unconditionally delegate.
5633 * target-delegates.c: Rebuild.
5634 * target.c (target_stop_recording): Unconditionally delegate.
5635 * target.h (struct target_ops) <to_stop_recording>: Use
5636 TARGET_DEFAULT_IGNORE.
5637
6dc7fcf4
TT
56382014-02-19 Tom Tromey <tromey@redhat.com>
5639
5640 * target-delegates.c: Rebuild.
5641 * target.c (target_enable_btrace): Unconditionally delegate.
5642 * target.h (struct target_ops) <to_enable_btrace>: Use
5643 TARGET_DEFAULT_NORETURN.
5644
eb5b20d4
TT
56452014-02-19 Tom Tromey <tromey@redhat.com>
5646
5647 * target-delegates.c: Rebuild.
5648 * target.c (target_read_btrace): Unconditionally delegate.
5649 * target.h (struct target_ops) <to_read_btrace>: Use
5650 TARGET_DEFAULT_NORETURN.
5651
9ace480d
TT
56522014-02-19 Tom Tromey <tromey@redhat.com>
5653
5654 * target-delegates.c: Rebuild.
5655 * target.c (target_teardown_btrace): Unconditionally delegate.
5656 * target.h (struct target_ops) <to_teardown_btrace>: Use
5657 TARGET_DEFAULT_NORETURN.
5658
8dc292d3
TT
56592014-02-19 Tom Tromey <tromey@redhat.com>
5660
5661 * target-delegates.c: Rebuild.
5662 * target.c (target_disable_btrace): Unconditionally delegate.
5663 * target.h (struct target_ops) <to_disable_btrace>: Use
5664 TARGET_DEFAULT_NORETURN.
5665
58a5184e
TT
56662014-02-19 Tom Tromey <tromey@redhat.com>
5667
5668 * target-delegates.c: Rebuild.
5669 * target.c (default_search_memory): New function.
5670 (simple_search_memory): Update comment.
5671 (target_search_memory): Unconditionally delegate.
5672 * target.h (struct target_ops) <to_search_memory>: Use
5673 TARGET_DEFAULT_FUNC.
5674
8de71aab
TT
56752014-02-19 Tom Tromey <tromey@redhat.com>
5676
5677 * auxv.c (default_auxv_parse): No longer static.
5678 (target_auxv_parse): Unconditionally delegate.
5679 * auxv.h (default_auxv_parse): Declare.
5680 * target-delegates.c: Rebuild.
5681 * target.c: Include auxv.h.
5682 * target.h (struct target_ops) <to_auxv_parse>: Use
5683 TARGET_DEFAULT_FUNC.
5684
6b2c5a57
TT
56852014-02-19 Tom Tromey <tromey@redhat.com>
5686
5687 * target-delegates.c: Rebuild.
5688 * target.c (target_memory_map): Unconditionally delegate.
5689 * target.h (struct target_ops) <to_memory_map>: Use
5690 TARGET_DEFAULT_RETURN.
5691
cbffc065
TT
56922014-02-19 Tom Tromey <tromey@redhat.com>
5693
5694 * target-delegates.c: Rebuild.
5695 * target.c (target_thread_alive): Unconditionally delegate.
5696 * target.h (struct target_ops) <to_thread_alive>: Use
5697 TARGET_DEFAULT_RETURN.
5698
f09e2107
TT
56992014-02-19 Tom Tromey <tromey@redhat.com>
5700
5701 * target-delegates.c: Rebuild.
5702 * target.c (target_save_record): Unconditionally delegate.
5703 * target.h (struct target_ops) <to_save_record>: Use
5704 TARGET_DEFAULT_NORETURN.
5705
07366925
TT
57062014-02-19 Tom Tromey <tromey@redhat.com>
5707
5708 * target-delegates.c: Rebuild.
5709 * target.c (target_delete_record): Unconditionally delegate.
5710 * target.h (struct target_ops) <to_delete_record>: Use
5711 TARGET_DEFAULT_NORETURN.
5712
dd2e9d25
TT
57132014-02-19 Tom Tromey <tromey@redhat.com>
5714
5715 * target-delegates.c: Rebuild.
5716 * target.c (target_record_is_replaying): Unconditionally
5717 delegate.
5718 * target.h (struct target_ops) <to_record_is_replaying>: Use
5719 TARGET_DEFAULT_RETURN.
5720
671e76cc
TT
57212014-02-19 Tom Tromey <tromey@redhat.com>
5722
5723 * target-delegates.c: Rebuild.
5724 * target.c (target_goto_record_begin): Unconditionally delegate.
5725 * target.h (struct target_ops) <to_goto_record_begin>: Use
5726 TARGET_DEFAULT_NORETURN.
5727
e9179bb3
TT
57282014-02-19 Tom Tromey <tromey@redhat.com>
5729
5730 * target-delegates.c: Rebuild.
5731 * target.c (target_goto_record_end): Unconditionally delegate.
5732 * target.h (struct target_ops) <to_goto_record_end>: Use
5733 TARGET_DEFAULT_NORETURN.
5734
05969c84
TT
57352014-02-19 Tom Tromey <tromey@redhat.com>
5736
5737 * target-delegates.c: Rebuild.
5738 * target.c (target_goto_record): Unconditionally delegate.
5739 * target.h (struct target_ops) <to_goto_record>: Use
5740 TARGET_DEFAULT_NORETURN.
5741
3679abfa
TT
57422014-02-19 Tom Tromey <tromey@redhat.com>
5743
5744 * target-delegates.c: Rebuild.
5745 * target.c (target_insn_history): Unconditionally delegate.
5746 * target.h (struct target_ops) <to_insn_history>: Use
5747 TARGET_DEFAULT_NORETURN.
5748
8444ab58
TT
57492014-02-19 Tom Tromey <tromey@redhat.com>
5750
5751 * target-delegates.c: Rebuild.
5752 * target.c (target_insn_history_from): Unconditionally delegate.
5753 * target.h (struct target_ops) <to_insn_history_from>: Use
5754 TARGET_DEFAULT_NORETURN.
5755
c29302cc
TT
57562014-02-19 Tom Tromey <tromey@redhat.com>
5757
5758 * target-delegates.c: Rebuild.
5759 * target.c (target_insn_history_range): Unconditionally delegate.
5760 * target.h (struct target_ops) <to_insn_history_range>: Use
5761 TARGET_DEFAULT_NORETURN.
5762
170049d4
TT
57632014-02-19 Tom Tromey <tromey@redhat.com>
5764
5765 * target-delegates.c: Rebuild.
5766 * target.c (target_call_history): Unconditionally delegate.
5767 * target.h (struct target_ops) <to_call_history>: Use
5768 TARGET_DEFAULT_NORETURN.
5769
16fc27d6
TT
57702014-02-19 Tom Tromey <tromey@redhat.com>
5771
5772 * target-delegates.c: Rebuild.
5773 * target.c (target_call_history_from): Unconditionally delegate.
5774 * target.h (struct target_ops) <to_call_history_from>: Use
5775 TARGET_DEFAULT_NORETURN.
5776
115d9817
TT
57772014-02-19 Tom Tromey <tromey@redhat.com>
5778
5779 * target-delegates.c: Rebuild.
5780 * target.c (target_call_history_range): Unconditionally delegate.
5781 * target.h (struct target_ops) <to_call_history_range>: Use
5782 TARGET_DEFAULT_NORETURN.
5783
eb276a6b
TT
57842014-02-19 Tom Tromey <tromey@redhat.com>
5785
5786 * target-delegates.c: Rebuild.
5787 * target.c (target_verify_memory): Unconditionally delegate.
5788 * target.h (struct target_ops) <to_verify_memory>: Use
5789 TARGET_DEFAULT_NORETURN.
5790
9e538d0d
TT
57912014-02-19 Tom Tromey <tromey@redhat.com>
5792
5793 * target-delegates.c: Rebuild.
5794 * target.c (target_core_of_thread): Unconditionally delegate.
5795 * target.h (struct target_ops) <to_core_of_thread>: Use
5796 TARGET_DEFAULT_RETURN.
5797
f6fb2925
TT
57982014-02-19 Tom Tromey <tromey@redhat.com>
5799
5800 * target-delegates.c: Rebuild.
5801 * target.c (target_flash_done): Unconditionally delegate.
5802 * target.h (struct target_ops) <to_flash_done>: Use
5803 TARGET_DEFAULT_NORETURN.
5804
e8a6c6ac
TT
58052014-02-19 Tom Tromey <tromey@redhat.com>
5806
5807 * target-delegates.c: Rebuild.
5808 * target.c (target_flash_erase): Unconditionally delegate.
5809 * target.h (struct target_ops) <to_flash_erase>: Use
5810 TARGET_DEFAULT_NORETURN.
5811
7e35c012
TT
58122014-02-19 Tom Tromey <tromey@redhat.com>
5813
5814 * target-delegates.c: Rebuild.
5815 * target.c (target_get_section_table): Unconditionally delegate.
5816 * target.h (struct target_ops) <to_get_section_table>: Use
5817 TARGET_DEFAULT_RETURN.
5818
770234d3
TT
58192014-02-19 Tom Tromey <tromey@redhat.com>
5820
5821 * target-delegates.c: Rebuild.
5822 * target.c (target_pid_to_str): Unconditionally delegate.
5823 (init_dummy_target): Don't initialize to_pid_to_str.
5824 (default_pid_to_str): Rename from dummy_pid_to_str.
5825 * target.h (struct target_ops) <to_pid_to_str>: Use
5826 TARGET_DEFAULT_FUNC.
5827
09b0dc2b
TT
58282014-02-19 Tom Tromey <tromey@redhat.com>
5829
5830 * target-delegates.c: Rebuild.
5831 * target.c (target_find_new_threads): Unconditionally delegate.
5832 * target.h (struct target_ops) <to_find_new_threads>: Use
5833 TARGET_DEFAULT_RETURN.
5834
7d4f8efa
TT
58352014-02-19 Tom Tromey <tromey@redhat.com>
5836
5837 * target-delegates.c: Rebuild.
5838 * target.c (target_program_signals): Unconditionally delegate.
5839 * target.h (struct target_ops) <to_program_signals>: Use
5840 TARGET_DEFAULT_IGNORE.
5841
035cad7f
TT
58422014-02-19 Tom Tromey <tromey@redhat.com>
5843
5844 * target-delegates.c: Rebuild.
5845 * target.c (target_pass_signals): Unconditionally delegate.
5846 * target.h (struct target_ops) <to_pass_signals>: Use
5847 TARGET_DEFAULT_IGNORE.
5848
8d657035
TT
58492014-02-19 Tom Tromey <tromey@redhat.com>
5850
5851 * target-delegates.c: Rebuild.
5852 * target.c (default_mourn_inferior): New function.
5853 (target_mourn_inferior): Unconditionally delegate.
5854 * target.h (struct target_ops) <to_mourn_inferior>: Use
5855 TARGET_DEFAULT_FUNC.
5856
098dba18
TT
58572014-02-19 Tom Tromey <tromey@redhat.com>
5858
5859 * target-delegates.c: Rebuild.
5860 * target.c (default_follow_fork): New function.
5861 (target_follow_fork): Unconditionally delegate.
5862 * target.h (struct target_ops) <to_follow_fork>: Use
5863 TARGET_DEFAULT_FUNC.
5864
423a4807
TT
58652014-02-19 Tom Tromey <tromey@redhat.com>
5866
5867 * target-delegates.c: Rebuild.
5868 * target.c (target_kill): Unconditionally delegate.
5869 * target.h (struct target_ops) <to_kill>: Use
5870 TARGET_DEFAULT_NORETURN.
5871
6c7e5e5c
TT
58722014-02-19 Tom Tromey <tromey@redhat.com>
5873
5874 * target-delegates.c: Rebuild.
5875 * target.c (target_masked_watch_num_registers): Unconditionally
5876 delegate.
5877 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5878 Use TARGET_DEFAULT_RETURN.
5879
8b1c364c
TT
58802014-02-19 Tom Tromey <tromey@redhat.com>
5881
5882 * target-delegates.c: Rebuild.
5883 * target.c (target_remove_mask_watchpoint): Unconditionally
5884 delegate.
5885 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5886 TARGET_DEFAULT_RETURN.
5887
cd4ae029
TT
58882014-02-19 Tom Tromey <tromey@redhat.com>
5889
5890 * target-delegates.c: Rebuild.
5891 * target.c (target_insert_mask_watchpoint): Unconditionally
5892 delegate.
5893 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5894 TARGET_DEFAULT_RETURN.
5895
a134316b
TT
58962014-02-19 Tom Tromey <tromey@redhat.com>
5897
5898 * target-delegates.c: Rebuild.
5899 * target.c (target_ranged_break_num_registers): Unconditionally
5900 delegate.
5901 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5902 Use TARGET_DEFAULT_RETURN.
5903
ad5989bd
TT
59042014-02-19 Tom Tromey <tromey@redhat.com>
5905
5906 * target-delegates.c: Rebuild.
5907 * target.c (target_fetch_registers): Unconditionally delegate.
5908 * target.h (struct target_ops) <to_fetch_registers>: Use
5909 TARGET_DEFAULT_NORETURN.
5910
46ee7e8d
TT
59112014-02-19 Tom Tromey <tromey@redhat.com>
5912
5913 * target-delegates.c: Rebuild.
5914 * target.c (update_current_target): Don't inherit or default
5915 to_stop.
5916 * target.h (struct target_ops) <to_stop>: Use
5917 TARGET_DEFAULT_IGNORE.
5918
843f59ed
TT
59192014-02-19 Tom Tromey <tromey@redhat.com>
5920
5921 * target-delegates.c: Rebuild.
5922 * target.c (update_current_target): Don't inherit or default
5923 to_can_run_breakpoint_commands.
5924 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5925 Use TARGET_DEFAULT_RETURN.
5926
ccfde2a0
TT
59272014-02-19 Tom Tromey <tromey@redhat.com>
5928
5929 * target-delegates.c: Rebuild.
5930 * target.c (update_current_target): Don't inherit or default
5931 to_supports_evaluation_of_breakpoint_conditions.
5932 * target.h (struct target_ops)
5933 <to_supports_evaluation_of_breakpoint_conditions>: Use
5934 TARGET_DEFAULT_RETURN.
5935
0de91722
TT
59362014-02-19 Tom Tromey <tromey@redhat.com>
5937
5938 * target-delegates.c: Rebuild.
5939 * target.c (update_current_target): Don't inherit or default
5940 to_augmented_libraries_svr4_read.
5941 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5942 Use TARGET_DEFAULT_RETURN.
5943
9a7d8b48
TT
59442014-02-19 Tom Tromey <tromey@redhat.com>
5945
5946 * target-delegates.c: Rebuild.
5947 * target.c (update_current_target): Don't inherit or default
5948 to_can_use_agent.
5949 * target.h (struct target_ops) <to_can_use_agent>: Use
5950 TARGET_DEFAULT_RETURN.
5951
d9db5b21
TT
59522014-02-19 Tom Tromey <tromey@redhat.com>
5953
5954 * target-delegates.c: Rebuild.
5955 * target.c (update_current_target): Don't inherit or default
5956 to_use_agent.
5957 * target.h (struct target_ops) <to_use_agent>: Use
5958 TARGET_DEFAULT_NORETURN.
5959
92155eeb
TT
59602014-02-19 Tom Tromey <tromey@redhat.com>
5961
5962 * target-delegates.c: Rebuild.
5963 * target.c (update_current_target): Don't inherit or default
5964 to_traceframe_info.
5965 (return_null): Remove.
5966 * target.h (struct target_ops) <to_traceframe_info>: Use
5967 TARGET_DEFAULT_RETURN.
5968
d6522a22
TT
59692014-02-19 Tom Tromey <tromey@redhat.com>
5970
5971 * target-delegates.c: Rebuild.
5972 * target.c (update_current_target): Don't inherit or default
5973 to_static_tracepoint_markers_by_strid.
5974 * target.h (struct target_ops)
5975 <to_static_tracepoint_markers_by_strid>: Use
5976 TARGET_DEFAULT_NORETURN.
5977
4c3e4425
TT
59782014-02-19 Tom Tromey <tromey@redhat.com>
5979
5980 * target-delegates.c: Rebuild.
5981 * target.c (update_current_target): Don't inherit or default
5982 to_static_tracepoint_marker_at.
5983 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5984 Use TARGET_DEFAULT_RETURN.
5985
dcd6917f
TT
59862014-02-19 Tom Tromey <tromey@redhat.com>
5987
5988 * target-delegates.c: Rebuild.
5989 * target.c (update_current_target): Don't inherit or default
5990 to_set_permissions.
5991 * target.h (struct target_ops) <to_set_permissions>: Use
5992 TARGET_DEFAULT_IGNORE.
5993
22bcceee
TT
59942014-02-19 Tom Tromey <tromey@redhat.com>
5995
5996 * target-delegates.c: Rebuild.
5997 * target.c (update_current_target): Don't inherit or default
5998 to_get_tib_address.
5999 * target.h (struct target_ops) <to_get_tib_address>: Use
6000 TARGET_DEFAULT_NORETURN.
6001
8586ccaa
TT
60022014-02-19 Tom Tromey <tromey@redhat.com>
6003
6004 * target-delegates.c: Rebuild.
6005 * target.c (update_current_target): Don't inherit or default
6006 to_set_trace_notes.
6007 * target.h (struct target_ops) <to_set_trace_notes>: Use
6008 TARGET_DEFAULT_RETURN.
6009
91df8d1d
TT
60102014-02-19 Tom Tromey <tromey@redhat.com>
6011
6012 * target-delegates.c: Rebuild.
6013 * target.c (update_current_target): Don't initialize
6014 to_set_trace_buffer_size.
6015 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6016 TARGET_DEFAULT_IGNORE.
6017
8d526939
TT
60182014-02-19 Tom Tromey <tromey@redhat.com>
6019
6020 * target-delegates.c: Rebuild.
6021 * target.c (update_current_target): Don't inherit or default
6022 to_set_circular_trace_buffer.
6023 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6024 TARGET_DEFAULT_IGNORE.
6025
0bcfeddf
TT
60262014-02-19 Tom Tromey <tromey@redhat.com>
6027
6028 * target-delegates.c: Rebuild.
6029 * target.c (update_current_target): Don't inherit or default
6030 to_set_disconnected_tracing.
6031 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6032 TARGET_DEFAULT_IGNORE.
6033
9249843f
TT
60342014-02-19 Tom Tromey <tromey@redhat.com>
6035
6036 * target-delegates.c: Rebuild.
6037 * target.c (update_current_target): Don't inherit or default
6038 to_get_min_fast_tracepoint_insn_len.
6039 (return_minus_one): Remove.
6040 * target.h (struct target_ops)
6041 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6042
ace92e7d
TT
60432014-02-19 Tom Tromey <tromey@redhat.com>
6044
6045 * target-delegates.c: Rebuild.
6046 * target.c (update_current_target): Don't inherit or default
6047 to_get_raw_trace_data.
6048 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6049 TARGET_DEFAULT_NORETURN.
6050
08120467
TT
60512014-02-19 Tom Tromey <tromey@redhat.com>
6052
6053 * target-delegates.c: Rebuild.
6054 * target.c (update_current_target): Don't inherit or default
6055 to_upload_trace_state_variables.
6056 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6057 Use TARGET_DEFAULT_RETURN.
6058
1e949b00
TT
60592014-02-19 Tom Tromey <tromey@redhat.com>
6060
6061 * target-delegates.c: Rebuild.
6062 * target.c (update_current_target): Don't inherit or default
6063 to_upload_tracepoints.
6064 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6065 TARGET_DEFAULT_RETURN.
6066
a2e6c147
TT
60672014-02-19 Tom Tromey <tromey@redhat.com>
6068
6069 * target-delegates.c: Rebuild.
6070 * target.c (update_current_target): Don't inherit or default
6071 to_save_trace_data.
6072 * target.h (struct target_ops) <to_save_trace_data>: Use
6073 TARGET_DEFAULT_NORETURN.
6074
959bcd0b
TT
60752014-02-19 Tom Tromey <tromey@redhat.com>
6076
6077 * target-delegates.c: Rebuild.
6078 * target.c (update_current_target): Don't inherit or default
6079 to_get_trace_state_variable_value.
6080 * target.h (struct target_ops)
6081 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6082
afc94e66
TT
60832014-02-19 Tom Tromey <tromey@redhat.com>
6084
6085 * target-delegates.c: Rebuild.
6086 * target.c (update_current_target): Don't inherit or default
6087 to_trace_find.
6088 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6089
e51c07ea
TT
60902014-02-19 Tom Tromey <tromey@redhat.com>
6091
6092 * target-delegates.c: Rebuild.
6093 * target.c (update_current_target): Don't inherit or default
6094 to_trace_stop.
6095 * target.h (struct target_ops) <to_trace_stop>: Use
6096 TARGET_DEFAULT_NORETURN.
6097
6fea14cd
TT
60982014-02-19 Tom Tromey <tromey@redhat.com>
6099
6100 * target-delegates.c: Rebuild.
6101 * target.c (update_current_target): Don't inherit or default
6102 to_get_tracepoint_status.
6103 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6104 TARGET_DEFAULT_NORETURN.
6105
4072d4ff
TT
61062014-02-19 Tom Tromey <tromey@redhat.com>
6107
6108 * target-delegates.c: Rebuild.
6109 * target.c (update_current_target): Don't inherit or default
6110 to_get_trace_status.
6111 * target.h (struct target_ops) <to_get_trace_status>: Use
6112 TARGET_DEFAULT_RETURN.
6113
25da2e80
TT
61142014-02-19 Tom Tromey <tromey@redhat.com>
6115
6116 * target-delegates.c: Rebuild.
6117 * target.c (update_current_target): Don't inherit or default
6118 to_trace_start.
6119 * target.h (struct target_ops) <to_trace_start>: Use
6120 TARGET_DEFAULT_NORETURN.
6121
86dd181d
TT
61222014-02-19 Tom Tromey <tromey@redhat.com>
6123
6124 * target-delegates.c: Rebuild.
6125 * target.c (update_current_target): Don't inherit or default
6126 to_trace_set_readonly_regions.
6127 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6128 Use TARGET_DEFAULT_NORETURN.
6129
05c41993
TT
61302014-02-19 Tom Tromey <tromey@redhat.com>
6131
6132 * target-delegates.c: Rebuild.
6133 * target.c (update_current_target): Don't inherit or default
6134 to_disable_tracepoint.
6135 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6136 TARGET_DEFAULT_NORETURN.
6137
151f70f1
TT
61382014-02-19 Tom Tromey <tromey@redhat.com>
6139
6140 * target-delegates.c: Rebuild.
6141 * target.c (update_current_target): Don't inherit or default
6142 to_enable_tracepoint.
6143 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6144 TARGET_DEFAULT_NORETURN.
6145
94eb98b9
TT
61462014-02-19 Tom Tromey <tromey@redhat.com>
6147
6148 * target-delegates.c: Rebuild.
6149 * target.c (update_current_target): Don't inherit or default
6150 to_download_trace_state_variable.
6151 * target.h (struct target_ops) <to_download_trace_state_variable>:
6152 Use TARGET_DEFAULT_NORETURN.
6153
719acc4a
TT
61542014-02-19 Tom Tromey <tromey@redhat.com>
6155
6156 * target-delegates.c: Rebuild.
6157 * target.c (update_current_target): Don't inherit or default
6158 to_can_download_tracepoint.
6159 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6160 TARGET_DEFAULT_RETURN.
6161
9a980a22
TT
61622014-02-19 Tom Tromey <tromey@redhat.com>
6163
6164 * target-delegates.c: Rebuild.
6165 * target.c (update_current_target): Don't inherit or default
6166 to_download_tracepoint.
6167 * target.h (struct target_ops) <to_download_tracepoint>: Use
6168 TARGET_DEFAULT_NORETURN.
6169
5536135b
TT
61702014-02-19 Tom Tromey <tromey@redhat.com>
6171
6172 * target-delegates.c: Rebuild.
6173 * target.c (update_current_target): Don't inherit or default
6174 to_trace_init.
6175 * target.h (struct target_ops) <to_trace_init>: Use
6176 TARGET_DEFAULT_RETURN.
6177
9409d39e
TT
61782014-02-19 Tom Tromey <tromey@redhat.com>
6179
6180 * target-delegates.c: Rebuild.
6181 * target.c (update_current_target): Don't inherit or default
6182 to_supports_string_tracing.
6183 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6184 TARGET_DEFAULT_RETURN.
6185
aab1b22d
TT
61862014-02-19 Tom Tromey <tromey@redhat.com>
6187
6188 * target-delegates.c: Rebuild.
6189 * target.c (update_current_target): Don't inherit or default
6190 to_supports_enable_disable_tracepoint.
6191 * target.h (struct target_ops)
6192 <to_supports_enable_disable_tracepoint>: Use
6193 TARGET_DEFAULT_RETURN.
6194
a7304748
TT
61952014-02-19 Tom Tromey <tromey@redhat.com>
6196
6197 * target-delegates.c: Rebuild.
6198 * target.c (update_current_target): Don't inherit or default
6199 to_supports_multi_process.
6200 * target.h (struct target_ops) <to_supports_multi_process>: Use
6201 TARGET_DEFAULT_RETURN.
6202
4229b31d
TT
62032014-02-19 Tom Tromey <tromey@redhat.com>
6204
6205 * target-delegates.c: Rebuild.
6206 * target.c (update_current_target): Don't inherit or default
6207 to_get_ada_task_ptid.
6208 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6209 TARGET_DEFAULT_FUNC.
6210
43eba180
TT
62112014-02-19 Tom Tromey <tromey@redhat.com>
6212
6213 * target-delegates.c: Rebuild.
6214 * target.c (update_current_target): Don't inherit or default
6215 to_thread_architecture.
6216 * target.h (struct target_ops) <to_thread_architecture>: Use
6217 TARGET_DEFAULT_FUNC.
6218
fe31bf5b
TT
62192014-02-19 Tom Tromey <tromey@redhat.com>
6220
6221 * target-delegates.c: Rebuild.
6222 * target.c (update_current_target): Don't inherit or default
6223 to_execution_direction.
6224 * target.h (struct target_ops) <to_execution_direction>: Use
6225 TARGET_DEFAULT_FUNC.
6226
53e1cfc7
TT
62272014-02-19 Tom Tromey <tromey@redhat.com>
6228
6229 * target-delegates.c: Rebuild.
6230 * target.c (update_current_target): Don't inherit or default
6231 to_can_execute_reverse.
6232 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6233 TARGET_DEFAULT_RETURN.
6234 (target_can_execute_reverse): Unconditionally delegate.
6235
9bb9d61d
TT
62362014-02-19 Tom Tromey <tromey@redhat.com>
6237
6238 * target-delegates.c: Rebuild.
6239 * target.c (update_current_target): Don't inherit or default
6240 to_goto_bookmark.
6241 (dummy_goto_bookmark): Remove.
6242 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6243 * target.h (struct target_ops) <to_goto_bookmark>: Use
6244 TARGET_DEFAULT_NORETURN.
6245
3dbafbbb
TT
62462014-02-19 Tom Tromey <tromey@redhat.com>
6247
6248 * target-delegates.c: Rebuild.
6249 * target.c (update_current_target): Don't inherit or default
6250 to_get_bookmark.
6251 (dummy_get_bookmark): Remove.
6252 (init_dummy_target): Don't inherit or default to_get_bookmark.
6253 * target.h (struct target_ops) <to_get_bookmark>: Use
6254 TARGET_DEFAULT_NORETURN
6255
16f796b1
TT
62562014-02-19 Tom Tromey <tromey@redhat.com>
6257
6258 * target-delegates.c: Rebuild.
6259 * target.c (update_current_target): Don't inherit or default
6260 to_make_corefile_notes.
6261 (init_dummy_target): Don't initialize to_make_corefile_notes.
6262 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6263 TARGET_DEFAULT_FUNC.
6264
0b5a2719
TT
62652014-02-19 Tom Tromey <tromey@redhat.com>
6266
6267 * target-delegates.c: Rebuild.
6268 * target.c (update_current_target): Don't inherit or default
6269 to_find_memory_regions.
6270 (init_dummy_target): Don't initialize to_find_memory_regions.
6271 * target.h (struct target_ops) <to_find_memory_regions>: Use
6272 TARGET_DEFAULT_FUNC.
6273
d9cb0195
TT
62742014-02-19 Tom Tromey <tromey@redhat.com>
6275
6276 * target-delegates.c: Rebuild.
6277 * target.c (update_current_target): Don't inherit or default
6278 to_log_command.
6279 * target.h (struct target_ops) <to_log_command>: Use
6280 TARGET_DEFAULT_IGNORE.
6281 (target_log_command): Unconditionally delegate.
6282
830ca330
TT
62832014-02-19 Tom Tromey <tromey@redhat.com>
6284
6285 * target-delegates.c: Rebuild.
6286 * target.c (update_current_target): Don't inherit or default
6287 to_pid_to_exec_file.
6288 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
6289 TARGET_DEFAULT_RETURN.
6290
825828fc
TT
62912014-02-19 Tom Tromey <tromey@redhat.com>
6292
6293 * target-delegates.c: Rebuild.
6294 * target.c (update_current_target): Don't inherit or default
6295 to_thread_name.
6296 (target_thread_name): Unconditionally delegate.
6297 * target.h (struct target_ops) <to_thread_name>: Use
6298 TARGET_DEFAULT_RETURN.
6299
4a7e6dda
TT
63002014-02-19 Tom Tromey <tromey@redhat.com>
6301
6302 * target-delegates.c: Rebuild.
6303 * target.c (update_current_target): Don't inherit or default
6304 to_extra_thread_info.
6305 * target.h (struct target_ops) <to_extra_thread_info>: Use
6306 TARGET_DEFAULT_RETURN.
6307
0db88c1d
TT
63082014-02-19 Tom Tromey <tromey@redhat.com>
6309
6310 * target-delegates.c: Rebuild.
6311 * target.c (update_current_target): Don't inherit or default
6312 to_has_exited.
6313 * target.h (struct target_ops) <to_has_exited>: Use
6314 TARGET_DEFAULT_RETURN..
6315
6a9fa051
TT
63162014-02-19 Tom Tromey <tromey@redhat.com>
6317
6318 * target-delegates.c: Rebuild.
6319 * target.c (update_current_target): Don't inherit or default
6320 to_set_syscall_catchpoint.
6321 (return_one): Remove.
6322 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
6323 TARGET_DEFAULT_RETURN.
6324
62f64d7a
TT
63252014-02-19 Tom Tromey <tromey@redhat.com>
6326
6327 * target-delegates.c: Rebuild.
6328 * target.c (update_current_target): Don't inherit or default
6329 to_insert_exec_catchpoint.
6330 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6331 TARGET_DEFAULT_RETURN.
6332
cda0f38c
TT
63332014-01-08 Tom Tromey <tromey@redhat.com>
6334
6335 * target-delegates.c: Rebuild.
6336 * target.c (update_current_target): Don't inherit or default
6337 to_insert_exec_catchpoint.
6338 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
6339 TARGET_DEFAULT_RETURN.
6340
95c3375e
TT
63412014-02-19 Tom Tromey <tromey@redhat.com>
6342
6343 * target-delegates.c: Rebuild.
6344 * target.c (update_current_target): Don't inherit or default
6345 to_remove_vfork_catchpoint.
6346 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
6347 TARGET_DEFAULT_RETURN.
6348
7e18a8dc
TT
63492014-02-19 Tom Tromey <tromey@redhat.com>
6350
6351 * target-delegates.c: Rebuild.
6352 * target.c (update_current_target): Don't inherit or default
6353 to_insert_vfork_catchpoint.
6354 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
6355 TARGET_DEFAULT_RETURN.
6356
e1a21fb7
TT
63572014-02-19 Tom Tromey <tromey@redhat.com>
6358
6359 * target-delegates.c: Rebuild.
6360 * target.c (update_current_target): Don't inherit or default
6361 to_remove_fork_catchpoint.
6362 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
6363 TARGET_DEFAULT_RETURN.
6364
5958ebeb
TT
63652014-02-19 Tom Tromey <tromey@redhat.com>
6366
6367 * target-delegates.c: Rebuild.
6368 * target.c (update_current_target): Don't inherit or default
6369 to_insert_fork_catchpoint.
6370 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
6371 TARGET_DEFAULT_RETURN.
6372
340ba4bf
TT
63732014-02-19 Tom Tromey <tromey@redhat.com>
6374
6375 * target-delegates.c: Rebuild.
6376 * target.c (update_current_target): Don't inherit or default
6377 to_post_startup_inferior.
6378 * target.h (struct target_ops) <to_post_startup_inferior>: Use
6379 TARGET_DEFAULT_IGNORE.
6380
7634da87
TT
63812014-02-19 Tom Tromey <tromey@redhat.com>
6382
6383 * target-delegates.c: Rebuild.
6384 * target.c (update_current_target): Don't inherit or default
6385 to_load.
6386 * target.h (struct target_ops) <to_load>: Use
6387 TARGET_DEFAULT_NORETURN.
6388
e19e919f
TT
63892014-02-19 Tom Tromey <tromey@redhat.com>
6390
6391 * target-delegates.c: Rebuild.
6392 * target.c (update_current_target): Don't inherit or default
6393 to_terminal_info.
6394 * target.h (struct target_ops) <to_terminal_info>: Use
6395 TARGET_DEFAULT_FUNC.
6396
c6ea8f79
TT
63972014-02-19 Tom Tromey <tromey@redhat.com>
6398
6399 * target-delegates.c: Rebuild.
6400 * target.c (update_current_target): Don't inherit or default
6401 to_terminal_save_ours.
6402 * target.h (struct target_ops) <to_terminal_save_ours>: Use
6403 TARGET_DEFAULT_IGNORE.
6404
e4a733f1
TT
64052014-02-19 Tom Tromey <tromey@redhat.com>
6406
6407 * target-delegates.c: Rebuild.
6408 * target.c (update_current_target): Don't inherit or default
6409 to_terminal_ours.
6410 * target.h (struct target_ops) <to_terminal_ours>: Use
6411 TARGET_DEFAULT_IGNORE.
6412
74fcbef9
TT
64132014-02-19 Tom Tromey <tromey@redhat.com>
6414
6415 * target-delegates.c: Rebuild.
6416 * target.c (update_current_target): Don't inherit or default
6417 to_terminal_ours_for_output.
6418 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
6419 TARGET_DEFAULT_IGNORE.
6420
ddeaacc9
TT
64212014-02-19 Tom Tromey <tromey@redhat.com>
6422
6423 * target-delegates.c: Rebuild.
6424 * target.c (update_current_target): Don't inherit or default
6425 to_terminal_inferior.
6426 * target.h (struct target_ops) <to_terminal_inferior>: Use
6427 TARGET_DEFAULT_IGNORE.
6428
0343661d
TT
64292014-02-19 Tom Tromey <tromey@redhat.com>
6430
6431 * target-delegates.c: Rebuild.
6432 * target.c (update_current_target): Don't inherit or default
6433 to_terminal_init.
6434 * target.h (struct target_ops) <to_terminal_init>: Use
6435 TARGET_DEFAULT_IGNORE.
6436
77cdffe9
TT
64372014-02-19 Tom Tromey <tromey@redhat.com>
6438
6439 * target-delegates.c: Rebuild.
6440 * target.c (update_current_target): Don't inherit or default
6441 to_can_accel_watchpoint_condition.
6442 * target.h (struct target_ops)
6443 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
6444
d03655e4
TT
64452014-02-19 Tom Tromey <tromey@redhat.com>
6446
6447 * target-delegates.c: Rebuild.
6448 * target.c (update_current_target): Don't inherit or default
6449 to_region_ok_for_hw_watchpoint.
6450 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6451 Use TARGET_DEFAULT_FUNC.
6452
65f160a9
TT
64532014-02-19 Tom Tromey <tromey@redhat.com>
6454
6455 * target-delegates.c: Rebuild.
6456 * target.c (update_current_target): Don't inherit or default
6457 to_watchpoint_addr_within_range.
6458 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
6459 Use TARGET_DEFAULT_FUNC.
6460
61dd109f
TT
64612014-02-19 Tom Tromey <tromey@redhat.com>
6462
6463 * target-delegates.c: Rebuild.
6464 * target.c (update_current_target): Don't inherit or default
6465 to_remove_watchpoint.
6466 * target.h (struct target_ops) <to_remove_watchpoint>: Use
6467 TARGET_DEFAULT_NORETURN.
6468
016facd4
TT
64692014-02-19 Tom Tromey <tromey@redhat.com>
6470
6471 * target-delegates.c: Rebuild.
6472 * target.c (update_current_target): Don't inherit or default
6473 to_insert_watchpoint.
6474 * target.h (struct target_ops) <to_insert_watchpoint>: Use
6475 TARGET_DEFAULT_RETURN.
6476
418dabac
TT
64772014-02-19 Tom Tromey <tromey@redhat.com>
6478
6479 * target-delegates.c: Rebuild.
6480 * target.c (update_current_target): Don't inherit or default
6481 to_remove_hw_breakpoint.
6482 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
6483 TARGET_DEFAULT_RETURN.
6484
61b371f9
TT
64852014-02-19 Tom Tromey <tromey@redhat.com>
6486
6487 * target-delegates.c: Rebuild.
6488 * target.c (update_current_target): Don't inherit or default
6489 to_insert_hw_breakpoint.
6490 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
6491 TARGET_DEFAULT_RETURN.
6492
52b51d06
TT
64932014-02-19 Tom Tromey <tromey@redhat.com>
6494
6495 * target-delegates.c: Rebuild.
6496 * target.c (update_current_target): Don't inherit or default
6497 to_can_use_hw_breakpoint.
6498 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
6499 TARGET_DEFAULT_RETURN.
6500
f86e59b2
TT
65012014-02-19 Tom Tromey <tromey@redhat.com>
6502
6503 * target-delegates.c: Rebuild.
6504 * target.c (update_current_target): Don't inherit or default
6505 to_files_info.
6506 * target.h (struct target_ops) <to_files_info>: Use
6507 TARGET_DEFAULT_IGNORE.
6508
6c628163
TT
65092014-02-19 Tom Tromey <tromey@redhat.com>
6510
6511 * target-delegates.c: Rebuild.
6512 * target.c (update_current_target): Don't inherit or default
6513 to_store.
6514 * target.h (struct target_ops) <to_store>: Use
6515 TARGET_DEFAULT_NORETURN.
6516
bebd3233
TT
65172014-02-19 Tom Tromey <tromey@redhat.com>
6518
6519 * target-delegates.c: Rebuild.
6520 * target.c (update_current_target): Don't inherit or default
6521 to_post_attach.
6522 * target.h (struct target_ops) <to_post_attach>: Use
6523 TARGET_DEFAULT_IGNORE.
6524
a53f3625
TT
65252014-02-19 Tom Tromey <tromey@redhat.com>
6526
6527 * target-delegates.c: Rebuild.
6528 * target.c (update_current_target): Don't inherit or default
6529 to_rcmd.
6530 (default_rcmd): New function.
6531 (do_monitor_command): Unconditionally delegate.
6532 * target.h (struct target_ops) <to_rmcd>: Use
6533 TARGET_DEFAULT_FUNC.
6534
e9a29200
TT
65352014-02-19 Tom Tromey <tromey@redhat.com>
6536
6537 * target-delegates.c: Rebuild.
6538 * target.c (init_dummy_target): Don't initialize to_attach.
6539 (target_attach): Unconditionally delegate.
6540 * target.h (struct target_ops) <to_attach>: Use
6541 TARGET_DEFAULT_FUNC.
6542
09da0d0a
TT
65432014-02-19 Tom Tromey <tromey@redhat.com>
6544
6545 * target-delegates.c: Rebuild.
6546 * target.c (target_detach): Unconditionally delegate.
6547 (init_dummy_target): Don't initialize to_detach.
6548 * target.h (struct target_ops) <to_detach>: Use
6549 TARGET_DEFAULT_IGNORE.
6550
5436ff03
TT
65512014-02-19 Tom Tromey <tromey@redhat.com>
6552
6553 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6554 Add argument.
6555 (target_augmented_libraries_svr4_read): Add argument.
6556 * target.c (update_current_target): Update.
6557 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
6558 argument.
6559
f0d960ea
TT
65602014-02-19 Tom Tromey <tromey@redhat.com>
6561
6562 * target.h (struct target_ops) <to_call_history_range>: Add
6563 argument.
6564 * target.c (target_call_history_range): Add argument.
6565 * record-btrace.c (record_btrace_call_history_range): Add 'self'
6566 argument.
6567 (record_btrace_call_history_from): Update.
6568
ec0aea04
TT
65692014-02-19 Tom Tromey <tromey@redhat.com>
6570
6571 * target.h (struct target_ops) <to_call_history_from>: Add
6572 argument.
6573 * target.c (target_call_history_from): Add argument.
6574 * record-btrace.c (record_btrace_call_history_from): Add 'self'
6575 argument.
6576
5df2fcba
TT
65772014-02-19 Tom Tromey <tromey@redhat.com>
6578
6579 * target.h (struct target_ops) <to_call_history>: Add argument.
6580 * target.c (target_call_history): Add argument.
6581 * record-btrace.c (record_btrace_call_history): Add 'self'
6582 argument.
6583
4e99c6b7
TT
65842014-02-19 Tom Tromey <tromey@redhat.com>
6585
6586 * target.h (struct target_ops) <to_insn_history_range>: Add
6587 argument.
6588 * target.c (target_insn_history_range): Add argument.
6589 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
6590 argument.
6591 (record_btrace_insn_history_from): Update.
6592
9abc3ff3
TT
65932014-02-19 Tom Tromey <tromey@redhat.com>
6594
6595 * target.h (struct target_ops) <to_insn_history_from>: Add
6596 argument.
6597 * target.c (target_insn_history_from): Add argument.
6598 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
6599 argument.
6600
7a6c5609
TT
66012014-02-19 Tom Tromey <tromey@redhat.com>
6602
6603 * target.h (struct target_ops) <to_insn_history>: Add argument.
6604 * target.c (target_insn_history): Add argument.
6605 * record-btrace.c (record_btrace_insn_history): Add 'self'
6606 argument.
6607
606183ac
TT
66082014-02-19 Tom Tromey <tromey@redhat.com>
6609
6610 * target.h (struct target_ops) <to_goto_record>: Add argument.
6611 * target.c (target_goto_record): Add argument.
6612 * record-full.c (record_full_goto): Add 'self' argument.
6613 * record-btrace.c (record_btrace_goto): Add 'self' argument.
6614
307a1b91
TT
66152014-02-19 Tom Tromey <tromey@redhat.com>
6616
6617 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
6618 * target.c (target_goto_record_end): Add argument.
6619 * record-full.c (record_full_goto_end): Add 'self' argument.
6620 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
6621
08475817
TT
66222014-02-19 Tom Tromey <tromey@redhat.com>
6623
6624 * target.h (struct target_ops) <to_goto_record_begin>: Add
6625 argument.
6626 * target.c (target_goto_record_begin): Add argument.
6627 * record-full.c (record_full_goto_begin): Add 'self' argument.
6628 * record-btrace.c (record_btrace_goto_begin): Add 'self'
6629 argument.
6630
1c63c994
TT
66312014-02-19 Tom Tromey <tromey@redhat.com>
6632
6633 * target.h (struct target_ops) <to_record_is_replaying>: Add
6634 argument.
6635 * target.c (target_record_is_replaying): Add argument.
6636 * record-full.c (record_full_is_replaying): Add 'self' argument.
6637 * record-btrace.c (record_btrace_is_replaying): Add 'self'
6638 argument.
6639 (record_btrace_xfer_partial, record_btrace_store_registers)
6640 (record_btrace_prepare_to_store, record_btrace_resume)
6641 (record_btrace_wait, record_btrace_decr_pc_after_break)
6642 (record_btrace_find_new_threads, record_btrace_thread_alive):
6643 Update.
6644
d1b55219
TT
66452014-02-19 Tom Tromey <tromey@redhat.com>
6646
6647 * target.h (struct target_ops) <to_delete_record>: Add argument.
6648 * target.c (target_delete_record): Add argument.
6649 * record-full.c (record_full_delete): Add 'self' argument.
6650
1390f529
TT
66512014-02-19 Tom Tromey <tromey@redhat.com>
6652
6653 * target.h (struct target_ops) <to_save_record>: Add argument.
6654 * target.c (target_save_record): Add argument.
6655 * record-full.c (record_full_save): Add 'self' argument.
6656 (record_full_save): Add 'self' argument.
6657
630d6a4a
TT
66582014-02-19 Tom Tromey <tromey@redhat.com>
6659
6660 * target.h (struct target_ops) <to_info_record>: Add argument.
6661 * target.c (target_info_record): Add argument.
6662 * record.c (info_record_command): Add argument.
6663 * record-full.c (record_full_info): Add 'self' argument.
6664 * record-btrace.c (record_btrace_info): Add 'self' argument.
6665
c6cd7c02
TT
66662014-02-19 Tom Tromey <tromey@redhat.com>
6667
6668 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6669 * target.c (target_stop_recording): Add argument.
6670 * record.c (record_stop): Add argument.
6671 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6672 argument.
6673
39c49f83
TT
66742014-02-19 Tom Tromey <tromey@redhat.com>
6675
6676 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6677 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6678 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6679 argument.
6680 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6681 (_initialize_amd64_linux_nat): Use it.
6682 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6683 (_initialize_i386_linux_nat): Use it.
6684
1777056d
TT
66852014-02-19 Tom Tromey <tromey@redhat.com>
6686
6687 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6688 * target.c (target_teardown_btrace): Add argument.
6689 * remote.c (remote_teardown_btrace): Add 'self' argument.
6690 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6691 argument.
6692 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6693 argument.
6694
25e95349
TT
66952014-02-19 Tom Tromey <tromey@redhat.com>
6696
6697 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6698 * target.c (target_disable_btrace): Add argument.
6699 * remote.c (remote_disable_btrace): Add 'self' argument.
6700 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6701 argument.
6702 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6703 argument.
6704
e3c49f88
TT
67052014-02-19 Tom Tromey <tromey@redhat.com>
6706
6707 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6708 * target.c (target_enable_btrace): Add argument.
6709 * remote.c (remote_enable_btrace): Add 'self' argument.
6710 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6711 argument.
6712 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6713 argument.
6714
fe38f897
TT
67152014-02-19 Tom Tromey <tromey@redhat.com>
6716
6717 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6718 (target_can_use_agent): Add argument.
6719 * target.c (update_current_target): Update.
6720 * remote.c (remote_can_use_agent): Add 'self' argument.
6721 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6722
2c152180
TT
67232014-02-19 Tom Tromey <tromey@redhat.com>
6724
6725 * target.h (struct target_ops) <to_use_agent>: Add argument.
6726 (target_use_agent): Add argument.
6727 * target.c (update_current_target): Update.
6728 * remote.c (remote_use_agent): Add 'self' argument.
6729 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6730
a893e81f
TT
67312014-02-19 Tom Tromey <tromey@redhat.com>
6732
6733 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6734 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6735 (target_traceframe_info): Add argument.
6736 * target.c (update_current_target): Update.
6737 * remote.c (remote_traceframe_info): Add 'self' argument.
6738 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6739
c686c57f
TT
67402014-02-19 Tom Tromey <tromey@redhat.com>
6741
6742 * target.h (target_static_tracepoint_markers_by_strid): Add
6743 argument.
6744 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6745 'self' argument.
6746 * target.c (update_current_target): Update.
6747 * remote.c (struct target_ops)
6748 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6749 * linux-nat.c (struct target_ops)
6750 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6751
61fc905d
TT
67522014-02-19 Tom Tromey <tromey@redhat.com>
6753
6754 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6755 Add argument.
6756 (target_static_tracepoint_marker_at): Add argument.
6757 * target.c (update_current_target): Update.
6758 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6759 argument.
6760
c378d69d
TT
67612014-02-19 Tom Tromey <tromey@redhat.com>
6762
6763 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6764 (target_set_permissions): Add argument.
6765 * target.c (update_current_target): Update.
6766 * remote.c (remote_set_permissions): Add 'self' argument.
6767 (remote_start_remote): Update.
6768
bd7ae0f5
TT
67692014-02-19 Tom Tromey <tromey@redhat.com>
6770
6771 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6772 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6773 (target_get_tib_address): Add argument.
6774 * target.c (update_current_target): Update.
6775 * remote.c (remote_get_tib_address): Add 'self' argument.
6776
d9e68a2c
TT
67772014-02-19 Tom Tromey <tromey@redhat.com>
6778
6779 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6780 (target_set_trace_notes): Add argument.
6781 * target.c (update_current_target): Update.
6782 * remote.c (remote_set_trace_notes): Add 'self' argument.
6783
4da384be
TT
67842014-02-19 Tom Tromey <tromey@redhat.com>
6785
6786 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6787 argument.
6788 (target_set_trace_buffer_size): Add argument.
6789 * target.c (update_current_target): Update.
6790 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6791
736d5b1f
TT
67922014-02-19 Tom Tromey <tromey@redhat.com>
6793
6794 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6795 argument.
6796 (target_set_circular_trace_buffer): Add argument.
6797 * target.c (update_current_target): Update.
6798 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6799 argument.
6800
37b25738
TT
68012014-02-19 Tom Tromey <tromey@redhat.com>
6802
6803 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6804 argument.
6805 (target_set_disconnected_tracing): Add argument.
6806 * target.c (update_current_target): Update.
6807 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6808
0e67620a
TT
68092014-02-19 Tom Tromey <tromey@redhat.com>
6810
6811 * target.h (struct target_ops)
6812 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6813 (target_get_min_fast_tracepoint_insn_len): Add argument.
6814 * target.c (update_current_target): Update.
6815 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6816 argument.
6817
88ee6f45
TT
68182014-02-19 Tom Tromey <tromey@redhat.com>
6819
6820 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6821 argument.
6822 (target_get_raw_trace_data): Add argument.
6823 * target.c (update_current_target): Update.
6824 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6825
181e3713
TT
68262014-02-19 Tom Tromey <tromey@redhat.com>
6827
6828 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6829 Add argument.
6830 (target_upload_trace_state_variables): Add argument.
6831 * target.c (update_current_target): Update.
6832 * remote.c (remote_upload_trace_state_variables): Add 'self'
6833 argument.
6834 (remote_start_remote): Update.
6835
ab6617cc
TT
68362014-02-19 Tom Tromey <tromey@redhat.com>
6837
6838 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6839 argument.
6840 (target_upload_tracepoints): Add argument.
6841 * target.c (update_current_target): Update.
6842 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6843 (remote_start_remote): Update.
6844
dc3decaf
TT
68452014-02-19 Tom Tromey <tromey@redhat.com>
6846
6847 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6848 (target_save_trace_data): Add argument.
6849 * target.c (update_current_target): Update.
6850 * remote.c (remote_save_trace_data): Add 'self' argument.
6851
4011015b
TT
68522014-02-19 Tom Tromey <tromey@redhat.com>
6853
6854 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6855 argument.
6856 * target.h (struct target_ops)
6857 <to_get_trace_state_variable_value>: Add argument.
6858 (target_get_trace_state_variable_value): Add argument.
6859 * target.c (update_current_target): Update.
6860 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6861 argument.
6862 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6863
bd4c6793
TT
68642014-02-19 Tom Tromey <tromey@redhat.com>
6865
6866 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6867 * target.h (struct target_ops) <to_trace_find>: Add argument.
6868 (target_trace_find): Add argument.
6869 * target.c (update_current_target): Update.
6870 * remote.c (remote_trace_find): Add 'self' argument.
6871 * ctf.c (ctf_trace_find): Add 'self' argument.
6872
74499f1b
TT
68732014-02-19 Tom Tromey <tromey@redhat.com>
6874
6875 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6876 (target_trace_stop): Add argument.
6877 * target.c (update_current_target): Update.
6878 * remote.c (remote_trace_stop): Add 'self' argument.
6879
db90e85c
TT
68802014-02-19 Tom Tromey <tromey@redhat.com>
6881
6882 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6883 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6884 argument.
6885 (target_get_tracepoint_status): Add argument.
6886 * target.c (update_current_target): Update.
6887 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6888
8bd200f1
TT
68892014-02-19 Tom Tromey <tromey@redhat.com>
6890
6891 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6892 * target.h (struct target_ops) <to_get_trace_status>: Add
6893 argument.
6894 (target_get_trace_status): Add argument.
6895 * target.c (update_current_target): Update.
6896 * remote.c (remote_get_trace_status): Add 'self' argument.
6897 (remote_start_remote, remote_can_download_tracepoint): Update.
6898 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6899
e2d1aae3
TT
69002014-02-19 Tom Tromey <tromey@redhat.com>
6901
6902 * target.h (struct target_ops) <to_trace_start>: Add argument.
6903 (target_trace_start): Add argument.
6904 * target.c (update_current_target): Update.
6905 * remote.c (remote_trace_start): Add 'self' argument.
6906
583f9a86
TT
69072014-02-19 Tom Tromey <tromey@redhat.com>
6908
6909 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6910 Add argument.
6911 (target_trace_set_readonly_regions): Add argument.
6912 * target.c (update_current_target): Update.
6913 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6914 argument.
6915
780b049c
TT
69162014-02-19 Tom Tromey <tromey@redhat.com>
6917
6918 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6919 argument.
6920 (target_disable_tracepoint): Add argument.
6921 * target.c (update_current_target): Update.
6922 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6923
46670d57
TT
69242014-02-19 Tom Tromey <tromey@redhat.com>
6925
6926 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6927 argument.
6928 (target_enable_tracepoint): Add argument.
6929 * target.c (update_current_target): Update.
6930 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6931
559d2b81
TT
69322014-02-19 Tom Tromey <tromey@redhat.com>
6933
6934 * target.h (struct target_ops) <to_download_trace_state_variable>:
6935 Add argument.
6936 (target_download_trace_state_variable): Add argument.
6937 * target.c (update_current_target): Update.
6938 * remote.c (remote_download_trace_state_variable): Add 'self'
6939 argument.
6940
a52a8357
TT
69412014-02-19 Tom Tromey <tromey@redhat.com>
6942
6943 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6944 argument.
6945 (target_can_download_tracepoint): Add argument.
6946 * target.c (update_current_target): Update.
6947 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6948
548f7808
TT
69492014-02-19 Tom Tromey <tromey@redhat.com>
6950
6951 * target.h (struct target_ops) <to_download_tracepoint>: Add
6952 argument.
6953 (target_download_tracepoint): Add argument.
6954 * target.c (update_current_target): Update.
6955 * remote.c (remote_download_tracepoint): Add 'self' argument.
6956
ecae04e1
TT
69572014-02-19 Tom Tromey <tromey@redhat.com>
6958
6959 * target.h (struct target_ops) <to_trace_init>: Add argument.
6960 (target_trace_init): Add argument.
6961 * target.c (update_current_target): Update.
6962 * remote.c (remote_trace_init): Add 'self' argument.
6963
fab5aa7c
TT
69642014-02-19 Tom Tromey <tromey@redhat.com>
6965
6966 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6967 * target.c (target_fileio_readlink): Add argument.
6968 * remote.c (remote_hostio_readlink): Add 'self' argument.
6969 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6970
dbbca37d
TT
69712014-02-19 Tom Tromey <tromey@redhat.com>
6972
6973 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6974 * target.c (target_fileio_unlink): Add argument.
6975 * remote.c (remote_hostio_unlink): Add 'self' argument.
6976 (remote_file_delete): Update.
6977 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6978
df39ea25
TT
69792014-02-19 Tom Tromey <tromey@redhat.com>
6980
6981 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6982 * target.c (target_fileio_close): Add argument.
6983 * remote.c (remote_hostio_close): Add 'self' argument.
6984 (remote_hostio_close_cleanup): Update.
6985 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6986 Update.
6987 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6988
a3be983c
TT
69892014-02-19 Tom Tromey <tromey@redhat.com>
6990
6991 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6992 * target.c (target_fileio_pread): Add argument.
6993 * remote.c (remote_hostio_pread): Add 'self' argument.
6994 (remote_bfd_iovec_pread, remote_file_get): Update.
6995 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6996
0d866f62
TT
69972014-02-19 Tom Tromey <tromey@redhat.com>
6998
6999 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7000 * target.c (target_fileio_pwrite): Add argument.
7001 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7002 (remote_file_put): Update.
7003 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7004
cd897586
TT
70052014-02-19 Tom Tromey <tromey@redhat.com>
7006
7007 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7008 * target.c (target_fileio_open): Add argument.
7009 * remote.c (remote_hostio_open): Add 'self' argument.
7010 (remote_bfd_iovec_open): Add 'self' argument.
7011 (remote_file_put): Add 'self' argument.
7012 (remote_file_get): Add 'self' argument.
7013 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7014
78eff0ec
TT
70152014-02-19 Tom Tromey <tromey@redhat.com>
7016
7017 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7018 Add argument.
7019 (target_can_run_breakpoint_commands): Add argument.
7020 * target.c (update_current_target): Update.
7021 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7022 argument.
7023 (remote_insert_breakpoint): Add 'self' argument.
7024 (remote_insert_hw_breakpoint): Add 'self' argument.
7025 (remote_can_run_breakpoint_commands): Add 'self' argument.
7026
efcc2da7
TT
70272014-02-19 Tom Tromey <tromey@redhat.com>
7028
7029 * target.h (struct target_ops)
7030 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7031 (target_supports_evaluation_of_breakpoint_conditions): Add
7032 argument.
7033 * target.c (update_current_target): Update.
7034 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7035 argument.
7036 (remote_insert_breakpoint): Add 'self' argument.
7037 (remote_insert_hw_breakpoint): Add 'self' argument.
7038 (remote_supports_cond_breakpoints): Add 'self' argument.
7039
6de37a3a
TT
70402014-02-19 Tom Tromey <tromey@redhat.com>
7041
7042 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7043 argument.
7044 (target_supports_string_tracing): Add argument.
7045 * target.c (update_current_target): Update.
7046 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7047
2bfc0540
TT
70482014-02-19 Tom Tromey <tromey@redhat.com>
7049
7050 * target.h (struct target_ops)
7051 <to_supports_disable_randomization>: Add argument.
7052 * target.c (find_default_supports_disable_randomization): Add
7053 argument.
7054 (target_supports_disable_randomization): Add argument.
7055 (find_default_supports_disable_randomization): Add 'self'
7056 argument.
7057 * remote.c (extended_remote_supports_disable_randomization): Add
7058 'self' argument.
7059 (remote_supports_disable_randomization): Add 'self' argument.
7060 (extended_remote_create_inferior): Update.
7061 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7062 'self' argument.
7063
7d178d6a
TT
70642014-02-19 Tom Tromey <tromey@redhat.com>
7065
7066 * target.h (struct target_ops)
7067 <to_supports_enable_disable_tracepoint>: Add argument.
7068 (target_supports_enable_disable_tracepoint): Add argument.
7069 * target.c (update_current_target): Update.
7070 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7071 argument.
7072
86ce2668
TT
70732014-02-19 Tom Tromey <tromey@redhat.com>
7074
7075 * target.h (struct target_ops) <to_supports_multi_process>: Add
7076 argument.
7077 (target_supports_multi_process): Add argument.
7078 * target.c (update_current_target): Update.
7079 * remote.c (remote_supports_multi_process): Add 'self' argument.
7080 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7081 argument.
7082 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7083 argument.
7084
4c612759
TT
70852014-02-19 Tom Tromey <tromey@redhat.com>
7086
7087 * target.h (struct target_ops) <to_execution_direction>: Add
7088 argument.
7089 (target_execution_direction): Add argument.
7090 * target.c (default_execution_direction): Add 'self' argument.
7091 * record-full.c (record_full_execution_direction): Add 'self'
7092 argument.
7093
19db3e69
TT
70942014-02-19 Tom Tromey <tromey@redhat.com>
7095
7096 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7097 argument.
7098 (target_can_execute_reverse): Add argument.
7099 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7100 * record-full.c (record_full_can_execute_reverse): Add 'self'
7101 argument.
7102 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7103 argument.
7104
1e6b91a4
TT
71052014-02-19 Tom Tromey <tromey@redhat.com>
7106
7107 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7108 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7109 argument.
7110 (target_get_ada_task_ptid): Add argument.
7111 * target.c (update_current_target): Update.
7112 (default_get_ada_task_ptid): Add 'self' argument.
7113 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7114 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7115 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7116 argument.
7117 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7118 argument.
7119 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7120 argument.
7121 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7122 argument.
7123 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7124 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7125 argument.
7126
3c80fb48
TT
71272014-02-19 Tom Tromey <tromey@redhat.com>
7128
7129 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7130 (target_goto_bookmark): Add argument.
7131 * target.c (dummy_goto_bookmark): Add 'self' argument.
7132 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7133
dd0e2830
TT
71342014-02-19 Tom Tromey <tromey@redhat.com>
7135
7136 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7137 (target_get_bookmark): Add argument.
7138 * target.c (dummy_get_bookmark): Add 'self' argument.
7139 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7140
fc6691b2
TT
71412014-02-19 Tom Tromey <tromey@redhat.com>
7142
7143 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7144 argument.
7145 (target_make_corefile_notes): Add argument.
7146 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7147 * procfs.c (procfs_make_note_section): Add 'self' argument.
7148 (procfs_make_note_section): Add 'self' argument.
7149 (procfs_make_note_section): Add 'self' argument.
7150 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7151 argument.
7152 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7153 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7154 * exec.c (exec_make_note_section): Add 'self' argument.
7155 (exec_make_note_section): Add 'self' argument.
7156
2e73927c
TT
71572014-02-19 Tom Tromey <tromey@redhat.com>
7158
7159 * target.h (struct target_ops) <to_find_memory_regions>: Add
7160 argument.
7161 (target_find_memory_regions): Add argument.
7162 * target.c (dummy_find_memory_regions): Add 'self' argument.
7163 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7164 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7165 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7166 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7167 * exec. (exec_do_find_memory_regions): New global.
7168 (exec_set_find_memory_regions): Rewrite.
7169 (exec_find_memory_regions): New function.
7170 (init_exec_ops): Use exec_find_memory_regions.
7171
2a9a2795
TT
71722014-02-19 Tom Tromey <tromey@redhat.com>
7173
7174 * target.h (struct target_ops) <to_supports_non_stop>: Add
7175 argument.
7176 * target.c (find_default_supports_non_stop): Add argument.
7177 (target_supports_non_stop): Add argument.
7178 (find_default_supports_non_stop): Add 'self' argument.
7179 * remote.c (remote_supports_non_stop): Add 'self' argument.
7180 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7181
4ab76ea3
TT
71822014-02-19 Tom Tromey <tromey@redhat.com>
7183
7184 * target.h (struct target_ops) <to_log_command>: Add argument.
7185 (target_log_command): Add argument.
7186 * serial.h (serial_log_command): Add 'self' argument.
7187 * serial.c (serial_log_command): Add 'self' argument.
7188
8dd27370
TT
71892014-02-19 Tom Tromey <tromey@redhat.com>
7190
7191 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7192 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7193 argument.
7194 (target_pid_to_exec_file): Add argument.
7195 * target.c (debug_to_pid_to_exec_file): Add argument.
7196 (update_current_target): Update.
7197 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7198 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7199 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7200 (linux_handle_extended_wait): Update.
7201 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7202 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7203 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7204 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7205
1aac633b
TT
72062014-02-19 Tom Tromey <tromey@redhat.com>
7207
7208 * target.h (struct target_ops) <to_rcmd>: Add argument.
7209 (target_rcmd): Add argument.
7210 * target.c (debug_to_rcmd): Add argument.
7211 (update_current_target, do_monitor_command): Update.
7212 * remote.c (remote_rcmd): Add 'self' argument.
7213 * monitor.c (monitor_rcmd): Add 'self' argument.
7214
1eab8a48
TT
72152014-02-19 Tom Tromey <tromey@redhat.com>
7216
7217 * windows-nat.c (windows_stop): Add 'self' argument.
7218 * target.h (struct target_ops) <to_stop>: Add argument.
7219 * target.c (target_stop): Add argument.
7220 (debug_to_stop): Add argument.
7221 (update_current_target): Update.
7222 * remote.c (remote_stop): Add 'self' argument.
7223 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7224 (gdbsim_cntrl_c): Update.
7225 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7226 * procfs.c (procfs_stop): Add 'self' argument.
7227 * nto-procfs.c (procfs_stop): Add 'self' argument.
7228 * monitor.c (monitor_stop): Add 'self' argument.
7229 (monitor_open): Update.
7230 * linux-nat.c (linux_nat_stop): Add argument.
7231 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7232 * gnu-nat.c (gnu_stop): Add 'self' argument.
7233 * darwin-nat.c (darwin_stop): Add 'self' argument.
7234
503a628d
TT
72352014-02-19 Tom Tromey <tromey@redhat.com>
7236
7237 * target.h (struct target_ops) <to_thread_name>: Add argument.
7238 * target.c (target_thread_name): Add argument.
7239 (update_current_target): Update.
7240 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7241
c15906d8
TT
72422014-02-19 Tom Tromey <tromey@redhat.com>
7243
7244 * target.h (struct target_ops) <to_extra_thread_info>: Add
7245 argument.
7246 (target_extra_thread_info): Add argument.
7247 * target.c (update_current_target): Update.
7248 * remote.c (remote_threads_extra_info): Add 'self' argument.
7249 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7250 argument.
7251 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7252 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7253 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7254 argument.
7255 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7256 argument.
7257 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7258 argument.
7259 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7260 argument.
7261
daf5e9b6
TT
72622014-02-19 Tom Tromey <tromey@redhat.com>
7263
7264 * target.h (struct target_ops) <to_program_signals>: Add argument.
7265 * target.c (target_program_signals): Add argument.
7266 * remote.c (remote_program_signals): Add 'self' argument.
7267
94bedb42
TT
72682014-02-19 Tom Tromey <tromey@redhat.com>
7269
7270 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7271 * target.c (target_pass_signals): Add argument.
7272 * remote.c (remote_pass_signals): Add 'self' argument.
7273 (remote_start_remote): Update.
7274 * procfs.c (procfs_pass_signals): Add 'self' argument.
7275 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7276 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7277 (linux_nat_create_inferior, linux_nat_attach): Update.
7278
da82bd6b
TT
72792014-02-19 Tom Tromey <tromey@redhat.com>
7280
7281 * windows-nat.c (windows_can_run): Add 'self' argument.
7282 * target.h (struct target_ops) <to_can_run>: Add argument.
7283 (target_can_run): Add argument.
7284 * target.c (debug_to_can_run): Add argument.
7285 (update_current_target): Update.
7286 * nto-procfs.c (procfs_can_run): Add 'self' argument.
7287 * inf-child.c (inf_child_can_run): Add 'self' argument.
7288 * go32-nat.c (go32_can_run): Add 'self' argument.
7289
d796e1d6
TT
72902014-02-19 Tom Tromey <tromey@redhat.com>
7291
7292 * target.h (struct target_ops) <to_has_exited>: Add argument.
7293 (target_has_exited): Add argument.
7294 * target.c (debug_to_has_exited): Add argument.
7295 (update_current_target): Update.
7296
ff214e67
TT
72972014-02-19 Tom Tromey <tromey@redhat.com>
7298
7299 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
7300 argument.
7301 (target_set_syscall_catchpoint): Add argument.
7302 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
7303 argument.
7304 * target.c (update_current_target): Update.
7305
758e29d2
TT
73062014-02-19 Tom Tromey <tromey@redhat.com>
7307
7308 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
7309 argument.
7310 (target_remove_exec_catchpoint): Add argument.
7311 * target.c (debug_to_remove_exec_catchpoint): Add argument.
7312 (update_current_target): Update.
7313 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
7314 argument.
7315
ba025e51
TT
73162014-02-19 Tom Tromey <tromey@redhat.com>
7317
7318 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
7319 argument.
7320 (target_insert_exec_catchpoint): Add argument.
7321 * target.c (debug_to_insert_exec_catchpoint): Add argument.
7322 (update_current_target): Update.
7323 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
7324 argument.
7325
e98cf0cd
TT
73262014-02-19 Tom Tromey <tromey@redhat.com>
7327
7328 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
7329 argument.
7330 (target_remove_vfork_catchpoint): Add argument.
7331 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
7332 (update_current_target): Update.
7333 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
7334 argument.
7335
3ecc7da0
TT
73362014-02-19 Tom Tromey <tromey@redhat.com>
7337
7338 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
7339 argument.
7340 (target_insert_vfork_catchpoint): Add argument.
7341 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
7342 (update_current_target): Update.
7343 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
7344 argument.
7345
973fc227
TT
73462014-02-19 Tom Tromey <tromey@redhat.com>
7347
7348 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
7349 argument.
7350 (target_remove_fork_catchpoint): Add argument.
7351 * target.c (debug_to_remove_fork_catchpoint): Add argument.
7352 (update_current_target): Update.
7353 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
7354 argument.
7355
a863b201
TT
73562014-02-19 Tom Tromey <tromey@redhat.com>
7357
7358 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
7359 argument.
7360 (target_insert_fork_catchpoint): Add argument.
7361 * target.c (debug_to_insert_fork_catchpoint): Add argument.
7362 (update_current_target): Update.
7363 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
7364 argument.
7365
2e97a79e
TT
73662014-02-19 Tom Tromey <tromey@redhat.com>
7367
7368 * target.h (struct target_ops) <to_post_startup_inferior>: Add
7369 argument.
7370 (target_post_startup_inferior): Add argument.
7371 * target.c (debug_to_post_startup_inferior): Add argument.
7372 (update_current_target): Update.
7373 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
7374 argument.
7375 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
7376 argument.
7377 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
7378 argument.
7379 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
7380 argument.
7381 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
7382 'self' argument.
7383 (super_post_startup_inferior): Likewise.
7384 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
7385 'self' argument.
7386 (super_post_startup_inferior): Likewise.
7387 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
7388 Add 'self' argument.
7389 (super_post_startup_inferior): Likewise.
7390
71a9f134
TT
73912014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target.h (struct target_ops) <to_load>: Add argument.
7394 * target.c (target_load): Add argument.
7395 (debug_to_load): Add argument.
7396 (update_current_target): Update.
7397 * remote.c (remote_load): Add 'self' argument.
7398 * remote-sim.c (gdbsim_load): Add 'self' argument.
7399 * remote-mips.c (mips_load): Add 'self' argument.
7400 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
7401 * monitor.c (monitor_load): Add 'self' argument.
7402 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
7403
0a4f40a2
TT
74042014-02-19 Tom Tromey <tromey@redhat.com>
7405
7406 * target.h (struct target_ops) <to_terminal_info>: Add argument.
7407 (target_terminal_info): Add argument.
7408 * target.c (debug_to_terminal_info): Add argument.
7409 (default_terminal_info): Likewise.
7410 * inflow.c (child_terminal_info): Add 'self' argument.
7411 * inferior.h (child_terminal_info): Add 'self' argument.
7412 * go32-nat.c (go32_terminal_info): Add 'self' argument.
7413
ae3bd431
TT
74142014-02-19 Tom Tromey <tromey@redhat.com>
7415
7416 * target.h (struct target_ops) <to_terminal_save_ours>: Add
7417 argument.
7418 (target_terminal_save_ours): Add argument.
7419 * target.c (debug_to_terminal_save_ours): Add argument.
7420 (update_current_target): Update.
7421 * inflow.c (terminal_save_ours): Add 'self' argument.
7422 * inferior.h (terminal_save_ours): Add 'self' argument.
7423
e3594fd1
TT
74242014-02-19 Tom Tromey <tromey@redhat.com>
7425
7426 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
7427 (target_terminal_ours): Add argument.
7428 * target.c (debug_to_terminal_ours): Add argument.
7429 (update_current_target): Update.
7430 * remote.c (remote_terminal_ours): Add 'self' argument.
7431 (remote_close): Update.
7432 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
7433 * inflow.c (terminal_ours): Add 'self' argument.
7434 * inferior.h (terminal_ours): Add 'self' argument.
7435 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7436
2e1e1a19
TT
74372014-02-19 Pedro Alves <palves@redhat.com>
7438 Tom Tromey <tromey@redhat.com>
7439
7440 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
7441 argument.
7442 (target_terminal_ours_for_output): Add argument.
7443 * target.c (debug_to_terminal_ours_for_output): Add argument.
7444 (update_current_target): Update.
7445 * inflow.c (terminal_ours_for_output): Add 'self' argument.
7446 * inferior.h (terminal_ours_for_output): Add 'self' argument.
7447 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
7448
d2f640d4
TT
74492014-02-19 Tom Tromey <tromey@redhat.com>
7450
7451 * target.h (struct target_ops) <to_terminal_inferior>: Add
7452 argument.
7453 * target.c (target_terminal_inferior): Add argument.
7454 (update_current_target): Update.
7455 * remote.c (remote_terminal_inferior): Add 'self' argument.
7456 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
7457 * inflow.c (terminal_inferior): Add 'self' argument.
7458 * inferior.h (terminal_inferior): Add 'self' argument.
7459 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
7460 (go32_terminal_inferior): Add 'self' argument.
7461
c42bf286
TT
74622014-02-19 Tom Tromey <tromey@redhat.com>
7463
7464 * target.h (struct target_ops) <to_terminal_init>: Add argument.
7465 (target_terminal_init): Add argument.
7466 * target.c (debug_to_terminal_init): Add argument.
7467 (update_current_target): Update.
7468 * inflow.c (terminal_init_inferior): Add 'self' argument.
7469 * inferior.h (terminal_init_inferior): Add 'self' argument.
7470 * go32-nat.c (go32_terminal_init): Add 'self' argument.
7471 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
7472
c3a5ff89
TT
74732014-02-19 Tom Tromey <tromey@redhat.com>
7474
7475 * target.h (struct target_ops)
7476 <to_can_accel_watchpoint_condition>: Add argument.
7477 (target_can_accel_watchpoint_condition): Add argument.
7478 * target.c (debug_to_can_accel_watchpoint_condition): Add
7479 argument.
7480 (update_current_target): Update.
7481 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
7482 'self' argument.
7483
31568a15
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7487 Add argument.
7488 (target_region_ok_for_hw_watchpoint): Add argument.
7489 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
7490 (default_region_ok_for_hw_watchpoint): Add argument.
7491 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
7492 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
7493 argument.
7494 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
7495 argument.
7496 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
7497 argument.
7498 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
7499 'self' argument.
7500 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
7501 'self' argument.
7502 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
7503 'self' argument.
7504 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
7505 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
7506 'self' argument.
7507 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
7508 Add 'self' argument.
7509
7bb99c53
TT
75102014-02-19 Tom Tromey <tromey@redhat.com>
7511
7512 * target.h (struct target_ops) <to_insert_watchpoint>: Add
7513 argument.
7514 (target_insert_watchpoint): Add argument.
7515 * target.c (debug_to_insert_watchpoint): Add argument.
7516 (update_current_target): Update.
7517 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
7518 * remote.c (remote_insert_watchpoint): Add 'self' argument.
7519 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
7520 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
7521 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
7522 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
7523 argument.
7524 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
7525 (procfs_insert_hw_watchpoint): Add 'self' argument.
7526 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
7527 argument.
7528 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
7529 argument.
7530 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
7531 argument.
7532 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
7533 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
7534 argument.
7535 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
7536 'self' argument.
7537
11b5219a
TT
75382014-02-19 Tom Tromey <tromey@redhat.com>
7539
7540 * target.h (struct target_ops) <to_remove_watchpoint>: Add
7541 argument.
7542 (target_remove_watchpoint): Add argument.
7543 * target.c (debug_to_remove_watchpoint): Add argument.
7544 (update_current_target): Update.
7545 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
7546 * remote.c (remote_remove_watchpoint): Add 'self' argument.
7547 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
7548 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
7549 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
7550 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
7551 argument.
7552 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
7553 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
7554 argument.
7555 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
7556 argument.
7557 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
7558 argument.
7559 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
7560 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
7561 argument.
7562 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
7563 'self' argument.
7564
a64dc96c
TT
75652014-02-19 Tom Tromey <tromey@redhat.com>
7566
7567 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
7568 argument.
7569 (target_remove_hw_breakpoint): Add argument.
7570 * target.c (debug_to_remove_hw_breakpoint): Add argument.
7571 (update_current_target): Update.
7572 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
7573 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
7574 argument.
7575 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
7576 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
7577 argument.
7578 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
7579 'self' argument.
7580
23a26771
TT
75812014-02-19 Tom Tromey <tromey@redhat.com>
7582
7583 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
7584 argument.
7585 (target_insert_hw_breakpoint): Add argument.
7586 * target.c (debug_to_insert_hw_breakpoint): Add argument.
7587 (update_current_target): Update.
7588 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
7589 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
7590 argument.
7591 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
7592 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
7593 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
7594 argument.
7595 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
7596 'self' argument.
7597
5461485a
TT
75982014-02-19 Tom Tromey <tromey@redhat.com>
7599
7600 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
7601 argument.
7602 (target_can_use_hardware_watchpoint): Add argument.
7603 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
7604 (update_current_target): Update.
7605 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
7606 argument.
7607 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
7608 argument.
7609 * remote.c (remote_check_watch_resources): Add 'self' argument.
7610 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
7611 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
7612 argument.
7613 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
7614 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
7615 argument.
7616 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
7617 argument.
7618 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
7619 argument.
7620 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
7621 argument.
7622 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
7623 argument.
7624 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
7625 argument.
7626 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
7627 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
7628 argument.
7629 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
7630 'self' argument.
7631
f045800c
TT
76322014-02-19 Tom Tromey <tromey@redhat.com>
7633
7634 * target.h (struct target_ops) <to_post_attach>: Add argument.
7635 (target_post_attach): Add argument.
7636 * target.c (debug_to_post_attach): Add argument.
7637 (update_current_target): Update.
7638 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
7639 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
7640 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
7641 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
7642 * inf-child.c (inf_child_post_attach): Add 'self' argument.
7643
de90e03d
TT
76442014-02-19 Tom Tromey <tromey@redhat.com>
7645
7646 * windows-nat.c (windows_close): Add 'self' argument.
7647 * tracepoint.c (tfile_close): Add 'self' argument.
7648 * target.h (struct target_ops) <to_close>: Add argument.
7649 * target.c (target_close): Add argument.
7650 (update_current_target): Update.
7651 * remote.c (remote_close): Add 'self' argument.
7652 * remote-sim.c (gdbsim_close): Add 'self' argument.
7653 * remote-mips.c (mips_close): Add 'self' argument.
7654 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
7655 * record-full.c (record_full_close): Add 'self' argument.
7656 * record-btrace.c (record_btrace_close): Add 'self' argument.
7657 * monitor.h (monitor_close): Add 'self' argument.
7658 * monitor.c (monitor_close): Add 'self' argument.
7659 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
7660 * linux-nat.c (linux_nat_close): Add argument.
7661 * go32-nat.c (go32_close): Add 'self' argument.
7662 * exec.c (exec_close_1): Add 'self' argument.
7663 * ctf.c (ctf_close): Add 'self' argument.
7664 * corelow.c (core_close): Add 'self' argument.
7665 (core_close_cleanup): Update.
7666 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7667 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7668
9dd130a0
TT
76692014-02-19 Tom Tromey <tromey@redhat.com>
7670
7671 * remote.c (remote_load): New function.
7672 (init_remote_ops): Use it.
7673
46917d26
TT
76742014-02-19 Tom Tromey <tromey@redhat.com>
7675
7676 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7677 argument.
7678 * common/linux-btrace.h (linux_supports_btrace): Update.
7679 * remote.c (remote_supports_btrace): Add "self" argument.
7680 * target-delegates.c: Rebuild.
7681 * target.c (target_supports_btrace): Remove.
7682 * target.h (struct target_ops) <to_supports_btrace>: Add
7683 target_ops argument.
7684 (target_supports_btrace): New define.
7685
6b84065d
TT
76862014-02-19 Tom Tromey <tromey@redhat.com>
7687
7688 * record-full.c (record_full_beneath_to_resume_ops)
7689 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7690 (record_full_beneath_to_wait)
7691 (record_full_beneath_to_store_registers_ops)
7692 (record_full_beneath_to_store_registers)
7693 (record_full_beneath_to_xfer_partial_ops)
7694 (record_full_beneath_to_xfer_partial)
7695 (record_full_beneath_to_insert_breakpoint_ops)
7696 (record_full_beneath_to_insert_breakpoint)
7697 (record_full_beneath_to_remove_breakpoint_ops)
7698 (record_full_beneath_to_remove_breakpoint)
7699 (record_full_beneath_to_stopped_by_watchpoint)
7700 (record_full_beneath_to_stopped_data_address)
7701 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7702 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7703 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7704 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7705 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7706 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7707 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7708 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7709 (record_full_resume, record_full_wait_1)
7710 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7711 (record_full_store_registers, record_full_xfer_partial)
7712 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7713 (record_full_async, record_full_core_xfer_partial): Use target
7714 delegation.
7715 * target-delegates.c: Rebuild.
7716 * target.c (current_xfer_partial): Remove.
7717 (update_current_target): Do not INHERIT or de_fault
7718 to_insert_breakpoint, to_remove_breakpoint,
7719 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7720 to_is_async_p, to_async. Do not set to_xfer_partial field.
7721 (default_xfer_partial): Simplify.
7722 (current_xfer_partial): Remove.
7723 (target_wait, target_resume): Simplify.
7724 (find_default_can_async_p, find_default_is_async_p): Update.
7725 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7726 to_xfer_partial, to_stopped_by_watchpoint,
7727 to_stopped_data_address.
7728 (target_store_registers): Simplify.
7729 (forward_target_remove_breakpoint)
7730 (forward_target_insert_breakpoint): Remove.
7731 (target_remove_breakpoint, target_insert_breakpoint)
7732 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7733 * target.h (struct target_ops) <to_resume, to_wait,
7734 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7735 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7736 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7737 markup.
7738 (forward_target_remove_breakpoint)
7739 (forward_target_insert_breakpoint): Remove.
7740 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7741 directly.
7742 (record_btrace_insert_breakpoint): Delegate directly.
7743
1101cb7b
TT
77442014-02-19 Tom Tromey <tromey@redhat.com>
7745
7746 PR build/7701:
7747 * target-delegates.c: New file.
7748 * target.c: Include target-delegates.c.
7749 (init_dummy_target): Call install_dummy_methods.
7750 (complete_target_initialization): Call install_delegators.
7751 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7752 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7753 * make-target-delegates: New file.
7754
8b06beed
TT
77552014-02-19 Tom Tromey <tromey@redhat.com>
7756
7757 * record.c (find_record_target): Use find_target_at.
7758 * target.c (find_target_at): New function.
7759 * target.h (find_target_at): Declare.
7760
6a109b6b
TT
77612014-02-19 Tom Tromey <tromey@redhat.com>
7762
7763 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7764 Add 'ops' argument.
7765 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7766 'ops' argument.
7767 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7768 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7769 'ops' argument.
7770 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7771 argument.
7772 * linux-nat.c (save_sigtrap): Update.
7773 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7774 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7775 (linux_nat_close): Update.
7776 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7777 argument.
7778 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7779 argument.
7780 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7781 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7782 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7783 (tmp_to_async): Add 'ops' argument.
7784 (record_full_stopped_by_watchpoint, record_full_async)
7785 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7786 argument.
7787 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7788 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7789 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7790 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7791 (remote_is_async_p, remote_async): Add 'ops' argument.
7792 (remote_stopped_data_address): Update.
7793 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7794 * target.c (update_current_target)
7795 (find_default_can_async_p, find_default_is_async_p): Update.
7796 (init_dummy_target): Update.
7797 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7798 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7799 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7800 (target_can_async_p, target_is_async_p, target_async)
7801 (target_stopped_by_watchpoint): Update.
7802
e095146b
YQ
78032014-02-19 Yao Qi <yao@codesourcery.com>
7804
7805 PR gdb/16220
7806 * gdbarch.sh: Remove startup_gdbarch.
7807 * gdbarch.c: Regenerated.
7808 * gdbarch.h: Likewise.
7809
bc3c6b36
KB
78102014-02-17 Kevin Buettner <kevinb@redhat.com>
7811
7812 * rl78-tdep.c (rl78_g10_register_name): New function.
7813 (rl78_return_value): Add g10 support.
7814 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7815 g10.
7816
98dc0167 78172014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
7818
7819 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7820 (SUBDIR_GUILE_SRCS): Ditto.
7821 (scm-gsmob.o): Ditto.
7822
842c05cd
YQ
78232014-02-17 Yao Qi <yao@codesourcery.com>
7824
7825 * gnu-nat.c (ILL_RPC): Declare defined function.
7826
25c0bd04
YQ
78272014-02-17 Yao Qi <yao@codesourcery.com>
7828
7829 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7830 mach_msg_type_number_t.
7831 (gnu_write_inferior): Likewise.
7832
a9a758e3
YQ
78332014-02-17 Yao Qi <yao@codesourcery.com>
7834
7835 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7836 in format string.
7837 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7838 (inf_validate_procs, inf_signal): Likewise.
7839 (S_exception_raise_request): Likewise.
7840 (do_mach_notify_dead_name): Likewise.
7841 (steal_exc_port): Likewise.
7842 (gnu_read_inferior): Change 'copy_count''s type to
7843 mach_msg_type_number_t.
7844 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7845 format string.
7846
bae8023e
TS
78472014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7848
c82f56d9
TS
7849 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7850 flag. Adjust all users; in particular...
7851 (gnu_wait): ..., don't decrement its value in here...
7852 (gnu_create_inferior): ..., and instead set the flag in here,
7853 around the startup_inferior call, and call that one with
7854 START_INFERIOR_TRAPS_EXPECTED.
7855
3398af6a
TS
7856 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7857 (ILL_RPC): ... new macro.
7858 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7859 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7860 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7861 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7862 functions with ILL_RPC macro.
7863 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7864 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7865 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7866 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7867 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7868 (S_proc_getlogin_reply, S_proc_getsid_reply)
7869 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7870 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7871 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7872 (S_proc_getnports_reply, S_proc_is_important_reply)
7873 (S_proc_get_code_reply): New stub functions, generated with
7874 ILL_RPC macro.
7875
d47642c9
TS
7876 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7877 collected the type check structures.
7878
bae8023e
TS
7879 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7880
8a55ffb0
DE
78812014-02-14 Doug Evans <dje@google.com>
7882
7883 * target.c (target_write_partial): Fix result type.
7884
c2853f3d
JM
78852014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7886
7887 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7888 the proper offsets to access fpregset_t.
7889
ac61d2db
SA
78902014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7891
7892 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7893 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7894 * h8300-tdep.c (setmachinelist): Remove global.
7895 * hppa-tdep.c (hppa_sigtramp): Remove global.
7896 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7897 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7898 * ravenscar-thread.c (update_target_observer): Remove global.
7899 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7900
9d2d0b8b
TT
79012014-02-12 Tom Tromey <tromey@redhat.com>
7902
7903 * common/rsp-low.c: Update comments.
7904 * common/rsp-low.h: Update comments.
7905
a7191e8b
TT
79062014-02-12 Tom Tromey <tromey@redhat.com>
7907
7908 * common/rsp-low.c (convert_ascii_to_int): Remove.
7909 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7910
ff0e980e
TT
79112014-02-12 Tom Tromey <tromey@redhat.com>
7912
7913 * common/rsp-low.h (unhexify): Don't declare.
7914 * common/rsp-low.c (unhexify): Remove.
7915
e9371aff
TT
79162014-02-12 Tom Tromey <tromey@redhat.com>
7917
7918 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7919 * common/rsp-low.c (convert_int_to_ascii): Remove.
7920
971dc0b8
TT
79212014-02-12 Tom Tromey <tromey@redhat.com>
7922
7923 * common/rsp-low.h (hexify): Don't declare.
7924 * common/rsp-low.c (hexify): Remove.
7925
0a822afb
TT
79262014-02-12 Tom Tromey <tromey@redhat.com>
7927
7928 * common/rsp-low.c (hexify): Never take strlen of argument.
7929
9f1b45b0
TT
79302014-02-12 Tom Tromey <tromey@redhat.com>
7931
7932 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7933 * remote.c (extended_remote_run, remote_rcmd)
7934 (remote_download_trace_state_variable, remote_save_trace_data)
7935 (remote_set_trace_notes): Update.
7936 * tracepoint.c (encode_source_string, tfile_write_status)
7937 (tfile_write_uploaded_tsv): Update.
7938
9c3d6531
TT
79392014-02-12 Tom Tromey <tromey@redhat.com>
7940
7941 * tracepoint.c: Include rsp-low.h.
7942 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7943 * remote.c: Include rsp-low.h.
7944 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7945 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7946 (remote_unescape_input): Move to common/rsp-low.c.
7947 * common/rsp-low.h: New file.
7948 * common/rsp-low.c: New file.
7949 * Makefile.in (SFILES): Add common/rsp-low.c.
7950 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7951 (COMMON_OBS): Add rsp-low.o.
7952 (rsp-low.o): New target.
7953
01fd3ea5
TT
79542014-02-12 Tom Tromey <tromey@redhat.com>
7955
7956 * utils.h: Include print-utils.h.
7957 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7958 (int_string, core_addr_to_string, core_addr_to_string_nz)
7959 (hex_string, hex_string_custom): Don't declare.
7960 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7961 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7962 (hex_string_custom, int_string, core_addr_to_string)
7963 (core_addr_to_string_nz, host_address_to_string): Move to
7964 common/print-utils.c.
7965 * common/print-utils.h: New file.
7966 * common/print-utils.c: New file
7967 * Makefile.in (SFILES): Add common/print-utils.c.
7968 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7969 (COMMON_OBS): Add print-utils.o.
7970 (print-utils.o): New target.
7971
9fb50108
TT
79722014-02-12 Tom Tromey <tromey@redhat.com>
7973
7974 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7975
0548b5db
MK
79762014-02-12 Mark Kettenis <kettenis@gnu.org>
7977
7978 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7979
493443a4
MK
79802014-02-12 Mark Kettenis <kettenis@gnu.org>
7981
7982 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7983 if a PT_IO ptrace request returns sucessfully but indicates that 0
7984 bytes were transferred.
7985
706d0883
PA
79862014-02-12 Pedro Alves <palves@redhat.com>
7987 Kevin Buettner <kevinb@redhat.com>
7988
7989 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7990 TYPE_INSTANCE_FLAG_CODE_SPACE.
7991
5caa2f0b
PA
79922014-02-12 Pedro Alves <palves@redhat.com>
7993
7994 * h8300-tdep.c (pseudo_from_raw_register)
7995 (raw_from_pseudo_register): New functions.
7996 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7997 them.
7998
76fd5f74
PA
79992014-02-12 Pedro Alves <palves@redhat.com>
8000
8001 * h8300-tdep.c (h8300_register_sim_regno): New function.
8002 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8003 gdbarch_register_sim_regno hook.
8004
8f008406
SA
80052014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8006
8007 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8008
195abc10
SA
80092014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8010
8011 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8012
93ffa5b9
MK
80132014-02-12 Mark Kettenis <kettenis@gnu.org>
8014
8015 * obsd-tdep.h (obsd_init_abi): New prototype.
8016 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8017 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8018 (obsd_init_abi): New functions.
8019 * i386obsd-tdep.c: Include "obsd-tdep.h".
8020 (i386obsd_init_abi): Call obsd_init_abi.
8021 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8022 (amd64obsd_init_abi): Call obsd_init_abi.
8023 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8024 obsd-tdep.c to gdb_target_obs.
8025
49caec94
JM
80262014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8027
8028 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8029 double float arguments to 16-byte in the argument slots.
8030
e1402065
DE
80312014-02-11 Doug Evans <xdje42@gmail.com>
8032
8033 * configure.ac: Don't crash if pkg-config is not found and guile
8034 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8035 in guile checks.
8036 * configure: Regenerate.
8037
edcc890f
YQ
80382014-02-11 Yao Qi <yao@codesourcery.com>
8039
8040 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8041 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8042 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8043 * gnu-nat.c (gnu_xfer_memory): Likewise.
8044 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8045 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8046 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8047 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8048
9b409511
YQ
80492014-02-11 Yao Qi <yao@codesourcery.com>
8050
8051 * target.h (enum target_xfer_error): Rename to ...
8052 (enum target_xfer_status): ... it. New. All users updated.
8053 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8054 New.
8055 (TARGET_XFER_STATUS_ERROR_P): New macro.
8056 (target_xfer_error_to_string): Remove declaration.
8057 (target_xfer_status_to_string): Declare.
8058 (target_xfer_partial_ftype): Adjust it.
8059 (struct target_ops) <to_xfer_partial>: Return
8060 target_xfer_status. Add argument xfered_len. Update
8061 comments.
8062 * target.c (target_xfer_error_to_string): Rename to ...
8063 (target_xfer_status_to_string): ... it. New. All callers
8064 updated.
8065 (target_read_live_memory): Likewise. Call target_xfer_partial
8066 instead of target_read.
8067 (memory_xfer_live_readonly_partial): Return
8068 target_xfer_status. Add argument xfered_len.
8069 (raw_memory_xfer_partial): Likewise.
8070 (memory_xfer_partial_1): Likewise.
8071 (memory_xfer_partial): Likewise.
8072 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8073 properly. Update debug message.
8074 (default_xfer_partial, current_xfer_partial): Likewise.
8075 (target_write_partial): Likewise.
8076 (target_read_partial): Likewise. All callers updated.
8077 (read_whatever_is_readable): Likewise.
8078 (target_write_with_progress): Likewise.
8079 (target_read_alloc_1): Likewise.
8080
8081 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8082 * auxv.c (procfs_xfer_auxv): Likewise.
8083 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8084 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8085 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8086 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8087 * corefile.c (read_memory): Adjust.
8088 * corelow.c (core_xfer_partial): Likewise.
8089 * ctf.c (ctf_xfer_partial): Likewise.
8090 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8091 updated.
8092 (darwin_xfer_partial): Likewise.
8093 * exec.c (section_table_xfer_memory_partial): Likewise. All
8094 callers updated.
8095 (exec_xfer_partial): Likewise.
8096 * exec.h (section_table_xfer_memory_partial): Update
8097 declaration.
8098 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8099 negative.
8100 (gnu_xfer_partial): Likewise.
8101 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8102 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8103 (ia64_hpux_xfer_solib_got): Likewise.
8104 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8105 type of 'partial_len' to ULONGEST.
8106 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8107 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8108 (linux_nat_xfer_partial): Likewise.
8109 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8110 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8111 * monitor.c (monitor_xfer_memory): Likewise.
8112 (monitor_xfer_partial): Likewise.
8113 * procfs.c (procfs_xfer_partial): Likewise.
8114 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8115 * record-full.c (record_full_xfer_partial): Likewise.
8116 (record_full_core_xfer_partial): Likewise.
8117 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8118 (gdbsim_xfer_partial): Likewise.
8119 * remote.c (remote_write_bytes_aux): Likewise. All callers
8120 updated.
8121 (remote_write_bytes, remote_read_bytes): Likewise. All
8122 callers updated.
8123 (remote_flash_erase): Likewise. All callers updated.
8124 (remote_write_qxfer): Likewise. All callers updated.
8125 (remote_read_qxfer): Likewise. All callers updated.
8126 (remote_xfer_partial): Likewise.
8127 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8128 (rs6000_xfer_shared_libraries): Likewise.
8129 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8130 (sol_thread_xfer_partial): Likewise.
8131 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8132 (sparc_xfer_partial): Likewise.
8133 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8134 updated.
8135 (spu_xfer_partial): Likewise.
8136 * spu-multiarch.c (spu_xfer_partial): Likewise.
8137 * tracepoint.c (tfile_xfer_partial): Likewise.
8138 * windows-nat.c (windows_xfer_memory): Likewise.
8139 (windows_xfer_shared_libraries): Likewise.
8140 (windows_xfer_partial): Likewise.
8141 * valprint.c: Replace 'target_xfer_error' with
8142 'target_xfer_status' in comments.
8143
a8e63083
JB
81442014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8145
8146 Checked in by Joel Brobecker <brobecker@adacore.com>.
8147 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8148
e86b67d3
JB
81492014-02-11 Joel Brobecker <brobecker@adacore.com>
8150
8151 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8152 function parameters.
8153
4b7d1f7f
WN
81542014-02-10 Will Newton <will.newton@linaro.org>
8155
8156 * elfread.c (elf_rel_plt_read): Look for a .got section if
8157 looking up .got.plt fails.
8158 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8159 on address passed to elf_gnu_ifunc_record_cache.
8160 (elf_gnu_ifunc_resolve_addr): Likewise.
8161 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8162
961842b2
JM
81632014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8164
8165 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8166 (X_RETTURN): New macro.
8167 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8168
8169 * sparc64-tdep.c (sparc64_init_abi): Hook
8170 sparc_in_function_epilogue_p.
8171
3f03e7b1
GB
81722014-02-10 Gary Benson <gbenson@redhat.com>
8173
8174 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8175 Rename name_matcher to symbol_matcher.
8176
96f861ef
GB
81772014-02-10 Gary Benson <gbenson@redhat.com>
8178
8179 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8180 Use expand_symtabs_file_matcher_ftype and
8181 expand_symtabs_symbol_matcher_ftype.
8182
ee01b665
JB
81832014-02-10 Joel Brobecker <brobecker@adacore.com>
8184
8185 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8186 (struct ada_symbol_cache): New.
8187 (ada_free_symbol_cache): Forward declare.
8188 (struct ada_pspace_data): New.
8189 (ada_pspace_data_handle): New static global.
8190 (get_ada_pspace_data, ada_pspace_data_cleanup)
8191 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8192 (cache_space, cache): Delete, now folded inside struct
8193 ada_pspace_data.
8194 (ada_get_symbol_cache): New function.
8195 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8196 implementation.
8197 (_initialize_ada_language): Remove initialization of cache_space.
8198 Move call to observer_attach_inferior_exit up, grouping it
8199 with the other observer registrations inside this function.
8200 Rename command to be more general. Add call to
8201 register_program_space_data_with_cleanup.
8202
143adbbf
JB
82032014-02-10 Joel Brobecker <brobecker@adacore.com>
8204
8205 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8206 ada_new_objfile_observer.
8207 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8208 (_initialize_tasks): Update uses of ada_new_objfile_observer
8209 and ada_tasks_normal_stop_observer.
8210
aa4fb036
JB
82112014-02-10 Joel Brobecker <brobecker@adacore.com>
8212
8213 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8214 returned by the 'Length attribute to integer.
8215
9dee8cc6
JB
82162014-02-10 Joel Brobecker <brobecker@adacore.com>
8217
8218 * ada-lang.c (_initialize_ada_language): Initialize
8219 cache_space obstack.
8220
3d9434b5
JB
82212014-02-10 Joel Brobecker <brobecker@adacore.com>
8222
8223 * ada-lang.c (HASH_SIZE): New macro.
8224 (struct cache_entry): New type.
8225 (cache_space, cache): New static globals.
8226 (ada_clear_symbol_cache, find_entry): New functions.
8227 (lookup_cached_symbol, cache_symbol): Implement.
8228 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8229 (_initialize_ada_language): Attach ada_new_objfile_observer
8230 and ada_free_objfile_observer.
8231
f0c5f9b2
JB
82322014-02-10 Joel Brobecker <brobecker@adacore.com>
8233
8234 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8235 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8236 struct block * parameter.
8237 (ada_lookup_symbol_list_worker): Constify local variable "block".
8238 Remove cast which is no longer necessary.
8239
ed3ef339
DE
82402014-02-10 Doug Evans <xdje42@gmail.com>
8241
8242 Add Guile as an extension language.
8243 * NEWS: Mention Guile scripting.
8244 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8245 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8246 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8247 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8248 (CLIBS): Add GUILE_LIBS.
8249 (install-guile): New rule.
8250 (guile.o): New rule.
8251 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8252 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8253 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8254 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8255 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8256 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8257 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8258 * configure.ac: New option --with-guile.
8259 * configure: Regenerate.
8260 * config.in: Regenerate.
8261 * auto-load.c: Remove #include "python/python.h". Add #include
8262 "gdb/section-scripts.h".
8263 (source_section_scripts): Handle Guile scripts.
8264 (_initialize_auto_load): Add name of Guile objfile script to
8265 scripts-directory help text.
8266 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8267 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8268 (struct breakpoint): New member scm_bp_object.
8269 * defs.h (enum command_control_type): New value guile_control.
8270 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8271 "extension.h".
8272 (show_user): Update comment.
8273 (_initialize_cli_cmds): Update help text for "show user". Update help
8274 text for max-user-call-depth.
8275 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8276 "extension.h".
8277 (multi_line_command_p): Add guile_control.
8278 (print_command_lines): Handle guile_control.
8279 (execute_control_command, recurse_read_control_structure): Ditto.
8280 (process_next_line): Recognize "guile" commands.
8281 * disasm.c (gdb_disassemble_info): Make non-static.
8282 * disasm.h: #include "dis-asm.h".
8283 (struct gdbarch): Add forward decl.
8284 (gdb_disassemble_info): Declare.
8285 * extension.c: #include "guile/guile.h".
8286 (extension_languages): Add guile.
8287 (get_ext_lang_defn): Handle EXT_LANG_GDB.
8288 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
8289 * gdbtypes.c (get_unsigned_type_max): New function.
8290 (get_signed_type_minmax): New function.
8291 * gdbtypes.h (get_unsigned_type_max): Declare.
8292 (get_signed_type_minmax): Declare.
8293 * guile/README: New file.
8294 * guile/guile-internal.h: New file.
8295 * guile/guile.c: New file.
8296 * guile/guile.h: New file.
8297 * guile/scm-arch.c: New file.
8298 * guile/scm-auto-load.c: New file.
8299 * guile/scm-block.c: New file.
8300 * guile/scm-breakpoint.c: New file.
8301 * guile/scm-disasm.c: New file.
8302 * guile/scm-exception.c: New file.
8303 * guile/scm-frame.c: New file.
8304 * guile/scm-gsmob.c: New file.
8305 * guile/scm-iterator.c: New file.
8306 * guile/scm-lazy-string.c: New file.
8307 * guile/scm-math.c: New file.
8308 * guile/scm-objfile.c: New file.
8309 * guile/scm-ports.c: New file.
8310 * guile/scm-pretty-print.c: New file.
8311 * guile/scm-safe-call.c: New file.
8312 * guile/scm-string.c: New file.
8313 * guile/scm-symbol.c: New file.
8314 * guile/scm-symtab.c: New file.
8315 * guile/scm-type.c: New file.
8316 * guile/scm-utils.c: New file.
8317 * guile/scm-value.c: New file.
8318 * guile/lib/gdb.scm: New file.
8319 * guile/lib/gdb/boot.scm: New file.
8320 * guile/lib/gdb/experimental.scm: New file.
8321 * guile/lib/gdb/init.scm: New file.
8322 * guile/lib/gdb/iterator.scm: New file.
8323 * guile/lib/gdb/printing.scm: New file.
8324 * guile/lib/gdb/types.scm: New file.
8325 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
8326 (VPATH): Add $(GUILE_SRCDIR).
8327 (GUILE_DIR): New variable.
8328 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
8329 (all): Add stamp-guile dependency.
8330 (stamp-guile): New rule.
8331 (clean-guile, install-guile, uninstall-guile): New rules.
8332 (install-only): Add install-guile dependency.
8333 (uninstall): Add uninstall-guile dependency.
8334 (clean): Add clean-guile dependency.
8335
ac020ec5
DE
83362014-02-09 Doug Evans <xdje42@gmail.com>
8337
8338 Revert this patch (which I approved, mea culpa).
8339
8340 2014-02-08 Mark Kettenis <kettenis@gnu.org>
8341
8342 * Makefile.in (all-lib): Remove.
8343 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8344
2a081c59
JK
83452014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8346
8347 Fix Python stack corruption.
8348 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
8349 gdb_py_longest.
8350
0a6bd22d
MK
83512014-02-08 Mark Kettenis <kettenis@gnu.org>
8352
8353 * Makefile.in (all-lib): Remove.
8354 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
8355
1a860409
DE
83562014-02-07 Doug Evans <dje@google.com>
8357
8358 * extension-priv.h (extension_language_script_ops): Add comment.
8359 (extension_language_ops): Add comment.
caf5a491 8360 (active_ext_lang_state): Fix typo in comment.
1a860409 8361
d137e6dc
PA
83622014-02-07 Pedro Alves <palves@redhat.com>
8363
0dcb32c3 8364 PR breakpoints/16292
d137e6dc
PA
8365 * infrun.c (handle_signal_stop) <signal arrives while stepping
8366 over a breakpoint>: Switch back to the stepping thread.
8367
ce6d0892
YQ
83682014-02-07 Yao Qi <yao@codesourcery.com>
8369
8370 * target.c (target_xfer_partial): Return zero if LEN is zero.
8371
2ed4b548
YQ
83722014-02-07 Yao Qi <yao@codesourcery.com>
8373
8374 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
8375 (ld_so_xfer_auxv): Likewise.
8376 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8377 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8378 * corelow.c (core_xfer_partial): Likewise.
8379 * ctf.c (ctf_xfer_partial): Likewise.
8380 * darwin-nat.c (darwin_read_dyld_info): Likewise.
8381 (darwin_xfer_partial): Likewise.
8382 * exec.c (exec_xfer_partial): Likewise.
8383 * gnu-nat.c (gnu_xfer_partial): Likewise.
8384 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
8385 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8386 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8387 * linux-nat.c (linux_xfer_siginfo): Likewise.
8388 (linux_proc_xfer_spu): Likewise.
8389 * procfs.c (procfs_xfer_partial): Likewise.
8390 * record-full.c (record_full_xfer_partial): Likewise.
8391 (record_full_core_xfer_partial): Likewise.
8392 * remote-sim.c (gdbsim_xfer_partial): Likewise.
8393 * remote.c (remote_write_qxfer): Likewise.
8394 (remote_write_qxfer, remote_read_qxfer): Likewise.
8395 (remote_xfer_partial): Likewise.
8396 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8397 (rs6000_xfer_shared_libraries): Likewise.
8398 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8399 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8400 (spu_xfer_partial): Likewise.
8401 * target.c (memory_xfer_partial_1): Likewise.
8402 * tracepoint.c (tfile_xfer_partial): Likewise.
8403 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
8404 (windows_xfer_partial): Likewise.
8405
c09f20e4
YQ
84062014-02-07 Yao Qi <yao@codesourcery.com>
8407
8408 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
8409 comments.
8410 (core_xfer_shared_libraries_aix): Likewise.
8411 * gdbarch.c, gdbarch.h: Regenerated.
8412 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
8413 ULONGEST. Change 'len_avail' type to ULONGEST.
8414 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8415 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8416 declaration.
8417 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
8418
8635b3bf
YQ
84192014-02-07 Yao Qi <yao@codesourcery.com>
8420
8421 * corefile.c (memory_error): Get 'exception' from ERR and pass
8422 'exception' to throw_error.
8423
6dddc817
DE
84242014-02-06 Doug Evans <xdje42@gmail.com>
8425
8426 * configure.ac (libpython checking): Remove all but python.o from
8427 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
8428 * configure: Regenerate.
8429
8430 * Makefile.in (SFILES): Add extension.c.
8431 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
8432 (COMMON_OBS): Add extension.o.
8433 * extension.h: New file.
8434 * extension-priv.h: New file.
8435 * extension.c: New file.
8436
8437 * python/python-internal.h: #include "extension.h".
8438 (gdbpy_auto_load_enabled): Declare.
8439 (gdbpy_apply_val_pretty_printer): Declare.
8440 (gdbpy_apply_frame_filter): Declare.
8441 (gdbpy_preserve_values): Declare.
8442 (gdbpy_breakpoint_cond_says_stop): Declare.
8443 (gdbpy_breakpoint_has_cond): Declare.
8444 (void source_python_script_for_objfile): Delete.
8445 * python/python.c: #include "extension-priv.h".
8446 Delete inclusion of "observer.h".
8447 (extension_language_python): Moved here and renamed from
8448 script_language_python in py-auto-load.c.
8449 Redefined to be of type extension_language_defn.
8450 (python_extension_script_ops): New global.
8451 (python_extension_ops): New global.
8452 (struct python_env): New member previous_active.
8453 (restore_python_env): Call restore_active_ext_lang.
8454 (ensure_python_env): Call set_active_ext_lang.
8455 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
8456 New arg extlang.
8457 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
8458 New arg extlang.
8459 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
8460 New arg extlang.
8461 (gdbpy_eval_from_control_command): Renamed from
8462 eval_python_from_control_command, made static. New arg extlang.
8463 (gdbpy_source_script) Renamed from source_python_script, made static.
8464 New arg extlang.
8465 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
8466 result to int. New arg extlang.
8467 (gdbpy_source_objfile_script): Renamed from
8468 source_python_script_for_objfile, made static. New arg extlang.
8469 (gdbpy_start_type_printers): Renamed from start_type_printers, made
8470 static. New args extlang, extlang_printers. Change result type to
8471 "void".
8472 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
8473 static. New arg extlang. Rename arg printers to extlang_printers
8474 and change type to ext_lang_type_printers *.
8475 (gdbpy_free_type_printers): Renamed from free_type_printers, made
8476 static. Replace argument arg with extlang, extlang_printers.
8477 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
8478 (!HAVE_PYTHON, source_python_script): Delete.
8479 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
8480 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
8481 (!HAVE_PYTHON, start_type_printers): Delete.
8482 (!HAVE_PYTHON, apply_type_printers): Delete.
8483 (!HAVE_PYTHON, free_type_printers): Delete.
8484 (_initialize_python): Delete call to observer_attach_before_prompt.
8485 (finalize_python): Set/restore active extension language.
8486 (gdbpy_finish_initialization) Renamed from
8487 finish_python_initialization, made static. New arg extlang.
8488 (gdbpy_initialized): New function.
8489 * python/python.h: #include "extension.h". Delete #include
8490 "value.h", "mi/mi-cmds.h".
8491 (extension_language_python): Declare.
8492 (GDBPY_AUTO_FILE_NAME): Delete.
8493 (enum py_bt_status): Moved to extension.h and renamed to
8494 ext_lang_bt_status.
8495 (enum frame_filter_flags): Moved to extension.h.
8496 (enum py_frame_args): Moved to extension.h and renamed to
8497 ext_lang_frame_args.
8498 (finish_python_initialization): Delete.
8499 (eval_python_from_control_command): Delete.
8500 (source_python_script): Delete.
8501 (apply_val_pretty_printer): Delete.
8502 (apply_frame_filter): Delete.
8503 (preserve_python_values): Delete.
8504 (gdbpy_script_language_defn): Delete.
8505 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
8506 (start_type_printers, apply_type_printers, free_type_printers): Delete.
8507
8508 * auto-load.c: #include "extension.h".
8509 (GDB_AUTO_FILE_NAME): Delete.
8510 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
8511 (script_language_gdb): Delete, moved to extension.c and renamed to
8512 extension_language_gdb.
8513 (source_gdb_script_for_objfile): Delete.
8514 (auto_load_pspace_info): New member unsupported_script_warning_printed.
8515 (loaded_script): Change type of language member to
8516 struct extension_language_defn *.
8517 (init_loaded_scripts_info): Initialize
8518 unsupported_script_warning_printed.
8519 (maybe_add_script): Make static. Change type of language arg to
8520 struct extension_language_defn *.
8521 (clear_section_scripts): Reset unsupported_script_warning_printed.
8522 (auto_load_objfile_script_1): Rewrite to use extension language API.
8523 (auto_load_objfile_script): Make public. Remove support-compiled-in
8524 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
8525 (source_section_scripts): Rewrite to use extension language API.
8526 (load_auto_scripts_for_objfile): Rewrite to use
8527 auto_load_scripts_for_objfile.
8528 (collect_matching_scripts_data): Change type of language member to
8529 struct extension_language_defn *.
8530 (auto_load_info_scripts): Change type of language arg to
8531 struct extension_language_defn *.
8532 (unsupported_script_warning_print): New function.
8533 (script_not_found_warning_print): Make static.
8534 (_initialize_auto_load): Rewrite construction of scripts-directory
8535 help.
8536 * auto-load.h (struct objfile): Add forward decl.
8537 (struct script_language): Delete.
8538 (struct auto_load_pspace_info): Add forward decl.
8539 (struct extension_language_defn): Add forward decl.
8540 (maybe_add_script): Delete.
8541 (auto_load_objfile_script): Declare.
8542 (script_not_found_warning_print): Delete.
8543 (auto_load_info_scripts): Update prototype.
8544 (auto_load_gdb_scripts_enabled): Declare.
8545 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
8546 auto_load_python_scripts_enabled and made public.
8547 (script_language_python): Delete, moved to python.c.
8548 (gdbpy_script_language_defn): Delete.
8549 (info_auto_load_python_scripts): Update to use
8550 extension_language_python.
8551
8552 * breakpoint.c (condition_command): Replace call to
8553 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
8554 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
8555 with call to breakpoint_ext_lang_cond_says_stop.
8556 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
8557 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
8558 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
8559 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
8560 New arg slang.
8561 (local_setattro): Print name of extension language with existing
8562 stop condition.
8563
8564 * valprint.c (val_print, value_print): Update to call
8565 apply_ext_lang_val_pretty_printer.
8566 * cp-valprint.c (cp_print_value): Update call to
8567 apply_ext_lang_val_pretty_printer.
8568 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
8569 (gdbpy_apply_val_pretty_printer): Renamed from
8570 apply_val_pretty_printer. New arg extlang.
8571 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
8572
8573 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
8574 extension language API.
8575 * cli/cli-script.c (execute_control_command): Update to call
8576 eval_ext_lang_from_control_command.
8577
8578 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
8579 enum ext_lang_bt_status values. Update call to
8580 apply_ext_lang_frame_filter.
8581 (mi_cmd_stack_list_locals): Ditto.
8582 (mi_cmd_stack_list_args): Ditto.
8583 (mi_cmd_stack_list_variables): Ditto.
8584 * mi/mi-main.c: Delete #include "python/python-internal.h".
8585 Add #include "extension.h".
8586 (mi_cmd_list_features): Replace reference to python internal variable
8587 gdb_python_initialized with call to ext_lang_initialized_p.
8588
8589 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
8590 Update to use enum ext_lang_frame_args. Update to call
8591 apply_ext_lang_frame_filter.
8592 * python/py-framefilter.c (extract_sym): Update to use enum
8593 ext_lang_bt_status.
8594 (extract_value, py_print_type, py_print_value): Ditto.
8595 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
8596 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
8597 (py_print_frame): Ditto.
8598 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
8599 New arg extlang. Update to use enum ext_lang_bt_status.
8600
8601 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
8602 finish_python_initialization. Replace with call to
8603 finish_ext_lang_initialization.
8604
8605 * typeprint.c (do_free_global_table): Update to call
8606 free_ext_lang_type_printers.
8607 (create_global_typedef_table): Update to call
8608 start_ext_lang_type_printers.
8609 (find_global_typedef): Update to call apply_ext_lang_type_printers.
8610 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
8611 (type_print_options): Change type of global_printers from "void *"
8612 to "struct ext_lang_type_printers *".
8613
8614 * value.c (preserve_values): Update to call preserve_ext_lang_values.
8615 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
8616 (gdbpy_preserve_values): Renamed from preserve_python_values.
8617 New arg extlang.
8618 (!HAVE_PYTHON, preserve_python_values): Delete.
8619
8620 * utils.c (quit_flag): Delete, moved to extension.c.
8621 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
8622 extension.c.
8623
8624 * eval.c: Delete #include "python/python.h".
8625 * main.c: Delete #include "python/python.h".
8626
8627 * defs.h: Update comment.
8628
6af79985
JB
86292014-02-06 Joel Brobecker <brobecker@adacore.com>
8630
8631 GDB 7.7 released.
8632
12c5175d
MK
86332014-02-05 Mark Kettenis <kettenis@gnu.org>
8634
8635 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
8636 defined.
8637
8dc5b319
YQ
86382014-02-05 Yao Qi <yao@codesourcery.com>
8639
8640 * remote.c (remote_pass_signals): Remove local 'buf' and use
8641 rs->buf.
8642 (remote_program_signals): Likewise.
8643
de7b2893
YQ
86442014-02-05 Yao Qi <yao@codesourcery.com>
8645
8646 * ctf.c: Include "inferior.h" and "gdbthread.h".
8647 (CTF_PID): A new macro.
8648 (ctf_open): Call inferior_appeared and add_thread_silent.
8649 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
8650 (ctf_thread_alive): New function.
8651 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
8652
66d032ac
YQ
86532014-02-05 Yao Qi <yao@codesourcery.com>
8654
8655 Revert this patch:
8656
8657 2013-05-24 Yao Qi <yao@codesourcery.com>
8658
8659 * tracepoint.c (TFILE_PID): Remove.
8660 (tfile_open): Don't add thread and inferior.
8661 (tfile_close): Don't set 'inferior_ptid'. Don't call
8662 exit_inferior_silent.
8663 (tfile_thread_alive): Remove.
8664 (init_tfile_ops): Don't set field 'to_thread_alive' of
8665 tfile_ops.
8666
f4ccffad
CE
86672014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8668
8669 * remote.c (remote_start_remote): Call remote_check_symbols even
8670 if only symbol-file (not file) has been given.
8671
591a12a1
UW
86722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8673
8674 * gdbarch.sh (skip_entrypoint): New callback.
8675 * gdbarch.c, gdbarch.h: Regenerate.
8676 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8677 * infrun.c (fill_in_stop_func): Likewise.
8678 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8679 (ppc_elfv2_elf_make_msymbol_special): New function.
8680 (ppc_elfv2_skip_entrypoint): Likewise.
8681 (ppc_linux_init_abi): Install them for ELFv2.
8682
cc0e89c5
UW
86832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8684
8685 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8686 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8687 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8688 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8689 structures returned in GPRs.
8690
52f548e4
UW
86912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8692
8693 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8694 offset to the stack parameter list for the ELFv2 ABI.
8695
d4094b6a
UW
86962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8697
8698 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8699 set_gdbarch_convert_from_func_ptr_addr and
8700 set_gdbarch_elf_make_msymbol_special for ELFv1.
8701 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8702 function descriptors on ELFv1.
8703 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8704 set up r12 at function entry.
8705
cd453cd0
UW
87062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8707
8708 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8709 (struct gdbarch_tdep): New member elf_abi.
8710
8711 * rs6000-tdep.c: Include "elf/ppc64.h".
8712 (rs6000_gdbarch_init): Detect ELF ABI version.
8713
0ff3e01f
UW
87142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8715
8716 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8717 within a register pair holding a DFP 128-bit value on little-endian.
8718 (ppc64_sysv_abi_return_value_base): Likewise.
8719 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8720 (dfp_pseudo_register_write): Likewise.
8721
5b757e5d
UW
87222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8723
8724 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8725 offset on little-endian when passing _Decimal32.
8726 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8727
084ee545
UW
87282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8729
8730 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8731 of the overlapped FP register within the VSX register on little-
8732 endian platforms.
8733 (efpr_pseudo_register_write): Likewise.
8734
d63167af
UW
87352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8736
8737 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8738 offset on little-endian when passing small structures.
8739
e765b44c
UW
87402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8741
8742 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8743 (struct ppc64_sysv_argpos): New data structure.
8744 (ppc64_sysv_abi_push_float): Remove.
8745 (ppc64_sysv_abi_push_val): New function.
8746 (ppc64_sysv_abi_push_integer): Likewise.
8747 (ppc64_sysv_abi_push_freg): Likewise.
8748 (ppc64_sysv_abi_push_vreg): Likewise.
8749 (ppc64_sysv_abi_push_param): Likewise.
8750 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8751 (ppc64_sysv_abi_return_value_base): New function.
8752 (ppc64_sysv_abi_return_value): Refactor to use it.
8753
36c24d95
UW
87542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8755
8756 * NEWS: Document new target powerpc64le-*-linux*.
8757
26fd9228
MK
87582014-02-04 Mark Kettenis <kettenis@gnu.org>
8759
8760 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8761 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8762 core dumps.
8763 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8764 register set used in ELF core dumps. Add floating-point register set.
8765
c5bb7362
KB
87662014-02-03 Kevin Buettner <kevinb@redhat.com>
8767
8768 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8769 dwarf2_to_gdb[] table using symbolic constants. Adjust
8770 penultimate entry from number representing the PC register
8771 to symbolic constant representing the MDR register. Add
8772 constant for the PC register to the end of the table.
8773
af09351e
MK
87742014-02-03 Mark Kettenis <kettenis@gnu.org>
8775
8776 * bsd-kvm.c: Include <sys/param.h>
8777
8507e05d
MK
87782014-02-03 Mark Kettenis <kettenis@gnu.org>
8779
8780 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8781
ae56bfb8
JB
87822014-01-31 Joel Brobecker <brobecker@adacore.com>
8783
8784 * ada-lang.h (clear_ada_sym_cache): Delete.
8785
718ee4dc
UW
87862014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
8787
8788 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8789
401e27fd
JM
87902014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8791
8792 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8793 the sigreturn register save area only if the syscall is
8794 sigreturn.
8795
a7c88acd
JB
87962014-01-29 Joel Brobecker <brobecker@adacore.com>
8797
8798 * valops.c (value_slice): Minor reformatting.
8799
fa0079ea
UW
88002014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
8801
8802 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8803
c6044dd1
JB
88042014-01-28 Joel Brobecker <brobecker@adacore.com>
8805
8806 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8807 New static globals.
8808 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8809 (ada_ignore_descriptive_types_p): New static global.
8810 (find_parallel_type_by_descriptive_type): Return immediately
8811 if ada_ignore_descriptive_types_p is set.
8812 (_initialize_ada_language): Register new commands "maintenance
8813 set ada", "maintenance show ada", "maintenance set ada
8814 ignore-descriptive-types" and "maintenance show ada
8815 ignore-descriptive-types".
8816 * NEWS: Add entry for new "maint ada set/show
8817 ignore-descriptive-types" commands.
8818
568e808b
MM
88192014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8820
8821 * record-btrace.c (record_btrace_close): Call btrace_teardown
8822 for all threads.
8823
467d141b
JB
88242014-01-27 Joel Brobecker <brobecker@adacore.com>
8825
8826 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8827 "ui-out.h".
8828
fb151210
JB
88292014-01-27 Joel Brobecker <brobecker@adacore.com>
8830
8831 * ada-typeprint (type_is_full_subrange_of_target_type):
8832 New function.
8833 (print_range): Add parameter bounds_prefered_p. If not set,
8834 try printing range types using the name of their base type.
8835 (print_range_type): Add parameter bounds_prefered_p.
8836 Use it in call to print_range.
8837 (print_array_type, ada_print_type): Update calls to print_range
8838 and print_range_type.
8839
aba02109
JB
88402014-01-27 Joel Brobecker <brobecker@adacore.com>
8841
8842 * ada-typeprint.c (print_array_type, print_choices, print_range)
8843 (print_range_bound, print_dynamic_range_bound, print_range_type):
8844 Remove declaration.
8845
e62e21fd
JB
88462014-01-27 Joel Brobecker <brobecker@adacore.com>
8847
8848 * ada-typeprint.c (print_range): Add missing empty line
8849 after local declaration.
8850
859cf5d1
JB
88512014-01-27 Joel Brobecker <brobecker@adacore.com>
8852
8853 * ada-valprint.c (print_optional_low_bound): Get index_type's
8854 target type for as long as it is a TYPE_CODE_RANGE.
8855
25790f6f
JB
88562014-01-27 Joel Brobecker <brobecker@adacore.com>
8857
8858 * procfs.c (procfs_make_note_section): Remove assertion and
8859 associated comment.
8860
6b6aa828
YQ
88612014-01-24 Yao Qi <yao@codesourcery.com>
8862
8863 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8864 * corelow.c (get_core_siginfo): Likewise.
8865
5d6df423
YQ
88662014-01-24 Yao Qi <yao@codesourcery.com>
8867
8868 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8869 ULONGEST. Don't check 'len' is negative.
8870 (remote_write_bytes): Change type of 'len' to ULONGEST.
8871
83b645b8
TT
88722014-01-23 Tom Tromey <tromey@redhat.com>
8873
8874 PR python/16485:
8875 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8876 Handle exception from frame.block.
8877 (FrameVars.fetch_frame_locals): Likewise.
8878
0740f8d8
TT
88792014-01-23 Tom Tromey <tromey@redhat.com>
8880
8881 PR python/16487:
8882 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8883 on a NULL pointer. Move "goto error" to correct place.
8884
21909fa1
TT
88852014-01-23 Tom Tromey <tromey@redhat.com>
8886
8887 PR python/16491:
8888 * python/py-framefilter.c (apply_frame_filter): Call
8889 ensure_python_env after computing gdbarch.
8890
17fde6d0
YQ
88912014-01-23 Yao Qi <yao@codesourcery.com>
8892
8893 * target.c (raw_memory_xfer_partial): Change argument type
8894 from void * to gdb_byte *.
8895 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8896
87ce2a04
DE
88972014-01-22 Doug Evans <dje@google.com>
8898
8899 New gdbserver option --debug-format=timestamp.
8900 * NEWS: Mention it.
8901
237b092b
AA
89022014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8903
8904 * syscalls/s390x-linux.xml: New file.
8905 * syscalls/s390-linux.xml: New file.
8906 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8907 (XML_SYSCALL_FILENAME_S390X): Likewise.
8908 (op_svc): New enum value for SVC opcode.
8909 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8910 (s390_linux_get_syscall_number): New function.
8911 (s390_gdbarch_init): Register '*get_syscall_number' and the
8912 syscall xml file name.
8913 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8914 "s390-linux.xml" and "s390x-linux.xml".
8915 * NEWS: Announce new feature.
8916
54bff650
BS
89172014-01-22 Baruch Siach <baruch@tkos.co.il>
8918
8919 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8920
14e361d7
PA
89212014-01-22 Pedro Alves <palves@redhat.com>
8922
8923 * xtensa-config.c: Include defs.h.
8924
46bbb3ed
JB
89252014-01-22 Joel Brobecker <brobecker@adacore.com>
8926
8927 * common/common-utils.h: Add "ARI:" comment beside __func__
8928 reference.
8929
3a80edfc
JB
89302014-01-22 Joel Brobecker <brobecker@adacore.com>
8931
8932 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8933 documentation a bit.
8934
4869db5e
RM
89352014-01-21 Roland McGrath <mcgrathr@google.com>
8936
8937 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8938 * configure: Regenerate.
8939 * aclocal.m4: Regenerate.
8940 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8941 New substituted variables.
8942 (install-strip): New target.
8943 (INSTALL_SCRIPT): New substituted variable.
8944 (FLAGS_TO_PASS): Add it.
8945 (install-only): Use $(INSTALL_SCRIPT) rather than
8946 $(INSTALL_PROGRAM) for gcore.
8947
9ea4267d
TT
89482014-01-20 Tom Tromey <tromey@redhat.com>
8949
8950 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8951 together.
8952
1f2bdf09
TT
89532014-01-20 Tom Tromey <tromey@redhat.com>
8954
8955 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8956 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8957 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8958 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8959 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8960 (struct cmd_list_element) <flags>: Remove.
8961 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8962 doc_allocated>: New fields.
8963 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8964 bitfields.
8965 * maint.c (maintenance_do_deprecate): Update.
8966 * top.c (execute_command): Update.
8967
e671835b
BS
89682014-01-20 Baruch Siach <baruch@tkos.co.il>
8969
8970 * xtensa-linux-nat.c: Include asm/ptrace.h.
8971
50367cd2
IB
89722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8973
8974 * Makefile.in (SFILES): Add d-support.c.
8975 (COMMON_OBS): Add d-support.o.
8976 * d-lang.h (d_parse_symbol): Add comment, now defined in
8977 d-support.c.
8978 * d-lang.c (parse_call_convention)
8979 (parse_attributes, parse_function_types)
8980 (parse_function_args, parse_type, parse_identifier)
8981 (call_convention_p, d_parse_symbol): Move functions to ...
8982 * d-support.c: ... New file.
8983
ec9f644a
IB
89842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8985
8986 * d-lang.h (d_parse_symbol): Add declaration.
8987 * d-lang.c (extract_identifiers)
8988 (extract_type_info): Remove functions.
8989 (parse_call_convention, parse_attributes)
8990 (parse_function_types, parse_function_args)
8991 (parse_type, parse_identifier, call_convention_p)
8992 (d_parse_symbol): New functions.
8993 (d_demangle): Use d_parse_symbol to demangle D symbols.
8994
94b1b47e
IB
89952014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8996
8997 * d-lang.h (struct builtin_d_type): New data type.
8998 (builtin_d_type): Add declaration.
8999 * d-lang.c (d_language_arch_info, build_d_types)
9000 (builtin_d_type): New functions.
9001 (enum d_primitive_types): New data type.
9002 (d_language_defn): Change c_language_arch_info to
9003 d_language_arch_info.
9004 (d_type_data): New static variable.
9005 (_initialize_d_language): Initialize d_type_data.
9006
63778547
IB
90072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9008
9009 * d-lang.h (d_main_name): Add declaration.
9010 * d-lang.c (d_main_name): New function.
9011 * symtab.c (find_main_name): Add call to d_main_name.
9012
3271ba66
IB
90132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9014
9015 * d-lang.c (d_language_defn): Change macro_expansion_c to
9016 macro_expansion_no.
9017
d36b3012
IB
90182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9019
9020 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9021
c90a6fb7
SDJ
90222014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9023
9024 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9025 gdb_exception" declaration.
9026 * remote.c (getpkt_or_notif_sane): Likewise.
9027
749234e5
DE
90282014-01-17 Doug Evans <dje@google.com>
9029
9030 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9031 function, contents of dirnames_to_char_ptr_vec_append moved here.
9032 (delim_string_to_char_ptr_vec): New function.
9033 (dirnames_to_char_ptr_vec_append): Rewrite.
9034 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9035
df049a58
DE
90362014-01-17 Doug Evans <dje@google.com>
9037
9038 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9039 and moved here ...
9040 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9041 #include "common-utils.h".
9042 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9043 * common/vec.h (VEC_ASSERT_PASS): Update.
9044 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9045 (MACH_CHECK_ERROR): Update.
9046
69f97648
SM
90472014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9048
9049 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9050 comments.
9051 * gdbarch.h: Regenerate.
9052
98b1cfdc
TT
90532014-01-16 Tom Tromey <tromey@redhat.com>
9054
9055 * value.c (struct value) <regnum>: Move earlier.
9056
77a19445
TT
90572014-01-16 Tom Tromey <tromey@redhat.com>
9058
9059 * remote.c (extended_remote_create_inferior): Rename from
9060 extended_remote_create_inferior_1. Add "ops" argument. Remove
9061 old implementation.
9062
62261490
PA
90632014-01-16 Pedro Alves <palves@redhat.com>
9064
9065 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9066 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9067 the backchain.
9068
4d65956b
DE
90692014-01-16 Doug Evans <dje@google.com>
9070
9071 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9072
52834460
MM
90732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9074
9075 * btrace.h (btrace_thread_flag): New.
9076 (struct btrace_thread_info) <flags>: New.
9077 * record-btrace.c (record_btrace_resume_thread)
9078 (record_btrace_find_thread_to_move, btrace_step_no_history)
9079 (btrace_step_stopped, record_btrace_start_replaying)
9080 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9081 (record_btrace_find_resume_thread): New.
9082 (record_btrace_resume, record_btrace_wait): Extend.
9083 (record_btrace_can_execute_reverse): New.
9084 (record_btrace_open): Fail in non-stop mode.
9085 (record_btrace_set_replay): Split into this, ...
9086 (record_btrace_stop_replaying): ... this, ...
9087 (record_btrace_clear_histories): ... and this.
9088 (init_record_btrace_ops): Init to_can_execute_reverse.
9089 * NEWS: Announce it.
9090
118e6252
MM
90912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9092
9093 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9094 (forward_target_decr_pc_after_break)
9095 (target_decr_pc_after_break): New.
9096 * target.c (forward_target_decr_pc_after_break)
9097 (target_decr_pc_after_break): New.
9098 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9099 instead of gdbarch_decr_pc_after_break.
9100 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9101 instead of gdbarch_decr_pc_after_break.
9102 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9103 instead of gdbarch_decr_pc_after_break.
9104 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9105 instead of gdbarch_decr_pc_after_break.
9106 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9107 instead of gdbarch_decr_pc_after_break.
9108 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9109 instead of gdbarch_decr_pc_after_break.
9110
6e07b1d2
MM
91112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9112
9113 * btrace.c: Include regcache.h.
9114 (btrace_add_pc): New.
9115 (btrace_enable): Call btrace_add_pc.
9116 (btrace_is_empty): New.
9117 * btrace.h (btrace_is_empty): New.
9118 * record-btrace.c (require_btrace, record_btrace_info): Call
9119 btrace_is_empty.
9120
969c39fb
MM
91212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9122
9123 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9124 Support delta reads.
9125 (linux_disable_btrace): Change return type.
9126 * common/linux-btrace.h (linux_read_btrace): Change parameters
9127 and return type to allow error reporting. Update users.
9128 (linux_disable_btrace): Change return type. Update users.
9129 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9130 New.
9131 (btrace_error): New.
9132 (btrace_block) <begin>: Comment on BEGIN == 0.
9133 * btrace.c (btrace_compute_ftrace): Start from the end of
9134 the current trace.
9135 (btrace_stitch_trace, btrace_clear_history): New.
9136 (btrace_fetch): Read delta trace, return if replaying.
9137 (btrace_clear): Move clear history code to btrace_clear_history.
9138 (parse_xml_btrace): Throw an error if parsing failed.
9139 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9140 and return type to allow error reporting.
9141 (target_read_btrace): Change parameters and return type to allow
9142 error reporting.
9143 * target.c (target_read_btrace): Update.
9144 * remote.c (remote_read_btrace): Support delta reads. Pass
9145 errors on.
9146 * NEWS: Announce it.
9147
0b722aec
MM
91482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9149
9150 * record.h (record_btrace_frame_unwind)
9151 (record_btrace_tailcall_frame_unwind): New declarations.
9152 * dwarf2-frame: Include record.h
9153 (dwarf2_frame_cfa): Throw an error for btrace frames.
9154 * record-btrace.c: Include hashtab.h.
9155 (btrace_get_bfun_name): New.
9156 (btrace_call_history): Call btrace_get_bfun_name.
9157 (struct btrace_frame_cache): New.
9158 (bfcache): New.
9159 (bfcache_hash, bfcache_eq, bfcache_new): New.
9160 (btrace_get_frame_function): New.
9161 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9162 (record_btrace_frame_this_id): Compute own id.
9163 (record_btrace_frame_prev_register): Provide PC, throw_error
9164 for all other registers.
9165 (record_btrace_frame_sniffer): Detect btrace frames.
9166 (record_btrace_tailcall_frame_sniffer): New.
9167 (record_btrace_frame_dealloc_cache): New.
9168 (record_btrace_frame_unwind): Add new functions.
9169 (record_btrace_tailcall_frame_unwind): New.
9170 (_initialize_record_btrace): Allocate cache.
9171 * btrace.c (btrace_clear): Call reinit_frame_cache.
9172 * NEWS: Announce it.
9173
066ce621
MM
91742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9175
9176 * record-btrace.c (record_btrace_set_replay)
9177 (record_btrace_goto_begin, record_btrace_goto_end)
9178 (record_btrace_goto): New.
9179 (init_record_btrace_ops): Initialize them.
9180 * NEWS: Announce it.
9181
e2887aa3
MM
91822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9183
9184 * record-btrace.c (record_btrace_find_new_threads)
9185 (record_btrace_thread_alive): New.
9186 (init_record_btrace_ops): Initialize to_find_new_threads and
9187 to_thread_alive.
9188
b2f4cfde
MM
91892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9190
9191 * record-btrace.c (record_btrace_resume): New.
9192 (record_btrace_wait): New.
9193 (init_record_btrace_ops): Initialize to_wait and to_resume.
9194
633785ff
MM
91952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9196
9197 * record-btrace.c (record_btrace_xfer_partial)
9198 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9199 (record_btrace_allow_memory_access): New.
9200 (init_record_btrace_ops): Initialize new methods.
9201 * target.c (raw_memory_xfer_partial): Bail out if target reports
9202 that this memory is not available.
9203
3db08215
MM
92042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9205
9206 * target.h (target_ops) <to_insert_breakpoint>
9207 <to_remove_breakpoint>: Add target_ops parameter.
9208 (forward_target_insert_breakpoint): New.
9209 (forward_target_remove_breakpoint): New.
9210 (memory_remove_breakpoint, memory_insert_breakpoint):
9211 Add target_ops parameter.
9212 * target.c (target_insert_breakpoint): Split into this and ...
9213 (forward_target_insert_breakpoint): ... this.
9214 (target_remove_breakpoint): Split into this and ...
9215 (forward_target_remove_breakpoint): ... this.
9216 (debug_to_insert_breakpoint): Add target_ops parameter.
9217 Call forward_target_insert_breakpoint.
9218 (debug_to_remove_breakpoint): Add target_ops parameter.
9219 Call forward_target_remove_breakpoint.
9220 (update_current_target): Do not inherit or default to_insert_breakpoint
9221 and to_remove_breakpoint.
9222 * corelow.c (ignore): Add target_ops parameter.
9223 * exec.c (ignore): Add target_ops parameter.
9224 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9225 Add target_ops parameter.
9226 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9227 Add target_ops parameter.
9228 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9229 Add target_ops parameter.
9230 * record-full.c (record_full_beneath_to_insert_breakpoint)
9231 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9232 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9233 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9234 (record_full_core_remove_breakpoint): Add target_ops parameter.
9235 Update users.
9236 (record_full_beneath_to_insert_breakpoint_ops)
9237 (record_full_beneath_to_remove_breakpoint_ops)
9238 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9239 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9240 tmp_to_remove_breakpoint_ops,
9241 record_full_beneath_to_insert_breakpoint_ops, and
9242 record_full_beneath_to_remove_breakpoint_ops.
9243 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9244 (m32r_remove_breakpoint): Add target_ops parameter.
9245 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9246 Add target_ops parameter.
9247 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9248 Add target_ops parameter.
9249
cecac1ab
MM
92502014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9251 Markus Metzger <markus.t.metzger@intel.com>
9252
9253 * record-btrace.c: Include frame-unwind.h.
9254 (record_btrace_frame_unwind_stop_reason)
9255 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9256 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9257 New.
9258 (init_record_btrace_ops): Install it.
9259
824344ca
MM
92602014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9261
9262 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9263 get_prev_frame_1.
9264
32261e52
MM
92652014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9266
9267 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9268 earlier.
9269
ea001bdc
MM
92702014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9271
9272 * frame-unwind.c: Include target.h.
9273 (frame_unwind_try_unwinder): New function with code from ...
9274 (frame_unwind_find_by_frame): ... here. New variable
9275 unwinder_from_target, call also target_get_unwinder)
9276 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9277 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9278 * target.h (struct target_ops): New fields to_get_unwinder and
9279 to_get_tailcall_unwinder.
9280 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9281
1f3ef581
MM
92822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9283
9284 * record-btrace.c (record_btrace_fetch_registers)
9285 (record_btrace_store_registers)
9286 (record_btrace_to_prepare_to_store): New.
9287 (init_record_btrace_ops): Add the above.
9288
f32dbf8c
MM
92892014-01-16 Tom Tromey <tromey@redhat.com>
9290
9291 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
9292 * target.h (struct target_ops) <to_prepare_to_store>: Add
9293 argument.
9294 (target_prepare_to_store): Add argument.
9295 * target.c (debug_to_prepare_to_store): Add argument.
9296 (update_current_target): Update.
9297 * remote.c (remote_prepare_to_store): Add 'self' argument.
9298 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
9299 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
9300 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
9301 * record-full.c (record_full_core_prepare_to_store): Add 'self'
9302 argument.
9303 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
9304 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
9305 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
9306 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
9307 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
9308
07bbe694
MM
93092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9310
9311 * btrace.h (replay) <replay>: New.
9312 (btrace_is_replaying): New.
9313 * btrace.c (btrace_clear): Free replay iterator.
9314 (btrace_is_replaying): New.
9315 * record-btrace.c (record_btrace_is_replaying): New.
9316 (record_btrace_info): Print insn number if replaying.
9317 (record_btrace_insn_history): Start at replay position.
9318 (record_btrace_call_history): Start at replay position.
9319 (init_record_btrace_ops): Init to_record_is_replaying.
9320
0688d04e
MM
93212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9322
9323 * record-btrace.c (record_btrace_insn_history_range): Include
9324 end.
9325 (record_btrace_insn_history_from): Adjust range.
9326 (record_btrace_call_history_range): Include
9327 end.
9328 (record_btrace_call_history_from): Adjust range.
9329 * NEWS: Announce changes.
9330
8710b709
MM
93312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9332
9333 * record.h (enum record_print_flag)
9334 <record_print_indent_calls>: New.
9335 * record.c (get_call_history_modifiers): Recognize /c modifier.
9336 (_initialize_record): Document /c modifier.
9337 * record-btrace.c (btrace_call_history): Add btinfo parameter.
9338 Reorder fields. Optionally indent the function name. Update
9339 all users.
9340 * NEWS: Announce changes.
9341
d0fa7535
MM
93422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9343
9344 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
9345
5de9129b
MM
93462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9347
9348 * btrace.c (ftrace_new_function): Start counting at one.
9349 * record-btrace.c (record_btrace_info): Adjust number of calls
9350 and insns.
9351 * NEWS: Announce it.
9352
7acbe133
MM
93532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9354
9355 * record-btrace.c (btrace_call_history_insn_range): Print
9356 insn range as [begin, end].
9357
23a7fe75
MM
93582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9359
9360 * btrace.h (struct btrace_func_link): New.
9361 (enum btrace_function_flag): New.
9362 (struct btrace_inst): Rename to ...
9363 (struct btrace_insn): ...this. Update all users.
9364 (struct btrace_func) <ibegin, iend>: Remove.
9365 (struct btrace_func_link): New.
9366 (struct btrace_func): Rename to ...
9367 (struct btrace_function): ...this. Update all users.
9368 (struct btrace_function) <segment, flow, up, insn, insn_offset)
9369 (number, level, flags>: New.
9370 (struct btrace_insn_iterator): Rename to ...
9371 (struct btrace_insn_history): ...this.
9372 Update all users.
9373 (struct btrace_insn_iterator, btrace_call_iterator): New.
9374 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
9375 (struct btrace_target_info) <begin, end, level>
9376 <insn_history, call_history>: New.
9377 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9378 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9379 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9380 (btrace_call_number, btrace_call_begin, btrace_call_end)
9381 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9382 (btrace_find_function_by_number, btrace_set_insn_history)
9383 (btrace_set_call_history): New.
9384 * btrace.c (btrace_init_insn_iterator)
9385 (btrace_init_func_iterator, compute_itrace): Remove.
9386 (ftrace_print_function_name, ftrace_print_filename)
9387 (ftrace_skip_file): Change
9388 parameter to const.
9389 (ftrace_init_func): Remove.
9390 (ftrace_debug): Use new btrace_function fields.
9391 (ftrace_function_switched): Also consider gaining and
9392 losing symbol information).
9393 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
9394 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
9395 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
9396 New.
9397 (ftrace_new_function): Move. Remove debug print.
9398 (ftrace_update_lines, ftrace_update_insns): New.
9399 (ftrace_update_function): Check for call, ret, and jump.
9400 (compute_ftrace): Renamed to ...
9401 (btrace_compute_ftrace): ...this. Rewritten to compute call
9402 stack.
9403 (btrace_fetch, btrace_clear): Updated.
9404 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
9405 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
9406 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
9407 (btrace_call_number, btrace_call_begin, btrace_call_end)
9408 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
9409 (btrace_find_function_by_number, btrace_set_insn_history)
9410 (btrace_set_call_history): New.
9411 * record-btrace.c (require_btrace): Use new btrace thread
9412 info fields.
9413 (record_btrace_info, btrace_insn_history)
9414 (record_btrace_insn_history, record_btrace_insn_history_range):
9415 Use new btrace thread info fields and new iterator.
9416 (btrace_func_history_src_line): Rename to ...
9417 (btrace_call_history_src_line): ...this. Use new btrace
9418 thread info fields.
9419 (btrace_func_history): Rename to ...
9420 (btrace_call_history): ...this. Use new btrace thread info
9421 fields and new iterator.
9422 (record_btrace_call_history, record_btrace_call_history_range):
9423 Use new btrace thread info fields and new iterator.
9424
8372a7cb
MM
94252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9426
9427 * frame.h (frame_id_build_unavailable_stack_special): New.
9428 * frame.c (frame_id_build_unavailable_stack_special): New.
9429
c2170eef
MM
94302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9431
9432 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
9433 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
9434 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
9435 to gdbarch.
9436 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
9437 (i386_insn_is_jump, i386_jmp_p): New.
9438 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
9439 insn_is_jump to gdbarch.
9440 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
9441 * gdbarch.h: Regenerated.
9442 * gdbarch.c: Regenerated.
9443 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
9444 (default_insn_is_jump): New.
9445 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
9446 (default_insn_is_jump): New.
9447
864089d2
MM
94482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9449
9450 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
9451 Change to ...
9452 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
9453 (btrace_read_type) <btrace_read_new>: Change to ...
9454 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
9455
ed9edfb5
MM
94562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9457
9458 * common/linux-btrace.c (linux_read_btrace): Free trace from
9459 previous iteration.
9460
fbcbc3fd
DE
94612014-01-15 Doug Evans <dje@google.com>
9462
9463 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
9464 uint32_t.
9465
3d548a53
TT
94662014-01-15 Tom Tromey <tromey@redhat.com>
9467
9468 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
9469 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
9470 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
9471 (set_objfile_main_name): New function.
9472 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
9473 language_of_main>: New fields.
9474 (set_objfile_main_name): Declare.
9475 * symtab.c (find_main_name): Loop over objfiles to find the main
9476 name and language.
9477 (set_main_name): Now static.
9478 (get_main_info): Add comment.
9479 * symtab.h (set_main_name): Don't declare.
9480
32ac0d11
TT
94812014-01-15 Tom Tromey <tromey@redhat.com>
9482
9483 * symtab.c (main_progspace_key): New global.
9484 (struct main_info): New.
9485 (name_of_main, language_of_main): Remove.
9486 (get_main_info, main_info_cleanup): New function.
9487 (set_main_name, main_name, main_language): Use get_main_info.
9488 (_initialize_symtab): Initialize main_progspace_key.
9489
9e6c82ad
TT
94902014-01-15 Tom Tromey <tromey@redhat.com>
9491
9492 * dbxread.c (process_one_symbol): Update.
9493 * dwarf2read.c (read_partial_die): Update.
9494 * symfile.c (set_initial_language): Call main_language.
9495 * symtab.c (language_of_main): Now static.
9496 (set_main_name): Add 'lang' parameter.
9497 (find_main_name): Update.
9498 (main_language): New function.
9499 (symtab_observer_executable_changed): Update.
9500 * symtab.h (set_main_name): Update.
9501 (language_of_main): Remove.
9502 (main_language): Declare.
9503
6ef55de7
TT
95042014-01-15 Tom Tromey <tromey@redhat.com>
9505
9506 * symfile.c (init_entry_point_info): Use new "initialized" field.
9507 Update.
9508 * objfiles.h (struct entry_point) <initialized>: New field.
9509 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
9510 (struct objfile) <ei>: ...here. Remove.
9511 * objfiles.c (entry_point_address_query): Update.
9512
53eddfa6
TT
95132014-01-15 Tom Tromey <tromey@redhat.com>
9514
9515 * objfiles.c (entry_point_address_query): Relocate entry point
9516 address.
9517 (objfile_relocate1): Do not relocate entry point address.
9518 * objfiles.h (struct entry_info) <entry_point>: Update comment.
9519 <the_bfd_section_index>: New field.
9520 * symfile.c (init_entry_point_info): Find the entry point's
9521 section.
9522
d56e56aa
TT
95232014-01-15 Tom Tromey <tromey@redhat.com>
9524
9525 * solib-frv.c (enable_break): Use entry_point_address_query.
9526
33a97bbe
OJ
95272014-01-15 Omair Javaid <omair.javaid@linaro.org>
9528
9529 * NEWS: Add note on improved process record-replay on
9530 arm*-linux* targets.
9531
c6ec2b30
OJ
95322014-01-15 Omair Javaid <omair.javaid@linaro.org>
9533
9534 * arm-tdep.c (enum arm_record_result): New enum.
9535 (arm_record_unsupported_insn): New function.
9536 (arm_record_coproc_data_proc): Removed.
9537 (thumb2_record_ld_st_multiple): New function.
9538 (thumb2_record_ld_st_dual_ex_tbb): New function.
9539 (thumb2_record_data_proc_sreg_mimm): New function.
9540 (thumb2_record_ps_dest_generic): New function.
9541 (thumb2_record_branch_misc_cntrl): New function.
9542 (thumb2_record_str_single_data): New function.
9543 (thumb2_record_ld_mem_hints): New function.
9544 (thumb2_record_ld_word): New function.
9545 (thumb2_record_lmul_lmla_div): New function.
9546 (thumb2_record_decode_insn_handler): New function.
9547 (decode_insn): Add thumb32 instruction handlers.
9548
97dfe206
OJ
95492014-01-15 Omair Javaid <omair.javaid@linaro.org>
9550
9551 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
9552 (struct arm_linux_record_tdep): Declare.
9553 (arm_canonicalize_syscall): New function.
9554 (arm_all_but_pc_registers_record): New function.
9555 (arm_linux_syscall_record): New function.
9556 (arm_linux_init_abi): Add syscall recording constructs.
9557 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
9558 decoding. (arm_record_coproc_data_proc): Update arm syscall
9559 decoding.
9560 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
9561 <arm_syscall_record>: New field.
9562 * configure.tgt (arm*-*-linux*): Add linux-record.o to
9563 gdb_target_obs.
9564
9904a494
OJ
95652014-01-15 Omair Javaid <omair.javaid@linaro.org>
9566
9567 * arm-tdep.c (thumb_record_misc): Update to use sp as base
9568 register for push instruction recording.
9569
f969241e
OJ
95702014-01-15 Omair Javaid <omair.javaid@linaro.org>
9571
9572 * arm-tdep.c (thumb_record_misc): Update to correct logical
9573 error while recording ldm, ldmia and pop instructions.
9574
bfbbec00
OJ
95752014-01-15 Omair Javaid <omair.javaid@linaro.org>
9576
9577 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
9578
e40adcc9
PA
95792014-01-15 Pedro Alves <palves@redhat.com>
9580
9581 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
9582 (go32_resume, go32_fetch_registers, store_register)
9583 (go32_store_registers, go32_prepare_to_store)
9584 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
9585 (go32_create_inferior, go32_can_run, go32_terminal_init)
9586 (go32_terminal_inferior, go32_terminal_ours): Delete forward
9587 declarations.
9588
b0a16e66
TT
95892014-01-15 Tom Tromey <tromey@redhat.com>
9590
9591 * target.h (async_callback_ftype): New typedef.
9592 (struct target_ops) <to_async>: Use it.
9593
bf7105a4
JB
95942014-01-15 Joel Brobecker <brobecker@adacore.com>
9595
9596 * python/py-value.c (get_field_type): Remove unnecessary curly
9597 braces for single-statement if block.
9598
a8f35c2e
JB
95992014-01-15 Joel Brobecker <brobecker@adacore.com>
9600
9601 * python/py-type.c (convert_field): Add missing empty line
9602 after declarations.
9603
bb4142cf
DE
96042014-01-14 Doug Evans <dje@google.com>
9605
9606 * symfile.h (expand_symtabs_matching): Renamed from
9607 expand_partial_symbol_names. Update prototype.
9608 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9609 * symfile.c (expand_symtabs_matching): Renamed from
9610 expand_partial_symbol_names. New args file_matcher, kind.
9611 Rename arg fun to symbol_matcher.
9612 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
9613 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
9614 ada_expand_partial_symbol_name.
9615 (ada_make_symbol_completion_list): Update to call
9616 expand_symtabs_matching.
9617 (ada_add_global_exceptions): Call expand_symtabs_matching.
9618 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
9619 call map_symbol_filenames.
9620 * symtab.c (sources_info): Update to call map_symbol_filenames.
9621 (search_symbols): Call expand_symtabs_matching.
9622 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
9623 (default_make_symbol_completion_list_break_on): Update to call
9624 expand_symtabs_matching.
9625 (make_source_files_completion_list): Update to call
9626 map_symbol_filenames.
9627
206f2a57
DE
96282014-01-14 Doug Evans <dje@google.com>
9629
9630 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
9631 (expand_symtabs_symbol_matcher_ftype): New typedef.
9632 (quick_symbol_functions.expand_symtabs_matching): Update to use.
9633 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9634 * symfile.c (expand_partial_symbol_names): Update to use
9635 expand_symtabs_symbol_matcher_ftype.
9636 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
9637 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9638 Arg name_matcher renamed to symbol_matcher.
9639 * psymtab.c (recursively_search_psymtabs): Update to use
9640 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
9641 sym_matcher.
9642 (expand_symtabs_matching_via_partial): Update to use
9643 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
9644 Arg name_matcher renamed to symbol_matcher.
9645
540c2971
DE
96462014-01-14 Doug Evans <dje@google.com>
9647
9648 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
9649 (map_partial_symbol_filenames): Ditto.
9650 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
9651 (map_partial_symbol_filenames): Ditto.
9652 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
9653 (map_partial_symbol_filenames): Ditto.
9654 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
9655 (map_partial_symbol_filenames): Ditto.
9656 * symtab.c: Delete #include "psymtab.h".
9657
8213266a
PA
96582014-01-14 Pedro Alves <palves@redhat.com>
9659 Tom Tromey <tromey@redhat.com>
9660
9661 * infrun.c (use_displaced_stepping): Use find_record_target
9662 instead of RECORD_IS_USED.
9663 (adjust_pc_after_break): Use record_full_is_used instead of
9664 RECORD_IS_USED.
9665 * record-btrace.c (record_btrace_open): Call record_preopen
9666 instead of checking RECORD_IS_USED.
9667 * record-full.c (record_full_shortname)
9668 (record_full_core_shortname): New globals.
9669 (record_full_is_used): New function.
9670 (find_full_open): Call record_preopen instead of checking
9671 RECORD_IS_USED.
9672 (init_record_full_ops): Set the target's shortname to
9673 record_full_shortname.
9674 (init_record_full_core_ops): Set the target's shortname to
9675 record_full_core_shortname.
9676 * record-full.h (record_full_is_used): Declare.
9677 * record.c (find_record_target): Make extern.
9678 (record_preopen): New function.
9679 * record.h (RECORD_IS_USED): Delete macro.
9680 (find_record_target, record_preopen): Declare functions.
9681
7ec1862d
YQ
96822014-01-14 Yao Qi <yao@codesourcery.com>
9683
9684 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9685 'len''s type to ULONGEST.
9686 (core_xfer_shared_libraries_aix): Likewise.
9687 * gdbarch.c, gdbarch.h: Regenerated.
9688 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9689 Change type of 'len' to ULONGEST.
9690 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9691 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9692
dea80a27
YQ
96932014-01-14 Yao Qi <yao@codesourcery.com>
9694
9695 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9696 type of 'len' to ULONGEST.
9697 (linux_xfer_osdata_processgroups): Likewise.
9698 (linux_xfer_osdata_threads): Likewise.
9699 (linux_xfer_osdata_fds): Likewise.
9700 (linux_xfer_osdata_isockets): Likewise.
9701 (linux_xfer_osdata_shm): Likewise.
9702 (linux_xfer_osdata_sem): Likewise.
9703 (linux_xfer_osdata_msg): Likewise.
9704 (linux_common_xfer_osdata): Likewise.
9705 (struct osdata_type) <getter>: Likewise.
9706 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9707 the declaration.
9708
b55e14c7
YQ
97092014-01-14 Yao Qi <yao@codesourcery.com>
9710
9711 * target.h (target_xfer_partial_ftype): Update.
9712 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9713 ULONGEST.
9714 * aix-thread.c (aix_thread_xfer_partial): Change type of
9715 argument 'len' to ULONGEST.
9716 * auxv.c (procfs_xfer_auxv): Likewise.
9717 (ld_so_xfer_auxv): Likewise.
9718 (memory_xfer_auxv): Likewise.
9719 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9720 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9721 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9722 * corelow.c (core_xfer_partial): Likewise.
9723 * ctf.c (ctf_xfer_partial): Likewise.
9724 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9725 '%u'.
9726 (darwin_read_dyld_info): Likewise.
9727 (darwin_xfer_partial): Likewise.
9728 * exec.c (section_table_xfer_memory_partial): Likewise.
9729 (exec_xfer_partial): Likewise.
9730 * exec.h (section_table_xfer_memory_partial): Update
9731 declaration.
9732 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9733 instead of plongest.
9734 (gnu_xfer_partial): Likewise.
9735 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9736 (ia64_hpux_xfer_solib_got): Likewise.
9737 (ia64_hpux_xfer_partial): Likewise.
9738 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9739 * inf-ptrace.c (inf_ptrace_xfer_partial):
9740 * inf-ttrace.c (inf_ttrace_xfer_partial):
9741 * linux-nat.c (linux_xfer_siginfo): Likewise.
9742 (linux_nat_xfer_partial): Likewise.
9743 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9744 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9745 * monitor.c (monitor_xfer_memory): Likewise.
9746 (monitor_xfer_partial): Likewise.
9747 * procfs.c (procfs_xfer_partial): Likewise.
9748 * record-full.c (record_full_xfer_partial): Likewise.
9749 (record_full_core_xfer_partial): Likewise.
9750 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9751 instead of plongest.
9752 (gdbsim_xfer_partial): Likewise.
9753 * remote.c (remote_xfer_partial): Likewise.
9754 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9755 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9756 declaration.
9757 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9758 (rs6000_xfer_shared_libraries): Likewise.
9759 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9760 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9761 (sparc_xfer_partial): Likewise.
9762 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9763 (spu_xfer_partial): Likewise.
9764 * spu-multiarch.c (spu_xfer_partial): Likewise.
9765 * target.c (target_read_live_memory): Likewise.
9766 (memory_xfer_live_readonly_partial): Likewise.
9767 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9768 (target_xfer_partial, default_xfer_partial): Likewise.
9769 (current_xfer_partial): Likewise.
9770 * tracepoint.c (tfile_xfer_partial): Likewise.
9771 * windows-nat.c (windows_xfer_memory): Likewise. Call
9772 pulongest instead of plongest.
9773 (windows_xfer_partial): Likewise.
9774 (windows_xfer_shared_libraries): Likewise.
9775
05804640
YQ
97762014-01-14 Yao Qi <yao@codesourcery.com>
9777
9778 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9779 target_xfer_partial_ftype.
9780
b5b08fb4
SC
97812014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9782
9783 PR python/15464
9784 PR python/16113
9785 * valops.c (value_struct_elt_bitpos): New function
9786 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9787 object to 'None' if the field name is an empty string ("").
9788 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9789 attribute to look for a field when 'name' is 'None'.
9790 (get_field_type): New function
9791
13aaf454
DE
97922014-01-13 Doug Evans <dje@google.com>
9793
9794 PR symtab/16426
9795 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9796 (try_open_dwop_file): Ditto.
9797 * gdb_bfd.c: #include "vec.h".
9798 (bfdp): New typedef.
9799 (struct gdb_bfd_data): New member included_bfds.
9800 (gdb_bfd_unref): Unref all included bfds.
9801 (gdb_bfd_record_inclusion): New function.
9802 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9803
c2cec97c
TT
98042014-01-13 Tom Tromey <tromey@redhat.com>
9805
9806 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9807
78e5999d
TT
98082014-01-13 Tom Tromey <tromey@redhat.com>
9809
9810 * defs.h (use_windows): Remove.
9811 * gdb.c (main): Update.
9812 * main.c (captured_main, gdb_main): Update.
9813 * main.h (struct captured_main_args) <use_windows>: Remove.
9814 * top.c (use_windows): Remove.
9815
f2052bbe
TT
98162014-01-13 Tom Tromey <tromey@redhat.com>
9817
9818 * defs.h (deprecated_flush_hook): Remove.
9819
fde4f8ed
JK
98202014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9821
9822 PR threads/16216
9823 * linux-thread-db.c (try_thread_db_load): Add parameter
9824 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9825 (try_thread_db_load_from_pdir_1): Move it there from here.
9826 (try_thread_db_load_from_sdir): Update caller.
9827 (try_thread_db_load_from_dir): Move it there from here.
9828
bdf61915
PP
98292014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9830
9831 * regformats/regdat.sh: Always rewrite the register file.
9832
f71e1a8d
PA
98332014-01-13 Pedro Alves <palves@redhat.com>
9834
9835 * Makefile.in (CHECK_HEADERS): New variable.
9836 (check-headers:): New rule.
9837
42c85435
TT
98382014-01-13 Tom Tromey <tromey@redhat.com>
9839
9840 * cli/cli-setshow.c (do_set_command): Update.
9841 * defs.h (deprecated_set_hook): Remove.
9842 * top.c (deprecated_set_hook): Remove.
9843
f8de5129
PA
98442014-01-13 Pedro Alves <palves@redhat.com>
9845
9846 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9847 the tracepoint if the PC is a pseudo-register.
9848
fc270c35
TT
98492014-01-13 Tom Tromey <tromey@redhat.com>
9850
9851 * defs.h (XCALLOC): Remove.
9852 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9853 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9854 * dwarf2loc.c (allocate_piece_closure): Likewise.
9855 * elfread.c (elf_symfile_segments): Likewise.
9856 (elf_symfile_segments): Likewise.
9857 * gdbtypes.c (copy_type_recursive): Likewise.
9858 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9859 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9860 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9861 XCALLOC.
9862 * mt-tdep.c (mt_gdbarch_init): Likewise.
9863 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9864 XCALLOC.
9865 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9866 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9867 * registry.c (registry_alloc_data): Likewise.
9868 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9869 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9870 * serial.c (serial_fdopen_ops): Likewise.
9871 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9872 XCALLOC.
9873 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9874 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9875 not XCALLOC.
9876
70ba0933
TT
98772014-01-13 Tom Tromey <tromey@redhat.com>
9878
9879 * defs.h (XMALLOC): Remove.
9880 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9881 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9882 * cli-out.c (struct ui_out *): Likewise.
9883 * cli/cli-dump.c (add_dump_command): Likewise.
9884 (add_dump_command): Likewise.
9885 * complaints.c (get_complaints): Likewise.
9886 (find_complaint): Likewise.
9887 * dwarf2-frame.c (execute_cfa_program): Likewise.
9888 * dwarf2read.c (abbrev_table_read_table): Likewise.
9889 * gdbarch.sh: Likewise.
9890 * gdbarch.c: Rebuild.
9891 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9892 * interps.c (interp_new): Likewise.
9893 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9894 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9895 * mi/mi-console.c (mi_console_file_new): Likewise.
9896 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9897 * mi/mi-out.c (mi_out_new): Likewise.
9898 * mi/mi-parse.c (mi_parse): Likewise.
9899 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9900 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9901 * observer.c (xalloc_observer_list_node): Likewise.
9902 * regcache.c (regcache_xmalloc_1): Likewise.
9903 * reggroups.c (reggroup_new): Likewise.
9904 (_initialize_reggroup): Likewise.
9905 * registry.c (register_data_with_cleanup): Likewise.
9906 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9907 * ser-base.c (serial_ttystate): Likewise.
9908 * ser-mingw.c (make_pipe_state): Likewise.
9909 * ser-pipe.c (pipe_open): Likewise.
9910 * serial.c (serial_open): Likewise.
9911 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9912 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9913 (tui_alloc_win_info): Likewise.
9914 (tui_add_content_elements): Likewise.
9915 * tui/tui-file.c (tui_file_new): Likewise.
9916 * tui/tui-out.c (tui_out_new): Likewise.
9917 * ui-file.c (mem_file_new): Likewise.
9918 * ui-out.c (push_level): Likewise.
9919 (make_cleanup_ui_out_end): Likewise.
9920 (append_header_to_list): Likewise.
9921 (ui_out_new): Likewise.
9922 * user-regs.c (user_reg_add_builtin): Likewise.
9923
41bf6aca
TT
99242014-01-13 Tom Tromey <tromey@redhat.com>
9925
9926 * defs.h (XZALLOC): Remove.
9927 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9928 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9929 (get_ada_tasks_inferior_data): Likewise.
9930 * auto-load.c (get_auto_load_pspace_data): Likewise.
9931 * auxv.c (get_auxv_inferior_data): Likewise.
9932 * bfd-target.c (target_bfd_reopen): Likewise.
9933 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9934 (deprecated_insert_raw_breakpoint): Likewise.
9935 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9936 * corelow.c (core_open): Likewise.
9937 * darwin-nat.c (darwin_check_new_threads): Likewise.
9938 (darwin_attach_pid): Likewise.
9939 * dummy-frame.c (dummy_frame_push): Likewise.
9940 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9941 * dwarf2loc.c (allocate_piece_closure): Likewise.
9942 * elfread.c (elf_symfile_segments): Likewise.
9943 * eval.c (ptrmath_type_p): Likewise.
9944 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9945 * gdbtypes.c (alloc_type_arch): Likewise.
9946 (alloc_type_instance): Likewise.
9947 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9948 * inf-child.c (inf_child_can_use_agent): Likewise.
9949 * inflow.c (get_inflow_inferior_data): Likewise.
9950 * infrun.c (save_infcall_suspend_state): Likewise.
9951 * jit.c (jit_reader_load): Likewise.
9952 (get_jit_objfile_data): Likewise.
9953 (get_jit_program_space_data): Likewise.
9954 (jit_object_open_impl): Likewise.
9955 (jit_symtab_open_impl): Likewise.
9956 (jit_block_open_impl): Likewise.
9957 (jit_frame_sniffer): Likewise.
9958 * linux-fork.c (add_fork): Likewise.
9959 * maint.c (make_command_stats_cleanup): Likewise.
9960 * objfiles.c (get_objfile_pspace_data): Likewise.
9961 * opencl-lang.c (struct lval_closure): Likewise.
9962 * osdata.c (osdata_start_osdata): Likewise.
9963 * progspace.c (new_address_space): Likewise.
9964 (add_program_space): Likewise.
9965 * remote-sim.c (get_sim_inferior_data): Likewise.
9966 * sh-tdep.c (sh_gdbarch_init): Likewise.
9967 * skip.c (Ignore): Likewise.
9968 (skip_delete_command): Likewise.
9969 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9970 (library_list_start_library): Likewise.
9971 (solib_aix_current_sos): Likewise.
9972 * solib-darwin.c (get_darwin_info): Likewise.
9973 (darwin_current_sos): Likewise.
9974 * solib-dsbt.c (get_dsbt_info): Likewise.
9975 * solib-ia64-hpux.c (new_so_list): Likewise.
9976 (ia64_hpux_get_solib_linkage_addr): Likewise.
9977 * solib-spu.c (append_ocl_sos): Likewise.
9978 (spu_current_sos): Likewise.
9979 * solib-svr4.c (get_svr4_info): Likewise.
9980 (svr4_keep_data_in_core): Likewise.
9981 (library_list_start_library): Likewise.
9982 (svr4_default_sos): Likewise.
9983 (svr4_read_so_list): Likewise.
9984 * solib-target.c (library_list_start_library): Likewise.
9985 (solib_target_current_sos): Likewise.
9986 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9987 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9988 * symfile.c (default_symfile_segments): Likewise.
9989 * target-descriptions.c (tdesc_data_init): Likewise.
9990 (tdesc_create_reg): Likewise.
9991 (struct tdesc_type *): Likewise.
9992 (tdesc_create_vector): Likewise.
9993 (tdesc_set_struct_size): Likewise.
9994 (struct tdesc_type *): Likewise.
9995 (tdesc_free_feature): Likewise.
9996 (tdesc_create_feature): Likewise.
9997 * windows-nat.c (windows_add_thread): Likewise.
9998 (windows_make_so): Likewise.
9999 * xml-support.c (gdb_xml_body_text): Likewise.
10000 (gdb_xml_create_parser_and_cleanup): Likewise.
10001 (xml_process_xincludes): Likewise.
10002 * xml-syscall.c (allocate_syscalls_info): Likewise.
10003 (syscall_create_syscall_desc): Likewise.
10004
5acfdbae
SDJ
100052014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10006
10007 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10008 function, with code from i386_stap_parse_special_token.
10009 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10010 (i386_stap_parse_special_token): Move code to the two functions
10011 above; simplify it.
10012
0000e5cc
PA
100132014-01-09 Pedro Alves <palves@redhat.com>
10014 Hui Zhu <hui@codesourcery.com>
10015
10016 PR gdb/16101
10017 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10018 bp_err_string. Don't mark the location shlib_disabled if the
10019 error thrown wasn't a generic or memory error. Catch errors
10020 thrown while inserting breakpoints in overlayed code. Output
10021 error message of software breakpoints.
10022 * remote.c (remote_insert_breakpoint): If this breakpoint has
10023 target-side commands but this stub doesn't support Z0 packets,
10024 throw NOT_SUPPORTED_ERROR error.
10025 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10026 * target.h (target_insert_breakpoint): Extend comment.
10027 (target_insert_hw_breakpoint): Add comment.
10028
b7ea362b
PA
100292014-01-08 Pedro Alves <palves@redhat.com>
10030
10031 * remote.c (remote_add_thread): Add threads silently if starting
10032 up.
10033 (remote_notice_new_inferior): If in all-stop, and starting up,
10034 don't call notice_new_inferior.
10035 (get_current_thread): New function, factored out from ...
10036 (add_current_inferior_and_thread): ... this. Adjust.
10037 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10038 found any thread, then select the remote's current thread as GDB's
10039 current thread too.
10040
b7bba001
JB
100412014-01-08 Joel Brobecker <brobecker@adacore.com>
10042
10043 * NEWS: Create a new section for the next release branch.
10044 Rename the section of the current branch, now that it has
10045 been cut.
10046
16dfbded
JB
100472014-01-08 Joel Brobecker <brobecker@adacore.com>
10048
10049 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10050 * version.in: Bump version to 7.7.50.DATE-cvs.
10051
22c90ac1
YQ
100522014-01-08 Yao Qi <yao@codesourcery.com>
10053
10054 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10055 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10056 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10057
d64ad97c
YQ
100582014-01-08 Yao Qi <yao@codesourcery.com>
10059
10060 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10061 return value of bfd_get_filename to symbol_file_add_from_bfd.
10062
f93ba80c
PM
100632014-01-08 Pierre Muller <muller@sourceware.org>
10064
10065 Fix PR16201.
10066 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10067 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10068 to prim_record_mininal_symbol_and_info.
10069 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10070 in call to prim_record_minimal_symbol_and_info.
10071 (read_pe_exported_syms): Set index field of section_data.
10072
a4d9ba85
AP
100732014-01-07 Andrew Pinski <apinski@cavium.com>
10074
10075 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10076 * features/aarch64.c: Regenerate.
10077
1b67eb02
AS
100782014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10079
10080 * target.c (return_null): Define.
10081 (update_current_target): Use it instead of return_zero for
10082 functions that return a pointer.
10083
5e3f4fab
EBM
100842014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10085
10086 * source.c (add_path): Fix check for duplicated paths in the previously
10087 included paths.
10088
e2616788
HK
100892014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10090
10091 * ada-lang.c: Remove duplicated include statements.
10092 * alphabsd-nat.c: Ditto.
10093 * amd64-darwin-tdep.c: Ditto.
10094 * amd64fbsd-nat.c: Ditto.
10095 * auto-load.c: Ditto.
10096 * ax-gdb.c: Ditto.
10097 * breakpoint.c: Ditto.
10098 * dbxread.c: Ditto.
10099 * fork-child.c: Ditto.
10100 * gdb_usleep.c: Ditto.
10101 * i386-darwin-tdep.c: Ditto.
10102 * i386fbsd-nat.c: Ditto.
10103 * infcmd.c: Ditto.
10104 * inferior.c: Ditto.
10105 * jv-lang.c: Ditto.
10106 * linux-nat.c: Ditto.
10107 * linux-tdep.c: Ditto.
10108 * m68kbsd-nat.c: Ditto.
10109 * m68klinux-nat.c: Ditto.
10110 * microblaze-tdep.c: Ditto.
10111 * mips-linux-tdep.c: Ditto.
10112 * mn10300-tdep.c: Ditto.
10113 * nto-tdep.c: Ditto.
10114 * opencl-lang.c: Ditto.
10115 * osdata.c: Ditto.
10116 * printcmd.c: Ditto.
10117 * regcache.c: Ditto.
10118 * remote-m32r-sdi.c: Ditto.
10119 * remote.c: Ditto.
10120 * symfile.c: Ditto.
10121 * symtab.c: Ditto.
10122 * tilegx-linux-nat.c: Ditto.
10123 * tilegx-tdep.c: Ditto.
10124 * tracepoint.c: Ditto.
10125 * valops.c: Ditto.
10126 * vaxbsd-nat.c: Ditto.
10127 * windows-nat.c: Ditto.
10128 * xtensa-tdep.c: Ditto.
10129
bd1f7788
YQ
101302014-01-07 Yao Qi <yao@codesourcery.com>
10131
10132 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10133
79301218
JB
101342014-01-07 Yao Qi <yao@codesourcery.com>
10135 Joel Brobecker <brobecker@adacore.com>
10136
10137 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10138 (pdc_write_regs): Likewise.
10139 (fetch_regs_kernel_thread): Likewise.
10140 (store_regs_kernel_thread): Likewise.
10141
101422014-01-07 Joel Brobecker <brobecker@adacore.com>
10143
10144 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10145 tagged type objects to their actual type.
10146
8e355c5d
JB
101472014-01-07 Joel Brobecker <brobecker@adacore.com>
10148
10149 * ada-valprint.c (print_field_values): Add "language" parameter.
10150 Update calls to print_field_values and print_variant_part.
10151 Pass new parameter "language" in call to val_print instead
10152 of "current_language". Replace call to ada_val_print by call
10153 to val_print.
10154 (print_variant_part): Add "language" parameter.
10155 (ada_val_print_struct_union): Update call to print_field_values.
10156
4fbf5aa5
JB
101572014-01-07 Joel Brobecker <brobecker@adacore.com>
10158
10159 * ada-valprint.c (ui_memcpy): Delete.
10160 (ada_print_floating): Update documentation. Add empty line
10161 between between function documentation and implementation.
10162 Delete variable "buffer". Use ui_file_xstrdup in place of
10163 ui_file_put. Minor adjustments following this change.
10164
71855601
JB
101652014-01-07 Joel Brobecker <brobecker@adacore.com>
10166
10167 * ada-valprint.c (ada_val_print_string): New function,
10168 extracted from ada_val_print_array.
10169 (ada_val_print_array): Replace extracted code by call
10170 to ada_val_print_string followed by a return. Move
10171 "else" branch to the function's top block.
10172
4eb27a30
JB
101732014-01-07 Joel Brobecker <brobecker@adacore.com>
10174
10175 * ada-valprint.c (ada_val_print_array): Move implementation
10176 down. Rename parameter "offset" and "val" into "offset_aligned"
10177 and "original_value" respectively. Add parameter "offset".
10178
34b27950
JB
101792014-01-07 Joel Brobecker <brobecker@adacore.com>
10180
10181 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10182 re-organizing the code. Change the "???" message printed
10183 when target type is a TYPE_CODE_UNDEF into
10184 "<ref to undefined type>".
10185
079e4591
JB
101862014-01-07 Joel Brobecker <brobecker@adacore.com>
10187
10188 * ada-valprint.c (print_record): Delete, implementation inlined...
10189 (ada_val_print_struct_union): ... here. Remove call to
10190 ada_check_typedef in inlined implementation.
10191
8004dfd1
JB
101922014-01-07 Joel Brobecker <brobecker@adacore.com>
10193
10194 * ada-valprint.c (ada_val_print_gnat_array): New function,
10195 extracted from ada_val_print_1;
10196 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10197 (ada_val_print_flt, ada_val_print_struct_union)
10198 (ada_val_print_ref): Likewise.
10199 (ada_val_print_1): Delete variables i and elttype.
10200 Replace extracted-out code by call to corresponding
10201 new functions.
10202
760a2db0
JB
102032014-01-07 Joel Brobecker <brobecker@adacore.com>
10204
10205 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10206
3a92c861
JB
102072014-01-07 Joel Brobecker <brobecker@adacore.com>
10208
10209 * ada-valprint.c (ada_val_print_1): Replace calls to
10210 ada_val_print_1 by calls to val_print.
10211
cd1630f9
JB
102122014-01-07 Joel Brobecker <brobecker@adacore.com>
10213
10214 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10215 Update calls to self accordingly. Replace calls to c_val_print
10216 by calls to val_print.
10217
bdf779a0
JB
102182014-01-07 Joel Brobecker <brobecker@adacore.com>
10219
10220 * ada-valprint.c (print_record): Delete declaration.
10221 (adjust_type_signedness, ada_val_print_1): Likewise.
10222 (ada_val_print): Move function implementation down.
10223 (print_variant_part, print_field_values, print_record):
10224 Move function implementation up.
10225
c0d48811
JB
102262014-01-07 Joel Brobecker <brobecker@adacore.com>
10227
10228 * python/py-type.c (typy_get_name): New function.
10229 (type_object_getset): Add entry for attribute "name".
10230 * NEWS: Add entry mentioning this new attribute.
10231
c26e9cbb
YQ
102322014-01-07 Yao Qi <yao@codesourcery.com>
10233
10234 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10235 statement.
10236
0cc6f43d
YQ
102372014-01-07 Yao Qi <yao@codesourcery.com>
10238
10239 * gnu-nat.c (info_port_rights): Add qualifier const to
10240 argument args.
10241
eec03155
YQ
102422014-01-07 Yao Qi <yao@codesourcery.com>
10243
10244 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10245
f04a82ef
YQ
102462014-01-07 Yao Qi <yao@codesourcery.com>
10247
10248 * gnu-nat.c (make_inf) Update declaration.
10249 (make_inf): Make it static.
10250 (inf_set_traced): Likewise.
10251 (inf_port_to_thread, inf_task_died_status): Likewise.
10252
d57dda0a
YQ
102532014-01-07 Yao Qi <yao@codesourcery.com>
10254
10255 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10256
3aa8c969
YQ
102572014-01-07 Yao Qi <yao@codesourcery.com>
10258
10259 * gnu-nat.c (_initialize_gnu_nat): Declare.
10260
94123b4f
YQ
102612014-01-07 Yao Qi <yao@codesourcery.com>
10262
10263 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10264 'enum bfd_endian'.
10265 (struct gdbarch_info) <byte_order>: Change type to
10266 'enum bfd_endian'.
10267 <byte_order_for_code>: Likewise.
10268 * gdbarch.c, gdbarch.h: Regenerated.
10269
dc81d70a
TT
102702014-01-06 Sasha Smundak <asmundak@google.com>
10271
10272 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10273
cc2f3c35
TT
102742014-01-06 Tom Tromey <tromey@redhat.com>
10275
10276 * doublest.c (convert_doublest_to_floatformat): Use const, not
10277 CONST.
10278 * somread.c (som_symtab_read): Likewise.
10279
adcf2eed
HZ
102802014-01-07 Hui Zhu <hui@codesourcery.com>
10281
10282 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10283 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10284 (gdb_bfd_fopen): Ditto.
10285 (gdb_bfd_openr): Ditto.
10286 (gdb_bfd_openw): Ditto.
10287 (gdb_bfd_openr_iovec): Ditto.
10288 (gdb_bfd_fdopenr): Ditto.
10289 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
10290 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
10291 with xstrdup.
10292 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
10293 with xstrdup.
10294 * symfile-mem.c (symbol_file_add_from_memory): Removed
10295 gdb_bfd_stash_filename.
10296
50722198
DE
102972014-01-03 Doug Evans <dje@google.com>
10298
10299 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
10300 output.
10301
2fa4b862
JB
103022014-01-01 Joel Brobecker <brobecker@adacore.com>
10303
10304 Update year range in copyright notice of all files.
10305
28498c42
JB
103062014-01-01 Joel Brobecker <brobecker@adacore.com>
10307
10308 * top.c (print_gdb_version): Set copyright year to 2014.
10309
7b6e1046
JB
103102014-01-01 Joel Brobecker <brobecker@adacore.com>
10311
10312 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
10313
df96af55 10314For older changes see ChangeLog-2013.
c906108c
SS
10315\f
10316Local Variables:
10317mode: change-log
10318left-margin: 8
10319fill-column: 74
10320version-control: never
57da7796 10321coding: utf-8
c906108c 10322End:
This page took 2.707934 seconds and 4 git commands to generate.