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