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