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