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