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