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