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