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