Move common-utils.h to common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e76df0d0
GB
12014-08-07 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include common-utils.h.
4 * defs.h: Do not include common-utils.h.
5 * common/gdb_assert.h: Likewise.
6 * darwin-nat.h: Likewise.
7 * nat/linux-btrace.c: Likewise.
8 * target/waitstatus.h: Likewise.
9
4cb9c816
GB
102014-08-07 Gary Benson <gbenson@redhat.com>
11
12 * common/common-defs.h: Include ptid.h.
13 * defs.h: Do not include ptid.h.
14 * inferior.h: Likewise.
15 * infrun.h: Likewise.
16 * nat/linux-btrace.h: Likewise.
17 * nat/linux-osdata.h: Likewise.
18 * target/waitstatus.h: Likewise.
19
3995eeee
GB
202014-08-07 Gary Benson <gbenson@redhat.com>
21
22 * common/common-defs.h: Include gdb_locale.h.
23 * defs.h: Do not include gdb_locale.h.
24
cb9f1a9b
GB
252014-08-07 Gary Benson <gbenson@redhat.com>
26
27 * common/common-defs.h: Include gdb/signals.h.
28 * defs.h: Do not include gdb/signals.h.
29
a5fceff8
GB
302014-08-07 Gary Benson <gbenson@redhat.com>
31
32 * common/common-defs.h: Include pathmax.h.
33 * defs.h: Do not include pathmax.h.
34
b9391142
GB
352014-08-07 Gary Benson <gbenson@redhat.com>
36
37 * common/common-defs.h: Include libiberty.h.
38 * defs.h: Do not include libiberty.h.
39 * common/queue.h: Likewise.
40 * cp-name-parser.y: Likewise.
41 * mi/mi-cmd-catch.c: Likewise.
42 * python/python.c: Likewise.
43
0e443c87
GB
442014-08-07 Gary Benson <gbenson@redhat.com>
45
46 * common/common-defs.h: Include ansidecl.h.
47 * defs.h: Do not include ansidecl.h.
48 * common/buffer.h: Likewise.
49 * common/common-utils.h: Likewise.
50
8ebb3f56
GB
512014-08-07 Gary Benson <gbenson@redhat.com>
52
53 * common/common-defs.h: Include stddef.h.
54 * defs.h: Do not include stddef.h.
55 * common/common-utils.h: Likewise.
56 * amd64fbsd-nat.c: Likewise.
57 * bcache.c: Likewise.
58 * charset.c: Likewise.
59 * common/buffer.h: Likewise.
60 * common/vec.h: Likewise.
61 * i386bsd-nat.c: Likewise.
62 * nat/linux-btrace.h: Likewise.
63 * ppcfbsd-nat.c: Likewise.
64 * ppcnbsd-tdep.h: Likewise.
65 * ppcobsd-nat.c: Likewise.
66 * ppcobsd-tdep.h: Likewise.
67 * python/py-gdb-readline.c: Likewise.
68
8980bdf6
GB
692014-08-07 Gary Benson <gbenson@redhat.com>
70
71 * common/common-defs.h: Include stdarg.h.
72 * defs.h: Do not include stdarg.h.
73 * ada-lang.c: Likewise.
74 * common/common-utils.h: Likewise.
75 * guile/scm-string.c: Likewise.
76 * guile/scm-utils.c: Likewise.
77 * m32c-tdep.c: Likewise.
78
d7096f71
GB
792014-08-07 Gary Benson <gbenson@redhat.com>
80
81 * common/common-defs.h: Include stdlib.h.
82 * defs.h: Do not include stdlib.h.
83 * addrmap.c: Likewise.
84 * bcache.c: Likewise.
85 * common/buffer.c: Likewise.
86 * common/common-utils.c: Likewise.
87 * cp-name-parser.y: Likewise.
88 * go32-nat.c: Likewise.
89 * mn10300-linux-tdep.c: Likewise.
90 * nat/linux-osdata.c: Likewise.
91 * tui/tui.c: Likewise.
92 * windows-nat.c: Likewise.
93
d02f550d
GB
942014-08-07 Gary Benson <gbenson@redhat.com>
95
96 * common/common-defs.h: Include stdio.h.
97 * defs.h: Do not include stdio.h.
98 * ada-lang.c: Likewise.
99 * common/buffer.c: Likewise.
100 * common/common-utils.c: Likewise.
101 * cp-name-parser.y: Likewise.
102 * gnu-nat.c: Likewise.
103 * go32-nat.c: Likewise.
104 * i386gnu-nat.c: Likewise.
105 * proc-api.c: Likewise.
106 * proc-events.c: Likewise.
107 * proc-flags.c: Likewise.
108 * proc-why.c: Likewise.
109 * python/python-internal.h: Likewise.
110 * target-memory.c: Likewise.
111 * tui/tui-io.c: Likewise.
112 * tui/tui.c: Likewise.
113
b6d7a4bf
SM
1142014-08-06 Simon Marchi <simon.marchi@ericsson.com>
115
116 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
117 (scan_dyntag_auxv): Same.
118
af19829b
YQ
1192014-08-06 Yao Qi <yao@codesourcery.com>
120
121 * amd64-linux-nat.c: Remove duplicated include
122 "x86-linux-nat.h".
123 * i386-linux-nat.c: Likewise.
124
8e07a239
YQ
1252014-08-06 Yao Qi <yao@codesourcery.com>
126
127 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
128 operand" with "Special opcode" in comments.
129
7bfe8241
GB
1302014-08-05 Gary Benson <gbenson@redhat.com>
131
132 * interps.c (initialize_interps): Remove prototype.
133 (interpreter_initialized): Remove static global.
134 (interp_add): Do not call initialize_interps.
135 (initialize_interps): Remove function.
136
d6c95504
GB
1372014-08-05 Gary Benson <gbenson@redhat.com>
138
139 * utils.c (vwarning): Remove spurious va_end.
140
241fd515
AM
1412014-08-05 Alan Modra <amodra@gmail.com>
142
143 * charset.c (convert_between_encodings): Cast result of obstack_base.
144 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
145 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
146 (read_unwind_info): Use size_t for some locals.
147 * jit.c (finalize_symtab): Likewise.
148 * utils.c (hashtab_obstack_allocate): Likewise.
149 * symmisc.c (print_objfile_statistics): Update format strings.
150
dc304a94
JK
1512014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
152
153 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
154 (Changes in GDB 7.8): ... here.
155
3cecbbbe
TT
1562014-08-04 Tom Tromey <tromey@redhat.com>
157
158 * target.c (set_targetdebug): New function.
159 (initialize_targets): Pass set_targetdebug when creating "set
160 debug target".
161
6908c509
JB
1622014-08-01 Joel Brobecker <brobecker@adacore.com>
163
164 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
165 if detecting a variable-sized field that is not the last field.
166 Fix struct type length computation.
167
53e8f97d
JB
1682014-08-01 Joel Brobecker <brobecker@adacore.com>
169
170 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
171 Add debug trace.
172
e068c55d
JB
1732014-08-01 Joel Brobecker <brobecker@adacore.com>
174
175 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
176 Remove "+ 8" offset in computation of CHAIN_VMA.
177
4d4ca2a1
DE
1782014-07-31 Doug Evans <dje@google.com>
179
180 * inflow.c (child_terminal_inferior): Add comment.
181 (child_terminal_ours_for_output): Add comment.
182 (child_terminal_ours): Add comment.
183 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
184 (linux_nat_terminal_ours): Add comment.
185
462f517e
GB
1862014-07-31 Gary Benson <gbenson@redhat.com>
187
188 * common/btrace-common.h: Do not include defs.h or server.h.
189 * nat/mips-linux-watch.h: Likewise.
190 * gdb-dlfcn.h: Do not include defs.h.
191 * tracefile.h: Likewise.
192
74228e77
RM
1932014-07-30 Roland McGrath <mcgrathr@google.com>
194
195 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
196
014f9477
TT
1972014-07-30 Tom Tromey <tromey@redhat.com>
198
199 * bsd-kvm.c (bsd_kvm_open): Constify.
200 * corelow.c (core_open): Constify.
201 * ctf.c (ctf_open): Constify.
202 * dbug-rom.c (dbug_open): Constify.
203 * exec.c (exec_open): Constify.
204 * m32r-rom.c (m32r_open, mon2000_open): Constify.
205 * microblaze-rom.c (picobug_open): Constify.
206 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
207 Constify.
208 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
209 * record-btrace.c (record_btrace_open): Constify.
210 * record-full.c (record_full_core_open_1, record_full_open_1)
211 (record_full_open): Constify.
212 * remote-m32r-sdi.c (m32r_open): Constify.
213 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
214 (rockhopper_open, lsi_open): Constify.
215 * remote-sim.c (gdbsim_open): Constify.
216 * remote.c (remote_open, extended_remote_open, remote_open_1):
217 Constify.
218 * target.h (struct target_ops) <to_open>: Make "arg" const.
219 * tracefile-tfile.c (tfile_open): Constify.
220
e799154c
TT
2212014-07-30 Tom Tromey <tromey@redhat.com>
222
223 * breakpoint.c (map_breakpoint_numbers): Update.
224 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
225 (get_number_const): New function.
226 (get_number): Rewrite using get_number_const.
227 (init_number_or_range): Make "string" const.
228 (number_is_in_list): Make "list" const.
229 * cli/cli-utils.h (get_number_const): Declare.
230 (struct get_number_or_range_state) <string, end_ptr>: Now const.
231 (init_number_or_range, number_is_in_list): Update.
232 * printcmd.c (map_display_numbers): Update.
233 * value.c (value_from_history_ref): Constify.
234 * value.h (value_from_history_ref): Update.
235
5f08566b
TT
2362014-07-30 Tom Tromey <tromey@redhat.com>
237
238 * corefile.c (hook_type, call_extra_exec_file_hooks)
239 (specify_exec_file_hook): Constify.
240 * exec.c (exec_file_attach): Make "filename" const.
241 * gdbcore.h (deprecated_exec_file_display_hook)
242 (specify_exec_file_hook, exec_file_attach): Constify.
243 * main.c (captured_main): Use catch_command_errors_const.
244
8981c758
TT
2452014-07-30 Tom Tromey <tromey@redhat.com>
246
247 * target.c (open_target): New function.
248 (add_target_with_completer, add_deprecated_target_alias): Use
249 set_cmd_sfunc, set_cmd_context.
250 (debug_to_open): Remove.
251 (setup_target_debug): Update.
252
a1c7835a
YQ
2532014-07-30 Yao Qi <yao@codesourcery.com>
254
255 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
256 comments.
257 * parse.c (exp_iterate): Update comments.
258
976411d6
GB
2592014-07-30 Gary Benson <gbenson@redhat.com>
260
261 * common/common-defs.h: New file.
262 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
263 * defs.h: Include common-defs.h.
264 Do not include config.h or build-gnulib/config.h.
265
5d4848a4
GB
2662014-07-30 Gary Benson <gbenson@redhat.com>
267
268 * common/common-utils.h: Do not include config.h.
269 * nat/linux-btrace.h: Likewise.
270
d41f6d8e
GB
2712014-07-30 Gary Benson <gbenson@redhat.com>
272
273 * btrace.c: Include defs.h.
274 * common/ptid.c: Include defs.h or server.h as appropriate.
275 * nat/mips-linux-watch.c: Likewise.
276
84202f9c
TT
2772014-07-29 Tom Tromey <tromey@redhat.com>
278
279 * target.c (target_is_pushed): Simplify.
280
2530441c
JB
2812014-07-29 Joel Brobecker <brobecker@adacore.com>
282
283 GDB 7.8 released.
284
7e09a223
YQ
2852014-07-29 Yao Qi <yao@codesourcery.com>
286
287 PR gdb/17206
288 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
289
7ebdbe92
DE
2902014-07-28 Doug Evans <xdje42@gmail.com>
291
292 PR guile/17203
293 * guile/scm-param.c (pascm_parameter_defined_p): New function.
294 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
295 parameters.
296
f347ffc9
WN
2972014-07-28 Will Newton <will.newton@linaro.org>
298
299 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
300 (THUMB2_SET_R7_SIGRETURN2): Likewise.
301 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
302 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
303 (THUMB2_EABI_SYSCALL): Likewise.
304 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
305 struct tramp_frame.
306 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
307 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
308
37c5f1f7
DE
3092014-07-27 Doug Evans <xdje42@gmail.com>
310
311 * guile/scm-param.c (pascm_print_param_smob): Fix output.
312
0c3abbc7
DE
3132014-07-27 Doug Evans <xdje42@gmail.com>
314
315 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
316
e76c5d17
DE
3172014-07-26 Ludovic Courtès <ludo@gnu.org>
318 Doug Evans <xdje42@gmail.com>
319
320 PR guile/17146
321 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
322 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
323 * configure.ac: Try to use guild to compile an scm file, if it fails
324 then disable guile support.
325 * configure: Regenerate.
326 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
327 GUILE_FILE_LIST.
328 (GUILE_COMPILED_FILES): New variable.
329 (GUILE_FILES) Update.
330 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
331 (stamp-guile): Compile scm files.
332 * guile/guile.c (boot_guile_support): New function.
333 (standard_throw_args_p): New function.
334 (print_standard_throw_error, print_throw_error): New functions.
335 (handle_boot_error): New function.
336 (initialize_scheme_side): Rewrite to call boot_guile_support.
337 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
338 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
339
186fcde0
DE
3402014-07-26 Ludovic Courtès <ludo@gnu.org>
341 Doug Evans <xdje42@gmail.com>
342
343 PR guile/17146
344 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
345 * guile/lib/gdb/support.scm: New file.
346 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
347 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
348 All uses updated.
349 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
350 All uses updated.
351 (%assert-type): Ditto, and renamed to assert-type.
352 (%exception-print-style): Delete.
353
4df42755
DE
3542014-07-26 Doug Evans <xdje42@gmail.com>
355
356 PR build/17105
357 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
358 * configure: Regenerate.
359 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
360 PYTHON_FILES.
361 (PYTHON_FILES): New variable.
362 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
363 (GUILE_FILES): New variable.
364 (stamp-python, install-python, uninstall-python): Handle empty
365 file list.
366 (stamp-guile, install-guile, uninstall-guile): Ditto.
367
ee7333ae
DE
3682014-07-26 Doug Evans <xdje42@gmail.com>
369
370 PR guile/17177
371 * guile/lib/gdb.scm (pretty-printers): Export.
372 (set-pretty-printers!): Export.
373 * guile/lib/gdb/printing.scm (gdb module): Update.
374 (prepend-pretty-printer!, append-pretty-printer!): Update.
375 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
376 (pretty_printer_list_var): Delete.
377 (pretty_printer_list): New static global.
378 (gdbscm_pretty_printers): New function.
379 (gdbscm_set_pretty_printers_x): New function.
380 (ppscm_find_pretty_printer_from_gdb): Update.
381 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
382 (gdbscm_initialize_pretty_printers): Update.
383
74edf516
DE
3842014-07-26 Doug Evans <xdje42@gmail.com>
385
386 PR 17185
387 * configure.ac: Add check for header gc/gc.h.
388 Add check for function setenv.
389 * configure: Regenerate.
390 * config.in: Regenerate.
391 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
392
d54398a7
MR
3932014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
394
395 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
396 variation in gdbarch matching.
397
ab16fce8
TT
3982014-07-25 Tom Tromey <tromey@redhat.com>
399
400 * exec.c (using_exec_ops): Remove.
401 (exec_close_1): Update. Remove extraneous block, reindent.
402 (add_target_sections): Use target_is_pushed.
403
88056fbb
PA
4042014-07-25 Pedro Alves <palves@redhat.com>
405
406 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
407 * monitor.c (monitor_create_inferior): Likewise.
408 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
409 * remote-sim.c (gdbsim_create_inferior): Likewise.
410 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
411 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
412 * windows-nat.c (do_initial_windows_stuff): Likewise.
413
70509625
PA
4142014-07-25 Pedro Alves <palves@redhat.com>
415
416 * NEWS: Mention signal passing and "signal" command changes.
417 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
418 comment.
419 * breakpoint.c (until_break_command): Adjust clear_proceed_status
420 call.
421 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
422 * infcmd.c (proceed_thread_callback, continue_1, step_once)
423 (jump_command): Adjust clear_proceed_status call.
424 (signal_command): Warn if other thread that are resumed have
425 signals that will be delivered. Adjust clear_proceed_status call.
426 (until_next_command, finish_command)
427 (proceed_after_attach_callback, attach_command_post_wait)
428 (attach_command): Adjust clear_proceed_status call.
429 * infrun.c (proceed_after_vfork_done): Likewise.
430 (proceed_after_attach_callback): Adjust comment.
431 (clear_proceed_status_thread): Clear stop_signal if not in pass
432 state.
433 (clear_proceed_status_callback): Delete.
434 (clear_proceed_status): New 'step' parameter. Only clear the
435 proceed status of threads the command being prepared is about to
436 resume.
437 (proceed): If passed in an explicit signal, override stop_signal
438 with it. Don't pass the last stop signal to the thread we're
439 resuming.
440 (init_wait_for_inferior): Adjust clear_proceed_status call.
441 (switch_back_to_stepped_thread): Clear the signal if it should not
442 be passed.
443 * infrun.h (clear_proceed_status): New 'step' parameter.
444 (user_visible_resume_ptid): Add comment.
445 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
446 signal is in pass state.
447 * remote.c (append_pending_thread_resumptions): Likewise.
448 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
449
d8be2939
TT
4502014-07-25 Tom Tromey <tromey@redhat.com>
451
452 * target.h (target_stopped_data_address)
453 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
454 parentheses.
455
7d0d9d2b
PL
4562014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
457
458 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
459 comments.
460 (avr_pointer_to_address): Likewise.
461
e9e7f724
TT
4622014-07-24 Tom Tromey <tromey@redhat.com>
463
464 * monitor.c (compile_pattern): Update.
465 * target.h (struct target_ops) <to_shortname, to_longname,
466 to_doc>: Now const.
467
1947513d
TT
4682014-07-24 Tom Tromey <tromey@redhat.com>
469
470 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
471 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
472 (add_info_alias, add_com): Make "doc" const.
473 (print_doc_line): Make "str" const.
474 (delete_cmd): Update.
475 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
476 (print_doc_line): Update.
477 * cli/cli-script.c (document_command): Update.
478 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
479 (add_com, add_info, add_info_alias): Update.
480 * guile/scm-cmd.c (cmdscm_destroyer): Update.
481 * python/py-cmd.c (cmdpy_destroyer): Update.
482
64e61d29
TT
4832014-07-24 Tom Tromey <tromey@redhat.com>
484
485 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
486 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
487 (help_cmd_list): Constify.
488 (lookup_cmd): Update.
489 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
490 const.
491 (help_cmd_list, apropos_cmd): Update.
492 * cli/cli-script.c (show_user): Update.
493 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
494 * cli/cli-setshow.h (cmd_show_list): Update.
495 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
496 (cmd_show_list): Update.
497 * guile/scm-cmd.c (cmdscm_destroyer): Update.
498 * python/py-cmd.c (cmdpy_destroyer): Update.
499
429e55ea
TT
5002014-07-24 Tom Tromey <tromey@redhat.com>
501
502 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
503 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
504 const.
505 * command.h (deprecate_cmd): Update.
506 * maint.c (maintenance_do_deprecate): Add casts.
507
64669f3b
TT
5082014-07-24 Tom Tromey <tromey@redhat.com>
509
510 * cli/cli-decode.c (help_cmd): Make parameter "const".
511 * cli/cli-decode.h (help_cmd): Update.
512
d3d3328b
TT
5132014-07-24 Tom Tromey <tromey@redhat.com>
514
515 * stack.c (up_silently_base, down_silently_base): Make argument
516 const.
517
414842dc
TT
5182014-07-24 Tom Tromey <tromey@redhat.com>
519
520 * solib.c (solib_add): Make "pattern" const.
521 * solib.h (solib_add): Update.
522
baa336ce
TT
5232014-07-24 Tom Tromey <tromey@redhat.com>
524
525 * remote.c (remote_serial_open, print_packet, putpkt)
526 (putpkt_binary): Constify.
527 * remote.h (putpkt): Update.
528
5a19e2d0
TT
5292014-07-24 Tom Tromey <tromey@redhat.com>
530
531 * monitor.c (monitor_open): Make "args" const.
532 * monitor.h (monitor_open): Update.
533
fc4baa5e
TT
5342014-07-24 Tom Tromey <tromey@redhat.com>
535
536 * maint.c (match_bfd_flags): Make "string" const.
537 (print_bfd_section_info): Remove casts.
538 (print_objfile_section_info): Make "string" const.
539
0d5f0dbe
TT
5402014-07-24 Tom Tromey <tromey@redhat.com>
541
542 * inf-child.c (inf_child_open_target): Make "arg" const.
543 * inf-child.h (inf_child_open_target): Update.
544
41c77899
TT
5452014-07-24 Tom Tromey <tromey@redhat.com>
546
547 * environ.c (unset_in_environ): Make "var" const.
548 * environ.h (unset_in_environ): Update.
549
93db0d79
TT
5502014-07-24 Tom Tromey <tromey@redhat.com>
551
552 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
553 Make "cmd" const.
554 (scan_filename_with_cleanup): Likewise.
555 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
556 Make arguments const.
557 (restore_command): Update.
558
36d6eb95
PA
5592014-07-24 Pedro Alves <palves@redhat.com>
560
561 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
562
8009206a
TT
5632014-07-24 Tom Tromey <tromey@redhat.com>
564 Gary Benson <gbenson@redhat.com>
565
566 * nat/linux-ptrace.c (additional_flags): New global.
567 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
568 additional_flags; don't check GDBSERVER.
569 (linux_ptrace_set_additional_flags): New function.
570 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
571 Declare.
572 * linux-nat.c (_initialize_linux_nat): Call
573 linux_ptrace_set_additional_flags.
574
a7068b60
TT
5752014-07-24 Tom Tromey <tromey@redhat.com>
576
577 * make-target-delegates (munge_type, write_debugmethod): New
578 functions.
579 (debug_names): New global.
580 ($TARGET_DEBUG_PRINTER): New global.
581 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
582 name.
583 Write debug methods. Generate init_debug_target.
584 * target-debug.h: New file.
585 * target-delegates.c: Rebuild.
586 * target.c: Include target-debug.h.
587 (debug_target): Hoist definition.
588 (target_kill, target_get_section_table, target_memory_map)
589 (target_flash_erase, target_flash_done, target_detach)
590 (target_disconnect, target_wait, target_resume)
591 (target_pass_signals, target_program_signals, target_follow_fork)
592 (target_mourn_inferior, target_search_memory)
593 (target_thread_address_space, target_close)
594 (target_find_new_threads, target_core_of_thread)
595 (target_verify_memory, target_insert_mask_watchpoint)
596 (target_remove_mask_watchpoint): Remove targetdebug code.
597 (debug_to_post_attach, debug_to_prepare_to_store)
598 (debug_to_files_info, debug_to_insert_breakpoint)
599 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
600 (debug_to_region_ok_for_hw_watchpoint)
601 (debug_to_can_accel_watchpoint_condition)
602 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
603 (debug_to_watchpoint_addr_within_range)
604 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
605 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
606 (debug_to_terminal_init, debug_to_terminal_inferior)
607 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
608 (debug_to_terminal_save_ours, debug_to_terminal_info)
609 (debug_to_load, debug_to_post_startup_inferior)
610 (debug_to_insert_fork_catchpoint)
611 (debug_to_remove_fork_catchpoint)
612 (debug_to_insert_vfork_catchpoint)
613 (debug_to_remove_vfork_catchpoint)
614 (debug_to_insert_exec_catchpoint)
615 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
616 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
617 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
618 (setup_target_debug): Call init_debug_target.
619 * target.h (TARGET_DEBUG_PRINTER): New macro.
620 (struct target_ops) <to_resume, to_wait, to_pass_signals,
621 to_program_signals>: Use TARGET_DEBUG_PRINTER.
622
2c51604d
GB
6232014-07-24 Gary Benson <gbenson@redhat.com>
624
625 * exceptions.h (throw_vfatal): Renamed to...
626 (throw_vquit): New declaration.
627 (throw_quit): Likewise.
628 * exceptions.c (throw_vfatal): Renamed to...
629 (throw_vquit): New function.
630 (throw_quit): Likewise.
631 (throw_error): Call throw_verror rather than throw_it.
632 * utils.h (vfatal): Removed.
633 (fatal): Likewise.
634 * utils.c (vfatal): Removed.
635 (fatal): Likewise.
636 (internal_verror): Replaced call to fatal with call to throw_quit.
637 (quit): Replaced calls to fatal with calls to throw_quit.
638
34211963
ME
6392014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
640
641 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
642 target_read_code.
643
a52b4d3e
ME
6442014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
645
646 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
647 less than zero in conditional expression.
648
a8bdc56b
TT
6492014-07-23 Tom Tromey <tromey@redhat.com>
650
651 * make-target-delegates ($ARGS_PART): Match trailing close paren.
652 ($INTRO_PART): Don't match whitespace.
653 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
654 argument matching.
655 ($METHOD): Add $METHOD_TRAILER.
656 (trim): Rewrite.
657 (scan_target_h): New sub.
658 Change main loop not to collect state.
659 * target-delegates.c: Rebuild.
660
91b52240
GB
6612014-07-23 Gary Benson <gbenson@redhat.com>
662
663 * cp-support.c (gdb_demangle): Fix build on systems without
664 sigaltstack.
665
45326f6f
JK
6662014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
667
668 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
669 for reference entry value target data value.
670
e214cf6c
JK
6712014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
672
673 * stack.c (read_frame_arg): Verify value_optimized_out before calling
674 value_available_contents_eq.
675
bddbbedd
PA
6762014-07-22 Pedro Alves <palves@redhat.com>
677
678 * value.c (allocate_optimized_out_value): Don't mark value as
679 non-lazy.
680
45c71484
JW
6812014-07-22 Jiong Wang <jiong.wang@arm.com>
682
683 * MAINTAINERS (Write After Approval): Update my email address.
684
9597b22a
DE
6852014-07-20 Doug Evans <dje@google.com>
686
687 PR server/17147
688 * remote.c (putpkt_binary): Add text to error message.
689
91101fe5
YQ
6902014-07-20 Yao Qi <yao@codesourcery.com>
691
692 * eval.c: Remove "Chill" from comments.
693 * gdbtypes.h: Likewise.
694 * symtab.h: Likewise.
695
c9402c95
YQ
6962014-07-20 Yao Qi <yao@codesourcery.com>
697
698 * std-operator.def: Update comments to TERNOP_SLICE.
699
ae8fddda
YQ
7002014-07-20 Yao Qi <yao@codesourcery.com>
701
702 * std-operator.def: Remove BINOP_RANGE.
703 * breakpoint.c (watchpoint_exp_is_const): Update.
704 * expprint.c (dump_subexp_body_standard): Likewise.
705 * eval.c (init_array_element): Remove dead code.
706 (evaluate_subexp_standard): Likewise.
707
9c816640
YQ
7082014-07-20 Yao Qi <yao@codesourcery.com>
709
710 * std-operator.def: Remove BINOP_IN.
711 * breakpoint.c (watchpoint_exp_is_const): Update.
712 * eval.c (evaluate_subexp_standard): Likewise.
713 * expprint.c (dump_subexp_body_standard): Likewise.
714
164224e9
ME
7152014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
716
717 * microblaze-tdep.c (microblaze_register_names): Add
718 the rshr and rslr register names.
719 (microblaze_gdbarch_init): Use of tdesc_has_registers.
720 Use of tdesc_find_feature. Use of tdesc_data_alloc.
721 Use of tdesc_numbered_register. Use of
722 microblaze_register_g_packet_guesses. Use of
723 tdesc_use_registers. Use of set_gdbarch_register_type.
724 (microblaze_register_g_packet_guesses): New.
725 * microblaze-tdep.h (microblaze_reg_num): Add
726 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
727 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
728 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
729 * features/microblaze-core.xml: New file.
730 * features/microblaze-stack-protect.xml: New file.
731 * features/microblaze-with-stack-protect.c: New file.
732 * features/microblaze-with-stack-protect.xml: New file.
733 * features/microblaze.xml: New file.
734 * features/microblaze.c: New file.
735 * features/Makefile (microblaze-with-stack-protect): Add
736 microblaze-with-stack-protect microblaze and microblaze-expedite.
737 * regformats/microblaze-with-stack-protect.dat: New file.
738 * regformats/microblaze.dat: New file.
739 * doc/gdb.texinfo (MicroBlaze Features): Added.
740
e8b2341c
TT
7412014-07-18 Tom Tromey <tromey@redhat.com>
742
743 * exec.c (exec_ops): Now static.
744 * exec.h (exec_ops): Don't declare.
745
44e89118
TT
7462014-07-18 Tom Tromey <tromey@redhat.com>
747
748 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
749 to find_target_beneath.
750 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
751 find_target_beneath.
752 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
753
b0ed115f
TT
7542014-07-18 Tom Tromey <tromey@redhat.com>
755
756 PR gdb/17130:
757 * utils.c (quit): Use target_supports_terminal_ours.
758 * target.h (target_supports_terminal_ours): Declare.
759 * target.c (target_supports_delete_record): Don't check
760 to_delete_record against NULL.
761 (target_supports_terminal_ours): New function.
762
e75fdfca
TT
7632014-07-18 Tom Tromey <tromey@redhat.com>
764
765 PR gdb/17130:
766 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
767 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
768 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
769 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
770 * windows-nat.c (windows_xfer_partial): Always delegate.
771 * record-btrace.c (record_btrace_xfer_partial): Simplify
772 delegation.
773 (record_btrace_fetch_registers, record_btrace_store_registers)
774 (record_btrace_prepare_to_store, record_btrace_resume)
775 (record_btrace_wait, record_btrace_find_new_threads)
776 (record_btrace_thread_alive): Likewise.
777 * procfs.c (procfs_xfer_partial): Always delegate.
778 * corelow.c (core_xfer_partial): Always delegate.
779 * sol-thread.c (sol_find_new_threads): Simplify delegation.
780
83814951
TT
7812014-07-18 Tom Tromey <tromey@redhat.com>
782
783 * exec.c (exec_make_note_section): Move earlier.
784
b8b8facf
DE
7852014-07-17 Doug Evans <dje@google.com>
786
74b49205 787 PR gdb/17170
b8b8facf
DE
788 * maint.c (count_symtabs_and_blocks): Handle NULL
789 current_program_space.
790 (report_command_stats): Check global enabled flag in addition to
791 recorded enabled flag.
792 (make_command_stats_cleanup): Handle msg_type == 0, startup.
793
69ff6be5
PA
7942014-07-16 Pedro Alves <palves@redhat.com>
795
796 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
797
252db1b5
TT
7982014-07-16 Tom Tromey <tromey@redhat.com>
799
800 * target.h (struct target_ops) <to_delete_record>: Reformat
801 comment.
802
a432721e
TT
8032014-07-16 Tom Tromey <tromey@redhat.com>
804
805 * target-delegates.c: Rebuild.
806
487d9753
PL
8072014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
808
809 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
810 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
811 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
812 (avr_pointer_to_address): Likewise.
813 (avr_address_class_type_flags): New function.
814 (avr_address_class_type_flags_to_name): Likewise.
815 (avr_address_class_name_to_type_flags): Likewise.
816 (avr_gdbarch_init): Set address_class_type_flags,
817 address_class_type_flags_to_name and
818 address_class_name_to_type_flags.
819
57745c90
PA
8202014-07-15 Pedro Alves <palves@redhat.com>
821
822 * linux-nat.c (kill_callback): Save errno and work with saved
823 copy.
824
2d40be18
SM
8252014-07-15 Simon Marchi <simon.marchi@ericsson.com>
826
827 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
828
572f6555
EBM
8292014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
830
831 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
832 breakpoint support correctly.
833
cc1c52ad
PA
8342014-07-14 Pedro Alves <palves@redhat.com>
835
836 * utils.c (prompt_for_continue): Call target_terminal_ours.
837
1e973570
PA
8382014-07-14 Pedro Alves <palves@redhat.com>
839
840 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
841 catch_errors. Don't re-enable stdin or notify observers where,
842 and rethrow error.
843 (fetch_inferior_event_wrapper): Delete.
844
93d6eb10
PA
8452014-07-14 Pedro Alves <palves@redhat.com>
846
847 PR gdb/17072
848 * top.c: Include "inf-loop.h".
849 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
850 field.
851 (gdb_readline_wrapper_cleanup): Make the target async again, if it
852 was async before.
853 (gdb_readline_wrapper): Store whether the target is async, and
854 make it sync.
855
0017922d
PA
8562014-07-14 Pedro Alves <palves@redhat.com>
857
858 PR gdb/17072
859 * top.c (gdb_readline_wrapper_line): Tweak comment.
860 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
861 the input handler callback.
862
94696ad3
PA
8632014-07-14 Pedro Alves <palves@redhat.com>
864
865 PR gdb/17072
866 * main.c: Include event-top.h.
867 (handle_command_errors): New function.
868 (catch_command_errors, catch_command_errors_const): Use it.
869
9d1e69a2
PA
8702014-07-14 Pedro Alves <palves@redhat.com>
871
872 * exceptions.c (catch_command_errors, catch_command_errors_const):
873 Moved to main.c.
874 * exceptions.h (catch_command_errors_ftype)
875 (catch_command_errors_const_ftype): Moved to main.c.
876 (catch_command_errors, catch_command_errors_const): Delete
877 declarations.
878 * main.c (catch_command_errors_ftype)
879 (catch_command_errors_const_ftype): Moved here from exceptions.h.
880 (catch_command_errors, catch_command_errors_const)): Moved here
881 from exceptions.c and make static.
882
feefc97b
PA
8832014-07-14 Pedro Alves <palves@redhat.com>
884
885 * exceptions.c (print_any_exception): Delete.
886 (catch_exceptions_with_msg): Use exception_print instead of
887 print_any_exception.
888 (catch_errors): Use exception_fprintf instead of
889 print_any_exception.
890 (catch_command_errors, catch_command_errors_const): Use
891 exception_print instead of print_any_exception.
892
c933f875
PA
8932014-07-14 Pedro Alves <palves@redhat.com>
894
895 * infcall.c (run_inferior_call): Set 'sync_execution' while
896 running the inferior call.
897
feb6f816
PA
8982014-07-14 Pedro Alves <palves@redhat.com>
899
900 * value.c (value_contents_equal): Delete function.
901 * value.h (value_contents_equal): Delete declaration.
902
d98b7a16
TT
9032014-07-14 Tom Tromey <tromey@redhat.com>
904
905 PR exp/17106:
906 * gdbtypes.c (is_dynamic_type_internal): New function, from
907 is_dynamic_type.
908 (is_dynamic_type): Rewrite.
909 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
910 (resolve_dynamic_struct): Likewise.
911 (resolve_dynamic_type_internal): New function, from
912 resolve_dynamic_type.
913 (resolve_dynamic_type): Rewrite.
914
548740d6
TT
9152014-07-14 Tom Tromey <tromey@redhat.com>
916
917 * target.c (target_require_runnable): Also check record_stratum.
918 Update comment.
919
808f7ab1
YQ
9202014-07-11 Yao Qi <yao@codesourcery.com>
921
922 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
923 thumb_instruction_restores_sp return true.
924
540314bd
YQ
9252014-07-11 Yao Qi <yao@codesourcery.com>
926
927 * arm-tdep.c (thumb_instruction_restores_sp): New function.
928 (thumb_in_function_epilogue_p): Call
929 thumb_instruction_restores_sp.
930
1db01f22
YQ
9312014-07-11 Yao Qi <yao@codesourcery.com>
932
933 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
934 'add sp, #imm'.
935 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
936
3116063b
GB
9372014-07-11 Gary Benson <gbenson@redhat.com>
938
939 * amd64-linux-nat.c (gdbcore.h): Remove include.
940 (regset.h): Likewise.
941 (nat/linux-btrace.h): Likewise.
942 (btrace.h): Likewise.
943 (gdb_assert.h): Likewise.
944 (string.h): Likewise.
945 (sys/uio.h): Likewise.
946 (sys/debugreg.h): Likewise.
947 (sys/syscall.h): Likewise.
948 (sys/procfs.h): Likewise.
949 (sys/user.h): Likewise.
950 (asm/ptrace.h): Likewise.
951 (i386-nat.h): Likewise.
952 * i386-linux-nat.c (i386-nat.h): Likewise.
953 (regset.h): Likewise.
954 (target.h): Likewise.
955 (linux-nat.h): Likewise.
956 (nat/linux-btrace.h): Likewise.
957 (btrace.h): Likewise.
958 (gdb_assert.h): Likewise.
959 (string.h): Likewise.
960 (sys/uio.h): Likewise.
961 (sys/user.h): Likewise.
962 (sys/procfs.h): Likewise.
963 (sys/reg.h): Likewise.
964 (sys/debugreg.h): Likewise.
965 (ORIG_EAX): Remove definition.
966
040baaf6
GB
9672014-07-11 Gary Benson <gbenson@redhat.com>
968
969 * i386-linux-nat.h: New file.
970 * x86-linux-nat.h: Likewise.
971 * x86-linux-nat.c: Likewise.
972 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
973 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
974 * config/i386/linux64.mh (NATDEPFILES): Likewise.
975 * amd64-linux-nat.c (x86-linux-nat.h): New include.
976 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
977 (PTRACE_SETREGSET): Likewise.
978 (arch_lwp_info): Now in x86-linux-nat.c.
979 (have_ptrace_getregset): Now in x86-linux-nat.h.
980 (x86_linux_dr_get): Now in x86-linux-nat.c.
981 (x86_linux_dr_set): Likewise.
982 (x86_linux_dr_get_addr): Likewise.
983 (x86_linux_dr_get_control): Likewise.
984 (x86_linux_dr_get_status): Likewise.
985 (update_debug_registers_callback): Likewise.
986 (x86_linux_dr_set_control): Likewise.
987 (x86_linux_dr_set_addr): Likewise.
988 (x86_linux_prepare_to_resume): Likewise.
989 (x86_linux_new_thread): Likewise.
990 (x86_linux_new_fork): Likewise.
991 (x86_linux_get_thread_area): Likewise.
992 (super_post_startup_inferior): Likewise.
993 (x86_linux_child_post_startup_inferior): Likewise.
994 (AMD64_LINUX_USER64_CS): Likewise.
995 (AMD64_LINUX_X32_DS): Likewise.
996 (x86_linux_read_description): Likewise.
997 (x86_linux_enable_btrace): Likewise.
998 (x86_linux_disable_btrace): Likewise.
999 (x86_linux_teardown_btrace): Likewise.
1000 (x86_linux_read_btrace): Likewise.
1001 (x86_linux_create_target): Likewise.
1002 (x86_linux_add_target): Likewise.
1003 * i386-linux-nat.c (x86-linux-nat.h): New include.
1004 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1005 (PTRACE_SETREGSET): Likewise.
1006 (arch_lwp_info): Now in x86-linux-nat.c.
1007 (have_ptrace_getregset): Now in x86-linux-nat.h.
1008 (x86_linux_dr_get): Now in x86-linux-nat.c.
1009 (x86_linux_dr_set): Likewise.
1010 (x86_linux_dr_get_addr): Likewise.
1011 (x86_linux_dr_get_control): Likewise.
1012 (x86_linux_dr_get_status): Likewise.
1013 (update_debug_registers_callback): Likewise.
1014 (x86_linux_dr_set_control): Likewise.
1015 (x86_linux_dr_set_addr): Likewise.
1016 (x86_linux_prepare_to_resume): Likewise.
1017 (x86_linux_new_thread): Likewise.
1018 (x86_linux_new_fork): Likewise.
1019 (x86_linux_get_thread_area): Likewise.
1020 (super_post_startup_inferior): Likewise.
1021 (x86_linux_child_post_startup_inferior): Likewise.
1022 (AMD64_LINUX_USER64_CS): Likewise.
1023 (AMD64_LINUX_X32_DS): Likewise.
1024 (x86_linux_read_description): Likewise.
1025 (x86_linux_enable_btrace): Likewise.
1026 (x86_linux_disable_btrace): Likewise.
1027 (x86_linux_teardown_btrace): Likewise.
1028 (x86_linux_read_btrace): Likewise.
1029 (x86_linux_create_target): Likewise.
1030 (x86_linux_add_target): Likewise.
1031
1aa7e42c
GB
10322014-07-11 Gary Benson <gbenson@redhat.com>
1033
1034 * amd64-linux-nat.c: Comment and whitespace changes.
1035 * i386-linux-nat.c: Comment and whitespace changes.
1036
c1e246a0
GB
10372014-07-11 Gary Benson <gbenson@redhat.com>
1038
1039 * amd64-linux-nat.c (x86_linux_create_target): New function.
1040 (x86_linux_add_target): Likewise.
1041 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1042 * i386-linux-nat.c (x86_linux_create_target): New function.
1043 (x86_linux_add_target): Likewise.
1044 (_initialize_i386_linux_nat): Delegate to the above new functions.
1045
8c420b8d
GB
10462014-07-11 Gary Benson <gbenson@redhat.com>
1047
1048 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1049 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1050 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1051 (ps_get_thread_area): Delegate to the above.
1052
cb1da100
GB
10532014-07-11 Gary Benson <gbenson@redhat.com>
1054
1055 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1056 x86_linux_read_description. All uses updated. amd64-specific
1057 code conditionalized. Conditionalized i386-specific code added.
1058 Redundant cast removed.
1059 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1060 x86_linux_read_description. All uses updated. i386-specific
1061 code conditionalized. Conditionalized amd64-specific code added.
1062 One sizeof replaced with the actual type it is describing.
1063
2acf3cd0
GB
10642014-07-11 Gary Benson <gbenson@redhat.com>
1065
1066 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1067 x86_linux_dr_get. All uses updated.
1068 (amd64_linux_dr_set): Renamed to
1069 x86_linux_dr_set. All uses updated.
1070 (amd64_linux_dr_get_addr): Renamed to
1071 x86_linux_dr_get_addr. All uses updated.
1072 (amd64_linux_dr_get_control): Renamed to
1073 x86_linux_dr_get_control. All uses updated.
1074 (amd64_linux_dr_get_status): Renamed to
1075 x86_linux_dr_get_status. All uses updated.
1076 (amd64_linux_dr_set_control): Renamed to
1077 x86_linux_dr_set_control. All uses updated.
1078 (amd64_linux_dr_set_addr): Renamed to
1079 x86_linux_dr_set_addr. All uses updated.
1080 (amd64_linux_prepare_to_resume): Renamed to
1081 x86_linux_prepare_to_resume. All uses updated.
1082 (amd64_linux_new_thread): Renamed to
1083 x86_linux_new_thread. All uses updated.
1084 (amd64_linux_new_fork): Renamed to
1085 x86_linux_new_fork. All uses updated.
1086 (amd64_linux_child_post_startup_inferior): Renamed to
1087 x86_linux_child_post_startup_inferior. All uses updated.
1088 (amd64_linux_enable_btrace): Renamed to
1089 x86_linux_enable_btrace. All uses updated.
1090 (amd64_linux_disable_btrace): Renamed to
1091 x86_linux_disable_btrace. All uses updated.
1092 (amd64_linux_teardown_btrace): Renamed to
1093 x86_linux_teardown_btrace. All uses updated.
1094 (amd64_linux_read_btrace): Renamed to
1095 x86_linux_read_btrace. All uses updated.
1096 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1097 x86_linux_dr_get. All uses updated.
1098 (i386_linux_dr_set): Renamed to
1099 x86_linux_dr_set. All uses updated.
1100 (i386_linux_dr_get_addr): Renamed to
1101 x86_linux_dr_get_addr. All uses updated.
1102 (i386_linux_dr_get_control): Renamed to
1103 x86_linux_dr_get_control. All uses updated.
1104 (i386_linux_dr_get_status): Renamed to
1105 x86_linux_dr_get_status. All uses updated.
1106 (i386_linux_dr_set_control): Renamed to
1107 x86_linux_dr_set_control. All uses updated.
1108 (i386_linux_dr_set_addr): Renamed to
1109 x86_linux_dr_set_addr. All uses updated.
1110 (i386_linux_prepare_to_resume): Renamed to
1111 x86_linux_prepare_to_resume. All uses updated.
1112 (i386_linux_new_thread): Renamed to
1113 x86_linux_new_thread. All uses updated.
1114 (i386_linux_new_fork): Renamed to
1115 x86_linux_new_fork. All uses updated.
1116 (i386_linux_child_post_startup_inferior): Renamed to
1117 x86_linux_child_post_startup_inferior. All uses updated.
1118 (i386_linux_enable_btrace): Renamed to
1119 x86_linux_enable_btrace. All uses updated.
1120 (i386_linux_disable_btrace): Renamed to
1121 x86_linux_disable_btrace. All uses updated.
1122 (i386_linux_teardown_btrace): Renamed to
1123 x86_linux_teardown_btrace. All uses updated.
1124 (i386_linux_read_btrace): Renamed to
1125 x86_linux_read_btrace. All uses updated.
1126
b9c1d481
AS
11272014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1128
1129 * remote.c (extended_remote_post_attach): New function.
1130 (init_extended_remote_ops): Install it as to_post_attach method.
1131
7180e04a
PA
11322014-07-09 Pedro Alves <palves@redhat.com>
1133
1134 * infcmd.c (attach_command_post_wait): Don't call
1135 target_terminal_inferior here.
1136 (attach_command): Call it here instead.
1137
9a9a7608
AB
11382014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1139
1140 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1141 field.
1142 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1143 from varobj.c, with additional checks.
1144 (c_varobj_ops): Fill in is_path_expr_parent field.
1145 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1146 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1147 field.
1148 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1149 ops method.
1150 (varobj_default_is_path_expr_parent): New function.
1151 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1152 (varobj_default_is_path_expr_parent): Declare new function.
1153
1f267ae3
MM
11542014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1155
1156 * infcmd.c (finish_backward): Turn internal error into normal error.
1157
b2ee242b
PA
11582014-07-07 Pedro Alves <palves@redhat.com>
1159
8a869bca 1160 PR gdb/17096
b2ee242b
PA
1161 * remote.c (async_handle_remote_sigint)
1162 (async_handle_remote_sigint_twice): Call
1163 gdb_call_async_signal_handler instead of
1164 mark_async_signal_handler.
1165
38e229b2
TT
11662014-07-07 Tom Tromey <tromey@redhat.com>
1167
1168 * target-delegates.c: Rebuild.
1169 * target.c (target_info_record): Remove.
1170 * record.c (info_record_command): Unconditionally call
1171 to_info_record.
1172 * target.h (struct target_ops) <to_info_record>: Use
1173 TARGET_DEFAULT_IGNORE.
1174 (target_info_record): Remove.
1175
f0f9ff95
TT
11762014-07-07 Tom Tromey <tromey@redhat.com>
1177
1178 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1179 TARGET_DEFAULT_NORETURN.
1180 * target.c (generic_tls_error): New function.
1181 (target_translate_tls_address): Don't search target stack.
1182 * target-delegates.c: Rebuild.
1183 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1184 stack.
1185 * linux-thread-db.c (thread_db_get_thread_local_address):
1186 Unconditionally call beneath target.
1187
4a5be5ee
MK
11882014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1189
1190 * cli/cli-logging.c (pop_output_files): Assign targerr to
1191 gdb_stdtargerr.
1192
92c3b204
AB
11932014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 * MAINTAINERS (Write After Approval): Update my email address.
1196
9b11e3a7
GB
11972014-07-02 Gary Benson <gbenson@redhat.com>
1198
1199 * proc-service.c (ps_xfer_memory): Update comment.
1200 (ps_pstop): Remove unused function.
1201 (ps_pcontinue): Likewise.
1202 (ps_lstop): Likewise.
1203 (ps_lcontinue): Likewise.
1204 (ps_lgetxregsize): Likewise.
1205 (ps_lgetxregs): Likewise.
1206 (ps_lsetxregs): Likewise.
1207 (ps_plog): Likewise.
1208 (ps_ptread): Likewise.
1209 (ps_ptwrite): Likewise.
1210
cf363f18
MW
12112014-07-01 Mark Wielaard <mjw@redhat.com>
1212
1213 * dwarf2read.c (add_array_cv_type): New function.
1214 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1215 (read_tag_volatile_type): Likewise.
1216
82ae6c8d
TT
12172014-07-01 Tom Tromey <tromey@redhat.com>
1218
1219 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1220 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1221 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1222 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1223 * command.h (cmd_cfunc_ftype): Move earlier.
1224 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1225 (add_com, add_info): Use cmd_cfunc_ftype.
1226
96142726
TT
12272014-06-30 Tom Tromey <tromey@redhat.com>
1228
1229 * symtab.c (operator_chars): Make parameters and return type
1230 const.
1231 (file_matches): Make "files" const.
1232 (struct search_symbols_data) <files>: Now const.
1233 (search_symbols): Make "regexp" and "files" parameters const.
1234 Update.
1235 (symtab_symbol_info): Remove cast.
1236 (rbreak_command): Update.
1237 * symtab.h (search_symbols): Update.
1238
b67a2c6f
YQ
12392014-06-27 Yao Qi <yao@codesourcery.com>
1240
1241 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1242 Change parameter type to 'struct thread_info *'. Caller
1243 updated.
1244 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1245 Update declaration.
1246 * dummy-frame.c (struct dummy_frame_id): New.
1247 (dummy_frame_id_eq): New function.
1248 (struct dummy_frame) <id>: Change its type to 'struct
1249 dummy_frame_id'.
1250 (dummy_frame_push): Add parameter ptid and save it in
1251 dummy_frame_id.
1252 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1253 inferior_ptid.
1254 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1255 to inferior_ptid.
1256 (lookup_dummy_frame): Change parameter type to 'struct
1257 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1258 instead of frame_id_eq.
1259 (dummy_frame_pop): Add parameter ptid. Callers updated.
1260 Update comments. Compose dummy_frame_id and pass it to
1261 lookup_dummy_frame.
1262 (dummy_frame_discard): Add parameter ptid.
1263 (dummy_frame_sniffer): Compose dummy_frame_id and call
1264 dummy_frame_id_eq instead of frame_id_eq.
1265 (fprint_dummy_frames): Print ptid.
1266 * dummy-frame.h: Remove comments.
1267 (dummy_frame_push): Add ptid in declaration.
1268 (dummy_frame_pop, dummy_frame_discard): Likewise.
1269
5b10184c
TT
12702014-06-26 Tom Tromey <tromey@redhat.com>
1271
1272 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1273 * command.h (error_no_arg): Update.
1274
06900326
TT
12752014-06-26 Tom Tromey <tromey@redhat.com>
1276
1277 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1278 (do_show_command): Make "arg" const.
1279 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1280
c2bcbb1d
TT
12812014-06-26 Tom Tromey <tromey@redhat.com>
1282
1283 * record-full.c (record_full_get_bookmark): Make "args" const.
1284 (record_full_goto_bookmark): Make "raw_bookmark" const.
1285 * record.c (record_goto): New function.
1286 (cmd_record_goto): Use it. Now static.
1287 * record.h (record_goto): Declare.
1288 (cmd_record_goto): Remove declaration.
1289 * target-delegates.c: Rebuild.
1290 * target.h (struct target_ops) <to_get_bookmark,
1291 to_goto_bookmark>: Make parameter const.
1292
9cbe5fff
TT
12932014-06-26 Tom Tromey <tromey@redhat.com>
1294
1295 * defs.h (generic_load): Update.
1296 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1297 * monitor.c (monitor_load): Make "args" const.
1298 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1299 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1300 const.
1301 (mips_load): Make "file" const.
1302 * remote-sim.c (gdbsim_load): Make "args" const.
1303 * remote.c (remote_load): Make "name" const.
1304 * symfile.c (generic_load): Make "args" const.
1305 * target-delegates.c: Rebuild.
1306 * target.c (target_load): Make "arg" const.
1307 (debug_to_load): Make "args" const.
1308 * target.h (struct target_ops) <to_load>: Make parameter const.
1309 (target_load): Update.
1310
34a68019
TT
13112014-06-26 Tom Tromey <tromey@redhat.com>
1312
1313 PR symtab/16902:
1314 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1315 (dwarf2_physname, read_partial_die)
1316 (guess_partial_die_structure_name, fixup_partial_die)
1317 (guess_full_die_structure_name, anonymous_struct_prefix)
1318 (dwarf2_name): Use per-BFD obstack.
1319
efc889c1
YQ
13202014-06-26 Yao Qi <yao@codesourcery.com>
1321
1322 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1323 dummyframe and this_id into inner block below.
1324
4395285e
YQ
13252014-06-26 Yao Qi <yao@codesourcery.com>
1326
1327 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1328 with "signal_pass[0]" in the initialization of signal_pass.
1329
aef92902
MM
13302014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1331
1332 * record-btrace.c (record_btrace_generating_corefile)
1333 (record_btrace_prepare_to_generate_core)
1334 (record_btrace_done_generating_core): New.
1335 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1336 (record_btrace_store_registers, record_btrace_prepare_to_store):
1337 Forward request when generating a core file.
1338 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1339 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1340 to_done_generating_core.
1341
5fff78c4
MM
13422014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1343
1344 * target.h (target_ops) <to_prepare_to_generate_core>
1345 <to_done_generating_core>: New.
1346 (target_prepare_to_generate_core, target_done_generating_core): New.
1347 * target.c (target_prepare_to_generate_core)
1348 (target_done_generating_core): New.
1349 * target-delegates.c: Regenerate.
1350 * gcore.c: (write_gcore_file): Rename to ...
1351 (write_gcore_file_1): ...this.
1352 (write_gcore_file): Call target_prepare_to_generate_core
1353 and target_done_generating_core.
1354
1d1f1ccb
MM
13552014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1356
1357 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1358 * gcore.c (write_gcore_file): Free memory returned from
1359 make_corefile_notes.
1360 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1361 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1362
3343ef86
YQ
13632014-06-24 Yao Qi <yao@codesourcery.com>
1364
1365 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1366 (arm_linux_init_abi): Set skip_trampoline_code with
1367 gdbarch_skip_trampoline_code instead of
1368 find_solib_trampoline_target.
1369
18d18ac8
YQ
13702014-06-24 Yao Qi <yao@codesourcery.com>
1371
1372 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1373 arm_skip_bx_reg returns non-zero.
1374
80d8d390
YQ
13752014-06-24 Yao Qi <yao@codesourcery.com>
1376
1377 * arm-tdep.c (arm_skip_bx_reg): New function.
1378 (arm_skip_stub): Call arm_skip_bx_reg.
1379
6a18a01c
DB
13802014-06-23 Don Breazeal <donb@codesourcery.com>
1381
1382 * MAINTAINERS: Add myself as write-after-approval maintainer.
1383
8e9db26e
PA
13842014-06-23 Pedro Alves <palves@redhat.com>
1385
1386 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1387 DR_CONTROL before setting DR0..DR3.
1388 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1389 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1390 bits of DR_CONTROL related to the debug register slot being
1391 disabled. If all slots are vacant, clear local slowdown as well,
1392 and assert DR_CONTROL is 0.
1393
70afc5b7
SC
13942014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1395
1396 * python/lib/gdb/command/xmethods.py
1397 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1398 current progspace only if the string "progspace" matches LOCUS_RE.
1399
840ed64d
JK
14002014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1401
1402 Fix --with-system-readline with readline-6.3 patch 5.
1403 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1404 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1405 types.
1406
26f2dc30
TT
14072014-06-20 Tom Tromey <tromey@redhat.com>
1408
1409 * dwarf2read.c (dw2_get_real_path): Use correct type in
1410 OBSTACK_CALLOC.
1411 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1412
125f8a3d
GB
14132014-06-20 Gary Benson <gbenson@redhat.com>
1414
1415 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1416 * common/glibc_thread_db.h: Likewise.
1417 * common/i386-cpuid.h: Likewise.
1418 * common/i386-gcc-cpuid.h: Likewise.
1419 * common/linux-btrace.h: Likewise.
1420 * common/linux-osdata.h: Likewise.
1421 * common/linux-procfs.h: Likewise.
1422 * common/linux-ptrace.h: Likewise.
1423 * common/mips-linux-watch.h: Likewise.
1424 * common/linux-btrace.c: Moved to nat.
1425 * common/linux-osdata.c: Likewise.
1426 * common/linux-procfs.c: Likewise.
1427 * common/linux-ptrace.c: Likewise.
1428 * common/mips-linux-watch.c: Likewise.
1429 * nat/gdb_thread_db.h: Moved from common.
1430 * nat/glibc_thread_db.h: Likewise.
1431 * nat/i386-cpuid.h: Likewise.
1432 * nat/i386-gcc-cpuid.h: Likewise.
1433 * nat/linux-btrace.c: Likewise.
1434 * nat/linux-btrace.h: Likewise.
1435 * nat/linux-osdata.c: Likewise.
1436 * nat/linux-osdata.h: Likewise.
1437 * nat/linux-procfs.c: Likewise.
1438 * nat/linux-procfs.h: Likewise.
1439 * nat/linux-ptrace.c: Likewise.
1440 * nat/linux-ptrace.h: Likewise.
1441 * nat/mips-linux-watch.c: Likewise.
1442 * nat/mips-linux-watch.h: Likewise.
1443 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1444 (object file files): Reordered.
1445 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1446 of glibc_thread_db.h.
1447
42995dbd
GB
14482014-06-20 Gary Benson <gbenson@redhat.com>
1449
1450 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1451 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1452 (i386_dr_low): Likewise.
1453 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1454 (i386_dr_low_set_addr): Likewise.
1455 (i386_dr_low_get_addr): Likewise.
1456 (i386_dr_low_can_set_control): Likewise.
1457 (i386_dr_low_set_control): Likewise.
1458 (i386_dr_low_get_control): Likewise.
1459 (i386_dr_low_get_status): Likewise.
1460 (i386_get_debug_register_length): Likewise.
1461 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1462 (i386_dr_low): Likewise.
1463 * nat/i386-dregs.c (i386-low.h): Remove include.
1464 (i386-nat.h): Likewise.
1465 (nat/i386-dregs.h): New include.
1466 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1467 (i386_dr_low_set_addr): Likewise.
1468 (i386_dr_low_get_addr): Likewise.
1469 (i386_dr_low_can_set_control): Likewise.
1470 (i386_dr_low_set_control): Likewise.
1471 (i386_dr_low_get_control): Likewise.
1472 (i386_dr_low_get_status): Likewise.
1473 (i386_get_debug_register_length): Likewise.
1474 (debug_hw_points): Likewise.
1475
3ed9baed
IB
14762014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1477
1478 * Makefile.in (SFILES): Add d-exp.y.
1479 (YYFILES): Add d-exp.c.
1480 (YYOBJ): Add d-exp.o.
1481 (local-maintainer-clean): Delete d-exp.c.
1482 * d-exp.y: New file.
1483 * d-lang.h (d_parse): New declaration.
1484 (d_error): New declaration.
1485 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1486 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1487 PREC_ORDER operators.
1488 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1489
78c164b0
YQ
14902014-06-19 Yao Qi <yao@codesourcery.com>
1491
1492 * gdbthread.h (any_running): Remove the declaration.
1493 * thread.c (any_running): Remove.
1494
f6e29b6e
YQ
14952014-06-19 Yao Qi <yao@codesourcery.com>
1496
1497 * gdbthread.h (struct thread_info) <state>: Change its type to
1498 'enum thread_state'. Update comments.
1499
034f788c
PA
15002014-06-19 Pedro Alves <palves@redhat.com>
1501
1502 * gdbthread.h (ALL_THREADS): Delete.
1503 (ALL_NON_EXITED_THREADS): New macro.
1504 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1505 instead of ALL_THREADS.
1506 * infrun.c (find_thread_needs_step_over)
1507 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1508 instead of ALL_THREADS.
1509 * record-btrace.c (record_btrace_open)
1510 (record_btrace_stop_recording, record_btrace_close)
1511 (record_btrace_is_replaying, record_btrace_resume)
1512 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1513 * remote.c (append_pending_thread_resumptions): Likewise.
1514 * thread.c (thread_apply_all_command): Likewise.
1515
46e33252
GB
15162014-06-19 Gary Benson <gbenson@redhat.com>
1517
1518 * i386-nat.c (i386_stopped_by_watchpoint):
1519 Use i386_dr_stopped_by_watchpoint.
1520 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1521 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1522
3a8ee006
GB
15232014-06-19 Gary Benson <gbenson@redhat.com>
1524
1525 * nat/i386-dregs.c: New file.
1526 * Makefile.in (i386-dregs.o): New rule.
1527 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1528 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1529 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1530 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1531 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1532 * config/i386/go32.mh (NATDEPFILES): Likewise.
1533 * config/i386/linux.mh (NATDEPFILES): Likewise.
1534 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1535 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1536 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1537 * i386-nat.h (debug_hw_points): New declaration.
1538 * i386-nat.c (breakpoint.h): Remove include.
1539 (command.h): Likewise.
1540 (target.h): Likewise.
1541 (gdb_assert.h): Likewise.
1542 (debug_hw_points): Made nonstatic.
1543 (debug_printf): Now in i386-dregs.c.
1544 (TARGET_HAS_DR_LEN_8): Likewise.
1545 (DR_CONTROL_SHIFT): Likewise.
1546 (DR_CONTROL_SIZE): Likewise.
1547 (DR_RW_EXECUTE): Likewise.
1548 (DR_RW_WRITE): Likewise.
1549 (DR_RW_READ): Likewise.
1550 (DR_RW_IORW): Likewise.
1551 (DR_LEN_1): Likewise.
1552 (DR_LEN_2): Likewise.
1553 (DR_LEN_4): Likewise.
1554 (DR_LEN_8): Likewise.
1555 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1556 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1557 (DR_ENABLE_SIZE): Likewise.
1558 (DR_LOCAL_SLOWDOWN): Likewise.
1559 (DR_GLOBAL_SLOWDOWN): Likewise.
1560 (DR_CONTROL_RESERVED): Likewise.
1561 (I386_DR_CONTROL_MASK): Likewise.
1562 (I386_DR_VACANT): Likewise.
1563 (I386_DR_LOCAL_ENABLE): Likewise.
1564 (I386_DR_GLOBAL_ENABLE): Likewise.
1565 (I386_DR_DISABLE): Likewise.
1566 (I386_DR_SET_RW_LEN): Likewise.
1567 (I386_DR_GET_RW_LEN): Likewise.
1568 (I386_DR_WATCH_HIT): Likewise.
1569 (i386_wp_op_t): Likewise.
1570 (i386_show_dr): Likewise.
1571 (i386_length_and_rw_bits): Likewise.
1572 (i386_insert_aligned_watchpoint): Likewise.
1573 (i386_remove_aligned_watchpoint): Likewise.
1574 (i386_handle_nonaligned_watchpoint): Likewise.
1575 (i386_update_inferior_debug_regs): Likewise.
1576 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1577 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1578 (i386_region_ok_for_watchpoint):
1579 Use i386_dr_region_ok_for_watchpoint.
1580 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1581
322a8e06
GB
15822014-06-19 Gary Benson <gbenson@redhat.com>
1583
1584 * i386-nat.c (i386_insert_hw_breakpoint): Use
1585 i386_insert_watchpoint.
1586 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1587
8f26655c
GB
15882014-06-19 Gary Benson <gbenson@redhat.com>
1589
1590 * i386-nat.c (i386_dr_show): Renamed to
1591 i386_show_dr and made static. All uses updated.
1592 (i386_dr_length_and_rw_bits): Renamed to
1593 i386_length_and_rw_bits and made static.
1594 All uses updated.
1595 (i386_dr_insert_aligned_watchpoint): Renamed to
1596 i386_insert_aligned_watchpoint and made static.
1597 All uses updated.
1598 (i386_dr_remove_aligned_watchpoint): Renamed to
1599 i386_remove_aligned_watchpoint and made static.
1600 All uses updated.
1601 (i386_dr_update_inferior_debug_regs): Renamed to
1602 i386_update_inferior_debug_regs and made static.
1603 All uses updated.
1604 * nat/i386-dregs.h (i386_dr_show): Removed.
1605 (i386_dr_length_and_rw_bits): Likewise.
1606 (i386_dr_insert_aligned_watchpoint): Likewise.
1607 (i386_dr_remove_aligned_watchpoint): Likewise.
1608 (i386_dr_update_inferior_debug_regs): Likewise.
1609
992c7d70
GB
16102014-06-19 Gary Benson <gbenson@redhat.com>
1611
1612 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1613 * configure: Regenerate.
1614 * config.in: Likewise.
1615 * main.c (signal.h): New include.
1616 (setup_alternate_signal_stack): New function.
1617 (captured_main): Call the above.
1618 * cp-support.c (signal.h): New include.
1619 (catch_demangler_crashes): New flag.
1620 (SIGJMP_BUF): New define.
1621 (SIGSETJMP): Likewise.
1622 (SIGLONGJMP): Likewise.
1623 (gdb_demangle_jmp_buf): New static global.
1624 (gdb_demangle_attempt_core_dump): Likewise.
1625 (gdb_demangle_signal_handler): New function.
1626 (gdb_demangle): If catch_demangler_crashes is set, install the
1627 above signal handler before calling bfd_demangle, and restore
1628 the original signal handler afterwards. Display the offending
1629 symbol and call demangler_warning the first time a segmentation
1630 fault is caught.
1631 (_initialize_cp_support): New maint set/show command.
1632
eae7090b
GB
16332014-06-19 Gary Benson <gbenson@redhat.com>
1634
1635 * utils.h (resource_limit_kind): New enum.
1636 (can_dump_core): New declaration.
1637 (warn_cant_dump_core): Likewise.
1638 (dump_core): Likewise.
1639 * utils.c (dump_core): Made nonstatic. Added new
1640 parameter "limit_kind".
1641 (can_dump_core): Made nonstatic. Moved printing code to...
1642 (warn_cant_dump_core): New function.
1643 (can_dump_core_warn): Likewise.
1644 (internal_vproblem): Replace calls to can_dump_core with
1645 calls to can_dump_core_warn. Supply new argument to each.
1646
57fcfb1b
GB
16472014-06-19 Gary Benson <gbenson@redhat.com>
1648
1649 * utils.h (demangler_vwarning): New declaration.
1650 (demangler_warning): Likewise.
1651 * utils.c (struct internal_problem)
1652 <user_settable_should_quit>: New field.
1653 <user_settable_should_dump_core>: Likewise
1654 (internal_error_problem): Add values for above new fields.
1655 (internal_warning_problem): Likewise.
1656 (demangler_warning_problem): New static global.
1657 (demangler_vwarning): New function.
1658 (demangler_warning): Likewise.
1659 (add_internal_problem_command): Selectively add commands.
1660 (_initialize_utils): New internal problem command.
1661 * maint.c (maintenance_demangler_warning): New function.
1662 (_initialize_maint_cmds): New command.
1663
17a40b44
TT
16642014-06-18 Tom Tromey <tromey@redhat.com>
1665
1666 * f-valprint.c (info_common_command_for_block): Update.
1667 * symtab.h (struct general_symbol_info) <common_block>: Now
1668 const.
1669
346d1dfe
TT
16702014-06-18 Tom Tromey <tromey@redhat.com>
1671
1672 * symtab.h (struct symtab) <blockvector>: Now const.
1673 * ada-lang.c (ada_add_global_exceptions): Update.
1674 * buildsym.c (augment_type_symtab): Update.
1675 * dwarf2read.c (dw2_lookup_symbol): Update.
1676 * jit.c (finalize_symtab): Update.
1677 * jv-lang.c (add_class_symtab_symbol): Update.
1678 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1679 Update.
1680 * objfiles.c (objfile_relocate1): Update.
1681 * psymtab.c (lookup_symbol_aux_psymtabs)
1682 (maintenance_check_psymtabs): Update.
1683 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1684 Update.
1685 * spu-tdep.c (spu_catch_start): Update.
1686 * symmisc.c (dump_symtab_1): Update.
1687 * symtab.c (lookup_global_symbol_from_objfile)
1688 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1689 (basic_lookup_transparent_type_quick)
1690 (basic_lookup_transparent_type, find_pc_sect_symtab)
1691 (find_pc_sect_line, search_symbols): Update.
1692 * block.c (find_block_in_blockvector): Make "bl" const.
1693 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1694 const.
1695 (blockvector_contains_pc): Make "bv" const.
1696 (block_for_pc_sect): Update.
1697 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1698 (blockvector_contains_pc): Update.
1699 * breakpoint.c (resolve_sal_pc): Update.
1700 * inline-frame.c (block_starting_point_at): Update.
1701
1834676b
TT
17022014-06-18 Tom Tromey <tromey@redhat.com>
1703
1704 * completer.c (complete_line): Make "line_buffer" const.
1705 * completer.h (complete_line): Update.
1706
ac1a991b
TT
17072014-06-18 Tom Tromey <tromey@redhat.com>
1708
1709 * symtab.c (add_macro_name): Remove unneeded cast.
1710
5bc98e52
TT
17112014-06-18 Tom Tromey <tromey@redhat.com>
1712
1713 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1714 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1715
8236def8
TT
17162014-06-18 Tom Tromey <tromey@redhat.com>
1717
1718 * probe.c (info_probes_for_ops): Make "arg" const.
1719 * probe.h (info_probes_for_ops): Update.
1720
3977b71f
TT
17212014-06-18 Tom Tromey <tromey@redhat.com>
1722
1723 * varobj.c (varobj_create): Update.
1724 * valops.c (value_of_this): Update.
1725 * tracepoint.c (add_local_symbols, scope_info): Update.
1726 * symtab.h (struct general_symbol_info) <block>: Now const.
1727 * symtab.c (skip_prologue_sal)
1728 (default_make_symbol_completion_list_break_on)
1729 (skip_prologue_using_sal): Update.
1730 * stack.h (iterate_over_block_locals)
1731 (iterate_over_block_local_vars): Update.
1732 * stack.c (print_frame_args): Update.
1733 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1734 parameter const.
1735 (get_selected_block): Make return type const.
1736 * python/py-frame.c (frapy_block): Update.
1737 * python/py-block.c (gdbpy_block_for_pc): Update.
1738 * p-exp.y (%union) <bval>: Now const.
1739 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1740 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1741 * m2-exp.y (%union) <bval>: Now const.
1742 * linespec.c (get_current_search_block): Make return type const.
1743 (create_sals_line_offset, find_label_symbols): Update.
1744 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1745 Update.
1746 (block_starting_point_at): Make "block" const.
1747 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1748 (check_exception_resume): Update.
1749 * guile/scm-frame.c (gdbscm_frame_block): Update.
1750 * guile/scm-block.c (gdbscm_lookup_block): Update.
1751 * frame.h (get_frame_block): Update.
1752 (get_selected_block): Make return type const.
1753 * frame.c (frame_id_inner): Update.
1754 * f-valprint.c (info_common_command_for_block)
1755 (info_common_command): Update.
1756 * dwarf2loc.c (dwarf2_find_location_expression)
1757 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1758 (locexpr_describe_location_piece): Update.
1759 * c-exp.y (%union) <bval>: Now const.
1760 * breakpoint.c (resolve_sal_pc): Update.
1761 * blockframe.c (get_frame_block):Make return type const.
1762 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1763 (block_innermost_frame): Update.
1764 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1765 (block_for_pc, block_for_pc_sect): Update.
1766 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1767 'pblock' const.
1768 (block_for_pc_sect, block_for_pc): Make return type const.
1769 * ax-gdb.c (gen_expr): Update.
1770 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1771 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1772 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1773 (ada_read_var_value): Update.
1774 * ada-exp.y (struct name_info) <block>: Now const.
1775 (%union): Likewise.
1776 (block_lookup): Constify.
1777
b9228891
GB
17782014-06-18 Gary Benson <gbenson@redhat.com>
1779
1780 * nat/i386-dregs.h: New file.
1781 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1782 * i386-nat.h (i386-dregs.h): New include.
1783 (DR_FIRSTADDR): Now in i386-dregs.h.
1784 (DR_LASTADDR): Likewise.
1785 (DR_NADDR): Likewise.
1786 (DR_STATUS): Likewise.
1787 (DR_CONTROL): Likewise.
1788 (i386_debug_reg_state): Likewise.
1789 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1790
a1aa2221
LM
17912014-06-18 Don Breazeal <donb@codesourcery.com>
1792
1793 * breakpoint.c (set_longjmp_breakpoint): Call
1794 momentary_breakpoint_from_master with additional argument.
1795 (set_longjmp_breakpoint_for_call_dummy): Call
1796 momentary_breakpoint_from_master with additional argument.
1797 (set_std_terminate_breakpoint): Call
1798 momentary_breakpoint_from_master with additional argument.
1799 (momentary_breakpoint_from_master): Add argument to function
1800 definition and use it to initialize structure member flag.
74228e77 1801 (clone_momentary_breakpoint): Call
a1aa2221
LM
1802 momentary_breakpoint_from_master with additional argument.
1803 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1804 member flags set in momentary_breakpoint_from_master.
1805
4be83cc2
GB
18062014-06-18 Gary Benson <gbenson@redhat.com>
1807
1808 * i386-nat.c (i386_show_dr): Renamed to
1809 i386_dr_show and made nonstatic. All uses updated.
1810 (i386_length_and_rw_bits): Renamed to
1811 i386_dr_length_and_rw_bits and made nonstatic.
1812 All uses updated.
1813 (i386_insert_aligned_watchpoint): Renamed to
1814 i386_dr_insert_aligned_watchpoint and made nonstatic.
1815 All uses updated.
1816 (i386_remove_aligned_watchpoint): Renamed to
1817 i386_dr_remove_aligned_watchpoint and made nonstatic.
1818 All uses updated.
1819 (i386_update_inferior_debug_regs): Renamed to
1820 i386_dr_update_inferior_debug_regs and made nonstatic.
1821 All uses updated.
1822
131aa0d4
GB
18232014-06-18 Gary Benson <gbenson@redhat.com>
1824
1825 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1826 (i386_dr_low_can_set_control): Likewise.
1827 (i386_dr_low_set_addr): Likewise.
1828 (i386_dr_low_set_control): Likewise.
1829 (i386_dr_low_get_addr): Likewise.
1830 (i386_dr_low_get_status): Likewise.
1831 (i386_dr_low_get_control): Likewise.
1832 (i386_insert_aligned_watchpoint): Use new macros.
1833 (i386_update_inferior_debug_regs): Likewise.
1834 (i386_stopped_data_address): Likewise.
1835
d9305f7f
GB
18362014-06-18 Gary Benson <gbenson@redhat.com>
1837
1838 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1839 New parameter. All uses updated.
1840
ea008da4
GB
18412014-06-18 Gary Benson <gbenson@redhat.com>
1842
1843 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1844 All uses updated.
1845
1b6d4134
GB
18462014-06-18 Gary Benson <gbenson@redhat.com>
1847
1848 * i386-nat.c (debug_printf): New macro.
1849 (i386_get_debug_register_length): Likewise.
1850 (TARGET_HAS_DR_LEN_8): Use above macro.
1851 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1852 and printf_unfiltered. Use phex to format values.
1853
9b4550ef
GB
18542014-06-18 Gary Benson <gbenson@redhat.com>
1855
1856 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1857 Make const.
1858
6e62758f
GB
18592014-06-18 Gary Benson <gbenson@redhat.com>
1860
1861 * i386-nat.c: Comment changes.
1862
51c79e94
GB
18632014-06-18 Gary Benson <gbenson@redhat.com>
1864
1865 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1866
3e11889a
GB
18672014-06-18 Gary Benson <gbenson@redhat.com>
1868
1869 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1870 (i386_insert_aligned_watchpoint): Likewise.
1871 (i386_remove_aligned_watchpoint): Likewise.
1872 (i386_handle_nonaligned_watchpoint): Likewise.
1873
fc6e2f03
GB
18742014-06-18 Gary Benson <gbenson@redhat.com>
1875
1876 * i386-nat.c: Whitespace changes.
1877
2afe7d50
SB
18782014-06-17 Samuel Bronson <naesten@gmail.com>
1879
1880 * MAINTAINERS: Update Roland McGrath's email address.
1881 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 1882 Red Hat a while ago, and giving me a current address.
2afe7d50 1883
3bca49ee
TT
18842014-06-17 Tom Tromey <tromey@redhat.com>
1885
1886 * utils.h (savestring): Remove declaration.
1887
6e366df1
TT
18882014-06-17 Tom Tromey <tromey@redhat.com>
1889
1890 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1891
6be47f0c
KS
18922014-06-16 Keith Seitz <keiths@redhat.com>
1893
1894 PR mi/15863
1895 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1896 to update the varobj if inferior_ptid is null_ptid.
1897
7bc112c1
TT
18982014-06-16 Tom Tromey <tromey@redhat.com>
1899
1900 * target.h (struct target_ops) <to_info_proc>: Make parameter
1901 const.
1902 (target_info_proc): Update.
1903 * target.c (target_info_proc): Make "args" const.
1904 * procfs.c (procfs_info_proc): Update.
1905 * linux-tdep.c (linux_info_proc): Update.
1906 (linux_core_info_proc_mappings): Make "args" const.
1907 (linux_core_info_proc): Update.
1908 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1909 * gdbarch.c: Rebuild.
1910 * gdbarch.h: Rebuild.
1911 * corelow.c (core_info_proc): Update.
1912
fee354ee
TT
19132014-06-16 Tom Tromey <tromey@redhat.com>
1914
1915 * target.h (struct target_ops) <to_disconnect>: Make parameter
1916 const.
1917 (target_disconnect): Update.
1918 * target.c (target_disconnect): Make "args" const.
1919 * target-delegates.c: Rebuild.
1920 * remote.c (remote_disconnect): Update.
1921 * record.h (record_disconnect): Update.
1922 * record.c (record_disconnect): Update.
1923 * inf-child.c (inf_child_disconnect): Update.
1924
a30bf1f1
TT
19252014-06-16 Tom Tromey <tromey@redhat.com>
1926
1927 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1928 * target.c (debug_to_rcmd, default_rcmd): Update.
1929 * target-delegates.c: Rebuild.
1930 * remote.c (remote_rcmd): Update.
1931 * monitor.c (monitor_rcmd): Update.
1932
d03de421
PA
19332014-06-16 Pedro Alves <palves@redhat.com>
1934
1935 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1936 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1937 have OBJF_SHARED set.
1938 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1939 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1940 instead of OBJF_USERLOADED.
1941 * objfiles.h (OBJF_SHARED): Update comment.
1942 (userloaded_objfile_contains_address_p): Rename to ...
1943 (shared_objfile_contains_address_p): ... this, and update
1944 comments.
1945 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1946 new objfile.
1947 (remove_symbol_file_command): Skip objfiles that don't have
1948 OBJF_SHARED set.
1949
99f4262f
TT
19502014-06-16 Tom Tromey <tromey@redhat.com>
1951
1952 * minsyms.h (prim_record_minimal_symbol)
1953 (prim_record_minimal_symbol_and_info): Update comments.
1954
97d66cc6
EZ
19552014-06-14 Eli Zaretskii <eliz@gnu.org>
1956
1957 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1958 or --without-guile, according to how GDB was built.
1959
635c7e8a
TT
19602014-06-13 Tom Tromey <tromey@redhat.com>
1961
1962 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1963 to help_list.
1964 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1965 to help_list.
1966 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1967 help_list.
1968 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1969 help_list.Pass all_commands, not -1, to help_list.
1970 * cli/cli-dump.c (dump_command, append_command)
1971 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1972 (binary_dump_command, binary_append_command): Pass all_commands,
1973 not -1, to help_list.
1974 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1975 -1, to help_list.
1976 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1977 -1, to help_list.
1978 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1979 help_list.
1980 * top.c (set_history): Pass all_commands, not -1, to help_list.
1981 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1982 all_commands, not -1, to help_list.
1983 * symfile.c (overlay_command): Pass all_commands, not -1, to
1984 help_list.
1985 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1986 help_list.
1987 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1988 help_list.
1989 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1990 -1, to help_list.
1991 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1992 not -1, to help_list.
1993 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1994 not -1, to help_list.
1995 * maint.c (maintenance_command, maintenance_info_command)
1996 (maintenance_print_command, maintenance_set_cmd): Pass
1997 all_commands, not -1, to help_list.
1998 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1999 help_list.
2000 * language.c (set_check): Pass all_commands, not -1, to help_list.
2001 * infcmd.c (unset_command): Pass all_commands, not -1, to
2002 help_list.
2003 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2004 help_list.
2005 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2006 help_list.
2007 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2008 help_list.
2009 * breakpoint.c (save_command): Pass all_commands, not -1, to
2010 help_list.
2011 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2012 all_commands, not -1, to help_list.
2013
b94ade42
PL
20142014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2015
2016 * regcache.c (struct register_to_invalidate): New structure.
2017 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2018 functions.
2019 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2020
31f628ae
YQ
20212014-06-12 Yao Qi <yao@codesourcery.com>
2022
2023 * varobj.c (varobj_get_num_children): Call
2024 varobj_is_dynamic_p.
2025 (varobj_list_children): Likewise.
2026 (varobj_update): Likewise. Update comments.
2027
cde5ef40
YQ
20282014-06-12 Yao Qi <yao@codesourcery.com>
2029
2030 * varobj.c (varobj_pretty_printed_p): Rename to ...
2031 (varobj_is_dynamic_p): ... this. New function.
2032 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2033 (varobj_is_dynamic_p): Declare.
2034 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2035 (mi_print_value_p, varobj_update_one): Likewise.
2036
576ea091
YQ
20372014-06-12 Pedro Alves <pedro@codesourcery.com>
2038 Yao Qi <yao@codesourcery.com>
2039
2040 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2041 (varobj_get_iterator): Wrap up code for pretty-printer by
2042 "#if HAVE_PYTHON" and "#endif".
2043 (update_dynamic_varobj_children): Likewise.
2044
827f100c
YQ
20452014-06-12 Pedro Alves <pedro@codesourcery.com>
2046 Yao Qi <yao@codesourcery.com>
2047
2048 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2049 gdb_python_initialized is false. Move some code from varobj.c.
2050 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2051 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2052 (struct varobj_item): Moved to varobj-iter.h".
2053 (varobj_clear_saved_item): New function.
2054 (update_dynamic_varobj_children): Move python-related code to
2055 py-varobj.c.
2056 (free_variable): Call varobj_clear_saved_item and
2057 varobj_iter_delete.
2058
e5250216
YQ
20592014-06-12 Pedro Alves <pedro@codesourcery.com>
2060 Yao Qi <yao@codesourcery.com>
2061
2062 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2063 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2064 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2065 (py-varobj.o): New rule.
2066 * python/py-varobj.c: New file.
2067 * python/python-internal.h (py_varobj_get_iterator): Declare.
2068 * varobj-iter.h: New file.
2069 * varobj.c: Include "varobj-iter.h"
2070 (struct varobj) <child_iter>: Change its type from "PyObject *"
2071 to "struct varobj_iter *".
2072 <saved_item>: Likewise.
2073 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2074 [HAVE_PYTHON] (varobj_get_iterator): New function.
2075 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2076 python-specific code to python/py-varobj.c.
2077 (install_visualizer): Call varobj_iter_delete instead of
2078 Py_XDECREF.
2079 * varobj.h (varobj_ensure_python_env): Declare.
2080
5a2e0d6e
YQ
20812014-06-12 Yao Qi <yao@codesourcery.com>
2082
2083 * varobj.c (struct varobj_item): New structure.
2084 (create_child_with_value): Update declaration.
2085 (varobj_add_child): Replace arguments 'name' and 'value' with
2086 'item'. All callers updated.
2087 (install_dynamic_child): Likewise.
2088 (update_dynamic_varobj_children): Likewise.
2089 (varobj_add_child): Likewise.
2090 (create_child_with_value): Likewise.
2091
919b9a93
JB
20922014-06-11 Joel Brobecker <brobecker@adacore.com>
2093
2094 * NEWS: Create a new section for the next release branch.
2095 Rename the section of the current branch, now that it has
2096 been cut.
2097
71a55bdf
JB
20982014-06-11 Joel Brobecker <brobecker@adacore.com>
2099
2100 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2101 * version.in: Bump version to 7.8.50.DATE-cvs.
2102
364fe1f7
PA
21032014-06-11 Pedro Alves <palves@redhat.com>
2104
2105 PR remote/17028
2106 * ser-mingw.c (net_windows_socket_check_pending): New function.
2107 (net_windows_select_thread): Ignore spurious wakeups. Use
2108 net_windows_socket_check_pending.
2109 (net_windows_wait_handle): Check for pending events with
2110 ioctlsocket, through net_windows_socket_check_pending, instead of
2111 checking the socket's event.
2112
5a6c7709
SC
21132014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2114
2115 * python/python-internal.h (gdb_PyObject_GetAttrString)
2116 (gdb_PyObject_HasAttrString): New inline function definitions.
2117 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2118 char * of the second argument to PyObject_GetAttrString.
74228e77 2119
0e58ee40
JB
21202014-06-10 Joel Brobecker <brobecker@adacore.com>
2121
2122 * serial.c (serial_write): Fix index of character to be printed
2123 in call to serial_logchar when serial debug traces are enabled.
2124
d190df30
JB
21252014-06-10 Joel Brobecker <brobecker@adacore.com>
2126
2127 * gdbtypes (resolve_dynamic_range): Add function description.
2128
b4b01d36
PA
21292014-06-09 Pedro Alves <palves@redhat.com>
2130
2131 * linux-nat.c (linux_child_follow_fork): Initialize status with
2132 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2133 inner block. Only pass the signal to PTRACE_DETACH if in pass
2134 state.
2135
3657956b
GB
21362014-06-09 Gary Benson <gbenson@redhat.com>
2137
2138 * common/signals.c (gdb_signal_from_host): Reorder to separate
2139 the always-available ANSI-standard signals from the signals that
2140 require checking.
2141 (do_gdb_signal_to_host): Likewise.
2142 * proc-events.c (signal_table): Likewise.
2143
c077881a
HZ
21442014-06-08 Hui Zhu <hui@codesourcery.com>
2145
2146 * common/linux-ptrace.c (linux_disable_event_reporting): New
2147 function.
2148 * common/linux-ptrace.h (linux_disable_event_reporting): New
2149 declaration.
2150 * linux-nat.c (linux_child_follow_fork): Do a single step before
2151 detach.
2152
4186eb54
KS
21532014-06-07 Keith Seitz <keiths@redhat.com>
2154
2155 Revert:
2156 PR c++/16253
2157 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2158 from symbol_matches_domain in symtab.c. All local callers
2159 of symbol_matches_domain updated.
2160 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2161 search STRUCT_DOMAIN.
2162 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2163 independently. standard_lookup will do that automatically.
2164 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2165 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2166 (cp_lookup_symbol_in_namespace): Likewise.
2167 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2168 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2169 may return a STRUCT_DOMAIN match.
2170 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2171 * cp-support.c: Include language.h.
2172 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2173 VAR_DOMAIN.
2174 * psymtab.c (match_partial_symbol): Compare the requested
2175 domain with the symbol's domain directly.
2176 (lookup_partial_symbol): Likewise.
2177 * symtab.c (lookup_symbol_in_language): Explain when/why
2178 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2179 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2180 appropriate languages.
2181 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2182 and moved to ada-lang.c
2183 (lookup_block_symbol): Explain that this function only returns
2184 symbol matching the requested DOMAIN.
2185 Compare the requested domain with the symbol's domain directly.
2186 (iterate_over_symbols): Compare the requested domain with the
2187 symbol's domain directly.
2188 * symtab.h (symbol_matches_domain): Remove.
2189
25326a28 21902014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2191
2192 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2193 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2194 (gdbscm_guile_version_is_at_least): Declare.
2195 (gdbscm_scm_string_to_int): Declare.
2196 * guile/guile.c (gdbscm_guile_major_version): New global.
2197 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2198 (guile_datadir): New static global.
2199 (gdbscm_guile_data_directory): New function.
2200 (initialize_scheme_side): Update.
2201 (misc_guile_functions): Add guile-data-directory.
2202 (initialize_gdb_module): Fetch guile version number.
2203 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2204 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2205 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2206 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2207 comments.
2208 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2209 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2210 * guile/scm-value.c (gdbscm_value_to_string): Only call
2211 scm_port_conversion_strategy if Guile version >= 2.0.6.
2212
0a770bb2 22132014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2214
2215 * main.c (print_gdb_help): Add -q and --silent.
2216
73ba372c
GB
22172014-06-06 Gary Benson <gbenson@redhat.com>
2218
2219 * common/signals.c: Remove preprocessor conditionals for
2220 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2221 SIGSEGV and SIGTERM.
2222 * proc-events.c: Likewise.
2223
c33b2f12
MM
22242014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2225
2226 * symfile.c (symfile_free_objfile): Remove restriction to
2227 OBJF_USERLOADED.
2228 * symfile-mem.c (symbol_file_add_from_memory): Call
2229 add_target_sections_of_objfile.
2230
fb934770
LC
22312014-06-05 Ludovic Courtès <ludo@gnu.org>
2232
2233 * guile/scm-value.c (gdbscm_history_append_x): Use
2234 'vlscm_get_value_smob_arg_unsafe' instead of
2235 'vlscm_scm_to_value'.
2236
6ef284bd
SM
22372014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2238
2239 PR mi/15806
2240 * utils.c (printchar): Don't escape at all if quoter is NUL.
2241 Update function documentation to clarify effect of parameter
2242 QUOTER.
2243 * remote.c (escape_buffer): Pass '\\' as the quoter to
2244 fputstrn_unfiltered.
2245 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2246 generate the output.
2247 (mi_solib_unloaded): Same.
2248
270c9937
JB
22492014-06-05 Joel Brobecker <brobecker@adacore.com>
2250
2251 * development.sh: Delete.
2252 * Makefile.in (config.status): Adjust dependency on development.sh.
2253 * configure.ac: Adjust development.sh source call.
2254 * configure: Regenerate.
2255
16f691fb
DE
22562014-06-04 Doug Evans <xdje42@gmail.com>
2257
2258 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2259 is_scheme_bkpt, spec.
2260 (bpscm_make_breakpoint_smob): Initialize new members.
2261 (gdbscm_create_breakpoint_x): Split into two ...
2262 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2263 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2264 (scheme_function breakpoint_functions): Update.
2265 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2266 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2267 register-breakpoint!.
2268
ef7cab6b
JB
22692014-06-04 Joel Brobecker <brobecker@adacorer.com>
2270
2271 PR server/17023
2272 * mem-break.c (z_type_supported): Return zero if
2273 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2274
012370f6
TT
22752014-06-04 Tom Tromey <tromey@redhat.com>
2276
2277 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2278 value_from_contents_and_address_unresolved.
2279 (ada_template_to_fixed_record_type_1): Likewise.
2280 (ada_which_variant_applies): Likewise.
2281 * value.h (value_from_contents_and_address_unresolved): Declare.
2282 * value.c (value_from_contents_and_address_unresolved): New
2283 function.
2284 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2285 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2286 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2287
92e2a17f
TT
22882014-06-04 Tom Tromey <tromey@redhat.com>
2289
2290 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2291
c0939df1
TT
22922014-06-04 Tom Tromey <tromey@redhat.com>
2293
2294 * procfs.c (procfs_attach): Make "args" const.
2295 * windows-nat.c (windows_attach): Make "args" const.
2296 * nto-procfs.c (procfs_attach): Make "args" const.
2297 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2298 * go32-nat.c (go32_attach): Make "args" const.
2299 * gnu-nat.c (gnu_attach): Make "args" const.
2300 * darwin-nat.c (darwin_attach): Make "args" const.
2301 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2302 * linux-nat.c (linux_nat_attach): Make "args" const.
2303 * remote.c (extended_remote_attach_1, extended_remote_attach):
2304 Make "args" const.
2305 * target.h (struct target_ops) <to_attach>: Make "args" const.
2306 (find_default_attach): Likewise.
2307 * utils.c (parse_pid_to_attach): Make "args" const.
2308 * utils.h (parse_pid_to_attach): Update.
2309
8eaff7cd
TT
23102014-06-04 Tom Tromey <tromey@redhat.com>
2311
2312 * target-delegates.c: Rebuild.
2313 * target.c (default_thread_address_space): New function.
2314 (target_thread_address_space): Simplify.
2315 * target.h (struct target_ops) <to_thread_address_space>: Add
2316 TARGET_DEFAULT_FUNC.
2317
1913f160
DE
23182014-06-04 Doug Evans <xdje42@gmail.com>
2319
2320 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2321
70ad5bff
MM
23222014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2323
2324 * record-btrace.c: Include event-loop.h and inf-loop.h.
2325 (record_btrace_resume_exec_dir)
2326 (record_btrace_async_inferior_event_handler)
2327 (record_btrace_handle_async_inferior_event): New.
2328 (record_btrace_open): Create async event handler.
2329 (record_btrace_close): Delete async event handler.
2330 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2331 Mark async event handler.
2332 (record_btrace_execution_direction): New.
2333 (init_record_btrace_ops): Initialize to_execution_direction.
2334
b6210538
DE
23352014-06-03 Doug Evans <xdje42@gmail.com>
2336
2337 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2338 (gdbscm_make_parameter): Ditto.
2339
a5b1fd27
DE
23402014-06-03 Doug Evans <dje@google.com>
2341
2342 * exec.c (exec_close_1): Call clear_section_table instead of
2343 resize_section_table.
2344 (clear_section_table): New function.
2345 (resize_section_table): Make static. Rename arg num_added to
2346 adjustment.
2347 * exec.h (clear_section_table): Declare.
2348 (resize_section_table): Delete.
2349 * progspace.c (release_program_space): Call clear_section_table
2350 instead of resize_section_table.
2351
0c6e92a5
SC
23522014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2353
2354 * NEWS (Python Scripting): Add entry about the new xmethods
2355 feature.
2356
883964a7
SC
23572014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2358
2359 * python/py-xmethods.c: New file.
2360 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2361 (objfpy_dealloc): XDECREF on the new xmethods field.
2362 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2363 field.
2364 (objfpy_get_xmethods): New function.
2365 (objfile_getset): New entry 'xmethods'.
2366 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2367 (pspy_dealloc): XDECREF on the new xmethods field.
2368 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2369 field.
2370 (pspy_get_xmethods): New function.
2371 (pspace_getset): New entry 'xmethods'.
2372 * python/python-internal.h: Add declarations for new functions.
2373 * python/python.c (_initialize_python): Invoke
2374 gdbpy_initialize_xmethods.
2375 * python/lib/gdb/__init__.py (xmethods): New
2376 attribute.
2377 * python/lib/gdb/xmethod.py: New file.
2378 * python/lib/gdb/command/xmethods.py: New file.
2379
58992dc5
SC
23802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2381
2382 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2383 best match method returned by find_overload_match is an xmethod.
2384 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2385 the best matching operator returned by find_overload_match is an
2386 xmethod.
2387 * valops.c: #include "extension.h".
2388 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2389 Return void. The list of matching source methods is returned in
2390 "fn_list" and a vector of matching debug method workers is
2391 returned in "xm_worker_vec". Update all callers.
2392 (value_find_oload_method_list): Likewise.
2393 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2394 non-NULL, then the index of the best matching method in this
2395 vector is returned. Update all callers.
2396 (find_overload_match): Include xmethods while performing overload
2397 resolution.
2398
e81e7f5e
SC
23992014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2400
2401 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2402 * extension-priv.h (struct extension_language_ops): Add the
2403 xmethod interface.
2404 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2405 get_matching_xmethod_workers, get_xmethod_argtypes,
2406 invoke_xmethod, free_xmethod_worker,
2407 free_xmethod_worker_vec): New functions.
2408 * extension.h: #include "common/vec.h".
2409 New function declarations.
2410 (struct xmethod_worker): New struct.
2411 (VEC (xmethod_worker_ptr)): New vector type.
2412 (xmethod_worker_ptr): New typedef.
2413 (xmethod_worker_vec): Likewise.
2414 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2415 builtin_type.
2416 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2417 (struct builtin_type): New field "xmethod".
2418 * valarith.c (value_ptradd): Assert that the value argument is not
2419 lval_xcallable.
2420 * valops.c (value_must_coerce_to_target): Return 0 for
2421 lval_xcallable values.
2422 * value.c (struct value): New field XM_WORKER in the field
2423 LOCATION.
2424 (value_address, value_raw_address): Return 0 for lval_xcallable
2425 values.
2426 (set_value_address): Assert that the value is not an
2427 lval_xcallable.
2428 (value_free): Free the associated xmethod worker when freeing
2429 lval_xcallable values.
2430 (set_value_component_location): Assert that the WHOLE value is not
2431 lval_xcallable.
2432 (value_of_xmethod, call_xmethod): New functions.
2433 * value.h: Declare "struct xmethod_worker".
2434 Declare new functions value_of_xmethod, call_xmethod.
2435
ef370185
JB
24362014-06-03 Joel Brobecker <brobecker@adacore.com>
2437 Pedro Alves <palves@redhat.com>
2438
2439 PR breakpoints/17000
2440 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2441 New function, extracted from software_breakpoint_inserted_here_p.
2442 (software_breakpoint_inserted_here_p): Replace factored out code
2443 by call to find_non_raw_software_breakpoint_inserted_here.
2444 (bp_target_info_copy_insertion_state): New function.
2445 (bkpt_insert_location): Handle the case of a single-step
2446 breakpoint already inserted at the same address.
2447 (bkpt_remove_location): Handle the case of a single-step
2448 breakpoint still inserted at the same address.
2449 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2450 breakpoint already inserted at the same address.
2451 (deprecated_remove_raw_breakpoint): Handle the case of a
2452 non-raw breakpoint still inserted at the same address.
2453 (find_single_step_breakpoint): New function, extracted from
2454 single_step_breakpoint_inserted_here_p.
2455 (find_single_step_breakpoint): New function,
2456 factored out from single_step_breakpoint_inserted_here_p.
2457 (single_step_breakpoint_inserted_here_p): Reimplement.
2458
1e2ccb61
BM
24592014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2460
2461 Pushed by Joel Brobecker <brobecker@adacore.com>
2462 * source.c (show_substitute_path_command): Fix display of matching
2463 substitution rules.
2464
d3448d85
GB
24652014-06-03 Gary Benson <gbenson@redhat.com>
2466
2467 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2468
06eb1586
DE
24692014-06-02 Doug Evans <xdje42@gmail.com>
2470
2471 Add parameter support for Guile.
2472 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2473 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2474 (scm-param.o): New rule.
2475 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2476 (gdbscm_misc_error): Declare.
2477 (gdbscm_canonicalize_command_name): Declare.
2478 (gdbscm_scm_to_host_string): Declare.
2479 (gdbscm_scm_from_host_string): Declare.
2480 (gdbscm_initialize_parameters): Declare.
2481 * guile/guile.c (initialize_gdb_module): Call
2482 gdbscm_initialize_parameters.
2483 * guile/lib/gdb.scm: Export parameter symbols.
2484 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2485 cmdscm_canonicalize_name and made public. All callers updated.
2486 * guile/scm-exception.c (gdbscm_misc_error): New function.
2487 * guile/scm-param.c: New file.
2488 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2489 (gdbscm_scm_to_host_string): New function.
2490 (gdbscm_scm_from_host_string): New function.
2491 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2492
e698b8c4
DE
24932014-06-02 Doug Evans <xdje42@gmail.com>
2494
2495 Add command support for Guile.
2496 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2497 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2498 (scm-cmd.o): New rule.
2499 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2500 (gdbscm_user_error_p): Declare.
2501 (gdbscm_parse_command_name): Declare.
2502 (gdbscm_valid_command_class_p): Declare.
2503 (gdbscm_initialize_commands): Declare.
2504 * guile/guile.c (initialize_gdb_module): Call
2505 gdbscm_initialize_commands.
2506 * guile/lib/gdb.scm: Export command symbols.
2507 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2508 (throw-user-error): New function.
2509 * guile/scm-cmd.c: New file.
2510 * guile/scm-exception.c (user_error_symbol): New static global.
2511 (gdbscm_user_error_p): New function.
2512 (gdbscm_initialize_exceptions): Set user_error_symbol.
2513 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2514
fb1f94b0
PM
25152014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2516
2517 * top.c (command_loop): Handle comments here...
2518 (command_line_input): ... not here.
2519
ded03782
DE
25202014-06-02 Doug Evans <xdje42@gmail.com>
2521
2522 Add progspace support for Guile.
2523 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2524 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2525 (scm-progspace.o): New rule.
2526 * guile/guile-internal.h (pspace_smob): New typedef.
2527 (psscm_pspace_smob_pretty_printers): Declare.
2528 (psscm_pspace_smob_from_pspace): Declare.
2529 (psscm_scm_from_pspace): Declare.
2530 * guile/guile.c (initialize_gdb_module): Call
2531 gdbscm_initialize_pspaces.
2532 * guile/lib/gdb.scm: Export progspace symbols.
2533 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2534 support.
2535 (append-pretty-printer!): Ditto.
2536 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2537 Implement.
2538 * guile/scm-progspace.c: New file.
2539
397998fc
AM
25402014-06-03 Alan Modra <amodra@gmail.com>
2541
2542 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2543 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2544
6aa5f3a6
DE
25452014-06-02 Doug Evans <dje@google.com>
2546
2547 Add support for skeletonless type units.
2548 * dwarf2read.c (struct dwarf2_per_objfile): New member
2549 n_allocated_type_units.
2550 (struct dwarf2_per_objfile) <tu_stats>: New member
2551 nr_all_type_units_reallocs.
2552 (create_signatured_type_table_from_index): Initialize
2553 n_allocated_type_units
2554 (create_all_type_units): Ditto.
2555 (add_type_unit): Move up in file. New arg slot.
2556 All callers updated. Increase space for all_type_units more
2557 efficiently.
2558 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2559 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2560 (lookup_dwp_signatured_type): Ditto.
2561 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2562 All callers updated.
2563 (build_type_psymtabs_1): Leave type_unit_groups as
2564 NULL if no TUs present.
2565 (print_tu_stats): New function.
2566 (process_skeletonless_type_unit): New function.
2567 (process_dwo_file_for_skeletonless_type_units): New
2568 function.
2569 (process_skeletonless_type_units): New function.
2570 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2571 Call print tu_stats if debugging enabled.
2572
41fac0cf
PA
25732014-06-02 Pedro Alves <palves@redhat.com>
2574
2575 * breakpoint.c (build_target_command_list): Don't build a command
2576 list if we have any duplicate location that isn't a dprintf.
2577
cd1608cc
PA
25782014-06-02 Pedro Alves <palves@redhat.com>
2579
2580 * breakpoint.c (dprintf_breakpoint_hit): New function.
2581 (initialize_breakpoint_ops): Install it as dprintf's
2582 breakpoint_hit method.
2583
486ef3b9
JB
25842014-06-02 Joel Brobecker <brobecker@adacore.com>
2585
2586 * source.c (substitute_path_rule_matches): Simplify using
2587 filename_ncmp instead of FILENAME_CMP.
2588
230cd560
JB
25892014-06-02 Joel Brobecker <brobecker@adacore.com>
2590
2591 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2592
16954d5d
LC
25932014-06-01 Ludovic Courtès <ludo@gnu.org>
2594
2595 * configure.ac: When Guile is available, check for the
2596 availability of 'scm_new_smob'.
2597 * configure, config.h.in: Regenerate.
2598 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2599 function.
2600
53e8a631
AB
26012014-05-30 Andrew Burgess <aburgess@broadcom.com>
2602
2603 * frame.c (struct frame_info): Add stop_string field.
2604 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2605 (get_prev_frame_always): Old content moved into
2606 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2607 TRY_CATCH, handle MEMORY_ERROR exceptions.
2608 (frame_stop_reason_string): New function definition.
2609 * frame.h (unwind_stop_reason_to_string): Extend comment to
2610 mention frame_stop_reason_string.
2611 (frame_stop_reason_string): New function declaration.
2612 * stack.c (frame_info): Switch to frame_stop_reason_string.
2613 (backtrace_command_1): Switch to frame_stop_reason_string.
2614 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2615 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2616 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2617
70e38b8e
AB
26182014-05-30 Andrew Burgess <aburgess@broadcom.com>
2619
2620 * frame.c (frame_stop_reason_string): Rename to ...
2621 (unwind_stop_reason_to_string): this.
2622 * frame.h (frame_stop_reason_string): Rename to ...
2623 (unwind_stop_reason_to_string): this.
2624 * stack.c (frame_info): Update call to frame_stop_reason_string.
2625 (backtrace_command_1): Likewise.
2626 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2627 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2628
938f0e2f
AB
26292014-05-30 Andrew Burgess <aburgess@broadcom.com>
2630
2631 * frame.c (remove_prev_frame): New function.
2632 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2633 remove_prev_frame.
2634
a09dd441
PA
26352014-05-29 Pedro Alves <palves@redhat.com>
2636
2637 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2638 and make it const. When a single-step decays to a continue,
2639 clear 'step', not 'hw_step'. Pass whether the caller wanted
2640 to step to user_visible_resume_ptid, not what we ask the
2641 target to do.
2642
bdc36728
PA
26432014-05-29 Pedro Alves <palves@redhat.com>
2644
2645 * infrun.c (process_event_stop_test, handle_step_into_function)
2646 (handle_step_into_function_backward): Adjust.
2647 Don't set the even thread's stop_step and call stop_waiting before
2648 calling end_stepping_range. Instead do that ...
2649 (end_stepping_range): ... here. Take an ecs pointer parameter.
2650
22bcd14b
PA
26512014-05-29 Pedro Alves <palves@redhat.com>
2652
2653 * infrun.c (stop_stepping): Rename to ...
2654 (stop_waiting): ... this.
2655 (proceed): Update comment.
2656 (process_event_stop_test, handle_inferior_event)
2657 (handle_signal_stop, handle_step_into_function)
2658 (handle_step_into_function_backward): Update.
2659
4ae57c05
PA
26602014-05-29 Pedro Alves <palves@redhat.com>
2661
2662 * infcall.c (run_inferior_call): Don't check whether the current
2663 thread is running after the proceed call.
2664
329ea579
PA
26652014-05-29 Pedro Alves <palves@redhat.com>
2666 Tom Tromey <tromey@redhat.com>
2667
2668 * NEWS: Mention "maint set target-async", "set mi-async", and that
2669 background execution commands are now always available.
2670 * target.h (target_async_permitted): Update comment.
2671 * target.c (target_async_permitted, target_async_permitted_1):
2672 Default to 1.
2673 (set_target_async_command): Rename to ...
2674 (maint_set_target_async_command): ... this.
2675 (show_target_async_command): Rename to ...
2676 (maint_show_target_async_command): ... this.
2677 (_initialize_target): Adjust.
2678 * infcmd.c (prepare_execution_command): Make extern.
2679 * inferior.h (prepare_execution_command): Declare.
2680 * infrun.c (set_observer_mode): Leave target async alone.
2681 * mi/mi-interp.c (mi_interpreter_init): Install
2682 mi_on_sync_execution_done as sync_execution_done observer.
2683 (mi_on_sync_execution_done): New function.
2684 (mi_execute_command_input_handler): Don't print the prompt if we
2685 just started a synchronous command with an async target.
2686 (mi_on_resume): Check sync_execution before printing prompt.
2687 * mi/mi-main.h (mi_async_p): Declare.
2688 * mi/mi-main.c: Include gdbcmd.h.
2689 (mi_async_p): New function.
2690 (mi_async, mi_async_1): New globals.
2691 (set_mi_async_command, show_mi_async_command, mi_async): New
2692 functions.
2693 (exec_continue): Call prepare_execution_command.
2694 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2695 (mi_execute_async_cli_command): Use mi_async_p.
2696 (_initialize_mi_main): Install "set mi-async". Make
2697 "target-async" a deprecated alias.
2698
92bcb5f9
PA
26992014-05-29 Pedro Alves <palves@redhat.com>
2700
2701 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2702 (_initialize_cli_interp): Adjust.
2703 * event-loop.c: Include "observer.h".
2704 (start_event_loop): Notify 'command_error' observers instead of
2705 calling display_gdb_prompt. Remove FIXME comment.
2706 * event-top.c (display_gdb_prompt): Remove call into the
2707 interpreters.
2708 * inf-loop.c: Include "observer.h".
2709 (inferior_event_handler): Notify 'command_error' observers instead
2710 of calling display_gdb_prompt.
2711 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2712 observers instead of calling display_gdb_prompt.
2713 * interps.c (interp_set): Don't call display_gdb_prompt.
2714 (current_interp_display_prompt_p): Delete.
2715 * interps.h (interp_prompt_p): Delete declaration.
2716 (interp_prompt_p_ftype): Delete.
2717 (struct interp_procs) <prompt_proc_p>: Delete field.
2718 (current_interp_display_prompt_p): Delete declaration.
2719 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2720 (_initialize_mi_interp): Adjust.
2721 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2722 'command_error' observers.
2723 (tui_on_sync_execution_done, tui_on_command_error): New
2724 functions.
2725 (tui_display_prompt_p): Delete.
2726 (_initialize_tui_interp): Adjust.
2727
fd664c91
PA
27282014-05-29 Pedro Alves <palves@redhat.com>
2729
2730 PR gdb/13860
2731 * cli/cli-interp.c: Include infrun.h and observer.h.
2732 (cli_uiout, cli_interp): New globals.
2733 (cli_on_signal_received, cli_on_end_stepping_range)
2734 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2735 functions.
2736 (cli_interpreter_init): Install them as 'end_stepping_range',
2737 'signal_received' 'signal_exited', 'exited' and 'no_history'
2738 observers.
2739 (_initialize_cli_interp): Remove cli_interp local.
2740 * infrun.c (handle_inferior_event): Call the several stop reason
2741 observers instead of printing the stop reason directly.
2742 (end_stepping_range): New function.
2743 (print_end_stepping_range_reason, print_signal_exited_reason)
2744 (print_exited_reason, print_signal_received_reason)
2745 (print_no_history_reason): Make static, and add an uiout
2746 parameter. Print to that instead of to CURRENT_UIOUT.
2747 * infrun.h (print_end_stepping_range_reason)
2748 (print_signal_exited_reason, print_exited_reason)
2749 (print_signal_received_reason print_no_history_reason): New
2750 declarations.
2751 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2752 'mi_uiout'.
2753 <cli_uiout>: New field.
2754 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2755 uiout for CLI output. Install 'signal_received',
2756 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2757 observers.
2758 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2759 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2760 (mi_on_no_history): New functions.
2761 (ui_out_free_cleanup): Delete function.
2762 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2763 instead use the one already stored in the MI interpreter data.
2764 (mi_ui_out): Adjust.
2765 * tui/tui-interp.c: Include infrun.h and observer.h.
2766 (tui_interp): New global.
2767 (tui_on_signal_received, tui_on_end_stepping_range)
2768 (tui_on_signal_exited, tui_on_exited)
2769 (tui_on_no_history): New functions.
2770 (tui_init): Install them as 'end_stepping_range',
2771 'signal_received' 'signal_exited', 'exited' and 'no_history'
2772 observers.
2773 (_initialize_tui_interp): Delete tui_interp local.
2774
8817a6f2
PA
27752014-05-29 Pedro Alves <palves@redhat.com>
2776
2777 PR gdb/15713
2778 * linux-nat.c (linux_nat_resume_callback): Rename the second
2779 parameter to 'except'. Skip LP if it points to EXCEPT.
2780 (linux_nat_resume): Don't mark the event lwp as not stopped
2781 before resuming sibling lwps. Instead ask
2782 linux_nat_resume_callback to skip the event lwp. Mark it as not
2783 stopped after actually resuming it.
2784 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2785 resuming it.
2786 (wait_lwp): Mark the lwp as stopped here.
2787 (stop_wait_callback): Mark the lwp as not stopped right after
2788 resuming it. Don't mark lwps as stopped here.
2789 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2790 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2791
251bde03
PA
27922014-05-29 Pedro Alves <palves@redhat.com>
2793
2794 PR PR15693
2795 * infrun.c (resume): Determine how much to resume depending on
2796 whether the caller wanted a step, not whether we can hardware step
2797 the target. Mark all threads that we intend to run as running,
2798 unless we're calling an inferior function.
2799 (normal_stop): If the thread is running an infcall, don't finish
2800 thread state.
2801 * target.c (target_resume): Don't mark threads as running here.
2802
7f3c0343
JB
28032014-05-28 Joel Brobecker <brobecker@adacore.com>
2804
2805 * serial.c (_initialize_serial): Remove support for
2806 the "set remotebaud" and "show remotebaud" commands.
2807 * NEWS: Add entry documenting the removal of that command.
2808
ee34b3f9
YQ
28092014-05-28 Yao Qi <yao@codesourcery.com>
2810
2811 * charset.c: Fix typo in comments.
2812
add6c04d
GB
28132014-05-27 Gary Benson <gbenson@redhat.com>
2814
2815 * utils.c (internal_vproblem): Prompt for a bug report.
2816
92c48fc5
AW
28172014-05-26 Andy Wingo <wingo@igalia.com>
2818
2819 * guile/scm-arch.c (arscm_mark_arch_smob):
2820 * guile/scm-block.c (bkscm_mark_block_smob)
2821 (bkscm_mark_block_syms_progress_smob):
2822 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2823 * guile/scm-exception.c (exscm_mark_exception_smob):
2824 * guile/scm-frame.c (frscm_mark_frame_smob):
2825 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2826 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2827 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2828 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2829 (ppscm_mark_pretty_printer_worker_smob):
2830 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2831 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2832 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2833 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2834 mark functions.
2835 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2836 function.
2837
b2715b27
AW
28382014-05-26 Andy Wingo <wingo@igalia.com>
2839 Doug Evans <xdje42@gmail.com>
2840
2841 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2842 empty_base_class. All uses updated.
2843 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2844 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2845 Adapt all callers.
2846 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2847 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2848 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2849 (gdbscm_gsmob_has_property_p, add_property_name)
2850 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2851 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2852 (gdb-object-has-property?, gdb-object-properties): Remove.
2853 (gdb-object-kind): Renamed from gsmob-kind.
2854
214ab2da
AW
28552014-05-26 Andy Wingo <wingo@igalia.com>
2856
2857 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2858 * configure: Regenerate.
2859
589fdceb
MM
28602014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2861
2862 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2863
67b5c0c1
MM
28642014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2865
2866 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2867 (replay_memory_access_read_only, replay_memory_access_read_write)
2868 (replay_memory_access_types, replay_memory_access)
2869 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2870 (cmd_set_record_btrace, cmd_show_record_btrace)
2871 (cmd_show_replay_memory_access): New.
2872 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2873 (record_btrace_remove_breakpoint): Replace
2874 record_btrace_allow_memory_access with replay_memory_access.
2875 (_initialize_record_btrace): Add commands.
2876 * NEWS: Announce it.
2877
036cd381
RR
28782014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2879
2880 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2881
c77c1e42
RR
28822014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2883
2884 * MAINTAINERS (Write After Approval): Move self back from
2885 paper trail.
2886
45741a9c
PA
28872014-05-22 Pedro Alves <palves@redhat.com>
2888
2889 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2890 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2891 (disable_randomization, enum exec_direction_kind)
2892 (execution_direction, stop_registers, start_remote)
2893 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2894 (wait_for_inferior, normal_stop, get_last_target_status)
2895 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2896 (insert_step_resume_breakpoint_at_sal)
2897 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2898 (set_step_info, print_stop_event, signal_stop_state)
2899 (signal_print_state, signal_pass_state, signal_stop_update)
2900 (signal_print_update, signal_pass_update)
2901 (update_signals_program_target, clear_exit_convenience_vars)
2902 (displaced_step_dump_bytes, update_observer_mode)
2903 (signal_catch_update, gdb_signal_from_command): Move
2904 declarations ...
2905 * infrun.h: ... to this new file.
2906 * amd64-tdep.c: Include infrun.h.
2907 * annotate.c: Include infrun.h.
2908 * arch-utils.c: Include infrun.h.
2909 * arm-linux-tdep.c: Include infrun.h.
2910 * arm-tdep.c: Include infrun.h.
2911 * break-catch-sig.c: Include infrun.h.
2912 * breakpoint.c: Include infrun.h.
2913 * common/agent.c: Include infrun.h instead of inferior.h.
2914 * corelow.c: Include infrun.h.
2915 * event-top.c: Include infrun.h.
2916 * go32-nat.c: Include infrun.h.
2917 * i386-tdep.c: Include infrun.h.
2918 * inf-loop.c: Include infrun.h.
2919 * infcall.c: Include infrun.h.
2920 * infcmd.c: Include infrun.h.
2921 * infrun.c: Include infrun.h.
2922 * linux-fork.c: Include infrun.h.
2923 * linux-nat.c: Include infrun.h.
2924 * linux-thread-db.c: Include infrun.h.
2925 * monitor.c: Include infrun.h.
2926 * nto-tdep.c: Include infrun.h.
2927 * procfs.c: Include infrun.h.
2928 * record-btrace.c: Include infrun.h.
2929 * record-full.c: Include infrun.h.
2930 * remote-m32r-sdi.c: Include infrun.h.
2931 * remote-mips.c: Include infrun.h.
2932 * remote-notif.c: Include infrun.h.
2933 * remote-sim.c: Include infrun.h.
2934 * remote.c: Include infrun.h.
2935 * reverse.c: Include infrun.h.
2936 * rs6000-tdep.c: Include infrun.h.
2937 * s390-linux-tdep.c: Include infrun.h.
2938 * solib-irix.c: Include infrun.h.
2939 * solib-osf.c: Include infrun.h.
2940 * solib-svr4.c: Include infrun.h.
2941 * target.c: Include infrun.h.
2942 * top.c: Include infrun.h.
2943 * windows-nat.c: Include infrun.h.
2944 * mi/mi-interp.c: Include infrun.h.
2945 * mi/mi-main.c: Include infrun.h.
2946 * python/py-threadevent.c: Include infrun.h.
2947
98eb56a4
PA
29482014-05-22 Pedro Alves <palves@redhat.com>
2949
2950 * infrun.c (handle_inferior_event): Store the exit code for
2951 --return-child-result here, instead of ...
2952 (print_exited_reason): ... here.
2953
17b2616c
PA
29542014-05-21 Pedro Alves <palves@redhat.com>
2955
2956 PR gdb/13860
2957 * gdbthread.h (struct thread_control_state): New field
2958 `command_interp'.
2959 * infrun.c (follow_fork): Copy the new thread control field to the
2960 child fork thread.
2961 (clear_proceed_status_thread): Clear the new thread control field.
2962 (proceed): Set the new thread control field.
2963 * interps.h (command_interp): Declare.
2964 * interps.c (command_interpreter): New global.
2965 (command_interp): New function.
2966 (interp_exec): Set `command_interpreter' while here.
2967 * cli-out.c (cli_uiout_dtor): New function.
2968 (cli_ui_out_impl): Install it.
2969 * mi/mi-interp.c: Include cli-out.h.
2970 (mi_cmd_interpreter_exec): Add comment.
2971 (restore_current_uiout_cleanup): New function.
2972 (ui_out_free_cleanup): New function.
2973 (mi_on_normal_stop): If finishing an execution command started by
2974 a CLI command, or any kind of breakpoint-like event triggered,
2975 print the stop event to the output (CLI) stream.
2976 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2977
5166082f
PA
29782014-05-21 Pedro Alves <palves@redhat.com>
2979
2980 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2981 current source line having changed.
2982 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2983 * infrun.c (normal_stop): Adjust call to
2984 set_current_sal_from_frame.
2985 * source.c (clear_lines_listed_range): New function.
2986 (set_current_source_symtab_and_line, identify_source_line): Clear
2987 the lines listed range.
2988 (line_info): Handle the first "info line" after the current source
2989 line having changed.
2990 * stack.c (print_stack_frame): Remove center handling.
2991 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2992 center sal.line.
2993
c1ee2fb3
PA
29942014-05-21 Pedro Alves <palves@redhat.com>
2995
2996 * inf-child.c (inf_child_mourn_inferior): New function.
2997 * inf-child.h (inf_child_mourn_inferior): New declaration.
2998 * darwin-nat.c (darwin_mourn_inferior): Use
2999 inf_child_mourn_inferior.
3000 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3001 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3002 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3003 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3004 * windows-nat.c (windows_mourn_inferior): Likewise.
3005
5c6d4fb2
DE
30062014-05-21 Doug Evans <xdje42@gmail.com>
3007
250748cb 3008 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3009
4a2722c5
DE
30102014-05-21 Doug Evans <xdje42@gmail.com>
3011
17292b30 3012 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3013 (gdbscm_out_of_range_error): Ditto.
3014 (gdbscm_memory_error): Ditto.
250748cb
DE
3015 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3016 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3017 (gdbscm_out_of_range_error): Update.
3018 (gdbscm_memory_error): Update.
3019 (gdbscm_scm_to_target_string_unsafe): Delete.
3020
6a3cb8e8
PA
30212014-05-21 Pedro Alves <palves@redhat.com>
3022
3023 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3024 globals.
3025 (inf_child_open_target): New function.
3026 (inf_child_open): Use inf_child_open_target to push the target
3027 instead of erroring out.
3028 (inf_child_disconnect, inf_child_close)
3029 (inf_child_maybe_unpush_target): New functions.
3030 (inf_child_target): Install inf_child_disconnect and
3031 inf_child_close. Store a pointer to the returned object.
3032 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3033 declarations.
3034 * target.c (auto_connect_native_target): New global.
3035 (show_default_run_target): New function.
3036 (find_default_run_target): Return NULL if automatically connecting
3037 to the native target is disabled.
3038 (_initialize_target): Install set/show auto-connect-native-target.
3039 * NEWS: Mention "set auto-connect-native-target", and "target
3040 native".
3041 * linux-nat.c (super_close): New global.
3042 (linux_nat_close): Call super_close.
3043 (linux_nat_add_target): Store a pointer to the base class's
3044 to_close method.
3045 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3046 inf_child_maybe_unpush.
3047 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3048 already pushed.
3049 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3050 the inferior. Use inf_child_maybe_unpush_target.
3051 (inf_ttrace_attach): Don't push the target if it is already
3052 pushed.
3053 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3054 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3055 after mourning the inferior. Use inf_child_maybe_unpush_target.
3056 (darwin_attach_pid): Don't push the target if it is already
3057 pushed.
3058 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3059 mourning the inferior. Use inf_child_maybe_unpush_target.
3060 (gnu_detach): Use inf_child_maybe_unpush_target.
3061 * go32-nat.c (go32_create_inferior): Don't push the target if it
3062 is already pushed.
3063 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3064 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3065 (procfs_open): Rename to ...
3066 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3067 comments. Can target_preopen before changing node. Call
3068 inf_child_open_target to push the target explicitly.
3069 (procfs_attach): Don't push the target if it is already pushed.
3070 (procfs_detach): Use inf_child_maybe_unpush_target.
3071 (procfs_create_inferior): Don't push the target if it is already
3072 pushed.
3073 (nto_native_ops): New global.
3074 (procfs_open): Reimplement.
3075 (procfs_native_open): New function.
3076 (init_procfs_targets): Install procfs_native_open as to_open of
3077 "target native". Store a pointer to the "native" target in
3078 nto_native_ops.
3079 * procfs.c (procfs_attach): Don't push the target if it is already
3080 pushed.
3081 (procfs_detach): Use inf_child_maybe_unpush_target.
3082 (procfs_mourn_inferior): Only unpush the target after mourning the
3083 inferior. Use inf_child_maybe_unpush_target.
3084 (procfs_init_inferior): Don't push the target if it is already
3085 pushed.
3086 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3087 if it is already pushed.
3088
930ee1b1
PA
30892014-05-21 Pedro Alves <palves@redhat.com>
3090
3091 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3092 and "procfs" targets are now called "native" instead.
3093
1f5d1b13
PA
30942014-05-21 Pedro Alves <palves@redhat.com>
3095
3096 * go32-nat.c (go32_open): Delete.
3097 (go32_target): Don't override the to_open method.
3098
132f8e03
PA
30992014-05-21 Pedro Alves <palves@redhat.com>
3100
3101 * nto-procfs.c (procfs_can_run): New function.
3102 (nto_procfs_ops): New global.
3103 (init_procfs_targets): New, based on procfs_target. Install
3104 "target native" in addition to "target procfs".
3105 (_initialize_procfs): Call init_procfs_targets instead of adding
3106 the target here.
3107
03c136c3
PA
31082014-05-21 Pedro Alves <palves@redhat.com>
3109
3110 * windows-nat.c (windows_target): Don't override to_shortname,
3111 to_longname or to_doc.
3112
a635d0f3
PA
31132014-05-21 Pedro Alves <palves@redhat.com>
3114
3115 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3116 to_doc.
3117
4f9b5133
PA
31182014-05-21 Pedro Alves <palves@redhat.com>
3119
3120 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3121 to_shortname, to_longname or to_doc.
3122
bc85afde
PA
31232014-05-21 Pedro Alves <palves@redhat.com>
3124
3125 * go32-nat.c (go32_target): Don't override to_shortname,
3126 to_longname or to_doc.
3127
4ebfc96e
PA
31282014-05-21 Pedro Alves <palves@redhat.com>
3129
3130 * inf-child.c (inf_child_open): Remove mention of "child".
3131 (inf_child_target): Rename target to "native" instead of "child".
3132
2648dfed
AA
31332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3134
3135 * Makefile.in (SFILES): Delete "regset.c".
3136 (COMMON_OBS): Delete "regset.o".
3137 * regset.c: Remove.
3138 * regset.h (regset_alloc): Delete prototype.
3139
b13feb94
AA
31402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3141
3142 * sparc-linux-tdep.c (sparc32_linux_gregset)
3143 (sparc32_linux_fpregset): New static regset structures.
3144 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3145 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3146 'fpregset' fields.
3147 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3148 (sparc64_linux_fpregset): New static regset structures.
3149 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3150 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3151 New static regset structures.
3152 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3153 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3154 New static regset structures.
3155 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3156 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3157 New static regset structures.
3158 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3159 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3160 New static regset structures.
3161 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3162
b4fd25c9
AA
31632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3164
3165 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3166 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3167 register maps ("regmaps") from "*regset" to "*regmap". Do this
3168 for all regmap types and variables.
3169 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3170 (sparc32_linux_supply_core_gregset)
3171 (sparc32_linux_collect_core_gregset)
3172 (sparc32_linux_supply_core_fpregset)
3173 (sparc32_linux_collect_core_fpregset): Likewise.
3174 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3175 (sparc_gregmap, sparc_fpregmap): ... these.
3176 (sparc_supply_gregset, sparc_collect_gregset)
3177 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3178 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3179 (_initialize_sparc_nat): Rename regmaps.
3180 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3181 (sparc_gregmap, sparc_fpregmap): ... these.
3182 (sparc_supply_gregset, sparc_collect_gregset)
3183 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3184 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3185 Rename macros to...
3186 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3187 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3188 Likewise.
3189 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3190 Rename to...
3191 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3192 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3193 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3194 regmaps.
3195 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3196 (sparc32_bsd_fpregset): Rename to...
3197 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3198 (sparc32_bsd_fpregmap): ... these.
3199 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3200 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3201 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3202 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3203 (struct sparc_gregmap, struct sparc_fpregmap)
3204 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3205 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3206 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3207 (sparc32_supply_regset, sparc32_collect_gregset)
3208 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3209 prototypes.
3210 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3211 (sparc64_linux_ptrace_gregmap): ... this.
3212 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3213 (_initialize_sparc64_linux_nat): Rename regmaps.
3214 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3215 (sparc64_linux_core_gregmap): ... this.
3216 (sparc64_linux_supply_core_gregset)
3217 (sparc64_linux_collect_core_gregset)
3218 (sparc64_linux_supply_core_fpregset)
3219 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3220 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3221 (sparc64_sol2_fpregset): Rename to...
3222 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3223 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3224 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3225 regmaps.
3226 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3227 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3228 (sparc64_bsd_fpregset): Rename to...
3229 (struct sparc_gregmap, sparc64_sol2_gregmap)
3230 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3231 (sparc64_bsd_fpregmap): ... these.
3232 (sparc64_supply_gregset, sparc64_collect_gregset)
3233 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3234 prototypes.
3235 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3236 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3237 (sparc64fbsd_gregmap): ... this.
3238 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3239 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3240 Rename regmaps.
3241 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3242 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3243 (sparc64nbsd_collect_fpregset): Likewise.
3244 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3245 (sparc64nbsd_gregmap): ... this.
3246 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3247 regmaps.
3248 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3249 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3250 (sparc64obsd_gregmap): ... this.
3251 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3252 regmaps.
3253 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3254 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3255 (sparc32nbsd_gregmap): ... this.
3256 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3257 regmaps.
3258
8fea3224
AA
32592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3260
3261 * score-tdep.c (score7_linux_gregset): New static regset
3262 structure.
3263 (score7_linux_regset_from_core_section): Remove dynamic regset
3264 allocation.
3265 (score_gdbarch_init): Drop allocation of tdep structure.
3266 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3267
24534243
AA
32682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3269
3270 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3271 regset structures.
3272 (am33_regset_from_core_section): Remove dynamic regset
3273 allocations.
3274
b7195f27
AA
32752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3276
3277 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3278 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3279 structures.
3280 (mips_linux_regset_from_core_section): Remove dynamic regset
3281 allocations.
3282 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3283 'gregset64', 'fpregset', and 'fpregset64'.
3284 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3285 deleted tdep fields.
3286
ecc37a5a
AA
32872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3288
3289 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3290 regset structures.
3291 (amd64_regset_from_core_section): Remove dynamic regset
3292 allocations.
3293 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3294 structure.
3295 (amd64obsd_regset_from_core_section): Remove dynamic regset
3296 allocation.
3297 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3298 Likewise.
3299 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3300 x86-common regset supply function.
3301 * i386-tdep.c (i386_collect_gregset): Make static.
3302 (i386_gregset): New global regset structure.
3303 (i386_fpregset, i386_xstateregset): New static regset structures.
3304 (i386_regset_from_core_section): Remove dynamic regset
3305 allocations.
3306 (i386_gdbarch_init): Remove initialization of tdep fields
3307 'gregset', 'fpregset', and 'xstateregset'.
3308 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3309 'fpregset', and 'xstateregset'.
3310 (i386_collect_gregset): Remove prototype.
3311 (i386_gregset): New declaration.
3312 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3313 structure.
3314 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3315 allocation.
3316
b7611c43
AA
33172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3318
3319 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3320 (arm_linux_vfpregset): New static regset structures.
3321 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3322 regset structures.
3323 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3324 and 'vfpregset' fields.
3325
a069a2bd
AA
33262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3327
3328 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3329 (aarch64_linux_fpregset): New static regset structures.
3330 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3331 of regset structures.
3332 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3333 'fpregset' fields.
3334
09424cff
AA
33352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3336
3337 * regset.h (struct regset): Remove gdbarch field.
3338 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3339 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3340 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3341 Likewise.
3342 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3343 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3344 (ppc32_linux_vsxregset): Likewise.
3345 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3346 via the regcache instead of the regset.
3347 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3348 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3349 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3350 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3351 Likewise.
3352
3ca7dae4
AA
33532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3354
3355 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3356 Constify structures.
3357 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3358 (alphanbsd_aout_gregset): Likewise.
3359 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3360 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3361 Likewise.
3362 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3363 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3364 Likewise.
3365 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3366 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3367 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3368 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3369 * m88k-tdep.c (m88k_gregset): Likewise.
3370 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3371 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3372 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3373 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3374 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3375 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3376 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3377 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3378 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3379 Likewise.
3380 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3381 * sh-tdep.h (sh_corefile_gregset): Likewise.
3382 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3383 * vax-tdep.c (vax_gregset): Likewise.
3384
5876f503
JK
33852014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3386
3387 Fix TLS access for -static -pthread.
3388 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3389 (try_thread_db_load_1): Initialize it.
3390 (thread_db_get_thread_local_address): Call it if LM is zero.
3391 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3392 * target.h (struct target_ops) (to_get_thread_local_address): Add
3393 load_module_addr comment.
3394
0256a6ac
PA
33952014-05-21 Pedro Alves <palves@redhat.com>
3396
3397 * dcache.c (dcache_read_memory_partial): If reading the cache line
3398 fails, fallback to reading just the memory the caller wanted.
3399
227533ac
DE
34002014-05-20 Doug Evans <dje@google.com>
3401
3402 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3403 instead of get_current_arch.
3404
936d2992
PA
34052014-05-20 Pedro Alves <palves@redhat.com>
3406
3407 * NEWS: Mention that compare-sections now works with all targets.
3408
3409 * remote.c (PACKET_qCRC): New enum value.
3410 (remote_verify_memory): Don't send qCRC if the target has no
3411 execution. Use packet_support/packet_ok. If the target doesn't
3412 support the qCRC packet, fallback to a deep memory copy.
3413 (compare_sections_command): Say "target image" instead of "remote
3414 executable".
3415 (_initialize_remote): Add PACKET_qCRC to the list of config
3416 packets that have no associated command. Extend comment.
3417 * target.c (simple_verify_memory, default_verify_memory): New
3418 function.
3419 * target.h (struct target_ops) <to_verify_memory>: Default to
3420 default_verify_memory.
3421 (simple_verify_memory): New declaration.
3422 * target-delegates.c: Regenerate.
3423
e59fa00f
MM
34242014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3425
3426 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3427
f2205de0
HZ
34282014-05-20 Hui Zhu <hui@codesourcery.com>
3429 Yao Qi <yao@codesourcery.com>
3430
3431 PR backtrace/16558
3432 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3433 and change address of sp and pc.
3434
c4e54771
TT
34352014-05-19 Tom Tromey <tromey@redhat.com>
3436
3437 * gdbtypes.c (rank_function): Use XNEWVEC.
3438 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3439
73051182
DE
34402014-05-19 Doug Evans <dje@google.com>
3441
3442 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3443 build_type_unit_groups and moved closer to only caller. Remove
3444 arguments. All references updated. Remove outdated .gdb_index
3445 comment.
3446 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3447 build_type_psymtabs_1.
3448
8832e7e3
DE
34492014-05-19 Doug Evans <dje@google.com>
3450
3451 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3452 n_type_unit_groups, all_type_unit_groups. All uses removed.
3453 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3454 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3455 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3456 (add_type_unit_group_to_table): Delete.
3457
cd8ae15e
DE
34582014-05-19 Doug Evans <dje@google.com>
3459
3460 * eval.c (evaluate_subexp_standard): Add some comments.
3461
08f4850b
DE
34622014-05-17 Doug Evans <xdje42@gmail.com>
3463
3464 * progspace.c (remove_program_space): Delete, unused.
3465 * progspace.h (remove_program_space): Ditto.
3466
bed8455c
DE
34672014-05-17 Doug Evans <xdje42@gmail.com>
3468
3469 * inferior.c (prune_inferiors): Fix comment.
3470 (remove_inferior_command): Call prune_program_spaces.
3471
8d551b02
DE
34722014-05-16 Doug Evans <dje@google.com>
3473
3474 New command line option -D.
3475 * NEWS: Mention it.
3476 * main.c (set_gdb_data_directory): New function.
3477 (captured_main): Recognize -D. Flag error for --data-directory "".
3478 Call set_gdb_data_directory.
3479 (print_gdb_help): Print --data-directory, -D.
3480 * main.h (set_gdb_data_directory): Declare.
3481 * top.c (staged_gdb_datadir): New static global.
3482 (set_gdb_datadir): Call set_gdb_data_directory
3483 (show_gdb_datadir): New function.
3484 (init_main): Update init of data-directory parameter.
3485
18848e28
GF
34862014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3487
3488 Import the "dirfd" gnulib module.
3489 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3490 * gnulib/aclocal.m4: Update.
3491 * gnulib/config.in: Update.
3492 * gnulib/configure: Update.
3493 * gnulib/import/Makefile.am: Update.
3494 * gnulib/import/Makefile.in: Update.
3495 * gnulib/import/dirfd.c: New.
3496 * gnulib/import/m4/dirfd.m4: New.
3497 * gnulib/import/m4/gnulib-cache.m4: Update.
3498 * gnulib/import/m4/gnulib-comp.m4: Update.
3499
95c64f92
YQ
35002014-05-16 Pierre Muller <muller@sourceware.org>
3501 Yao Qi <yao@codesourcery.com>
3502
3503 * valprint.c (print_wchar): Move the code on checking whether
3504 W is a printable wide char to the default branch of switch
3505 statement below. Call wchar_printable instead of gdb_iswprint.
3506
cac395ea
TM
35072014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3508
19679eca 3509 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
3510 ldr.w and ldrd instructions.
3511
83655187
DE
35122014-05-15 Doug Evans <dje@google.com>
3513
3514 * dwarf2read.c (read_structure_type): Delete outdated comments.
3515
dd756689
TT
35162014-05-14 Tom Tromey <tromey@redhat.com>
3517
3518 * macrocmd.c (print_macro_definition): Reindent.
3519
75ddda77
DE
35202014-05-13 Doug Evans <xdje42@gmail.com>
3521
3522 * python/py-cmd.c (cmdpy_completer): Add comment.
3523 (completers): Make const.
3524
b0f16a3e
SM
35252014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3526
3527 * infrun.c (resume): Remove should_resume (unused). Move up
3528 declaration of resume_ptid.
3529
033c3379
TT
35302014-05-13 Tom Tromey <tromey@redhat.com>
3531
3532 * language.h (unop_type_check): Remove.
3533 (binop_type_check): Don't declare.
3534
9b44a3a5
AA
35352014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3536
3537 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3538 call to regcache_raw_collect.
3539
303a33fa
SM
35402014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3541
3542 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3543 mi_console->quote as the quoting character.
3544
196100a0
SM
35452014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3546
3547 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3548
f989a1c8
TT
35492014-04-29 Tom Tromey <tromey@redhat.com>
3550
3551 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3552 "show debug varobj".
3553
9404b58f
KM
35542014-05-07 Kyle McMartin <kyle@redhat.com>
3555
3556 Pushed by Joel Brobecker <brobecker@adacore.com>.
3557 * aarch64-tdep.c (aarch64_software_single_step): New function.
3558 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3559 with aarch64_software_single_step.
3560
5e49ba57
JB
35612014-05-05 Joel Brobecker <brobecker@adacore.com>
3562
3563 GDB 7.7.1 released.
3564
c888a17d
KS
35652014-05-05 Keith Seitz <keiths@redhat.com>
3566
3567 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3568 variable or history value is successfully parsed.
3569
290a839c
YQ
35702014-05-05 Yao Qi <yao@codesourcery.com>
3571 Pedro Alves <palves@redhat.com>
3572
3573 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3574 address of blocks that intersects the requested range. Trim
3575 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3576 sections.
3577 * ctf.c (ctf_xfer_partial): Likewise.
3578
91256dc2
YQ
35792014-05-05 Yao Qi <yao@codesourcery.com>
3580
3581 * printcmd.c (display_command): Remove the check to
3582 target_has_execution.
3583
07284463
MK
35842014-05-03 Mark Kettenis <kettenis@gnu.org>
3585
3586 * ppcobsd-nat.c: Include "obsd-nat.h".
3587 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3588 add_target.
3589 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3590
30a1e6cc
SDJ
35912014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3592
3593 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3594 and 16-bit signed and unsigned arguments. Update comment.
3595 (stap_parse_probe_arguments): Extend code to handle such
3596 arguments. Use warning instead of complaint to notify about
3597 unrecognized bitness.
3598
f33da99a
SDJ
35992014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3600
3601 PR breakpoints/16889
3602 * stap-probe.c (stap_parse_probe_arguments): Simplify
3603 check for non-prefixed probes (i.e., probes whose
3604 arguments do not start with "N@"). Always set the
3605 argument type to a sane value.
3606
95cf3b38
DT
36072014-05-01 David Taylor <dtaylor@emc.com>
3608
3609 * remote.c (compare_sections_command): Add -r option to compare
3610 all loadable read-only sections.
3611
1cfdf534
SC
36122014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3613
3614 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3615 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3616 Update all callers.
3617 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3618 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3619 Remove unused CORE_ADDR argument. Update all callers.
3620
ca4f7f8b
PA
36212014-04-29 Pedro Alves <palves@redhat.com>
3622
3623 * remote.c (struct packet_config) <detect>: Extend comment.
3624 (add_packet_config_cmd): Don't set the config's detect or support
3625 fields here.
3626 (init_all_packet_configs): Also initialize the config's 'detect'
3627 field.
3628 (reset_all_packet_configs_support): New function.
3629 (remote_open_1): Call reset_all_packet_configs_support instead of
3630 init_all_packet_configs.
3631 (_initialize_remote): Initialize all packet configs. Assert that
3632 all packets have an associated command, except a few known
3633 outliers.
3634
11c1ba78
JB
36352014-04-28 Joel Brobecker <brobecker@adacore.com>
3636
3637 * dwarf2read.c (read_subrange_type): Handle dynamic
3638 DW_AT_lower_bound attributes.
3639
8739bc53
JB
36402014-04-28 Joel Brobecker <brobecker@adacore.com>
3641
3642 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3643 dynamic bounds before computing its upper bound.
3644 (ada_discrete_type_low_bound): Same as above with the lower bound.
3645
6f8a3220
JB
36462014-04-28 Joel Brobecker <brobecker@adacore.com>
3647
3648 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3649 range types. Adjust the array handling implementation to
3650 take advantage of this change.
3651 (resolve_dynamic_range): New function, mostly extracted from
3652 resolve_dynamic_bounds.
3653 (resolve_dynamic_array): New function, mostly extracted from
3654 resolve_dynamic_bounds.
3655 (resolve_dynamic_bounds): Delete.
3656 (resolve_dynamic_type): Reimplement. Add handling of
3657 TYPE_CODE_RANGE types.
3658
4d072ce4
JB
36592014-04-28 Joel Brobecker <brobecker@adacore.com>
3660
3661 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3662 handling of parallel ___XA types.
3663
52865325
JB
36642014-04-28 Joel Brobecker <brobecker@adacore.com>
3665
3666 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3667 unnecessary second call to static_unwrap_type.
3668
433e77fa
HZ
36692014-04-27 Hui Zhu <hui@codesourcery.com>
3670
3671 * stack.c (print_frame_info): Call do_gdb_disassembly with
3672 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3673
b51a69ee
DE
36742014-04-26 Doug Evans <xdje42@gmail.com>
3675
3676 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3677
7ae1a6a6
PA
36782014-04-25 Pedro Alves <palves@redhat.com>
3679
3680 PR server/16255
3681 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3682 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3683 and newline from built string.
3684 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3685 (linux_ptrace_attach_fail_reason): ... this.
3686 * linux-nat.c (linux_nat_attach): Adjust to use
3687 linux_ptrace_attach_fail_reason.
3688
4082afcc
PA
36892014-04-25 Pedro Alves <palves@redhat.com>
3690
3691 * remote.c (struct remote_state): Remove multi_process_aware,
3692 non_stop_aware, cond_tracepoints, cond_breakpoints,
3693 breakpoint_commands, fast_tracepoints, static_tracepoints,
3694 install_in_trace, disconnected_tracing,
3695 enable_disable_tracepoints, string_tracing, and
3696 augmented_libraries_svr4_read fields.
3697 (remote_multi_process_p): Move further below in the file.
3698 (struct packet_config): Add comments.
3699 (update_packet_config): Delete function.
3700 (show_packet_config_cmd): Use packet_config_support.
3701 (add_packet_config_cmd): Use NULL as set callback.
3702 (packet_ok): "set remote foo-packet"-style commands no longer
3703 change config->supported -- adjust.
3704 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3705 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3706 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3707 (PACKET_QNonStop, PACKET_multiprocess_feature)
3708 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3709 (PACKET_DisconnectedTracing_feature)
3710 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3711 (set_remote_protocol_packet_cmd): Delete function.
3712 (packet_config_support, packet_support): New functions.
3713 (set_remote_protocol_Z_packet_cmd): Don't call
3714 update_packet_config.
3715 (remote_query_attached, remote_pass_signals)
3716 (remote_program_signals, remote_threads_info)
3717 (remote_threads_extra_info, remote_start_remote): Use
3718 packet_support.
3719 (remote_start_remote): Use packet_config_support and
3720 packet_support.
3721 (init_all_packet_configs): Set all packets to unknown support,
3722 instead of calling update_packet_config.
3723 (remote_check_symbols): Use packet_support.
3724 (remote_supported_packet): Unconditionally set the packet config's
3725 support status.
3726 (remote_multi_process_feature, remote_non_stop_feature)
3727 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3728 (remote_breakpoint_commands_feature)
3729 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3730 (remote_install_in_trace_feature)
3731 (remote_disconnected_tracing_feature)
3732 (remote_enable_disable_tracepoint_feature)
3733 (remote_string_tracing_feature)
3734 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3735 (remote_protocol_features): Adjust to use remote_supported_packet
3736 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3737 "ConditionalTracepoints", "ConditionalBreakpoints",
3738 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3739 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3740 "EnableDisableTracepoints", and "tracenz".
3741 (remote_query_supported): Use packet_support.
3742 (remote_open_1): Adjust.
3743 (extended_remote_attach_1): Use packet_support. Switch on the
3744 result of packet_ok instead of checking whether the packet ended
3745 up disabled.
3746 (remote_vcont_resume): Use packet_support.
3747 (remote_resume, remote_stop_ns, fetch_register_using_p)
3748 (remote_prepare_to_store, store_register_using_P)
3749 (check_binary_download, remote_write_bytes): Use packet_support.
3750 (remote_vkill): Use packet_support. Switch on the result of
3751 packet_ok instead of checking whether the packet ended up
3752 disabled.
3753 (extended_remote_supports_disable_randomization): Use
3754 packet_support.
3755 (extended_remote_run): Switch on the result of packet_ok instead
3756 of checking whether the packet ended up disabled.
3757 (remote_insert_breakpoint, remote_remove_breakpoint)
3758 (remote_insert_watchpoint, remote_remove_watchpoint)
3759 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3760 packet_support.
3761 (remote_search_memory): Use packet_config_support.
3762 (remote_get_thread_local_address, remote_get_tib_address)
3763 (remote_hostio_send_command, remote_can_execute_reverse): Use
3764 packet_support.
3765 (remote_supports_cond_tracepoints)
3766 (remote_supports_cond_breakpoints)
3767 (remote_supports_fast_tracepoints)
3768 (remote_supports_static_tracepoints)
3769 (remote_supports_install_in_trace)
3770 (remote_supports_enable_disable_tracepoint)
3771 (remote_supports_string_tracing)
3772 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3773 the packet config says the feature is enabled or disabled.
3774 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3775 (remote_get_trace_status): Use packet_support.
3776 (remote_set_disconnected_tracing): Adjust to check whether the
3777 feature is enabled with packet_support.
3778 (remote_set_trace_buffer_size, remote_use_agent)
3779 (remote_can_use_agent, remote_supports_btrace): Use
3780 packet_support.
3781 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3782 Use packet_config_support.
3783 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3784 the packet config says the feature is enabled or disabled.
3785 (set_range_stepping): Use packet_support.
3786
bdb52a22
TT
37872014-04-25 Tom Tromey <tromey@redhat.com>
3788
3789 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3790 argument.
3791
e9475ead
SA
37922014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3793
3794 * NEWS: Mention support for C99 variable length arrays.
3795
82eacd52
JB
37962014-04-24 Joel Brobecker <brobecker@adacore.com>
3797
3798 * ada-lang.c (standard_exc): Expand introductory comment.
3799
01f9f808
MS
38002014-04-24 Michael Sturm <michael.sturm@mintel.com>
3801 Walfred Tedeschi <walfred.tedeschi@intel.com>
3802
3803 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3804 AVX512 registers.
3805 (amd64_linux_read_description): Add code to handle AVX512 xstate
3806 mask and return respective tdesc.
3807 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3808 and features/i386/x32-avx512-linux.c.
3809 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3810 (amd64_linux_core_read_description): Add code to handle AVX512
3811 xstate mask and return respective tdesc.
3812 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3813 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3814 calculation.
3815 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3816 (tdesc_amd64_avx512_linux): New prototype.
3817 (tdesc_x32_avx512_linux): Likewise.
3818 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3819 features/i386/x32-avx512.c.
3820 (amd64_ymm_avx512_names): New register names for pseudo
3821 registers YMM16-31.
3822 (amd64_ymmh_avx512_names): New register names for raw registers
3823 YMMH16-31.
3824 (amd64_k_names): New register names for K registers.
3825 (amd64_zmmh_names): New register names for ZMM raw registers.
3826 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3827 (amd64_xmm_avx512_names): New register names for XMM16-31
3828 registers.
3829 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3830 registers.
3831 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3832 if feature is present.
3833 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3834 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3835 (AMD64_NUM_REGS): Adjust to new number of registers.
3836 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3837 registers supplied via XSTATE by AVX512 registers.
3838 (i386_linux_read_description): Add case for AVX512.
3839 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3840 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3841 (i386_linux_core_read_description): Add case for AVX512.
3842 (i386_linux_init_abi): Install supported register note section
3843 for AVX512.
3844 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3845 AVX512.
3846 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3847 registers to be number of zmm7h + 1.
3848 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3849 * i386-tdep.c: Include features/i386/i386-avx512.c.
3850 (i386_zmm_names): Add ZMM pseudo register names array.
3851 (i386_zmmh_names): Add ZMM raw register names array.
3852 (i386_k_names): Add K raw register names array.
3853 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3854 registers. AVX512 has 16 more ZMM registers than there are YMM
3855 registers.
3856 (i386_zmmh_regnum_p): Add function to look up register number of
3857 ZMM raw registers.
3858 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3859 (i386_k_regnum_p): Likewise for K raw registers.
3860 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3861 registers added by AVX512.
3862 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3863 registers added by AVX512.
3864 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3865 added by AVX512.
3866 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3867 (i386_pseudo_register_name): Add ZMM pseudo registers.
3868 (i386_zmm_type): Construct and return vector registers type for ZMM
3869 registers.
3870 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3871 ZMM0-31 pseudo registers and K registers.
3872 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3873 and YMM16-31 registers from register cache.
3874 (i386_pseudo_register_write): Add code to write K, ZMM and
3875 YMM16-31 registers.
3876 (i386_register_reggroup_p): Add code to include/exclude AVX512
3877 registers in/from respective register groups.
3878 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3879 registers if feature is present in xcr0.
3880 (i386_gdbarch_init): Add code to initialize AVX512 feature
3881 variables in tdep structure, wire in pseudo registers and call
3882 initialize_tdesc_i386_avx512.
3883 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3884 variables.
3885 (i386_regnum): Add AVX512 registers.
3886 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3887 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3888 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3889 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3890 512 bits wide.
3891 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3892 (i386_ymm_avx512_regnum_p): Likewise.
3893 (i386_k_regnum_p): Likewise.
3894 (i386_zmm_regnum_p): Likewise.
3895 (i386_zmmh_regnum_p): Likewise.
3896 * i387-tdep.c : Update year in copyright notice.
3897 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3898 XSAVE buffer.
3899 (XSAVE_YMM_AVX512_ADDR): New macro.
3900 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3901 XSAVE buffer.
3902 (XSAVE_XMM_AVX512_ADDR): New macro.
3903 (xsave_avx512_k_offset): New table for K register offsets in
3904 XSAVE buffer.
3905 (XSAVE_AVX512_K_ADDR): New macro.
3906 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3907 in XSAVE buffer.
3908 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3909 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3910 buffer.
3911 (i387_collect_xsave): Add code to collect AVX512 registers from
3912 XSAVE buffer.
3913 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3914 of XMM16-31 registers.
3915 (I387_NUM_K_REGS): New define for number of K registers.
3916 (I387_K0_REGNUM): New define for K0 register number.
3917 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3918 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3919 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3920 registers.
3921 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3922 (I387_XMM16_REGNUM): New define for XMM16 register number.
3923 (I387_YMM0_REGNUM): New define for YMM0 register number.
3924 (I387_KEND_REGNUM): New define for last K register number.
3925 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3926 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3927 number.
3928 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3929 number.
3930 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3931 size.
3932 * features/Makefile: Add AVX512 related files.
3933 * features/i386/32bit-avx512.xml: New file.
3934 * features/i386/64bit-avx512.xml: Likewise.
3935 * features/i386/amd64-avx512-linux.c: Likewise.
3936 * features/i386/amd64-avx512-linux.xml: Likewise.
3937 * features/i386/amd64-avx512.c: Likewise.
3938 * features/i386/amd64-avx512.xml: Likewise.
3939 * features/i386/i386-avx512-linux.c: Likewise.
3940 * features/i386/i386-avx512-linux.xml: Likewise.
3941 * features/i386/i386-avx512.c: Likewise.
3942 * features/i386/i386-avx512.xml: Likewise.
3943 * features/i386/x32-avx512-linux.c: Likewise.
3944 * features/i386/x32-avx512-linux.xml: Likewise.
3945 * features/i386/x32-avx512.c: Likewise.
3946 * features/i386/x32-avx512.xml: Likewise.
3947 * regformats/i386/amd64-avx512-linux.dat: New file.
3948 * regformats/i386/amd64-avx512.dat: Likewise.
3949 * regformats/i386/i386-avx512-linux.dat: Likewise.
3950 * regformats/i386/i386-avx512.dat: Likewise.
3951 * regformats/i386/x32-avx512-linux.dat: Likewise.
3952 * regformats/i386/x32-avx512.dat: Likewise.
3953 * NEWS: Add note about new support for AVX512.
3954
3955
08351840
PA
39562014-04-23 Pedro Alves <palves@redhat.com>
3957
3958 * breakpoint.c (insert_bp_location): Tolerate errors if the
3959 breakpoint is set in a user-loaded objfile.
3960 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3961 location is marked shlib_disabled. If the breakpoint is set in a
3962 user-loaded objfile is a GDB-side memory breakpoint, validate it
3963 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3964 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3965 flag.
3966 * mem-break.c (memory_validate_breakpoint): New function.
3967 * objfiles.c (userloaded_objfile_contains_address_p): New
3968 function.
3969 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3970 * target.h (memory_validate_breakpoint): New declaration.
3971
076855f9
PA
39722014-04-23 Pedro Alves <palves@redhat.com>
3973
3974 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3975 the breakpoint is set in a shared library, only suppress
3976 errors for software breakpoints, not hardware breakpoints.
3977
483805cf
PA
39782014-04-22 Pedro Alves <palves@redhat.com>
3979
3980 * infrun.c (schedlock_applies): New function, factored out from
3981 find_thread_needs_step_over.
3982 (find_thread_needs_step_over): Use it.
3983 (switch_back_to_stepped_thread): Always clear trap_expected if the
3984 step over is finished. Return early if scheduler locking applies.
3985 Look for the stepping thread and a potential step-over thread with
3986 a single loop.
3987 (currently_stepping_or_nexting_callback): Delete.
3988
a75fef0e
NC
39892014-04-22 Nick Clifton <nickc@redhat.com>
3990
3991 * NEWS: Mention that ARM sim now supports tracing.
3992
48b6e87e
YQ
39932014-04-22 Yao Qi <yao@codesourcery.com>
3994
3995 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3996 to ...
3997 * tracefile.c (tracefile_fetch_registers): ... it. New
3998 function.
3999 * tracefile.h (tracefile_fetch_registers): Declare.
4000 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4001 tracefile_fetch_registers.
4002
17617f2d
EZ
40032014-04-19 Eli Zaretskii <eliz@gnu.org>
4004
4005 PR gdb/14018
4006 * windows-nat.c (thread_rec): Don't display a warning when
4007 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4008 fails for any reason, set th->suspended to -1, so that we don't
4009 try to resume such a thread. Also, don't return NULL in these
4010 cases, to avoid completely ruin the session due to "PC register is
4011 not available" error.
4012 (do_windows_fetch_inferior_registers): Check errors in
4013 GetThreadContext call.
4014 (windows_continue): Accept an additional argument KILLED; if not
4015 zero, ignore errors in the SetThreadContext call, since the
4016 inferior was killed and is shutting down.
4017 (windows_resume, get_windows_debug_event)
4018 (windows_create_inferior, windows_mourn_inferior)
4019 (windows_kill_inferior): All callers of windows_continue changed
4020 to adjust to its new calling sequence.
4021
5723a6fd
YQ
40222014-04-19 Yao Qi <yao@codesourcery.com>
4023
4024 * ctf.c (ctf_open): Call post_create_inferior.
4025
614d5099
YQ
40262014-04-19 Yao Qi <yao@codesourcery.com>
4027
4028 * ctf.c (handle_id): New static variable.
4029 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4030 value. Get the declaration of event "register" and get length
4031 of field "contents".
4032
dac3e710
YQ
40332014-04-19 Yao Qi <yao@codesourcery.com>
4034
4035 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4036
2bca57ba
SC
40372014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4038
4039 * valops.c (oload_method_static): Remove unnecessary argument
4040 METHOD. Update all callers.
4041
51d48146
PA
40422014-04-18 Pedro alves <palves@redhat.com>
4043 Tom Tromey <tromey@redhat.com>
4044
4045 PR backtrace/15558
4046 * frame.c (get_prev_frame_1): Rename to ...
4047 (get_prev_frame_always): ... this, and make extern. Adjust.
4048 (skip_artificial_frames): Use get_prev_frame_always.
4049 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4050 (get_frame_unwind_stop_reason): Adjust to rename.
4051 * frame.h (get_prev_frame_always): Declare.
4052 * inline-frame.c: Include frame.h.
4053 (inline_frame_this_id): Use get_prev_frame_always.
4054
1bdad2e0
TG
40552014-04-18 Tristan Gingold <gingold@adacore.com>
4056
4057 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4058 code by using bfd_mach_o_get_base_address.
4059
7ce16bd4
UW
40602014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4061
4062 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4063 (spu_ax_pseudo_register_collect): New function.
4064 (spu_ax_pseudo_register_push_stack): Likewise.
4065 (spu_dwarf_reg_to_regnum): Likewise.
4066 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4067
2ed3c037
UW
40682014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4069
4070 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4071 Replace FRAME argument with FRAME_ID.
4072 * gdbarch.c, gdbarch.h: Regenerate.
4073 * findvar.c (default_value_from_register): Add GDBARCH argument;
4074 replace FRAME by FRAME_ID. No longer call get_frame_id.
4075 (value_from_register): Update call to gdbarch_value_from_register.
4076 * value.h (default_value_from_register): Update prototype.
4077 * s390-linux-tdep.c (s390_value_from_register): Update interface
4078 and call to default_value_from_register.
4079 * spu-tdep.c (spu_value_from_register): Likewise.
4080
4081 * findvar.c (address_from_register): Remove TYPE argument.
4082 Do not call value_from_register; use gdbarch_value_from_register
4083 with null_frame_id instead.
4084 * value.h (address_from_register): Update prototype.
4085 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4086 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4087 address_from_register interface change.
4088
71e50e83
YQ
40892014-04-17 Yao Qi <yao@codesourcery.com>
4090
4091 * gdbtypes.h: Update comments to link to types and macros'
4092 definitions.
4093
7a23c549
SC
40942014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4095
4096 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4097
22869d73
KS
40982014-04-16 Keith Seitz <keiths@redhat.com>
4099
4100 PR gdb/15827
4101 * dwarf2read.c (skip_one_die): Check that all relative-offset
4102 sibling DIEs fall within range of the current reader's buffer.
4103 (read_partial_die): Likewise.
4104
c4f87ca6
KS
41052014-04-16 Keith Seitz <keiths@redhat.com>
4106
4107 PR c++/16597
4108 * cp-namespace.c (lookup_symbol_file): If the type name of
4109 `this' is NULL, return immediately.
4110
b50c8614
KS
41112014-04-14 Keith Seitz <keiths@redhat.com>
4112
4113 PR c++/16253
4114 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4115 from symbol_matches_domain in symtab.c. All local callers
4116 of symbol_matches_domain updated.
4117 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4118 search STRUCT_DOMAIN.
4119 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4120 independently. standard_lookup will do that automatically.
4121 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4122 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4123 (cp_lookup_symbol_in_namespace): Likewise.
4124 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4125 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4126 may return a STRUCT_DOMAIN match.
4127 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4128 * cp-support.c: Include language.h.
4129 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4130 VAR_DOMAIN.
4131 * psymtab.c (match_partial_symbol): Compare the requested
4132 domain with the symbol's domain directly.
4133 (lookup_partial_symbol): Likewise.
4134 * symtab.c (lookup_symbol_in_language): Explain when/why
4135 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4136 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4137 appropriate languages.
4138 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4139 and moved to ada-lang.c
4140 (lookup_block_symbol): Explain that this function only returns
4141 symbol matching the requested DOMAIN.
4142 Compare the requested domain with the symbol's domain directly.
4143 (iterate_over_symbols): Compare the requested domain with the
4144 symbol's domain directly.
4145 * symtab.h (symbol_matches_domain): Remove.
4146
3d567982
TT
41472014-04-14 Tom Tromey <tromey@redhat.com>
4148
4149 PR c++/15246:
4150 * c-exp.y (type_aggregate_p): New function.
4151 (qualified_name, classify_inner_name): Use it.
4152 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4153 and TYPE_TARGET_TYPE of an enum type.
4154 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4155 an enum type.
4156 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4157 handle TYPE_DECLARED_CLASS.
4158 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4159 types.
4160 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4161 * valops.c (enum_constant_from_type): New function.
4162 (value_aggregate_elt): Use it.
4163 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4164 TYPE_CODE_ENUM.
4165
c848d642
TT
41662014-04-14 Tom Tromey <tromey@redhat.com>
4167
4168 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4169 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4170 const.
4171 * value.h (value_aggregate_elt): Update.
4172
0626fc76
TT
41732014-04-14 Tom Tromey <tromey@redhat.com>
4174
4175 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4176
5ecaaa66
SA
41772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4178
4179 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4180 (evaluate_subexp_standard): Pass noside argument.
4181 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4182 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4183 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4184 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4185 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4186
1612e0c0
SA
41872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4188
4189 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4190 points to a constant blob.
4191
c451ebe5
SA
41922014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4193
4194 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4195 property and store it as the high bound and flag the range accordingly.
4196 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4197 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4198 * gdbtypes.h (enum range_flags): New enum.
4199 (struct range_bounds): Add flags member.
4200
1d42e4c4
SA
42012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4202
4203 * c-typeprint.c (c_type_print_varspec_suffix): Added
4204 check for not yet resolved high bound. If unresolved, print
4205 "variable length" string to the console instead of random
4206 length.
4207
9f1f738a
SA
42082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4209
4210 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4211 value.
4212 (ada_template_to_fixed_record_type_1): Likewise.
4213 (ada_to_fixed_type_1): Likewise.
4214 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4215 (cp_print_value): Likewise.
4216 * d-valprint.c (dynamic_array_type): Likewise.
4217 * findvar.c (address_of_variable): Likewise.
4218 * jv-valprint.c (java_value_print): Likewise.
4219 * valops.c (value_ind): Likewise.
4220 * value.c (coerce_ref): Likewise.
4221
3c8452d4
SA
42222014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4223
4224 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4225 value and retrieve the dynamic type size.
4226
4ad88275
SA
42272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4228
4229 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4230 passed to sizeof is dynamic evaluate the argument to compute the length.
4231
80180f79
SA
42322014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4233 Joel Brobecker <brobecker@adacore.com>
4234
4235 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4236 (dwarf2_evaluate_property): New function.
4237 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4238 * dwarf2read.c (attr_to_dynamic_prop): New function.
4239 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4240 attribute.
4241 * gdbtypes.c: Include dwarf2loc.h.
4242 (is_dynamic_type): New function.
4243 (resolve_dynamic_type): New function.
4244 (resolve_dynamic_bounds): New function.
4245 (get_type_length): New function.
4246 (check_typedef): Use get_type_length to compute type length.
4247 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4248 (TYPE_LOW_BOUND_KIND): New macro.
4249 (is_dynamic_type): New function prototype.
4250 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4251 to resolve dynamic properties of the type. Update comment.
4252 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4253
a1556843
RH
42542014-04-14 Richard Henderson <rth@redhat.com>
4255
4256 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4257
0be03e84
DE
42582014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4259 Doug Evans <xdje42@gmail.com>
4260
4261 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4262 dereference TYPE_CODE_REF values.
4263
6b662e19
JB
42642014-04-11 Joel Brobecker <brobecker@adacore.com>
4265
4266 Revert the following changes due to regressions:
4267
4268 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4269 (dwarf2_evaluate_property): New function.
4270 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4271 * dwarf2read.c (attr_to_dynamic_prop): New function.
4272 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4273 attribute.
4274 * gdbtypes.c: Include dwarf2loc.h.
4275 (is_dynamic_type): New function.
4276 (resolve_dynamic_type): New function.
4277 (resolve_dynamic_bounds): New function.
4278 (get_type_length): New function.
4279 (check_typedef): Use get_type_length to compute type length.
4280 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4281 (TYPE_LOW_BOUND_KIND): New macro.
4282 (is_dynamic_type): New function prototype.
4283 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4284 to resolve dynamic properties of the type. Update comment.
4285 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4286
4287 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4288 passed to sizeof is dynamic evaluate the argument to compute the length.
4289
4290 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4291 value and retrieve the dynamic type size.
4292
4293 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4294 (ada_template_to_fixed_record_type_1): Likewise.
4295 (ada_to_fixed_type_1): Likewise.
4296 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4297 (cp_print_value): Likewise.
4298 * d-valprint.c (dynamic_array_type): Likewise.
4299 * eval.c (evaluate_subexp_with_coercion): Likewise.
4300 * findvar.c (address_of_variable): Likewise.
4301 * jv-valprint.c (java_value_print): Likewise.
4302 * valops.c (value_ind): Likewise.
4303 * value.c (coerce_ref): Likewise.
4304
4305 * c-typeprint.c (c_type_print_varspec_suffix): Added
4306 check for not yet resolved high bound. If unresolved, print
4307 "variable length" string to the console instead of random
4308 length.
4309
4310 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4311 property and store it as the high bound and flag the range accordingly.
4312 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4313 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4314 * gdbtypes.h (enum range_flags): New enum.
4315 (struct range_bounds): Add flags member.
4316
4317 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4318 points to a constant blob.
4319
4320 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4321 (evaluate_subexp_standard): Pass noside argument.
4322 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4323 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4324 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4325 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4326 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4327
245a5f0b
KS
43282014-04-11 Keith Seitz <keiths@redhat.com>
4329
4330 PR c++/16675
4331 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4332 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4333 reference types.
4334
3bce8237
SA
43352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4336
4337 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4338 (evaluate_subexp_standard): Pass noside argument.
4339 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4340 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4341 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4342 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4343 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4344
92b09522
SA
43452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4346
4347 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4348 points to a constant blob.
4349
e1969afb
SA
43502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4351
4352 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4353 property and store it as the high bound and flag the range accordingly.
4354 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4355 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4356 * gdbtypes.h (enum range_flags): New enum.
4357 (struct range_bounds): Add flags member.
4358
b86138fb
SA
43592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4360
4361 * c-typeprint.c (c_type_print_varspec_suffix): Added
4362 check for not yet resolved high bound. If unresolved, print
4363 "variable length" string to the console instead of random
4364 length.
4365
bcd629a4
SA
43662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4367
4368 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4369 (ada_template_to_fixed_record_type_1): Likewise.
4370 (ada_to_fixed_type_1): Likewise.
4371 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4372 (cp_print_value): Likewise.
4373 * d-valprint.c (dynamic_array_type): Likewise.
4374 * eval.c (evaluate_subexp_with_coercion): Likewise.
4375 * findvar.c (address_of_variable): Likewise.
4376 * jv-valprint.c (java_value_print): Likewise.
4377 * valops.c (value_ind): Likewise.
4378 * value.c (coerce_ref): Likewise.
4379
04b19544
SA
43802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4381
4382 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4383 value and retrieve the dynamic type size.
4384
26cb189f
SA
43852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4386
4387 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4388 passed to sizeof is dynamic evaluate the argument to compute the length.
4389
37c1ab67
SA
43902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4391
4392 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4393 (dwarf2_evaluate_property): New function.
4394 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4395 * dwarf2read.c (attr_to_dynamic_prop): New function.
4396 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4397 attribute.
4398 * gdbtypes.c: Include dwarf2loc.h.
4399 (is_dynamic_type): New function.
4400 (resolve_dynamic_type): New function.
4401 (resolve_dynamic_bounds): New function.
4402 (get_type_length): New function.
4403 (check_typedef): Use get_type_length to compute type length.
4404 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4405 (TYPE_LOW_BOUND_KIND): New macro.
4406 (is_dynamic_type): New function prototype.
4407 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4408 to resolve dynamic properties of the type. Update comment.
4409 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4410
729efb13
SA
44112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4412
4413 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4414 declaring high/low bounds and change uses accordingly. Call
4415 create_range_type instead of create_static_range_type.
4416 * gdbtypes.c (create_range_type): New function.
4417 (create_range_type): Convert bounds into struct bound_prop and pass
4418 them to create_range_type.
4419 * gdbtypes.h (struct bound_prop): New struct.
4420 (create_range_type): New function prototype.
4421 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4422 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4423 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4424 part of the bound.
4425 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4426
0c9c3474
SA
44272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4428
4429 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4430 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4431 * ada-lang.c: All uses of create_range_type updated.
4432 * coffread.c: All uses of create_range_type updated.
4433 * dwarf2read.c: All uses of create_range_type updated.
4434 * f-exp.y: All uses of create_range_type updated.
4435 * m2-valprint.c: All uses of create_range_type updated.
4436 * mdebugread.c: All uses of create_range_type updated.
4437 * stabsread.c: All uses of create_range_type updated.
4438 * valops.c: All uses of create_range_type updated.
4439 * valprint.c: All uses of create_range_type updated.
4440
9d497a19
PA
44412014-04-10 Pedro Alves <palves@redhat.com>
4442
4443 * breakpoint.c (single_step_breakpoints)
4444 (single_step_gdbarch): Move up in the file.
4445 (one_breakpoint_xfer_memory): New function, factored out from ...
4446 (breakpoint_xfer_memory): ... here. Also process single-step
4447 breakpoints.
4448
15a9128a
TG
44492014-04-09 Tristan Gingold <gingold@adacore.com>
4450
4451 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4452 comments.
4453 (darwin_decode_exception_message): Free port only after use.
4454
9c97a070
PL
44552014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4456
4457 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4458 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4459 when setting the size of call_length.
4460
7af389b8
SC
44612014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4462
4463 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4464 dereference TYPE_CODE_REF values.
4465
86ad98c3
JB
44662014-04-07 Joel Brobecker <brobecker@adacore.com>
4467
4468 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4469 end of warning message.
4470
b0aeadb3
DE
44712014-04-03 Doug Evans <dje@google.com>
4472
4473 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4474 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4475
5979d6b6
AM
44762014-04-02 Alan Modra <amodra@gmail.com>
4477
4478 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4479 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4480 (struct symbol_file_add_from_memory_args): Add size field.
4481 (find_vdso_size): New function.
4482 (add_vsyscall_page): Attempt to find vdso size.
4483
0d60c288
DE
44842014-04-01 Doug Evans <dje@google.com>
4485
4486 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4487
a41f2563
TG
44882014-04-01 Tristan Gingold <gingold@adacore.com>
4489
4490 * darwin-nat.c (darwin_encode_reply): Add prototype.
4491 (darwin_decode_exception_message): Reply to unknown inferiors.
4492 (darwin_decode_message): Handle message by id. Ignore message
4493 to unknown inferior.
4494 (darwin_wait): Discard unknown messages, add debug trace.
4495
11a865c8
DE
44962014-03-31 Doug Evans <dje@google.com>
4497
4498 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4499 comp_dir_string.
4500
770e7fc7
DE
45012014-03-31 Doug Evans <dje@google.com>
4502
4503 New option "set print symbol-loading".
4504 * NEWS: Mention it.
4505 * solib.c (solib_read_symbols): Only print symbol loading messages
4506 if requested.
4507 (solib_add): If symbol loading is in "brief" mode, notify user
4508 symbols are being loaded.
4509 (reload_shared_libraries_1): Ditto.
4510 * symfile.c (print_symbol_loading_off): New static global.
4511 (print_symbol_loading_brief): New static global.
4512 (print_symbol_loading_full): New static global.
4513 (print_symbol_loading_enums): New static global.
4514 (print_symbol_loading): New static global.
4515 (print_symbol_loading_p): New function.
4516 (symbol_file_add_with_addrs): Only print symbol loading messages
4517 if requested.
4518 (_initialize_symfile): Register "print symbol-loading" set/show
4519 command.
4520 * symfile.h (print_symbol_loading_p): Declare.
4521
c32c64b7
DE
45222014-03-30 Doug Evans <xdje42@gmail.com>
4523
4524 * infrun.c (set_last_target_status): New function.
4525 (handle_inferior_event): Call it.
4526
7c0bc051
DE
45272014-03-30 Doug Evans <xdje42@gmail.com>
4528
4529 * inferior.h (enum stop_kind): Improve comment.
4530
8776cfe9
JB
45312014-03-28 Joel Brobecker <brobecker@adacore.com>
4532
4533 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4534 a reference, strip the reference layer before calling
4535 the lang_ops value_has_mutated callback.
4536
410a0ff2
SDJ
45372014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4538
4539 Remove some globals from our parser.
4540 * language.c (unk_lang_parser): Add "struct parser_state"
4541 argument.
4542 * language.h (struct language_defn) <la_parser>: Likewise.
4543 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4544 (initialize_expout): Add "struct parser_state" argument.
4545 Rewrite function to use the parser state.
4546 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4547 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4548 write_exp_elt_longcst, write_exp_elt_dblcst,
4549 write_exp_elt_decfloatcst, write_exp_elt_type,
4550 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4551 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4552 write_dollar_variable): Likewise.
4553 (parse_exp_in_context_1): Use parser state.
4554 (insert_type_address_space): Add "struct parser_state" argument.
4555 Use parser state.
4556 (increase_expout_size): New function.
4557 * parser-defs.h: Forward declare "struct language_defn" and
4558 "struct parser_state".
4559 (expout, expout_size, expout_ptr): Remove extern declarations.
4560 (parse_gdbarch, parse_language): Rewrite macro declarations to
4561 accept the parser state.
4562 (struct parser_state): New struct.
4563 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4564 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4565 write_exp_elt_decfloatcst, write_exp_elt_type,
4566 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4567 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4568 write_exp_msymbol, write_dollar_variable,
4569 mark_struct_expression, insert_type_address_space): Add "struct
4570 parser_state" argument.
4571 (increase_expout_size): New function.
4572 * utils.c (do_clear_parser_state): New function.
4573 (make_cleanup_clear_parser_state): Likewise.
4574 * utils.h (make_cleanup_clear_parser_state): New function
4575 prototype.
4576 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4577 Update calls to write_exp* in order to pass the parser state.
4578 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4579 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4580 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4581 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4582 * stap-probe.c (stap_parse_register_operand): Likewise.
4583 (stap_parse_single_operand): Likewise.
4584 (stap_parse_argument_1): Likewise.
4585 (stap_parse_argument): Use parser state.
4586 * stap-probe.h: Include "parser-defs.h".
4587 (struct stap_parse_info) <pstate>: New field.
4588 * c-exp.y (parse_type): Rewrite to use parser state.
4589 (yyparse): Redefine to c_parse_internal.
4590 (pstate): New global variable.
4591 (parse_number): Add "struct parser_state" argument.
4592 (write_destructor_name): Likewise.
4593 (type_exp): Update calls to write_exp* and similars in order to
4594 use parser state.
4595 (exp1, exp, variable, qualified_name, space_identifier,
4596 typename, typebase): Likewise.
4597 (write_destructor_name, parse_number, lex_one_token,
4598 classify_name, classify_inner_name, c_parse): Add "struct
4599 parser_state" argument. Update function to use parser state.
4600 * c-lang.h: Forward declare "struct parser_state".
4601 (c_parse): Add "struct parser_state" argument.
4602 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4603 (yyparse): Redefine macro to ada_parse_internal.
4604 (pstate): New variable.
4605 (write_int, write_object_renaming, write_var_or_type,
4606 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4607 type_int, type_long, type_long_long, type_float, type_double,
4608 type_long_double, type_char, type_boolean, type_system_address):
4609 Add "struct parser_state" argument.
4610 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4611 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4612 var_or_type, aggregate, aggregate_component_list,
4613 positional_list, others, component_group,
4614 component_associations): Update calls to write_exp* and similar
4615 functions in order to use parser state.
4616 (ada_parse, write_var_from_sym, write_int,
4617 write_exp_op_with_string, write_object_renaming,
4618 find_primitive_type, write_selectors, write_ambiguous_var,
4619 write_var_or_type, write_name_assoc, type_int, type_long,
4620 type_long_long, type_float, type_double, type_long_double,
4621 type_char, type_boolean, type_system_address): Add "struct
4622 parser_state" argument. Adjust function to use parser state.
4623 * ada-lang.c (parse): Likewise.
4624 * ada-lang.h: Forward declare "struct parser_state".
4625 (ada_parse): Add "struct parser_state" argument.
4626 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4627 calls to both functions.
4628 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4629 parser state.
4630 (yyparse): Redefine macro to f_parse_internal.
4631 (pstate): New variable.
4632 (parse_number): Add "struct parser_state" argument.
4633 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4634 and similars in order to use parser state.
4635 (parse_number): Adjust code to use parser state.
4636 (yylex): Likewise.
4637 (f_parse): New function.
4638 * f-lang.h: Forward declare "struct parser_state".
4639 (f_parse): Add "struct parser_state" argument.
4640 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4641 parser state.
4642 (yyparse): Redefine macro for java_parse_internal.
4643 (pstate): New variable.
4644 (push_expression_name, push_expression_name, insert_exp): Add
4645 "struct parser_state" argument.
4646 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4647 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4648 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4649 PostIncrementExpression, PostDecrementExpression,
4650 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4651 UnaryExpressionNotPlusMinus, CastExpression,
4652 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4653 RelationalExpression, EqualityExpression, AndExpression,
4654 ExclusiveOrExpression, InclusiveOrExpression,
4655 ConditionalAndExpression, ConditionalOrExpression,
4656 ConditionalExpression, Assignment, LeftHandSide): Update
4657 calls to write_exp* and similars in order to use parser state.
4658 (parse_number): Ajust code to use parser state.
4659 (yylex): Likewise.
4660 (java_parse): New function.
4661 (push_variable): Add "struct parser_state" argument. Adjust
4662 code to user parser state.
4663 (push_fieldnames, push_qualified_expression_name,
4664 push_expression_name, insert_exp): Likewise.
4665 * jv-lang.h: Forward declare "struct parser_state".
4666 (java_parse): Add "struct parser_state" argument.
4667 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4668 parser state.
4669 (yyparse): Redefine macro to m2_parse_internal.
4670 (pstate): New variable.
4671 (type_exp, exp, fblock, variable, type): Update calls to
4672 write_exp* and similars to use parser state.
4673 (yylex): Likewise.
4674 (m2_parse): New function.
4675 * m2-lang.h: Forward declare "struct parser_state".
4676 (m2_parse): Add "struct parser_state" argument.
4677 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4678 * objc-lang.h: Forward declare "struct parser_state".
4679 (end_msglist): Add "struct parser_state" argument.
4680 * p-exp.y (parse_type): Rewrite macro to use parser state.
4681 (yyparse): Redefine macro to pascal_parse_internal.
4682 (pstate): New variable.
4683 (parse_number): Add "struct parser_state" argument.
4684 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4685 write_exp* and similars in order to use parser state.
4686 (parse_number, yylex): Adjust code to use parser state.
4687 (pascal_parse): New function.
4688 * p-lang.h: Forward declare "struct parser_state".
4689 (pascal_parse): Add "struct parser_state" argument.
4690 * go-exp.y (parse_type): Rewrite macro to use parser state.
4691 (yyparse): Redefine macro to go_parse_internal.
4692 (pstate): New variable.
4693 (parse_number): Add "struct parser_state" argument.
4694 (type_exp, exp1, exp, variable, type): Update calls to
4695 write_exp* and similars in order to use parser state.
4696 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4697 to use parser state.
4698 (go_parse): Likewise.
4699 * go-lang.h: Forward declare "struct parser_state".
4700 (go_parse): Add "struct parser_state" argument.
4701
342587c4
DE
47022014-03-27 Doug Evans <dje@google.com>
4703
4704 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4705
33e80786
DE
47062014-03-27 Doug Evans <dje@google.com>
4707
4708 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4709 Remove argument abbrev_section. All callers updated.
4710
1dbab08b
DE
47112014-03-27 Doug Evans <dje@google.com>
4712
4713 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4714 addr_base, ranges_base.
4715
318d3177
KS
47162014-03-26 Keith Seitz <keiths@redhat.com>
4717
4718 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4719 types, not VAR_DOMAIN.
4720
1e54db15
SL
47212014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4722
4723 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4724 "ra" registers.
4725 * features/nios2-linux.c: Regenerated.
4726 * features/nios2.c: Regenerated.
4727
d3839ede
PA
47282014-03-25 Pedro Alves <palves@redhat.com>
4729
4730 * cli/cli-script.c (script_from_file): Force the interpreter to
4731 sync mode.
4732
7588d2ec
PL
47332014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4734
4735 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4736 small stack allocation.
4737
a6290449
TG
47382014-03-24 Tristan Gingold <gingold@adacore.com>
4739
4740 * darwin-nat.c (exc_server): Remove unused prototype.
4741 (darwin_dump_message): Correctly display data on x86_64.
4742 (darwin_encode_reply): Fix style.
4743 Add comments and fix indentation.
4744
31ae9d24 47452014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
4746
4747 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4748
6339bfc4
DE
47492014-03-22 Doug Evans <xdje42@gmail.com>
4750
4751 * infcmd.c: Whitespace fixes.
4752 (interrupt_command): Merge two function comments into one.
4753
0a07590b
DE
47542014-03-22 Doug Evans <xdje42@gmail.com>
4755
4756 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4757 All uses updated.
4758
b55fbac4
YQ
47592014-03-22 Yao Qi <yao@codesourcery.com>
4760
4761 * remote.c (target_read_live_memory): Remove.
4762 (memory_xfer_live_readonly_partial): Rename it to
4763 remote_xfer_live_readonly_partial. Remove argument 'object'.
4764 All callers updated. Call remote_read_bytes_1
4765 instead of target_read_live_memory.
4766 * tracepoint.c (set_traceframe_number): Remove.
4767 (make_cleanup_restore_traceframe_number): Likewise .
4768 * tracepoint.h (set_traceframe_number): Remove declaration.
4769 (make_cleanup_restore_traceframe_number): Likewise.
4770
9217e74e
YQ
47712014-03-22 Yao Qi <yao@codesourcery.com>
4772
4773 * remote.c (remote_read_bytes): Move code on reading from the
4774 remote stub to ...
4775 (remote_read_bytes_1): ... here. New function.
4776
8acf9577
YQ
47772014-03-22 Yao Qi <yao@codesourcery.com>
4778
4779 * ctf.c (ctf_xfer_partial): Check the return value of
4780 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4781 return TARGET_XFER_UNAVAILABLE.
4782 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4783 * target.c (target_read_live_memory): Move it to remote.c.
4784 (memory_xfer_live_readonly_partial): Likewise.
4785 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4786 * remote.c (target_read_live_memory): Moved from target.c.
4787 (memory_xfer_live_readonly_partial): Likewise.
4788 (remote_read_bytes): Factored out from
4789 memory_xfer_partial_1.
4790
feef67ab
DE
47912014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4792
4793 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4794 NULL pointer.
4795
b65dc60b
PA
47962014-03-21 Pedro Alves <palves@redhat.com>
4797
4798 * infrun.c (normal_stop): Extend comment.
4799
b4ab256d
HZ
48002014-03-21 Hui Zhu <hui@codesourcery.com>
4801 Pedro Alves <palves@redhat.com>
4802
4803 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4804 static buffer.
4805 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4806 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4807 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4808
deba7593
MR
48092014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4810
4811 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4812 `z' formatted output modifier.
4813
1bff71c3
SDJ
48142014-03-20 Tom Tromey <tromey@redhat.com>
4815 Sergio Durigan Junior <sergiodj@redhat.com>
4816
4817 * probe.c (parse_probes): Turn assert into an ordinary error.
4818 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4819 exceptions when parsing probes. Rearrange the code for clarity.
4820
90e28950
TT
48212014-03-20 Tom Tromey <tromey@redhat.com>
4822
4823 PR gdb/14135
4824 * top.c (execute_command): Only dispatch events if the command
4825 started the target.
4826
beb460e8
PA
48272014-03-20 Tom Tromey <tromey@redhat.com>
4828
4829 PR cli/15718
4830 * infcall.c: Include event-top.h.
4831 (run_inferior_call): Call async_disable_stdin if needed.
4832
99619bea
PA
48332014-03-20 Pedro Alves <palves@redhat.com>
4834
4835 * infrun.c (prepare_to_proceed): Delete.
4836 (thread_still_needs_step_over): New function.
4837 (find_thread_needs_step_over): New function.
4838 (proceed): If the current thread needs a step-over, set its
4839 steping_over_breakpoint flag. Adjust to use
4840 find_thread_needs_step_over instead of prepare_to_proceed.
4841 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4842 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4843 breakpoint.
4844 (switch_back_to_stepped_thread): Step over breakpoints of all
4845 threads not the stepping thread, before switching back to the
4846 stepping thread.
4847
2adfaa28
PA
48482014-03-20 Pedro Alves <palves@redhat.com>
4849
4850 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4851 extern.
4852 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4853 * infrun.c (saved_singlestep_ptid)
4854 (stepping_past_singlestep_breakpoint): Delete.
4855 (resume): Remove stepping_past_singlestep_breakpoint handling.
4856 (proceed): Store the prev_pc of the stepping thread too.
4857 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4858 singlestep_pc.
4859 (enum infwait_states): Delete infwait_thread_hop_state.
4860 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4861 field.
4862 (handle_inferior_event): Adjust.
4863 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4864 handling and the thread-hop code. Before removing single-step
4865 breakpoints, check whether the thread hit a single-step breakpoint
4866 of another thread. If it did, the trap is not a random signal.
4867 (switch_back_to_stepped_thread): If the event thread hit a
4868 single-step breakpoint, unblock it before switching to the
4869 stepping thread. Handle the case of the stepped thread having
4870 advanced already.
4871 (keep_going): Handle the case of the current thread moving past a
4872 single-step breakpoint.
4873
31e77af2
PA
48742014-03-20 Pedro Alves <palves@redhat.com>
4875
4876 PR breakpoints/7143
4877 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4878 are being stepped over.
4879 (breakpoint_address_match): Make extern.
4880 * breakpoint.h (breakpoint_address_match): New declaration.
4881 * inferior.h (stepping_past_instruction_at): New declaration.
4882 * infrun.c (struct step_over_info): New type.
4883 (step_over_info): New global.
4884 (set_step_over_info, clear_step_over_info)
4885 (stepping_past_instruction_at): New functions.
4886 (handle_inferior_event): Clear the step-over info when
4887 trap_expected is cleared.
4888 (resume): Remove now stale comment.
4889 (clear_proceed_status): Clear step-over info.
4890 (proceed): Adjust step-over handling to set or clear the step-over
4891 info instead of removing all breakpoints.
4892 (handle_signal_stop): When setting up a thread-hop, don't remove
4893 breakpoints here.
4894 (stop_stepping): Clear step-over info.
4895 (keep_going): Adjust step-over handling to set or clear step-over
4896 info and then always inserting breakpoints, instead of removing
4897 all breakpoints when stepping over one.
4898
b9f437de
PA
48992014-03-20 Pedro Alves <palves@redhat.com>
4900
4901 * infrun.c (previous_inferior_ptid): Adjust comment.
4902 (deferred_step_ptid): Delete.
4903 (infrun_thread_ptid_changed, prepare_to_proceed)
4904 (init_wait_for_inferior): Adjust.
4905 (handle_signal_stop): Delete deferred_step_ptid handling.
4906
06c868a8
JK
49072014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4908
4909 PR gdb/15358
4910 * defs.h (sync_quit_force_run): New declaration.
4911 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4912 * event-top.c (async_sigterm_handler): New declaration.
4913 (async_sigterm_token): New variable.
4914 (async_init_signals): Create also async_sigterm_token.
4915 (async_sigterm_handler): New function.
4916 (sync_quit_force_run): New variable.
4917 (handle_sigterm): Replace quit_force call by other calls.
4918 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4919
dea80df0
MR
49202014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4921
4922 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4923 offset into SPE pseudo registers.
4924
0c7e1a46
PA
49252014-03-18 Pedro Alves <palves@redhat.com>
4926
4927 PR gdb/13860
4928 * inferior.h (print_stop_event): Declare.
4929 * infrun.c (print_stop_event): New, factored out from ...
4930 (normal_stop): ... this.
4931 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4932 of bpstat_print/print_stack_frame.
4933
9c1fcd01
TT
49342014-03-17 Tom Tromey <tromey@redhat.com>
4935
4936 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4937
11aa919a
PMR
49382014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4939
4940 * ada-lang.c (decode_constrained_packed_array): Perform a
4941 minimal coercion for reference with coerce_ref instead of
4942 ada_coerce_ref.
4943
d4ccb5e0
TG
49442014-03-17 Tristan Gingold <gingold@adacore.com>
4945
4946 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4947 (darwin_solib_create_inferior_hook): Emit a warning if version
4948 is unhandled.
4949
49840f2a
UW
49502014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4951
4952 * python/py-value.c (get_field_flag): Cast flag_name argument to
4953 PyObject_GetAttrString to support Python 2.4.
4954
ed4123e5
JK
49552014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4956
4957 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4958 (Global Maintainers): Remove Jan Kratochvil.
4959
d6b64346
PA
49602014-03-14 Pedro Alves <palves@redhat.com>
4961
4962 * inferior.h (terminal_ours_for_output): Rename to ...
4963 (child_terminal_ours_for_output): ... this.
4964 (terminal_save_ours): Rename to ...
4965 (child_terminal_save_ours): ... this.
4966 (terminal_ours): Rename to ...
4967 (child_terminal_ours): ... this.
4968 (terminal_inferior): Rename to ...
4969 (child_terminal_inferior): ... this.
4970 (terminal_init_inferior): Rename to ...
4971 (child_terminal_init_inferior): ... this.
4972 (terminal_init_inferior_with_pgrp): Rename to ...
4973 (child_terminal_init_inferior_with_pgrp): ... this.
4974 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4975 (child_terminal_init_with_pgrp): ... this.
4976 (terminal_save_ours): Rename to ...
4977 (child_terminal_save_ours): ... this.
4978 (terminal_init_inferior): Rename to ...
4979 (child_terminal_init): ... this. Adjust.
4980 (terminal_inferior): Rename to ...
4981 (child_terminal_inferior): ... this.
4982 (terminal_ours_for_output): Rename to ...
4983 (child_terminal_ours_for_output): ... this. Adjust.
4984 (terminal_ours): Rename to ...
4985 (child_terminal_ours): ... this.
4986 (terminal_ours_1): Rename to ...
4987 (child_terminal_ours_1): ... this. Adjust.
4988 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4989 * windows-nat.c (do_initial_windows_stuff): Adjust.
4990 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4991 (gnu_terminal_init): ... this. Adjust.
4992 (gnu_target): Adjust.
4993 * inf-child.c (inf_child_target): Adjust.
4994
5a1e8c7a
DE
49952014-03-13 Doug Evans <xdje42@gmail.com>
4996
4997 PR guile/16612
4998 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4999 new eq?-hashtab.
5000
350e1a76
DE
50012014-03-13 Doug Evans <xdje42@gmail.com>
5002
5003 * value.c (record_latest_value): Call release_value_or_incref
5004 instead of release_value.
5005
a69900ae
PA
50062014-03-13 Pedro Alves <palves@redhat.com>
5007
5008 * procfs.c (procfs_target): Don't override to_shortname,
5009 to_longname or to_doc.
5010
5db9f0bd
PA
50112014-03-13 Pedro Alves <palves@redhat.com>
5012
5013 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5014 Unix in user visible strings.
5015
5e3a2c38
SS
50162014-03-12 Stan Shebs <stan@codesourcery.com>
5017
5018 * gdbtypes.h: Annotate comments for Doxygen, add a page
5019 block comment with some general info.
5020
8bc2fe48
PA
50212014-03-12 Pedro Alves <palves@redhat.com>
5022
5023 * infcmd.c (prepare_execution_command): New function, factored out
5024 from several execution commands.
5025 (run_command_1, continue_command, step_1, jump_command)
5026 (signal_command, until_command, advance_command, finish_command)
5027 (attach_command): Use prepare_execution_command.
5028
638c5f49
OJ
50292014-03-12 Omair Javaid <omair.javaid@linaro.org>
5030
5031 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5032 (MAX_BPTS): Define.
5033 (MAX_WPTS): Define.
5034 (struct arm_linux_thread_points): Removed.
5035 (struct arm_linux_process_info): New.
5036 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5037 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5038 (arm_linux_find_breakpoints_by_tid): Removed.
5039 (struct arch_lwp_info): New.
5040 (arm_linux_find_process_pid): New functions.
5041 (arm_linux_add_process): New functions.
5042 (arm_linux_process_info_get): New functions.
5043 (arm_linux_forget_process): New function.
5044 (arm_linux_get_debug_reg_state): New function.
5045 (struct update_registers_data): New.
5046 (update_registers_callback): New function.
5047 (arm_linux_insert_hw_breakpoint1): Updated.
5048 (arm_linux_remove_hw_breakpoint1): Updated.
5049 (arm_linux_insert_hw_breakpoint): Updated.
5050 (arm_linux_remove_hw_breakpoint): Updated.
5051 (arm_linux_insert_watchpoint): Updated.
5052 (arm_linux_remove_watchpoint): Updated.
5053 (arm_linux_new_thread): Updated.
5054 (arm_linux_prepare_to_resume): New function.
5055 (arm_linux_new_fork): New function.
5056 (_initialize_arm_linux_nat): Updated.
5057
6d03af93
PA
50582014-03-12 Pedro Alves <palves@redhat.com>
5059
5060 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5061
b3ccfe11
TT
50622014-03-12 Tom Tromey <tromey@redhat.com>
5063
5064 * inf-child.c (return_zero): New function.
5065 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5066 * aix-thread.c (aix_thread_inferior_created): New function.
5067 (aix_thread_attach): Remove.
5068 (init_aix_thread_ops): Don't set to_attach.
5069 (_initialize_aix_thread): Register inferior_created observer.
5070 * corelow.c (init_core_ops): Don't set to_attach or
5071 to_create_inferior.
5072 * exec.c (init_exec_ops): Don't set to_attach or
5073 to_create_inferior.
5074 * infcmd.c (run_command_1): Use find_run_target. Make direct
5075 target calls.
5076 (attach_command): Use find_attach_target. Make direct target
5077 calls.
5078 * record-btrace.c (init_record_btrace_ops): Don't set
5079 to_create_inferior.
5080 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5081 Remove.
5082 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5083 set to_create_inferior.
5084 * target.c (complete_target_initialization): Add assertion.
5085 (target_create_inferior): Remove.
5086 (find_default_attach, find_default_create_inferior): Remove.
5087 (find_attach_target, find_run_target): New functions.
5088 (find_default_is_async_p, find_default_can_async_p)
5089 (target_supports_non_stop, target_attach): Remove.
5090 (init_dummy_target): Don't set to_create_inferior or
5091 to_supports_non_stop.
5092 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5093 TARGET_DEFAULT_FUNC.
5094 <to_create_inferior>: Add comment.
5095 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5096 TARGET_DEFAULT_RETURN.
5097 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5098 (find_attach_target, find_run_target): Declare.
5099 (target_create_inferior): Remove.
5100 (target_has_execution_1): Update comment.
5101 (target_supports_non_stop): Remove.
5102 * target-delegates.c: Rebuild.
5103
91f83b02
PA
51042014-03-12 Pedro Alves <palves@redhat.com>
5105
5106 * inf-child.h: Update comment to not mention Unix.
5107
f1aea813
PA
51082014-03-12 Pedro Alves <palves@redhat.com>
5109
5110 * inf-child.c: Update top comment to not mention Unix. Add
5111 generic comment describing how this target is meant to be used.
5112 (inf_child_post_attach, inf_child_post_startup_inferior)
5113 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5114 Unix in comment.
5115
ee8e9165
PA
51162014-03-12 Pedro Alves <palves@redhat.com>
5117
5118 * nto-procfs.c: Include inf-child.h.
5119 (procfs_ops): Delete global.
5120 (procfs_can_run): Delete method.
5121 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5122 target pointer instead of referencing procfs_ops.
5123 (procfs_prepare_to_store): Delete.
5124 (init_procfs_ops): Delete function.
5125 (procfs_target): New function, based on init_procfs_ops, but
5126 inherit inf_child_target.
5127 (_initialize_procfs): Use procfs_target.
5128
51a9c8c5
PA
51292014-03-12 Pedro Alves <palves@redhat.com>
5130
5131 * windows-nat.c: Include inf-child.h.
5132 (windows_ops): Delete global.
5133 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5134 methods.
5135 (init_windows_ops): Delete function.
5136 (windows_target): New function, based on init_windows_ops, but
5137 inherit inf_child_target.
5138 (_initialize_windows_nat): Use windows_target. Install x86
5139 specific target methods here.
5140
c1966e26
DE
51412014-03-10 Doug Evans <xdje42@gmail.com>
5142
5143 * guile/guile.c (call_initialize_gdb_module): New function.
5144 (initialize_guile): Replace call to scm_init_guile with call to
5145 scm_with_guile.
5146
023db19c
JB
51472014-03-10 Joel Brobecker <brobecker@adacore.com>
5148
5149 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5150 in call to TYPE_CODE macro.
5151
5ec18f2b
JG
51522014-03-10 Jerome Guitton <guitton@adacore.com>
5153
8668be63
JB
5154 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5155 Resolve tagged types to full view.
5ec18f2b 5156
7d03f2eb
HZ
51572014-03-10 Hui Zhu <hui@codesourcery.com>
5158
5159 * target.h (target_insert_breakpoint): Remove "hardware" from its
5160 comments.
5161
c5164cbc
DE
51622014-03-07 Doug Evans <dje@google.com>
5163
5164 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5165
c4a3fee2
DE
51662014-03-07 Doug Evans <dje@google.com>
5167
5168 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5169 Remove unused local comp_dir_attr. Assert exactly one of
5170 stub_comp_unit_die, stub_comp_dir is non-NULL.
5171
3156469c
JB
51722014-03-07 Joel Brobecker <brobecker@adacore.com>
5173
5174 * target.h (complete_target_initialization, add_target):
5175 Add comment.
5176
c1a7b7c6
PA
51772014-03-07 Pedro Alves <palves@redhat.com>
5178
5179 * go32-nat.c: Include inf-child.h.
5180 (go32_ops): Delete global.
5181 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5182 Delete methods.
5183 (go32_create_inferior): Push the passed in target pointer instead
5184 of referencing go32_ops.
5185 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5186 (go32_target): New function, based on init_go32_ops, but inherit
5187 inf_child_target.
5188 (_initialize_go32_nat): Use go32_target. Move parts of
5189 init_go32_ops here.
5190
d3c1a85f
JB
51912014-03-06 Joel Brobecker <brobecker@adacore.com>
5192
5193 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5194 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5195 SYMBOL_VALUE_ADDRESS.
5196 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5197
5fa1d40e
YQ
51982014-03-06 Yao Qi <yao@codesourcery.com>
5199
5200 * breakpoint.c (get_tracepoint_by_number): Remove argument
5201 optional_p. All callers updated. Adjust comments. Update
5202 output message.
5203 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5204
0c13193f
YQ
52052014-03-06 Yao Qi <yao@codesourcery.com>
5206
5207 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5208 early if get_number returns zero. Use 'p' instead of 'args'.
5209
2217da06
YQ
52102014-03-06 Yao Qi <yao@codesourcery.com>
5211
5212 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5213 message.
5214
cc3da688
YQ
52152014-03-06 Yao Qi <yao@codesourcery.com>
5216
5217 PR breakpoints/16508
5218 * tracepoint.c (check_trace_running): New function.
5219 (trace_find_command): Move code to check_trace_running and
5220 call check_trace_running.
5221 (trace_find_pc_command): Likewise.
5222 (trace_find_tracepoint_command): Likewise.
5223 (trace_find_line_command): Likewise.
5224 (trace_find_range_command): Likewise.
5225 * tracepoint.h (check_trace_running): Likewise.
5226 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5227
6a5f844b
YQ
52282014-03-06 Yao Qi <yao@codesourcery.com>
5229
5230 * target.h (struct target_ops) <to_traceframe_info>: Use
5231 TARGET_DEFAULT_NORETURN (tcomplain ()).
5232 * target-delegates.c: Regenerated.
5233
0f26cec1
PA
52342014-03-05 Pedro Alves <palves@redhat.com>
5235
5236 PR gdb/16575
5237 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5238 void. Update comment.
5239 (dcache_xfer_memory): Delete.
5240 (dcache_read_memory_partial): New, based on the read bits of
5241 dcache_xfer_memory.
5242 (dcache_update): Add status parameter. Use ULONGEST for len, and
5243 adjust. Discard cache lines if the reason for the update was
5244 error.
5245 * dcache.h (dcache_xfer_memory): Delete declaration.
5246 (dcache_read_memory_partial): New declaration.
5247 (dcache_update): Update prototype.
5248 * target.c (raw_memory_xfer_partial): Update the dcache here.
5249 (memory_xfer_partial_1): Don't handle dcache writes here.
5250
b2b255bd
MF
52512014-03-05 Mike Frysinger <vapier@gentoo.org>
5252
5253 * remote-sim.c (gdbsim_load): Add const to prog.
5254
5d9cf8a4
TT
52552014-03-03 Tom Tromey <tromey@redhat.com>
5256
5257 * elfread.c (probe_key): Change to bfd_data.
5258 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5259 now per-BFD, not per-objfile.
5260 * stap-probe.c (stap_probe_destroy): Update comment.
5261 (handle_stap_probe): Allocate on the per-BFD obstack.
5262
729662a5
TT
52632014-03-03 Tom Tromey <tromey@redhat.com>
5264
5265 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5266 * breakpoint.c (create_longjmp_master_breakpoint): Use
5267 get_probe_address.
5268 (add_location_to_breakpoint, bkpt_probe_insert_location)
5269 (bkpt_probe_remove_location): Update.
5270 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5271 * elfread.c (elf_symfile_relocate_probe): Remove.
5272 (elf_probe_fns): Update.
5273 (insert_exception_resume_breakpoint): Change type of "probe"
5274 parameter to bound_probe.
5275 (check_exception_resume): Update.
5276 * objfiles.c (objfile_relocate1): Don't relocate probes.
5277 * probe.c (bound_probe_s): New typedef.
5278 (parse_probes): Use get_probe_address. Set sal's objfile.
5279 (find_probe_by_pc): Return a bound_probe.
5280 (collect_probes): Return a VEC(bound_probe_s).
5281 (compare_probes): Update.
5282 (gen_ui_out_table_header_info): Change type of "probes"
5283 parameter. Update.
5284 (info_probes_for_ops): Update.
5285 (get_probe_address): New function.
5286 (probe_safe_evaluate_at_pc): Update.
5287 * probe.h (struct probe_ops) <get_probe_address>: New field.
5288 <set_semaphore, clear_semaphore>: Add objfile parameter.
5289 (struct probe) <objfile>: Remove field.
5290 <arch>: New field.
5291 <address>: Update comment.
5292 (struct bound_probe): New.
5293 (find_probe_by_pc): Return a bound_probe.
5294 (get_probe_address): Declare.
5295 * solib-svr4.c (struct probe_and_action) <address>: New field.
5296 (hash_probe_and_action, equal_probe_and_action): Update.
5297 (register_solib_event_probe): Add address parameter.
5298 (solib_event_probe_at): Update.
5299 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5300 get_probe_address.
5301 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5302 (stap_get_probe_address): New function.
5303 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5304 (compile_probe_arg): Update.
5305 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5306 address.
5307 (handle_stap_probe): Don't relocate the probe.
5308 (stap_relocate): Remove.
5309 (stap_gen_info_probes_table_values): Update.
5310 (stap_probe_ops): Remove stap_relocate.
5311 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5312 (debug_sym_probe_fns): Update.
5313 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5314 * symtab.c (init_sal): Use memset.
5315 * symtab.h (struct symtab_and_line) <objfile>: New field.
5316 * tracepoint.c (start_tracing, stop_tracing): Update.
5317
ff887920
TT
53182014-03-03 Tom Tromey <tromey@redhat.com>
5319
5320 * probe.h (parse_probes, find_probe_by_pc)
5321 (find_probes_in_objfile): Fix comments.
5322
f0407826
DE
53232014-03-02 Doug Evans <xdje42@gmail.com>
5324
5325 * infrun.c (handle_signal_stop): Replace test for
5326 TARGET_WAITKIND_STOPPED with an assert.
5327
35e6a711
DE
53282014-03-02 Doug Evans <xdje42@gmail.com>
5329
5330 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5331
667f9d0b
DE
53322014-03-02 Doug Evans <xdje42@gmail.com>
5333
5334 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5335
dc92ace0
MK
53362014-03-01 Mark Kettenis <kettenis@gnu.org>
5337
5338 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5339
a900370f
MK
53402014-03-01 Mark Kettenis <kettenis@gnu.org>
5341
5342 * i386obsd-nat.c: Include "obsd-nat.h".
5343 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5344 add_target.
5345 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5346
b72a7981
MK
53472014-03-01 Mark Kettenis <kettenis@gnu.org>
5348
5349 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5350
96c70aba
MK
53512014-03-01 Mark Kettenis <kettenis@gnu.org>
5352
5353 * mips64obsd-nat.c: Include "obsd-nath".
5354 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5355 add_target
5356 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5357
874a80af
MK
53582014-03-01 Mark Kettenis <kettenis@gnu.org>
5359
8fd408f1
MK
5360 * amd64obsd-nat.c: Include "obsd-nat,h.
5361 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5362 add_target.
874a80af
MK
5363 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5364
9cf95373
SC
53652014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5366
5367 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5368 (find_overload_match): Update call to find_oload_champ.
5369 (find_oload_champ_namespace_loop): Likewise
5370
863e4da4
MK
53712014-02-28 Mark Kettenis <kettenis@gnu.org>
5372
025cac40
MK
5373 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5374
1ed586ce
MK
5375 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5376 * config/sparc/obsd64.mh: New file.
5377 * sparc64obsd-nat.c: New file.
5378
863e4da4
MK
5379 * obsd-nat.h: New file.
5380 * obsd-nat.c: New file.
5381 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5382 (ALLDEPFILES): Add obsd-nat.c.
5383
89de4da4
TT
53842014-02-28 Tom Tromey <tromey@redhat.com>
5385
5386 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5387 * cli-out.h (cli_ui_out_impl): Now const.
5388 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5389 * ui-out.c (struct ui_out) <impl>: Now const.
5390 (default_ui_out_impl): Now const.
5391 (ui_out_new): Make 'impl' parameter const.
5392 * ui-out.h (ui_out_new): Update.
5393
c725e7b6
MK
53942014-02-27 Mark Kettenis <kettenis@gnu.org>
5395
5396 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5397
670b46b3
MK
53982014-02-27 Mark Kettenis <kettenis@gnu.org>
5399
5400 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5401
c91550fc
JK
54022014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5403
5404 Additional PR 8882 fix.
5405 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5406
2fa0369e
PA
54072014-02-27 Pedro Alves <palves@redhat.com>
5408
5409 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5410 isn't set.
5411
d632a097
PA
54122014-02-27 Pedro Alves <palves@redhat.com>
5413
5414 PR 12702
5415 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5416 * nat/linux-waitpid.c: Include string.h.
5417 (status_to_str): Moved here and made extern.
5418 * nat/linux-waitpid.h (status_to_str): New declaration.
5419
2ebd5a35
HZ
54202014-02-27 Hui Zhu <hui@codesourcery.com>
5421
5422 PR 12702
5423 * infrun.c (ptid_match): Move ...
5424 * common/ptid.c (ptid_match): ... here.
5425 * inferior.h (ptid_match): Move ...
5426 * common/ptid.h (ptid_match): ... here.
5427
3cdd631f
MK
54282014-02-27 Mark Kettenis <kettenis@gnu.org>
5429
5430 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5431 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5432 gdb_target_obs.
5433
bee30a64
MK
54342014-02-27 Mark Kettenis <kettenis@gnu.org>
5435
5436 * obsd-tdep.c (obsd_auxv_parse): New function.
5437 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
5438
5439 * gdbarch.sh (auxv_parse): New.
5440 * gdbarch.h: Regenerated.
5441 * gdbarch.c: Regenerated.
5442 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5443
7a5a839f
LC
54442014-02-26 Ludovic Courtès <ludo@gnu.org>
5445
5446 * guile/scm-value.c (gdbscm_history_append_x): New function.
5447 (value_functions): Add it.
5448
31aa7e4e
JB
54492014-02-27 Joel Brobecker <brobecker@adacore.com>
5450
5451 * dwarf2read.c (attr_value_as_address): New function.
5452 (dwarf2_find_base_address, read_call_site_scope): Use
5453 attr_value_as_address in place of DW_ADDR.
5454 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5455 the low and high addresses. Slight rework of the handling
5456 of the high pc being a constant form, and limit it to
5457 DWARF verson 4 or higher.
5458 (dwarf2_record_block_ranges): Likewise.
5459 (read_partial_die): Likewise.
5460 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5461
9b333ba3
TT
54622014-02-26 Tom Tromey <tromey@redhat.com>
5463
5464 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5465
5f6cac40
TT
54662014-02-26 Tom Tromey <tromey@redhat.com>
5467
5468 * elfread.c (elf_read_minimal_symbols): Return early if
5469 minimal symbols have already been read. Add "ei" parameter.
5470 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5471 * minsyms.c (prim_record_minimal_symbol_full): Update.
5472 * objfiles.h (struct objstats) <n_minsyms>: Move...
5473 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5474 * symmisc.c (print_objfile_statistics): Update.
5475
2750ef27
TT
54762014-02-26 Tom Tromey <tromey@redhat.com>
5477
5478 * elfread.c (elf_read_minimal_symbols): New function, from
5479 elf_symfile_read.
5480 (elf_symfile_read): Call it.
5481
34643a32
TT
54822014-02-26 Tom Tromey <tromey@redhat.com>
5483
5484 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5485 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5486 (lookup_minimal_symbol_solib_trampoline)
5487 (lookup_minimal_symbol_by_pc_section_1)
5488 (lookup_minimal_symbol_and_objfile): Update.
5489 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5490 Don't allocate a minimal symbol if minsyms have already been read.
5491 (build_minimal_symbol_hash_tables): Update.
5492 (install_minimal_symbols): Do nothing if minsyms already read.
5493 Use the per-BFD obstack.
5494 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5495 * objfiles.c (allocate_objfile): Call
5496 terminate_minimal_symbol_table later.
5497 (have_minimal_symbols): Update.
5498 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5499 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5500 Move from struct objfile.
5501 <minsyms_read>: New field.
5502 (struct objfile) <msymbols, minimal_symbol_count,
5503 msymbol_hash, msymbol_demangled_hash>: Move.
5504 (ALL_OBJFILE_MSYMBOLS): Update.
5505 * symfile.c (read_symbols): Set minsyms_read.
5506 (reread_symbols): Update.
5507 * symmisc.c (dump_objfile, dump_msymbols): Update.
5508
2273f0ac
TT
55092014-02-26 Tom Tromey <tromey@redhat.com>
5510
5511 * minsyms.c (msymbols_sort): Remove.
5512 * minsyms.h (msymbols_sort): Remove.
5513 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5514 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5515 * elfread.c (elf_symtab_read): Don't add section offsets.
5516 * xcoffread.c (record_minimal_symbol): Don't add section offset
5517 to minimal symbol address.
5518 * somread.c (text_offset, data_offset): Remove.
5519 (som_symtab_read): Don't add section offsets to minimal symbol
5520 addresses.
5521 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5522 Don't add section offsets to minimal symbols.
5523 * coffread.c (coff_symtab_read): Don't add section offsets
5524 to minimal symbol addresses.
5525 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5526 to minimal symbol addresses.
5527 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5528 section offset to minimal symbol addresses.
5529 * mdebugread.c (parse_partial_symbols): Don't add section
5530 offset to minimal symbol addresses.
5531 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5532 offset to minimal symbol addresses.
5533
77e371c0
TT
55342014-02-26 Tom Tromey <tromey@redhat.com>
5535
5536 * ada-lang.c (ada_main_name): Update.
5537 (ada_add_standard_exceptions): Update.
5538 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5539 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5540 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5541 * auxv.c (ld_so_xfer_auxv): Update.
5542 * avr-tdep.c (avr_scan_prologue): Update.
5543 * ax-gdb.c (gen_var_ref): Update.
5544 * blockframe.c (get_pc_function_start)
5545 (find_pc_partial_function_gnu_ifunc): Update.
5546 * breakpoint.c (create_overlay_event_breakpoint)
5547 (create_longjmp_master_breakpoint)
5548 (create_std_terminate_master_breakpoint)
5549 (create_exception_master_breakpoint): Update.
5550 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5551 * c-valprint.c (c_val_print): Update.
5552 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5553 * common/agent.c (agent_look_up_symbols): Update.
5554 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5555 * dwarf2loc.c (call_site_to_target_addr): Update.
5556 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5557 * elfread.c (elf_gnu_ifunc_record_cache)
5558 (elf_gnu_ifunc_resolve_by_got): Update.
5559 * findvar.c (default_read_var_value): Update.
5560 * frame.c (inside_main_func): Update.
5561 * frv-tdep.c (frv_frame_this_id): Update.
5562 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5563 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5564 Update.
5565 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5566 (hppa_hpux_find_dummy_bpaddr): Update.
5567 * hppa-tdep.c (hppa_symbol_address): Update.
5568 * infcmd.c (until_next_command): Update.
5569 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5570 Update.
5571 * linespec.c (minsym_found, add_minsym): Update.
5572 * linux-nat.c (get_signo): Update.
5573 * linux-thread-db.c (inferior_has_bug): Update.
5574 * m32c-tdep.c (m32c_return_value)
5575 (m32c_m16c_address_to_pointer): Update.
5576 * m32r-tdep.c (m32r_frame_this_id): Update.
5577 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5578 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5579 * maint.c (maintenance_translate_address): Update.
5580 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5581 (frob_address): New function.
5582 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5583 frob_address. Rename parameter to "pc_in".
5584 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5585 addresses.
5586 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5587 Update.
5588 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5589 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5590 * objc-lang.c (find_objc_msgsend): Update.
5591 * objfiles.c (objfile_relocate1): Update.
5592 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5593 * p-valprint.c (pascal_val_print): Update.
5594 * parse.c (write_exp_msymbol): Update.
5595 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5596 (ppc_elfv2_skip_entrypoint): Update.
5597 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5598 * printcmd.c (build_address_symbolic, msym_info)
5599 (address_info): Update.
5600 * proc-service.c (ps_pglobal_lookup): Update.
5601 * psymtab.c (find_pc_sect_psymtab_closer)
5602 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5603 Change msymbol parameter to bound_minimal_symbol.
5604 * ravenscar-thread.c (get_running_thread_id): Update.
5605 * remote.c (remote_check_symbols): Update.
5606 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5607 address.
5608 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5609 * solib-dsbt.c (lm_base): Update.
5610 * solib-frv.c (lm_base, main_got): Update.
5611 * solib-irix.c (locate_base): Update.
5612 * solib-som.c (som_solib_create_inferior_hook)
5613 (link_map_start): Update.
5614 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5615 * solib-svr4.c (elf_locate_base, enable_break): Update.
5616 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5617 (flush_ea_cache): Update.
5618 * stabsread.c (define_symbol, scan_file_globals): Update.
5619 * stack.c (find_frame_funname): Update.
5620 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5621 (debug_qf_find_pc_sect_symtab): Update.
5622 * symfile.c (simple_read_overlay_table)
5623 (simple_overlay_update): Update.
5624 * symfile.h (struct quick_symbol_functions)
5625 <find_pc_sect_symtab>: Change type of msymbol to
5626 bound_minimal_symbol.
5627 * symmisc.c (dump_msymbols): Update.
5628 * symtab.c (find_pc_sect_symtab_via_partial)
5629 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5630 (search_symbols, print_msymbol_info): Update.
5631 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5632 (MSYMBOL_VALUE_ADDRESS): Redefine.
5633 (BMSYMBOL_VALUE_ADDRESS): New macro.
5634 * tracepoint.c (scope_info): Update.
5635 * tui/tui-disasm.c (tui_find_disassembly_address)
5636 (tui_get_begin_asm_address): Update.
5637 * valops.c (find_function_in_inferior): Update.
5638 * value.c (value_static_field, value_fn_field): Update.
5639
3b7344d5
TT
56402014-02-26 Tom Tromey <tromey@redhat.com>
5641
5642 * ada-lang.c (ada_update_initial_language): Update.
5643 (ada_main_name, ada_has_this_exception_support): Update.
5644 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5645 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5646 * arm-tdep.c (arm_skip_stub): Update.
5647 * auxv.c (ld_so_xfer_auxv): Update.
5648 * avr-tdep.c (avr_scan_prologue): Update.
5649 * ax-gdb.c (gen_var_ref): Update.
5650 * breakpoint.c (struct breakpoint_objfile_data)
5651 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5652 type to bound_minimal_symbol.
5653 (create_overlay_event_breakpoint)
5654 (create_longjmp_master_breakpoint)
5655 (create_std_terminate_master_breakpoint)
5656 (create_exception_master_breakpoint): Update.
5657 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5658 * c-exp.y (classify_name): Update.
5659 * coffread.c (coff_symfile_read): Update.
5660 * common/agent.c (agent_look_up_symbols): Update.
5661 * d-lang.c (d_main_name): Update.
5662 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5663 * dec-thread.c (enable_dec_thread): Update.
5664 * dwarf2loc.c (call_site_to_target_addr): Update.
5665 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5666 * eval.c (evaluate_subexp_standard): Update.
5667 * findvar.c (struct minsym_lookup_data) <result>: Change type
5668 to bound_minimal_symbol.
5669 <objfile>: Remove.
5670 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5671 * frame.c (inside_main_func): Update.
5672 * frv-tdep.c (frv_frame_this_id): Update.
5673 * gcore.c (call_target_sbrk): Update.
5674 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5675 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5676 Update.
5677 * go-lang.c (go_main_name): Update.
5678 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5679 (hppa_hpux_find_import_stub_for_addr): Update.
5680 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5681 Update. Change return type.
5682 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5683 type.
5684 * jit.c (jit_breakpoint_re_set_internal): Update.
5685 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5686 Update.
5687 * linux-nat.c (get_signo): Update.
5688 * linux-thread-db.c (inferior_has_bug): Update
5689 * m32c-tdep.c (m32c_return_value)
5690 (m32c_m16c_address_to_pointer): Update.
5691 * m32r-tdep.c (m32r_frame_this_id): Update.
5692 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5693 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5694 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5695 lookup_minimal_symbol. Change return type.
5696 (lookup_minimal_symbol): Remove.
5697 (lookup_bound_minimal_symbol): Update.
5698 (lookup_minimal_symbol_text): Change return type.
5699 (lookup_minimal_symbol_solib_trampoline): Change return type.
5700 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5701 (lookup_minimal_symbol_solib_trampoline): Change return type.
5702 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5703 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5704 (value_nsstring, find_imps): Update.
5705 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5706 * p-lang.c (pascal_main_name): Update.
5707 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5708 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5709 * proc-service.c (ps_pglobal_lookup): Update.
5710 * ravenscar-thread.c (get_running_thread_msymbol): Change
5711 return type.
5712 (has_ravenscar_runtime, get_running_thread_id): Update.
5713 * remote.c (remote_check_symbols): Update.
5714 * sol-thread.c (ps_pglobal_lookup): Update.
5715 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5716 * solib-dsbt.c (lm_base): Update.
5717 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5718 Update.
5719 * solib-irix.c (locate_base): Update.
5720 * solib-som.c (som_solib_create_inferior_hook)
5721 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5722 Update.
5723 * solib-spu.c (spu_enable_break): Update.
5724 * solib-svr4.c (elf_locate_base, enable_break): Update.
5725 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5726 (flush_ea_cache): Update.
5727 * stabsread.c (define_symbol): Update.
5728 * symfile.c (simple_read_overlay_table): Update.
5729 * symtab.c (find_pc_sect_line): Update.
5730 * tracepoint.c (scope_info): Update.
5731 * tui-disasm.c (tui_get_begin_asm_address): Update.
5732 * value.c (value_static_field): Update.
5733
40c1a007
TT
57342014-02-26 Tom Tromey <tromey@redhat.com>
5735
5736 * minsyms.c (prim_record_minimal_symbol_full): Use
5737 SET_MSYMBOL_VALUE_ADDRESS.
5738 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5739 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5740 SET_MSYMBOL_VALUE_ADDRESS.
5741 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5742 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5743
efd66ac6
TT
57442014-02-26 Tom Tromey <tromey@redhat.com>
5745
5746 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5747 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5748 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5749 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5750 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5751 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5752 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5753 * ada-lang.c (ada_main_name): Update.
5754 (ada_lookup_simple_minsym): Update.
5755 (ada_make_symbol_completion_list): Update.
5756 (ada_add_standard_exceptions): Update.
5757 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5758 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5759 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5760 * arm-tdep.c (skip_prologue_function): Update.
5761 (arm_skip_stack_protector, arm_skip_stub): Update.
5762 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5763 (arm_wince_skip_main_prologue): Update.
5764 * auxv.c (ld_so_xfer_auxv): Update.
5765 * avr-tdep.c (avr_scan_prologue): Update.
5766 * ax-gdb.c (gen_var_ref): Update.
5767 * block.c (call_site_for_pc): Update.
5768 * blockframe.c (get_pc_function_start): Update.
5769 (find_pc_partial_function_gnu_ifunc): Update.
5770 * breakpoint.c (create_overlay_event_breakpoint): Update.
5771 (create_longjmp_master_breakpoint): Update.
5772 (create_std_terminate_master_breakpoint): Update.
5773 (create_exception_master_breakpoint): Update.
5774 (resolve_sal_pc): Update.
5775 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5776 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5777 Update.
5778 * c-valprint.c (c_val_print): Update.
5779 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5780 * coffread.c (coff_symfile_read): Update.
5781 * common/agent.c (agent_look_up_symbols): Update.
5782 * dbxread.c (find_stab_function_addr): Update.
5783 (end_psymtab): Update.
5784 * dwarf2loc.c (call_site_to_target_addr): Update.
5785 (func_verify_no_selftailcall): Update.
5786 (tailcall_dump): Update.
5787 (call_site_find_chain_1): Update.
5788 (dwarf_expr_reg_to_entry_parameter): Update.
5789 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5790 (elf_gnu_ifunc_resolve_by_got): Update.
5791 * f-valprint.c (info_common_command): Update.
5792 * findvar.c (read_var_value): Update.
5793 * frame.c (get_prev_frame_1): Update.
5794 (inside_main_func): Update.
5795 * frv-tdep.c (frv_skip_main_prologue): Update.
5796 (frv_frame_this_id): Update.
5797 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5798 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5799 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5800 (gnuv3_skip_trampoline): Update.
5801 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5802 (hppa64_hpux_in_solib_call_trampoline): Update.
5803 (hppa_hpux_skip_trampoline_code): Update.
5804 (hppa64_hpux_search_dummy_call_sequence): Update.
5805 (hppa_hpux_find_import_stub_for_addr): Update.
5806 (hppa_hpux_find_dummy_bpaddr): Update.
5807 * hppa-tdep.c (hppa_symbol_address)
5808 (hppa_lookup_stub_minimal_symbol): Update.
5809 * i386-tdep.c (i386_skip_main_prologue): Update.
5810 (i386_pe_skip_trampoline_code): Update.
5811 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5812 * infcall.c (get_function_name): Update.
5813 * infcmd.c (until_next_command): Update.
5814 * jit.c (jit_breakpoint_re_set_internal): Update.
5815 (jit_inferior_init): Update.
5816 * linespec.c (minsym_found): Update.
5817 (add_minsym): Update.
5818 * linux-fork.c (info_checkpoints_command): Update.
5819 * linux-nat.c (get_signo): Update.
5820 * linux-thread-db.c (inferior_has_bug): Update.
5821 * m32c-tdep.c (m32c_return_value): Update.
5822 (m32c_m16c_address_to_pointer): Update.
5823 (m32c_m16c_pointer_to_address): Update.
5824 * m32r-tdep.c (m32r_frame_this_id): Update.
5825 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5826 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5827 * maint.c (maintenance_translate_address): Update.
5828 * minsyms.c (add_minsym_to_hash_table): Update.
5829 (add_minsym_to_demangled_hash_table): Update.
5830 (msymbol_objfile): Update.
5831 (lookup_minimal_symbol): Update.
5832 (iterate_over_minimal_symbols): Update.
5833 (lookup_minimal_symbol_text): Update.
5834 (lookup_minimal_symbol_by_pc_name): Update.
5835 (lookup_minimal_symbol_solib_trampoline): Update.
5836 (lookup_minimal_symbol_by_pc_section_1): Update.
5837 (lookup_minimal_symbol_and_objfile): Update.
5838 (prim_record_minimal_symbol_full): Update.
5839 (compare_minimal_symbols): Update.
5840 (compact_minimal_symbols): Update.
5841 (build_minimal_symbol_hash_tables): Update.
5842 (install_minimal_symbols): Update.
5843 (terminate_minimal_symbol_table): Update.
5844 (find_solib_trampoline_target): Update.
5845 (minimal_symbol_upper_bound): Update.
5846 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5847 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5848 (mips_skip_pic_trampoline_code): Update.
5849 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5850 * objc-lang.c (selectors_info): Update.
5851 (classes_info): Update.
5852 (find_methods): Update.
5853 (find_imps): Update.
5854 (find_objc_msgsend): Update.
5855 * objfiles.c (objfile_relocate1): Update.
5856 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5857 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5858 * p-valprint.c (pascal_val_print): Update.
5859 * parse.c (write_exp_msymbol): Update.
5860 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5861 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5862 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5863 * printcmd.c (build_address_symbolic): Update.
5864 (sym_info): Update.
5865 (address_info): Update.
5866 * proc-service.c (ps_pglobal_lookup): Update.
5867 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5868 (find_pc_sect_psymtab): Update.
5869 * python/py-framefilter.c (py_print_frame): Update.
5870 * ravenscar-thread.c (get_running_thread_id): Update.
5871 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5872 Update.
5873 * remote.c (remote_check_symbols): Update.
5874 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5875 (rs6000_skip_trampoline_code): Update.
5876 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5877 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5878 * solib-dsbt.c (lm_base): Update.
5879 * solib-frv.c (lm_base): Update.
5880 (main_got): Update.
5881 * solib-irix.c (locate_base): Update.
5882 * solib-som.c (som_solib_create_inferior_hook): Update.
5883 (som_solib_desire_dynamic_linker_symbols): Update.
5884 (link_map_start): Update.
5885 * solib-spu.c (spu_enable_break): Update.
5886 (ocl_enable_break): Update.
5887 * solib-svr4.c (elf_locate_base): Update.
5888 (enable_break): Update.
5889 * spu-tdep.c (spu_get_overlay_table): Update.
5890 (spu_catch_start): Update.
5891 (flush_ea_cache): Update.
5892 * stabsread.c (define_symbol): Update.
5893 (scan_file_globals): Update.
5894 * stack.c (find_frame_funname): Update.
5895 (frame_info): Update.
5896 * symfile.c (simple_read_overlay_table): Update.
5897 (simple_overlay_update): Update.
5898 * symmisc.c (dump_msymbols): Update.
5899 * symtab.c (fixup_section): Update.
5900 (find_pc_sect_line): Update.
5901 (skip_prologue_sal): Update.
5902 (search_symbols): Update.
5903 (print_msymbol_info): Update.
5904 (rbreak_command): Update.
5905 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5906 (completion_list_objc_symbol): Update.
5907 (default_make_symbol_completion_list_break_on): Update.
5908 * tracepoint.c (scope_info): Update.
5909 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5910 (tui_get_begin_asm_address): Update.
5911 * valops.c (find_function_in_inferior): Update.
5912 * value.c (value_static_field): Update.
5913 (value_fn_field): Update.
5914
50e65b17
TT
59152014-02-26 Tom Tromey <tromey@redhat.com>
5916
5917 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5918 bound minimal symbols. Move code that knows about minsym
5919 table layout...
5920 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5921 function.
5922 * minsyms.h (minimal_symbol_upper_bound): Declare.
5923 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5924 minimal_symbol_upper_bound.
5925
1b588015
JB
59262014-02-27 Joel Brobecker <brobecker@adacore.com>
5927
5928 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5929 Use the type's name if its basic type does not have a tag.
5930
dbb9c2b1
JB
59312014-02-27 Joel Brobecker <brobecker@adacore.com>
5932
5933 * dwarf2read.c (read_subrange_type): Add comment.
5934
55426c9d
JB
59352014-02-27 Joel Brobecker <brobecker@adacore.com>
5936
5937 * dwarf2read.c (update_enumeration_type_from_children): New
5938 function, mostly extracted from process_structure_scope.
5939 (read_enumeration_type): Call update_enumeration_type_from_children.
5940 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5941 and flag_flag_enum fields.
5942
f2fce0ca
PA
59432014-02-26 Pedro Alves <palves@redhat.com>
5944
5945 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5946 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5947 to_xfer_partial method.
5948
7a44e40e
PA
59492014-02-26 Pedro Alves <palves@redhat.com>
5950
5951 * target.c (complete_target_initialization): Don't install
5952 default_xfer_partial as to_xfer_partial hook.
5953 (nomemory): Delete.
5954 (update_current_target): Don't INHERIT nor de_fault
5955 deprecated_xfer_memory. Delete de_fault macro.
5956 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5957 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5958 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5959 field.
5960
bd265cd0
PA
59612014-02-26 Pedro Alves <palves@redhat.com>
5962
5963 * go32-nat.c (my_write_child): New function.
5964 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5965 (go32_xfer_partial): New function.
5966 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5967 Instead install a to_xfer_partial hook.
5968
9d46c4e5
PA
59692014-02-26 Pedro Alves <palves@redhat.com>
5970
5971 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5972 to_xfer_partial helper. Rewrite.
5973 (procfs_xfer_partial): New function.
5974 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5975 Install a to_xfer_partial hook.
5976
a1583b1f
PA
59772014-02-26 Pedro Alves <palves@redhat.com>
5978
5979 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5980 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5981 (m32r_xfer_partial): New function.
5982 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5983 Install a to_xfer_partial hook.
5984
6df1b29f
PA
59852014-02-26 Pedro Alves <palves@redhat.com>
5986
5987 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5988 helper.
5989 (mips_xfer_partial): New function.
5990 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5991 hook. Install a to_xfer_partial hook.
5992
dc53a7ad
JB
59932014-02-26 Joel Brobecker <brobecker@adacore.com>
5994
5995 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5996 * gdbtypes.c (create_array_type_with_stride): New function,
5997 renaming create_array_type, but with an added parameter
5998 called "bit_stride".
5999 (create_array_type): Re-implement using
6000 create_array_type_with_stride.
6001 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6002 and DW_AT_bit_stride attributes.
6003
12ab52e9
PA
60042014-02-26 Pedro Alves <palves@redhat.com>
6005
6006 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6007 task-specific breakpoints.
6008
d16461ae
PA
60092014-02-25 Pedro Alves <palves@redhat.com>
6010
6011 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6012 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6013
a8b16220
SS
60142014-02-25 Stan Shebs <stan@codesourcery.com>
6015
6016 * defs.h: Annotate comments for Doxygen.
6017
b9e795ee
TT
60182014-02-25 Tom Tromey <tromey@redhat.com>
6019
6020 * target.h (target_ignore): Don't declare.
6021 * target.c (target_ignore): Remove.
6022
849c862e
JK
60232014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6024
6025 PR gdb/16626
6026 * auto-load.c (auto_load_objfile_script_1): Change filename to
6027 debugfile.
6028
475109d8
JB
60292014-02-25 Joel Brobecker <brobecker@adacore.com>
6030
6031 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6032 documentation. Adjust prototype to match the target_ops
6033 to_xfer_partial method. Adjust implementation accordingly.
6034
e186c3bd
HZ
60352014-02-25 Hui Zhu <hui@codesourcery.com>
6036
6037 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6038 to_traceframe_info.
6039
6d451942
KB
60402014-02-25 Kevin Buettner <kevinb@redhat.com>
6041
041ab8b4 6042 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6043 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6044 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6045 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6046 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6047 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6048 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6049 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6050 New constants.
6051 (rl78_register_type): Use a data pointer type for SP and
6052 new pseudo registers mentioned above. Use a 16 bit integer
6053 type for all other register pairs.
6054 (rl78_register_name, rl78_g10_register_name): Update for
6055 new pseudo registers.
6056 (rl78_pseudo_register_read): Likewise.
6057 (rl78_pseudo_register_write): Likewise.
6058 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6059 to the newly added pseudo registers.
6060
eddf0bae
DE
60612014-02-24 Doug Evans <dje@google.com>
6062
6063 * value.c (record_latest_value): Fix comment.
6064 * printcmd.c (print_command_1): Remove code to handle -1 return from
6065 record_latest_value.
6066
e96027e0
PA
60672014-02-24 Pedro Alves <palves@redhat.com>
6068
6069 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6070 deprecated_xfer_memory hook.
6071 (procfs_xfer_partial): Call procfs_xfer_memory instead
6072 of the deprecated_xfer_memory target hook.
6073 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6074 helper.
6075
0837c976
YZ
60762014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6077
6078 * windows-nat.c (windows_xfer_shared_libraries): Return
6079 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6080 requested object is TARGET_OBJECT_LIBRARIES.
6081
bc113b4e
YQ
60822014-02-24 Yao Qi <yao@codesourcery.com>
6083
6084 * target.h (enum target_xfer_status)
6085 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6086 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6087 explicitly. New.
6088 * corefile.c (memory_error_message): User updated.
6089 * exec.c (section_table_read_available_memory): Likewise.
6090 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6091 * target.c (target_xfer_status_to_string): Likewise.
6092 (raw_memory_xfer_partial): Likewise.
6093 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6094 * valops.c (read_value_memory): Likewise.
6095 * exec.h: Update comments.
6096
01cb8804
YQ
60972014-02-24 Yao Qi <yao@codesourcery.com>
6098
6099 * target.c (target_xfer_status_to_string): Rename argument err
6100 to status.
6101 * target.h (target_xfer_status_to_string): Update declaration.
6102 Replace target_xfer_error_to_string with
6103 target_xfer_status_to_string in comment.
6104
93063aa6
YQ
61052014-02-24 Yao Qi <yao@codesourcery.com>
6106
6107 * mips-linux-nat.c (super_close): Update its type.
6108 (mips_linux_close): Pass 'self' to super_close.
6109
5c328c05
YQ
61102014-02-24 Yao Qi <yao@codesourcery.com>
6111
6112 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6113 * corefile.c (read_memory): Adjusted.
6114 * target.c (target_write_with_progress): Adjusted.
6115
f73023dd
YQ
61162014-02-23 Yao Qi <yao@codesourcery.com>
6117
6118 Revert two patches:
6119
6120 2013-10-25 Yao Qi <yao@codesourcery.com>
6121
6122 * remote.c (remote_traceframe_info): Return early if
6123 traceframe is not selected.
6124
6125 2013-07-19 Yao Qi <yao@codesourcery.com>
6126
6127 * target.c (update_current_target): Change the default action
6128 of 'to_traceframe_info' from tcomplain to return_zero.
6129 * target.h (struct target_ops) <to_traceframe_info>: Add more
6130 comments.
6131
5a2eb0ef
YQ
61322014-02-23 Yao Qi <yao@codesourcery.com>
6133
6134 * valops.c (read_value_memory): Rewrite it. Call
6135 target_xfer_partial in a loop.
6136 * exec.h (section_table_available_memory): Remove declaration.
6137 Move comments to ...
6138 * exec.c (section_table_available_memory): ... here. Make it
6139 static.
6140
1ee79381
YQ
61412014-02-23 Yao Qi <yao@codesourcery.com>
6142
6143 * exec.c (section_table_read_available_memory): New function.
6144 * exec.h (section_table_read_available_memory): Declare.
6145 * ctf.c (ctf_xfer_partial): Call
6146 section_table_read_available_memory.
6147 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6148
1ca49d37
YQ
61492014-02-23 Yao Qi <yao@codesourcery.com>
6150
6151 * ctf.c (ctf_xfer_partial): Move code to ...
6152 * exec.c (exec_read_partial_read_only): ... it. New function.
6153 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6154 * tracefile.c: Include "exec.h".
6155 * exec.h (exec_read_partial_read_only): Declare.
6156
a283690e
YQ
61572014-02-23 Yao Qi <yao@codesourcery.com>
6158
6159 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6160 (tfile_has_memory): Remove.
6161 (init_tfile_ops): Don't set fields to_has_all_memory and
6162 to_has_memory of tfile_ops.
6163 * tracefile.c (tracefile_has_all_memory): New function.
6164 (tracefile_has_memory): New function.
6165 (init_tracefile_ops): Initialize fields to_has_all_memory and
6166 to_has_memory of 'ops'.
6167
12e03cd0
YQ
61682014-02-23 Yao Qi <yao@codesourcery.com>
6169
6170 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6171 (ctf_thread_alive, ctf_get_trace_status): Remove.
6172 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6173 init_tracefile_ops.
6174 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6175 (tfile_has_stack, tfile_has_registers): Remove.
6176 (tfile_thread_alive): Remove.
6177 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6178 init_tracefile_ops.
6179 * tracefile.c (tracefile_has_stack): New function.
6180 (tracefile_has_registers): New function.
6181 (tracefile_thread_alive): New function.
6182 (tracefile_get_trace_status): New function.
6183 (init_tracefile_ops): New function.
6184 * tracefile.h (init_tracefile_ops): Declare.
6185
11395323
YQ
61862014-02-23 Yao Qi <yao@codesourcery.com>
6187
6188 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6189 (O_LARGEFILE): Likewise.
6190 (tfile_ops): Likewise.
6191 (TRACE_HEADER_SIZE): Likewise.
6192 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6193 (cur_data_size): Likewise.
6194 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6195 (tfile_close, tfile_files_info): Likewise.
6196 (tfile_get_trace_status): Likewise.
6197 (tfile_get_tracepoint_status): Likewise.
6198 (tfile_get_traceframe_address): Likewise.
6199 (tfile_trace_find, match_blocktype): Likewise.
6200 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6201 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6202 (tfile_get_trace_state_variable_value): Likewise.
6203 (tfile_has_all_memory, tfile_has_memory): Likewise.
6204 (tfile_has_stack, tfile_has_registers): Likewise.
6205 (tfile_thread_alive, build_traceframe_info): Likewise.
6206 (tfile_traceframe_info, init_tfile_ops): Likewise.
6207 (_initialize_tracepoint): Don't call init_tfile_ops
6208 and add_target_with_completer.
6209 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6210 exec.h, completer.h and filenames.h.
6211 (_initialize_tracefile_tfile): New function.
6212
7951c4eb
YQ
62132014-02-23 Yao Qi <yao@codesourcery.com>
6214
6215 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6216 tracefile-tfile.o.
6217 (HFILES_NO_SRCDIR): Add tracefile.h.
6218 * ctf.c: Include "tracefile.h".
6219 * tracefile.h: New file.
6220 * tracefile.c: New file
6221 * tracefile-tfile.c: New file.
6222 * tracepoint.c: Include "tracefile.h".
6223 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6224 (stop_reason_names): Add const.
6225 (trace_file_writer_xfree): Move it to tracefile.c.
6226 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6227 (trace_save_ctf): Likewise.
6228 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6229 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6230 (tfile_write_header, tfile_write_regblock_type): Likewise.
6231 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6232 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6233 (tfile_write_raw_data, tfile_end): Likewise.
6234 (tfile_trace_file_writer_new): Likewise.
6235 (free_uploaded_tp): Make it extern.
6236 (free_uploaded_tsv): Make it extern.
6237 (_initialize_tracepoint): Move code to register command 'tsave'
6238 to tracefile.c.
6239 * tracepoint.h (stop_reason_names): Declare.
6240 (struct trace_frame_write_ops): Move it to tracefile.h.
6241 (struct trace_file_write_ops): Likewise.
6242 (struct trace_file_writer): Likewise.
6243 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6244
184cd072
JK
62452014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6246
6247 PR gdb/16594
6248 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6249 process name.
6250 (get_cores_used_by_process): New parameter num_cores, use it.
6251 (linux_xfer_osdata_processes): Pass num_cores to it.
6252 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6253 process name.
6254
c63528fc
AK
62552014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6256
6257 * target.c (memory_xfer_partial): Fix length arg in call to
6258 breakpoint_xfer_memory.
6259
d7b30f67
SDJ
62602014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6261
6262 PR tdep/16397
6263 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6264 number comes after the + or - signs. Adjust length of register
6265 name to be extracted.
6266
8838afaf
TT
62672014-02-20 Tom Tromey <tromey@redhat.com>
6268
6269 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6270 (ada_varobj_ops): Mark "extern".
6271
05227d14
TT
62722014-02-20 Tom Tromey <tromey@redhat.com>
6273
6274 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6275
1254eefc
DE
62762014-02-20 Doug Evans <xdje42@gmail.com>
6277
6278 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6279 All callers updated.
6280 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6281 All callers updated.
6282 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6283 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6284
adde2bff
DE
62852014-02-20 lin zuojian <manjian2006@gmail.com>
6286 Joel Brobecker <brobecker@adacore.com>
6287 Doug Evans <xdje42@gmail.com>
6288
6289 PR symtab/16581
6290 * dwarf2read.c (struct die_info): New member in_process.
6291 (reset_die_in_process): New function.
6292 (process_die): Set it at the start, reset when returning.
6293 (inherit_abstract_dies): Only call process_die if origin_child_die
6294 not already being processed.
6295
3be75f87
JB
62962014-02-20 Joel Brobecker <brobecker@adacore.com>
6297
6298 * windows-nat.c (handle_unload_dll): Add function documentation.
6299 (do_initial_windows_stuff): Add comment explaining why we wait
6300 until after inferior initialization has finished before
6301 processing all DLLs.
6302
47f7ffdb
JB
63032014-02-20 Joel Brobecker <brobecker@adacore.com>
6304
6305 * windows-nat.c (get_module_name): Delete.
6306 (windows_get_exec_module_filename): New function, mostly
6307 inspired from get_module_name.
6308 (windows_pid_to_exec_file): Replace call to get_module_name
6309 by call to windows_get_exec_module_filename.
6310
1cd9feab
JB
63112014-02-20 Joel Brobecker <brobecker@adacore.com>
6312
6313 * windows-nat.c (handle_load_dll): Rewrite this function's
6314 introductory comment. Remove code using get_module_name
6315 to get the DLL's name.
6316
ea39ad35
JB
63172014-02-20 Joel Brobecker <brobecker@adacore.com>
6318
6319 * windows-nat.c (get_windows_debug_event): Ignore
6320 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6321 if windows_initialization_done == 0.
6322 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6323 Adjust implementation to always load all DLLs.
6324 (do_initial_windows_stuff): Replace call to
6325 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6326
95060284
JB
63272014-02-20 Joel Brobecker <brobecker@adacore.com>
6328
6329 * windows-nat.c (_initialize_windows_nat): Deprecate the
6330 "dll-symbols" command. Turn the "add-shared-symbol-files"
6331 and "assf" aliases into commands, and deprecate them as well.
6332 * NEWS: Add entry explaining that "dll-symbols" and its two
6333 aliases are now deprecated.
6334
8d4fdb12
JB
63352014-02-20 Joel Brobecker <brobecker@adacore.com>
6336
6337 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6338 new-line in debug string. Remove trailing spaces.
6339
1b281443
SS
63402014-02-19 Stan Shebs <stan@codesourcery.com>
6341
6342 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6343
f7bd0f78
SC
63442014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6345
6346 * NEWS: Add entry for the new feature
6347 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6348 and class values.
6349
399ebc3d
SS
63502014-02-19 Stan Shebs <stan@codesourcery.com>
6351
6352 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6353
c658158d
PA
63542014-02-19 Pedro Alves <palves@redhat.com>
6355
6356 * common/ptid.h (struct ptid): Mention that process_stratum
6357 targets should prefer ptid.lwp.
6358
ba348170
PA
63592014-02-19 Pedro Alves <palves@redhat.com>
6360
6361 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6362 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6363 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6364 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6365 store remote thread ids rather than ptid.tid.
6366 (_initialize_remote): Adjust.
6367
ac01945b
TT
63682014-02-19 Tom Tromey <tromey@redhat.com>
6369
6370 * target.c (target_get_unwinder): Rewrite.
6371 (target_get_tailcall_unwinder): Rewrite.
6372 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6373 (record_btrace_to_get_tailcall_unwinder): New function.
6374 (init_record_btrace_ops): Update.
6375 * target.h (struct target_ops) <to_get_unwinder,
6376 to_get_tailcall_unwinder>: Now function pointers. Use
6377 TARGET_DEFAULT_RETURN.
6378
8476dc92
TT
63792014-02-19 Tom Tromey <tromey@redhat.com>
6380
6381 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6382 argument.
6383 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6384
c0eca49f
TT
63852014-02-19 Tom Tromey <tromey@redhat.com>
6386
6387 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6388 directly.
6389 * target-delegates.c: Rebuild.
6390 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6391 TARGET_DEFAULT_FUNC.
6392 * target.c (default_target_decr_pc_after_break): Rename from
6393 forward_target_decr_pc_after_break. Simplify.
6394 (target_decr_pc_after_break): Rely on delegation.
6395
596b6b39
TT
63962014-02-19 Tom Tromey <tromey@redhat.com>
6397
6398 * target.c (update_current_target): Do not INHERIT to_doc or
6399 to_magic. Do not de_fault to_open or to_close.
6400
b427c1bc
TT
64012014-02-19 Tom Tromey <tromey@redhat.com>
6402
6403 * gcore.h (objfile_find_memory_regions): Declare.
6404 * gcore.c (objfile_find_memory_regions): No longer static. Add
6405 "self" argument.
6406 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6407 * exec.c: Include gcore.h.
6408 (exec_set_find_memory_regions): Remove.
6409 (exec_find_memory_regions): Remove.
6410 (exec_do_find_memory_regions): Remove.
6411 (init_exec_ops): Update.
6412 * defs.h (exec_set_find_memory_regions): Remove.
6413
9b144037
TT
64142014-02-19 Tom Tromey <tromey@redhat.com>
6415
6416 * target-delegates.c: Rebuild.
6417 * target.h (struct target_ops) <to_extra_thread_info,
6418 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6419 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6420 not 0, in TARGET_DEFAULT_RETURN.
6421
555bbdeb
TT
64222014-02-19 Tom Tromey <tromey@redhat.com>
6423
6424 * target.c (complete_target_initialization): Remove casts. Use
6425 return_zero_has_execution.
6426 (return_zero): Add "ignore" argument.
6427 (return_zero_has_execution): New function.
6428 (init_dummy_target): Remove casts. Use
6429 return_zero_has_execution.
6430
be4ddd36
TT
64312014-02-19 Tom Tromey <tromey@redhat.com>
6432
6433 * target.c (update_current_target): Update comments. Do not
6434 INHERIT to_stratum.
6435
2117c711
TT
64362014-02-19 Tom Tromey <tromey@redhat.com>
6437
6438 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6439 needed.
6440 * corelow.c (core_read_description): Delegate when needed.
6441 * remote.c (remote_read_description): Delegate when needed.
6442 * target-delegates.c: Rebuild.
6443 * target.c (target_read_description): Rewrite.
6444 * target.h (struct target_ops) <to_read_description>: Update
6445 comment. Use TARGET_DEFAULT_RETURN.
6446
e88ef65c
TT
64472014-02-19 Tom Tromey <tromey@redhat.com>
6448
6449 * target-delegates.c: Rebuild.
6450 * target.c (update_current_target): Don't inherit or default
6451 to_can_run.
6452 (find_default_run_target): Check against delegate_can_run.
6453 * target.h (struct target_ops) <to_can_run>: Use
6454 TARGET_DEFAULT_RETURN.
6455
86a0854a
TT
64562014-02-19 Tom Tromey <tromey@redhat.com>
6457
6458 * target-delegates.c: Rebuild.
6459 * target.c (target_disconnect): Unconditionally delegate.
6460 * target.h (struct target_ops) <to_disconnect>: Use
6461 TARGET_DEFAULT_NORETURN.
6462
ee97f592
TT
64632014-02-19 Tom Tromey <tromey@redhat.com>
6464
6465 * record.c (record_stop): Unconditionally delegate.
6466 * target-delegates.c: Rebuild.
6467 * target.c (target_stop_recording): Unconditionally delegate.
6468 * target.h (struct target_ops) <to_stop_recording>: Use
6469 TARGET_DEFAULT_IGNORE.
6470
6dc7fcf4
TT
64712014-02-19 Tom Tromey <tromey@redhat.com>
6472
6473 * target-delegates.c: Rebuild.
6474 * target.c (target_enable_btrace): Unconditionally delegate.
6475 * target.h (struct target_ops) <to_enable_btrace>: Use
6476 TARGET_DEFAULT_NORETURN.
6477
eb5b20d4
TT
64782014-02-19 Tom Tromey <tromey@redhat.com>
6479
6480 * target-delegates.c: Rebuild.
6481 * target.c (target_read_btrace): Unconditionally delegate.
6482 * target.h (struct target_ops) <to_read_btrace>: Use
6483 TARGET_DEFAULT_NORETURN.
6484
9ace480d
TT
64852014-02-19 Tom Tromey <tromey@redhat.com>
6486
6487 * target-delegates.c: Rebuild.
6488 * target.c (target_teardown_btrace): Unconditionally delegate.
6489 * target.h (struct target_ops) <to_teardown_btrace>: Use
6490 TARGET_DEFAULT_NORETURN.
6491
8dc292d3
TT
64922014-02-19 Tom Tromey <tromey@redhat.com>
6493
6494 * target-delegates.c: Rebuild.
6495 * target.c (target_disable_btrace): Unconditionally delegate.
6496 * target.h (struct target_ops) <to_disable_btrace>: Use
6497 TARGET_DEFAULT_NORETURN.
6498
58a5184e
TT
64992014-02-19 Tom Tromey <tromey@redhat.com>
6500
6501 * target-delegates.c: Rebuild.
6502 * target.c (default_search_memory): New function.
6503 (simple_search_memory): Update comment.
6504 (target_search_memory): Unconditionally delegate.
6505 * target.h (struct target_ops) <to_search_memory>: Use
6506 TARGET_DEFAULT_FUNC.
6507
8de71aab
TT
65082014-02-19 Tom Tromey <tromey@redhat.com>
6509
6510 * auxv.c (default_auxv_parse): No longer static.
6511 (target_auxv_parse): Unconditionally delegate.
6512 * auxv.h (default_auxv_parse): Declare.
6513 * target-delegates.c: Rebuild.
6514 * target.c: Include auxv.h.
6515 * target.h (struct target_ops) <to_auxv_parse>: Use
6516 TARGET_DEFAULT_FUNC.
6517
6b2c5a57
TT
65182014-02-19 Tom Tromey <tromey@redhat.com>
6519
6520 * target-delegates.c: Rebuild.
6521 * target.c (target_memory_map): Unconditionally delegate.
6522 * target.h (struct target_ops) <to_memory_map>: Use
6523 TARGET_DEFAULT_RETURN.
6524
cbffc065
TT
65252014-02-19 Tom Tromey <tromey@redhat.com>
6526
6527 * target-delegates.c: Rebuild.
6528 * target.c (target_thread_alive): Unconditionally delegate.
6529 * target.h (struct target_ops) <to_thread_alive>: Use
6530 TARGET_DEFAULT_RETURN.
6531
f09e2107
TT
65322014-02-19 Tom Tromey <tromey@redhat.com>
6533
6534 * target-delegates.c: Rebuild.
6535 * target.c (target_save_record): Unconditionally delegate.
6536 * target.h (struct target_ops) <to_save_record>: Use
6537 TARGET_DEFAULT_NORETURN.
6538
07366925
TT
65392014-02-19 Tom Tromey <tromey@redhat.com>
6540
6541 * target-delegates.c: Rebuild.
6542 * target.c (target_delete_record): Unconditionally delegate.
6543 * target.h (struct target_ops) <to_delete_record>: Use
6544 TARGET_DEFAULT_NORETURN.
6545
dd2e9d25
TT
65462014-02-19 Tom Tromey <tromey@redhat.com>
6547
6548 * target-delegates.c: Rebuild.
6549 * target.c (target_record_is_replaying): Unconditionally
6550 delegate.
6551 * target.h (struct target_ops) <to_record_is_replaying>: Use
6552 TARGET_DEFAULT_RETURN.
6553
671e76cc
TT
65542014-02-19 Tom Tromey <tromey@redhat.com>
6555
6556 * target-delegates.c: Rebuild.
6557 * target.c (target_goto_record_begin): Unconditionally delegate.
6558 * target.h (struct target_ops) <to_goto_record_begin>: Use
6559 TARGET_DEFAULT_NORETURN.
6560
e9179bb3
TT
65612014-02-19 Tom Tromey <tromey@redhat.com>
6562
6563 * target-delegates.c: Rebuild.
6564 * target.c (target_goto_record_end): Unconditionally delegate.
6565 * target.h (struct target_ops) <to_goto_record_end>: Use
6566 TARGET_DEFAULT_NORETURN.
6567
05969c84
TT
65682014-02-19 Tom Tromey <tromey@redhat.com>
6569
6570 * target-delegates.c: Rebuild.
6571 * target.c (target_goto_record): Unconditionally delegate.
6572 * target.h (struct target_ops) <to_goto_record>: Use
6573 TARGET_DEFAULT_NORETURN.
6574
3679abfa
TT
65752014-02-19 Tom Tromey <tromey@redhat.com>
6576
6577 * target-delegates.c: Rebuild.
6578 * target.c (target_insn_history): Unconditionally delegate.
6579 * target.h (struct target_ops) <to_insn_history>: Use
6580 TARGET_DEFAULT_NORETURN.
6581
8444ab58
TT
65822014-02-19 Tom Tromey <tromey@redhat.com>
6583
6584 * target-delegates.c: Rebuild.
6585 * target.c (target_insn_history_from): Unconditionally delegate.
6586 * target.h (struct target_ops) <to_insn_history_from>: Use
6587 TARGET_DEFAULT_NORETURN.
6588
c29302cc
TT
65892014-02-19 Tom Tromey <tromey@redhat.com>
6590
6591 * target-delegates.c: Rebuild.
6592 * target.c (target_insn_history_range): Unconditionally delegate.
6593 * target.h (struct target_ops) <to_insn_history_range>: Use
6594 TARGET_DEFAULT_NORETURN.
6595
170049d4
TT
65962014-02-19 Tom Tromey <tromey@redhat.com>
6597
6598 * target-delegates.c: Rebuild.
6599 * target.c (target_call_history): Unconditionally delegate.
6600 * target.h (struct target_ops) <to_call_history>: Use
6601 TARGET_DEFAULT_NORETURN.
6602
16fc27d6
TT
66032014-02-19 Tom Tromey <tromey@redhat.com>
6604
6605 * target-delegates.c: Rebuild.
6606 * target.c (target_call_history_from): Unconditionally delegate.
6607 * target.h (struct target_ops) <to_call_history_from>: Use
6608 TARGET_DEFAULT_NORETURN.
6609
115d9817
TT
66102014-02-19 Tom Tromey <tromey@redhat.com>
6611
6612 * target-delegates.c: Rebuild.
6613 * target.c (target_call_history_range): Unconditionally delegate.
6614 * target.h (struct target_ops) <to_call_history_range>: Use
6615 TARGET_DEFAULT_NORETURN.
6616
eb276a6b
TT
66172014-02-19 Tom Tromey <tromey@redhat.com>
6618
6619 * target-delegates.c: Rebuild.
6620 * target.c (target_verify_memory): Unconditionally delegate.
6621 * target.h (struct target_ops) <to_verify_memory>: Use
6622 TARGET_DEFAULT_NORETURN.
6623
9e538d0d
TT
66242014-02-19 Tom Tromey <tromey@redhat.com>
6625
6626 * target-delegates.c: Rebuild.
6627 * target.c (target_core_of_thread): Unconditionally delegate.
6628 * target.h (struct target_ops) <to_core_of_thread>: Use
6629 TARGET_DEFAULT_RETURN.
6630
f6fb2925
TT
66312014-02-19 Tom Tromey <tromey@redhat.com>
6632
6633 * target-delegates.c: Rebuild.
6634 * target.c (target_flash_done): Unconditionally delegate.
6635 * target.h (struct target_ops) <to_flash_done>: Use
6636 TARGET_DEFAULT_NORETURN.
6637
e8a6c6ac
TT
66382014-02-19 Tom Tromey <tromey@redhat.com>
6639
6640 * target-delegates.c: Rebuild.
6641 * target.c (target_flash_erase): Unconditionally delegate.
6642 * target.h (struct target_ops) <to_flash_erase>: Use
6643 TARGET_DEFAULT_NORETURN.
6644
7e35c012
TT
66452014-02-19 Tom Tromey <tromey@redhat.com>
6646
6647 * target-delegates.c: Rebuild.
6648 * target.c (target_get_section_table): Unconditionally delegate.
6649 * target.h (struct target_ops) <to_get_section_table>: Use
6650 TARGET_DEFAULT_RETURN.
6651
770234d3
TT
66522014-02-19 Tom Tromey <tromey@redhat.com>
6653
6654 * target-delegates.c: Rebuild.
6655 * target.c (target_pid_to_str): Unconditionally delegate.
6656 (init_dummy_target): Don't initialize to_pid_to_str.
6657 (default_pid_to_str): Rename from dummy_pid_to_str.
6658 * target.h (struct target_ops) <to_pid_to_str>: Use
6659 TARGET_DEFAULT_FUNC.
6660
09b0dc2b
TT
66612014-02-19 Tom Tromey <tromey@redhat.com>
6662
6663 * target-delegates.c: Rebuild.
6664 * target.c (target_find_new_threads): Unconditionally delegate.
6665 * target.h (struct target_ops) <to_find_new_threads>: Use
6666 TARGET_DEFAULT_RETURN.
6667
7d4f8efa
TT
66682014-02-19 Tom Tromey <tromey@redhat.com>
6669
6670 * target-delegates.c: Rebuild.
6671 * target.c (target_program_signals): Unconditionally delegate.
6672 * target.h (struct target_ops) <to_program_signals>: Use
6673 TARGET_DEFAULT_IGNORE.
6674
035cad7f
TT
66752014-02-19 Tom Tromey <tromey@redhat.com>
6676
6677 * target-delegates.c: Rebuild.
6678 * target.c (target_pass_signals): Unconditionally delegate.
6679 * target.h (struct target_ops) <to_pass_signals>: Use
6680 TARGET_DEFAULT_IGNORE.
6681
8d657035
TT
66822014-02-19 Tom Tromey <tromey@redhat.com>
6683
6684 * target-delegates.c: Rebuild.
6685 * target.c (default_mourn_inferior): New function.
6686 (target_mourn_inferior): Unconditionally delegate.
6687 * target.h (struct target_ops) <to_mourn_inferior>: Use
6688 TARGET_DEFAULT_FUNC.
6689
098dba18
TT
66902014-02-19 Tom Tromey <tromey@redhat.com>
6691
6692 * target-delegates.c: Rebuild.
6693 * target.c (default_follow_fork): New function.
6694 (target_follow_fork): Unconditionally delegate.
6695 * target.h (struct target_ops) <to_follow_fork>: Use
6696 TARGET_DEFAULT_FUNC.
6697
423a4807
TT
66982014-02-19 Tom Tromey <tromey@redhat.com>
6699
6700 * target-delegates.c: Rebuild.
6701 * target.c (target_kill): Unconditionally delegate.
6702 * target.h (struct target_ops) <to_kill>: Use
6703 TARGET_DEFAULT_NORETURN.
6704
6c7e5e5c
TT
67052014-02-19 Tom Tromey <tromey@redhat.com>
6706
6707 * target-delegates.c: Rebuild.
6708 * target.c (target_masked_watch_num_registers): Unconditionally
6709 delegate.
6710 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6711 Use TARGET_DEFAULT_RETURN.
6712
8b1c364c
TT
67132014-02-19 Tom Tromey <tromey@redhat.com>
6714
6715 * target-delegates.c: Rebuild.
6716 * target.c (target_remove_mask_watchpoint): Unconditionally
6717 delegate.
6718 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6719 TARGET_DEFAULT_RETURN.
6720
cd4ae029
TT
67212014-02-19 Tom Tromey <tromey@redhat.com>
6722
6723 * target-delegates.c: Rebuild.
6724 * target.c (target_insert_mask_watchpoint): Unconditionally
6725 delegate.
6726 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6727 TARGET_DEFAULT_RETURN.
6728
a134316b
TT
67292014-02-19 Tom Tromey <tromey@redhat.com>
6730
6731 * target-delegates.c: Rebuild.
6732 * target.c (target_ranged_break_num_registers): Unconditionally
6733 delegate.
6734 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6735 Use TARGET_DEFAULT_RETURN.
6736
ad5989bd
TT
67372014-02-19 Tom Tromey <tromey@redhat.com>
6738
6739 * target-delegates.c: Rebuild.
6740 * target.c (target_fetch_registers): Unconditionally delegate.
6741 * target.h (struct target_ops) <to_fetch_registers>: Use
6742 TARGET_DEFAULT_NORETURN.
6743
46ee7e8d
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_stop.
6749 * target.h (struct target_ops) <to_stop>: Use
6750 TARGET_DEFAULT_IGNORE.
6751
843f59ed
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_run_breakpoint_commands.
6757 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6758 Use TARGET_DEFAULT_RETURN.
6759
ccfde2a0
TT
67602014-02-19 Tom Tromey <tromey@redhat.com>
6761
6762 * target-delegates.c: Rebuild.
6763 * target.c (update_current_target): Don't inherit or default
6764 to_supports_evaluation_of_breakpoint_conditions.
6765 * target.h (struct target_ops)
6766 <to_supports_evaluation_of_breakpoint_conditions>: Use
6767 TARGET_DEFAULT_RETURN.
6768
0de91722
TT
67692014-02-19 Tom Tromey <tromey@redhat.com>
6770
6771 * target-delegates.c: Rebuild.
6772 * target.c (update_current_target): Don't inherit or default
6773 to_augmented_libraries_svr4_read.
6774 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6775 Use TARGET_DEFAULT_RETURN.
6776
9a7d8b48
TT
67772014-02-19 Tom Tromey <tromey@redhat.com>
6778
6779 * target-delegates.c: Rebuild.
6780 * target.c (update_current_target): Don't inherit or default
6781 to_can_use_agent.
6782 * target.h (struct target_ops) <to_can_use_agent>: Use
6783 TARGET_DEFAULT_RETURN.
6784
d9db5b21
TT
67852014-02-19 Tom Tromey <tromey@redhat.com>
6786
6787 * target-delegates.c: Rebuild.
6788 * target.c (update_current_target): Don't inherit or default
6789 to_use_agent.
6790 * target.h (struct target_ops) <to_use_agent>: Use
6791 TARGET_DEFAULT_NORETURN.
6792
92155eeb
TT
67932014-02-19 Tom Tromey <tromey@redhat.com>
6794
6795 * target-delegates.c: Rebuild.
6796 * target.c (update_current_target): Don't inherit or default
6797 to_traceframe_info.
6798 (return_null): Remove.
6799 * target.h (struct target_ops) <to_traceframe_info>: Use
6800 TARGET_DEFAULT_RETURN.
6801
d6522a22
TT
68022014-02-19 Tom Tromey <tromey@redhat.com>
6803
6804 * target-delegates.c: Rebuild.
6805 * target.c (update_current_target): Don't inherit or default
6806 to_static_tracepoint_markers_by_strid.
6807 * target.h (struct target_ops)
6808 <to_static_tracepoint_markers_by_strid>: Use
6809 TARGET_DEFAULT_NORETURN.
6810
4c3e4425
TT
68112014-02-19 Tom Tromey <tromey@redhat.com>
6812
6813 * target-delegates.c: Rebuild.
6814 * target.c (update_current_target): Don't inherit or default
6815 to_static_tracepoint_marker_at.
6816 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6817 Use TARGET_DEFAULT_RETURN.
6818
dcd6917f
TT
68192014-02-19 Tom Tromey <tromey@redhat.com>
6820
6821 * target-delegates.c: Rebuild.
6822 * target.c (update_current_target): Don't inherit or default
6823 to_set_permissions.
6824 * target.h (struct target_ops) <to_set_permissions>: Use
6825 TARGET_DEFAULT_IGNORE.
6826
22bcceee
TT
68272014-02-19 Tom Tromey <tromey@redhat.com>
6828
6829 * target-delegates.c: Rebuild.
6830 * target.c (update_current_target): Don't inherit or default
6831 to_get_tib_address.
6832 * target.h (struct target_ops) <to_get_tib_address>: Use
6833 TARGET_DEFAULT_NORETURN.
6834
8586ccaa
TT
68352014-02-19 Tom Tromey <tromey@redhat.com>
6836
6837 * target-delegates.c: Rebuild.
6838 * target.c (update_current_target): Don't inherit or default
6839 to_set_trace_notes.
6840 * target.h (struct target_ops) <to_set_trace_notes>: Use
6841 TARGET_DEFAULT_RETURN.
6842
91df8d1d
TT
68432014-02-19 Tom Tromey <tromey@redhat.com>
6844
6845 * target-delegates.c: Rebuild.
6846 * target.c (update_current_target): Don't initialize
6847 to_set_trace_buffer_size.
6848 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6849 TARGET_DEFAULT_IGNORE.
6850
8d526939
TT
68512014-02-19 Tom Tromey <tromey@redhat.com>
6852
6853 * target-delegates.c: Rebuild.
6854 * target.c (update_current_target): Don't inherit or default
6855 to_set_circular_trace_buffer.
6856 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6857 TARGET_DEFAULT_IGNORE.
6858
0bcfeddf
TT
68592014-02-19 Tom Tromey <tromey@redhat.com>
6860
6861 * target-delegates.c: Rebuild.
6862 * target.c (update_current_target): Don't inherit or default
6863 to_set_disconnected_tracing.
6864 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6865 TARGET_DEFAULT_IGNORE.
6866
9249843f
TT
68672014-02-19 Tom Tromey <tromey@redhat.com>
6868
6869 * target-delegates.c: Rebuild.
6870 * target.c (update_current_target): Don't inherit or default
6871 to_get_min_fast_tracepoint_insn_len.
6872 (return_minus_one): Remove.
6873 * target.h (struct target_ops)
6874 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6875
ace92e7d
TT
68762014-02-19 Tom Tromey <tromey@redhat.com>
6877
6878 * target-delegates.c: Rebuild.
6879 * target.c (update_current_target): Don't inherit or default
6880 to_get_raw_trace_data.
6881 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6882 TARGET_DEFAULT_NORETURN.
6883
08120467
TT
68842014-02-19 Tom Tromey <tromey@redhat.com>
6885
6886 * target-delegates.c: Rebuild.
6887 * target.c (update_current_target): Don't inherit or default
6888 to_upload_trace_state_variables.
6889 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6890 Use TARGET_DEFAULT_RETURN.
6891
1e949b00
TT
68922014-02-19 Tom Tromey <tromey@redhat.com>
6893
6894 * target-delegates.c: Rebuild.
6895 * target.c (update_current_target): Don't inherit or default
6896 to_upload_tracepoints.
6897 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6898 TARGET_DEFAULT_RETURN.
6899
a2e6c147
TT
69002014-02-19 Tom Tromey <tromey@redhat.com>
6901
6902 * target-delegates.c: Rebuild.
6903 * target.c (update_current_target): Don't inherit or default
6904 to_save_trace_data.
6905 * target.h (struct target_ops) <to_save_trace_data>: Use
6906 TARGET_DEFAULT_NORETURN.
6907
959bcd0b
TT
69082014-02-19 Tom Tromey <tromey@redhat.com>
6909
6910 * target-delegates.c: Rebuild.
6911 * target.c (update_current_target): Don't inherit or default
6912 to_get_trace_state_variable_value.
6913 * target.h (struct target_ops)
6914 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6915
afc94e66
TT
69162014-02-19 Tom Tromey <tromey@redhat.com>
6917
6918 * target-delegates.c: Rebuild.
6919 * target.c (update_current_target): Don't inherit or default
6920 to_trace_find.
6921 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6922
e51c07ea
TT
69232014-02-19 Tom Tromey <tromey@redhat.com>
6924
6925 * target-delegates.c: Rebuild.
6926 * target.c (update_current_target): Don't inherit or default
6927 to_trace_stop.
6928 * target.h (struct target_ops) <to_trace_stop>: Use
6929 TARGET_DEFAULT_NORETURN.
6930
6fea14cd
TT
69312014-02-19 Tom Tromey <tromey@redhat.com>
6932
6933 * target-delegates.c: Rebuild.
6934 * target.c (update_current_target): Don't inherit or default
6935 to_get_tracepoint_status.
6936 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6937 TARGET_DEFAULT_NORETURN.
6938
4072d4ff
TT
69392014-02-19 Tom Tromey <tromey@redhat.com>
6940
6941 * target-delegates.c: Rebuild.
6942 * target.c (update_current_target): Don't inherit or default
6943 to_get_trace_status.
6944 * target.h (struct target_ops) <to_get_trace_status>: Use
6945 TARGET_DEFAULT_RETURN.
6946
25da2e80
TT
69472014-02-19 Tom Tromey <tromey@redhat.com>
6948
6949 * target-delegates.c: Rebuild.
6950 * target.c (update_current_target): Don't inherit or default
6951 to_trace_start.
6952 * target.h (struct target_ops) <to_trace_start>: Use
6953 TARGET_DEFAULT_NORETURN.
6954
86dd181d
TT
69552014-02-19 Tom Tromey <tromey@redhat.com>
6956
6957 * target-delegates.c: Rebuild.
6958 * target.c (update_current_target): Don't inherit or default
6959 to_trace_set_readonly_regions.
6960 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6961 Use TARGET_DEFAULT_NORETURN.
6962
05c41993
TT
69632014-02-19 Tom Tromey <tromey@redhat.com>
6964
6965 * target-delegates.c: Rebuild.
6966 * target.c (update_current_target): Don't inherit or default
6967 to_disable_tracepoint.
6968 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6969 TARGET_DEFAULT_NORETURN.
6970
151f70f1
TT
69712014-02-19 Tom Tromey <tromey@redhat.com>
6972
6973 * target-delegates.c: Rebuild.
6974 * target.c (update_current_target): Don't inherit or default
6975 to_enable_tracepoint.
6976 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6977 TARGET_DEFAULT_NORETURN.
6978
94eb98b9
TT
69792014-02-19 Tom Tromey <tromey@redhat.com>
6980
6981 * target-delegates.c: Rebuild.
6982 * target.c (update_current_target): Don't inherit or default
6983 to_download_trace_state_variable.
6984 * target.h (struct target_ops) <to_download_trace_state_variable>:
6985 Use TARGET_DEFAULT_NORETURN.
6986
719acc4a
TT
69872014-02-19 Tom Tromey <tromey@redhat.com>
6988
6989 * target-delegates.c: Rebuild.
6990 * target.c (update_current_target): Don't inherit or default
6991 to_can_download_tracepoint.
6992 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6993 TARGET_DEFAULT_RETURN.
6994
9a980a22
TT
69952014-02-19 Tom Tromey <tromey@redhat.com>
6996
6997 * target-delegates.c: Rebuild.
6998 * target.c (update_current_target): Don't inherit or default
6999 to_download_tracepoint.
7000 * target.h (struct target_ops) <to_download_tracepoint>: Use
7001 TARGET_DEFAULT_NORETURN.
7002
5536135b
TT
70032014-02-19 Tom Tromey <tromey@redhat.com>
7004
7005 * target-delegates.c: Rebuild.
7006 * target.c (update_current_target): Don't inherit or default
7007 to_trace_init.
7008 * target.h (struct target_ops) <to_trace_init>: Use
7009 TARGET_DEFAULT_RETURN.
7010
9409d39e
TT
70112014-02-19 Tom Tromey <tromey@redhat.com>
7012
7013 * target-delegates.c: Rebuild.
7014 * target.c (update_current_target): Don't inherit or default
7015 to_supports_string_tracing.
7016 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7017 TARGET_DEFAULT_RETURN.
7018
aab1b22d
TT
70192014-02-19 Tom Tromey <tromey@redhat.com>
7020
7021 * target-delegates.c: Rebuild.
7022 * target.c (update_current_target): Don't inherit or default
7023 to_supports_enable_disable_tracepoint.
7024 * target.h (struct target_ops)
7025 <to_supports_enable_disable_tracepoint>: Use
7026 TARGET_DEFAULT_RETURN.
7027
a7304748
TT
70282014-02-19 Tom Tromey <tromey@redhat.com>
7029
7030 * target-delegates.c: Rebuild.
7031 * target.c (update_current_target): Don't inherit or default
7032 to_supports_multi_process.
7033 * target.h (struct target_ops) <to_supports_multi_process>: Use
7034 TARGET_DEFAULT_RETURN.
7035
4229b31d
TT
70362014-02-19 Tom Tromey <tromey@redhat.com>
7037
7038 * target-delegates.c: Rebuild.
7039 * target.c (update_current_target): Don't inherit or default
7040 to_get_ada_task_ptid.
7041 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7042 TARGET_DEFAULT_FUNC.
7043
43eba180
TT
70442014-02-19 Tom Tromey <tromey@redhat.com>
7045
7046 * target-delegates.c: Rebuild.
7047 * target.c (update_current_target): Don't inherit or default
7048 to_thread_architecture.
7049 * target.h (struct target_ops) <to_thread_architecture>: Use
7050 TARGET_DEFAULT_FUNC.
7051
fe31bf5b
TT
70522014-02-19 Tom Tromey <tromey@redhat.com>
7053
7054 * target-delegates.c: Rebuild.
7055 * target.c (update_current_target): Don't inherit or default
7056 to_execution_direction.
7057 * target.h (struct target_ops) <to_execution_direction>: Use
7058 TARGET_DEFAULT_FUNC.
7059
53e1cfc7
TT
70602014-02-19 Tom Tromey <tromey@redhat.com>
7061
7062 * target-delegates.c: Rebuild.
7063 * target.c (update_current_target): Don't inherit or default
7064 to_can_execute_reverse.
7065 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7066 TARGET_DEFAULT_RETURN.
7067 (target_can_execute_reverse): Unconditionally delegate.
7068
9bb9d61d
TT
70692014-02-19 Tom Tromey <tromey@redhat.com>
7070
7071 * target-delegates.c: Rebuild.
7072 * target.c (update_current_target): Don't inherit or default
7073 to_goto_bookmark.
7074 (dummy_goto_bookmark): Remove.
7075 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7076 * target.h (struct target_ops) <to_goto_bookmark>: Use
7077 TARGET_DEFAULT_NORETURN.
7078
3dbafbbb
TT
70792014-02-19 Tom Tromey <tromey@redhat.com>
7080
7081 * target-delegates.c: Rebuild.
7082 * target.c (update_current_target): Don't inherit or default
7083 to_get_bookmark.
7084 (dummy_get_bookmark): Remove.
7085 (init_dummy_target): Don't inherit or default to_get_bookmark.
7086 * target.h (struct target_ops) <to_get_bookmark>: Use
7087 TARGET_DEFAULT_NORETURN
7088
16f796b1
TT
70892014-02-19 Tom Tromey <tromey@redhat.com>
7090
7091 * target-delegates.c: Rebuild.
7092 * target.c (update_current_target): Don't inherit or default
7093 to_make_corefile_notes.
7094 (init_dummy_target): Don't initialize to_make_corefile_notes.
7095 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7096 TARGET_DEFAULT_FUNC.
7097
0b5a2719
TT
70982014-02-19 Tom Tromey <tromey@redhat.com>
7099
7100 * target-delegates.c: Rebuild.
7101 * target.c (update_current_target): Don't inherit or default
7102 to_find_memory_regions.
7103 (init_dummy_target): Don't initialize to_find_memory_regions.
7104 * target.h (struct target_ops) <to_find_memory_regions>: Use
7105 TARGET_DEFAULT_FUNC.
7106
d9cb0195
TT
71072014-02-19 Tom Tromey <tromey@redhat.com>
7108
7109 * target-delegates.c: Rebuild.
7110 * target.c (update_current_target): Don't inherit or default
7111 to_log_command.
7112 * target.h (struct target_ops) <to_log_command>: Use
7113 TARGET_DEFAULT_IGNORE.
7114 (target_log_command): Unconditionally delegate.
7115
830ca330
TT
71162014-02-19 Tom Tromey <tromey@redhat.com>
7117
7118 * target-delegates.c: Rebuild.
7119 * target.c (update_current_target): Don't inherit or default
7120 to_pid_to_exec_file.
7121 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7122 TARGET_DEFAULT_RETURN.
7123
825828fc
TT
71242014-02-19 Tom Tromey <tromey@redhat.com>
7125
7126 * target-delegates.c: Rebuild.
7127 * target.c (update_current_target): Don't inherit or default
7128 to_thread_name.
7129 (target_thread_name): Unconditionally delegate.
7130 * target.h (struct target_ops) <to_thread_name>: Use
7131 TARGET_DEFAULT_RETURN.
7132
4a7e6dda
TT
71332014-02-19 Tom Tromey <tromey@redhat.com>
7134
7135 * target-delegates.c: Rebuild.
7136 * target.c (update_current_target): Don't inherit or default
7137 to_extra_thread_info.
7138 * target.h (struct target_ops) <to_extra_thread_info>: Use
7139 TARGET_DEFAULT_RETURN.
7140
0db88c1d
TT
71412014-02-19 Tom Tromey <tromey@redhat.com>
7142
7143 * target-delegates.c: Rebuild.
7144 * target.c (update_current_target): Don't inherit or default
7145 to_has_exited.
7146 * target.h (struct target_ops) <to_has_exited>: Use
7147 TARGET_DEFAULT_RETURN..
7148
6a9fa051
TT
71492014-02-19 Tom Tromey <tromey@redhat.com>
7150
7151 * target-delegates.c: Rebuild.
7152 * target.c (update_current_target): Don't inherit or default
7153 to_set_syscall_catchpoint.
7154 (return_one): Remove.
7155 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7156 TARGET_DEFAULT_RETURN.
7157
62f64d7a
TT
71582014-02-19 Tom Tromey <tromey@redhat.com>
7159
7160 * target-delegates.c: Rebuild.
7161 * target.c (update_current_target): Don't inherit or default
7162 to_insert_exec_catchpoint.
7163 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7164 TARGET_DEFAULT_RETURN.
7165
cda0f38c
TT
71662014-01-08 Tom Tromey <tromey@redhat.com>
7167
7168 * target-delegates.c: Rebuild.
7169 * target.c (update_current_target): Don't inherit or default
7170 to_insert_exec_catchpoint.
7171 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7172 TARGET_DEFAULT_RETURN.
7173
95c3375e
TT
71742014-02-19 Tom Tromey <tromey@redhat.com>
7175
7176 * target-delegates.c: Rebuild.
7177 * target.c (update_current_target): Don't inherit or default
7178 to_remove_vfork_catchpoint.
7179 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7180 TARGET_DEFAULT_RETURN.
7181
7e18a8dc
TT
71822014-02-19 Tom Tromey <tromey@redhat.com>
7183
7184 * target-delegates.c: Rebuild.
7185 * target.c (update_current_target): Don't inherit or default
7186 to_insert_vfork_catchpoint.
7187 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7188 TARGET_DEFAULT_RETURN.
7189
e1a21fb7
TT
71902014-02-19 Tom Tromey <tromey@redhat.com>
7191
7192 * target-delegates.c: Rebuild.
7193 * target.c (update_current_target): Don't inherit or default
7194 to_remove_fork_catchpoint.
7195 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7196 TARGET_DEFAULT_RETURN.
7197
5958ebeb
TT
71982014-02-19 Tom Tromey <tromey@redhat.com>
7199
7200 * target-delegates.c: Rebuild.
7201 * target.c (update_current_target): Don't inherit or default
7202 to_insert_fork_catchpoint.
7203 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7204 TARGET_DEFAULT_RETURN.
7205
340ba4bf
TT
72062014-02-19 Tom Tromey <tromey@redhat.com>
7207
7208 * target-delegates.c: Rebuild.
7209 * target.c (update_current_target): Don't inherit or default
7210 to_post_startup_inferior.
7211 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7212 TARGET_DEFAULT_IGNORE.
7213
7634da87
TT
72142014-02-19 Tom Tromey <tromey@redhat.com>
7215
7216 * target-delegates.c: Rebuild.
7217 * target.c (update_current_target): Don't inherit or default
7218 to_load.
7219 * target.h (struct target_ops) <to_load>: Use
7220 TARGET_DEFAULT_NORETURN.
7221
e19e919f
TT
72222014-02-19 Tom Tromey <tromey@redhat.com>
7223
7224 * target-delegates.c: Rebuild.
7225 * target.c (update_current_target): Don't inherit or default
7226 to_terminal_info.
7227 * target.h (struct target_ops) <to_terminal_info>: Use
7228 TARGET_DEFAULT_FUNC.
7229
c6ea8f79
TT
72302014-02-19 Tom Tromey <tromey@redhat.com>
7231
7232 * target-delegates.c: Rebuild.
7233 * target.c (update_current_target): Don't inherit or default
7234 to_terminal_save_ours.
7235 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7236 TARGET_DEFAULT_IGNORE.
7237
e4a733f1
TT
72382014-02-19 Tom Tromey <tromey@redhat.com>
7239
7240 * target-delegates.c: Rebuild.
7241 * target.c (update_current_target): Don't inherit or default
7242 to_terminal_ours.
7243 * target.h (struct target_ops) <to_terminal_ours>: Use
7244 TARGET_DEFAULT_IGNORE.
7245
74fcbef9
TT
72462014-02-19 Tom Tromey <tromey@redhat.com>
7247
7248 * target-delegates.c: Rebuild.
7249 * target.c (update_current_target): Don't inherit or default
7250 to_terminal_ours_for_output.
7251 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7252 TARGET_DEFAULT_IGNORE.
7253
ddeaacc9
TT
72542014-02-19 Tom Tromey <tromey@redhat.com>
7255
7256 * target-delegates.c: Rebuild.
7257 * target.c (update_current_target): Don't inherit or default
7258 to_terminal_inferior.
7259 * target.h (struct target_ops) <to_terminal_inferior>: Use
7260 TARGET_DEFAULT_IGNORE.
7261
0343661d
TT
72622014-02-19 Tom Tromey <tromey@redhat.com>
7263
7264 * target-delegates.c: Rebuild.
7265 * target.c (update_current_target): Don't inherit or default
7266 to_terminal_init.
7267 * target.h (struct target_ops) <to_terminal_init>: Use
7268 TARGET_DEFAULT_IGNORE.
7269
77cdffe9
TT
72702014-02-19 Tom Tromey <tromey@redhat.com>
7271
7272 * target-delegates.c: Rebuild.
7273 * target.c (update_current_target): Don't inherit or default
7274 to_can_accel_watchpoint_condition.
7275 * target.h (struct target_ops)
7276 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7277
d03655e4
TT
72782014-02-19 Tom Tromey <tromey@redhat.com>
7279
7280 * target-delegates.c: Rebuild.
7281 * target.c (update_current_target): Don't inherit or default
7282 to_region_ok_for_hw_watchpoint.
7283 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7284 Use TARGET_DEFAULT_FUNC.
7285
65f160a9
TT
72862014-02-19 Tom Tromey <tromey@redhat.com>
7287
7288 * target-delegates.c: Rebuild.
7289 * target.c (update_current_target): Don't inherit or default
7290 to_watchpoint_addr_within_range.
7291 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7292 Use TARGET_DEFAULT_FUNC.
7293
61dd109f
TT
72942014-02-19 Tom Tromey <tromey@redhat.com>
7295
7296 * target-delegates.c: Rebuild.
7297 * target.c (update_current_target): Don't inherit or default
7298 to_remove_watchpoint.
7299 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7300 TARGET_DEFAULT_NORETURN.
7301
016facd4
TT
73022014-02-19 Tom Tromey <tromey@redhat.com>
7303
7304 * target-delegates.c: Rebuild.
7305 * target.c (update_current_target): Don't inherit or default
7306 to_insert_watchpoint.
7307 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7308 TARGET_DEFAULT_RETURN.
7309
418dabac
TT
73102014-02-19 Tom Tromey <tromey@redhat.com>
7311
7312 * target-delegates.c: Rebuild.
7313 * target.c (update_current_target): Don't inherit or default
7314 to_remove_hw_breakpoint.
7315 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7316 TARGET_DEFAULT_RETURN.
7317
61b371f9
TT
73182014-02-19 Tom Tromey <tromey@redhat.com>
7319
7320 * target-delegates.c: Rebuild.
7321 * target.c (update_current_target): Don't inherit or default
7322 to_insert_hw_breakpoint.
7323 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7324 TARGET_DEFAULT_RETURN.
7325
52b51d06
TT
73262014-02-19 Tom Tromey <tromey@redhat.com>
7327
7328 * target-delegates.c: Rebuild.
7329 * target.c (update_current_target): Don't inherit or default
7330 to_can_use_hw_breakpoint.
7331 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7332 TARGET_DEFAULT_RETURN.
7333
f86e59b2
TT
73342014-02-19 Tom Tromey <tromey@redhat.com>
7335
7336 * target-delegates.c: Rebuild.
7337 * target.c (update_current_target): Don't inherit or default
7338 to_files_info.
7339 * target.h (struct target_ops) <to_files_info>: Use
7340 TARGET_DEFAULT_IGNORE.
7341
6c628163
TT
73422014-02-19 Tom Tromey <tromey@redhat.com>
7343
7344 * target-delegates.c: Rebuild.
7345 * target.c (update_current_target): Don't inherit or default
7346 to_store.
7347 * target.h (struct target_ops) <to_store>: Use
7348 TARGET_DEFAULT_NORETURN.
7349
bebd3233
TT
73502014-02-19 Tom Tromey <tromey@redhat.com>
7351
7352 * target-delegates.c: Rebuild.
7353 * target.c (update_current_target): Don't inherit or default
7354 to_post_attach.
7355 * target.h (struct target_ops) <to_post_attach>: Use
7356 TARGET_DEFAULT_IGNORE.
7357
a53f3625
TT
73582014-02-19 Tom Tromey <tromey@redhat.com>
7359
7360 * target-delegates.c: Rebuild.
7361 * target.c (update_current_target): Don't inherit or default
7362 to_rcmd.
7363 (default_rcmd): New function.
7364 (do_monitor_command): Unconditionally delegate.
7365 * target.h (struct target_ops) <to_rmcd>: Use
7366 TARGET_DEFAULT_FUNC.
7367
e9a29200
TT
73682014-02-19 Tom Tromey <tromey@redhat.com>
7369
7370 * target-delegates.c: Rebuild.
7371 * target.c (init_dummy_target): Don't initialize to_attach.
7372 (target_attach): Unconditionally delegate.
7373 * target.h (struct target_ops) <to_attach>: Use
7374 TARGET_DEFAULT_FUNC.
7375
09da0d0a
TT
73762014-02-19 Tom Tromey <tromey@redhat.com>
7377
7378 * target-delegates.c: Rebuild.
7379 * target.c (target_detach): Unconditionally delegate.
7380 (init_dummy_target): Don't initialize to_detach.
7381 * target.h (struct target_ops) <to_detach>: Use
7382 TARGET_DEFAULT_IGNORE.
7383
5436ff03
TT
73842014-02-19 Tom Tromey <tromey@redhat.com>
7385
7386 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7387 Add argument.
7388 (target_augmented_libraries_svr4_read): Add argument.
7389 * target.c (update_current_target): Update.
7390 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7391 argument.
7392
f0d960ea
TT
73932014-02-19 Tom Tromey <tromey@redhat.com>
7394
7395 * target.h (struct target_ops) <to_call_history_range>: Add
7396 argument.
7397 * target.c (target_call_history_range): Add argument.
7398 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7399 argument.
7400 (record_btrace_call_history_from): Update.
7401
ec0aea04
TT
74022014-02-19 Tom Tromey <tromey@redhat.com>
7403
7404 * target.h (struct target_ops) <to_call_history_from>: Add
7405 argument.
7406 * target.c (target_call_history_from): Add argument.
7407 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7408 argument.
7409
5df2fcba
TT
74102014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * target.h (struct target_ops) <to_call_history>: Add argument.
7413 * target.c (target_call_history): Add argument.
7414 * record-btrace.c (record_btrace_call_history): Add 'self'
7415 argument.
7416
4e99c6b7
TT
74172014-02-19 Tom Tromey <tromey@redhat.com>
7418
7419 * target.h (struct target_ops) <to_insn_history_range>: Add
7420 argument.
7421 * target.c (target_insn_history_range): Add argument.
7422 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7423 argument.
7424 (record_btrace_insn_history_from): Update.
7425
9abc3ff3
TT
74262014-02-19 Tom Tromey <tromey@redhat.com>
7427
7428 * target.h (struct target_ops) <to_insn_history_from>: Add
7429 argument.
7430 * target.c (target_insn_history_from): Add argument.
7431 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7432 argument.
7433
7a6c5609
TT
74342014-02-19 Tom Tromey <tromey@redhat.com>
7435
7436 * target.h (struct target_ops) <to_insn_history>: Add argument.
7437 * target.c (target_insn_history): Add argument.
7438 * record-btrace.c (record_btrace_insn_history): Add 'self'
7439 argument.
7440
606183ac
TT
74412014-02-19 Tom Tromey <tromey@redhat.com>
7442
7443 * target.h (struct target_ops) <to_goto_record>: Add argument.
7444 * target.c (target_goto_record): Add argument.
7445 * record-full.c (record_full_goto): Add 'self' argument.
7446 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7447
307a1b91
TT
74482014-02-19 Tom Tromey <tromey@redhat.com>
7449
7450 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7451 * target.c (target_goto_record_end): Add argument.
7452 * record-full.c (record_full_goto_end): Add 'self' argument.
7453 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7454
08475817
TT
74552014-02-19 Tom Tromey <tromey@redhat.com>
7456
7457 * target.h (struct target_ops) <to_goto_record_begin>: Add
7458 argument.
7459 * target.c (target_goto_record_begin): Add argument.
7460 * record-full.c (record_full_goto_begin): Add 'self' argument.
7461 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7462 argument.
7463
1c63c994
TT
74642014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target.h (struct target_ops) <to_record_is_replaying>: Add
7467 argument.
7468 * target.c (target_record_is_replaying): Add argument.
7469 * record-full.c (record_full_is_replaying): Add 'self' argument.
7470 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7471 argument.
7472 (record_btrace_xfer_partial, record_btrace_store_registers)
7473 (record_btrace_prepare_to_store, record_btrace_resume)
7474 (record_btrace_wait, record_btrace_decr_pc_after_break)
7475 (record_btrace_find_new_threads, record_btrace_thread_alive):
7476 Update.
7477
d1b55219
TT
74782014-02-19 Tom Tromey <tromey@redhat.com>
7479
7480 * target.h (struct target_ops) <to_delete_record>: Add argument.
7481 * target.c (target_delete_record): Add argument.
7482 * record-full.c (record_full_delete): Add 'self' argument.
7483
1390f529
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * target.h (struct target_ops) <to_save_record>: Add argument.
7487 * target.c (target_save_record): Add argument.
7488 * record-full.c (record_full_save): Add 'self' argument.
7489 (record_full_save): Add 'self' argument.
7490
630d6a4a
TT
74912014-02-19 Tom Tromey <tromey@redhat.com>
7492
7493 * target.h (struct target_ops) <to_info_record>: Add argument.
7494 * target.c (target_info_record): Add argument.
7495 * record.c (info_record_command): Add argument.
7496 * record-full.c (record_full_info): Add 'self' argument.
7497 * record-btrace.c (record_btrace_info): Add 'self' argument.
7498
c6cd7c02
TT
74992014-02-19 Tom Tromey <tromey@redhat.com>
7500
7501 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7502 * target.c (target_stop_recording): Add argument.
7503 * record.c (record_stop): Add argument.
7504 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7505 argument.
7506
39c49f83
TT
75072014-02-19 Tom Tromey <tromey@redhat.com>
7508
7509 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7510 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7511 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7512 argument.
7513 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7514 (_initialize_amd64_linux_nat): Use it.
7515 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7516 (_initialize_i386_linux_nat): Use it.
7517
1777056d
TT
75182014-02-19 Tom Tromey <tromey@redhat.com>
7519
7520 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7521 * target.c (target_teardown_btrace): Add argument.
7522 * remote.c (remote_teardown_btrace): Add 'self' argument.
7523 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7524 argument.
7525 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7526 argument.
7527
25e95349
TT
75282014-02-19 Tom Tromey <tromey@redhat.com>
7529
7530 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7531 * target.c (target_disable_btrace): Add argument.
7532 * remote.c (remote_disable_btrace): Add 'self' argument.
7533 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7534 argument.
7535 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7536 argument.
7537
e3c49f88
TT
75382014-02-19 Tom Tromey <tromey@redhat.com>
7539
7540 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7541 * target.c (target_enable_btrace): Add argument.
7542 * remote.c (remote_enable_btrace): Add 'self' argument.
7543 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7544 argument.
7545 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7546 argument.
7547
fe38f897
TT
75482014-02-19 Tom Tromey <tromey@redhat.com>
7549
7550 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7551 (target_can_use_agent): Add argument.
7552 * target.c (update_current_target): Update.
7553 * remote.c (remote_can_use_agent): Add 'self' argument.
7554 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7555
2c152180
TT
75562014-02-19 Tom Tromey <tromey@redhat.com>
7557
7558 * target.h (struct target_ops) <to_use_agent>: Add argument.
7559 (target_use_agent): Add argument.
7560 * target.c (update_current_target): Update.
7561 * remote.c (remote_use_agent): Add 'self' argument.
7562 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7563
a893e81f
TT
75642014-02-19 Tom Tromey <tromey@redhat.com>
7565
7566 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7567 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7568 (target_traceframe_info): Add argument.
7569 * target.c (update_current_target): Update.
7570 * remote.c (remote_traceframe_info): Add 'self' argument.
7571 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7572
c686c57f
TT
75732014-02-19 Tom Tromey <tromey@redhat.com>
7574
7575 * target.h (target_static_tracepoint_markers_by_strid): Add
7576 argument.
7577 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7578 'self' argument.
7579 * target.c (update_current_target): Update.
7580 * remote.c (struct target_ops)
7581 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7582 * linux-nat.c (struct target_ops)
7583 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7584
61fc905d
TT
75852014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7588 Add argument.
7589 (target_static_tracepoint_marker_at): Add argument.
7590 * target.c (update_current_target): Update.
7591 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7592 argument.
7593
c378d69d
TT
75942014-02-19 Tom Tromey <tromey@redhat.com>
7595
7596 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7597 (target_set_permissions): Add argument.
7598 * target.c (update_current_target): Update.
7599 * remote.c (remote_set_permissions): Add 'self' argument.
7600 (remote_start_remote): Update.
7601
bd7ae0f5
TT
76022014-02-19 Tom Tromey <tromey@redhat.com>
7603
7604 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7605 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7606 (target_get_tib_address): Add argument.
7607 * target.c (update_current_target): Update.
7608 * remote.c (remote_get_tib_address): Add 'self' argument.
7609
d9e68a2c
TT
76102014-02-19 Tom Tromey <tromey@redhat.com>
7611
7612 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7613 (target_set_trace_notes): Add argument.
7614 * target.c (update_current_target): Update.
7615 * remote.c (remote_set_trace_notes): Add 'self' argument.
7616
4da384be
TT
76172014-02-19 Tom Tromey <tromey@redhat.com>
7618
7619 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7620 argument.
7621 (target_set_trace_buffer_size): Add argument.
7622 * target.c (update_current_target): Update.
7623 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7624
736d5b1f
TT
76252014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7628 argument.
7629 (target_set_circular_trace_buffer): Add argument.
7630 * target.c (update_current_target): Update.
7631 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7632 argument.
7633
37b25738
TT
76342014-02-19 Tom Tromey <tromey@redhat.com>
7635
7636 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7637 argument.
7638 (target_set_disconnected_tracing): Add argument.
7639 * target.c (update_current_target): Update.
7640 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7641
0e67620a
TT
76422014-02-19 Tom Tromey <tromey@redhat.com>
7643
7644 * target.h (struct target_ops)
7645 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7646 (target_get_min_fast_tracepoint_insn_len): Add argument.
7647 * target.c (update_current_target): Update.
7648 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7649 argument.
7650
88ee6f45
TT
76512014-02-19 Tom Tromey <tromey@redhat.com>
7652
7653 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7654 argument.
7655 (target_get_raw_trace_data): Add argument.
7656 * target.c (update_current_target): Update.
7657 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7658
181e3713
TT
76592014-02-19 Tom Tromey <tromey@redhat.com>
7660
7661 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7662 Add argument.
7663 (target_upload_trace_state_variables): Add argument.
7664 * target.c (update_current_target): Update.
7665 * remote.c (remote_upload_trace_state_variables): Add 'self'
7666 argument.
7667 (remote_start_remote): Update.
7668
ab6617cc
TT
76692014-02-19 Tom Tromey <tromey@redhat.com>
7670
7671 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7672 argument.
7673 (target_upload_tracepoints): Add argument.
7674 * target.c (update_current_target): Update.
7675 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7676 (remote_start_remote): Update.
7677
dc3decaf
TT
76782014-02-19 Tom Tromey <tromey@redhat.com>
7679
7680 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7681 (target_save_trace_data): Add argument.
7682 * target.c (update_current_target): Update.
7683 * remote.c (remote_save_trace_data): Add 'self' argument.
7684
4011015b
TT
76852014-02-19 Tom Tromey <tromey@redhat.com>
7686
7687 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7688 argument.
7689 * target.h (struct target_ops)
7690 <to_get_trace_state_variable_value>: Add argument.
7691 (target_get_trace_state_variable_value): Add argument.
7692 * target.c (update_current_target): Update.
7693 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7694 argument.
7695 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7696
bd4c6793
TT
76972014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7700 * target.h (struct target_ops) <to_trace_find>: Add argument.
7701 (target_trace_find): Add argument.
7702 * target.c (update_current_target): Update.
7703 * remote.c (remote_trace_find): Add 'self' argument.
7704 * ctf.c (ctf_trace_find): Add 'self' argument.
7705
74499f1b
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7709 (target_trace_stop): Add argument.
7710 * target.c (update_current_target): Update.
7711 * remote.c (remote_trace_stop): Add 'self' argument.
7712
db90e85c
TT
77132014-02-19 Tom Tromey <tromey@redhat.com>
7714
7715 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7716 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7717 argument.
7718 (target_get_tracepoint_status): Add argument.
7719 * target.c (update_current_target): Update.
7720 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7721
8bd200f1
TT
77222014-02-19 Tom Tromey <tromey@redhat.com>
7723
7724 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7725 * target.h (struct target_ops) <to_get_trace_status>: Add
7726 argument.
7727 (target_get_trace_status): Add argument.
7728 * target.c (update_current_target): Update.
7729 * remote.c (remote_get_trace_status): Add 'self' argument.
7730 (remote_start_remote, remote_can_download_tracepoint): Update.
7731 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7732
e2d1aae3
TT
77332014-02-19 Tom Tromey <tromey@redhat.com>
7734
7735 * target.h (struct target_ops) <to_trace_start>: Add argument.
7736 (target_trace_start): Add argument.
7737 * target.c (update_current_target): Update.
7738 * remote.c (remote_trace_start): Add 'self' argument.
7739
583f9a86
TT
77402014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7743 Add argument.
7744 (target_trace_set_readonly_regions): Add argument.
7745 * target.c (update_current_target): Update.
7746 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7747 argument.
7748
780b049c
TT
77492014-02-19 Tom Tromey <tromey@redhat.com>
7750
7751 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7752 argument.
7753 (target_disable_tracepoint): Add argument.
7754 * target.c (update_current_target): Update.
7755 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7756
46670d57
TT
77572014-02-19 Tom Tromey <tromey@redhat.com>
7758
7759 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7760 argument.
7761 (target_enable_tracepoint): Add argument.
7762 * target.c (update_current_target): Update.
7763 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7764
559d2b81
TT
77652014-02-19 Tom Tromey <tromey@redhat.com>
7766
7767 * target.h (struct target_ops) <to_download_trace_state_variable>:
7768 Add argument.
7769 (target_download_trace_state_variable): Add argument.
7770 * target.c (update_current_target): Update.
7771 * remote.c (remote_download_trace_state_variable): Add 'self'
7772 argument.
7773
a52a8357
TT
77742014-02-19 Tom Tromey <tromey@redhat.com>
7775
7776 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7777 argument.
7778 (target_can_download_tracepoint): Add argument.
7779 * target.c (update_current_target): Update.
7780 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7781
548f7808
TT
77822014-02-19 Tom Tromey <tromey@redhat.com>
7783
7784 * target.h (struct target_ops) <to_download_tracepoint>: Add
7785 argument.
7786 (target_download_tracepoint): Add argument.
7787 * target.c (update_current_target): Update.
7788 * remote.c (remote_download_tracepoint): Add 'self' argument.
7789
ecae04e1
TT
77902014-02-19 Tom Tromey <tromey@redhat.com>
7791
7792 * target.h (struct target_ops) <to_trace_init>: Add argument.
7793 (target_trace_init): Add argument.
7794 * target.c (update_current_target): Update.
7795 * remote.c (remote_trace_init): Add 'self' argument.
7796
fab5aa7c
TT
77972014-02-19 Tom Tromey <tromey@redhat.com>
7798
7799 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7800 * target.c (target_fileio_readlink): Add argument.
7801 * remote.c (remote_hostio_readlink): Add 'self' argument.
7802 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7803
dbbca37d
TT
78042014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7807 * target.c (target_fileio_unlink): Add argument.
7808 * remote.c (remote_hostio_unlink): Add 'self' argument.
7809 (remote_file_delete): Update.
7810 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7811
df39ea25
TT
78122014-02-19 Tom Tromey <tromey@redhat.com>
7813
7814 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7815 * target.c (target_fileio_close): Add argument.
7816 * remote.c (remote_hostio_close): Add 'self' argument.
7817 (remote_hostio_close_cleanup): Update.
7818 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7819 Update.
7820 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7821
a3be983c
TT
78222014-02-19 Tom Tromey <tromey@redhat.com>
7823
7824 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7825 * target.c (target_fileio_pread): Add argument.
7826 * remote.c (remote_hostio_pread): Add 'self' argument.
7827 (remote_bfd_iovec_pread, remote_file_get): Update.
7828 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7829
0d866f62
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7833 * target.c (target_fileio_pwrite): Add argument.
7834 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7835 (remote_file_put): Update.
7836 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7837
cd897586
TT
78382014-02-19 Tom Tromey <tromey@redhat.com>
7839
7840 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7841 * target.c (target_fileio_open): Add argument.
7842 * remote.c (remote_hostio_open): Add 'self' argument.
7843 (remote_bfd_iovec_open): Add 'self' argument.
7844 (remote_file_put): Add 'self' argument.
7845 (remote_file_get): Add 'self' argument.
7846 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7847
78eff0ec
TT
78482014-02-19 Tom Tromey <tromey@redhat.com>
7849
7850 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7851 Add argument.
7852 (target_can_run_breakpoint_commands): Add argument.
7853 * target.c (update_current_target): Update.
7854 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7855 argument.
7856 (remote_insert_breakpoint): Add 'self' argument.
7857 (remote_insert_hw_breakpoint): Add 'self' argument.
7858 (remote_can_run_breakpoint_commands): Add 'self' argument.
7859
efcc2da7
TT
78602014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * target.h (struct target_ops)
7863 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7864 (target_supports_evaluation_of_breakpoint_conditions): Add
7865 argument.
7866 * target.c (update_current_target): Update.
7867 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7868 argument.
7869 (remote_insert_breakpoint): Add 'self' argument.
7870 (remote_insert_hw_breakpoint): Add 'self' argument.
7871 (remote_supports_cond_breakpoints): Add 'self' argument.
7872
6de37a3a
TT
78732014-02-19 Tom Tromey <tromey@redhat.com>
7874
7875 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7876 argument.
7877 (target_supports_string_tracing): Add argument.
7878 * target.c (update_current_target): Update.
7879 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7880
2bfc0540
TT
78812014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target.h (struct target_ops)
7884 <to_supports_disable_randomization>: Add argument.
7885 * target.c (find_default_supports_disable_randomization): Add
7886 argument.
7887 (target_supports_disable_randomization): Add argument.
7888 (find_default_supports_disable_randomization): Add 'self'
7889 argument.
7890 * remote.c (extended_remote_supports_disable_randomization): Add
7891 'self' argument.
7892 (remote_supports_disable_randomization): Add 'self' argument.
7893 (extended_remote_create_inferior): Update.
7894 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7895 'self' argument.
7896
7d178d6a
TT
78972014-02-19 Tom Tromey <tromey@redhat.com>
7898
7899 * target.h (struct target_ops)
7900 <to_supports_enable_disable_tracepoint>: Add argument.
7901 (target_supports_enable_disable_tracepoint): Add argument.
7902 * target.c (update_current_target): Update.
7903 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7904 argument.
7905
86ce2668
TT
79062014-02-19 Tom Tromey <tromey@redhat.com>
7907
7908 * target.h (struct target_ops) <to_supports_multi_process>: Add
7909 argument.
7910 (target_supports_multi_process): Add argument.
7911 * target.c (update_current_target): Update.
7912 * remote.c (remote_supports_multi_process): Add 'self' argument.
7913 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7914 argument.
7915 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7916 argument.
7917
4c612759
TT
79182014-02-19 Tom Tromey <tromey@redhat.com>
7919
7920 * target.h (struct target_ops) <to_execution_direction>: Add
7921 argument.
7922 (target_execution_direction): Add argument.
7923 * target.c (default_execution_direction): Add 'self' argument.
7924 * record-full.c (record_full_execution_direction): Add 'self'
7925 argument.
7926
19db3e69
TT
79272014-02-19 Tom Tromey <tromey@redhat.com>
7928
7929 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7930 argument.
7931 (target_can_execute_reverse): Add argument.
7932 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7933 * record-full.c (record_full_can_execute_reverse): Add 'self'
7934 argument.
7935 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7936 argument.
7937
1e6b91a4
TT
79382014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7941 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7942 argument.
7943 (target_get_ada_task_ptid): Add argument.
7944 * target.c (update_current_target): Update.
7945 (default_get_ada_task_ptid): Add 'self' argument.
7946 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7947 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7948 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7949 argument.
7950 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7951 argument.
7952 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7953 argument.
7954 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7955 argument.
7956 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7957 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7958 argument.
7959
3c80fb48
TT
79602014-02-19 Tom Tromey <tromey@redhat.com>
7961
7962 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7963 (target_goto_bookmark): Add argument.
7964 * target.c (dummy_goto_bookmark): Add 'self' argument.
7965 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7966
dd0e2830
TT
79672014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7970 (target_get_bookmark): Add argument.
7971 * target.c (dummy_get_bookmark): Add 'self' argument.
7972 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7973
fc6691b2
TT
79742014-02-19 Tom Tromey <tromey@redhat.com>
7975
7976 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7977 argument.
7978 (target_make_corefile_notes): Add argument.
7979 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7980 * procfs.c (procfs_make_note_section): Add 'self' argument.
7981 (procfs_make_note_section): Add 'self' argument.
7982 (procfs_make_note_section): Add 'self' argument.
7983 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7984 argument.
7985 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7986 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7987 * exec.c (exec_make_note_section): Add 'self' argument.
7988 (exec_make_note_section): Add 'self' argument.
7989
2e73927c
TT
79902014-02-19 Tom Tromey <tromey@redhat.com>
7991
7992 * target.h (struct target_ops) <to_find_memory_regions>: Add
7993 argument.
7994 (target_find_memory_regions): Add argument.
7995 * target.c (dummy_find_memory_regions): Add 'self' argument.
7996 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7997 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7998 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7999 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8000 * exec. (exec_do_find_memory_regions): New global.
8001 (exec_set_find_memory_regions): Rewrite.
8002 (exec_find_memory_regions): New function.
8003 (init_exec_ops): Use exec_find_memory_regions.
8004
2a9a2795
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target.h (struct target_ops) <to_supports_non_stop>: Add
8008 argument.
8009 * target.c (find_default_supports_non_stop): Add argument.
8010 (target_supports_non_stop): Add argument.
8011 (find_default_supports_non_stop): Add 'self' argument.
8012 * remote.c (remote_supports_non_stop): Add 'self' argument.
8013 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8014
4ab76ea3
TT
80152014-02-19 Tom Tromey <tromey@redhat.com>
8016
8017 * target.h (struct target_ops) <to_log_command>: Add argument.
8018 (target_log_command): Add argument.
8019 * serial.h (serial_log_command): Add 'self' argument.
8020 * serial.c (serial_log_command): Add 'self' argument.
8021
8dd27370
TT
80222014-02-19 Tom Tromey <tromey@redhat.com>
8023
8024 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8025 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8026 argument.
8027 (target_pid_to_exec_file): Add argument.
8028 * target.c (debug_to_pid_to_exec_file): Add argument.
8029 (update_current_target): Update.
8030 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8031 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8032 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8033 (linux_handle_extended_wait): Update.
8034 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8035 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8036 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8037 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8038
1aac633b
TT
80392014-02-19 Tom Tromey <tromey@redhat.com>
8040
8041 * target.h (struct target_ops) <to_rcmd>: Add argument.
8042 (target_rcmd): Add argument.
8043 * target.c (debug_to_rcmd): Add argument.
8044 (update_current_target, do_monitor_command): Update.
8045 * remote.c (remote_rcmd): Add 'self' argument.
8046 * monitor.c (monitor_rcmd): Add 'self' argument.
8047
1eab8a48
TT
80482014-02-19 Tom Tromey <tromey@redhat.com>
8049
8050 * windows-nat.c (windows_stop): Add 'self' argument.
8051 * target.h (struct target_ops) <to_stop>: Add argument.
8052 * target.c (target_stop): Add argument.
8053 (debug_to_stop): Add argument.
8054 (update_current_target): Update.
8055 * remote.c (remote_stop): Add 'self' argument.
8056 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8057 (gdbsim_cntrl_c): Update.
8058 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8059 * procfs.c (procfs_stop): Add 'self' argument.
8060 * nto-procfs.c (procfs_stop): Add 'self' argument.
8061 * monitor.c (monitor_stop): Add 'self' argument.
8062 (monitor_open): Update.
8063 * linux-nat.c (linux_nat_stop): Add argument.
8064 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8065 * gnu-nat.c (gnu_stop): Add 'self' argument.
8066 * darwin-nat.c (darwin_stop): Add 'self' argument.
8067
503a628d
TT
80682014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target.h (struct target_ops) <to_thread_name>: Add argument.
8071 * target.c (target_thread_name): Add argument.
8072 (update_current_target): Update.
8073 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8074
c15906d8
TT
80752014-02-19 Tom Tromey <tromey@redhat.com>
8076
8077 * target.h (struct target_ops) <to_extra_thread_info>: Add
8078 argument.
8079 (target_extra_thread_info): Add argument.
8080 * target.c (update_current_target): Update.
8081 * remote.c (remote_threads_extra_info): Add 'self' argument.
8082 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8083 argument.
8084 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8085 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8086 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8087 argument.
8088 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8089 argument.
8090 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8091 argument.
8092 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8093 argument.
8094
daf5e9b6
TT
80952014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 * target.h (struct target_ops) <to_program_signals>: Add argument.
8098 * target.c (target_program_signals): Add argument.
8099 * remote.c (remote_program_signals): Add 'self' argument.
8100
94bedb42
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8104 * target.c (target_pass_signals): Add argument.
8105 * remote.c (remote_pass_signals): Add 'self' argument.
8106 (remote_start_remote): Update.
8107 * procfs.c (procfs_pass_signals): Add 'self' argument.
8108 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8109 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8110 (linux_nat_create_inferior, linux_nat_attach): Update.
8111
da82bd6b
TT
81122014-02-19 Tom Tromey <tromey@redhat.com>
8113
8114 * windows-nat.c (windows_can_run): Add 'self' argument.
8115 * target.h (struct target_ops) <to_can_run>: Add argument.
8116 (target_can_run): Add argument.
8117 * target.c (debug_to_can_run): Add argument.
8118 (update_current_target): Update.
8119 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8120 * inf-child.c (inf_child_can_run): Add 'self' argument.
8121 * go32-nat.c (go32_can_run): Add 'self' argument.
8122
d796e1d6
TT
81232014-02-19 Tom Tromey <tromey@redhat.com>
8124
8125 * target.h (struct target_ops) <to_has_exited>: Add argument.
8126 (target_has_exited): Add argument.
8127 * target.c (debug_to_has_exited): Add argument.
8128 (update_current_target): Update.
8129
ff214e67
TT
81302014-02-19 Tom Tromey <tromey@redhat.com>
8131
8132 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8133 argument.
8134 (target_set_syscall_catchpoint): Add argument.
8135 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8136 argument.
8137 * target.c (update_current_target): Update.
8138
758e29d2
TT
81392014-02-19 Tom Tromey <tromey@redhat.com>
8140
8141 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8142 argument.
8143 (target_remove_exec_catchpoint): Add argument.
8144 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8145 (update_current_target): Update.
8146 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8147 argument.
8148
ba025e51
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8152 argument.
8153 (target_insert_exec_catchpoint): Add argument.
8154 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8155 (update_current_target): Update.
8156 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8157 argument.
8158
e98cf0cd
TT
81592014-02-19 Tom Tromey <tromey@redhat.com>
8160
8161 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8162 argument.
8163 (target_remove_vfork_catchpoint): Add argument.
8164 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8165 (update_current_target): Update.
8166 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8167 argument.
8168
3ecc7da0
TT
81692014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8172 argument.
8173 (target_insert_vfork_catchpoint): Add argument.
8174 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8175 (update_current_target): Update.
8176 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8177 argument.
8178
973fc227
TT
81792014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8182 argument.
8183 (target_remove_fork_catchpoint): Add argument.
8184 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8185 (update_current_target): Update.
8186 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8187 argument.
8188
a863b201
TT
81892014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8192 argument.
8193 (target_insert_fork_catchpoint): Add argument.
8194 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8195 (update_current_target): Update.
8196 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8197 argument.
8198
2e97a79e
TT
81992014-02-19 Tom Tromey <tromey@redhat.com>
8200
8201 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8202 argument.
8203 (target_post_startup_inferior): Add argument.
8204 * target.c (debug_to_post_startup_inferior): Add argument.
8205 (update_current_target): Update.
8206 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8207 argument.
8208 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8209 argument.
8210 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8211 argument.
8212 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8213 argument.
8214 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8215 'self' argument.
8216 (super_post_startup_inferior): Likewise.
8217 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8218 'self' argument.
8219 (super_post_startup_inferior): Likewise.
8220 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8221 Add 'self' argument.
8222 (super_post_startup_inferior): Likewise.
8223
71a9f134
TT
82242014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target.h (struct target_ops) <to_load>: Add argument.
8227 * target.c (target_load): Add argument.
8228 (debug_to_load): Add argument.
8229 (update_current_target): Update.
8230 * remote.c (remote_load): Add 'self' argument.
8231 * remote-sim.c (gdbsim_load): Add 'self' argument.
8232 * remote-mips.c (mips_load): Add 'self' argument.
8233 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8234 * monitor.c (monitor_load): Add 'self' argument.
8235 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8236
0a4f40a2
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8240 (target_terminal_info): Add argument.
8241 * target.c (debug_to_terminal_info): Add argument.
8242 (default_terminal_info): Likewise.
8243 * inflow.c (child_terminal_info): Add 'self' argument.
8244 * inferior.h (child_terminal_info): Add 'self' argument.
8245 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8246
ae3bd431
TT
82472014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8250 argument.
8251 (target_terminal_save_ours): Add argument.
8252 * target.c (debug_to_terminal_save_ours): Add argument.
8253 (update_current_target): Update.
8254 * inflow.c (terminal_save_ours): Add 'self' argument.
8255 * inferior.h (terminal_save_ours): Add 'self' argument.
8256
e3594fd1
TT
82572014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8260 (target_terminal_ours): Add argument.
8261 * target.c (debug_to_terminal_ours): Add argument.
8262 (update_current_target): Update.
8263 * remote.c (remote_terminal_ours): Add 'self' argument.
8264 (remote_close): Update.
8265 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8266 * inflow.c (terminal_ours): Add 'self' argument.
8267 * inferior.h (terminal_ours): Add 'self' argument.
8268 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8269
2e1e1a19
TT
82702014-02-19 Pedro Alves <palves@redhat.com>
8271 Tom Tromey <tromey@redhat.com>
8272
8273 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8274 argument.
8275 (target_terminal_ours_for_output): Add argument.
8276 * target.c (debug_to_terminal_ours_for_output): Add argument.
8277 (update_current_target): Update.
8278 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8279 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8280 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8281
d2f640d4
TT
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target.h (struct target_ops) <to_terminal_inferior>: Add
8285 argument.
8286 * target.c (target_terminal_inferior): Add argument.
8287 (update_current_target): Update.
8288 * remote.c (remote_terminal_inferior): Add 'self' argument.
8289 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8290 * inflow.c (terminal_inferior): Add 'self' argument.
8291 * inferior.h (terminal_inferior): Add 'self' argument.
8292 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8293 (go32_terminal_inferior): Add 'self' argument.
8294
c42bf286
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8298 (target_terminal_init): Add argument.
8299 * target.c (debug_to_terminal_init): Add argument.
8300 (update_current_target): Update.
8301 * inflow.c (terminal_init_inferior): Add 'self' argument.
8302 * inferior.h (terminal_init_inferior): Add 'self' argument.
8303 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8304 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8305
c3a5ff89
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target.h (struct target_ops)
8309 <to_can_accel_watchpoint_condition>: Add argument.
8310 (target_can_accel_watchpoint_condition): Add argument.
8311 * target.c (debug_to_can_accel_watchpoint_condition): Add
8312 argument.
8313 (update_current_target): Update.
8314 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8315 'self' argument.
8316
31568a15
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8320 Add argument.
8321 (target_region_ok_for_hw_watchpoint): Add argument.
8322 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8323 (default_region_ok_for_hw_watchpoint): Add argument.
8324 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8325 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8326 argument.
8327 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8328 argument.
8329 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8330 argument.
8331 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8332 'self' argument.
8333 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8334 'self' argument.
8335 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8336 'self' argument.
8337 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8338 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8339 'self' argument.
8340 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8341 Add 'self' argument.
8342
7bb99c53
TT
83432014-02-19 Tom Tromey <tromey@redhat.com>
8344
8345 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8346 argument.
8347 (target_insert_watchpoint): Add argument.
8348 * target.c (debug_to_insert_watchpoint): Add argument.
8349 (update_current_target): Update.
8350 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8351 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8352 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8353 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8354 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8355 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8356 argument.
8357 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8358 (procfs_insert_hw_watchpoint): Add 'self' argument.
8359 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8360 argument.
8361 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8362 argument.
8363 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8364 argument.
8365 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8366 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8367 argument.
8368 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8369 'self' argument.
8370
11b5219a
TT
83712014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8374 argument.
8375 (target_remove_watchpoint): Add argument.
8376 * target.c (debug_to_remove_watchpoint): Add argument.
8377 (update_current_target): Update.
8378 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8379 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8380 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8381 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8382 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8383 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8384 argument.
8385 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8386 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8387 argument.
8388 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8389 argument.
8390 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8391 argument.
8392 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8393 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8394 argument.
8395 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8396 'self' argument.
8397
a64dc96c
TT
83982014-02-19 Tom Tromey <tromey@redhat.com>
8399
8400 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8401 argument.
8402 (target_remove_hw_breakpoint): Add argument.
8403 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8404 (update_current_target): Update.
8405 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8406 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8407 argument.
8408 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8409 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8410 argument.
8411 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8412 'self' argument.
8413
23a26771
TT
84142014-02-19 Tom Tromey <tromey@redhat.com>
8415
8416 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8417 argument.
8418 (target_insert_hw_breakpoint): Add argument.
8419 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8420 (update_current_target): Update.
8421 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8422 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8423 argument.
8424 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8425 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8426 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8427 argument.
8428 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8429 'self' argument.
8430
5461485a
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8434 argument.
8435 (target_can_use_hardware_watchpoint): Add argument.
8436 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8437 (update_current_target): Update.
8438 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8439 argument.
8440 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8441 argument.
8442 * remote.c (remote_check_watch_resources): Add 'self' argument.
8443 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8444 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8445 argument.
8446 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8447 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8448 argument.
8449 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8450 argument.
8451 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8452 argument.
8453 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8454 argument.
8455 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8456 argument.
8457 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8458 argument.
8459 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8460 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8461 argument.
8462 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8463 'self' argument.
8464
f045800c
TT
84652014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target.h (struct target_ops) <to_post_attach>: Add argument.
8468 (target_post_attach): Add argument.
8469 * target.c (debug_to_post_attach): Add argument.
8470 (update_current_target): Update.
8471 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8472 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8473 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8474 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8475 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8476
de90e03d
TT
84772014-02-19 Tom Tromey <tromey@redhat.com>
8478
8479 * windows-nat.c (windows_close): Add 'self' argument.
8480 * tracepoint.c (tfile_close): Add 'self' argument.
8481 * target.h (struct target_ops) <to_close>: Add argument.
8482 * target.c (target_close): Add argument.
8483 (update_current_target): Update.
8484 * remote.c (remote_close): Add 'self' argument.
8485 * remote-sim.c (gdbsim_close): Add 'self' argument.
8486 * remote-mips.c (mips_close): Add 'self' argument.
8487 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8488 * record-full.c (record_full_close): Add 'self' argument.
8489 * record-btrace.c (record_btrace_close): Add 'self' argument.
8490 * monitor.h (monitor_close): Add 'self' argument.
8491 * monitor.c (monitor_close): Add 'self' argument.
8492 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8493 * linux-nat.c (linux_nat_close): Add argument.
8494 * go32-nat.c (go32_close): Add 'self' argument.
8495 * exec.c (exec_close_1): Add 'self' argument.
8496 * ctf.c (ctf_close): Add 'self' argument.
8497 * corelow.c (core_close): Add 'self' argument.
8498 (core_close_cleanup): Update.
8499 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8500 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8501
9dd130a0
TT
85022014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * remote.c (remote_load): New function.
8505 (init_remote_ops): Use it.
8506
46917d26
TT
85072014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8510 argument.
8511 * common/linux-btrace.h (linux_supports_btrace): Update.
8512 * remote.c (remote_supports_btrace): Add "self" argument.
8513 * target-delegates.c: Rebuild.
8514 * target.c (target_supports_btrace): Remove.
8515 * target.h (struct target_ops) <to_supports_btrace>: Add
8516 target_ops argument.
8517 (target_supports_btrace): New define.
8518
6b84065d
TT
85192014-02-19 Tom Tromey <tromey@redhat.com>
8520
8521 * record-full.c (record_full_beneath_to_resume_ops)
8522 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8523 (record_full_beneath_to_wait)
8524 (record_full_beneath_to_store_registers_ops)
8525 (record_full_beneath_to_store_registers)
8526 (record_full_beneath_to_xfer_partial_ops)
8527 (record_full_beneath_to_xfer_partial)
8528 (record_full_beneath_to_insert_breakpoint_ops)
8529 (record_full_beneath_to_insert_breakpoint)
8530 (record_full_beneath_to_remove_breakpoint_ops)
8531 (record_full_beneath_to_remove_breakpoint)
8532 (record_full_beneath_to_stopped_by_watchpoint)
8533 (record_full_beneath_to_stopped_data_address)
8534 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8535 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8536 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8537 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8538 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8539 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8540 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8541 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8542 (record_full_resume, record_full_wait_1)
8543 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8544 (record_full_store_registers, record_full_xfer_partial)
8545 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8546 (record_full_async, record_full_core_xfer_partial): Use target
8547 delegation.
8548 * target-delegates.c: Rebuild.
8549 * target.c (current_xfer_partial): Remove.
8550 (update_current_target): Do not INHERIT or de_fault
8551 to_insert_breakpoint, to_remove_breakpoint,
8552 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8553 to_is_async_p, to_async. Do not set to_xfer_partial field.
8554 (default_xfer_partial): Simplify.
8555 (current_xfer_partial): Remove.
8556 (target_wait, target_resume): Simplify.
8557 (find_default_can_async_p, find_default_is_async_p): Update.
8558 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8559 to_xfer_partial, to_stopped_by_watchpoint,
8560 to_stopped_data_address.
8561 (target_store_registers): Simplify.
8562 (forward_target_remove_breakpoint)
8563 (forward_target_insert_breakpoint): Remove.
8564 (target_remove_breakpoint, target_insert_breakpoint)
8565 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8566 * target.h (struct target_ops) <to_resume, to_wait,
8567 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8568 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8569 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8570 markup.
8571 (forward_target_remove_breakpoint)
8572 (forward_target_insert_breakpoint): Remove.
8573 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8574 directly.
8575 (record_btrace_insert_breakpoint): Delegate directly.
8576
1101cb7b
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 PR build/7701:
8580 * target-delegates.c: New file.
8581 * target.c: Include target-delegates.c.
8582 (init_dummy_target): Call install_dummy_methods.
8583 (complete_target_initialization): Call install_delegators.
8584 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8585 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8586 * make-target-delegates: New file.
8587
8b06beed
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * record.c (find_record_target): Use find_target_at.
8591 * target.c (find_target_at): New function.
8592 * target.h (find_target_at): Declare.
8593
6a109b6b
TT
85942014-02-19 Tom Tromey <tromey@redhat.com>
8595
8596 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8597 Add 'ops' argument.
8598 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8599 'ops' argument.
8600 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8601 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8602 'ops' argument.
8603 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8604 argument.
8605 * linux-nat.c (save_sigtrap): Update.
8606 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8607 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8608 (linux_nat_close): Update.
8609 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8610 argument.
8611 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8612 argument.
8613 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8614 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8615 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8616 (tmp_to_async): Add 'ops' argument.
8617 (record_full_stopped_by_watchpoint, record_full_async)
8618 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8619 argument.
8620 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8621 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8622 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8623 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8624 (remote_is_async_p, remote_async): Add 'ops' argument.
8625 (remote_stopped_data_address): Update.
8626 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8627 * target.c (update_current_target)
8628 (find_default_can_async_p, find_default_is_async_p): Update.
8629 (init_dummy_target): Update.
8630 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8631 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8632 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8633 (target_can_async_p, target_is_async_p, target_async)
8634 (target_stopped_by_watchpoint): Update.
8635
e095146b
YQ
86362014-02-19 Yao Qi <yao@codesourcery.com>
8637
8638 PR gdb/16220
8639 * gdbarch.sh: Remove startup_gdbarch.
8640 * gdbarch.c: Regenerated.
8641 * gdbarch.h: Likewise.
8642
bc3c6b36
KB
86432014-02-17 Kevin Buettner <kevinb@redhat.com>
8644
8645 * rl78-tdep.c (rl78_g10_register_name): New function.
8646 (rl78_return_value): Add g10 support.
8647 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8648 g10.
8649
98dc0167 86502014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
8651
8652 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8653 (SUBDIR_GUILE_SRCS): Ditto.
8654 (scm-gsmob.o): Ditto.
8655
842c05cd
YQ
86562014-02-17 Yao Qi <yao@codesourcery.com>
8657
8658 * gnu-nat.c (ILL_RPC): Declare defined function.
8659
25c0bd04
YQ
86602014-02-17 Yao Qi <yao@codesourcery.com>
8661
8662 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8663 mach_msg_type_number_t.
8664 (gnu_write_inferior): Likewise.
8665
a9a758e3
YQ
86662014-02-17 Yao Qi <yao@codesourcery.com>
8667
8668 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8669 in format string.
8670 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8671 (inf_validate_procs, inf_signal): Likewise.
8672 (S_exception_raise_request): Likewise.
8673 (do_mach_notify_dead_name): Likewise.
8674 (steal_exc_port): Likewise.
8675 (gnu_read_inferior): Change 'copy_count''s type to
8676 mach_msg_type_number_t.
8677 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8678 format string.
8679
bae8023e
TS
86802014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8681
c82f56d9
TS
8682 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8683 flag. Adjust all users; in particular...
8684 (gnu_wait): ..., don't decrement its value in here...
8685 (gnu_create_inferior): ..., and instead set the flag in here,
8686 around the startup_inferior call, and call that one with
8687 START_INFERIOR_TRAPS_EXPECTED.
8688
3398af6a
TS
8689 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8690 (ILL_RPC): ... new macro.
8691 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8692 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8693 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8694 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8695 functions with ILL_RPC macro.
8696 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8697 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8698 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8699 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8700 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8701 (S_proc_getlogin_reply, S_proc_getsid_reply)
8702 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8703 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8704 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8705 (S_proc_getnports_reply, S_proc_is_important_reply)
8706 (S_proc_get_code_reply): New stub functions, generated with
8707 ILL_RPC macro.
8708
d47642c9
TS
8709 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8710 collected the type check structures.
8711
bae8023e
TS
8712 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8713
8a55ffb0
DE
87142014-02-14 Doug Evans <dje@google.com>
8715
8716 * target.c (target_write_partial): Fix result type.
8717
c2853f3d
JM
87182014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8719
8720 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8721 the proper offsets to access fpregset_t.
8722
ac61d2db
SA
87232014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8724
8725 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8726 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8727 * h8300-tdep.c (setmachinelist): Remove global.
8728 * hppa-tdep.c (hppa_sigtramp): Remove global.
8729 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8730 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8731 * ravenscar-thread.c (update_target_observer): Remove global.
8732 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8733
9d2d0b8b
TT
87342014-02-12 Tom Tromey <tromey@redhat.com>
8735
8736 * common/rsp-low.c: Update comments.
8737 * common/rsp-low.h: Update comments.
8738
a7191e8b
TT
87392014-02-12 Tom Tromey <tromey@redhat.com>
8740
8741 * common/rsp-low.c (convert_ascii_to_int): Remove.
8742 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8743
ff0e980e
TT
87442014-02-12 Tom Tromey <tromey@redhat.com>
8745
8746 * common/rsp-low.h (unhexify): Don't declare.
8747 * common/rsp-low.c (unhexify): Remove.
8748
e9371aff
TT
87492014-02-12 Tom Tromey <tromey@redhat.com>
8750
8751 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8752 * common/rsp-low.c (convert_int_to_ascii): Remove.
8753
971dc0b8
TT
87542014-02-12 Tom Tromey <tromey@redhat.com>
8755
8756 * common/rsp-low.h (hexify): Don't declare.
8757 * common/rsp-low.c (hexify): Remove.
8758
0a822afb
TT
87592014-02-12 Tom Tromey <tromey@redhat.com>
8760
8761 * common/rsp-low.c (hexify): Never take strlen of argument.
8762
9f1b45b0
TT
87632014-02-12 Tom Tromey <tromey@redhat.com>
8764
8765 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8766 * remote.c (extended_remote_run, remote_rcmd)
8767 (remote_download_trace_state_variable, remote_save_trace_data)
8768 (remote_set_trace_notes): Update.
8769 * tracepoint.c (encode_source_string, tfile_write_status)
8770 (tfile_write_uploaded_tsv): Update.
8771
9c3d6531
TT
87722014-02-12 Tom Tromey <tromey@redhat.com>
8773
8774 * tracepoint.c: Include rsp-low.h.
8775 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8776 * remote.c: Include rsp-low.h.
8777 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8778 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8779 (remote_unescape_input): Move to common/rsp-low.c.
8780 * common/rsp-low.h: New file.
8781 * common/rsp-low.c: New file.
8782 * Makefile.in (SFILES): Add common/rsp-low.c.
8783 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8784 (COMMON_OBS): Add rsp-low.o.
8785 (rsp-low.o): New target.
8786
01fd3ea5
TT
87872014-02-12 Tom Tromey <tromey@redhat.com>
8788
8789 * utils.h: Include print-utils.h.
8790 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8791 (int_string, core_addr_to_string, core_addr_to_string_nz)
8792 (hex_string, hex_string_custom): Don't declare.
8793 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8794 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8795 (hex_string_custom, int_string, core_addr_to_string)
8796 (core_addr_to_string_nz, host_address_to_string): Move to
8797 common/print-utils.c.
8798 * common/print-utils.h: New file.
8799 * common/print-utils.c: New file
8800 * Makefile.in (SFILES): Add common/print-utils.c.
8801 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8802 (COMMON_OBS): Add print-utils.o.
8803 (print-utils.o): New target.
8804
9fb50108
TT
88052014-02-12 Tom Tromey <tromey@redhat.com>
8806
8807 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8808
0548b5db
MK
88092014-02-12 Mark Kettenis <kettenis@gnu.org>
8810
8811 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8812
493443a4
MK
88132014-02-12 Mark Kettenis <kettenis@gnu.org>
8814
8815 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8816 if a PT_IO ptrace request returns sucessfully but indicates that 0
8817 bytes were transferred.
8818
706d0883
PA
88192014-02-12 Pedro Alves <palves@redhat.com>
8820 Kevin Buettner <kevinb@redhat.com>
8821
8822 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8823 TYPE_INSTANCE_FLAG_CODE_SPACE.
8824
5caa2f0b
PA
88252014-02-12 Pedro Alves <palves@redhat.com>
8826
8827 * h8300-tdep.c (pseudo_from_raw_register)
8828 (raw_from_pseudo_register): New functions.
8829 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8830 them.
8831
76fd5f74
PA
88322014-02-12 Pedro Alves <palves@redhat.com>
8833
8834 * h8300-tdep.c (h8300_register_sim_regno): New function.
8835 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8836 gdbarch_register_sim_regno hook.
8837
8f008406
SA
88382014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8839
8840 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8841
195abc10
SA
88422014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8843
8844 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8845
93ffa5b9
MK
88462014-02-12 Mark Kettenis <kettenis@gnu.org>
8847
8848 * obsd-tdep.h (obsd_init_abi): New prototype.
8849 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8850 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8851 (obsd_init_abi): New functions.
8852 * i386obsd-tdep.c: Include "obsd-tdep.h".
8853 (i386obsd_init_abi): Call obsd_init_abi.
8854 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8855 (amd64obsd_init_abi): Call obsd_init_abi.
8856 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8857 obsd-tdep.c to gdb_target_obs.
8858
49caec94
JM
88592014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8860
8861 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8862 double float arguments to 16-byte in the argument slots.
8863
e1402065
DE
88642014-02-11 Doug Evans <xdje42@gmail.com>
8865
8866 * configure.ac: Don't crash if pkg-config is not found and guile
8867 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8868 in guile checks.
8869 * configure: Regenerate.
8870
edcc890f
YQ
88712014-02-11 Yao Qi <yao@codesourcery.com>
8872
8873 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8874 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8875 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8876 * gnu-nat.c (gnu_xfer_memory): Likewise.
8877 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8878 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8879 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8880 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8881
9b409511
YQ
88822014-02-11 Yao Qi <yao@codesourcery.com>
8883
8884 * target.h (enum target_xfer_error): Rename to ...
8885 (enum target_xfer_status): ... it. New. All users updated.
8886 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8887 New.
8888 (TARGET_XFER_STATUS_ERROR_P): New macro.
8889 (target_xfer_error_to_string): Remove declaration.
8890 (target_xfer_status_to_string): Declare.
8891 (target_xfer_partial_ftype): Adjust it.
8892 (struct target_ops) <to_xfer_partial>: Return
8893 target_xfer_status. Add argument xfered_len. Update
8894 comments.
8895 * target.c (target_xfer_error_to_string): Rename to ...
8896 (target_xfer_status_to_string): ... it. New. All callers
8897 updated.
8898 (target_read_live_memory): Likewise. Call target_xfer_partial
8899 instead of target_read.
8900 (memory_xfer_live_readonly_partial): Return
8901 target_xfer_status. Add argument xfered_len.
8902 (raw_memory_xfer_partial): Likewise.
8903 (memory_xfer_partial_1): Likewise.
8904 (memory_xfer_partial): Likewise.
8905 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8906 properly. Update debug message.
8907 (default_xfer_partial, current_xfer_partial): Likewise.
8908 (target_write_partial): Likewise.
8909 (target_read_partial): Likewise. All callers updated.
8910 (read_whatever_is_readable): Likewise.
8911 (target_write_with_progress): Likewise.
8912 (target_read_alloc_1): Likewise.
8913
8914 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8915 * auxv.c (procfs_xfer_auxv): Likewise.
8916 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8917 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8918 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8919 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8920 * corefile.c (read_memory): Adjust.
8921 * corelow.c (core_xfer_partial): Likewise.
8922 * ctf.c (ctf_xfer_partial): Likewise.
8923 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8924 updated.
8925 (darwin_xfer_partial): Likewise.
8926 * exec.c (section_table_xfer_memory_partial): Likewise. All
8927 callers updated.
8928 (exec_xfer_partial): Likewise.
8929 * exec.h (section_table_xfer_memory_partial): Update
8930 declaration.
8931 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8932 negative.
8933 (gnu_xfer_partial): Likewise.
8934 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8935 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8936 (ia64_hpux_xfer_solib_got): Likewise.
8937 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8938 type of 'partial_len' to ULONGEST.
8939 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8940 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8941 (linux_nat_xfer_partial): Likewise.
8942 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8943 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8944 * monitor.c (monitor_xfer_memory): Likewise.
8945 (monitor_xfer_partial): Likewise.
8946 * procfs.c (procfs_xfer_partial): Likewise.
8947 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8948 * record-full.c (record_full_xfer_partial): Likewise.
8949 (record_full_core_xfer_partial): Likewise.
8950 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8951 (gdbsim_xfer_partial): Likewise.
8952 * remote.c (remote_write_bytes_aux): Likewise. All callers
8953 updated.
8954 (remote_write_bytes, remote_read_bytes): Likewise. All
8955 callers updated.
8956 (remote_flash_erase): Likewise. All callers updated.
8957 (remote_write_qxfer): Likewise. All callers updated.
8958 (remote_read_qxfer): Likewise. All callers updated.
8959 (remote_xfer_partial): Likewise.
8960 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8961 (rs6000_xfer_shared_libraries): Likewise.
8962 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8963 (sol_thread_xfer_partial): Likewise.
8964 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8965 (sparc_xfer_partial): Likewise.
8966 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8967 updated.
8968 (spu_xfer_partial): Likewise.
8969 * spu-multiarch.c (spu_xfer_partial): Likewise.
8970 * tracepoint.c (tfile_xfer_partial): Likewise.
8971 * windows-nat.c (windows_xfer_memory): Likewise.
8972 (windows_xfer_shared_libraries): Likewise.
8973 (windows_xfer_partial): Likewise.
8974 * valprint.c: Replace 'target_xfer_error' with
8975 'target_xfer_status' in comments.
8976
a8e63083
JB
89772014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8978
8979 Checked in by Joel Brobecker <brobecker@adacore.com>.
8980 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8981
e86b67d3
JB
89822014-02-11 Joel Brobecker <brobecker@adacore.com>
8983
8984 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8985 function parameters.
8986
4b7d1f7f
WN
89872014-02-10 Will Newton <will.newton@linaro.org>
8988
8989 * elfread.c (elf_rel_plt_read): Look for a .got section if
8990 looking up .got.plt fails.
8991 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8992 on address passed to elf_gnu_ifunc_record_cache.
8993 (elf_gnu_ifunc_resolve_addr): Likewise.
8994 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8995
961842b2
JM
89962014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8997
8998 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8999 (X_RETTURN): New macro.
9000 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9001
9002 * sparc64-tdep.c (sparc64_init_abi): Hook
9003 sparc_in_function_epilogue_p.
9004
3f03e7b1
GB
90052014-02-10 Gary Benson <gbenson@redhat.com>
9006
9007 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9008 Rename name_matcher to symbol_matcher.
9009
96f861ef
GB
90102014-02-10 Gary Benson <gbenson@redhat.com>
9011
9012 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9013 Use expand_symtabs_file_matcher_ftype and
9014 expand_symtabs_symbol_matcher_ftype.
9015
ee01b665
JB
90162014-02-10 Joel Brobecker <brobecker@adacore.com>
9017
9018 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9019 (struct ada_symbol_cache): New.
9020 (ada_free_symbol_cache): Forward declare.
9021 (struct ada_pspace_data): New.
9022 (ada_pspace_data_handle): New static global.
9023 (get_ada_pspace_data, ada_pspace_data_cleanup)
9024 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9025 (cache_space, cache): Delete, now folded inside struct
9026 ada_pspace_data.
9027 (ada_get_symbol_cache): New function.
9028 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9029 implementation.
9030 (_initialize_ada_language): Remove initialization of cache_space.
9031 Move call to observer_attach_inferior_exit up, grouping it
9032 with the other observer registrations inside this function.
9033 Rename command to be more general. Add call to
9034 register_program_space_data_with_cleanup.
9035
143adbbf
JB
90362014-02-10 Joel Brobecker <brobecker@adacore.com>
9037
9038 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9039 ada_new_objfile_observer.
9040 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9041 (_initialize_tasks): Update uses of ada_new_objfile_observer
9042 and ada_tasks_normal_stop_observer.
9043
aa4fb036
JB
90442014-02-10 Joel Brobecker <brobecker@adacore.com>
9045
9046 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9047 returned by the 'Length attribute to integer.
9048
9dee8cc6
JB
90492014-02-10 Joel Brobecker <brobecker@adacore.com>
9050
9051 * ada-lang.c (_initialize_ada_language): Initialize
9052 cache_space obstack.
9053
3d9434b5
JB
90542014-02-10 Joel Brobecker <brobecker@adacore.com>
9055
9056 * ada-lang.c (HASH_SIZE): New macro.
9057 (struct cache_entry): New type.
9058 (cache_space, cache): New static globals.
9059 (ada_clear_symbol_cache, find_entry): New functions.
9060 (lookup_cached_symbol, cache_symbol): Implement.
9061 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9062 (_initialize_ada_language): Attach ada_new_objfile_observer
9063 and ada_free_objfile_observer.
9064
f0c5f9b2
JB
90652014-02-10 Joel Brobecker <brobecker@adacore.com>
9066
9067 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9068 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9069 struct block * parameter.
9070 (ada_lookup_symbol_list_worker): Constify local variable "block".
9071 Remove cast which is no longer necessary.
9072
ed3ef339
DE
90732014-02-10 Doug Evans <xdje42@gmail.com>
9074
9075 Add Guile as an extension language.
9076 * NEWS: Mention Guile scripting.
9077 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9078 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9079 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9080 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9081 (CLIBS): Add GUILE_LIBS.
9082 (install-guile): New rule.
9083 (guile.o): New rule.
9084 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9085 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9086 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9087 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9088 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9089 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9090 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9091 * configure.ac: New option --with-guile.
9092 * configure: Regenerate.
9093 * config.in: Regenerate.
9094 * auto-load.c: Remove #include "python/python.h". Add #include
9095 "gdb/section-scripts.h".
9096 (source_section_scripts): Handle Guile scripts.
9097 (_initialize_auto_load): Add name of Guile objfile script to
9098 scripts-directory help text.
9099 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9100 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9101 (struct breakpoint): New member scm_bp_object.
9102 * defs.h (enum command_control_type): New value guile_control.
9103 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9104 "extension.h".
9105 (show_user): Update comment.
9106 (_initialize_cli_cmds): Update help text for "show user". Update help
9107 text for max-user-call-depth.
9108 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9109 "extension.h".
9110 (multi_line_command_p): Add guile_control.
9111 (print_command_lines): Handle guile_control.
9112 (execute_control_command, recurse_read_control_structure): Ditto.
9113 (process_next_line): Recognize "guile" commands.
9114 * disasm.c (gdb_disassemble_info): Make non-static.
9115 * disasm.h: #include "dis-asm.h".
9116 (struct gdbarch): Add forward decl.
9117 (gdb_disassemble_info): Declare.
9118 * extension.c: #include "guile/guile.h".
9119 (extension_languages): Add guile.
9120 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9121 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9122 * gdbtypes.c (get_unsigned_type_max): New function.
9123 (get_signed_type_minmax): New function.
9124 * gdbtypes.h (get_unsigned_type_max): Declare.
9125 (get_signed_type_minmax): Declare.
9126 * guile/README: New file.
9127 * guile/guile-internal.h: New file.
9128 * guile/guile.c: New file.
9129 * guile/guile.h: New file.
9130 * guile/scm-arch.c: New file.
9131 * guile/scm-auto-load.c: New file.
9132 * guile/scm-block.c: New file.
9133 * guile/scm-breakpoint.c: New file.
9134 * guile/scm-disasm.c: New file.
9135 * guile/scm-exception.c: New file.
9136 * guile/scm-frame.c: New file.
9137 * guile/scm-gsmob.c: New file.
9138 * guile/scm-iterator.c: New file.
9139 * guile/scm-lazy-string.c: New file.
9140 * guile/scm-math.c: New file.
9141 * guile/scm-objfile.c: New file.
9142 * guile/scm-ports.c: New file.
9143 * guile/scm-pretty-print.c: New file.
9144 * guile/scm-safe-call.c: New file.
9145 * guile/scm-string.c: New file.
9146 * guile/scm-symbol.c: New file.
9147 * guile/scm-symtab.c: New file.
9148 * guile/scm-type.c: New file.
9149 * guile/scm-utils.c: New file.
9150 * guile/scm-value.c: New file.
9151 * guile/lib/gdb.scm: New file.
9152 * guile/lib/gdb/boot.scm: New file.
9153 * guile/lib/gdb/experimental.scm: New file.
9154 * guile/lib/gdb/init.scm: New file.
9155 * guile/lib/gdb/iterator.scm: New file.
9156 * guile/lib/gdb/printing.scm: New file.
9157 * guile/lib/gdb/types.scm: New file.
9158 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9159 (VPATH): Add $(GUILE_SRCDIR).
9160 (GUILE_DIR): New variable.
9161 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9162 (all): Add stamp-guile dependency.
9163 (stamp-guile): New rule.
9164 (clean-guile, install-guile, uninstall-guile): New rules.
9165 (install-only): Add install-guile dependency.
9166 (uninstall): Add uninstall-guile dependency.
9167 (clean): Add clean-guile dependency.
9168
ac020ec5
DE
91692014-02-09 Doug Evans <xdje42@gmail.com>
9170
9171 Revert this patch (which I approved, mea culpa).
9172
9173 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9174
9175 * Makefile.in (all-lib): Remove.
9176 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9177
2a081c59
JK
91782014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9179
9180 Fix Python stack corruption.
9181 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9182 gdb_py_longest.
9183
0a6bd22d
MK
91842014-02-08 Mark Kettenis <kettenis@gnu.org>
9185
9186 * Makefile.in (all-lib): Remove.
9187 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9188
1a860409
DE
91892014-02-07 Doug Evans <dje@google.com>
9190
9191 * extension-priv.h (extension_language_script_ops): Add comment.
9192 (extension_language_ops): Add comment.
caf5a491 9193 (active_ext_lang_state): Fix typo in comment.
1a860409 9194
d137e6dc
PA
91952014-02-07 Pedro Alves <palves@redhat.com>
9196
0dcb32c3 9197 PR breakpoints/16292
d137e6dc
PA
9198 * infrun.c (handle_signal_stop) <signal arrives while stepping
9199 over a breakpoint>: Switch back to the stepping thread.
9200
ce6d0892
YQ
92012014-02-07 Yao Qi <yao@codesourcery.com>
9202
9203 * target.c (target_xfer_partial): Return zero if LEN is zero.
9204
2ed4b548
YQ
92052014-02-07 Yao Qi <yao@codesourcery.com>
9206
9207 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9208 (ld_so_xfer_auxv): Likewise.
9209 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9210 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9211 * corelow.c (core_xfer_partial): Likewise.
9212 * ctf.c (ctf_xfer_partial): Likewise.
9213 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9214 (darwin_xfer_partial): Likewise.
9215 * exec.c (exec_xfer_partial): Likewise.
9216 * gnu-nat.c (gnu_xfer_partial): Likewise.
9217 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9218 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9219 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9220 * linux-nat.c (linux_xfer_siginfo): Likewise.
9221 (linux_proc_xfer_spu): Likewise.
9222 * procfs.c (procfs_xfer_partial): Likewise.
9223 * record-full.c (record_full_xfer_partial): Likewise.
9224 (record_full_core_xfer_partial): Likewise.
9225 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9226 * remote.c (remote_write_qxfer): Likewise.
9227 (remote_write_qxfer, remote_read_qxfer): Likewise.
9228 (remote_xfer_partial): Likewise.
9229 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9230 (rs6000_xfer_shared_libraries): Likewise.
9231 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9232 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9233 (spu_xfer_partial): Likewise.
9234 * target.c (memory_xfer_partial_1): Likewise.
9235 * tracepoint.c (tfile_xfer_partial): Likewise.
9236 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9237 (windows_xfer_partial): Likewise.
9238
c09f20e4
YQ
92392014-02-07 Yao Qi <yao@codesourcery.com>
9240
9241 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9242 comments.
9243 (core_xfer_shared_libraries_aix): Likewise.
9244 * gdbarch.c, gdbarch.h: Regenerated.
9245 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9246 ULONGEST. Change 'len_avail' type to ULONGEST.
9247 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9248 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9249 declaration.
9250 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9251
8635b3bf
YQ
92522014-02-07 Yao Qi <yao@codesourcery.com>
9253
9254 * corefile.c (memory_error): Get 'exception' from ERR and pass
9255 'exception' to throw_error.
9256
6dddc817
DE
92572014-02-06 Doug Evans <xdje42@gmail.com>
9258
9259 * configure.ac (libpython checking): Remove all but python.o from
9260 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9261 * configure: Regenerate.
9262
9263 * Makefile.in (SFILES): Add extension.c.
9264 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9265 (COMMON_OBS): Add extension.o.
9266 * extension.h: New file.
9267 * extension-priv.h: New file.
9268 * extension.c: New file.
9269
9270 * python/python-internal.h: #include "extension.h".
9271 (gdbpy_auto_load_enabled): Declare.
9272 (gdbpy_apply_val_pretty_printer): Declare.
9273 (gdbpy_apply_frame_filter): Declare.
9274 (gdbpy_preserve_values): Declare.
9275 (gdbpy_breakpoint_cond_says_stop): Declare.
9276 (gdbpy_breakpoint_has_cond): Declare.
9277 (void source_python_script_for_objfile): Delete.
9278 * python/python.c: #include "extension-priv.h".
9279 Delete inclusion of "observer.h".
9280 (extension_language_python): Moved here and renamed from
9281 script_language_python in py-auto-load.c.
9282 Redefined to be of type extension_language_defn.
9283 (python_extension_script_ops): New global.
9284 (python_extension_ops): New global.
9285 (struct python_env): New member previous_active.
9286 (restore_python_env): Call restore_active_ext_lang.
9287 (ensure_python_env): Call set_active_ext_lang.
9288 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9289 New arg extlang.
9290 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9291 New arg extlang.
9292 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9293 New arg extlang.
9294 (gdbpy_eval_from_control_command): Renamed from
9295 eval_python_from_control_command, made static. New arg extlang.
9296 (gdbpy_source_script) Renamed from source_python_script, made static.
9297 New arg extlang.
9298 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9299 result to int. New arg extlang.
9300 (gdbpy_source_objfile_script): Renamed from
9301 source_python_script_for_objfile, made static. New arg extlang.
9302 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9303 static. New args extlang, extlang_printers. Change result type to
9304 "void".
9305 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9306 static. New arg extlang. Rename arg printers to extlang_printers
9307 and change type to ext_lang_type_printers *.
9308 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9309 static. Replace argument arg with extlang, extlang_printers.
9310 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9311 (!HAVE_PYTHON, source_python_script): Delete.
9312 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9313 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9314 (!HAVE_PYTHON, start_type_printers): Delete.
9315 (!HAVE_PYTHON, apply_type_printers): Delete.
9316 (!HAVE_PYTHON, free_type_printers): Delete.
9317 (_initialize_python): Delete call to observer_attach_before_prompt.
9318 (finalize_python): Set/restore active extension language.
9319 (gdbpy_finish_initialization) Renamed from
9320 finish_python_initialization, made static. New arg extlang.
9321 (gdbpy_initialized): New function.
9322 * python/python.h: #include "extension.h". Delete #include
9323 "value.h", "mi/mi-cmds.h".
9324 (extension_language_python): Declare.
9325 (GDBPY_AUTO_FILE_NAME): Delete.
9326 (enum py_bt_status): Moved to extension.h and renamed to
9327 ext_lang_bt_status.
9328 (enum frame_filter_flags): Moved to extension.h.
9329 (enum py_frame_args): Moved to extension.h and renamed to
9330 ext_lang_frame_args.
9331 (finish_python_initialization): Delete.
9332 (eval_python_from_control_command): Delete.
9333 (source_python_script): Delete.
9334 (apply_val_pretty_printer): Delete.
9335 (apply_frame_filter): Delete.
9336 (preserve_python_values): Delete.
9337 (gdbpy_script_language_defn): Delete.
9338 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9339 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9340
9341 * auto-load.c: #include "extension.h".
9342 (GDB_AUTO_FILE_NAME): Delete.
9343 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9344 (script_language_gdb): Delete, moved to extension.c and renamed to
9345 extension_language_gdb.
9346 (source_gdb_script_for_objfile): Delete.
9347 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9348 (loaded_script): Change type of language member to
9349 struct extension_language_defn *.
9350 (init_loaded_scripts_info): Initialize
9351 unsupported_script_warning_printed.
9352 (maybe_add_script): Make static. Change type of language arg to
9353 struct extension_language_defn *.
9354 (clear_section_scripts): Reset unsupported_script_warning_printed.
9355 (auto_load_objfile_script_1): Rewrite to use extension language API.
9356 (auto_load_objfile_script): Make public. Remove support-compiled-in
9357 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9358 (source_section_scripts): Rewrite to use extension language API.
9359 (load_auto_scripts_for_objfile): Rewrite to use
9360 auto_load_scripts_for_objfile.
9361 (collect_matching_scripts_data): Change type of language member to
9362 struct extension_language_defn *.
9363 (auto_load_info_scripts): Change type of language arg to
9364 struct extension_language_defn *.
9365 (unsupported_script_warning_print): New function.
9366 (script_not_found_warning_print): Make static.
9367 (_initialize_auto_load): Rewrite construction of scripts-directory
9368 help.
9369 * auto-load.h (struct objfile): Add forward decl.
9370 (struct script_language): Delete.
9371 (struct auto_load_pspace_info): Add forward decl.
9372 (struct extension_language_defn): Add forward decl.
9373 (maybe_add_script): Delete.
9374 (auto_load_objfile_script): Declare.
9375 (script_not_found_warning_print): Delete.
9376 (auto_load_info_scripts): Update prototype.
9377 (auto_load_gdb_scripts_enabled): Declare.
9378 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9379 auto_load_python_scripts_enabled and made public.
9380 (script_language_python): Delete, moved to python.c.
9381 (gdbpy_script_language_defn): Delete.
9382 (info_auto_load_python_scripts): Update to use
9383 extension_language_python.
9384
9385 * breakpoint.c (condition_command): Replace call to
9386 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9387 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9388 with call to breakpoint_ext_lang_cond_says_stop.
9389 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9390 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9391 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9392 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9393 New arg slang.
9394 (local_setattro): Print name of extension language with existing
9395 stop condition.
9396
9397 * valprint.c (val_print, value_print): Update to call
9398 apply_ext_lang_val_pretty_printer.
9399 * cp-valprint.c (cp_print_value): Update call to
9400 apply_ext_lang_val_pretty_printer.
9401 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9402 (gdbpy_apply_val_pretty_printer): Renamed from
9403 apply_val_pretty_printer. New arg extlang.
9404 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9405
9406 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9407 extension language API.
9408 * cli/cli-script.c (execute_control_command): Update to call
9409 eval_ext_lang_from_control_command.
9410
9411 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9412 enum ext_lang_bt_status values. Update call to
9413 apply_ext_lang_frame_filter.
9414 (mi_cmd_stack_list_locals): Ditto.
9415 (mi_cmd_stack_list_args): Ditto.
9416 (mi_cmd_stack_list_variables): Ditto.
9417 * mi/mi-main.c: Delete #include "python/python-internal.h".
9418 Add #include "extension.h".
9419 (mi_cmd_list_features): Replace reference to python internal variable
9420 gdb_python_initialized with call to ext_lang_initialized_p.
9421
9422 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9423 Update to use enum ext_lang_frame_args. Update to call
9424 apply_ext_lang_frame_filter.
9425 * python/py-framefilter.c (extract_sym): Update to use enum
9426 ext_lang_bt_status.
9427 (extract_value, py_print_type, py_print_value): Ditto.
9428 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9429 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9430 (py_print_frame): Ditto.
9431 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9432 New arg extlang. Update to use enum ext_lang_bt_status.
9433
9434 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9435 finish_python_initialization. Replace with call to
9436 finish_ext_lang_initialization.
9437
9438 * typeprint.c (do_free_global_table): Update to call
9439 free_ext_lang_type_printers.
9440 (create_global_typedef_table): Update to call
9441 start_ext_lang_type_printers.
9442 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9443 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9444 (type_print_options): Change type of global_printers from "void *"
9445 to "struct ext_lang_type_printers *".
9446
9447 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9448 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9449 (gdbpy_preserve_values): Renamed from preserve_python_values.
9450 New arg extlang.
9451 (!HAVE_PYTHON, preserve_python_values): Delete.
9452
9453 * utils.c (quit_flag): Delete, moved to extension.c.
9454 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9455 extension.c.
9456
9457 * eval.c: Delete #include "python/python.h".
9458 * main.c: Delete #include "python/python.h".
9459
9460 * defs.h: Update comment.
9461
6af79985
JB
94622014-02-06 Joel Brobecker <brobecker@adacore.com>
9463
9464 GDB 7.7 released.
9465
12c5175d
MK
94662014-02-05 Mark Kettenis <kettenis@gnu.org>
9467
9468 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9469 defined.
9470
8dc5b319
YQ
94712014-02-05 Yao Qi <yao@codesourcery.com>
9472
9473 * remote.c (remote_pass_signals): Remove local 'buf' and use
9474 rs->buf.
9475 (remote_program_signals): Likewise.
9476
de7b2893
YQ
94772014-02-05 Yao Qi <yao@codesourcery.com>
9478
9479 * ctf.c: Include "inferior.h" and "gdbthread.h".
9480 (CTF_PID): A new macro.
9481 (ctf_open): Call inferior_appeared and add_thread_silent.
9482 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9483 (ctf_thread_alive): New function.
9484 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9485
66d032ac
YQ
94862014-02-05 Yao Qi <yao@codesourcery.com>
9487
9488 Revert this patch:
9489
9490 2013-05-24 Yao Qi <yao@codesourcery.com>
9491
9492 * tracepoint.c (TFILE_PID): Remove.
9493 (tfile_open): Don't add thread and inferior.
9494 (tfile_close): Don't set 'inferior_ptid'. Don't call
9495 exit_inferior_silent.
9496 (tfile_thread_alive): Remove.
9497 (init_tfile_ops): Don't set field 'to_thread_alive' of
9498 tfile_ops.
9499
f4ccffad
CE
95002014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9501
9502 * remote.c (remote_start_remote): Call remote_check_symbols even
9503 if only symbol-file (not file) has been given.
9504
591a12a1
UW
95052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9506
9507 * gdbarch.sh (skip_entrypoint): New callback.
9508 * gdbarch.c, gdbarch.h: Regenerate.
9509 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9510 * infrun.c (fill_in_stop_func): Likewise.
9511 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9512 (ppc_elfv2_elf_make_msymbol_special): New function.
9513 (ppc_elfv2_skip_entrypoint): Likewise.
9514 (ppc_linux_init_abi): Install them for ELFv2.
9515
cc0e89c5
UW
95162014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9517
9518 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9519 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9520 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9521 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9522 structures returned in GPRs.
9523
52f548e4
UW
95242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9525
9526 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9527 offset to the stack parameter list for the ELFv2 ABI.
9528
d4094b6a
UW
95292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9530
9531 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9532 set_gdbarch_convert_from_func_ptr_addr and
9533 set_gdbarch_elf_make_msymbol_special for ELFv1.
9534 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9535 function descriptors on ELFv1.
9536 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9537 set up r12 at function entry.
9538
cd453cd0
UW
95392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9540
9541 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9542 (struct gdbarch_tdep): New member elf_abi.
9543
9544 * rs6000-tdep.c: Include "elf/ppc64.h".
9545 (rs6000_gdbarch_init): Detect ELF ABI version.
9546
0ff3e01f
UW
95472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9548
9549 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9550 within a register pair holding a DFP 128-bit value on little-endian.
9551 (ppc64_sysv_abi_return_value_base): Likewise.
9552 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9553 (dfp_pseudo_register_write): Likewise.
9554
5b757e5d
UW
95552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9556
9557 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9558 offset on little-endian when passing _Decimal32.
9559 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9560
084ee545
UW
95612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9562
9563 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9564 of the overlapped FP register within the VSX register on little-
9565 endian platforms.
9566 (efpr_pseudo_register_write): Likewise.
9567
d63167af
UW
95682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9569
9570 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9571 offset on little-endian when passing small structures.
9572
e765b44c
UW
95732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9574
9575 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9576 (struct ppc64_sysv_argpos): New data structure.
9577 (ppc64_sysv_abi_push_float): Remove.
9578 (ppc64_sysv_abi_push_val): New function.
9579 (ppc64_sysv_abi_push_integer): Likewise.
9580 (ppc64_sysv_abi_push_freg): Likewise.
9581 (ppc64_sysv_abi_push_vreg): Likewise.
9582 (ppc64_sysv_abi_push_param): Likewise.
9583 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9584 (ppc64_sysv_abi_return_value_base): New function.
9585 (ppc64_sysv_abi_return_value): Refactor to use it.
9586
36c24d95
UW
95872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9588
9589 * NEWS: Document new target powerpc64le-*-linux*.
9590
26fd9228
MK
95912014-02-04 Mark Kettenis <kettenis@gnu.org>
9592
9593 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9594 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9595 core dumps.
9596 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9597 register set used in ELF core dumps. Add floating-point register set.
9598
c5bb7362
KB
95992014-02-03 Kevin Buettner <kevinb@redhat.com>
9600
74228e77 9601 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
9602 dwarf2_to_gdb[] table using symbolic constants. Adjust
9603 penultimate entry from number representing the PC register
9604 to symbolic constant representing the MDR register. Add
9605 constant for the PC register to the end of the table.
9606
af09351e
MK
96072014-02-03 Mark Kettenis <kettenis@gnu.org>
9608
9609 * bsd-kvm.c: Include <sys/param.h>
9610
8507e05d
MK
96112014-02-03 Mark Kettenis <kettenis@gnu.org>
9612
9613 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9614
ae56bfb8
JB
96152014-01-31 Joel Brobecker <brobecker@adacore.com>
9616
9617 * ada-lang.h (clear_ada_sym_cache): Delete.
9618
718ee4dc
UW
96192014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9620
9621 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9622
401e27fd
JM
96232014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9624
9625 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9626 the sigreturn register save area only if the syscall is
9627 sigreturn.
9628
a7c88acd
JB
96292014-01-29 Joel Brobecker <brobecker@adacore.com>
9630
9631 * valops.c (value_slice): Minor reformatting.
9632
fa0079ea
UW
96332014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9634
9635 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9636
c6044dd1
JB
96372014-01-28 Joel Brobecker <brobecker@adacore.com>
9638
9639 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9640 New static globals.
9641 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9642 (ada_ignore_descriptive_types_p): New static global.
9643 (find_parallel_type_by_descriptive_type): Return immediately
9644 if ada_ignore_descriptive_types_p is set.
9645 (_initialize_ada_language): Register new commands "maintenance
9646 set ada", "maintenance show ada", "maintenance set ada
9647 ignore-descriptive-types" and "maintenance show ada
9648 ignore-descriptive-types".
9649 * NEWS: Add entry for new "maint ada set/show
9650 ignore-descriptive-types" commands.
9651
568e808b
MM
96522014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9653
9654 * record-btrace.c (record_btrace_close): Call btrace_teardown
9655 for all threads.
9656
467d141b
JB
96572014-01-27 Joel Brobecker <brobecker@adacore.com>
9658
9659 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9660 "ui-out.h".
9661
fb151210
JB
96622014-01-27 Joel Brobecker <brobecker@adacore.com>
9663
9664 * ada-typeprint (type_is_full_subrange_of_target_type):
9665 New function.
9666 (print_range): Add parameter bounds_prefered_p. If not set,
9667 try printing range types using the name of their base type.
9668 (print_range_type): Add parameter bounds_prefered_p.
9669 Use it in call to print_range.
9670 (print_array_type, ada_print_type): Update calls to print_range
9671 and print_range_type.
9672
aba02109
JB
96732014-01-27 Joel Brobecker <brobecker@adacore.com>
9674
9675 * ada-typeprint.c (print_array_type, print_choices, print_range)
9676 (print_range_bound, print_dynamic_range_bound, print_range_type):
9677 Remove declaration.
9678
e62e21fd
JB
96792014-01-27 Joel Brobecker <brobecker@adacore.com>
9680
9681 * ada-typeprint.c (print_range): Add missing empty line
9682 after local declaration.
9683
859cf5d1
JB
96842014-01-27 Joel Brobecker <brobecker@adacore.com>
9685
9686 * ada-valprint.c (print_optional_low_bound): Get index_type's
9687 target type for as long as it is a TYPE_CODE_RANGE.
9688
25790f6f
JB
96892014-01-27 Joel Brobecker <brobecker@adacore.com>
9690
9691 * procfs.c (procfs_make_note_section): Remove assertion and
9692 associated comment.
9693
6b6aa828
YQ
96942014-01-24 Yao Qi <yao@codesourcery.com>
9695
9696 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9697 * corelow.c (get_core_siginfo): Likewise.
9698
5d6df423
YQ
96992014-01-24 Yao Qi <yao@codesourcery.com>
9700
9701 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9702 ULONGEST. Don't check 'len' is negative.
9703 (remote_write_bytes): Change type of 'len' to ULONGEST.
9704
83b645b8
TT
97052014-01-23 Tom Tromey <tromey@redhat.com>
9706
9707 PR python/16485:
9708 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9709 Handle exception from frame.block.
9710 (FrameVars.fetch_frame_locals): Likewise.
9711
0740f8d8
TT
97122014-01-23 Tom Tromey <tromey@redhat.com>
9713
9714 PR python/16487:
9715 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9716 on a NULL pointer. Move "goto error" to correct place.
9717
21909fa1
TT
97182014-01-23 Tom Tromey <tromey@redhat.com>
9719
9720 PR python/16491:
9721 * python/py-framefilter.c (apply_frame_filter): Call
9722 ensure_python_env after computing gdbarch.
9723
17fde6d0
YQ
97242014-01-23 Yao Qi <yao@codesourcery.com>
9725
9726 * target.c (raw_memory_xfer_partial): Change argument type
9727 from void * to gdb_byte *.
9728 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9729
87ce2a04
DE
97302014-01-22 Doug Evans <dje@google.com>
9731
9732 New gdbserver option --debug-format=timestamp.
9733 * NEWS: Mention it.
9734
237b092b
AA
97352014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9736
9737 * syscalls/s390x-linux.xml: New file.
9738 * syscalls/s390-linux.xml: New file.
9739 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9740 (XML_SYSCALL_FILENAME_S390X): Likewise.
9741 (op_svc): New enum value for SVC opcode.
9742 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9743 (s390_linux_get_syscall_number): New function.
9744 (s390_gdbarch_init): Register '*get_syscall_number' and the
9745 syscall xml file name.
9746 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9747 "s390-linux.xml" and "s390x-linux.xml".
9748 * NEWS: Announce new feature.
9749
54bff650
BS
97502014-01-22 Baruch Siach <baruch@tkos.co.il>
9751
9752 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9753
14e361d7
PA
97542014-01-22 Pedro Alves <palves@redhat.com>
9755
9756 * xtensa-config.c: Include defs.h.
9757
46bbb3ed
JB
97582014-01-22 Joel Brobecker <brobecker@adacore.com>
9759
9760 * common/common-utils.h: Add "ARI:" comment beside __func__
9761 reference.
9762
3a80edfc
JB
97632014-01-22 Joel Brobecker <brobecker@adacore.com>
9764
9765 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9766 documentation a bit.
9767
4869db5e
RM
97682014-01-21 Roland McGrath <mcgrathr@google.com>
9769
9770 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9771 * configure: Regenerate.
9772 * aclocal.m4: Regenerate.
9773 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9774 New substituted variables.
9775 (install-strip): New target.
9776 (INSTALL_SCRIPT): New substituted variable.
9777 (FLAGS_TO_PASS): Add it.
9778 (install-only): Use $(INSTALL_SCRIPT) rather than
9779 $(INSTALL_PROGRAM) for gcore.
9780
9ea4267d
TT
97812014-01-20 Tom Tromey <tromey@redhat.com>
9782
9783 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9784 together.
9785
1f2bdf09
TT
97862014-01-20 Tom Tromey <tromey@redhat.com>
9787
9788 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9789 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9790 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9791 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9792 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9793 (struct cmd_list_element) <flags>: Remove.
9794 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9795 doc_allocated>: New fields.
9796 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9797 bitfields.
9798 * maint.c (maintenance_do_deprecate): Update.
9799 * top.c (execute_command): Update.
9800
e671835b
BS
98012014-01-20 Baruch Siach <baruch@tkos.co.il>
9802
9803 * xtensa-linux-nat.c: Include asm/ptrace.h.
9804
50367cd2
IB
98052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9806
9807 * Makefile.in (SFILES): Add d-support.c.
9808 (COMMON_OBS): Add d-support.o.
9809 * d-lang.h (d_parse_symbol): Add comment, now defined in
9810 d-support.c.
9811 * d-lang.c (parse_call_convention)
9812 (parse_attributes, parse_function_types)
9813 (parse_function_args, parse_type, parse_identifier)
9814 (call_convention_p, d_parse_symbol): Move functions to ...
9815 * d-support.c: ... New file.
9816
ec9f644a
IB
98172014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9818
9819 * d-lang.h (d_parse_symbol): Add declaration.
9820 * d-lang.c (extract_identifiers)
9821 (extract_type_info): Remove functions.
9822 (parse_call_convention, parse_attributes)
9823 (parse_function_types, parse_function_args)
9824 (parse_type, parse_identifier, call_convention_p)
9825 (d_parse_symbol): New functions.
9826 (d_demangle): Use d_parse_symbol to demangle D symbols.
9827
94b1b47e
IB
98282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9829
9830 * d-lang.h (struct builtin_d_type): New data type.
9831 (builtin_d_type): Add declaration.
9832 * d-lang.c (d_language_arch_info, build_d_types)
9833 (builtin_d_type): New functions.
9834 (enum d_primitive_types): New data type.
9835 (d_language_defn): Change c_language_arch_info to
9836 d_language_arch_info.
9837 (d_type_data): New static variable.
9838 (_initialize_d_language): Initialize d_type_data.
9839
63778547
IB
98402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9841
9842 * d-lang.h (d_main_name): Add declaration.
9843 * d-lang.c (d_main_name): New function.
9844 * symtab.c (find_main_name): Add call to d_main_name.
9845
3271ba66
IB
98462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9847
9848 * d-lang.c (d_language_defn): Change macro_expansion_c to
9849 macro_expansion_no.
9850
d36b3012
IB
98512014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9852
9853 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9854
c90a6fb7
SDJ
98552014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9856
9857 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9858 gdb_exception" declaration.
9859 * remote.c (getpkt_or_notif_sane): Likewise.
9860
749234e5
DE
98612014-01-17 Doug Evans <dje@google.com>
9862
9863 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9864 function, contents of dirnames_to_char_ptr_vec_append moved here.
9865 (delim_string_to_char_ptr_vec): New function.
9866 (dirnames_to_char_ptr_vec_append): Rewrite.
9867 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9868
df049a58
DE
98692014-01-17 Doug Evans <dje@google.com>
9870
9871 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9872 and moved here ...
9873 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9874 #include "common-utils.h".
9875 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9876 * common/vec.h (VEC_ASSERT_PASS): Update.
9877 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9878 (MACH_CHECK_ERROR): Update.
9879
69f97648
SM
98802014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9881
9882 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9883 comments.
9884 * gdbarch.h: Regenerate.
9885
98b1cfdc
TT
98862014-01-16 Tom Tromey <tromey@redhat.com>
9887
9888 * value.c (struct value) <regnum>: Move earlier.
9889
77a19445
TT
98902014-01-16 Tom Tromey <tromey@redhat.com>
9891
9892 * remote.c (extended_remote_create_inferior): Rename from
9893 extended_remote_create_inferior_1. Add "ops" argument. Remove
9894 old implementation.
9895
62261490
PA
98962014-01-16 Pedro Alves <palves@redhat.com>
9897
9898 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9899 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9900 the backchain.
9901
4d65956b
DE
99022014-01-16 Doug Evans <dje@google.com>
9903
9904 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9905
52834460
MM
99062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9907
9908 * btrace.h (btrace_thread_flag): New.
9909 (struct btrace_thread_info) <flags>: New.
9910 * record-btrace.c (record_btrace_resume_thread)
9911 (record_btrace_find_thread_to_move, btrace_step_no_history)
9912 (btrace_step_stopped, record_btrace_start_replaying)
9913 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9914 (record_btrace_find_resume_thread): New.
9915 (record_btrace_resume, record_btrace_wait): Extend.
9916 (record_btrace_can_execute_reverse): New.
9917 (record_btrace_open): Fail in non-stop mode.
9918 (record_btrace_set_replay): Split into this, ...
9919 (record_btrace_stop_replaying): ... this, ...
9920 (record_btrace_clear_histories): ... and this.
9921 (init_record_btrace_ops): Init to_can_execute_reverse.
9922 * NEWS: Announce it.
9923
118e6252
MM
99242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9925
9926 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9927 (forward_target_decr_pc_after_break)
9928 (target_decr_pc_after_break): New.
9929 * target.c (forward_target_decr_pc_after_break)
9930 (target_decr_pc_after_break): New.
9931 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9932 instead of gdbarch_decr_pc_after_break.
9933 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9934 instead of gdbarch_decr_pc_after_break.
9935 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9936 instead of gdbarch_decr_pc_after_break.
9937 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9938 instead of gdbarch_decr_pc_after_break.
9939 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9940 instead of gdbarch_decr_pc_after_break.
9941 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9942 instead of gdbarch_decr_pc_after_break.
9943
6e07b1d2
MM
99442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9945
9946 * btrace.c: Include regcache.h.
9947 (btrace_add_pc): New.
9948 (btrace_enable): Call btrace_add_pc.
9949 (btrace_is_empty): New.
9950 * btrace.h (btrace_is_empty): New.
9951 * record-btrace.c (require_btrace, record_btrace_info): Call
9952 btrace_is_empty.
9953
969c39fb
MM
99542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9955
9956 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9957 Support delta reads.
9958 (linux_disable_btrace): Change return type.
9959 * common/linux-btrace.h (linux_read_btrace): Change parameters
9960 and return type to allow error reporting. Update users.
9961 (linux_disable_btrace): Change return type. Update users.
9962 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9963 New.
9964 (btrace_error): New.
9965 (btrace_block) <begin>: Comment on BEGIN == 0.
9966 * btrace.c (btrace_compute_ftrace): Start from the end of
9967 the current trace.
9968 (btrace_stitch_trace, btrace_clear_history): New.
9969 (btrace_fetch): Read delta trace, return if replaying.
9970 (btrace_clear): Move clear history code to btrace_clear_history.
9971 (parse_xml_btrace): Throw an error if parsing failed.
9972 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9973 and return type to allow error reporting.
9974 (target_read_btrace): Change parameters and return type to allow
9975 error reporting.
9976 * target.c (target_read_btrace): Update.
9977 * remote.c (remote_read_btrace): Support delta reads. Pass
9978 errors on.
9979 * NEWS: Announce it.
9980
0b722aec
MM
99812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9982
9983 * record.h (record_btrace_frame_unwind)
9984 (record_btrace_tailcall_frame_unwind): New declarations.
9985 * dwarf2-frame: Include record.h
9986 (dwarf2_frame_cfa): Throw an error for btrace frames.
9987 * record-btrace.c: Include hashtab.h.
9988 (btrace_get_bfun_name): New.
9989 (btrace_call_history): Call btrace_get_bfun_name.
9990 (struct btrace_frame_cache): New.
9991 (bfcache): New.
9992 (bfcache_hash, bfcache_eq, bfcache_new): New.
9993 (btrace_get_frame_function): New.
9994 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9995 (record_btrace_frame_this_id): Compute own id.
9996 (record_btrace_frame_prev_register): Provide PC, throw_error
9997 for all other registers.
9998 (record_btrace_frame_sniffer): Detect btrace frames.
9999 (record_btrace_tailcall_frame_sniffer): New.
10000 (record_btrace_frame_dealloc_cache): New.
10001 (record_btrace_frame_unwind): Add new functions.
10002 (record_btrace_tailcall_frame_unwind): New.
10003 (_initialize_record_btrace): Allocate cache.
10004 * btrace.c (btrace_clear): Call reinit_frame_cache.
10005 * NEWS: Announce it.
10006
066ce621
MM
100072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10008
10009 * record-btrace.c (record_btrace_set_replay)
10010 (record_btrace_goto_begin, record_btrace_goto_end)
10011 (record_btrace_goto): New.
10012 (init_record_btrace_ops): Initialize them.
10013 * NEWS: Announce it.
10014
e2887aa3
MM
100152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10016
10017 * record-btrace.c (record_btrace_find_new_threads)
10018 (record_btrace_thread_alive): New.
10019 (init_record_btrace_ops): Initialize to_find_new_threads and
10020 to_thread_alive.
10021
b2f4cfde
MM
100222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10023
10024 * record-btrace.c (record_btrace_resume): New.
10025 (record_btrace_wait): New.
10026 (init_record_btrace_ops): Initialize to_wait and to_resume.
10027
633785ff
MM
100282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10029
10030 * record-btrace.c (record_btrace_xfer_partial)
10031 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10032 (record_btrace_allow_memory_access): New.
10033 (init_record_btrace_ops): Initialize new methods.
10034 * target.c (raw_memory_xfer_partial): Bail out if target reports
10035 that this memory is not available.
10036
3db08215
MM
100372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10038
10039 * target.h (target_ops) <to_insert_breakpoint>
10040 <to_remove_breakpoint>: Add target_ops parameter.
10041 (forward_target_insert_breakpoint): New.
10042 (forward_target_remove_breakpoint): New.
10043 (memory_remove_breakpoint, memory_insert_breakpoint):
10044 Add target_ops parameter.
10045 * target.c (target_insert_breakpoint): Split into this and ...
10046 (forward_target_insert_breakpoint): ... this.
10047 (target_remove_breakpoint): Split into this and ...
10048 (forward_target_remove_breakpoint): ... this.
10049 (debug_to_insert_breakpoint): Add target_ops parameter.
10050 Call forward_target_insert_breakpoint.
10051 (debug_to_remove_breakpoint): Add target_ops parameter.
10052 Call forward_target_remove_breakpoint.
10053 (update_current_target): Do not inherit or default to_insert_breakpoint
10054 and to_remove_breakpoint.
10055 * corelow.c (ignore): Add target_ops parameter.
10056 * exec.c (ignore): Add target_ops parameter.
10057 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10058 Add target_ops parameter.
10059 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10060 Add target_ops parameter.
10061 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10062 Add target_ops parameter.
10063 * record-full.c (record_full_beneath_to_insert_breakpoint)
10064 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10065 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10066 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10067 (record_full_core_remove_breakpoint): Add target_ops parameter.
10068 Update users.
10069 (record_full_beneath_to_insert_breakpoint_ops)
10070 (record_full_beneath_to_remove_breakpoint_ops)
10071 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10072 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10073 tmp_to_remove_breakpoint_ops,
10074 record_full_beneath_to_insert_breakpoint_ops, and
10075 record_full_beneath_to_remove_breakpoint_ops.
10076 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10077 (m32r_remove_breakpoint): Add target_ops parameter.
10078 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10079 Add target_ops parameter.
10080 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10081 Add target_ops parameter.
10082
cecac1ab
MM
100832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10084 Markus Metzger <markus.t.metzger@intel.com>
10085
10086 * record-btrace.c: Include frame-unwind.h.
10087 (record_btrace_frame_unwind_stop_reason)
10088 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10089 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10090 New.
10091 (init_record_btrace_ops): Install it.
10092
824344ca
MM
100932014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10094
10095 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10096 get_prev_frame_1.
10097
32261e52
MM
100982014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10101 earlier.
10102
ea001bdc
MM
101032014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10104
10105 * frame-unwind.c: Include target.h.
10106 (frame_unwind_try_unwinder): New function with code from ...
10107 (frame_unwind_find_by_frame): ... here. New variable
10108 unwinder_from_target, call also target_get_unwinder)
10109 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10110 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10111 * target.h (struct target_ops): New fields to_get_unwinder and
10112 to_get_tailcall_unwinder.
10113 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10114
1f3ef581
MM
101152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10116
10117 * record-btrace.c (record_btrace_fetch_registers)
10118 (record_btrace_store_registers)
10119 (record_btrace_to_prepare_to_store): New.
10120 (init_record_btrace_ops): Add the above.
10121
f32dbf8c
MM
101222014-01-16 Tom Tromey <tromey@redhat.com>
10123
10124 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10125 * target.h (struct target_ops) <to_prepare_to_store>: Add
10126 argument.
10127 (target_prepare_to_store): Add argument.
10128 * target.c (debug_to_prepare_to_store): Add argument.
10129 (update_current_target): Update.
10130 * remote.c (remote_prepare_to_store): Add 'self' argument.
10131 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10132 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10133 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10134 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10135 argument.
10136 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10137 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10138 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10139 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10140 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10141
07bbe694
MM
101422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10143
10144 * btrace.h (replay) <replay>: New.
10145 (btrace_is_replaying): New.
10146 * btrace.c (btrace_clear): Free replay iterator.
10147 (btrace_is_replaying): New.
10148 * record-btrace.c (record_btrace_is_replaying): New.
10149 (record_btrace_info): Print insn number if replaying.
10150 (record_btrace_insn_history): Start at replay position.
10151 (record_btrace_call_history): Start at replay position.
10152 (init_record_btrace_ops): Init to_record_is_replaying.
10153
0688d04e
MM
101542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10155
10156 * record-btrace.c (record_btrace_insn_history_range): Include
10157 end.
10158 (record_btrace_insn_history_from): Adjust range.
10159 (record_btrace_call_history_range): Include
10160 end.
10161 (record_btrace_call_history_from): Adjust range.
10162 * NEWS: Announce changes.
10163
8710b709
MM
101642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10165
10166 * record.h (enum record_print_flag)
10167 <record_print_indent_calls>: New.
10168 * record.c (get_call_history_modifiers): Recognize /c modifier.
10169 (_initialize_record): Document /c modifier.
10170 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10171 Reorder fields. Optionally indent the function name. Update
10172 all users.
10173 * NEWS: Announce changes.
10174
d0fa7535
MM
101752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10176
10177 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10178
5de9129b
MM
101792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10180
10181 * btrace.c (ftrace_new_function): Start counting at one.
10182 * record-btrace.c (record_btrace_info): Adjust number of calls
10183 and insns.
10184 * NEWS: Announce it.
10185
7acbe133
MM
101862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10187
10188 * record-btrace.c (btrace_call_history_insn_range): Print
10189 insn range as [begin, end].
10190
23a7fe75
MM
101912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10192
10193 * btrace.h (struct btrace_func_link): New.
10194 (enum btrace_function_flag): New.
10195 (struct btrace_inst): Rename to ...
10196 (struct btrace_insn): ...this. Update all users.
10197 (struct btrace_func) <ibegin, iend>: Remove.
10198 (struct btrace_func_link): New.
10199 (struct btrace_func): Rename to ...
10200 (struct btrace_function): ...this. Update all users.
10201 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10202 (number, level, flags>: New.
10203 (struct btrace_insn_iterator): Rename to ...
10204 (struct btrace_insn_history): ...this.
10205 Update all users.
10206 (struct btrace_insn_iterator, btrace_call_iterator): New.
10207 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10208 (struct btrace_target_info) <begin, end, level>
10209 <insn_history, call_history>: New.
10210 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10211 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10212 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10213 (btrace_call_number, btrace_call_begin, btrace_call_end)
10214 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10215 (btrace_find_function_by_number, btrace_set_insn_history)
10216 (btrace_set_call_history): New.
10217 * btrace.c (btrace_init_insn_iterator)
10218 (btrace_init_func_iterator, compute_itrace): Remove.
10219 (ftrace_print_function_name, ftrace_print_filename)
10220 (ftrace_skip_file): Change
10221 parameter to const.
10222 (ftrace_init_func): Remove.
10223 (ftrace_debug): Use new btrace_function fields.
10224 (ftrace_function_switched): Also consider gaining and
10225 losing symbol information).
10226 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10227 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10228 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10229 New.
10230 (ftrace_new_function): Move. Remove debug print.
10231 (ftrace_update_lines, ftrace_update_insns): New.
10232 (ftrace_update_function): Check for call, ret, and jump.
10233 (compute_ftrace): Renamed to ...
10234 (btrace_compute_ftrace): ...this. Rewritten to compute call
10235 stack.
10236 (btrace_fetch, btrace_clear): Updated.
10237 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10238 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10239 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10240 (btrace_call_number, btrace_call_begin, btrace_call_end)
10241 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10242 (btrace_find_function_by_number, btrace_set_insn_history)
10243 (btrace_set_call_history): New.
10244 * record-btrace.c (require_btrace): Use new btrace thread
10245 info fields.
10246 (record_btrace_info, btrace_insn_history)
10247 (record_btrace_insn_history, record_btrace_insn_history_range):
10248 Use new btrace thread info fields and new iterator.
10249 (btrace_func_history_src_line): Rename to ...
10250 (btrace_call_history_src_line): ...this. Use new btrace
10251 thread info fields.
10252 (btrace_func_history): Rename to ...
10253 (btrace_call_history): ...this. Use new btrace thread info
10254 fields and new iterator.
10255 (record_btrace_call_history, record_btrace_call_history_range):
10256 Use new btrace thread info fields and new iterator.
10257
8372a7cb
MM
102582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10259
10260 * frame.h (frame_id_build_unavailable_stack_special): New.
10261 * frame.c (frame_id_build_unavailable_stack_special): New.
10262
c2170eef
MM
102632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10264
10265 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10266 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10267 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10268 to gdbarch.
10269 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10270 (i386_insn_is_jump, i386_jmp_p): New.
10271 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10272 insn_is_jump to gdbarch.
10273 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10274 * gdbarch.h: Regenerated.
10275 * gdbarch.c: Regenerated.
10276 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10277 (default_insn_is_jump): New.
10278 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10279 (default_insn_is_jump): New.
10280
864089d2
MM
102812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10282
10283 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10284 Change to ...
10285 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10286 (btrace_read_type) <btrace_read_new>: Change to ...
10287 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10288
ed9edfb5
MM
102892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10290
10291 * common/linux-btrace.c (linux_read_btrace): Free trace from
10292 previous iteration.
10293
fbcbc3fd
DE
102942014-01-15 Doug Evans <dje@google.com>
10295
10296 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10297 uint32_t.
10298
3d548a53
TT
102992014-01-15 Tom Tromey <tromey@redhat.com>
10300
10301 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10302 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10303 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10304 (set_objfile_main_name): New function.
10305 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10306 language_of_main>: New fields.
10307 (set_objfile_main_name): Declare.
10308 * symtab.c (find_main_name): Loop over objfiles to find the main
10309 name and language.
10310 (set_main_name): Now static.
10311 (get_main_info): Add comment.
10312 * symtab.h (set_main_name): Don't declare.
10313
32ac0d11
TT
103142014-01-15 Tom Tromey <tromey@redhat.com>
10315
10316 * symtab.c (main_progspace_key): New global.
10317 (struct main_info): New.
10318 (name_of_main, language_of_main): Remove.
10319 (get_main_info, main_info_cleanup): New function.
10320 (set_main_name, main_name, main_language): Use get_main_info.
10321 (_initialize_symtab): Initialize main_progspace_key.
10322
9e6c82ad
TT
103232014-01-15 Tom Tromey <tromey@redhat.com>
10324
10325 * dbxread.c (process_one_symbol): Update.
10326 * dwarf2read.c (read_partial_die): Update.
10327 * symfile.c (set_initial_language): Call main_language.
10328 * symtab.c (language_of_main): Now static.
10329 (set_main_name): Add 'lang' parameter.
10330 (find_main_name): Update.
10331 (main_language): New function.
10332 (symtab_observer_executable_changed): Update.
10333 * symtab.h (set_main_name): Update.
10334 (language_of_main): Remove.
10335 (main_language): Declare.
10336
6ef55de7
TT
103372014-01-15 Tom Tromey <tromey@redhat.com>
10338
10339 * symfile.c (init_entry_point_info): Use new "initialized" field.
10340 Update.
10341 * objfiles.h (struct entry_point) <initialized>: New field.
10342 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10343 (struct objfile) <ei>: ...here. Remove.
10344 * objfiles.c (entry_point_address_query): Update.
10345
53eddfa6
TT
103462014-01-15 Tom Tromey <tromey@redhat.com>
10347
10348 * objfiles.c (entry_point_address_query): Relocate entry point
10349 address.
10350 (objfile_relocate1): Do not relocate entry point address.
10351 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10352 <the_bfd_section_index>: New field.
10353 * symfile.c (init_entry_point_info): Find the entry point's
10354 section.
10355
d56e56aa
TT
103562014-01-15 Tom Tromey <tromey@redhat.com>
10357
10358 * solib-frv.c (enable_break): Use entry_point_address_query.
10359
33a97bbe
OJ
103602014-01-15 Omair Javaid <omair.javaid@linaro.org>
10361
10362 * NEWS: Add note on improved process record-replay on
10363 arm*-linux* targets.
10364
c6ec2b30
OJ
103652014-01-15 Omair Javaid <omair.javaid@linaro.org>
10366
10367 * arm-tdep.c (enum arm_record_result): New enum.
10368 (arm_record_unsupported_insn): New function.
10369 (arm_record_coproc_data_proc): Removed.
10370 (thumb2_record_ld_st_multiple): New function.
10371 (thumb2_record_ld_st_dual_ex_tbb): New function.
10372 (thumb2_record_data_proc_sreg_mimm): New function.
10373 (thumb2_record_ps_dest_generic): New function.
10374 (thumb2_record_branch_misc_cntrl): New function.
10375 (thumb2_record_str_single_data): New function.
10376 (thumb2_record_ld_mem_hints): New function.
10377 (thumb2_record_ld_word): New function.
10378 (thumb2_record_lmul_lmla_div): New function.
10379 (thumb2_record_decode_insn_handler): New function.
10380 (decode_insn): Add thumb32 instruction handlers.
10381
97dfe206
OJ
103822014-01-15 Omair Javaid <omair.javaid@linaro.org>
10383
10384 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10385 (struct arm_linux_record_tdep): Declare.
10386 (arm_canonicalize_syscall): New function.
10387 (arm_all_but_pc_registers_record): New function.
10388 (arm_linux_syscall_record): New function.
10389 (arm_linux_init_abi): Add syscall recording constructs.
10390 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10391 decoding. (arm_record_coproc_data_proc): Update arm syscall
10392 decoding.
10393 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10394 <arm_syscall_record>: New field.
10395 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10396 gdb_target_obs.
10397
9904a494
OJ
103982014-01-15 Omair Javaid <omair.javaid@linaro.org>
10399
10400 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10401 register for push instruction recording.
10402
f969241e
OJ
104032014-01-15 Omair Javaid <omair.javaid@linaro.org>
10404
10405 * arm-tdep.c (thumb_record_misc): Update to correct logical
10406 error while recording ldm, ldmia and pop instructions.
10407
bfbbec00
OJ
104082014-01-15 Omair Javaid <omair.javaid@linaro.org>
10409
10410 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10411
e40adcc9
PA
104122014-01-15 Pedro Alves <palves@redhat.com>
10413
10414 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10415 (go32_resume, go32_fetch_registers, store_register)
10416 (go32_store_registers, go32_prepare_to_store)
10417 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10418 (go32_create_inferior, go32_can_run, go32_terminal_init)
10419 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10420 declarations.
10421
b0a16e66
TT
104222014-01-15 Tom Tromey <tromey@redhat.com>
10423
10424 * target.h (async_callback_ftype): New typedef.
10425 (struct target_ops) <to_async>: Use it.
10426
bf7105a4
JB
104272014-01-15 Joel Brobecker <brobecker@adacore.com>
10428
10429 * python/py-value.c (get_field_type): Remove unnecessary curly
10430 braces for single-statement if block.
10431
a8f35c2e
JB
104322014-01-15 Joel Brobecker <brobecker@adacore.com>
10433
10434 * python/py-type.c (convert_field): Add missing empty line
10435 after declarations.
10436
bb4142cf
DE
104372014-01-14 Doug Evans <dje@google.com>
10438
10439 * symfile.h (expand_symtabs_matching): Renamed from
10440 expand_partial_symbol_names. Update prototype.
10441 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10442 * symfile.c (expand_symtabs_matching): Renamed from
10443 expand_partial_symbol_names. New args file_matcher, kind.
10444 Rename arg fun to symbol_matcher.
10445 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10446 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10447 ada_expand_partial_symbol_name.
10448 (ada_make_symbol_completion_list): Update to call
10449 expand_symtabs_matching.
10450 (ada_add_global_exceptions): Call expand_symtabs_matching.
10451 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10452 call map_symbol_filenames.
10453 * symtab.c (sources_info): Update to call map_symbol_filenames.
10454 (search_symbols): Call expand_symtabs_matching.
10455 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10456 (default_make_symbol_completion_list_break_on): Update to call
10457 expand_symtabs_matching.
10458 (make_source_files_completion_list): Update to call
10459 map_symbol_filenames.
10460
206f2a57
DE
104612014-01-14 Doug Evans <dje@google.com>
10462
10463 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10464 (expand_symtabs_symbol_matcher_ftype): New typedef.
10465 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10466 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10467 * symfile.c (expand_partial_symbol_names): Update to use
10468 expand_symtabs_symbol_matcher_ftype.
10469 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10470 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10471 Arg name_matcher renamed to symbol_matcher.
10472 * psymtab.c (recursively_search_psymtabs): Update to use
10473 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10474 sym_matcher.
10475 (expand_symtabs_matching_via_partial): Update to use
10476 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10477 Arg name_matcher renamed to symbol_matcher.
10478
540c2971
DE
104792014-01-14 Doug Evans <dje@google.com>
10480
10481 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10482 (map_partial_symbol_filenames): Ditto.
10483 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10484 (map_partial_symbol_filenames): Ditto.
10485 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10486 (map_partial_symbol_filenames): Ditto.
10487 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10488 (map_partial_symbol_filenames): Ditto.
10489 * symtab.c: Delete #include "psymtab.h".
10490
8213266a
PA
104912014-01-14 Pedro Alves <palves@redhat.com>
10492 Tom Tromey <tromey@redhat.com>
10493
10494 * infrun.c (use_displaced_stepping): Use find_record_target
10495 instead of RECORD_IS_USED.
10496 (adjust_pc_after_break): Use record_full_is_used instead of
10497 RECORD_IS_USED.
10498 * record-btrace.c (record_btrace_open): Call record_preopen
10499 instead of checking RECORD_IS_USED.
10500 * record-full.c (record_full_shortname)
10501 (record_full_core_shortname): New globals.
10502 (record_full_is_used): New function.
10503 (find_full_open): Call record_preopen instead of checking
10504 RECORD_IS_USED.
10505 (init_record_full_ops): Set the target's shortname to
10506 record_full_shortname.
10507 (init_record_full_core_ops): Set the target's shortname to
10508 record_full_core_shortname.
10509 * record-full.h (record_full_is_used): Declare.
10510 * record.c (find_record_target): Make extern.
10511 (record_preopen): New function.
10512 * record.h (RECORD_IS_USED): Delete macro.
10513 (find_record_target, record_preopen): Declare functions.
10514
7ec1862d
YQ
105152014-01-14 Yao Qi <yao@codesourcery.com>
10516
10517 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10518 'len''s type to ULONGEST.
10519 (core_xfer_shared_libraries_aix): Likewise.
10520 * gdbarch.c, gdbarch.h: Regenerated.
10521 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10522 Change type of 'len' to ULONGEST.
10523 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10524 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10525
dea80a27
YQ
105262014-01-14 Yao Qi <yao@codesourcery.com>
10527
10528 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10529 type of 'len' to ULONGEST.
10530 (linux_xfer_osdata_processgroups): Likewise.
10531 (linux_xfer_osdata_threads): Likewise.
10532 (linux_xfer_osdata_fds): Likewise.
10533 (linux_xfer_osdata_isockets): Likewise.
10534 (linux_xfer_osdata_shm): Likewise.
10535 (linux_xfer_osdata_sem): Likewise.
10536 (linux_xfer_osdata_msg): Likewise.
10537 (linux_common_xfer_osdata): Likewise.
10538 (struct osdata_type) <getter>: Likewise.
10539 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10540 the declaration.
10541
b55e14c7
YQ
105422014-01-14 Yao Qi <yao@codesourcery.com>
10543
10544 * target.h (target_xfer_partial_ftype): Update.
10545 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10546 ULONGEST.
10547 * aix-thread.c (aix_thread_xfer_partial): Change type of
10548 argument 'len' to ULONGEST.
10549 * auxv.c (procfs_xfer_auxv): Likewise.
10550 (ld_so_xfer_auxv): Likewise.
10551 (memory_xfer_auxv): Likewise.
10552 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10553 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10554 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10555 * corelow.c (core_xfer_partial): Likewise.
10556 * ctf.c (ctf_xfer_partial): Likewise.
10557 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10558 '%u'.
10559 (darwin_read_dyld_info): Likewise.
10560 (darwin_xfer_partial): Likewise.
10561 * exec.c (section_table_xfer_memory_partial): Likewise.
10562 (exec_xfer_partial): Likewise.
10563 * exec.h (section_table_xfer_memory_partial): Update
10564 declaration.
10565 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10566 instead of plongest.
10567 (gnu_xfer_partial): Likewise.
10568 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10569 (ia64_hpux_xfer_solib_got): Likewise.
10570 (ia64_hpux_xfer_partial): Likewise.
10571 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10572 * inf-ptrace.c (inf_ptrace_xfer_partial):
10573 * inf-ttrace.c (inf_ttrace_xfer_partial):
10574 * linux-nat.c (linux_xfer_siginfo): Likewise.
10575 (linux_nat_xfer_partial): Likewise.
10576 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10577 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10578 * monitor.c (monitor_xfer_memory): Likewise.
10579 (monitor_xfer_partial): Likewise.
10580 * procfs.c (procfs_xfer_partial): Likewise.
10581 * record-full.c (record_full_xfer_partial): Likewise.
10582 (record_full_core_xfer_partial): Likewise.
10583 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10584 instead of plongest.
10585 (gdbsim_xfer_partial): Likewise.
10586 * remote.c (remote_xfer_partial): Likewise.
10587 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10588 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10589 declaration.
10590 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10591 (rs6000_xfer_shared_libraries): Likewise.
10592 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10593 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10594 (sparc_xfer_partial): Likewise.
10595 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10596 (spu_xfer_partial): Likewise.
10597 * spu-multiarch.c (spu_xfer_partial): Likewise.
10598 * target.c (target_read_live_memory): Likewise.
10599 (memory_xfer_live_readonly_partial): Likewise.
10600 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10601 (target_xfer_partial, default_xfer_partial): Likewise.
10602 (current_xfer_partial): Likewise.
10603 * tracepoint.c (tfile_xfer_partial): Likewise.
10604 * windows-nat.c (windows_xfer_memory): Likewise. Call
10605 pulongest instead of plongest.
10606 (windows_xfer_partial): Likewise.
10607 (windows_xfer_shared_libraries): Likewise.
10608
05804640
YQ
106092014-01-14 Yao Qi <yao@codesourcery.com>
10610
10611 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10612 target_xfer_partial_ftype.
10613
b5b08fb4
SC
106142014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10615
10616 PR python/15464
10617 PR python/16113
10618 * valops.c (value_struct_elt_bitpos): New function
10619 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10620 object to 'None' if the field name is an empty string ("").
10621 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10622 attribute to look for a field when 'name' is 'None'.
10623 (get_field_type): New function
10624
13aaf454
DE
106252014-01-13 Doug Evans <dje@google.com>
10626
10627 PR symtab/16426
10628 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10629 (try_open_dwop_file): Ditto.
10630 * gdb_bfd.c: #include "vec.h".
10631 (bfdp): New typedef.
10632 (struct gdb_bfd_data): New member included_bfds.
10633 (gdb_bfd_unref): Unref all included bfds.
10634 (gdb_bfd_record_inclusion): New function.
10635 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10636
c2cec97c
TT
106372014-01-13 Tom Tromey <tromey@redhat.com>
10638
10639 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10640
78e5999d
TT
106412014-01-13 Tom Tromey <tromey@redhat.com>
10642
10643 * defs.h (use_windows): Remove.
10644 * gdb.c (main): Update.
10645 * main.c (captured_main, gdb_main): Update.
10646 * main.h (struct captured_main_args) <use_windows>: Remove.
10647 * top.c (use_windows): Remove.
10648
f2052bbe
TT
106492014-01-13 Tom Tromey <tromey@redhat.com>
10650
10651 * defs.h (deprecated_flush_hook): Remove.
10652
fde4f8ed
JK
106532014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10654
10655 PR threads/16216
10656 * linux-thread-db.c (try_thread_db_load): Add parameter
10657 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10658 (try_thread_db_load_from_pdir_1): Move it there from here.
10659 (try_thread_db_load_from_sdir): Update caller.
10660 (try_thread_db_load_from_dir): Move it there from here.
10661
bdf61915
PP
106622014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10663
10664 * regformats/regdat.sh: Always rewrite the register file.
10665
f71e1a8d
PA
106662014-01-13 Pedro Alves <palves@redhat.com>
10667
10668 * Makefile.in (CHECK_HEADERS): New variable.
10669 (check-headers:): New rule.
10670
42c85435
TT
106712014-01-13 Tom Tromey <tromey@redhat.com>
10672
10673 * cli/cli-setshow.c (do_set_command): Update.
10674 * defs.h (deprecated_set_hook): Remove.
10675 * top.c (deprecated_set_hook): Remove.
10676
f8de5129
PA
106772014-01-13 Pedro Alves <palves@redhat.com>
10678
10679 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10680 the tracepoint if the PC is a pseudo-register.
10681
fc270c35
TT
106822014-01-13 Tom Tromey <tromey@redhat.com>
10683
10684 * defs.h (XCALLOC): Remove.
10685 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10686 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10687 * dwarf2loc.c (allocate_piece_closure): Likewise.
10688 * elfread.c (elf_symfile_segments): Likewise.
10689 (elf_symfile_segments): Likewise.
10690 * gdbtypes.c (copy_type_recursive): Likewise.
10691 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10692 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10693 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10694 XCALLOC.
10695 * mt-tdep.c (mt_gdbarch_init): Likewise.
10696 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10697 XCALLOC.
10698 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10699 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10700 * registry.c (registry_alloc_data): Likewise.
10701 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10702 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10703 * serial.c (serial_fdopen_ops): Likewise.
10704 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10705 XCALLOC.
10706 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10707 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10708 not XCALLOC.
10709
70ba0933
TT
107102014-01-13 Tom Tromey <tromey@redhat.com>
10711
10712 * defs.h (XMALLOC): Remove.
10713 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10714 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10715 * cli-out.c (struct ui_out *): Likewise.
10716 * cli/cli-dump.c (add_dump_command): Likewise.
10717 (add_dump_command): Likewise.
10718 * complaints.c (get_complaints): Likewise.
10719 (find_complaint): Likewise.
10720 * dwarf2-frame.c (execute_cfa_program): Likewise.
10721 * dwarf2read.c (abbrev_table_read_table): Likewise.
10722 * gdbarch.sh: Likewise.
10723 * gdbarch.c: Rebuild.
10724 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10725 * interps.c (interp_new): Likewise.
10726 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10727 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10728 * mi/mi-console.c (mi_console_file_new): Likewise.
10729 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10730 * mi/mi-out.c (mi_out_new): Likewise.
10731 * mi/mi-parse.c (mi_parse): Likewise.
10732 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10733 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10734 * observer.c (xalloc_observer_list_node): Likewise.
10735 * regcache.c (regcache_xmalloc_1): Likewise.
10736 * reggroups.c (reggroup_new): Likewise.
10737 (_initialize_reggroup): Likewise.
10738 * registry.c (register_data_with_cleanup): Likewise.
10739 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10740 * ser-base.c (serial_ttystate): Likewise.
10741 * ser-mingw.c (make_pipe_state): Likewise.
10742 * ser-pipe.c (pipe_open): Likewise.
10743 * serial.c (serial_open): Likewise.
10744 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10745 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10746 (tui_alloc_win_info): Likewise.
10747 (tui_add_content_elements): Likewise.
10748 * tui/tui-file.c (tui_file_new): Likewise.
10749 * tui/tui-out.c (tui_out_new): Likewise.
10750 * ui-file.c (mem_file_new): Likewise.
10751 * ui-out.c (push_level): Likewise.
10752 (make_cleanup_ui_out_end): Likewise.
10753 (append_header_to_list): Likewise.
10754 (ui_out_new): Likewise.
10755 * user-regs.c (user_reg_add_builtin): Likewise.
10756
41bf6aca
TT
107572014-01-13 Tom Tromey <tromey@redhat.com>
10758
10759 * defs.h (XZALLOC): Remove.
10760 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10761 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10762 (get_ada_tasks_inferior_data): Likewise.
10763 * auto-load.c (get_auto_load_pspace_data): Likewise.
10764 * auxv.c (get_auxv_inferior_data): Likewise.
10765 * bfd-target.c (target_bfd_reopen): Likewise.
10766 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10767 (deprecated_insert_raw_breakpoint): Likewise.
10768 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10769 * corelow.c (core_open): Likewise.
10770 * darwin-nat.c (darwin_check_new_threads): Likewise.
10771 (darwin_attach_pid): Likewise.
10772 * dummy-frame.c (dummy_frame_push): Likewise.
10773 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10774 * dwarf2loc.c (allocate_piece_closure): Likewise.
10775 * elfread.c (elf_symfile_segments): Likewise.
10776 * eval.c (ptrmath_type_p): Likewise.
10777 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10778 * gdbtypes.c (alloc_type_arch): Likewise.
10779 (alloc_type_instance): Likewise.
10780 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10781 * inf-child.c (inf_child_can_use_agent): Likewise.
10782 * inflow.c (get_inflow_inferior_data): Likewise.
10783 * infrun.c (save_infcall_suspend_state): Likewise.
10784 * jit.c (jit_reader_load): Likewise.
10785 (get_jit_objfile_data): Likewise.
10786 (get_jit_program_space_data): Likewise.
10787 (jit_object_open_impl): Likewise.
10788 (jit_symtab_open_impl): Likewise.
10789 (jit_block_open_impl): Likewise.
10790 (jit_frame_sniffer): Likewise.
10791 * linux-fork.c (add_fork): Likewise.
10792 * maint.c (make_command_stats_cleanup): Likewise.
10793 * objfiles.c (get_objfile_pspace_data): Likewise.
10794 * opencl-lang.c (struct lval_closure): Likewise.
10795 * osdata.c (osdata_start_osdata): Likewise.
10796 * progspace.c (new_address_space): Likewise.
10797 (add_program_space): Likewise.
10798 * remote-sim.c (get_sim_inferior_data): Likewise.
10799 * sh-tdep.c (sh_gdbarch_init): Likewise.
10800 * skip.c (Ignore): Likewise.
10801 (skip_delete_command): Likewise.
10802 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10803 (library_list_start_library): Likewise.
10804 (solib_aix_current_sos): Likewise.
10805 * solib-darwin.c (get_darwin_info): Likewise.
10806 (darwin_current_sos): Likewise.
10807 * solib-dsbt.c (get_dsbt_info): Likewise.
10808 * solib-ia64-hpux.c (new_so_list): Likewise.
10809 (ia64_hpux_get_solib_linkage_addr): Likewise.
10810 * solib-spu.c (append_ocl_sos): Likewise.
10811 (spu_current_sos): Likewise.
10812 * solib-svr4.c (get_svr4_info): Likewise.
10813 (svr4_keep_data_in_core): Likewise.
10814 (library_list_start_library): Likewise.
10815 (svr4_default_sos): Likewise.
10816 (svr4_read_so_list): Likewise.
10817 * solib-target.c (library_list_start_library): Likewise.
10818 (solib_target_current_sos): Likewise.
10819 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10820 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10821 * symfile.c (default_symfile_segments): Likewise.
10822 * target-descriptions.c (tdesc_data_init): Likewise.
10823 (tdesc_create_reg): Likewise.
10824 (struct tdesc_type *): Likewise.
10825 (tdesc_create_vector): Likewise.
10826 (tdesc_set_struct_size): Likewise.
10827 (struct tdesc_type *): Likewise.
10828 (tdesc_free_feature): Likewise.
10829 (tdesc_create_feature): Likewise.
10830 * windows-nat.c (windows_add_thread): Likewise.
10831 (windows_make_so): Likewise.
10832 * xml-support.c (gdb_xml_body_text): Likewise.
10833 (gdb_xml_create_parser_and_cleanup): Likewise.
10834 (xml_process_xincludes): Likewise.
10835 * xml-syscall.c (allocate_syscalls_info): Likewise.
10836 (syscall_create_syscall_desc): Likewise.
10837
5acfdbae
SDJ
108382014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10839
10840 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10841 function, with code from i386_stap_parse_special_token.
10842 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10843 (i386_stap_parse_special_token): Move code to the two functions
10844 above; simplify it.
10845
0000e5cc
PA
108462014-01-09 Pedro Alves <palves@redhat.com>
10847 Hui Zhu <hui@codesourcery.com>
10848
10849 PR gdb/16101
10850 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10851 bp_err_string. Don't mark the location shlib_disabled if the
10852 error thrown wasn't a generic or memory error. Catch errors
10853 thrown while inserting breakpoints in overlayed code. Output
10854 error message of software breakpoints.
10855 * remote.c (remote_insert_breakpoint): If this breakpoint has
10856 target-side commands but this stub doesn't support Z0 packets,
10857 throw NOT_SUPPORTED_ERROR error.
10858 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10859 * target.h (target_insert_breakpoint): Extend comment.
10860 (target_insert_hw_breakpoint): Add comment.
10861
b7ea362b
PA
108622014-01-08 Pedro Alves <palves@redhat.com>
10863
10864 * remote.c (remote_add_thread): Add threads silently if starting
10865 up.
10866 (remote_notice_new_inferior): If in all-stop, and starting up,
10867 don't call notice_new_inferior.
10868 (get_current_thread): New function, factored out from ...
10869 (add_current_inferior_and_thread): ... this. Adjust.
10870 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10871 found any thread, then select the remote's current thread as GDB's
10872 current thread too.
10873
b7bba001
JB
108742014-01-08 Joel Brobecker <brobecker@adacore.com>
10875
10876 * NEWS: Create a new section for the next release branch.
10877 Rename the section of the current branch, now that it has
10878 been cut.
10879
16dfbded
JB
108802014-01-08 Joel Brobecker <brobecker@adacore.com>
10881
10882 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10883 * version.in: Bump version to 7.7.50.DATE-cvs.
10884
22c90ac1
YQ
108852014-01-08 Yao Qi <yao@codesourcery.com>
10886
10887 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10888 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10889 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10890
d64ad97c
YQ
108912014-01-08 Yao Qi <yao@codesourcery.com>
10892
10893 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10894 return value of bfd_get_filename to symbol_file_add_from_bfd.
10895
f93ba80c
PM
108962014-01-08 Pierre Muller <muller@sourceware.org>
10897
10898 Fix PR16201.
10899 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10900 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10901 to prim_record_mininal_symbol_and_info.
10902 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10903 in call to prim_record_minimal_symbol_and_info.
10904 (read_pe_exported_syms): Set index field of section_data.
10905
a4d9ba85
AP
109062014-01-07 Andrew Pinski <apinski@cavium.com>
10907
10908 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10909 * features/aarch64.c: Regenerate.
10910
1b67eb02
AS
109112014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10912
10913 * target.c (return_null): Define.
10914 (update_current_target): Use it instead of return_zero for
10915 functions that return a pointer.
10916
5e3f4fab
EBM
109172014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10918
10919 * source.c (add_path): Fix check for duplicated paths in the previously
10920 included paths.
10921
e2616788
HK
109222014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10923
10924 * ada-lang.c: Remove duplicated include statements.
10925 * alphabsd-nat.c: Ditto.
10926 * amd64-darwin-tdep.c: Ditto.
10927 * amd64fbsd-nat.c: Ditto.
10928 * auto-load.c: Ditto.
10929 * ax-gdb.c: Ditto.
10930 * breakpoint.c: Ditto.
10931 * dbxread.c: Ditto.
10932 * fork-child.c: Ditto.
10933 * gdb_usleep.c: Ditto.
10934 * i386-darwin-tdep.c: Ditto.
10935 * i386fbsd-nat.c: Ditto.
10936 * infcmd.c: Ditto.
10937 * inferior.c: Ditto.
10938 * jv-lang.c: Ditto.
10939 * linux-nat.c: Ditto.
10940 * linux-tdep.c: Ditto.
10941 * m68kbsd-nat.c: Ditto.
10942 * m68klinux-nat.c: Ditto.
10943 * microblaze-tdep.c: Ditto.
10944 * mips-linux-tdep.c: Ditto.
10945 * mn10300-tdep.c: Ditto.
10946 * nto-tdep.c: Ditto.
10947 * opencl-lang.c: Ditto.
10948 * osdata.c: Ditto.
10949 * printcmd.c: Ditto.
10950 * regcache.c: Ditto.
10951 * remote-m32r-sdi.c: Ditto.
10952 * remote.c: Ditto.
10953 * symfile.c: Ditto.
10954 * symtab.c: Ditto.
10955 * tilegx-linux-nat.c: Ditto.
10956 * tilegx-tdep.c: Ditto.
10957 * tracepoint.c: Ditto.
10958 * valops.c: Ditto.
10959 * vaxbsd-nat.c: Ditto.
10960 * windows-nat.c: Ditto.
10961 * xtensa-tdep.c: Ditto.
10962
bd1f7788
YQ
109632014-01-07 Yao Qi <yao@codesourcery.com>
10964
10965 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10966
79301218
JB
109672014-01-07 Yao Qi <yao@codesourcery.com>
10968 Joel Brobecker <brobecker@adacore.com>
10969
10970 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10971 (pdc_write_regs): Likewise.
10972 (fetch_regs_kernel_thread): Likewise.
10973 (store_regs_kernel_thread): Likewise.
10974
109752014-01-07 Joel Brobecker <brobecker@adacore.com>
10976
10977 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10978 tagged type objects to their actual type.
10979
8e355c5d
JB
109802014-01-07 Joel Brobecker <brobecker@adacore.com>
10981
10982 * ada-valprint.c (print_field_values): Add "language" parameter.
10983 Update calls to print_field_values and print_variant_part.
10984 Pass new parameter "language" in call to val_print instead
10985 of "current_language". Replace call to ada_val_print by call
10986 to val_print.
10987 (print_variant_part): Add "language" parameter.
10988 (ada_val_print_struct_union): Update call to print_field_values.
10989
4fbf5aa5
JB
109902014-01-07 Joel Brobecker <brobecker@adacore.com>
10991
10992 * ada-valprint.c (ui_memcpy): Delete.
10993 (ada_print_floating): Update documentation. Add empty line
10994 between between function documentation and implementation.
10995 Delete variable "buffer". Use ui_file_xstrdup in place of
10996 ui_file_put. Minor adjustments following this change.
10997
71855601
JB
109982014-01-07 Joel Brobecker <brobecker@adacore.com>
10999
11000 * ada-valprint.c (ada_val_print_string): New function,
11001 extracted from ada_val_print_array.
11002 (ada_val_print_array): Replace extracted code by call
11003 to ada_val_print_string followed by a return. Move
11004 "else" branch to the function's top block.
11005
4eb27a30
JB
110062014-01-07 Joel Brobecker <brobecker@adacore.com>
11007
11008 * ada-valprint.c (ada_val_print_array): Move implementation
11009 down. Rename parameter "offset" and "val" into "offset_aligned"
11010 and "original_value" respectively. Add parameter "offset".
11011
34b27950
JB
110122014-01-07 Joel Brobecker <brobecker@adacore.com>
11013
11014 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11015 re-organizing the code. Change the "???" message printed
11016 when target type is a TYPE_CODE_UNDEF into
11017 "<ref to undefined type>".
11018
079e4591
JB
110192014-01-07 Joel Brobecker <brobecker@adacore.com>
11020
11021 * ada-valprint.c (print_record): Delete, implementation inlined...
11022 (ada_val_print_struct_union): ... here. Remove call to
11023 ada_check_typedef in inlined implementation.
11024
8004dfd1
JB
110252014-01-07 Joel Brobecker <brobecker@adacore.com>
11026
11027 * ada-valprint.c (ada_val_print_gnat_array): New function,
11028 extracted from ada_val_print_1;
11029 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11030 (ada_val_print_flt, ada_val_print_struct_union)
11031 (ada_val_print_ref): Likewise.
11032 (ada_val_print_1): Delete variables i and elttype.
11033 Replace extracted-out code by call to corresponding
11034 new functions.
11035
760a2db0
JB
110362014-01-07 Joel Brobecker <brobecker@adacore.com>
11037
11038 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11039
3a92c861
JB
110402014-01-07 Joel Brobecker <brobecker@adacore.com>
11041
11042 * ada-valprint.c (ada_val_print_1): Replace calls to
11043 ada_val_print_1 by calls to val_print.
11044
cd1630f9
JB
110452014-01-07 Joel Brobecker <brobecker@adacore.com>
11046
11047 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11048 Update calls to self accordingly. Replace calls to c_val_print
11049 by calls to val_print.
11050
bdf779a0
JB
110512014-01-07 Joel Brobecker <brobecker@adacore.com>
11052
11053 * ada-valprint.c (print_record): Delete declaration.
11054 (adjust_type_signedness, ada_val_print_1): Likewise.
11055 (ada_val_print): Move function implementation down.
11056 (print_variant_part, print_field_values, print_record):
11057 Move function implementation up.
11058
c0d48811
JB
110592014-01-07 Joel Brobecker <brobecker@adacore.com>
11060
11061 * python/py-type.c (typy_get_name): New function.
11062 (type_object_getset): Add entry for attribute "name".
11063 * NEWS: Add entry mentioning this new attribute.
11064
c26e9cbb
YQ
110652014-01-07 Yao Qi <yao@codesourcery.com>
11066
11067 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11068 statement.
11069
0cc6f43d
YQ
110702014-01-07 Yao Qi <yao@codesourcery.com>
11071
11072 * gnu-nat.c (info_port_rights): Add qualifier const to
11073 argument args.
11074
eec03155
YQ
110752014-01-07 Yao Qi <yao@codesourcery.com>
11076
11077 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11078
f04a82ef
YQ
110792014-01-07 Yao Qi <yao@codesourcery.com>
11080
11081 * gnu-nat.c (make_inf) Update declaration.
11082 (make_inf): Make it static.
11083 (inf_set_traced): Likewise.
11084 (inf_port_to_thread, inf_task_died_status): Likewise.
11085
d57dda0a
YQ
110862014-01-07 Yao Qi <yao@codesourcery.com>
11087
11088 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11089
3aa8c969
YQ
110902014-01-07 Yao Qi <yao@codesourcery.com>
11091
11092 * gnu-nat.c (_initialize_gnu_nat): Declare.
11093
94123b4f
YQ
110942014-01-07 Yao Qi <yao@codesourcery.com>
11095
11096 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11097 'enum bfd_endian'.
11098 (struct gdbarch_info) <byte_order>: Change type to
11099 'enum bfd_endian'.
11100 <byte_order_for_code>: Likewise.
11101 * gdbarch.c, gdbarch.h: Regenerated.
11102
dc81d70a
TT
111032014-01-06 Sasha Smundak <asmundak@google.com>
11104
11105 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11106
cc2f3c35
TT
111072014-01-06 Tom Tromey <tromey@redhat.com>
11108
11109 * doublest.c (convert_doublest_to_floatformat): Use const, not
11110 CONST.
11111 * somread.c (som_symtab_read): Likewise.
11112
adcf2eed
HZ
111132014-01-07 Hui Zhu <hui@codesourcery.com>
11114
11115 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11116 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11117 (gdb_bfd_fopen): Ditto.
11118 (gdb_bfd_openr): Ditto.
11119 (gdb_bfd_openw): Ditto.
11120 (gdb_bfd_openr_iovec): Ditto.
11121 (gdb_bfd_fdopenr): Ditto.
11122 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11123 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11124 with xstrdup.
11125 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11126 with xstrdup.
11127 * symfile-mem.c (symbol_file_add_from_memory): Removed
11128 gdb_bfd_stash_filename.
11129
50722198
DE
111302014-01-03 Doug Evans <dje@google.com>
11131
11132 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11133 output.
11134
2fa4b862
JB
111352014-01-01 Joel Brobecker <brobecker@adacore.com>
11136
11137 Update year range in copyright notice of all files.
11138
28498c42
JB
111392014-01-01 Joel Brobecker <brobecker@adacore.com>
11140
11141 * top.c (print_gdb_version): Set copyright year to 2014.
11142
7b6e1046
JB
111432014-01-01 Joel Brobecker <brobecker@adacore.com>
11144
11145 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11146
df96af55 11147For older changes see ChangeLog-2013.
c906108c
SS
11148\f
11149Local Variables:
11150mode: change-log
11151left-margin: 8
11152fill-column: 74
11153version-control: never
57da7796 11154coding: utf-8
c906108c 11155End:
This page took 2.195477 seconds and 4 git commands to generate.