Move ptid.h to common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4cb9c816
GB
12014-08-07 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include ptid.h.
4 * defs.h: Do not include ptid.h.
5 * inferior.h: Likewise.
6 * infrun.h: Likewise.
7 * nat/linux-btrace.h: Likewise.
8 * nat/linux-osdata.h: Likewise.
9 * target/waitstatus.h: Likewise.
10
3995eeee
GB
112014-08-07 Gary Benson <gbenson@redhat.com>
12
13 * common/common-defs.h: Include gdb_locale.h.
14 * defs.h: Do not include gdb_locale.h.
15
cb9f1a9b
GB
162014-08-07 Gary Benson <gbenson@redhat.com>
17
18 * common/common-defs.h: Include gdb/signals.h.
19 * defs.h: Do not include gdb/signals.h.
20
a5fceff8
GB
212014-08-07 Gary Benson <gbenson@redhat.com>
22
23 * common/common-defs.h: Include pathmax.h.
24 * defs.h: Do not include pathmax.h.
25
b9391142
GB
262014-08-07 Gary Benson <gbenson@redhat.com>
27
28 * common/common-defs.h: Include libiberty.h.
29 * defs.h: Do not include libiberty.h.
30 * common/queue.h: Likewise.
31 * cp-name-parser.y: Likewise.
32 * mi/mi-cmd-catch.c: Likewise.
33 * python/python.c: Likewise.
34
0e443c87
GB
352014-08-07 Gary Benson <gbenson@redhat.com>
36
37 * common/common-defs.h: Include ansidecl.h.
38 * defs.h: Do not include ansidecl.h.
39 * common/buffer.h: Likewise.
40 * common/common-utils.h: Likewise.
41
8ebb3f56
GB
422014-08-07 Gary Benson <gbenson@redhat.com>
43
44 * common/common-defs.h: Include stddef.h.
45 * defs.h: Do not include stddef.h.
46 * common/common-utils.h: Likewise.
47 * amd64fbsd-nat.c: Likewise.
48 * bcache.c: Likewise.
49 * charset.c: Likewise.
50 * common/buffer.h: Likewise.
51 * common/vec.h: Likewise.
52 * i386bsd-nat.c: Likewise.
53 * nat/linux-btrace.h: Likewise.
54 * ppcfbsd-nat.c: Likewise.
55 * ppcnbsd-tdep.h: Likewise.
56 * ppcobsd-nat.c: Likewise.
57 * ppcobsd-tdep.h: Likewise.
58 * python/py-gdb-readline.c: Likewise.
59
8980bdf6
GB
602014-08-07 Gary Benson <gbenson@redhat.com>
61
62 * common/common-defs.h: Include stdarg.h.
63 * defs.h: Do not include stdarg.h.
64 * ada-lang.c: Likewise.
65 * common/common-utils.h: Likewise.
66 * guile/scm-string.c: Likewise.
67 * guile/scm-utils.c: Likewise.
68 * m32c-tdep.c: Likewise.
69
d7096f71
GB
702014-08-07 Gary Benson <gbenson@redhat.com>
71
72 * common/common-defs.h: Include stdlib.h.
73 * defs.h: Do not include stdlib.h.
74 * addrmap.c: Likewise.
75 * bcache.c: Likewise.
76 * common/buffer.c: Likewise.
77 * common/common-utils.c: Likewise.
78 * cp-name-parser.y: Likewise.
79 * go32-nat.c: Likewise.
80 * mn10300-linux-tdep.c: Likewise.
81 * nat/linux-osdata.c: Likewise.
82 * tui/tui.c: Likewise.
83 * windows-nat.c: Likewise.
84
d02f550d
GB
852014-08-07 Gary Benson <gbenson@redhat.com>
86
87 * common/common-defs.h: Include stdio.h.
88 * defs.h: Do not include stdio.h.
89 * ada-lang.c: Likewise.
90 * common/buffer.c: Likewise.
91 * common/common-utils.c: Likewise.
92 * cp-name-parser.y: Likewise.
93 * gnu-nat.c: Likewise.
94 * go32-nat.c: Likewise.
95 * i386gnu-nat.c: Likewise.
96 * proc-api.c: Likewise.
97 * proc-events.c: Likewise.
98 * proc-flags.c: Likewise.
99 * proc-why.c: Likewise.
100 * python/python-internal.h: Likewise.
101 * target-memory.c: Likewise.
102 * tui/tui-io.c: Likewise.
103 * tui/tui.c: Likewise.
104
b6d7a4bf
SM
1052014-08-06 Simon Marchi <simon.marchi@ericsson.com>
106
107 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
108 (scan_dyntag_auxv): Same.
109
af19829b
YQ
1102014-08-06 Yao Qi <yao@codesourcery.com>
111
112 * amd64-linux-nat.c: Remove duplicated include
113 "x86-linux-nat.h".
114 * i386-linux-nat.c: Likewise.
115
8e07a239
YQ
1162014-08-06 Yao Qi <yao@codesourcery.com>
117
118 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
119 operand" with "Special opcode" in comments.
120
7bfe8241
GB
1212014-08-05 Gary Benson <gbenson@redhat.com>
122
123 * interps.c (initialize_interps): Remove prototype.
124 (interpreter_initialized): Remove static global.
125 (interp_add): Do not call initialize_interps.
126 (initialize_interps): Remove function.
127
d6c95504
GB
1282014-08-05 Gary Benson <gbenson@redhat.com>
129
130 * utils.c (vwarning): Remove spurious va_end.
131
241fd515
AM
1322014-08-05 Alan Modra <amodra@gmail.com>
133
134 * charset.c (convert_between_encodings): Cast result of obstack_base.
135 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
136 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
137 (read_unwind_info): Use size_t for some locals.
138 * jit.c (finalize_symtab): Likewise.
139 * utils.c (hashtab_obstack_allocate): Likewise.
140 * symmisc.c (print_objfile_statistics): Update format strings.
141
dc304a94
JK
1422014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
143
144 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
145 (Changes in GDB 7.8): ... here.
146
3cecbbbe
TT
1472014-08-04 Tom Tromey <tromey@redhat.com>
148
149 * target.c (set_targetdebug): New function.
150 (initialize_targets): Pass set_targetdebug when creating "set
151 debug target".
152
6908c509
JB
1532014-08-01 Joel Brobecker <brobecker@adacore.com>
154
155 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
156 if detecting a variable-sized field that is not the last field.
157 Fix struct type length computation.
158
53e8f97d
JB
1592014-08-01 Joel Brobecker <brobecker@adacore.com>
160
161 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
162 Add debug trace.
163
e068c55d
JB
1642014-08-01 Joel Brobecker <brobecker@adacore.com>
165
166 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
167 Remove "+ 8" offset in computation of CHAIN_VMA.
168
4d4ca2a1
DE
1692014-07-31 Doug Evans <dje@google.com>
170
171 * inflow.c (child_terminal_inferior): Add comment.
172 (child_terminal_ours_for_output): Add comment.
173 (child_terminal_ours): Add comment.
174 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
175 (linux_nat_terminal_ours): Add comment.
176
462f517e
GB
1772014-07-31 Gary Benson <gbenson@redhat.com>
178
179 * common/btrace-common.h: Do not include defs.h or server.h.
180 * nat/mips-linux-watch.h: Likewise.
181 * gdb-dlfcn.h: Do not include defs.h.
182 * tracefile.h: Likewise.
183
74228e77
RM
1842014-07-30 Roland McGrath <mcgrathr@google.com>
185
186 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
187
014f9477
TT
1882014-07-30 Tom Tromey <tromey@redhat.com>
189
190 * bsd-kvm.c (bsd_kvm_open): Constify.
191 * corelow.c (core_open): Constify.
192 * ctf.c (ctf_open): Constify.
193 * dbug-rom.c (dbug_open): Constify.
194 * exec.c (exec_open): Constify.
195 * m32r-rom.c (m32r_open, mon2000_open): Constify.
196 * microblaze-rom.c (picobug_open): Constify.
197 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
198 Constify.
199 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
200 * record-btrace.c (record_btrace_open): Constify.
201 * record-full.c (record_full_core_open_1, record_full_open_1)
202 (record_full_open): Constify.
203 * remote-m32r-sdi.c (m32r_open): Constify.
204 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
205 (rockhopper_open, lsi_open): Constify.
206 * remote-sim.c (gdbsim_open): Constify.
207 * remote.c (remote_open, extended_remote_open, remote_open_1):
208 Constify.
209 * target.h (struct target_ops) <to_open>: Make "arg" const.
210 * tracefile-tfile.c (tfile_open): Constify.
211
e799154c
TT
2122014-07-30 Tom Tromey <tromey@redhat.com>
213
214 * breakpoint.c (map_breakpoint_numbers): Update.
215 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
216 (get_number_const): New function.
217 (get_number): Rewrite using get_number_const.
218 (init_number_or_range): Make "string" const.
219 (number_is_in_list): Make "list" const.
220 * cli/cli-utils.h (get_number_const): Declare.
221 (struct get_number_or_range_state) <string, end_ptr>: Now const.
222 (init_number_or_range, number_is_in_list): Update.
223 * printcmd.c (map_display_numbers): Update.
224 * value.c (value_from_history_ref): Constify.
225 * value.h (value_from_history_ref): Update.
226
5f08566b
TT
2272014-07-30 Tom Tromey <tromey@redhat.com>
228
229 * corefile.c (hook_type, call_extra_exec_file_hooks)
230 (specify_exec_file_hook): Constify.
231 * exec.c (exec_file_attach): Make "filename" const.
232 * gdbcore.h (deprecated_exec_file_display_hook)
233 (specify_exec_file_hook, exec_file_attach): Constify.
234 * main.c (captured_main): Use catch_command_errors_const.
235
8981c758
TT
2362014-07-30 Tom Tromey <tromey@redhat.com>
237
238 * target.c (open_target): New function.
239 (add_target_with_completer, add_deprecated_target_alias): Use
240 set_cmd_sfunc, set_cmd_context.
241 (debug_to_open): Remove.
242 (setup_target_debug): Update.
243
a1c7835a
YQ
2442014-07-30 Yao Qi <yao@codesourcery.com>
245
246 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
247 comments.
248 * parse.c (exp_iterate): Update comments.
249
976411d6
GB
2502014-07-30 Gary Benson <gbenson@redhat.com>
251
252 * common/common-defs.h: New file.
253 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
254 * defs.h: Include common-defs.h.
255 Do not include config.h or build-gnulib/config.h.
256
5d4848a4
GB
2572014-07-30 Gary Benson <gbenson@redhat.com>
258
259 * common/common-utils.h: Do not include config.h.
260 * nat/linux-btrace.h: Likewise.
261
d41f6d8e
GB
2622014-07-30 Gary Benson <gbenson@redhat.com>
263
264 * btrace.c: Include defs.h.
265 * common/ptid.c: Include defs.h or server.h as appropriate.
266 * nat/mips-linux-watch.c: Likewise.
267
84202f9c
TT
2682014-07-29 Tom Tromey <tromey@redhat.com>
269
270 * target.c (target_is_pushed): Simplify.
271
2530441c
JB
2722014-07-29 Joel Brobecker <brobecker@adacore.com>
273
274 GDB 7.8 released.
275
7e09a223
YQ
2762014-07-29 Yao Qi <yao@codesourcery.com>
277
278 PR gdb/17206
279 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
280
7ebdbe92
DE
2812014-07-28 Doug Evans <xdje42@gmail.com>
282
283 PR guile/17203
284 * guile/scm-param.c (pascm_parameter_defined_p): New function.
285 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
286 parameters.
287
f347ffc9
WN
2882014-07-28 Will Newton <will.newton@linaro.org>
289
290 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
291 (THUMB2_SET_R7_SIGRETURN2): Likewise.
292 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
293 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
294 (THUMB2_EABI_SYSCALL): Likewise.
295 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
296 struct tramp_frame.
297 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
298 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
299
37c5f1f7
DE
3002014-07-27 Doug Evans <xdje42@gmail.com>
301
302 * guile/scm-param.c (pascm_print_param_smob): Fix output.
303
0c3abbc7
DE
3042014-07-27 Doug Evans <xdje42@gmail.com>
305
306 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
307
e76c5d17
DE
3082014-07-26 Ludovic Courtès <ludo@gnu.org>
309 Doug Evans <xdje42@gmail.com>
310
311 PR guile/17146
312 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
313 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
314 * configure.ac: Try to use guild to compile an scm file, if it fails
315 then disable guile support.
316 * configure: Regenerate.
317 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
318 GUILE_FILE_LIST.
319 (GUILE_COMPILED_FILES): New variable.
320 (GUILE_FILES) Update.
321 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
322 (stamp-guile): Compile scm files.
323 * guile/guile.c (boot_guile_support): New function.
324 (standard_throw_args_p): New function.
325 (print_standard_throw_error, print_throw_error): New functions.
326 (handle_boot_error): New function.
327 (initialize_scheme_side): Rewrite to call boot_guile_support.
328 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
329 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
330
186fcde0
DE
3312014-07-26 Ludovic Courtès <ludo@gnu.org>
332 Doug Evans <xdje42@gmail.com>
333
334 PR guile/17146
335 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
336 * guile/lib/gdb/support.scm: New file.
337 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
338 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
339 All uses updated.
340 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
341 All uses updated.
342 (%assert-type): Ditto, and renamed to assert-type.
343 (%exception-print-style): Delete.
344
4df42755
DE
3452014-07-26 Doug Evans <xdje42@gmail.com>
346
347 PR build/17105
348 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
349 * configure: Regenerate.
350 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
351 PYTHON_FILES.
352 (PYTHON_FILES): New variable.
353 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
354 (GUILE_FILES): New variable.
355 (stamp-python, install-python, uninstall-python): Handle empty
356 file list.
357 (stamp-guile, install-guile, uninstall-guile): Ditto.
358
ee7333ae
DE
3592014-07-26 Doug Evans <xdje42@gmail.com>
360
361 PR guile/17177
362 * guile/lib/gdb.scm (pretty-printers): Export.
363 (set-pretty-printers!): Export.
364 * guile/lib/gdb/printing.scm (gdb module): Update.
365 (prepend-pretty-printer!, append-pretty-printer!): Update.
366 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
367 (pretty_printer_list_var): Delete.
368 (pretty_printer_list): New static global.
369 (gdbscm_pretty_printers): New function.
370 (gdbscm_set_pretty_printers_x): New function.
371 (ppscm_find_pretty_printer_from_gdb): Update.
372 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
373 (gdbscm_initialize_pretty_printers): Update.
374
74edf516
DE
3752014-07-26 Doug Evans <xdje42@gmail.com>
376
377 PR 17185
378 * configure.ac: Add check for header gc/gc.h.
379 Add check for function setenv.
380 * configure: Regenerate.
381 * config.in: Regenerate.
382 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
383
d54398a7
MR
3842014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
385
386 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
387 variation in gdbarch matching.
388
ab16fce8
TT
3892014-07-25 Tom Tromey <tromey@redhat.com>
390
391 * exec.c (using_exec_ops): Remove.
392 (exec_close_1): Update. Remove extraneous block, reindent.
393 (add_target_sections): Use target_is_pushed.
394
88056fbb
PA
3952014-07-25 Pedro Alves <palves@redhat.com>
396
397 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
398 * monitor.c (monitor_create_inferior): Likewise.
399 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
400 * remote-sim.c (gdbsim_create_inferior): Likewise.
401 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
402 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
403 * windows-nat.c (do_initial_windows_stuff): Likewise.
404
70509625
PA
4052014-07-25 Pedro Alves <palves@redhat.com>
406
407 * NEWS: Mention signal passing and "signal" command changes.
408 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
409 comment.
410 * breakpoint.c (until_break_command): Adjust clear_proceed_status
411 call.
412 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
413 * infcmd.c (proceed_thread_callback, continue_1, step_once)
414 (jump_command): Adjust clear_proceed_status call.
415 (signal_command): Warn if other thread that are resumed have
416 signals that will be delivered. Adjust clear_proceed_status call.
417 (until_next_command, finish_command)
418 (proceed_after_attach_callback, attach_command_post_wait)
419 (attach_command): Adjust clear_proceed_status call.
420 * infrun.c (proceed_after_vfork_done): Likewise.
421 (proceed_after_attach_callback): Adjust comment.
422 (clear_proceed_status_thread): Clear stop_signal if not in pass
423 state.
424 (clear_proceed_status_callback): Delete.
425 (clear_proceed_status): New 'step' parameter. Only clear the
426 proceed status of threads the command being prepared is about to
427 resume.
428 (proceed): If passed in an explicit signal, override stop_signal
429 with it. Don't pass the last stop signal to the thread we're
430 resuming.
431 (init_wait_for_inferior): Adjust clear_proceed_status call.
432 (switch_back_to_stepped_thread): Clear the signal if it should not
433 be passed.
434 * infrun.h (clear_proceed_status): New 'step' parameter.
435 (user_visible_resume_ptid): Add comment.
436 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
437 signal is in pass state.
438 * remote.c (append_pending_thread_resumptions): Likewise.
439 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
440
d8be2939
TT
4412014-07-25 Tom Tromey <tromey@redhat.com>
442
443 * target.h (target_stopped_data_address)
444 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
445 parentheses.
446
7d0d9d2b
PL
4472014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
448
449 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
450 comments.
451 (avr_pointer_to_address): Likewise.
452
e9e7f724
TT
4532014-07-24 Tom Tromey <tromey@redhat.com>
454
455 * monitor.c (compile_pattern): Update.
456 * target.h (struct target_ops) <to_shortname, to_longname,
457 to_doc>: Now const.
458
1947513d
TT
4592014-07-24 Tom Tromey <tromey@redhat.com>
460
461 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
462 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
463 (add_info_alias, add_com): Make "doc" const.
464 (print_doc_line): Make "str" const.
465 (delete_cmd): Update.
466 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
467 (print_doc_line): Update.
468 * cli/cli-script.c (document_command): Update.
469 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
470 (add_com, add_info, add_info_alias): Update.
471 * guile/scm-cmd.c (cmdscm_destroyer): Update.
472 * python/py-cmd.c (cmdpy_destroyer): Update.
473
64e61d29
TT
4742014-07-24 Tom Tromey <tromey@redhat.com>
475
476 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
477 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
478 (help_cmd_list): Constify.
479 (lookup_cmd): Update.
480 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
481 const.
482 (help_cmd_list, apropos_cmd): Update.
483 * cli/cli-script.c (show_user): Update.
484 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
485 * cli/cli-setshow.h (cmd_show_list): Update.
486 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
487 (cmd_show_list): Update.
488 * guile/scm-cmd.c (cmdscm_destroyer): Update.
489 * python/py-cmd.c (cmdpy_destroyer): Update.
490
429e55ea
TT
4912014-07-24 Tom Tromey <tromey@redhat.com>
492
493 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
494 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
495 const.
496 * command.h (deprecate_cmd): Update.
497 * maint.c (maintenance_do_deprecate): Add casts.
498
64669f3b
TT
4992014-07-24 Tom Tromey <tromey@redhat.com>
500
501 * cli/cli-decode.c (help_cmd): Make parameter "const".
502 * cli/cli-decode.h (help_cmd): Update.
503
d3d3328b
TT
5042014-07-24 Tom Tromey <tromey@redhat.com>
505
506 * stack.c (up_silently_base, down_silently_base): Make argument
507 const.
508
414842dc
TT
5092014-07-24 Tom Tromey <tromey@redhat.com>
510
511 * solib.c (solib_add): Make "pattern" const.
512 * solib.h (solib_add): Update.
513
baa336ce
TT
5142014-07-24 Tom Tromey <tromey@redhat.com>
515
516 * remote.c (remote_serial_open, print_packet, putpkt)
517 (putpkt_binary): Constify.
518 * remote.h (putpkt): Update.
519
5a19e2d0
TT
5202014-07-24 Tom Tromey <tromey@redhat.com>
521
522 * monitor.c (monitor_open): Make "args" const.
523 * monitor.h (monitor_open): Update.
524
fc4baa5e
TT
5252014-07-24 Tom Tromey <tromey@redhat.com>
526
527 * maint.c (match_bfd_flags): Make "string" const.
528 (print_bfd_section_info): Remove casts.
529 (print_objfile_section_info): Make "string" const.
530
0d5f0dbe
TT
5312014-07-24 Tom Tromey <tromey@redhat.com>
532
533 * inf-child.c (inf_child_open_target): Make "arg" const.
534 * inf-child.h (inf_child_open_target): Update.
535
41c77899
TT
5362014-07-24 Tom Tromey <tromey@redhat.com>
537
538 * environ.c (unset_in_environ): Make "var" const.
539 * environ.h (unset_in_environ): Update.
540
93db0d79
TT
5412014-07-24 Tom Tromey <tromey@redhat.com>
542
543 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
544 Make "cmd" const.
545 (scan_filename_with_cleanup): Likewise.
546 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
547 Make arguments const.
548 (restore_command): Update.
549
36d6eb95
PA
5502014-07-24 Pedro Alves <palves@redhat.com>
551
552 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
553
8009206a
TT
5542014-07-24 Tom Tromey <tromey@redhat.com>
555 Gary Benson <gbenson@redhat.com>
556
557 * nat/linux-ptrace.c (additional_flags): New global.
558 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
559 additional_flags; don't check GDBSERVER.
560 (linux_ptrace_set_additional_flags): New function.
561 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
562 Declare.
563 * linux-nat.c (_initialize_linux_nat): Call
564 linux_ptrace_set_additional_flags.
565
a7068b60
TT
5662014-07-24 Tom Tromey <tromey@redhat.com>
567
568 * make-target-delegates (munge_type, write_debugmethod): New
569 functions.
570 (debug_names): New global.
571 ($TARGET_DEBUG_PRINTER): New global.
572 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
573 name.
574 Write debug methods. Generate init_debug_target.
575 * target-debug.h: New file.
576 * target-delegates.c: Rebuild.
577 * target.c: Include target-debug.h.
578 (debug_target): Hoist definition.
579 (target_kill, target_get_section_table, target_memory_map)
580 (target_flash_erase, target_flash_done, target_detach)
581 (target_disconnect, target_wait, target_resume)
582 (target_pass_signals, target_program_signals, target_follow_fork)
583 (target_mourn_inferior, target_search_memory)
584 (target_thread_address_space, target_close)
585 (target_find_new_threads, target_core_of_thread)
586 (target_verify_memory, target_insert_mask_watchpoint)
587 (target_remove_mask_watchpoint): Remove targetdebug code.
588 (debug_to_post_attach, debug_to_prepare_to_store)
589 (debug_to_files_info, debug_to_insert_breakpoint)
590 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
591 (debug_to_region_ok_for_hw_watchpoint)
592 (debug_to_can_accel_watchpoint_condition)
593 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
594 (debug_to_watchpoint_addr_within_range)
595 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
596 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
597 (debug_to_terminal_init, debug_to_terminal_inferior)
598 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
599 (debug_to_terminal_save_ours, debug_to_terminal_info)
600 (debug_to_load, debug_to_post_startup_inferior)
601 (debug_to_insert_fork_catchpoint)
602 (debug_to_remove_fork_catchpoint)
603 (debug_to_insert_vfork_catchpoint)
604 (debug_to_remove_vfork_catchpoint)
605 (debug_to_insert_exec_catchpoint)
606 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
607 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
608 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
609 (setup_target_debug): Call init_debug_target.
610 * target.h (TARGET_DEBUG_PRINTER): New macro.
611 (struct target_ops) <to_resume, to_wait, to_pass_signals,
612 to_program_signals>: Use TARGET_DEBUG_PRINTER.
613
2c51604d
GB
6142014-07-24 Gary Benson <gbenson@redhat.com>
615
616 * exceptions.h (throw_vfatal): Renamed to...
617 (throw_vquit): New declaration.
618 (throw_quit): Likewise.
619 * exceptions.c (throw_vfatal): Renamed to...
620 (throw_vquit): New function.
621 (throw_quit): Likewise.
622 (throw_error): Call throw_verror rather than throw_it.
623 * utils.h (vfatal): Removed.
624 (fatal): Likewise.
625 * utils.c (vfatal): Removed.
626 (fatal): Likewise.
627 (internal_verror): Replaced call to fatal with call to throw_quit.
628 (quit): Replaced calls to fatal with calls to throw_quit.
629
34211963
ME
6302014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
631
632 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
633 target_read_code.
634
a52b4d3e
ME
6352014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
636
637 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
638 less than zero in conditional expression.
639
a8bdc56b
TT
6402014-07-23 Tom Tromey <tromey@redhat.com>
641
642 * make-target-delegates ($ARGS_PART): Match trailing close paren.
643 ($INTRO_PART): Don't match whitespace.
644 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
645 argument matching.
646 ($METHOD): Add $METHOD_TRAILER.
647 (trim): Rewrite.
648 (scan_target_h): New sub.
649 Change main loop not to collect state.
650 * target-delegates.c: Rebuild.
651
91b52240
GB
6522014-07-23 Gary Benson <gbenson@redhat.com>
653
654 * cp-support.c (gdb_demangle): Fix build on systems without
655 sigaltstack.
656
45326f6f
JK
6572014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
658
659 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
660 for reference entry value target data value.
661
e214cf6c
JK
6622014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
663
664 * stack.c (read_frame_arg): Verify value_optimized_out before calling
665 value_available_contents_eq.
666
bddbbedd
PA
6672014-07-22 Pedro Alves <palves@redhat.com>
668
669 * value.c (allocate_optimized_out_value): Don't mark value as
670 non-lazy.
671
45c71484
JW
6722014-07-22 Jiong Wang <jiong.wang@arm.com>
673
674 * MAINTAINERS (Write After Approval): Update my email address.
675
9597b22a
DE
6762014-07-20 Doug Evans <dje@google.com>
677
678 PR server/17147
679 * remote.c (putpkt_binary): Add text to error message.
680
91101fe5
YQ
6812014-07-20 Yao Qi <yao@codesourcery.com>
682
683 * eval.c: Remove "Chill" from comments.
684 * gdbtypes.h: Likewise.
685 * symtab.h: Likewise.
686
c9402c95
YQ
6872014-07-20 Yao Qi <yao@codesourcery.com>
688
689 * std-operator.def: Update comments to TERNOP_SLICE.
690
ae8fddda
YQ
6912014-07-20 Yao Qi <yao@codesourcery.com>
692
693 * std-operator.def: Remove BINOP_RANGE.
694 * breakpoint.c (watchpoint_exp_is_const): Update.
695 * expprint.c (dump_subexp_body_standard): Likewise.
696 * eval.c (init_array_element): Remove dead code.
697 (evaluate_subexp_standard): Likewise.
698
9c816640
YQ
6992014-07-20 Yao Qi <yao@codesourcery.com>
700
701 * std-operator.def: Remove BINOP_IN.
702 * breakpoint.c (watchpoint_exp_is_const): Update.
703 * eval.c (evaluate_subexp_standard): Likewise.
704 * expprint.c (dump_subexp_body_standard): Likewise.
705
164224e9
ME
7062014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
707
708 * microblaze-tdep.c (microblaze_register_names): Add
709 the rshr and rslr register names.
710 (microblaze_gdbarch_init): Use of tdesc_has_registers.
711 Use of tdesc_find_feature. Use of tdesc_data_alloc.
712 Use of tdesc_numbered_register. Use of
713 microblaze_register_g_packet_guesses. Use of
714 tdesc_use_registers. Use of set_gdbarch_register_type.
715 (microblaze_register_g_packet_guesses): New.
716 * microblaze-tdep.h (microblaze_reg_num): Add
717 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
718 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
719 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
720 * features/microblaze-core.xml: New file.
721 * features/microblaze-stack-protect.xml: New file.
722 * features/microblaze-with-stack-protect.c: New file.
723 * features/microblaze-with-stack-protect.xml: New file.
724 * features/microblaze.xml: New file.
725 * features/microblaze.c: New file.
726 * features/Makefile (microblaze-with-stack-protect): Add
727 microblaze-with-stack-protect microblaze and microblaze-expedite.
728 * regformats/microblaze-with-stack-protect.dat: New file.
729 * regformats/microblaze.dat: New file.
730 * doc/gdb.texinfo (MicroBlaze Features): Added.
731
e8b2341c
TT
7322014-07-18 Tom Tromey <tromey@redhat.com>
733
734 * exec.c (exec_ops): Now static.
735 * exec.h (exec_ops): Don't declare.
736
44e89118
TT
7372014-07-18 Tom Tromey <tromey@redhat.com>
738
739 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
740 to find_target_beneath.
741 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
742 find_target_beneath.
743 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
744
b0ed115f
TT
7452014-07-18 Tom Tromey <tromey@redhat.com>
746
747 PR gdb/17130:
748 * utils.c (quit): Use target_supports_terminal_ours.
749 * target.h (target_supports_terminal_ours): Declare.
750 * target.c (target_supports_delete_record): Don't check
751 to_delete_record against NULL.
752 (target_supports_terminal_ours): New function.
753
e75fdfca
TT
7542014-07-18 Tom Tromey <tromey@redhat.com>
755
756 PR gdb/17130:
757 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
758 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
759 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
760 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
761 * windows-nat.c (windows_xfer_partial): Always delegate.
762 * record-btrace.c (record_btrace_xfer_partial): Simplify
763 delegation.
764 (record_btrace_fetch_registers, record_btrace_store_registers)
765 (record_btrace_prepare_to_store, record_btrace_resume)
766 (record_btrace_wait, record_btrace_find_new_threads)
767 (record_btrace_thread_alive): Likewise.
768 * procfs.c (procfs_xfer_partial): Always delegate.
769 * corelow.c (core_xfer_partial): Always delegate.
770 * sol-thread.c (sol_find_new_threads): Simplify delegation.
771
83814951
TT
7722014-07-18 Tom Tromey <tromey@redhat.com>
773
774 * exec.c (exec_make_note_section): Move earlier.
775
b8b8facf
DE
7762014-07-17 Doug Evans <dje@google.com>
777
74b49205 778 PR gdb/17170
b8b8facf
DE
779 * maint.c (count_symtabs_and_blocks): Handle NULL
780 current_program_space.
781 (report_command_stats): Check global enabled flag in addition to
782 recorded enabled flag.
783 (make_command_stats_cleanup): Handle msg_type == 0, startup.
784
69ff6be5
PA
7852014-07-16 Pedro Alves <palves@redhat.com>
786
787 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
788
252db1b5
TT
7892014-07-16 Tom Tromey <tromey@redhat.com>
790
791 * target.h (struct target_ops) <to_delete_record>: Reformat
792 comment.
793
a432721e
TT
7942014-07-16 Tom Tromey <tromey@redhat.com>
795
796 * target-delegates.c: Rebuild.
797
487d9753
PL
7982014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
799
800 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
801 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
802 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
803 (avr_pointer_to_address): Likewise.
804 (avr_address_class_type_flags): New function.
805 (avr_address_class_type_flags_to_name): Likewise.
806 (avr_address_class_name_to_type_flags): Likewise.
807 (avr_gdbarch_init): Set address_class_type_flags,
808 address_class_type_flags_to_name and
809 address_class_name_to_type_flags.
810
57745c90
PA
8112014-07-15 Pedro Alves <palves@redhat.com>
812
813 * linux-nat.c (kill_callback): Save errno and work with saved
814 copy.
815
2d40be18
SM
8162014-07-15 Simon Marchi <simon.marchi@ericsson.com>
817
818 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
819
572f6555
EBM
8202014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
821
822 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
823 breakpoint support correctly.
824
cc1c52ad
PA
8252014-07-14 Pedro Alves <palves@redhat.com>
826
827 * utils.c (prompt_for_continue): Call target_terminal_ours.
828
1e973570
PA
8292014-07-14 Pedro Alves <palves@redhat.com>
830
831 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
832 catch_errors. Don't re-enable stdin or notify observers where,
833 and rethrow error.
834 (fetch_inferior_event_wrapper): Delete.
835
93d6eb10
PA
8362014-07-14 Pedro Alves <palves@redhat.com>
837
838 PR gdb/17072
839 * top.c: Include "inf-loop.h".
840 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
841 field.
842 (gdb_readline_wrapper_cleanup): Make the target async again, if it
843 was async before.
844 (gdb_readline_wrapper): Store whether the target is async, and
845 make it sync.
846
0017922d
PA
8472014-07-14 Pedro Alves <palves@redhat.com>
848
849 PR gdb/17072
850 * top.c (gdb_readline_wrapper_line): Tweak comment.
851 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
852 the input handler callback.
853
94696ad3
PA
8542014-07-14 Pedro Alves <palves@redhat.com>
855
856 PR gdb/17072
857 * main.c: Include event-top.h.
858 (handle_command_errors): New function.
859 (catch_command_errors, catch_command_errors_const): Use it.
860
9d1e69a2
PA
8612014-07-14 Pedro Alves <palves@redhat.com>
862
863 * exceptions.c (catch_command_errors, catch_command_errors_const):
864 Moved to main.c.
865 * exceptions.h (catch_command_errors_ftype)
866 (catch_command_errors_const_ftype): Moved to main.c.
867 (catch_command_errors, catch_command_errors_const): Delete
868 declarations.
869 * main.c (catch_command_errors_ftype)
870 (catch_command_errors_const_ftype): Moved here from exceptions.h.
871 (catch_command_errors, catch_command_errors_const)): Moved here
872 from exceptions.c and make static.
873
feefc97b
PA
8742014-07-14 Pedro Alves <palves@redhat.com>
875
876 * exceptions.c (print_any_exception): Delete.
877 (catch_exceptions_with_msg): Use exception_print instead of
878 print_any_exception.
879 (catch_errors): Use exception_fprintf instead of
880 print_any_exception.
881 (catch_command_errors, catch_command_errors_const): Use
882 exception_print instead of print_any_exception.
883
c933f875
PA
8842014-07-14 Pedro Alves <palves@redhat.com>
885
886 * infcall.c (run_inferior_call): Set 'sync_execution' while
887 running the inferior call.
888
feb6f816
PA
8892014-07-14 Pedro Alves <palves@redhat.com>
890
891 * value.c (value_contents_equal): Delete function.
892 * value.h (value_contents_equal): Delete declaration.
893
d98b7a16
TT
8942014-07-14 Tom Tromey <tromey@redhat.com>
895
896 PR exp/17106:
897 * gdbtypes.c (is_dynamic_type_internal): New function, from
898 is_dynamic_type.
899 (is_dynamic_type): Rewrite.
900 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
901 (resolve_dynamic_struct): Likewise.
902 (resolve_dynamic_type_internal): New function, from
903 resolve_dynamic_type.
904 (resolve_dynamic_type): Rewrite.
905
548740d6
TT
9062014-07-14 Tom Tromey <tromey@redhat.com>
907
908 * target.c (target_require_runnable): Also check record_stratum.
909 Update comment.
910
808f7ab1
YQ
9112014-07-11 Yao Qi <yao@codesourcery.com>
912
913 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
914 thumb_instruction_restores_sp return true.
915
540314bd
YQ
9162014-07-11 Yao Qi <yao@codesourcery.com>
917
918 * arm-tdep.c (thumb_instruction_restores_sp): New function.
919 (thumb_in_function_epilogue_p): Call
920 thumb_instruction_restores_sp.
921
1db01f22
YQ
9222014-07-11 Yao Qi <yao@codesourcery.com>
923
924 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
925 'add sp, #imm'.
926 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
927
3116063b
GB
9282014-07-11 Gary Benson <gbenson@redhat.com>
929
930 * amd64-linux-nat.c (gdbcore.h): Remove include.
931 (regset.h): Likewise.
932 (nat/linux-btrace.h): Likewise.
933 (btrace.h): Likewise.
934 (gdb_assert.h): Likewise.
935 (string.h): Likewise.
936 (sys/uio.h): Likewise.
937 (sys/debugreg.h): Likewise.
938 (sys/syscall.h): Likewise.
939 (sys/procfs.h): Likewise.
940 (sys/user.h): Likewise.
941 (asm/ptrace.h): Likewise.
942 (i386-nat.h): Likewise.
943 * i386-linux-nat.c (i386-nat.h): Likewise.
944 (regset.h): Likewise.
945 (target.h): Likewise.
946 (linux-nat.h): Likewise.
947 (nat/linux-btrace.h): Likewise.
948 (btrace.h): Likewise.
949 (gdb_assert.h): Likewise.
950 (string.h): Likewise.
951 (sys/uio.h): Likewise.
952 (sys/user.h): Likewise.
953 (sys/procfs.h): Likewise.
954 (sys/reg.h): Likewise.
955 (sys/debugreg.h): Likewise.
956 (ORIG_EAX): Remove definition.
957
040baaf6
GB
9582014-07-11 Gary Benson <gbenson@redhat.com>
959
960 * i386-linux-nat.h: New file.
961 * x86-linux-nat.h: Likewise.
962 * x86-linux-nat.c: Likewise.
963 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
964 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
965 * config/i386/linux64.mh (NATDEPFILES): Likewise.
966 * amd64-linux-nat.c (x86-linux-nat.h): New include.
967 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
968 (PTRACE_SETREGSET): Likewise.
969 (arch_lwp_info): Now in x86-linux-nat.c.
970 (have_ptrace_getregset): Now in x86-linux-nat.h.
971 (x86_linux_dr_get): Now in x86-linux-nat.c.
972 (x86_linux_dr_set): Likewise.
973 (x86_linux_dr_get_addr): Likewise.
974 (x86_linux_dr_get_control): Likewise.
975 (x86_linux_dr_get_status): Likewise.
976 (update_debug_registers_callback): Likewise.
977 (x86_linux_dr_set_control): Likewise.
978 (x86_linux_dr_set_addr): Likewise.
979 (x86_linux_prepare_to_resume): Likewise.
980 (x86_linux_new_thread): Likewise.
981 (x86_linux_new_fork): Likewise.
982 (x86_linux_get_thread_area): Likewise.
983 (super_post_startup_inferior): Likewise.
984 (x86_linux_child_post_startup_inferior): Likewise.
985 (AMD64_LINUX_USER64_CS): Likewise.
986 (AMD64_LINUX_X32_DS): Likewise.
987 (x86_linux_read_description): Likewise.
988 (x86_linux_enable_btrace): Likewise.
989 (x86_linux_disable_btrace): Likewise.
990 (x86_linux_teardown_btrace): Likewise.
991 (x86_linux_read_btrace): Likewise.
992 (x86_linux_create_target): Likewise.
993 (x86_linux_add_target): Likewise.
994 * i386-linux-nat.c (x86-linux-nat.h): New include.
995 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
996 (PTRACE_SETREGSET): Likewise.
997 (arch_lwp_info): Now in x86-linux-nat.c.
998 (have_ptrace_getregset): Now in x86-linux-nat.h.
999 (x86_linux_dr_get): Now in x86-linux-nat.c.
1000 (x86_linux_dr_set): Likewise.
1001 (x86_linux_dr_get_addr): Likewise.
1002 (x86_linux_dr_get_control): Likewise.
1003 (x86_linux_dr_get_status): Likewise.
1004 (update_debug_registers_callback): Likewise.
1005 (x86_linux_dr_set_control): Likewise.
1006 (x86_linux_dr_set_addr): Likewise.
1007 (x86_linux_prepare_to_resume): Likewise.
1008 (x86_linux_new_thread): Likewise.
1009 (x86_linux_new_fork): Likewise.
1010 (x86_linux_get_thread_area): Likewise.
1011 (super_post_startup_inferior): Likewise.
1012 (x86_linux_child_post_startup_inferior): Likewise.
1013 (AMD64_LINUX_USER64_CS): Likewise.
1014 (AMD64_LINUX_X32_DS): Likewise.
1015 (x86_linux_read_description): Likewise.
1016 (x86_linux_enable_btrace): Likewise.
1017 (x86_linux_disable_btrace): Likewise.
1018 (x86_linux_teardown_btrace): Likewise.
1019 (x86_linux_read_btrace): Likewise.
1020 (x86_linux_create_target): Likewise.
1021 (x86_linux_add_target): Likewise.
1022
1aa7e42c
GB
10232014-07-11 Gary Benson <gbenson@redhat.com>
1024
1025 * amd64-linux-nat.c: Comment and whitespace changes.
1026 * i386-linux-nat.c: Comment and whitespace changes.
1027
c1e246a0
GB
10282014-07-11 Gary Benson <gbenson@redhat.com>
1029
1030 * amd64-linux-nat.c (x86_linux_create_target): New function.
1031 (x86_linux_add_target): Likewise.
1032 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1033 * i386-linux-nat.c (x86_linux_create_target): New function.
1034 (x86_linux_add_target): Likewise.
1035 (_initialize_i386_linux_nat): Delegate to the above new functions.
1036
8c420b8d
GB
10372014-07-11 Gary Benson <gbenson@redhat.com>
1038
1039 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1040 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1041 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1042 (ps_get_thread_area): Delegate to the above.
1043
cb1da100
GB
10442014-07-11 Gary Benson <gbenson@redhat.com>
1045
1046 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1047 x86_linux_read_description. All uses updated. amd64-specific
1048 code conditionalized. Conditionalized i386-specific code added.
1049 Redundant cast removed.
1050 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1051 x86_linux_read_description. All uses updated. i386-specific
1052 code conditionalized. Conditionalized amd64-specific code added.
1053 One sizeof replaced with the actual type it is describing.
1054
2acf3cd0
GB
10552014-07-11 Gary Benson <gbenson@redhat.com>
1056
1057 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1058 x86_linux_dr_get. All uses updated.
1059 (amd64_linux_dr_set): Renamed to
1060 x86_linux_dr_set. All uses updated.
1061 (amd64_linux_dr_get_addr): Renamed to
1062 x86_linux_dr_get_addr. All uses updated.
1063 (amd64_linux_dr_get_control): Renamed to
1064 x86_linux_dr_get_control. All uses updated.
1065 (amd64_linux_dr_get_status): Renamed to
1066 x86_linux_dr_get_status. All uses updated.
1067 (amd64_linux_dr_set_control): Renamed to
1068 x86_linux_dr_set_control. All uses updated.
1069 (amd64_linux_dr_set_addr): Renamed to
1070 x86_linux_dr_set_addr. All uses updated.
1071 (amd64_linux_prepare_to_resume): Renamed to
1072 x86_linux_prepare_to_resume. All uses updated.
1073 (amd64_linux_new_thread): Renamed to
1074 x86_linux_new_thread. All uses updated.
1075 (amd64_linux_new_fork): Renamed to
1076 x86_linux_new_fork. All uses updated.
1077 (amd64_linux_child_post_startup_inferior): Renamed to
1078 x86_linux_child_post_startup_inferior. All uses updated.
1079 (amd64_linux_enable_btrace): Renamed to
1080 x86_linux_enable_btrace. All uses updated.
1081 (amd64_linux_disable_btrace): Renamed to
1082 x86_linux_disable_btrace. All uses updated.
1083 (amd64_linux_teardown_btrace): Renamed to
1084 x86_linux_teardown_btrace. All uses updated.
1085 (amd64_linux_read_btrace): Renamed to
1086 x86_linux_read_btrace. All uses updated.
1087 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1088 x86_linux_dr_get. All uses updated.
1089 (i386_linux_dr_set): Renamed to
1090 x86_linux_dr_set. All uses updated.
1091 (i386_linux_dr_get_addr): Renamed to
1092 x86_linux_dr_get_addr. All uses updated.
1093 (i386_linux_dr_get_control): Renamed to
1094 x86_linux_dr_get_control. All uses updated.
1095 (i386_linux_dr_get_status): Renamed to
1096 x86_linux_dr_get_status. All uses updated.
1097 (i386_linux_dr_set_control): Renamed to
1098 x86_linux_dr_set_control. All uses updated.
1099 (i386_linux_dr_set_addr): Renamed to
1100 x86_linux_dr_set_addr. All uses updated.
1101 (i386_linux_prepare_to_resume): Renamed to
1102 x86_linux_prepare_to_resume. All uses updated.
1103 (i386_linux_new_thread): Renamed to
1104 x86_linux_new_thread. All uses updated.
1105 (i386_linux_new_fork): Renamed to
1106 x86_linux_new_fork. All uses updated.
1107 (i386_linux_child_post_startup_inferior): Renamed to
1108 x86_linux_child_post_startup_inferior. All uses updated.
1109 (i386_linux_enable_btrace): Renamed to
1110 x86_linux_enable_btrace. All uses updated.
1111 (i386_linux_disable_btrace): Renamed to
1112 x86_linux_disable_btrace. All uses updated.
1113 (i386_linux_teardown_btrace): Renamed to
1114 x86_linux_teardown_btrace. All uses updated.
1115 (i386_linux_read_btrace): Renamed to
1116 x86_linux_read_btrace. All uses updated.
1117
b9c1d481
AS
11182014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1119
1120 * remote.c (extended_remote_post_attach): New function.
1121 (init_extended_remote_ops): Install it as to_post_attach method.
1122
7180e04a
PA
11232014-07-09 Pedro Alves <palves@redhat.com>
1124
1125 * infcmd.c (attach_command_post_wait): Don't call
1126 target_terminal_inferior here.
1127 (attach_command): Call it here instead.
1128
9a9a7608
AB
11292014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1132 field.
1133 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1134 from varobj.c, with additional checks.
1135 (c_varobj_ops): Fill in is_path_expr_parent field.
1136 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1137 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1138 field.
1139 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1140 ops method.
1141 (varobj_default_is_path_expr_parent): New function.
1142 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1143 (varobj_default_is_path_expr_parent): Declare new function.
1144
1f267ae3
MM
11452014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1146
1147 * infcmd.c (finish_backward): Turn internal error into normal error.
1148
b2ee242b
PA
11492014-07-07 Pedro Alves <palves@redhat.com>
1150
8a869bca 1151 PR gdb/17096
b2ee242b
PA
1152 * remote.c (async_handle_remote_sigint)
1153 (async_handle_remote_sigint_twice): Call
1154 gdb_call_async_signal_handler instead of
1155 mark_async_signal_handler.
1156
38e229b2
TT
11572014-07-07 Tom Tromey <tromey@redhat.com>
1158
1159 * target-delegates.c: Rebuild.
1160 * target.c (target_info_record): Remove.
1161 * record.c (info_record_command): Unconditionally call
1162 to_info_record.
1163 * target.h (struct target_ops) <to_info_record>: Use
1164 TARGET_DEFAULT_IGNORE.
1165 (target_info_record): Remove.
1166
f0f9ff95
TT
11672014-07-07 Tom Tromey <tromey@redhat.com>
1168
1169 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1170 TARGET_DEFAULT_NORETURN.
1171 * target.c (generic_tls_error): New function.
1172 (target_translate_tls_address): Don't search target stack.
1173 * target-delegates.c: Rebuild.
1174 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1175 stack.
1176 * linux-thread-db.c (thread_db_get_thread_local_address):
1177 Unconditionally call beneath target.
1178
4a5be5ee
MK
11792014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1180
1181 * cli/cli-logging.c (pop_output_files): Assign targerr to
1182 gdb_stdtargerr.
1183
92c3b204
AB
11842014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * MAINTAINERS (Write After Approval): Update my email address.
1187
9b11e3a7
GB
11882014-07-02 Gary Benson <gbenson@redhat.com>
1189
1190 * proc-service.c (ps_xfer_memory): Update comment.
1191 (ps_pstop): Remove unused function.
1192 (ps_pcontinue): Likewise.
1193 (ps_lstop): Likewise.
1194 (ps_lcontinue): Likewise.
1195 (ps_lgetxregsize): Likewise.
1196 (ps_lgetxregs): Likewise.
1197 (ps_lsetxregs): Likewise.
1198 (ps_plog): Likewise.
1199 (ps_ptread): Likewise.
1200 (ps_ptwrite): Likewise.
1201
cf363f18
MW
12022014-07-01 Mark Wielaard <mjw@redhat.com>
1203
1204 * dwarf2read.c (add_array_cv_type): New function.
1205 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1206 (read_tag_volatile_type): Likewise.
1207
82ae6c8d
TT
12082014-07-01 Tom Tromey <tromey@redhat.com>
1209
1210 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1211 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1212 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1213 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1214 * command.h (cmd_cfunc_ftype): Move earlier.
1215 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1216 (add_com, add_info): Use cmd_cfunc_ftype.
1217
96142726
TT
12182014-06-30 Tom Tromey <tromey@redhat.com>
1219
1220 * symtab.c (operator_chars): Make parameters and return type
1221 const.
1222 (file_matches): Make "files" const.
1223 (struct search_symbols_data) <files>: Now const.
1224 (search_symbols): Make "regexp" and "files" parameters const.
1225 Update.
1226 (symtab_symbol_info): Remove cast.
1227 (rbreak_command): Update.
1228 * symtab.h (search_symbols): Update.
1229
b67a2c6f
YQ
12302014-06-27 Yao Qi <yao@codesourcery.com>
1231
1232 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1233 Change parameter type to 'struct thread_info *'. Caller
1234 updated.
1235 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1236 Update declaration.
1237 * dummy-frame.c (struct dummy_frame_id): New.
1238 (dummy_frame_id_eq): New function.
1239 (struct dummy_frame) <id>: Change its type to 'struct
1240 dummy_frame_id'.
1241 (dummy_frame_push): Add parameter ptid and save it in
1242 dummy_frame_id.
1243 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1244 inferior_ptid.
1245 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1246 to inferior_ptid.
1247 (lookup_dummy_frame): Change parameter type to 'struct
1248 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1249 instead of frame_id_eq.
1250 (dummy_frame_pop): Add parameter ptid. Callers updated.
1251 Update comments. Compose dummy_frame_id and pass it to
1252 lookup_dummy_frame.
1253 (dummy_frame_discard): Add parameter ptid.
1254 (dummy_frame_sniffer): Compose dummy_frame_id and call
1255 dummy_frame_id_eq instead of frame_id_eq.
1256 (fprint_dummy_frames): Print ptid.
1257 * dummy-frame.h: Remove comments.
1258 (dummy_frame_push): Add ptid in declaration.
1259 (dummy_frame_pop, dummy_frame_discard): Likewise.
1260
5b10184c
TT
12612014-06-26 Tom Tromey <tromey@redhat.com>
1262
1263 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1264 * command.h (error_no_arg): Update.
1265
06900326
TT
12662014-06-26 Tom Tromey <tromey@redhat.com>
1267
1268 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1269 (do_show_command): Make "arg" const.
1270 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1271
c2bcbb1d
TT
12722014-06-26 Tom Tromey <tromey@redhat.com>
1273
1274 * record-full.c (record_full_get_bookmark): Make "args" const.
1275 (record_full_goto_bookmark): Make "raw_bookmark" const.
1276 * record.c (record_goto): New function.
1277 (cmd_record_goto): Use it. Now static.
1278 * record.h (record_goto): Declare.
1279 (cmd_record_goto): Remove declaration.
1280 * target-delegates.c: Rebuild.
1281 * target.h (struct target_ops) <to_get_bookmark,
1282 to_goto_bookmark>: Make parameter const.
1283
9cbe5fff
TT
12842014-06-26 Tom Tromey <tromey@redhat.com>
1285
1286 * defs.h (generic_load): Update.
1287 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1288 * monitor.c (monitor_load): Make "args" const.
1289 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1290 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1291 const.
1292 (mips_load): Make "file" const.
1293 * remote-sim.c (gdbsim_load): Make "args" const.
1294 * remote.c (remote_load): Make "name" const.
1295 * symfile.c (generic_load): Make "args" const.
1296 * target-delegates.c: Rebuild.
1297 * target.c (target_load): Make "arg" const.
1298 (debug_to_load): Make "args" const.
1299 * target.h (struct target_ops) <to_load>: Make parameter const.
1300 (target_load): Update.
1301
34a68019
TT
13022014-06-26 Tom Tromey <tromey@redhat.com>
1303
1304 PR symtab/16902:
1305 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1306 (dwarf2_physname, read_partial_die)
1307 (guess_partial_die_structure_name, fixup_partial_die)
1308 (guess_full_die_structure_name, anonymous_struct_prefix)
1309 (dwarf2_name): Use per-BFD obstack.
1310
efc889c1
YQ
13112014-06-26 Yao Qi <yao@codesourcery.com>
1312
1313 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1314 dummyframe and this_id into inner block below.
1315
4395285e
YQ
13162014-06-26 Yao Qi <yao@codesourcery.com>
1317
1318 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1319 with "signal_pass[0]" in the initialization of signal_pass.
1320
aef92902
MM
13212014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1322
1323 * record-btrace.c (record_btrace_generating_corefile)
1324 (record_btrace_prepare_to_generate_core)
1325 (record_btrace_done_generating_core): New.
1326 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1327 (record_btrace_store_registers, record_btrace_prepare_to_store):
1328 Forward request when generating a core file.
1329 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1330 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1331 to_done_generating_core.
1332
5fff78c4
MM
13332014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1334
1335 * target.h (target_ops) <to_prepare_to_generate_core>
1336 <to_done_generating_core>: New.
1337 (target_prepare_to_generate_core, target_done_generating_core): New.
1338 * target.c (target_prepare_to_generate_core)
1339 (target_done_generating_core): New.
1340 * target-delegates.c: Regenerate.
1341 * gcore.c: (write_gcore_file): Rename to ...
1342 (write_gcore_file_1): ...this.
1343 (write_gcore_file): Call target_prepare_to_generate_core
1344 and target_done_generating_core.
1345
1d1f1ccb
MM
13462014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1347
1348 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1349 * gcore.c (write_gcore_file): Free memory returned from
1350 make_corefile_notes.
1351 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1352 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1353
3343ef86
YQ
13542014-06-24 Yao Qi <yao@codesourcery.com>
1355
1356 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1357 (arm_linux_init_abi): Set skip_trampoline_code with
1358 gdbarch_skip_trampoline_code instead of
1359 find_solib_trampoline_target.
1360
18d18ac8
YQ
13612014-06-24 Yao Qi <yao@codesourcery.com>
1362
1363 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1364 arm_skip_bx_reg returns non-zero.
1365
80d8d390
YQ
13662014-06-24 Yao Qi <yao@codesourcery.com>
1367
1368 * arm-tdep.c (arm_skip_bx_reg): New function.
1369 (arm_skip_stub): Call arm_skip_bx_reg.
1370
6a18a01c
DB
13712014-06-23 Don Breazeal <donb@codesourcery.com>
1372
1373 * MAINTAINERS: Add myself as write-after-approval maintainer.
1374
8e9db26e
PA
13752014-06-23 Pedro Alves <palves@redhat.com>
1376
1377 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1378 DR_CONTROL before setting DR0..DR3.
1379 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1380 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1381 bits of DR_CONTROL related to the debug register slot being
1382 disabled. If all slots are vacant, clear local slowdown as well,
1383 and assert DR_CONTROL is 0.
1384
70afc5b7
SC
13852014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1386
1387 * python/lib/gdb/command/xmethods.py
1388 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1389 current progspace only if the string "progspace" matches LOCUS_RE.
1390
840ed64d
JK
13912014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1392
1393 Fix --with-system-readline with readline-6.3 patch 5.
1394 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1395 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1396 types.
1397
26f2dc30
TT
13982014-06-20 Tom Tromey <tromey@redhat.com>
1399
1400 * dwarf2read.c (dw2_get_real_path): Use correct type in
1401 OBSTACK_CALLOC.
1402 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1403
125f8a3d
GB
14042014-06-20 Gary Benson <gbenson@redhat.com>
1405
1406 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1407 * common/glibc_thread_db.h: Likewise.
1408 * common/i386-cpuid.h: Likewise.
1409 * common/i386-gcc-cpuid.h: Likewise.
1410 * common/linux-btrace.h: Likewise.
1411 * common/linux-osdata.h: Likewise.
1412 * common/linux-procfs.h: Likewise.
1413 * common/linux-ptrace.h: Likewise.
1414 * common/mips-linux-watch.h: Likewise.
1415 * common/linux-btrace.c: Moved to nat.
1416 * common/linux-osdata.c: Likewise.
1417 * common/linux-procfs.c: Likewise.
1418 * common/linux-ptrace.c: Likewise.
1419 * common/mips-linux-watch.c: Likewise.
1420 * nat/gdb_thread_db.h: Moved from common.
1421 * nat/glibc_thread_db.h: Likewise.
1422 * nat/i386-cpuid.h: Likewise.
1423 * nat/i386-gcc-cpuid.h: Likewise.
1424 * nat/linux-btrace.c: Likewise.
1425 * nat/linux-btrace.h: Likewise.
1426 * nat/linux-osdata.c: Likewise.
1427 * nat/linux-osdata.h: Likewise.
1428 * nat/linux-procfs.c: Likewise.
1429 * nat/linux-procfs.h: Likewise.
1430 * nat/linux-ptrace.c: Likewise.
1431 * nat/linux-ptrace.h: Likewise.
1432 * nat/mips-linux-watch.c: Likewise.
1433 * nat/mips-linux-watch.h: Likewise.
1434 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1435 (object file files): Reordered.
1436 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1437 of glibc_thread_db.h.
1438
42995dbd
GB
14392014-06-20 Gary Benson <gbenson@redhat.com>
1440
1441 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1442 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1443 (i386_dr_low): Likewise.
1444 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1445 (i386_dr_low_set_addr): Likewise.
1446 (i386_dr_low_get_addr): Likewise.
1447 (i386_dr_low_can_set_control): Likewise.
1448 (i386_dr_low_set_control): Likewise.
1449 (i386_dr_low_get_control): Likewise.
1450 (i386_dr_low_get_status): Likewise.
1451 (i386_get_debug_register_length): Likewise.
1452 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1453 (i386_dr_low): Likewise.
1454 * nat/i386-dregs.c (i386-low.h): Remove include.
1455 (i386-nat.h): Likewise.
1456 (nat/i386-dregs.h): New include.
1457 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1458 (i386_dr_low_set_addr): Likewise.
1459 (i386_dr_low_get_addr): Likewise.
1460 (i386_dr_low_can_set_control): Likewise.
1461 (i386_dr_low_set_control): Likewise.
1462 (i386_dr_low_get_control): Likewise.
1463 (i386_dr_low_get_status): Likewise.
1464 (i386_get_debug_register_length): Likewise.
1465 (debug_hw_points): Likewise.
1466
3ed9baed
IB
14672014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1468
1469 * Makefile.in (SFILES): Add d-exp.y.
1470 (YYFILES): Add d-exp.c.
1471 (YYOBJ): Add d-exp.o.
1472 (local-maintainer-clean): Delete d-exp.c.
1473 * d-exp.y: New file.
1474 * d-lang.h (d_parse): New declaration.
1475 (d_error): New declaration.
1476 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1477 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1478 PREC_ORDER operators.
1479 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1480
78c164b0
YQ
14812014-06-19 Yao Qi <yao@codesourcery.com>
1482
1483 * gdbthread.h (any_running): Remove the declaration.
1484 * thread.c (any_running): Remove.
1485
f6e29b6e
YQ
14862014-06-19 Yao Qi <yao@codesourcery.com>
1487
1488 * gdbthread.h (struct thread_info) <state>: Change its type to
1489 'enum thread_state'. Update comments.
1490
034f788c
PA
14912014-06-19 Pedro Alves <palves@redhat.com>
1492
1493 * gdbthread.h (ALL_THREADS): Delete.
1494 (ALL_NON_EXITED_THREADS): New macro.
1495 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1496 instead of ALL_THREADS.
1497 * infrun.c (find_thread_needs_step_over)
1498 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1499 instead of ALL_THREADS.
1500 * record-btrace.c (record_btrace_open)
1501 (record_btrace_stop_recording, record_btrace_close)
1502 (record_btrace_is_replaying, record_btrace_resume)
1503 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1504 * remote.c (append_pending_thread_resumptions): Likewise.
1505 * thread.c (thread_apply_all_command): Likewise.
1506
46e33252
GB
15072014-06-19 Gary Benson <gbenson@redhat.com>
1508
1509 * i386-nat.c (i386_stopped_by_watchpoint):
1510 Use i386_dr_stopped_by_watchpoint.
1511 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1512 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1513
3a8ee006
GB
15142014-06-19 Gary Benson <gbenson@redhat.com>
1515
1516 * nat/i386-dregs.c: New file.
1517 * Makefile.in (i386-dregs.o): New rule.
1518 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1519 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1520 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1521 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1522 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1523 * config/i386/go32.mh (NATDEPFILES): Likewise.
1524 * config/i386/linux.mh (NATDEPFILES): Likewise.
1525 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1526 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1527 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1528 * i386-nat.h (debug_hw_points): New declaration.
1529 * i386-nat.c (breakpoint.h): Remove include.
1530 (command.h): Likewise.
1531 (target.h): Likewise.
1532 (gdb_assert.h): Likewise.
1533 (debug_hw_points): Made nonstatic.
1534 (debug_printf): Now in i386-dregs.c.
1535 (TARGET_HAS_DR_LEN_8): Likewise.
1536 (DR_CONTROL_SHIFT): Likewise.
1537 (DR_CONTROL_SIZE): Likewise.
1538 (DR_RW_EXECUTE): Likewise.
1539 (DR_RW_WRITE): Likewise.
1540 (DR_RW_READ): Likewise.
1541 (DR_RW_IORW): Likewise.
1542 (DR_LEN_1): Likewise.
1543 (DR_LEN_2): Likewise.
1544 (DR_LEN_4): Likewise.
1545 (DR_LEN_8): Likewise.
1546 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1547 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1548 (DR_ENABLE_SIZE): Likewise.
1549 (DR_LOCAL_SLOWDOWN): Likewise.
1550 (DR_GLOBAL_SLOWDOWN): Likewise.
1551 (DR_CONTROL_RESERVED): Likewise.
1552 (I386_DR_CONTROL_MASK): Likewise.
1553 (I386_DR_VACANT): Likewise.
1554 (I386_DR_LOCAL_ENABLE): Likewise.
1555 (I386_DR_GLOBAL_ENABLE): Likewise.
1556 (I386_DR_DISABLE): Likewise.
1557 (I386_DR_SET_RW_LEN): Likewise.
1558 (I386_DR_GET_RW_LEN): Likewise.
1559 (I386_DR_WATCH_HIT): Likewise.
1560 (i386_wp_op_t): Likewise.
1561 (i386_show_dr): Likewise.
1562 (i386_length_and_rw_bits): Likewise.
1563 (i386_insert_aligned_watchpoint): Likewise.
1564 (i386_remove_aligned_watchpoint): Likewise.
1565 (i386_handle_nonaligned_watchpoint): Likewise.
1566 (i386_update_inferior_debug_regs): Likewise.
1567 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1568 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1569 (i386_region_ok_for_watchpoint):
1570 Use i386_dr_region_ok_for_watchpoint.
1571 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1572
322a8e06
GB
15732014-06-19 Gary Benson <gbenson@redhat.com>
1574
1575 * i386-nat.c (i386_insert_hw_breakpoint): Use
1576 i386_insert_watchpoint.
1577 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1578
8f26655c
GB
15792014-06-19 Gary Benson <gbenson@redhat.com>
1580
1581 * i386-nat.c (i386_dr_show): Renamed to
1582 i386_show_dr and made static. All uses updated.
1583 (i386_dr_length_and_rw_bits): Renamed to
1584 i386_length_and_rw_bits and made static.
1585 All uses updated.
1586 (i386_dr_insert_aligned_watchpoint): Renamed to
1587 i386_insert_aligned_watchpoint and made static.
1588 All uses updated.
1589 (i386_dr_remove_aligned_watchpoint): Renamed to
1590 i386_remove_aligned_watchpoint and made static.
1591 All uses updated.
1592 (i386_dr_update_inferior_debug_regs): Renamed to
1593 i386_update_inferior_debug_regs and made static.
1594 All uses updated.
1595 * nat/i386-dregs.h (i386_dr_show): Removed.
1596 (i386_dr_length_and_rw_bits): Likewise.
1597 (i386_dr_insert_aligned_watchpoint): Likewise.
1598 (i386_dr_remove_aligned_watchpoint): Likewise.
1599 (i386_dr_update_inferior_debug_regs): Likewise.
1600
992c7d70
GB
16012014-06-19 Gary Benson <gbenson@redhat.com>
1602
1603 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1604 * configure: Regenerate.
1605 * config.in: Likewise.
1606 * main.c (signal.h): New include.
1607 (setup_alternate_signal_stack): New function.
1608 (captured_main): Call the above.
1609 * cp-support.c (signal.h): New include.
1610 (catch_demangler_crashes): New flag.
1611 (SIGJMP_BUF): New define.
1612 (SIGSETJMP): Likewise.
1613 (SIGLONGJMP): Likewise.
1614 (gdb_demangle_jmp_buf): New static global.
1615 (gdb_demangle_attempt_core_dump): Likewise.
1616 (gdb_demangle_signal_handler): New function.
1617 (gdb_demangle): If catch_demangler_crashes is set, install the
1618 above signal handler before calling bfd_demangle, and restore
1619 the original signal handler afterwards. Display the offending
1620 symbol and call demangler_warning the first time a segmentation
1621 fault is caught.
1622 (_initialize_cp_support): New maint set/show command.
1623
eae7090b
GB
16242014-06-19 Gary Benson <gbenson@redhat.com>
1625
1626 * utils.h (resource_limit_kind): New enum.
1627 (can_dump_core): New declaration.
1628 (warn_cant_dump_core): Likewise.
1629 (dump_core): Likewise.
1630 * utils.c (dump_core): Made nonstatic. Added new
1631 parameter "limit_kind".
1632 (can_dump_core): Made nonstatic. Moved printing code to...
1633 (warn_cant_dump_core): New function.
1634 (can_dump_core_warn): Likewise.
1635 (internal_vproblem): Replace calls to can_dump_core with
1636 calls to can_dump_core_warn. Supply new argument to each.
1637
57fcfb1b
GB
16382014-06-19 Gary Benson <gbenson@redhat.com>
1639
1640 * utils.h (demangler_vwarning): New declaration.
1641 (demangler_warning): Likewise.
1642 * utils.c (struct internal_problem)
1643 <user_settable_should_quit>: New field.
1644 <user_settable_should_dump_core>: Likewise
1645 (internal_error_problem): Add values for above new fields.
1646 (internal_warning_problem): Likewise.
1647 (demangler_warning_problem): New static global.
1648 (demangler_vwarning): New function.
1649 (demangler_warning): Likewise.
1650 (add_internal_problem_command): Selectively add commands.
1651 (_initialize_utils): New internal problem command.
1652 * maint.c (maintenance_demangler_warning): New function.
1653 (_initialize_maint_cmds): New command.
1654
17a40b44
TT
16552014-06-18 Tom Tromey <tromey@redhat.com>
1656
1657 * f-valprint.c (info_common_command_for_block): Update.
1658 * symtab.h (struct general_symbol_info) <common_block>: Now
1659 const.
1660
346d1dfe
TT
16612014-06-18 Tom Tromey <tromey@redhat.com>
1662
1663 * symtab.h (struct symtab) <blockvector>: Now const.
1664 * ada-lang.c (ada_add_global_exceptions): Update.
1665 * buildsym.c (augment_type_symtab): Update.
1666 * dwarf2read.c (dw2_lookup_symbol): Update.
1667 * jit.c (finalize_symtab): Update.
1668 * jv-lang.c (add_class_symtab_symbol): Update.
1669 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1670 Update.
1671 * objfiles.c (objfile_relocate1): Update.
1672 * psymtab.c (lookup_symbol_aux_psymtabs)
1673 (maintenance_check_psymtabs): Update.
1674 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1675 Update.
1676 * spu-tdep.c (spu_catch_start): Update.
1677 * symmisc.c (dump_symtab_1): Update.
1678 * symtab.c (lookup_global_symbol_from_objfile)
1679 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1680 (basic_lookup_transparent_type_quick)
1681 (basic_lookup_transparent_type, find_pc_sect_symtab)
1682 (find_pc_sect_line, search_symbols): Update.
1683 * block.c (find_block_in_blockvector): Make "bl" const.
1684 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1685 const.
1686 (blockvector_contains_pc): Make "bv" const.
1687 (block_for_pc_sect): Update.
1688 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1689 (blockvector_contains_pc): Update.
1690 * breakpoint.c (resolve_sal_pc): Update.
1691 * inline-frame.c (block_starting_point_at): Update.
1692
1834676b
TT
16932014-06-18 Tom Tromey <tromey@redhat.com>
1694
1695 * completer.c (complete_line): Make "line_buffer" const.
1696 * completer.h (complete_line): Update.
1697
ac1a991b
TT
16982014-06-18 Tom Tromey <tromey@redhat.com>
1699
1700 * symtab.c (add_macro_name): Remove unneeded cast.
1701
5bc98e52
TT
17022014-06-18 Tom Tromey <tromey@redhat.com>
1703
1704 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1705 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1706
8236def8
TT
17072014-06-18 Tom Tromey <tromey@redhat.com>
1708
1709 * probe.c (info_probes_for_ops): Make "arg" const.
1710 * probe.h (info_probes_for_ops): Update.
1711
3977b71f
TT
17122014-06-18 Tom Tromey <tromey@redhat.com>
1713
1714 * varobj.c (varobj_create): Update.
1715 * valops.c (value_of_this): Update.
1716 * tracepoint.c (add_local_symbols, scope_info): Update.
1717 * symtab.h (struct general_symbol_info) <block>: Now const.
1718 * symtab.c (skip_prologue_sal)
1719 (default_make_symbol_completion_list_break_on)
1720 (skip_prologue_using_sal): Update.
1721 * stack.h (iterate_over_block_locals)
1722 (iterate_over_block_local_vars): Update.
1723 * stack.c (print_frame_args): Update.
1724 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1725 parameter const.
1726 (get_selected_block): Make return type const.
1727 * python/py-frame.c (frapy_block): Update.
1728 * python/py-block.c (gdbpy_block_for_pc): Update.
1729 * p-exp.y (%union) <bval>: Now const.
1730 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1731 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1732 * m2-exp.y (%union) <bval>: Now const.
1733 * linespec.c (get_current_search_block): Make return type const.
1734 (create_sals_line_offset, find_label_symbols): Update.
1735 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1736 Update.
1737 (block_starting_point_at): Make "block" const.
1738 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1739 (check_exception_resume): Update.
1740 * guile/scm-frame.c (gdbscm_frame_block): Update.
1741 * guile/scm-block.c (gdbscm_lookup_block): Update.
1742 * frame.h (get_frame_block): Update.
1743 (get_selected_block): Make return type const.
1744 * frame.c (frame_id_inner): Update.
1745 * f-valprint.c (info_common_command_for_block)
1746 (info_common_command): Update.
1747 * dwarf2loc.c (dwarf2_find_location_expression)
1748 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1749 (locexpr_describe_location_piece): Update.
1750 * c-exp.y (%union) <bval>: Now const.
1751 * breakpoint.c (resolve_sal_pc): Update.
1752 * blockframe.c (get_frame_block):Make return type const.
1753 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1754 (block_innermost_frame): Update.
1755 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1756 (block_for_pc, block_for_pc_sect): Update.
1757 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1758 'pblock' const.
1759 (block_for_pc_sect, block_for_pc): Make return type const.
1760 * ax-gdb.c (gen_expr): Update.
1761 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1762 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1763 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1764 (ada_read_var_value): Update.
1765 * ada-exp.y (struct name_info) <block>: Now const.
1766 (%union): Likewise.
1767 (block_lookup): Constify.
1768
b9228891
GB
17692014-06-18 Gary Benson <gbenson@redhat.com>
1770
1771 * nat/i386-dregs.h: New file.
1772 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1773 * i386-nat.h (i386-dregs.h): New include.
1774 (DR_FIRSTADDR): Now in i386-dregs.h.
1775 (DR_LASTADDR): Likewise.
1776 (DR_NADDR): Likewise.
1777 (DR_STATUS): Likewise.
1778 (DR_CONTROL): Likewise.
1779 (i386_debug_reg_state): Likewise.
1780 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1781
a1aa2221
LM
17822014-06-18 Don Breazeal <donb@codesourcery.com>
1783
1784 * breakpoint.c (set_longjmp_breakpoint): Call
1785 momentary_breakpoint_from_master with additional argument.
1786 (set_longjmp_breakpoint_for_call_dummy): Call
1787 momentary_breakpoint_from_master with additional argument.
1788 (set_std_terminate_breakpoint): Call
1789 momentary_breakpoint_from_master with additional argument.
1790 (momentary_breakpoint_from_master): Add argument to function
1791 definition and use it to initialize structure member flag.
74228e77 1792 (clone_momentary_breakpoint): Call
a1aa2221
LM
1793 momentary_breakpoint_from_master with additional argument.
1794 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1795 member flags set in momentary_breakpoint_from_master.
1796
4be83cc2
GB
17972014-06-18 Gary Benson <gbenson@redhat.com>
1798
1799 * i386-nat.c (i386_show_dr): Renamed to
1800 i386_dr_show and made nonstatic. All uses updated.
1801 (i386_length_and_rw_bits): Renamed to
1802 i386_dr_length_and_rw_bits and made nonstatic.
1803 All uses updated.
1804 (i386_insert_aligned_watchpoint): Renamed to
1805 i386_dr_insert_aligned_watchpoint and made nonstatic.
1806 All uses updated.
1807 (i386_remove_aligned_watchpoint): Renamed to
1808 i386_dr_remove_aligned_watchpoint and made nonstatic.
1809 All uses updated.
1810 (i386_update_inferior_debug_regs): Renamed to
1811 i386_dr_update_inferior_debug_regs and made nonstatic.
1812 All uses updated.
1813
131aa0d4
GB
18142014-06-18 Gary Benson <gbenson@redhat.com>
1815
1816 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1817 (i386_dr_low_can_set_control): Likewise.
1818 (i386_dr_low_set_addr): Likewise.
1819 (i386_dr_low_set_control): Likewise.
1820 (i386_dr_low_get_addr): Likewise.
1821 (i386_dr_low_get_status): Likewise.
1822 (i386_dr_low_get_control): Likewise.
1823 (i386_insert_aligned_watchpoint): Use new macros.
1824 (i386_update_inferior_debug_regs): Likewise.
1825 (i386_stopped_data_address): Likewise.
1826
d9305f7f
GB
18272014-06-18 Gary Benson <gbenson@redhat.com>
1828
1829 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1830 New parameter. All uses updated.
1831
ea008da4
GB
18322014-06-18 Gary Benson <gbenson@redhat.com>
1833
1834 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1835 All uses updated.
1836
1b6d4134
GB
18372014-06-18 Gary Benson <gbenson@redhat.com>
1838
1839 * i386-nat.c (debug_printf): New macro.
1840 (i386_get_debug_register_length): Likewise.
1841 (TARGET_HAS_DR_LEN_8): Use above macro.
1842 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1843 and printf_unfiltered. Use phex to format values.
1844
9b4550ef
GB
18452014-06-18 Gary Benson <gbenson@redhat.com>
1846
1847 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1848 Make const.
1849
6e62758f
GB
18502014-06-18 Gary Benson <gbenson@redhat.com>
1851
1852 * i386-nat.c: Comment changes.
1853
51c79e94
GB
18542014-06-18 Gary Benson <gbenson@redhat.com>
1855
1856 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1857
3e11889a
GB
18582014-06-18 Gary Benson <gbenson@redhat.com>
1859
1860 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1861 (i386_insert_aligned_watchpoint): Likewise.
1862 (i386_remove_aligned_watchpoint): Likewise.
1863 (i386_handle_nonaligned_watchpoint): Likewise.
1864
fc6e2f03
GB
18652014-06-18 Gary Benson <gbenson@redhat.com>
1866
1867 * i386-nat.c: Whitespace changes.
1868
2afe7d50
SB
18692014-06-17 Samuel Bronson <naesten@gmail.com>
1870
1871 * MAINTAINERS: Update Roland McGrath's email address.
1872 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 1873 Red Hat a while ago, and giving me a current address.
2afe7d50 1874
3bca49ee
TT
18752014-06-17 Tom Tromey <tromey@redhat.com>
1876
1877 * utils.h (savestring): Remove declaration.
1878
6e366df1
TT
18792014-06-17 Tom Tromey <tromey@redhat.com>
1880
1881 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1882
6be47f0c
KS
18832014-06-16 Keith Seitz <keiths@redhat.com>
1884
1885 PR mi/15863
1886 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1887 to update the varobj if inferior_ptid is null_ptid.
1888
7bc112c1
TT
18892014-06-16 Tom Tromey <tromey@redhat.com>
1890
1891 * target.h (struct target_ops) <to_info_proc>: Make parameter
1892 const.
1893 (target_info_proc): Update.
1894 * target.c (target_info_proc): Make "args" const.
1895 * procfs.c (procfs_info_proc): Update.
1896 * linux-tdep.c (linux_info_proc): Update.
1897 (linux_core_info_proc_mappings): Make "args" const.
1898 (linux_core_info_proc): Update.
1899 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1900 * gdbarch.c: Rebuild.
1901 * gdbarch.h: Rebuild.
1902 * corelow.c (core_info_proc): Update.
1903
fee354ee
TT
19042014-06-16 Tom Tromey <tromey@redhat.com>
1905
1906 * target.h (struct target_ops) <to_disconnect>: Make parameter
1907 const.
1908 (target_disconnect): Update.
1909 * target.c (target_disconnect): Make "args" const.
1910 * target-delegates.c: Rebuild.
1911 * remote.c (remote_disconnect): Update.
1912 * record.h (record_disconnect): Update.
1913 * record.c (record_disconnect): Update.
1914 * inf-child.c (inf_child_disconnect): Update.
1915
a30bf1f1
TT
19162014-06-16 Tom Tromey <tromey@redhat.com>
1917
1918 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1919 * target.c (debug_to_rcmd, default_rcmd): Update.
1920 * target-delegates.c: Rebuild.
1921 * remote.c (remote_rcmd): Update.
1922 * monitor.c (monitor_rcmd): Update.
1923
d03de421
PA
19242014-06-16 Pedro Alves <palves@redhat.com>
1925
1926 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1927 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1928 have OBJF_SHARED set.
1929 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1930 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1931 instead of OBJF_USERLOADED.
1932 * objfiles.h (OBJF_SHARED): Update comment.
1933 (userloaded_objfile_contains_address_p): Rename to ...
1934 (shared_objfile_contains_address_p): ... this, and update
1935 comments.
1936 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1937 new objfile.
1938 (remove_symbol_file_command): Skip objfiles that don't have
1939 OBJF_SHARED set.
1940
99f4262f
TT
19412014-06-16 Tom Tromey <tromey@redhat.com>
1942
1943 * minsyms.h (prim_record_minimal_symbol)
1944 (prim_record_minimal_symbol_and_info): Update comments.
1945
97d66cc6
EZ
19462014-06-14 Eli Zaretskii <eliz@gnu.org>
1947
1948 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1949 or --without-guile, according to how GDB was built.
1950
635c7e8a
TT
19512014-06-13 Tom Tromey <tromey@redhat.com>
1952
1953 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1954 to help_list.
1955 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1956 to help_list.
1957 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1958 help_list.
1959 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1960 help_list.Pass all_commands, not -1, to help_list.
1961 * cli/cli-dump.c (dump_command, append_command)
1962 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1963 (binary_dump_command, binary_append_command): Pass all_commands,
1964 not -1, to help_list.
1965 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1966 -1, to help_list.
1967 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1968 -1, to help_list.
1969 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1970 help_list.
1971 * top.c (set_history): Pass all_commands, not -1, to help_list.
1972 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1973 all_commands, not -1, to help_list.
1974 * symfile.c (overlay_command): Pass all_commands, not -1, to
1975 help_list.
1976 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1977 help_list.
1978 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1979 help_list.
1980 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1981 -1, to help_list.
1982 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1983 not -1, to help_list.
1984 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1985 not -1, to help_list.
1986 * maint.c (maintenance_command, maintenance_info_command)
1987 (maintenance_print_command, maintenance_set_cmd): Pass
1988 all_commands, not -1, to help_list.
1989 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1990 help_list.
1991 * language.c (set_check): Pass all_commands, not -1, to help_list.
1992 * infcmd.c (unset_command): Pass all_commands, not -1, to
1993 help_list.
1994 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1995 help_list.
1996 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1997 help_list.
1998 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1999 help_list.
2000 * breakpoint.c (save_command): Pass all_commands, not -1, to
2001 help_list.
2002 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2003 all_commands, not -1, to help_list.
2004
b94ade42
PL
20052014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2006
2007 * regcache.c (struct register_to_invalidate): New structure.
2008 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2009 functions.
2010 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2011
31f628ae
YQ
20122014-06-12 Yao Qi <yao@codesourcery.com>
2013
2014 * varobj.c (varobj_get_num_children): Call
2015 varobj_is_dynamic_p.
2016 (varobj_list_children): Likewise.
2017 (varobj_update): Likewise. Update comments.
2018
cde5ef40
YQ
20192014-06-12 Yao Qi <yao@codesourcery.com>
2020
2021 * varobj.c (varobj_pretty_printed_p): Rename to ...
2022 (varobj_is_dynamic_p): ... this. New function.
2023 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2024 (varobj_is_dynamic_p): Declare.
2025 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2026 (mi_print_value_p, varobj_update_one): Likewise.
2027
576ea091
YQ
20282014-06-12 Pedro Alves <pedro@codesourcery.com>
2029 Yao Qi <yao@codesourcery.com>
2030
2031 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2032 (varobj_get_iterator): Wrap up code for pretty-printer by
2033 "#if HAVE_PYTHON" and "#endif".
2034 (update_dynamic_varobj_children): Likewise.
2035
827f100c
YQ
20362014-06-12 Pedro Alves <pedro@codesourcery.com>
2037 Yao Qi <yao@codesourcery.com>
2038
2039 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2040 gdb_python_initialized is false. Move some code from varobj.c.
2041 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2042 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2043 (struct varobj_item): Moved to varobj-iter.h".
2044 (varobj_clear_saved_item): New function.
2045 (update_dynamic_varobj_children): Move python-related code to
2046 py-varobj.c.
2047 (free_variable): Call varobj_clear_saved_item and
2048 varobj_iter_delete.
2049
e5250216
YQ
20502014-06-12 Pedro Alves <pedro@codesourcery.com>
2051 Yao Qi <yao@codesourcery.com>
2052
2053 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2054 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2055 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2056 (py-varobj.o): New rule.
2057 * python/py-varobj.c: New file.
2058 * python/python-internal.h (py_varobj_get_iterator): Declare.
2059 * varobj-iter.h: New file.
2060 * varobj.c: Include "varobj-iter.h"
2061 (struct varobj) <child_iter>: Change its type from "PyObject *"
2062 to "struct varobj_iter *".
2063 <saved_item>: Likewise.
2064 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2065 [HAVE_PYTHON] (varobj_get_iterator): New function.
2066 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2067 python-specific code to python/py-varobj.c.
2068 (install_visualizer): Call varobj_iter_delete instead of
2069 Py_XDECREF.
2070 * varobj.h (varobj_ensure_python_env): Declare.
2071
5a2e0d6e
YQ
20722014-06-12 Yao Qi <yao@codesourcery.com>
2073
2074 * varobj.c (struct varobj_item): New structure.
2075 (create_child_with_value): Update declaration.
2076 (varobj_add_child): Replace arguments 'name' and 'value' with
2077 'item'. All callers updated.
2078 (install_dynamic_child): Likewise.
2079 (update_dynamic_varobj_children): Likewise.
2080 (varobj_add_child): Likewise.
2081 (create_child_with_value): Likewise.
2082
919b9a93
JB
20832014-06-11 Joel Brobecker <brobecker@adacore.com>
2084
2085 * NEWS: Create a new section for the next release branch.
2086 Rename the section of the current branch, now that it has
2087 been cut.
2088
71a55bdf
JB
20892014-06-11 Joel Brobecker <brobecker@adacore.com>
2090
2091 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2092 * version.in: Bump version to 7.8.50.DATE-cvs.
2093
364fe1f7
PA
20942014-06-11 Pedro Alves <palves@redhat.com>
2095
2096 PR remote/17028
2097 * ser-mingw.c (net_windows_socket_check_pending): New function.
2098 (net_windows_select_thread): Ignore spurious wakeups. Use
2099 net_windows_socket_check_pending.
2100 (net_windows_wait_handle): Check for pending events with
2101 ioctlsocket, through net_windows_socket_check_pending, instead of
2102 checking the socket's event.
2103
5a6c7709
SC
21042014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2105
2106 * python/python-internal.h (gdb_PyObject_GetAttrString)
2107 (gdb_PyObject_HasAttrString): New inline function definitions.
2108 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2109 char * of the second argument to PyObject_GetAttrString.
74228e77 2110
0e58ee40
JB
21112014-06-10 Joel Brobecker <brobecker@adacore.com>
2112
2113 * serial.c (serial_write): Fix index of character to be printed
2114 in call to serial_logchar when serial debug traces are enabled.
2115
d190df30
JB
21162014-06-10 Joel Brobecker <brobecker@adacore.com>
2117
2118 * gdbtypes (resolve_dynamic_range): Add function description.
2119
b4b01d36
PA
21202014-06-09 Pedro Alves <palves@redhat.com>
2121
2122 * linux-nat.c (linux_child_follow_fork): Initialize status with
2123 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2124 inner block. Only pass the signal to PTRACE_DETACH if in pass
2125 state.
2126
3657956b
GB
21272014-06-09 Gary Benson <gbenson@redhat.com>
2128
2129 * common/signals.c (gdb_signal_from_host): Reorder to separate
2130 the always-available ANSI-standard signals from the signals that
2131 require checking.
2132 (do_gdb_signal_to_host): Likewise.
2133 * proc-events.c (signal_table): Likewise.
2134
c077881a
HZ
21352014-06-08 Hui Zhu <hui@codesourcery.com>
2136
2137 * common/linux-ptrace.c (linux_disable_event_reporting): New
2138 function.
2139 * common/linux-ptrace.h (linux_disable_event_reporting): New
2140 declaration.
2141 * linux-nat.c (linux_child_follow_fork): Do a single step before
2142 detach.
2143
4186eb54
KS
21442014-06-07 Keith Seitz <keiths@redhat.com>
2145
2146 Revert:
2147 PR c++/16253
2148 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2149 from symbol_matches_domain in symtab.c. All local callers
2150 of symbol_matches_domain updated.
2151 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2152 search STRUCT_DOMAIN.
2153 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2154 independently. standard_lookup will do that automatically.
2155 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2156 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2157 (cp_lookup_symbol_in_namespace): Likewise.
2158 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2159 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2160 may return a STRUCT_DOMAIN match.
2161 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2162 * cp-support.c: Include language.h.
2163 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2164 VAR_DOMAIN.
2165 * psymtab.c (match_partial_symbol): Compare the requested
2166 domain with the symbol's domain directly.
2167 (lookup_partial_symbol): Likewise.
2168 * symtab.c (lookup_symbol_in_language): Explain when/why
2169 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2170 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2171 appropriate languages.
2172 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2173 and moved to ada-lang.c
2174 (lookup_block_symbol): Explain that this function only returns
2175 symbol matching the requested DOMAIN.
2176 Compare the requested domain with the symbol's domain directly.
2177 (iterate_over_symbols): Compare the requested domain with the
2178 symbol's domain directly.
2179 * symtab.h (symbol_matches_domain): Remove.
2180
25326a28 21812014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2182
2183 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2184 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2185 (gdbscm_guile_version_is_at_least): Declare.
2186 (gdbscm_scm_string_to_int): Declare.
2187 * guile/guile.c (gdbscm_guile_major_version): New global.
2188 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2189 (guile_datadir): New static global.
2190 (gdbscm_guile_data_directory): New function.
2191 (initialize_scheme_side): Update.
2192 (misc_guile_functions): Add guile-data-directory.
2193 (initialize_gdb_module): Fetch guile version number.
2194 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2195 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2196 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2197 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2198 comments.
2199 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2200 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2201 * guile/scm-value.c (gdbscm_value_to_string): Only call
2202 scm_port_conversion_strategy if Guile version >= 2.0.6.
2203
0a770bb2 22042014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2205
2206 * main.c (print_gdb_help): Add -q and --silent.
2207
73ba372c
GB
22082014-06-06 Gary Benson <gbenson@redhat.com>
2209
2210 * common/signals.c: Remove preprocessor conditionals for
2211 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2212 SIGSEGV and SIGTERM.
2213 * proc-events.c: Likewise.
2214
c33b2f12
MM
22152014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2216
2217 * symfile.c (symfile_free_objfile): Remove restriction to
2218 OBJF_USERLOADED.
2219 * symfile-mem.c (symbol_file_add_from_memory): Call
2220 add_target_sections_of_objfile.
2221
fb934770
LC
22222014-06-05 Ludovic Courtès <ludo@gnu.org>
2223
2224 * guile/scm-value.c (gdbscm_history_append_x): Use
2225 'vlscm_get_value_smob_arg_unsafe' instead of
2226 'vlscm_scm_to_value'.
2227
6ef284bd
SM
22282014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2229
2230 PR mi/15806
2231 * utils.c (printchar): Don't escape at all if quoter is NUL.
2232 Update function documentation to clarify effect of parameter
2233 QUOTER.
2234 * remote.c (escape_buffer): Pass '\\' as the quoter to
2235 fputstrn_unfiltered.
2236 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2237 generate the output.
2238 (mi_solib_unloaded): Same.
2239
270c9937
JB
22402014-06-05 Joel Brobecker <brobecker@adacore.com>
2241
2242 * development.sh: Delete.
2243 * Makefile.in (config.status): Adjust dependency on development.sh.
2244 * configure.ac: Adjust development.sh source call.
2245 * configure: Regenerate.
2246
16f691fb
DE
22472014-06-04 Doug Evans <xdje42@gmail.com>
2248
2249 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2250 is_scheme_bkpt, spec.
2251 (bpscm_make_breakpoint_smob): Initialize new members.
2252 (gdbscm_create_breakpoint_x): Split into two ...
2253 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2254 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2255 (scheme_function breakpoint_functions): Update.
2256 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2257 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2258 register-breakpoint!.
2259
ef7cab6b
JB
22602014-06-04 Joel Brobecker <brobecker@adacorer.com>
2261
2262 PR server/17023
2263 * mem-break.c (z_type_supported): Return zero if
2264 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2265
012370f6
TT
22662014-06-04 Tom Tromey <tromey@redhat.com>
2267
2268 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2269 value_from_contents_and_address_unresolved.
2270 (ada_template_to_fixed_record_type_1): Likewise.
2271 (ada_which_variant_applies): Likewise.
2272 * value.h (value_from_contents_and_address_unresolved): Declare.
2273 * value.c (value_from_contents_and_address_unresolved): New
2274 function.
2275 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2276 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2277 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2278
92e2a17f
TT
22792014-06-04 Tom Tromey <tromey@redhat.com>
2280
2281 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2282
c0939df1
TT
22832014-06-04 Tom Tromey <tromey@redhat.com>
2284
2285 * procfs.c (procfs_attach): Make "args" const.
2286 * windows-nat.c (windows_attach): Make "args" const.
2287 * nto-procfs.c (procfs_attach): Make "args" const.
2288 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2289 * go32-nat.c (go32_attach): Make "args" const.
2290 * gnu-nat.c (gnu_attach): Make "args" const.
2291 * darwin-nat.c (darwin_attach): Make "args" const.
2292 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2293 * linux-nat.c (linux_nat_attach): Make "args" const.
2294 * remote.c (extended_remote_attach_1, extended_remote_attach):
2295 Make "args" const.
2296 * target.h (struct target_ops) <to_attach>: Make "args" const.
2297 (find_default_attach): Likewise.
2298 * utils.c (parse_pid_to_attach): Make "args" const.
2299 * utils.h (parse_pid_to_attach): Update.
2300
8eaff7cd
TT
23012014-06-04 Tom Tromey <tromey@redhat.com>
2302
2303 * target-delegates.c: Rebuild.
2304 * target.c (default_thread_address_space): New function.
2305 (target_thread_address_space): Simplify.
2306 * target.h (struct target_ops) <to_thread_address_space>: Add
2307 TARGET_DEFAULT_FUNC.
2308
1913f160
DE
23092014-06-04 Doug Evans <xdje42@gmail.com>
2310
2311 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2312
70ad5bff
MM
23132014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2314
2315 * record-btrace.c: Include event-loop.h and inf-loop.h.
2316 (record_btrace_resume_exec_dir)
2317 (record_btrace_async_inferior_event_handler)
2318 (record_btrace_handle_async_inferior_event): New.
2319 (record_btrace_open): Create async event handler.
2320 (record_btrace_close): Delete async event handler.
2321 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2322 Mark async event handler.
2323 (record_btrace_execution_direction): New.
2324 (init_record_btrace_ops): Initialize to_execution_direction.
2325
b6210538
DE
23262014-06-03 Doug Evans <xdje42@gmail.com>
2327
2328 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2329 (gdbscm_make_parameter): Ditto.
2330
a5b1fd27
DE
23312014-06-03 Doug Evans <dje@google.com>
2332
2333 * exec.c (exec_close_1): Call clear_section_table instead of
2334 resize_section_table.
2335 (clear_section_table): New function.
2336 (resize_section_table): Make static. Rename arg num_added to
2337 adjustment.
2338 * exec.h (clear_section_table): Declare.
2339 (resize_section_table): Delete.
2340 * progspace.c (release_program_space): Call clear_section_table
2341 instead of resize_section_table.
2342
0c6e92a5
SC
23432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2344
2345 * NEWS (Python Scripting): Add entry about the new xmethods
2346 feature.
2347
883964a7
SC
23482014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2349
2350 * python/py-xmethods.c: New file.
2351 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2352 (objfpy_dealloc): XDECREF on the new xmethods field.
2353 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2354 field.
2355 (objfpy_get_xmethods): New function.
2356 (objfile_getset): New entry 'xmethods'.
2357 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2358 (pspy_dealloc): XDECREF on the new xmethods field.
2359 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2360 field.
2361 (pspy_get_xmethods): New function.
2362 (pspace_getset): New entry 'xmethods'.
2363 * python/python-internal.h: Add declarations for new functions.
2364 * python/python.c (_initialize_python): Invoke
2365 gdbpy_initialize_xmethods.
2366 * python/lib/gdb/__init__.py (xmethods): New
2367 attribute.
2368 * python/lib/gdb/xmethod.py: New file.
2369 * python/lib/gdb/command/xmethods.py: New file.
2370
58992dc5
SC
23712014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2372
2373 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2374 best match method returned by find_overload_match is an xmethod.
2375 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2376 the best matching operator returned by find_overload_match is an
2377 xmethod.
2378 * valops.c: #include "extension.h".
2379 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2380 Return void. The list of matching source methods is returned in
2381 "fn_list" and a vector of matching debug method workers is
2382 returned in "xm_worker_vec". Update all callers.
2383 (value_find_oload_method_list): Likewise.
2384 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2385 non-NULL, then the index of the best matching method in this
2386 vector is returned. Update all callers.
2387 (find_overload_match): Include xmethods while performing overload
2388 resolution.
2389
e81e7f5e
SC
23902014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2391
2392 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2393 * extension-priv.h (struct extension_language_ops): Add the
2394 xmethod interface.
2395 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2396 get_matching_xmethod_workers, get_xmethod_argtypes,
2397 invoke_xmethod, free_xmethod_worker,
2398 free_xmethod_worker_vec): New functions.
2399 * extension.h: #include "common/vec.h".
2400 New function declarations.
2401 (struct xmethod_worker): New struct.
2402 (VEC (xmethod_worker_ptr)): New vector type.
2403 (xmethod_worker_ptr): New typedef.
2404 (xmethod_worker_vec): Likewise.
2405 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2406 builtin_type.
2407 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2408 (struct builtin_type): New field "xmethod".
2409 * valarith.c (value_ptradd): Assert that the value argument is not
2410 lval_xcallable.
2411 * valops.c (value_must_coerce_to_target): Return 0 for
2412 lval_xcallable values.
2413 * value.c (struct value): New field XM_WORKER in the field
2414 LOCATION.
2415 (value_address, value_raw_address): Return 0 for lval_xcallable
2416 values.
2417 (set_value_address): Assert that the value is not an
2418 lval_xcallable.
2419 (value_free): Free the associated xmethod worker when freeing
2420 lval_xcallable values.
2421 (set_value_component_location): Assert that the WHOLE value is not
2422 lval_xcallable.
2423 (value_of_xmethod, call_xmethod): New functions.
2424 * value.h: Declare "struct xmethod_worker".
2425 Declare new functions value_of_xmethod, call_xmethod.
2426
ef370185
JB
24272014-06-03 Joel Brobecker <brobecker@adacore.com>
2428 Pedro Alves <palves@redhat.com>
2429
2430 PR breakpoints/17000
2431 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2432 New function, extracted from software_breakpoint_inserted_here_p.
2433 (software_breakpoint_inserted_here_p): Replace factored out code
2434 by call to find_non_raw_software_breakpoint_inserted_here.
2435 (bp_target_info_copy_insertion_state): New function.
2436 (bkpt_insert_location): Handle the case of a single-step
2437 breakpoint already inserted at the same address.
2438 (bkpt_remove_location): Handle the case of a single-step
2439 breakpoint still inserted at the same address.
2440 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2441 breakpoint already inserted at the same address.
2442 (deprecated_remove_raw_breakpoint): Handle the case of a
2443 non-raw breakpoint still inserted at the same address.
2444 (find_single_step_breakpoint): New function, extracted from
2445 single_step_breakpoint_inserted_here_p.
2446 (find_single_step_breakpoint): New function,
2447 factored out from single_step_breakpoint_inserted_here_p.
2448 (single_step_breakpoint_inserted_here_p): Reimplement.
2449
1e2ccb61
BM
24502014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2451
2452 Pushed by Joel Brobecker <brobecker@adacore.com>
2453 * source.c (show_substitute_path_command): Fix display of matching
2454 substitution rules.
2455
d3448d85
GB
24562014-06-03 Gary Benson <gbenson@redhat.com>
2457
2458 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2459
06eb1586
DE
24602014-06-02 Doug Evans <xdje42@gmail.com>
2461
2462 Add parameter support for Guile.
2463 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2464 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2465 (scm-param.o): New rule.
2466 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2467 (gdbscm_misc_error): Declare.
2468 (gdbscm_canonicalize_command_name): Declare.
2469 (gdbscm_scm_to_host_string): Declare.
2470 (gdbscm_scm_from_host_string): Declare.
2471 (gdbscm_initialize_parameters): Declare.
2472 * guile/guile.c (initialize_gdb_module): Call
2473 gdbscm_initialize_parameters.
2474 * guile/lib/gdb.scm: Export parameter symbols.
2475 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2476 cmdscm_canonicalize_name and made public. All callers updated.
2477 * guile/scm-exception.c (gdbscm_misc_error): New function.
2478 * guile/scm-param.c: New file.
2479 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2480 (gdbscm_scm_to_host_string): New function.
2481 (gdbscm_scm_from_host_string): New function.
2482 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2483
e698b8c4
DE
24842014-06-02 Doug Evans <xdje42@gmail.com>
2485
2486 Add command support for Guile.
2487 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2488 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2489 (scm-cmd.o): New rule.
2490 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2491 (gdbscm_user_error_p): Declare.
2492 (gdbscm_parse_command_name): Declare.
2493 (gdbscm_valid_command_class_p): Declare.
2494 (gdbscm_initialize_commands): Declare.
2495 * guile/guile.c (initialize_gdb_module): Call
2496 gdbscm_initialize_commands.
2497 * guile/lib/gdb.scm: Export command symbols.
2498 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2499 (throw-user-error): New function.
2500 * guile/scm-cmd.c: New file.
2501 * guile/scm-exception.c (user_error_symbol): New static global.
2502 (gdbscm_user_error_p): New function.
2503 (gdbscm_initialize_exceptions): Set user_error_symbol.
2504 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2505
fb1f94b0
PM
25062014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2507
2508 * top.c (command_loop): Handle comments here...
2509 (command_line_input): ... not here.
2510
ded03782
DE
25112014-06-02 Doug Evans <xdje42@gmail.com>
2512
2513 Add progspace support for Guile.
2514 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2515 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2516 (scm-progspace.o): New rule.
2517 * guile/guile-internal.h (pspace_smob): New typedef.
2518 (psscm_pspace_smob_pretty_printers): Declare.
2519 (psscm_pspace_smob_from_pspace): Declare.
2520 (psscm_scm_from_pspace): Declare.
2521 * guile/guile.c (initialize_gdb_module): Call
2522 gdbscm_initialize_pspaces.
2523 * guile/lib/gdb.scm: Export progspace symbols.
2524 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2525 support.
2526 (append-pretty-printer!): Ditto.
2527 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2528 Implement.
2529 * guile/scm-progspace.c: New file.
2530
397998fc
AM
25312014-06-03 Alan Modra <amodra@gmail.com>
2532
2533 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2534 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2535
6aa5f3a6
DE
25362014-06-02 Doug Evans <dje@google.com>
2537
2538 Add support for skeletonless type units.
2539 * dwarf2read.c (struct dwarf2_per_objfile): New member
2540 n_allocated_type_units.
2541 (struct dwarf2_per_objfile) <tu_stats>: New member
2542 nr_all_type_units_reallocs.
2543 (create_signatured_type_table_from_index): Initialize
2544 n_allocated_type_units
2545 (create_all_type_units): Ditto.
2546 (add_type_unit): Move up in file. New arg slot.
2547 All callers updated. Increase space for all_type_units more
2548 efficiently.
2549 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2550 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2551 (lookup_dwp_signatured_type): Ditto.
2552 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2553 All callers updated.
2554 (build_type_psymtabs_1): Leave type_unit_groups as
2555 NULL if no TUs present.
2556 (print_tu_stats): New function.
2557 (process_skeletonless_type_unit): New function.
2558 (process_dwo_file_for_skeletonless_type_units): New
2559 function.
2560 (process_skeletonless_type_units): New function.
2561 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2562 Call print tu_stats if debugging enabled.
2563
41fac0cf
PA
25642014-06-02 Pedro Alves <palves@redhat.com>
2565
2566 * breakpoint.c (build_target_command_list): Don't build a command
2567 list if we have any duplicate location that isn't a dprintf.
2568
cd1608cc
PA
25692014-06-02 Pedro Alves <palves@redhat.com>
2570
2571 * breakpoint.c (dprintf_breakpoint_hit): New function.
2572 (initialize_breakpoint_ops): Install it as dprintf's
2573 breakpoint_hit method.
2574
486ef3b9
JB
25752014-06-02 Joel Brobecker <brobecker@adacore.com>
2576
2577 * source.c (substitute_path_rule_matches): Simplify using
2578 filename_ncmp instead of FILENAME_CMP.
2579
230cd560
JB
25802014-06-02 Joel Brobecker <brobecker@adacore.com>
2581
2582 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2583
16954d5d
LC
25842014-06-01 Ludovic Courtès <ludo@gnu.org>
2585
2586 * configure.ac: When Guile is available, check for the
2587 availability of 'scm_new_smob'.
2588 * configure, config.h.in: Regenerate.
2589 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2590 function.
2591
53e8a631
AB
25922014-05-30 Andrew Burgess <aburgess@broadcom.com>
2593
2594 * frame.c (struct frame_info): Add stop_string field.
2595 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2596 (get_prev_frame_always): Old content moved into
2597 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2598 TRY_CATCH, handle MEMORY_ERROR exceptions.
2599 (frame_stop_reason_string): New function definition.
2600 * frame.h (unwind_stop_reason_to_string): Extend comment to
2601 mention frame_stop_reason_string.
2602 (frame_stop_reason_string): New function declaration.
2603 * stack.c (frame_info): Switch to frame_stop_reason_string.
2604 (backtrace_command_1): Switch to frame_stop_reason_string.
2605 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2606 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2607 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2608
70e38b8e
AB
26092014-05-30 Andrew Burgess <aburgess@broadcom.com>
2610
2611 * frame.c (frame_stop_reason_string): Rename to ...
2612 (unwind_stop_reason_to_string): this.
2613 * frame.h (frame_stop_reason_string): Rename to ...
2614 (unwind_stop_reason_to_string): this.
2615 * stack.c (frame_info): Update call to frame_stop_reason_string.
2616 (backtrace_command_1): Likewise.
2617 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2618 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2619
938f0e2f
AB
26202014-05-30 Andrew Burgess <aburgess@broadcom.com>
2621
2622 * frame.c (remove_prev_frame): New function.
2623 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2624 remove_prev_frame.
2625
a09dd441
PA
26262014-05-29 Pedro Alves <palves@redhat.com>
2627
2628 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2629 and make it const. When a single-step decays to a continue,
2630 clear 'step', not 'hw_step'. Pass whether the caller wanted
2631 to step to user_visible_resume_ptid, not what we ask the
2632 target to do.
2633
bdc36728
PA
26342014-05-29 Pedro Alves <palves@redhat.com>
2635
2636 * infrun.c (process_event_stop_test, handle_step_into_function)
2637 (handle_step_into_function_backward): Adjust.
2638 Don't set the even thread's stop_step and call stop_waiting before
2639 calling end_stepping_range. Instead do that ...
2640 (end_stepping_range): ... here. Take an ecs pointer parameter.
2641
22bcd14b
PA
26422014-05-29 Pedro Alves <palves@redhat.com>
2643
2644 * infrun.c (stop_stepping): Rename to ...
2645 (stop_waiting): ... this.
2646 (proceed): Update comment.
2647 (process_event_stop_test, handle_inferior_event)
2648 (handle_signal_stop, handle_step_into_function)
2649 (handle_step_into_function_backward): Update.
2650
4ae57c05
PA
26512014-05-29 Pedro Alves <palves@redhat.com>
2652
2653 * infcall.c (run_inferior_call): Don't check whether the current
2654 thread is running after the proceed call.
2655
329ea579
PA
26562014-05-29 Pedro Alves <palves@redhat.com>
2657 Tom Tromey <tromey@redhat.com>
2658
2659 * NEWS: Mention "maint set target-async", "set mi-async", and that
2660 background execution commands are now always available.
2661 * target.h (target_async_permitted): Update comment.
2662 * target.c (target_async_permitted, target_async_permitted_1):
2663 Default to 1.
2664 (set_target_async_command): Rename to ...
2665 (maint_set_target_async_command): ... this.
2666 (show_target_async_command): Rename to ...
2667 (maint_show_target_async_command): ... this.
2668 (_initialize_target): Adjust.
2669 * infcmd.c (prepare_execution_command): Make extern.
2670 * inferior.h (prepare_execution_command): Declare.
2671 * infrun.c (set_observer_mode): Leave target async alone.
2672 * mi/mi-interp.c (mi_interpreter_init): Install
2673 mi_on_sync_execution_done as sync_execution_done observer.
2674 (mi_on_sync_execution_done): New function.
2675 (mi_execute_command_input_handler): Don't print the prompt if we
2676 just started a synchronous command with an async target.
2677 (mi_on_resume): Check sync_execution before printing prompt.
2678 * mi/mi-main.h (mi_async_p): Declare.
2679 * mi/mi-main.c: Include gdbcmd.h.
2680 (mi_async_p): New function.
2681 (mi_async, mi_async_1): New globals.
2682 (set_mi_async_command, show_mi_async_command, mi_async): New
2683 functions.
2684 (exec_continue): Call prepare_execution_command.
2685 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2686 (mi_execute_async_cli_command): Use mi_async_p.
2687 (_initialize_mi_main): Install "set mi-async". Make
2688 "target-async" a deprecated alias.
2689
92bcb5f9
PA
26902014-05-29 Pedro Alves <palves@redhat.com>
2691
2692 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2693 (_initialize_cli_interp): Adjust.
2694 * event-loop.c: Include "observer.h".
2695 (start_event_loop): Notify 'command_error' observers instead of
2696 calling display_gdb_prompt. Remove FIXME comment.
2697 * event-top.c (display_gdb_prompt): Remove call into the
2698 interpreters.
2699 * inf-loop.c: Include "observer.h".
2700 (inferior_event_handler): Notify 'command_error' observers instead
2701 of calling display_gdb_prompt.
2702 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2703 observers instead of calling display_gdb_prompt.
2704 * interps.c (interp_set): Don't call display_gdb_prompt.
2705 (current_interp_display_prompt_p): Delete.
2706 * interps.h (interp_prompt_p): Delete declaration.
2707 (interp_prompt_p_ftype): Delete.
2708 (struct interp_procs) <prompt_proc_p>: Delete field.
2709 (current_interp_display_prompt_p): Delete declaration.
2710 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2711 (_initialize_mi_interp): Adjust.
2712 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2713 'command_error' observers.
2714 (tui_on_sync_execution_done, tui_on_command_error): New
2715 functions.
2716 (tui_display_prompt_p): Delete.
2717 (_initialize_tui_interp): Adjust.
2718
fd664c91
PA
27192014-05-29 Pedro Alves <palves@redhat.com>
2720
2721 PR gdb/13860
2722 * cli/cli-interp.c: Include infrun.h and observer.h.
2723 (cli_uiout, cli_interp): New globals.
2724 (cli_on_signal_received, cli_on_end_stepping_range)
2725 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2726 functions.
2727 (cli_interpreter_init): Install them as 'end_stepping_range',
2728 'signal_received' 'signal_exited', 'exited' and 'no_history'
2729 observers.
2730 (_initialize_cli_interp): Remove cli_interp local.
2731 * infrun.c (handle_inferior_event): Call the several stop reason
2732 observers instead of printing the stop reason directly.
2733 (end_stepping_range): New function.
2734 (print_end_stepping_range_reason, print_signal_exited_reason)
2735 (print_exited_reason, print_signal_received_reason)
2736 (print_no_history_reason): Make static, and add an uiout
2737 parameter. Print to that instead of to CURRENT_UIOUT.
2738 * infrun.h (print_end_stepping_range_reason)
2739 (print_signal_exited_reason, print_exited_reason)
2740 (print_signal_received_reason print_no_history_reason): New
2741 declarations.
2742 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2743 'mi_uiout'.
2744 <cli_uiout>: New field.
2745 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2746 uiout for CLI output. Install 'signal_received',
2747 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2748 observers.
2749 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2750 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2751 (mi_on_no_history): New functions.
2752 (ui_out_free_cleanup): Delete function.
2753 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2754 instead use the one already stored in the MI interpreter data.
2755 (mi_ui_out): Adjust.
2756 * tui/tui-interp.c: Include infrun.h and observer.h.
2757 (tui_interp): New global.
2758 (tui_on_signal_received, tui_on_end_stepping_range)
2759 (tui_on_signal_exited, tui_on_exited)
2760 (tui_on_no_history): New functions.
2761 (tui_init): Install them as 'end_stepping_range',
2762 'signal_received' 'signal_exited', 'exited' and 'no_history'
2763 observers.
2764 (_initialize_tui_interp): Delete tui_interp local.
2765
8817a6f2
PA
27662014-05-29 Pedro Alves <palves@redhat.com>
2767
2768 PR gdb/15713
2769 * linux-nat.c (linux_nat_resume_callback): Rename the second
2770 parameter to 'except'. Skip LP if it points to EXCEPT.
2771 (linux_nat_resume): Don't mark the event lwp as not stopped
2772 before resuming sibling lwps. Instead ask
2773 linux_nat_resume_callback to skip the event lwp. Mark it as not
2774 stopped after actually resuming it.
2775 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2776 resuming it.
2777 (wait_lwp): Mark the lwp as stopped here.
2778 (stop_wait_callback): Mark the lwp as not stopped right after
2779 resuming it. Don't mark lwps as stopped here.
2780 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2781 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2782
251bde03
PA
27832014-05-29 Pedro Alves <palves@redhat.com>
2784
2785 PR PR15693
2786 * infrun.c (resume): Determine how much to resume depending on
2787 whether the caller wanted a step, not whether we can hardware step
2788 the target. Mark all threads that we intend to run as running,
2789 unless we're calling an inferior function.
2790 (normal_stop): If the thread is running an infcall, don't finish
2791 thread state.
2792 * target.c (target_resume): Don't mark threads as running here.
2793
7f3c0343
JB
27942014-05-28 Joel Brobecker <brobecker@adacore.com>
2795
2796 * serial.c (_initialize_serial): Remove support for
2797 the "set remotebaud" and "show remotebaud" commands.
2798 * NEWS: Add entry documenting the removal of that command.
2799
ee34b3f9
YQ
28002014-05-28 Yao Qi <yao@codesourcery.com>
2801
2802 * charset.c: Fix typo in comments.
2803
add6c04d
GB
28042014-05-27 Gary Benson <gbenson@redhat.com>
2805
2806 * utils.c (internal_vproblem): Prompt for a bug report.
2807
92c48fc5
AW
28082014-05-26 Andy Wingo <wingo@igalia.com>
2809
2810 * guile/scm-arch.c (arscm_mark_arch_smob):
2811 * guile/scm-block.c (bkscm_mark_block_smob)
2812 (bkscm_mark_block_syms_progress_smob):
2813 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2814 * guile/scm-exception.c (exscm_mark_exception_smob):
2815 * guile/scm-frame.c (frscm_mark_frame_smob):
2816 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2817 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2818 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2819 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2820 (ppscm_mark_pretty_printer_worker_smob):
2821 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2822 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2823 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2824 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2825 mark functions.
2826 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2827 function.
2828
b2715b27
AW
28292014-05-26 Andy Wingo <wingo@igalia.com>
2830 Doug Evans <xdje42@gmail.com>
2831
2832 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2833 empty_base_class. All uses updated.
2834 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2835 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2836 Adapt all callers.
2837 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2838 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2839 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2840 (gdbscm_gsmob_has_property_p, add_property_name)
2841 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2842 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2843 (gdb-object-has-property?, gdb-object-properties): Remove.
2844 (gdb-object-kind): Renamed from gsmob-kind.
2845
214ab2da
AW
28462014-05-26 Andy Wingo <wingo@igalia.com>
2847
2848 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2849 * configure: Regenerate.
2850
589fdceb
MM
28512014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2852
2853 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2854
67b5c0c1
MM
28552014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2856
2857 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2858 (replay_memory_access_read_only, replay_memory_access_read_write)
2859 (replay_memory_access_types, replay_memory_access)
2860 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2861 (cmd_set_record_btrace, cmd_show_record_btrace)
2862 (cmd_show_replay_memory_access): New.
2863 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2864 (record_btrace_remove_breakpoint): Replace
2865 record_btrace_allow_memory_access with replay_memory_access.
2866 (_initialize_record_btrace): Add commands.
2867 * NEWS: Announce it.
2868
036cd381
RR
28692014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2870
2871 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2872
c77c1e42
RR
28732014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2874
2875 * MAINTAINERS (Write After Approval): Move self back from
2876 paper trail.
2877
45741a9c
PA
28782014-05-22 Pedro Alves <palves@redhat.com>
2879
2880 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2881 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2882 (disable_randomization, enum exec_direction_kind)
2883 (execution_direction, stop_registers, start_remote)
2884 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2885 (wait_for_inferior, normal_stop, get_last_target_status)
2886 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2887 (insert_step_resume_breakpoint_at_sal)
2888 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2889 (set_step_info, print_stop_event, signal_stop_state)
2890 (signal_print_state, signal_pass_state, signal_stop_update)
2891 (signal_print_update, signal_pass_update)
2892 (update_signals_program_target, clear_exit_convenience_vars)
2893 (displaced_step_dump_bytes, update_observer_mode)
2894 (signal_catch_update, gdb_signal_from_command): Move
2895 declarations ...
2896 * infrun.h: ... to this new file.
2897 * amd64-tdep.c: Include infrun.h.
2898 * annotate.c: Include infrun.h.
2899 * arch-utils.c: Include infrun.h.
2900 * arm-linux-tdep.c: Include infrun.h.
2901 * arm-tdep.c: Include infrun.h.
2902 * break-catch-sig.c: Include infrun.h.
2903 * breakpoint.c: Include infrun.h.
2904 * common/agent.c: Include infrun.h instead of inferior.h.
2905 * corelow.c: Include infrun.h.
2906 * event-top.c: Include infrun.h.
2907 * go32-nat.c: Include infrun.h.
2908 * i386-tdep.c: Include infrun.h.
2909 * inf-loop.c: Include infrun.h.
2910 * infcall.c: Include infrun.h.
2911 * infcmd.c: Include infrun.h.
2912 * infrun.c: Include infrun.h.
2913 * linux-fork.c: Include infrun.h.
2914 * linux-nat.c: Include infrun.h.
2915 * linux-thread-db.c: Include infrun.h.
2916 * monitor.c: Include infrun.h.
2917 * nto-tdep.c: Include infrun.h.
2918 * procfs.c: Include infrun.h.
2919 * record-btrace.c: Include infrun.h.
2920 * record-full.c: Include infrun.h.
2921 * remote-m32r-sdi.c: Include infrun.h.
2922 * remote-mips.c: Include infrun.h.
2923 * remote-notif.c: Include infrun.h.
2924 * remote-sim.c: Include infrun.h.
2925 * remote.c: Include infrun.h.
2926 * reverse.c: Include infrun.h.
2927 * rs6000-tdep.c: Include infrun.h.
2928 * s390-linux-tdep.c: Include infrun.h.
2929 * solib-irix.c: Include infrun.h.
2930 * solib-osf.c: Include infrun.h.
2931 * solib-svr4.c: Include infrun.h.
2932 * target.c: Include infrun.h.
2933 * top.c: Include infrun.h.
2934 * windows-nat.c: Include infrun.h.
2935 * mi/mi-interp.c: Include infrun.h.
2936 * mi/mi-main.c: Include infrun.h.
2937 * python/py-threadevent.c: Include infrun.h.
2938
98eb56a4
PA
29392014-05-22 Pedro Alves <palves@redhat.com>
2940
2941 * infrun.c (handle_inferior_event): Store the exit code for
2942 --return-child-result here, instead of ...
2943 (print_exited_reason): ... here.
2944
17b2616c
PA
29452014-05-21 Pedro Alves <palves@redhat.com>
2946
2947 PR gdb/13860
2948 * gdbthread.h (struct thread_control_state): New field
2949 `command_interp'.
2950 * infrun.c (follow_fork): Copy the new thread control field to the
2951 child fork thread.
2952 (clear_proceed_status_thread): Clear the new thread control field.
2953 (proceed): Set the new thread control field.
2954 * interps.h (command_interp): Declare.
2955 * interps.c (command_interpreter): New global.
2956 (command_interp): New function.
2957 (interp_exec): Set `command_interpreter' while here.
2958 * cli-out.c (cli_uiout_dtor): New function.
2959 (cli_ui_out_impl): Install it.
2960 * mi/mi-interp.c: Include cli-out.h.
2961 (mi_cmd_interpreter_exec): Add comment.
2962 (restore_current_uiout_cleanup): New function.
2963 (ui_out_free_cleanup): New function.
2964 (mi_on_normal_stop): If finishing an execution command started by
2965 a CLI command, or any kind of breakpoint-like event triggered,
2966 print the stop event to the output (CLI) stream.
2967 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2968
5166082f
PA
29692014-05-21 Pedro Alves <palves@redhat.com>
2970
2971 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2972 current source line having changed.
2973 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2974 * infrun.c (normal_stop): Adjust call to
2975 set_current_sal_from_frame.
2976 * source.c (clear_lines_listed_range): New function.
2977 (set_current_source_symtab_and_line, identify_source_line): Clear
2978 the lines listed range.
2979 (line_info): Handle the first "info line" after the current source
2980 line having changed.
2981 * stack.c (print_stack_frame): Remove center handling.
2982 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2983 center sal.line.
2984
c1ee2fb3
PA
29852014-05-21 Pedro Alves <palves@redhat.com>
2986
2987 * inf-child.c (inf_child_mourn_inferior): New function.
2988 * inf-child.h (inf_child_mourn_inferior): New declaration.
2989 * darwin-nat.c (darwin_mourn_inferior): Use
2990 inf_child_mourn_inferior.
2991 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2992 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2993 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2994 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2995 * windows-nat.c (windows_mourn_inferior): Likewise.
2996
5c6d4fb2
DE
29972014-05-21 Doug Evans <xdje42@gmail.com>
2998
250748cb 2999 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3000
4a2722c5
DE
30012014-05-21 Doug Evans <xdje42@gmail.com>
3002
17292b30 3003 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3004 (gdbscm_out_of_range_error): Ditto.
3005 (gdbscm_memory_error): Ditto.
250748cb
DE
3006 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3007 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3008 (gdbscm_out_of_range_error): Update.
3009 (gdbscm_memory_error): Update.
3010 (gdbscm_scm_to_target_string_unsafe): Delete.
3011
6a3cb8e8
PA
30122014-05-21 Pedro Alves <palves@redhat.com>
3013
3014 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3015 globals.
3016 (inf_child_open_target): New function.
3017 (inf_child_open): Use inf_child_open_target to push the target
3018 instead of erroring out.
3019 (inf_child_disconnect, inf_child_close)
3020 (inf_child_maybe_unpush_target): New functions.
3021 (inf_child_target): Install inf_child_disconnect and
3022 inf_child_close. Store a pointer to the returned object.
3023 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3024 declarations.
3025 * target.c (auto_connect_native_target): New global.
3026 (show_default_run_target): New function.
3027 (find_default_run_target): Return NULL if automatically connecting
3028 to the native target is disabled.
3029 (_initialize_target): Install set/show auto-connect-native-target.
3030 * NEWS: Mention "set auto-connect-native-target", and "target
3031 native".
3032 * linux-nat.c (super_close): New global.
3033 (linux_nat_close): Call super_close.
3034 (linux_nat_add_target): Store a pointer to the base class's
3035 to_close method.
3036 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3037 inf_child_maybe_unpush.
3038 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3039 already pushed.
3040 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3041 the inferior. Use inf_child_maybe_unpush_target.
3042 (inf_ttrace_attach): Don't push the target if it is already
3043 pushed.
3044 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3045 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3046 after mourning the inferior. Use inf_child_maybe_unpush_target.
3047 (darwin_attach_pid): Don't push the target if it is already
3048 pushed.
3049 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3050 mourning the inferior. Use inf_child_maybe_unpush_target.
3051 (gnu_detach): Use inf_child_maybe_unpush_target.
3052 * go32-nat.c (go32_create_inferior): Don't push the target if it
3053 is already pushed.
3054 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3055 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3056 (procfs_open): Rename to ...
3057 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3058 comments. Can target_preopen before changing node. Call
3059 inf_child_open_target to push the target explicitly.
3060 (procfs_attach): Don't push the target if it is already pushed.
3061 (procfs_detach): Use inf_child_maybe_unpush_target.
3062 (procfs_create_inferior): Don't push the target if it is already
3063 pushed.
3064 (nto_native_ops): New global.
3065 (procfs_open): Reimplement.
3066 (procfs_native_open): New function.
3067 (init_procfs_targets): Install procfs_native_open as to_open of
3068 "target native". Store a pointer to the "native" target in
3069 nto_native_ops.
3070 * procfs.c (procfs_attach): Don't push the target if it is already
3071 pushed.
3072 (procfs_detach): Use inf_child_maybe_unpush_target.
3073 (procfs_mourn_inferior): Only unpush the target after mourning the
3074 inferior. Use inf_child_maybe_unpush_target.
3075 (procfs_init_inferior): Don't push the target if it is already
3076 pushed.
3077 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3078 if it is already pushed.
3079
930ee1b1
PA
30802014-05-21 Pedro Alves <palves@redhat.com>
3081
3082 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3083 and "procfs" targets are now called "native" instead.
3084
1f5d1b13
PA
30852014-05-21 Pedro Alves <palves@redhat.com>
3086
3087 * go32-nat.c (go32_open): Delete.
3088 (go32_target): Don't override the to_open method.
3089
132f8e03
PA
30902014-05-21 Pedro Alves <palves@redhat.com>
3091
3092 * nto-procfs.c (procfs_can_run): New function.
3093 (nto_procfs_ops): New global.
3094 (init_procfs_targets): New, based on procfs_target. Install
3095 "target native" in addition to "target procfs".
3096 (_initialize_procfs): Call init_procfs_targets instead of adding
3097 the target here.
3098
03c136c3
PA
30992014-05-21 Pedro Alves <palves@redhat.com>
3100
3101 * windows-nat.c (windows_target): Don't override to_shortname,
3102 to_longname or to_doc.
3103
a635d0f3
PA
31042014-05-21 Pedro Alves <palves@redhat.com>
3105
3106 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3107 to_doc.
3108
4f9b5133
PA
31092014-05-21 Pedro Alves <palves@redhat.com>
3110
3111 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3112 to_shortname, to_longname or to_doc.
3113
bc85afde
PA
31142014-05-21 Pedro Alves <palves@redhat.com>
3115
3116 * go32-nat.c (go32_target): Don't override to_shortname,
3117 to_longname or to_doc.
3118
4ebfc96e
PA
31192014-05-21 Pedro Alves <palves@redhat.com>
3120
3121 * inf-child.c (inf_child_open): Remove mention of "child".
3122 (inf_child_target): Rename target to "native" instead of "child".
3123
2648dfed
AA
31242014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3125
3126 * Makefile.in (SFILES): Delete "regset.c".
3127 (COMMON_OBS): Delete "regset.o".
3128 * regset.c: Remove.
3129 * regset.h (regset_alloc): Delete prototype.
3130
b13feb94
AA
31312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3132
3133 * sparc-linux-tdep.c (sparc32_linux_gregset)
3134 (sparc32_linux_fpregset): New static regset structures.
3135 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3136 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3137 'fpregset' fields.
3138 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3139 (sparc64_linux_fpregset): New static regset structures.
3140 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3141 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3142 New static regset structures.
3143 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3144 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3145 New static regset structures.
3146 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3147 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3148 New static regset structures.
3149 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3150 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3151 New static regset structures.
3152 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3153
b4fd25c9
AA
31542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3155
3156 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3157 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3158 register maps ("regmaps") from "*regset" to "*regmap". Do this
3159 for all regmap types and variables.
3160 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3161 (sparc32_linux_supply_core_gregset)
3162 (sparc32_linux_collect_core_gregset)
3163 (sparc32_linux_supply_core_fpregset)
3164 (sparc32_linux_collect_core_fpregset): Likewise.
3165 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3166 (sparc_gregmap, sparc_fpregmap): ... these.
3167 (sparc_supply_gregset, sparc_collect_gregset)
3168 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3169 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3170 (_initialize_sparc_nat): Rename regmaps.
3171 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3172 (sparc_gregmap, sparc_fpregmap): ... these.
3173 (sparc_supply_gregset, sparc_collect_gregset)
3174 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3175 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3176 Rename macros to...
3177 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3178 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3179 Likewise.
3180 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3181 Rename to...
3182 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3183 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3184 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3185 regmaps.
3186 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3187 (sparc32_bsd_fpregset): Rename to...
3188 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3189 (sparc32_bsd_fpregmap): ... these.
3190 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3191 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3192 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3193 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3194 (struct sparc_gregmap, struct sparc_fpregmap)
3195 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3196 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3197 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3198 (sparc32_supply_regset, sparc32_collect_gregset)
3199 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3200 prototypes.
3201 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3202 (sparc64_linux_ptrace_gregmap): ... this.
3203 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3204 (_initialize_sparc64_linux_nat): Rename regmaps.
3205 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3206 (sparc64_linux_core_gregmap): ... this.
3207 (sparc64_linux_supply_core_gregset)
3208 (sparc64_linux_collect_core_gregset)
3209 (sparc64_linux_supply_core_fpregset)
3210 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3211 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3212 (sparc64_sol2_fpregset): Rename to...
3213 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3214 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3215 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3216 regmaps.
3217 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3218 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3219 (sparc64_bsd_fpregset): Rename to...
3220 (struct sparc_gregmap, sparc64_sol2_gregmap)
3221 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3222 (sparc64_bsd_fpregmap): ... these.
3223 (sparc64_supply_gregset, sparc64_collect_gregset)
3224 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3225 prototypes.
3226 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3227 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3228 (sparc64fbsd_gregmap): ... this.
3229 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3230 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3231 Rename regmaps.
3232 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3233 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3234 (sparc64nbsd_collect_fpregset): Likewise.
3235 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3236 (sparc64nbsd_gregmap): ... this.
3237 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3238 regmaps.
3239 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3240 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3241 (sparc64obsd_gregmap): ... this.
3242 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3243 regmaps.
3244 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3245 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3246 (sparc32nbsd_gregmap): ... this.
3247 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3248 regmaps.
3249
8fea3224
AA
32502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3251
3252 * score-tdep.c (score7_linux_gregset): New static regset
3253 structure.
3254 (score7_linux_regset_from_core_section): Remove dynamic regset
3255 allocation.
3256 (score_gdbarch_init): Drop allocation of tdep structure.
3257 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3258
24534243
AA
32592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3260
3261 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3262 regset structures.
3263 (am33_regset_from_core_section): Remove dynamic regset
3264 allocations.
3265
b7195f27
AA
32662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3267
3268 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3269 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3270 structures.
3271 (mips_linux_regset_from_core_section): Remove dynamic regset
3272 allocations.
3273 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3274 'gregset64', 'fpregset', and 'fpregset64'.
3275 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3276 deleted tdep fields.
3277
ecc37a5a
AA
32782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3279
3280 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3281 regset structures.
3282 (amd64_regset_from_core_section): Remove dynamic regset
3283 allocations.
3284 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3285 structure.
3286 (amd64obsd_regset_from_core_section): Remove dynamic regset
3287 allocation.
3288 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3289 Likewise.
3290 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3291 x86-common regset supply function.
3292 * i386-tdep.c (i386_collect_gregset): Make static.
3293 (i386_gregset): New global regset structure.
3294 (i386_fpregset, i386_xstateregset): New static regset structures.
3295 (i386_regset_from_core_section): Remove dynamic regset
3296 allocations.
3297 (i386_gdbarch_init): Remove initialization of tdep fields
3298 'gregset', 'fpregset', and 'xstateregset'.
3299 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3300 'fpregset', and 'xstateregset'.
3301 (i386_collect_gregset): Remove prototype.
3302 (i386_gregset): New declaration.
3303 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3304 structure.
3305 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3306 allocation.
3307
b7611c43
AA
33082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3309
3310 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3311 (arm_linux_vfpregset): New static regset structures.
3312 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3313 regset structures.
3314 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3315 and 'vfpregset' fields.
3316
a069a2bd
AA
33172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3318
3319 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3320 (aarch64_linux_fpregset): New static regset structures.
3321 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3322 of regset structures.
3323 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3324 'fpregset' fields.
3325
09424cff
AA
33262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3327
3328 * regset.h (struct regset): Remove gdbarch field.
3329 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3330 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3331 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3332 Likewise.
3333 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3334 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3335 (ppc32_linux_vsxregset): Likewise.
3336 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3337 via the regcache instead of the regset.
3338 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3339 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3340 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3341 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3342 Likewise.
3343
3ca7dae4
AA
33442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3345
3346 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3347 Constify structures.
3348 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3349 (alphanbsd_aout_gregset): Likewise.
3350 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3351 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3352 Likewise.
3353 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3354 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3355 Likewise.
3356 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3357 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3358 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3359 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3360 * m88k-tdep.c (m88k_gregset): Likewise.
3361 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3362 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3363 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3364 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3365 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3366 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3367 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3368 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3369 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3370 Likewise.
3371 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3372 * sh-tdep.h (sh_corefile_gregset): Likewise.
3373 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3374 * vax-tdep.c (vax_gregset): Likewise.
3375
5876f503
JK
33762014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3377
3378 Fix TLS access for -static -pthread.
3379 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3380 (try_thread_db_load_1): Initialize it.
3381 (thread_db_get_thread_local_address): Call it if LM is zero.
3382 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3383 * target.h (struct target_ops) (to_get_thread_local_address): Add
3384 load_module_addr comment.
3385
0256a6ac
PA
33862014-05-21 Pedro Alves <palves@redhat.com>
3387
3388 * dcache.c (dcache_read_memory_partial): If reading the cache line
3389 fails, fallback to reading just the memory the caller wanted.
3390
227533ac
DE
33912014-05-20 Doug Evans <dje@google.com>
3392
3393 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3394 instead of get_current_arch.
3395
936d2992
PA
33962014-05-20 Pedro Alves <palves@redhat.com>
3397
3398 * NEWS: Mention that compare-sections now works with all targets.
3399
3400 * remote.c (PACKET_qCRC): New enum value.
3401 (remote_verify_memory): Don't send qCRC if the target has no
3402 execution. Use packet_support/packet_ok. If the target doesn't
3403 support the qCRC packet, fallback to a deep memory copy.
3404 (compare_sections_command): Say "target image" instead of "remote
3405 executable".
3406 (_initialize_remote): Add PACKET_qCRC to the list of config
3407 packets that have no associated command. Extend comment.
3408 * target.c (simple_verify_memory, default_verify_memory): New
3409 function.
3410 * target.h (struct target_ops) <to_verify_memory>: Default to
3411 default_verify_memory.
3412 (simple_verify_memory): New declaration.
3413 * target-delegates.c: Regenerate.
3414
e59fa00f
MM
34152014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3416
3417 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3418
f2205de0
HZ
34192014-05-20 Hui Zhu <hui@codesourcery.com>
3420 Yao Qi <yao@codesourcery.com>
3421
3422 PR backtrace/16558
3423 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3424 and change address of sp and pc.
3425
c4e54771
TT
34262014-05-19 Tom Tromey <tromey@redhat.com>
3427
3428 * gdbtypes.c (rank_function): Use XNEWVEC.
3429 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3430
73051182
DE
34312014-05-19 Doug Evans <dje@google.com>
3432
3433 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3434 build_type_unit_groups and moved closer to only caller. Remove
3435 arguments. All references updated. Remove outdated .gdb_index
3436 comment.
3437 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3438 build_type_psymtabs_1.
3439
8832e7e3
DE
34402014-05-19 Doug Evans <dje@google.com>
3441
3442 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3443 n_type_unit_groups, all_type_unit_groups. All uses removed.
3444 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3445 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3446 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3447 (add_type_unit_group_to_table): Delete.
3448
cd8ae15e
DE
34492014-05-19 Doug Evans <dje@google.com>
3450
3451 * eval.c (evaluate_subexp_standard): Add some comments.
3452
08f4850b
DE
34532014-05-17 Doug Evans <xdje42@gmail.com>
3454
3455 * progspace.c (remove_program_space): Delete, unused.
3456 * progspace.h (remove_program_space): Ditto.
3457
bed8455c
DE
34582014-05-17 Doug Evans <xdje42@gmail.com>
3459
3460 * inferior.c (prune_inferiors): Fix comment.
3461 (remove_inferior_command): Call prune_program_spaces.
3462
8d551b02
DE
34632014-05-16 Doug Evans <dje@google.com>
3464
3465 New command line option -D.
3466 * NEWS: Mention it.
3467 * main.c (set_gdb_data_directory): New function.
3468 (captured_main): Recognize -D. Flag error for --data-directory "".
3469 Call set_gdb_data_directory.
3470 (print_gdb_help): Print --data-directory, -D.
3471 * main.h (set_gdb_data_directory): Declare.
3472 * top.c (staged_gdb_datadir): New static global.
3473 (set_gdb_datadir): Call set_gdb_data_directory
3474 (show_gdb_datadir): New function.
3475 (init_main): Update init of data-directory parameter.
3476
18848e28
GF
34772014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3478
3479 Import the "dirfd" gnulib module.
3480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3481 * gnulib/aclocal.m4: Update.
3482 * gnulib/config.in: Update.
3483 * gnulib/configure: Update.
3484 * gnulib/import/Makefile.am: Update.
3485 * gnulib/import/Makefile.in: Update.
3486 * gnulib/import/dirfd.c: New.
3487 * gnulib/import/m4/dirfd.m4: New.
3488 * gnulib/import/m4/gnulib-cache.m4: Update.
3489 * gnulib/import/m4/gnulib-comp.m4: Update.
3490
95c64f92
YQ
34912014-05-16 Pierre Muller <muller@sourceware.org>
3492 Yao Qi <yao@codesourcery.com>
3493
3494 * valprint.c (print_wchar): Move the code on checking whether
3495 W is a printable wide char to the default branch of switch
3496 statement below. Call wchar_printable instead of gdb_iswprint.
3497
cac395ea
TM
34982014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3499
19679eca 3500 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
3501 ldr.w and ldrd instructions.
3502
83655187
DE
35032014-05-15 Doug Evans <dje@google.com>
3504
3505 * dwarf2read.c (read_structure_type): Delete outdated comments.
3506
dd756689
TT
35072014-05-14 Tom Tromey <tromey@redhat.com>
3508
3509 * macrocmd.c (print_macro_definition): Reindent.
3510
75ddda77
DE
35112014-05-13 Doug Evans <xdje42@gmail.com>
3512
3513 * python/py-cmd.c (cmdpy_completer): Add comment.
3514 (completers): Make const.
3515
b0f16a3e
SM
35162014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3517
3518 * infrun.c (resume): Remove should_resume (unused). Move up
3519 declaration of resume_ptid.
3520
033c3379
TT
35212014-05-13 Tom Tromey <tromey@redhat.com>
3522
3523 * language.h (unop_type_check): Remove.
3524 (binop_type_check): Don't declare.
3525
9b44a3a5
AA
35262014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3527
3528 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3529 call to regcache_raw_collect.
3530
303a33fa
SM
35312014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3532
3533 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3534 mi_console->quote as the quoting character.
3535
196100a0
SM
35362014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3537
3538 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3539
f989a1c8
TT
35402014-04-29 Tom Tromey <tromey@redhat.com>
3541
3542 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3543 "show debug varobj".
3544
9404b58f
KM
35452014-05-07 Kyle McMartin <kyle@redhat.com>
3546
3547 Pushed by Joel Brobecker <brobecker@adacore.com>.
3548 * aarch64-tdep.c (aarch64_software_single_step): New function.
3549 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3550 with aarch64_software_single_step.
3551
5e49ba57
JB
35522014-05-05 Joel Brobecker <brobecker@adacore.com>
3553
3554 GDB 7.7.1 released.
3555
c888a17d
KS
35562014-05-05 Keith Seitz <keiths@redhat.com>
3557
3558 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3559 variable or history value is successfully parsed.
3560
290a839c
YQ
35612014-05-05 Yao Qi <yao@codesourcery.com>
3562 Pedro Alves <palves@redhat.com>
3563
3564 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3565 address of blocks that intersects the requested range. Trim
3566 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3567 sections.
3568 * ctf.c (ctf_xfer_partial): Likewise.
3569
91256dc2
YQ
35702014-05-05 Yao Qi <yao@codesourcery.com>
3571
3572 * printcmd.c (display_command): Remove the check to
3573 target_has_execution.
3574
07284463
MK
35752014-05-03 Mark Kettenis <kettenis@gnu.org>
3576
3577 * ppcobsd-nat.c: Include "obsd-nat.h".
3578 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3579 add_target.
3580 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3581
30a1e6cc
SDJ
35822014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3583
3584 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3585 and 16-bit signed and unsigned arguments. Update comment.
3586 (stap_parse_probe_arguments): Extend code to handle such
3587 arguments. Use warning instead of complaint to notify about
3588 unrecognized bitness.
3589
f33da99a
SDJ
35902014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3591
3592 PR breakpoints/16889
3593 * stap-probe.c (stap_parse_probe_arguments): Simplify
3594 check for non-prefixed probes (i.e., probes whose
3595 arguments do not start with "N@"). Always set the
3596 argument type to a sane value.
3597
95cf3b38
DT
35982014-05-01 David Taylor <dtaylor@emc.com>
3599
3600 * remote.c (compare_sections_command): Add -r option to compare
3601 all loadable read-only sections.
3602
1cfdf534
SC
36032014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3604
3605 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3606 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3607 Update all callers.
3608 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3609 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3610 Remove unused CORE_ADDR argument. Update all callers.
3611
ca4f7f8b
PA
36122014-04-29 Pedro Alves <palves@redhat.com>
3613
3614 * remote.c (struct packet_config) <detect>: Extend comment.
3615 (add_packet_config_cmd): Don't set the config's detect or support
3616 fields here.
3617 (init_all_packet_configs): Also initialize the config's 'detect'
3618 field.
3619 (reset_all_packet_configs_support): New function.
3620 (remote_open_1): Call reset_all_packet_configs_support instead of
3621 init_all_packet_configs.
3622 (_initialize_remote): Initialize all packet configs. Assert that
3623 all packets have an associated command, except a few known
3624 outliers.
3625
11c1ba78
JB
36262014-04-28 Joel Brobecker <brobecker@adacore.com>
3627
3628 * dwarf2read.c (read_subrange_type): Handle dynamic
3629 DW_AT_lower_bound attributes.
3630
8739bc53
JB
36312014-04-28 Joel Brobecker <brobecker@adacore.com>
3632
3633 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3634 dynamic bounds before computing its upper bound.
3635 (ada_discrete_type_low_bound): Same as above with the lower bound.
3636
6f8a3220
JB
36372014-04-28 Joel Brobecker <brobecker@adacore.com>
3638
3639 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3640 range types. Adjust the array handling implementation to
3641 take advantage of this change.
3642 (resolve_dynamic_range): New function, mostly extracted from
3643 resolve_dynamic_bounds.
3644 (resolve_dynamic_array): New function, mostly extracted from
3645 resolve_dynamic_bounds.
3646 (resolve_dynamic_bounds): Delete.
3647 (resolve_dynamic_type): Reimplement. Add handling of
3648 TYPE_CODE_RANGE types.
3649
4d072ce4
JB
36502014-04-28 Joel Brobecker <brobecker@adacore.com>
3651
3652 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3653 handling of parallel ___XA types.
3654
52865325
JB
36552014-04-28 Joel Brobecker <brobecker@adacore.com>
3656
3657 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3658 unnecessary second call to static_unwrap_type.
3659
433e77fa
HZ
36602014-04-27 Hui Zhu <hui@codesourcery.com>
3661
3662 * stack.c (print_frame_info): Call do_gdb_disassembly with
3663 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3664
b51a69ee
DE
36652014-04-26 Doug Evans <xdje42@gmail.com>
3666
3667 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3668
7ae1a6a6
PA
36692014-04-25 Pedro Alves <palves@redhat.com>
3670
3671 PR server/16255
3672 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3673 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3674 and newline from built string.
3675 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3676 (linux_ptrace_attach_fail_reason): ... this.
3677 * linux-nat.c (linux_nat_attach): Adjust to use
3678 linux_ptrace_attach_fail_reason.
3679
4082afcc
PA
36802014-04-25 Pedro Alves <palves@redhat.com>
3681
3682 * remote.c (struct remote_state): Remove multi_process_aware,
3683 non_stop_aware, cond_tracepoints, cond_breakpoints,
3684 breakpoint_commands, fast_tracepoints, static_tracepoints,
3685 install_in_trace, disconnected_tracing,
3686 enable_disable_tracepoints, string_tracing, and
3687 augmented_libraries_svr4_read fields.
3688 (remote_multi_process_p): Move further below in the file.
3689 (struct packet_config): Add comments.
3690 (update_packet_config): Delete function.
3691 (show_packet_config_cmd): Use packet_config_support.
3692 (add_packet_config_cmd): Use NULL as set callback.
3693 (packet_ok): "set remote foo-packet"-style commands no longer
3694 change config->supported -- adjust.
3695 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3696 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3697 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3698 (PACKET_QNonStop, PACKET_multiprocess_feature)
3699 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3700 (PACKET_DisconnectedTracing_feature)
3701 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3702 (set_remote_protocol_packet_cmd): Delete function.
3703 (packet_config_support, packet_support): New functions.
3704 (set_remote_protocol_Z_packet_cmd): Don't call
3705 update_packet_config.
3706 (remote_query_attached, remote_pass_signals)
3707 (remote_program_signals, remote_threads_info)
3708 (remote_threads_extra_info, remote_start_remote): Use
3709 packet_support.
3710 (remote_start_remote): Use packet_config_support and
3711 packet_support.
3712 (init_all_packet_configs): Set all packets to unknown support,
3713 instead of calling update_packet_config.
3714 (remote_check_symbols): Use packet_support.
3715 (remote_supported_packet): Unconditionally set the packet config's
3716 support status.
3717 (remote_multi_process_feature, remote_non_stop_feature)
3718 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3719 (remote_breakpoint_commands_feature)
3720 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3721 (remote_install_in_trace_feature)
3722 (remote_disconnected_tracing_feature)
3723 (remote_enable_disable_tracepoint_feature)
3724 (remote_string_tracing_feature)
3725 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3726 (remote_protocol_features): Adjust to use remote_supported_packet
3727 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3728 "ConditionalTracepoints", "ConditionalBreakpoints",
3729 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3730 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3731 "EnableDisableTracepoints", and "tracenz".
3732 (remote_query_supported): Use packet_support.
3733 (remote_open_1): Adjust.
3734 (extended_remote_attach_1): Use packet_support. Switch on the
3735 result of packet_ok instead of checking whether the packet ended
3736 up disabled.
3737 (remote_vcont_resume): Use packet_support.
3738 (remote_resume, remote_stop_ns, fetch_register_using_p)
3739 (remote_prepare_to_store, store_register_using_P)
3740 (check_binary_download, remote_write_bytes): Use packet_support.
3741 (remote_vkill): Use packet_support. Switch on the result of
3742 packet_ok instead of checking whether the packet ended up
3743 disabled.
3744 (extended_remote_supports_disable_randomization): Use
3745 packet_support.
3746 (extended_remote_run): Switch on the result of packet_ok instead
3747 of checking whether the packet ended up disabled.
3748 (remote_insert_breakpoint, remote_remove_breakpoint)
3749 (remote_insert_watchpoint, remote_remove_watchpoint)
3750 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3751 packet_support.
3752 (remote_search_memory): Use packet_config_support.
3753 (remote_get_thread_local_address, remote_get_tib_address)
3754 (remote_hostio_send_command, remote_can_execute_reverse): Use
3755 packet_support.
3756 (remote_supports_cond_tracepoints)
3757 (remote_supports_cond_breakpoints)
3758 (remote_supports_fast_tracepoints)
3759 (remote_supports_static_tracepoints)
3760 (remote_supports_install_in_trace)
3761 (remote_supports_enable_disable_tracepoint)
3762 (remote_supports_string_tracing)
3763 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3764 the packet config says the feature is enabled or disabled.
3765 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3766 (remote_get_trace_status): Use packet_support.
3767 (remote_set_disconnected_tracing): Adjust to check whether the
3768 feature is enabled with packet_support.
3769 (remote_set_trace_buffer_size, remote_use_agent)
3770 (remote_can_use_agent, remote_supports_btrace): Use
3771 packet_support.
3772 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3773 Use packet_config_support.
3774 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3775 the packet config says the feature is enabled or disabled.
3776 (set_range_stepping): Use packet_support.
3777
bdb52a22
TT
37782014-04-25 Tom Tromey <tromey@redhat.com>
3779
3780 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3781 argument.
3782
e9475ead
SA
37832014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3784
3785 * NEWS: Mention support for C99 variable length arrays.
3786
82eacd52
JB
37872014-04-24 Joel Brobecker <brobecker@adacore.com>
3788
3789 * ada-lang.c (standard_exc): Expand introductory comment.
3790
01f9f808
MS
37912014-04-24 Michael Sturm <michael.sturm@mintel.com>
3792 Walfred Tedeschi <walfred.tedeschi@intel.com>
3793
3794 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3795 AVX512 registers.
3796 (amd64_linux_read_description): Add code to handle AVX512 xstate
3797 mask and return respective tdesc.
3798 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3799 and features/i386/x32-avx512-linux.c.
3800 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3801 (amd64_linux_core_read_description): Add code to handle AVX512
3802 xstate mask and return respective tdesc.
3803 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3804 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3805 calculation.
3806 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3807 (tdesc_amd64_avx512_linux): New prototype.
3808 (tdesc_x32_avx512_linux): Likewise.
3809 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3810 features/i386/x32-avx512.c.
3811 (amd64_ymm_avx512_names): New register names for pseudo
3812 registers YMM16-31.
3813 (amd64_ymmh_avx512_names): New register names for raw registers
3814 YMMH16-31.
3815 (amd64_k_names): New register names for K registers.
3816 (amd64_zmmh_names): New register names for ZMM raw registers.
3817 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3818 (amd64_xmm_avx512_names): New register names for XMM16-31
3819 registers.
3820 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3821 registers.
3822 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3823 if feature is present.
3824 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3825 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3826 (AMD64_NUM_REGS): Adjust to new number of registers.
3827 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3828 registers supplied via XSTATE by AVX512 registers.
3829 (i386_linux_read_description): Add case for AVX512.
3830 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3831 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3832 (i386_linux_core_read_description): Add case for AVX512.
3833 (i386_linux_init_abi): Install supported register note section
3834 for AVX512.
3835 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3836 AVX512.
3837 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3838 registers to be number of zmm7h + 1.
3839 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3840 * i386-tdep.c: Include features/i386/i386-avx512.c.
3841 (i386_zmm_names): Add ZMM pseudo register names array.
3842 (i386_zmmh_names): Add ZMM raw register names array.
3843 (i386_k_names): Add K raw register names array.
3844 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3845 registers. AVX512 has 16 more ZMM registers than there are YMM
3846 registers.
3847 (i386_zmmh_regnum_p): Add function to look up register number of
3848 ZMM raw registers.
3849 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3850 (i386_k_regnum_p): Likewise for K raw registers.
3851 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3852 registers added by AVX512.
3853 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3854 registers added by AVX512.
3855 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3856 added by AVX512.
3857 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3858 (i386_pseudo_register_name): Add ZMM pseudo registers.
3859 (i386_zmm_type): Construct and return vector registers type for ZMM
3860 registers.
3861 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3862 ZMM0-31 pseudo registers and K registers.
3863 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3864 and YMM16-31 registers from register cache.
3865 (i386_pseudo_register_write): Add code to write K, ZMM and
3866 YMM16-31 registers.
3867 (i386_register_reggroup_p): Add code to include/exclude AVX512
3868 registers in/from respective register groups.
3869 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3870 registers if feature is present in xcr0.
3871 (i386_gdbarch_init): Add code to initialize AVX512 feature
3872 variables in tdep structure, wire in pseudo registers and call
3873 initialize_tdesc_i386_avx512.
3874 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3875 variables.
3876 (i386_regnum): Add AVX512 registers.
3877 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3878 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3879 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3880 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3881 512 bits wide.
3882 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3883 (i386_ymm_avx512_regnum_p): Likewise.
3884 (i386_k_regnum_p): Likewise.
3885 (i386_zmm_regnum_p): Likewise.
3886 (i386_zmmh_regnum_p): Likewise.
3887 * i387-tdep.c : Update year in copyright notice.
3888 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3889 XSAVE buffer.
3890 (XSAVE_YMM_AVX512_ADDR): New macro.
3891 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3892 XSAVE buffer.
3893 (XSAVE_XMM_AVX512_ADDR): New macro.
3894 (xsave_avx512_k_offset): New table for K register offsets in
3895 XSAVE buffer.
3896 (XSAVE_AVX512_K_ADDR): New macro.
3897 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3898 in XSAVE buffer.
3899 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3900 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3901 buffer.
3902 (i387_collect_xsave): Add code to collect AVX512 registers from
3903 XSAVE buffer.
3904 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3905 of XMM16-31 registers.
3906 (I387_NUM_K_REGS): New define for number of K registers.
3907 (I387_K0_REGNUM): New define for K0 register number.
3908 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3909 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3910 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3911 registers.
3912 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3913 (I387_XMM16_REGNUM): New define for XMM16 register number.
3914 (I387_YMM0_REGNUM): New define for YMM0 register number.
3915 (I387_KEND_REGNUM): New define for last K register number.
3916 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3917 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3918 number.
3919 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3920 number.
3921 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3922 size.
3923 * features/Makefile: Add AVX512 related files.
3924 * features/i386/32bit-avx512.xml: New file.
3925 * features/i386/64bit-avx512.xml: Likewise.
3926 * features/i386/amd64-avx512-linux.c: Likewise.
3927 * features/i386/amd64-avx512-linux.xml: Likewise.
3928 * features/i386/amd64-avx512.c: Likewise.
3929 * features/i386/amd64-avx512.xml: Likewise.
3930 * features/i386/i386-avx512-linux.c: Likewise.
3931 * features/i386/i386-avx512-linux.xml: Likewise.
3932 * features/i386/i386-avx512.c: Likewise.
3933 * features/i386/i386-avx512.xml: Likewise.
3934 * features/i386/x32-avx512-linux.c: Likewise.
3935 * features/i386/x32-avx512-linux.xml: Likewise.
3936 * features/i386/x32-avx512.c: Likewise.
3937 * features/i386/x32-avx512.xml: Likewise.
3938 * regformats/i386/amd64-avx512-linux.dat: New file.
3939 * regformats/i386/amd64-avx512.dat: Likewise.
3940 * regformats/i386/i386-avx512-linux.dat: Likewise.
3941 * regformats/i386/i386-avx512.dat: Likewise.
3942 * regformats/i386/x32-avx512-linux.dat: Likewise.
3943 * regformats/i386/x32-avx512.dat: Likewise.
3944 * NEWS: Add note about new support for AVX512.
3945
3946
08351840
PA
39472014-04-23 Pedro Alves <palves@redhat.com>
3948
3949 * breakpoint.c (insert_bp_location): Tolerate errors if the
3950 breakpoint is set in a user-loaded objfile.
3951 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3952 location is marked shlib_disabled. If the breakpoint is set in a
3953 user-loaded objfile is a GDB-side memory breakpoint, validate it
3954 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3955 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3956 flag.
3957 * mem-break.c (memory_validate_breakpoint): New function.
3958 * objfiles.c (userloaded_objfile_contains_address_p): New
3959 function.
3960 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3961 * target.h (memory_validate_breakpoint): New declaration.
3962
076855f9
PA
39632014-04-23 Pedro Alves <palves@redhat.com>
3964
3965 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3966 the breakpoint is set in a shared library, only suppress
3967 errors for software breakpoints, not hardware breakpoints.
3968
483805cf
PA
39692014-04-22 Pedro Alves <palves@redhat.com>
3970
3971 * infrun.c (schedlock_applies): New function, factored out from
3972 find_thread_needs_step_over.
3973 (find_thread_needs_step_over): Use it.
3974 (switch_back_to_stepped_thread): Always clear trap_expected if the
3975 step over is finished. Return early if scheduler locking applies.
3976 Look for the stepping thread and a potential step-over thread with
3977 a single loop.
3978 (currently_stepping_or_nexting_callback): Delete.
3979
a75fef0e
NC
39802014-04-22 Nick Clifton <nickc@redhat.com>
3981
3982 * NEWS: Mention that ARM sim now supports tracing.
3983
48b6e87e
YQ
39842014-04-22 Yao Qi <yao@codesourcery.com>
3985
3986 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3987 to ...
3988 * tracefile.c (tracefile_fetch_registers): ... it. New
3989 function.
3990 * tracefile.h (tracefile_fetch_registers): Declare.
3991 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3992 tracefile_fetch_registers.
3993
17617f2d
EZ
39942014-04-19 Eli Zaretskii <eliz@gnu.org>
3995
3996 PR gdb/14018
3997 * windows-nat.c (thread_rec): Don't display a warning when
3998 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3999 fails for any reason, set th->suspended to -1, so that we don't
4000 try to resume such a thread. Also, don't return NULL in these
4001 cases, to avoid completely ruin the session due to "PC register is
4002 not available" error.
4003 (do_windows_fetch_inferior_registers): Check errors in
4004 GetThreadContext call.
4005 (windows_continue): Accept an additional argument KILLED; if not
4006 zero, ignore errors in the SetThreadContext call, since the
4007 inferior was killed and is shutting down.
4008 (windows_resume, get_windows_debug_event)
4009 (windows_create_inferior, windows_mourn_inferior)
4010 (windows_kill_inferior): All callers of windows_continue changed
4011 to adjust to its new calling sequence.
4012
5723a6fd
YQ
40132014-04-19 Yao Qi <yao@codesourcery.com>
4014
4015 * ctf.c (ctf_open): Call post_create_inferior.
4016
614d5099
YQ
40172014-04-19 Yao Qi <yao@codesourcery.com>
4018
4019 * ctf.c (handle_id): New static variable.
4020 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4021 value. Get the declaration of event "register" and get length
4022 of field "contents".
4023
dac3e710
YQ
40242014-04-19 Yao Qi <yao@codesourcery.com>
4025
4026 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4027
2bca57ba
SC
40282014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4029
4030 * valops.c (oload_method_static): Remove unnecessary argument
4031 METHOD. Update all callers.
4032
51d48146
PA
40332014-04-18 Pedro alves <palves@redhat.com>
4034 Tom Tromey <tromey@redhat.com>
4035
4036 PR backtrace/15558
4037 * frame.c (get_prev_frame_1): Rename to ...
4038 (get_prev_frame_always): ... this, and make extern. Adjust.
4039 (skip_artificial_frames): Use get_prev_frame_always.
4040 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4041 (get_frame_unwind_stop_reason): Adjust to rename.
4042 * frame.h (get_prev_frame_always): Declare.
4043 * inline-frame.c: Include frame.h.
4044 (inline_frame_this_id): Use get_prev_frame_always.
4045
1bdad2e0
TG
40462014-04-18 Tristan Gingold <gingold@adacore.com>
4047
4048 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4049 code by using bfd_mach_o_get_base_address.
4050
7ce16bd4
UW
40512014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4052
4053 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4054 (spu_ax_pseudo_register_collect): New function.
4055 (spu_ax_pseudo_register_push_stack): Likewise.
4056 (spu_dwarf_reg_to_regnum): Likewise.
4057 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4058
2ed3c037
UW
40592014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4060
4061 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4062 Replace FRAME argument with FRAME_ID.
4063 * gdbarch.c, gdbarch.h: Regenerate.
4064 * findvar.c (default_value_from_register): Add GDBARCH argument;
4065 replace FRAME by FRAME_ID. No longer call get_frame_id.
4066 (value_from_register): Update call to gdbarch_value_from_register.
4067 * value.h (default_value_from_register): Update prototype.
4068 * s390-linux-tdep.c (s390_value_from_register): Update interface
4069 and call to default_value_from_register.
4070 * spu-tdep.c (spu_value_from_register): Likewise.
4071
4072 * findvar.c (address_from_register): Remove TYPE argument.
4073 Do not call value_from_register; use gdbarch_value_from_register
4074 with null_frame_id instead.
4075 * value.h (address_from_register): Update prototype.
4076 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4077 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4078 address_from_register interface change.
4079
71e50e83
YQ
40802014-04-17 Yao Qi <yao@codesourcery.com>
4081
4082 * gdbtypes.h: Update comments to link to types and macros'
4083 definitions.
4084
7a23c549
SC
40852014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4086
4087 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4088
22869d73
KS
40892014-04-16 Keith Seitz <keiths@redhat.com>
4090
4091 PR gdb/15827
4092 * dwarf2read.c (skip_one_die): Check that all relative-offset
4093 sibling DIEs fall within range of the current reader's buffer.
4094 (read_partial_die): Likewise.
4095
c4f87ca6
KS
40962014-04-16 Keith Seitz <keiths@redhat.com>
4097
4098 PR c++/16597
4099 * cp-namespace.c (lookup_symbol_file): If the type name of
4100 `this' is NULL, return immediately.
4101
b50c8614
KS
41022014-04-14 Keith Seitz <keiths@redhat.com>
4103
4104 PR c++/16253
4105 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4106 from symbol_matches_domain in symtab.c. All local callers
4107 of symbol_matches_domain updated.
4108 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4109 search STRUCT_DOMAIN.
4110 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4111 independently. standard_lookup will do that automatically.
4112 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4113 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4114 (cp_lookup_symbol_in_namespace): Likewise.
4115 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4116 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4117 may return a STRUCT_DOMAIN match.
4118 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4119 * cp-support.c: Include language.h.
4120 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4121 VAR_DOMAIN.
4122 * psymtab.c (match_partial_symbol): Compare the requested
4123 domain with the symbol's domain directly.
4124 (lookup_partial_symbol): Likewise.
4125 * symtab.c (lookup_symbol_in_language): Explain when/why
4126 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4127 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4128 appropriate languages.
4129 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4130 and moved to ada-lang.c
4131 (lookup_block_symbol): Explain that this function only returns
4132 symbol matching the requested DOMAIN.
4133 Compare the requested domain with the symbol's domain directly.
4134 (iterate_over_symbols): Compare the requested domain with the
4135 symbol's domain directly.
4136 * symtab.h (symbol_matches_domain): Remove.
4137
3d567982
TT
41382014-04-14 Tom Tromey <tromey@redhat.com>
4139
4140 PR c++/15246:
4141 * c-exp.y (type_aggregate_p): New function.
4142 (qualified_name, classify_inner_name): Use it.
4143 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4144 and TYPE_TARGET_TYPE of an enum type.
4145 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4146 an enum type.
4147 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4148 handle TYPE_DECLARED_CLASS.
4149 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4150 types.
4151 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4152 * valops.c (enum_constant_from_type): New function.
4153 (value_aggregate_elt): Use it.
4154 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4155 TYPE_CODE_ENUM.
4156
c848d642
TT
41572014-04-14 Tom Tromey <tromey@redhat.com>
4158
4159 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4160 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4161 const.
4162 * value.h (value_aggregate_elt): Update.
4163
0626fc76
TT
41642014-04-14 Tom Tromey <tromey@redhat.com>
4165
4166 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4167
5ecaaa66
SA
41682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4169
4170 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4171 (evaluate_subexp_standard): Pass noside argument.
4172 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4173 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4174 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4175 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4176 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4177
1612e0c0
SA
41782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4179
4180 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4181 points to a constant blob.
4182
c451ebe5
SA
41832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4184
4185 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4186 property and store it as the high bound and flag the range accordingly.
4187 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4188 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4189 * gdbtypes.h (enum range_flags): New enum.
4190 (struct range_bounds): Add flags member.
4191
1d42e4c4
SA
41922014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4193
4194 * c-typeprint.c (c_type_print_varspec_suffix): Added
4195 check for not yet resolved high bound. If unresolved, print
4196 "variable length" string to the console instead of random
4197 length.
4198
9f1f738a
SA
41992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4200
4201 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4202 value.
4203 (ada_template_to_fixed_record_type_1): Likewise.
4204 (ada_to_fixed_type_1): Likewise.
4205 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4206 (cp_print_value): Likewise.
4207 * d-valprint.c (dynamic_array_type): Likewise.
4208 * findvar.c (address_of_variable): Likewise.
4209 * jv-valprint.c (java_value_print): Likewise.
4210 * valops.c (value_ind): Likewise.
4211 * value.c (coerce_ref): Likewise.
4212
3c8452d4
SA
42132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4214
4215 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4216 value and retrieve the dynamic type size.
4217
4ad88275
SA
42182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4219
4220 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4221 passed to sizeof is dynamic evaluate the argument to compute the length.
4222
80180f79
SA
42232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4224 Joel Brobecker <brobecker@adacore.com>
4225
4226 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4227 (dwarf2_evaluate_property): New function.
4228 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4229 * dwarf2read.c (attr_to_dynamic_prop): New function.
4230 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4231 attribute.
4232 * gdbtypes.c: Include dwarf2loc.h.
4233 (is_dynamic_type): New function.
4234 (resolve_dynamic_type): New function.
4235 (resolve_dynamic_bounds): New function.
4236 (get_type_length): New function.
4237 (check_typedef): Use get_type_length to compute type length.
4238 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4239 (TYPE_LOW_BOUND_KIND): New macro.
4240 (is_dynamic_type): New function prototype.
4241 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4242 to resolve dynamic properties of the type. Update comment.
4243 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4244
a1556843
RH
42452014-04-14 Richard Henderson <rth@redhat.com>
4246
4247 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4248
0be03e84
DE
42492014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4250 Doug Evans <xdje42@gmail.com>
4251
4252 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4253 dereference TYPE_CODE_REF values.
4254
6b662e19
JB
42552014-04-11 Joel Brobecker <brobecker@adacore.com>
4256
4257 Revert the following changes due to regressions:
4258
4259 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4260 (dwarf2_evaluate_property): New function.
4261 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4262 * dwarf2read.c (attr_to_dynamic_prop): New function.
4263 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4264 attribute.
4265 * gdbtypes.c: Include dwarf2loc.h.
4266 (is_dynamic_type): New function.
4267 (resolve_dynamic_type): New function.
4268 (resolve_dynamic_bounds): New function.
4269 (get_type_length): New function.
4270 (check_typedef): Use get_type_length to compute type length.
4271 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4272 (TYPE_LOW_BOUND_KIND): New macro.
4273 (is_dynamic_type): New function prototype.
4274 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4275 to resolve dynamic properties of the type. Update comment.
4276 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4277
4278 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4279 passed to sizeof is dynamic evaluate the argument to compute the length.
4280
4281 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4282 value and retrieve the dynamic type size.
4283
4284 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4285 (ada_template_to_fixed_record_type_1): Likewise.
4286 (ada_to_fixed_type_1): Likewise.
4287 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4288 (cp_print_value): Likewise.
4289 * d-valprint.c (dynamic_array_type): Likewise.
4290 * eval.c (evaluate_subexp_with_coercion): Likewise.
4291 * findvar.c (address_of_variable): Likewise.
4292 * jv-valprint.c (java_value_print): Likewise.
4293 * valops.c (value_ind): Likewise.
4294 * value.c (coerce_ref): Likewise.
4295
4296 * c-typeprint.c (c_type_print_varspec_suffix): Added
4297 check for not yet resolved high bound. If unresolved, print
4298 "variable length" string to the console instead of random
4299 length.
4300
4301 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4302 property and store it as the high bound and flag the range accordingly.
4303 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4304 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4305 * gdbtypes.h (enum range_flags): New enum.
4306 (struct range_bounds): Add flags member.
4307
4308 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4309 points to a constant blob.
4310
4311 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4312 (evaluate_subexp_standard): Pass noside argument.
4313 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4314 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4315 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4316 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4317 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4318
245a5f0b
KS
43192014-04-11 Keith Seitz <keiths@redhat.com>
4320
4321 PR c++/16675
4322 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4323 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4324 reference types.
4325
3bce8237
SA
43262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4327
4328 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4329 (evaluate_subexp_standard): Pass noside argument.
4330 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4331 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4332 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4333 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4334 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4335
92b09522
SA
43362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4337
4338 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4339 points to a constant blob.
4340
e1969afb
SA
43412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4342
4343 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4344 property and store it as the high bound and flag the range accordingly.
4345 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4346 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4347 * gdbtypes.h (enum range_flags): New enum.
4348 (struct range_bounds): Add flags member.
4349
b86138fb
SA
43502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4351
4352 * c-typeprint.c (c_type_print_varspec_suffix): Added
4353 check for not yet resolved high bound. If unresolved, print
4354 "variable length" string to the console instead of random
4355 length.
4356
bcd629a4
SA
43572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4358
4359 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4360 (ada_template_to_fixed_record_type_1): Likewise.
4361 (ada_to_fixed_type_1): Likewise.
4362 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4363 (cp_print_value): Likewise.
4364 * d-valprint.c (dynamic_array_type): Likewise.
4365 * eval.c (evaluate_subexp_with_coercion): Likewise.
4366 * findvar.c (address_of_variable): Likewise.
4367 * jv-valprint.c (java_value_print): Likewise.
4368 * valops.c (value_ind): Likewise.
4369 * value.c (coerce_ref): Likewise.
4370
04b19544
SA
43712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4372
4373 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4374 value and retrieve the dynamic type size.
4375
26cb189f
SA
43762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4377
4378 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4379 passed to sizeof is dynamic evaluate the argument to compute the length.
4380
37c1ab67
SA
43812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4382
4383 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4384 (dwarf2_evaluate_property): New function.
4385 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4386 * dwarf2read.c (attr_to_dynamic_prop): New function.
4387 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4388 attribute.
4389 * gdbtypes.c: Include dwarf2loc.h.
4390 (is_dynamic_type): New function.
4391 (resolve_dynamic_type): New function.
4392 (resolve_dynamic_bounds): New function.
4393 (get_type_length): New function.
4394 (check_typedef): Use get_type_length to compute type length.
4395 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4396 (TYPE_LOW_BOUND_KIND): New macro.
4397 (is_dynamic_type): New function prototype.
4398 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4399 to resolve dynamic properties of the type. Update comment.
4400 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4401
729efb13
SA
44022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4403
4404 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4405 declaring high/low bounds and change uses accordingly. Call
4406 create_range_type instead of create_static_range_type.
4407 * gdbtypes.c (create_range_type): New function.
4408 (create_range_type): Convert bounds into struct bound_prop and pass
4409 them to create_range_type.
4410 * gdbtypes.h (struct bound_prop): New struct.
4411 (create_range_type): New function prototype.
4412 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4413 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4414 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4415 part of the bound.
4416 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4417
0c9c3474
SA
44182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4419
4420 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4421 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4422 * ada-lang.c: All uses of create_range_type updated.
4423 * coffread.c: All uses of create_range_type updated.
4424 * dwarf2read.c: All uses of create_range_type updated.
4425 * f-exp.y: All uses of create_range_type updated.
4426 * m2-valprint.c: All uses of create_range_type updated.
4427 * mdebugread.c: All uses of create_range_type updated.
4428 * stabsread.c: All uses of create_range_type updated.
4429 * valops.c: All uses of create_range_type updated.
4430 * valprint.c: All uses of create_range_type updated.
4431
9d497a19
PA
44322014-04-10 Pedro Alves <palves@redhat.com>
4433
4434 * breakpoint.c (single_step_breakpoints)
4435 (single_step_gdbarch): Move up in the file.
4436 (one_breakpoint_xfer_memory): New function, factored out from ...
4437 (breakpoint_xfer_memory): ... here. Also process single-step
4438 breakpoints.
4439
15a9128a
TG
44402014-04-09 Tristan Gingold <gingold@adacore.com>
4441
4442 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4443 comments.
4444 (darwin_decode_exception_message): Free port only after use.
4445
9c97a070
PL
44462014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4447
4448 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4449 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4450 when setting the size of call_length.
4451
7af389b8
SC
44522014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4453
4454 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4455 dereference TYPE_CODE_REF values.
4456
86ad98c3
JB
44572014-04-07 Joel Brobecker <brobecker@adacore.com>
4458
4459 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4460 end of warning message.
4461
b0aeadb3
DE
44622014-04-03 Doug Evans <dje@google.com>
4463
4464 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4465 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4466
5979d6b6
AM
44672014-04-02 Alan Modra <amodra@gmail.com>
4468
4469 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4470 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4471 (struct symbol_file_add_from_memory_args): Add size field.
4472 (find_vdso_size): New function.
4473 (add_vsyscall_page): Attempt to find vdso size.
4474
0d60c288
DE
44752014-04-01 Doug Evans <dje@google.com>
4476
4477 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4478
a41f2563
TG
44792014-04-01 Tristan Gingold <gingold@adacore.com>
4480
4481 * darwin-nat.c (darwin_encode_reply): Add prototype.
4482 (darwin_decode_exception_message): Reply to unknown inferiors.
4483 (darwin_decode_message): Handle message by id. Ignore message
4484 to unknown inferior.
4485 (darwin_wait): Discard unknown messages, add debug trace.
4486
11a865c8
DE
44872014-03-31 Doug Evans <dje@google.com>
4488
4489 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4490 comp_dir_string.
4491
770e7fc7
DE
44922014-03-31 Doug Evans <dje@google.com>
4493
4494 New option "set print symbol-loading".
4495 * NEWS: Mention it.
4496 * solib.c (solib_read_symbols): Only print symbol loading messages
4497 if requested.
4498 (solib_add): If symbol loading is in "brief" mode, notify user
4499 symbols are being loaded.
4500 (reload_shared_libraries_1): Ditto.
4501 * symfile.c (print_symbol_loading_off): New static global.
4502 (print_symbol_loading_brief): New static global.
4503 (print_symbol_loading_full): New static global.
4504 (print_symbol_loading_enums): New static global.
4505 (print_symbol_loading): New static global.
4506 (print_symbol_loading_p): New function.
4507 (symbol_file_add_with_addrs): Only print symbol loading messages
4508 if requested.
4509 (_initialize_symfile): Register "print symbol-loading" set/show
4510 command.
4511 * symfile.h (print_symbol_loading_p): Declare.
4512
c32c64b7
DE
45132014-03-30 Doug Evans <xdje42@gmail.com>
4514
4515 * infrun.c (set_last_target_status): New function.
4516 (handle_inferior_event): Call it.
4517
7c0bc051
DE
45182014-03-30 Doug Evans <xdje42@gmail.com>
4519
4520 * inferior.h (enum stop_kind): Improve comment.
4521
8776cfe9
JB
45222014-03-28 Joel Brobecker <brobecker@adacore.com>
4523
4524 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4525 a reference, strip the reference layer before calling
4526 the lang_ops value_has_mutated callback.
4527
410a0ff2
SDJ
45282014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4529
4530 Remove some globals from our parser.
4531 * language.c (unk_lang_parser): Add "struct parser_state"
4532 argument.
4533 * language.h (struct language_defn) <la_parser>: Likewise.
4534 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4535 (initialize_expout): Add "struct parser_state" argument.
4536 Rewrite function to use the parser state.
4537 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4538 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4539 write_exp_elt_longcst, write_exp_elt_dblcst,
4540 write_exp_elt_decfloatcst, write_exp_elt_type,
4541 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4542 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4543 write_dollar_variable): Likewise.
4544 (parse_exp_in_context_1): Use parser state.
4545 (insert_type_address_space): Add "struct parser_state" argument.
4546 Use parser state.
4547 (increase_expout_size): New function.
4548 * parser-defs.h: Forward declare "struct language_defn" and
4549 "struct parser_state".
4550 (expout, expout_size, expout_ptr): Remove extern declarations.
4551 (parse_gdbarch, parse_language): Rewrite macro declarations to
4552 accept the parser state.
4553 (struct parser_state): New struct.
4554 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4555 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4556 write_exp_elt_decfloatcst, write_exp_elt_type,
4557 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4558 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4559 write_exp_msymbol, write_dollar_variable,
4560 mark_struct_expression, insert_type_address_space): Add "struct
4561 parser_state" argument.
4562 (increase_expout_size): New function.
4563 * utils.c (do_clear_parser_state): New function.
4564 (make_cleanup_clear_parser_state): Likewise.
4565 * utils.h (make_cleanup_clear_parser_state): New function
4566 prototype.
4567 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4568 Update calls to write_exp* in order to pass the parser state.
4569 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4570 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4571 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4572 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4573 * stap-probe.c (stap_parse_register_operand): Likewise.
4574 (stap_parse_single_operand): Likewise.
4575 (stap_parse_argument_1): Likewise.
4576 (stap_parse_argument): Use parser state.
4577 * stap-probe.h: Include "parser-defs.h".
4578 (struct stap_parse_info) <pstate>: New field.
4579 * c-exp.y (parse_type): Rewrite to use parser state.
4580 (yyparse): Redefine to c_parse_internal.
4581 (pstate): New global variable.
4582 (parse_number): Add "struct parser_state" argument.
4583 (write_destructor_name): Likewise.
4584 (type_exp): Update calls to write_exp* and similars in order to
4585 use parser state.
4586 (exp1, exp, variable, qualified_name, space_identifier,
4587 typename, typebase): Likewise.
4588 (write_destructor_name, parse_number, lex_one_token,
4589 classify_name, classify_inner_name, c_parse): Add "struct
4590 parser_state" argument. Update function to use parser state.
4591 * c-lang.h: Forward declare "struct parser_state".
4592 (c_parse): Add "struct parser_state" argument.
4593 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4594 (yyparse): Redefine macro to ada_parse_internal.
4595 (pstate): New variable.
4596 (write_int, write_object_renaming, write_var_or_type,
4597 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4598 type_int, type_long, type_long_long, type_float, type_double,
4599 type_long_double, type_char, type_boolean, type_system_address):
4600 Add "struct parser_state" argument.
4601 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4602 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4603 var_or_type, aggregate, aggregate_component_list,
4604 positional_list, others, component_group,
4605 component_associations): Update calls to write_exp* and similar
4606 functions in order to use parser state.
4607 (ada_parse, write_var_from_sym, write_int,
4608 write_exp_op_with_string, write_object_renaming,
4609 find_primitive_type, write_selectors, write_ambiguous_var,
4610 write_var_or_type, write_name_assoc, type_int, type_long,
4611 type_long_long, type_float, type_double, type_long_double,
4612 type_char, type_boolean, type_system_address): Add "struct
4613 parser_state" argument. Adjust function to use parser state.
4614 * ada-lang.c (parse): Likewise.
4615 * ada-lang.h: Forward declare "struct parser_state".
4616 (ada_parse): Add "struct parser_state" argument.
4617 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4618 calls to both functions.
4619 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4620 parser state.
4621 (yyparse): Redefine macro to f_parse_internal.
4622 (pstate): New variable.
4623 (parse_number): Add "struct parser_state" argument.
4624 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4625 and similars in order to use parser state.
4626 (parse_number): Adjust code to use parser state.
4627 (yylex): Likewise.
4628 (f_parse): New function.
4629 * f-lang.h: Forward declare "struct parser_state".
4630 (f_parse): Add "struct parser_state" argument.
4631 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4632 parser state.
4633 (yyparse): Redefine macro for java_parse_internal.
4634 (pstate): New variable.
4635 (push_expression_name, push_expression_name, insert_exp): Add
4636 "struct parser_state" argument.
4637 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4638 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4639 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4640 PostIncrementExpression, PostDecrementExpression,
4641 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4642 UnaryExpressionNotPlusMinus, CastExpression,
4643 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4644 RelationalExpression, EqualityExpression, AndExpression,
4645 ExclusiveOrExpression, InclusiveOrExpression,
4646 ConditionalAndExpression, ConditionalOrExpression,
4647 ConditionalExpression, Assignment, LeftHandSide): Update
4648 calls to write_exp* and similars in order to use parser state.
4649 (parse_number): Ajust code to use parser state.
4650 (yylex): Likewise.
4651 (java_parse): New function.
4652 (push_variable): Add "struct parser_state" argument. Adjust
4653 code to user parser state.
4654 (push_fieldnames, push_qualified_expression_name,
4655 push_expression_name, insert_exp): Likewise.
4656 * jv-lang.h: Forward declare "struct parser_state".
4657 (java_parse): Add "struct parser_state" argument.
4658 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4659 parser state.
4660 (yyparse): Redefine macro to m2_parse_internal.
4661 (pstate): New variable.
4662 (type_exp, exp, fblock, variable, type): Update calls to
4663 write_exp* and similars to use parser state.
4664 (yylex): Likewise.
4665 (m2_parse): New function.
4666 * m2-lang.h: Forward declare "struct parser_state".
4667 (m2_parse): Add "struct parser_state" argument.
4668 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4669 * objc-lang.h: Forward declare "struct parser_state".
4670 (end_msglist): Add "struct parser_state" argument.
4671 * p-exp.y (parse_type): Rewrite macro to use parser state.
4672 (yyparse): Redefine macro to pascal_parse_internal.
4673 (pstate): New variable.
4674 (parse_number): Add "struct parser_state" argument.
4675 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4676 write_exp* and similars in order to use parser state.
4677 (parse_number, yylex): Adjust code to use parser state.
4678 (pascal_parse): New function.
4679 * p-lang.h: Forward declare "struct parser_state".
4680 (pascal_parse): Add "struct parser_state" argument.
4681 * go-exp.y (parse_type): Rewrite macro to use parser state.
4682 (yyparse): Redefine macro to go_parse_internal.
4683 (pstate): New variable.
4684 (parse_number): Add "struct parser_state" argument.
4685 (type_exp, exp1, exp, variable, type): Update calls to
4686 write_exp* and similars in order to use parser state.
4687 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4688 to use parser state.
4689 (go_parse): Likewise.
4690 * go-lang.h: Forward declare "struct parser_state".
4691 (go_parse): Add "struct parser_state" argument.
4692
342587c4
DE
46932014-03-27 Doug Evans <dje@google.com>
4694
4695 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4696
33e80786
DE
46972014-03-27 Doug Evans <dje@google.com>
4698
4699 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4700 Remove argument abbrev_section. All callers updated.
4701
1dbab08b
DE
47022014-03-27 Doug Evans <dje@google.com>
4703
4704 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4705 addr_base, ranges_base.
4706
318d3177
KS
47072014-03-26 Keith Seitz <keiths@redhat.com>
4708
4709 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4710 types, not VAR_DOMAIN.
4711
1e54db15
SL
47122014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4713
4714 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4715 "ra" registers.
4716 * features/nios2-linux.c: Regenerated.
4717 * features/nios2.c: Regenerated.
4718
d3839ede
PA
47192014-03-25 Pedro Alves <palves@redhat.com>
4720
4721 * cli/cli-script.c (script_from_file): Force the interpreter to
4722 sync mode.
4723
7588d2ec
PL
47242014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4725
4726 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4727 small stack allocation.
4728
a6290449
TG
47292014-03-24 Tristan Gingold <gingold@adacore.com>
4730
4731 * darwin-nat.c (exc_server): Remove unused prototype.
4732 (darwin_dump_message): Correctly display data on x86_64.
4733 (darwin_encode_reply): Fix style.
4734 Add comments and fix indentation.
4735
31ae9d24 47362014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
4737
4738 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4739
6339bfc4
DE
47402014-03-22 Doug Evans <xdje42@gmail.com>
4741
4742 * infcmd.c: Whitespace fixes.
4743 (interrupt_command): Merge two function comments into one.
4744
0a07590b
DE
47452014-03-22 Doug Evans <xdje42@gmail.com>
4746
4747 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4748 All uses updated.
4749
b55fbac4
YQ
47502014-03-22 Yao Qi <yao@codesourcery.com>
4751
4752 * remote.c (target_read_live_memory): Remove.
4753 (memory_xfer_live_readonly_partial): Rename it to
4754 remote_xfer_live_readonly_partial. Remove argument 'object'.
4755 All callers updated. Call remote_read_bytes_1
4756 instead of target_read_live_memory.
4757 * tracepoint.c (set_traceframe_number): Remove.
4758 (make_cleanup_restore_traceframe_number): Likewise .
4759 * tracepoint.h (set_traceframe_number): Remove declaration.
4760 (make_cleanup_restore_traceframe_number): Likewise.
4761
9217e74e
YQ
47622014-03-22 Yao Qi <yao@codesourcery.com>
4763
4764 * remote.c (remote_read_bytes): Move code on reading from the
4765 remote stub to ...
4766 (remote_read_bytes_1): ... here. New function.
4767
8acf9577
YQ
47682014-03-22 Yao Qi <yao@codesourcery.com>
4769
4770 * ctf.c (ctf_xfer_partial): Check the return value of
4771 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4772 return TARGET_XFER_UNAVAILABLE.
4773 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4774 * target.c (target_read_live_memory): Move it to remote.c.
4775 (memory_xfer_live_readonly_partial): Likewise.
4776 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4777 * remote.c (target_read_live_memory): Moved from target.c.
4778 (memory_xfer_live_readonly_partial): Likewise.
4779 (remote_read_bytes): Factored out from
4780 memory_xfer_partial_1.
4781
feef67ab
DE
47822014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4783
4784 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4785 NULL pointer.
4786
b65dc60b
PA
47872014-03-21 Pedro Alves <palves@redhat.com>
4788
4789 * infrun.c (normal_stop): Extend comment.
4790
b4ab256d
HZ
47912014-03-21 Hui Zhu <hui@codesourcery.com>
4792 Pedro Alves <palves@redhat.com>
4793
4794 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4795 static buffer.
4796 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4797 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4798 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4799
deba7593
MR
48002014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4801
4802 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4803 `z' formatted output modifier.
4804
1bff71c3
SDJ
48052014-03-20 Tom Tromey <tromey@redhat.com>
4806 Sergio Durigan Junior <sergiodj@redhat.com>
4807
4808 * probe.c (parse_probes): Turn assert into an ordinary error.
4809 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4810 exceptions when parsing probes. Rearrange the code for clarity.
4811
90e28950
TT
48122014-03-20 Tom Tromey <tromey@redhat.com>
4813
4814 PR gdb/14135
4815 * top.c (execute_command): Only dispatch events if the command
4816 started the target.
4817
beb460e8
PA
48182014-03-20 Tom Tromey <tromey@redhat.com>
4819
4820 PR cli/15718
4821 * infcall.c: Include event-top.h.
4822 (run_inferior_call): Call async_disable_stdin if needed.
4823
99619bea
PA
48242014-03-20 Pedro Alves <palves@redhat.com>
4825
4826 * infrun.c (prepare_to_proceed): Delete.
4827 (thread_still_needs_step_over): New function.
4828 (find_thread_needs_step_over): New function.
4829 (proceed): If the current thread needs a step-over, set its
4830 steping_over_breakpoint flag. Adjust to use
4831 find_thread_needs_step_over instead of prepare_to_proceed.
4832 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4833 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4834 breakpoint.
4835 (switch_back_to_stepped_thread): Step over breakpoints of all
4836 threads not the stepping thread, before switching back to the
4837 stepping thread.
4838
2adfaa28
PA
48392014-03-20 Pedro Alves <palves@redhat.com>
4840
4841 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4842 extern.
4843 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4844 * infrun.c (saved_singlestep_ptid)
4845 (stepping_past_singlestep_breakpoint): Delete.
4846 (resume): Remove stepping_past_singlestep_breakpoint handling.
4847 (proceed): Store the prev_pc of the stepping thread too.
4848 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4849 singlestep_pc.
4850 (enum infwait_states): Delete infwait_thread_hop_state.
4851 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4852 field.
4853 (handle_inferior_event): Adjust.
4854 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4855 handling and the thread-hop code. Before removing single-step
4856 breakpoints, check whether the thread hit a single-step breakpoint
4857 of another thread. If it did, the trap is not a random signal.
4858 (switch_back_to_stepped_thread): If the event thread hit a
4859 single-step breakpoint, unblock it before switching to the
4860 stepping thread. Handle the case of the stepped thread having
4861 advanced already.
4862 (keep_going): Handle the case of the current thread moving past a
4863 single-step breakpoint.
4864
31e77af2
PA
48652014-03-20 Pedro Alves <palves@redhat.com>
4866
4867 PR breakpoints/7143
4868 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4869 are being stepped over.
4870 (breakpoint_address_match): Make extern.
4871 * breakpoint.h (breakpoint_address_match): New declaration.
4872 * inferior.h (stepping_past_instruction_at): New declaration.
4873 * infrun.c (struct step_over_info): New type.
4874 (step_over_info): New global.
4875 (set_step_over_info, clear_step_over_info)
4876 (stepping_past_instruction_at): New functions.
4877 (handle_inferior_event): Clear the step-over info when
4878 trap_expected is cleared.
4879 (resume): Remove now stale comment.
4880 (clear_proceed_status): Clear step-over info.
4881 (proceed): Adjust step-over handling to set or clear the step-over
4882 info instead of removing all breakpoints.
4883 (handle_signal_stop): When setting up a thread-hop, don't remove
4884 breakpoints here.
4885 (stop_stepping): Clear step-over info.
4886 (keep_going): Adjust step-over handling to set or clear step-over
4887 info and then always inserting breakpoints, instead of removing
4888 all breakpoints when stepping over one.
4889
b9f437de
PA
48902014-03-20 Pedro Alves <palves@redhat.com>
4891
4892 * infrun.c (previous_inferior_ptid): Adjust comment.
4893 (deferred_step_ptid): Delete.
4894 (infrun_thread_ptid_changed, prepare_to_proceed)
4895 (init_wait_for_inferior): Adjust.
4896 (handle_signal_stop): Delete deferred_step_ptid handling.
4897
06c868a8
JK
48982014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4899
4900 PR gdb/15358
4901 * defs.h (sync_quit_force_run): New declaration.
4902 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4903 * event-top.c (async_sigterm_handler): New declaration.
4904 (async_sigterm_token): New variable.
4905 (async_init_signals): Create also async_sigterm_token.
4906 (async_sigterm_handler): New function.
4907 (sync_quit_force_run): New variable.
4908 (handle_sigterm): Replace quit_force call by other calls.
4909 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4910
dea80df0
MR
49112014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4912
4913 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4914 offset into SPE pseudo registers.
4915
0c7e1a46
PA
49162014-03-18 Pedro Alves <palves@redhat.com>
4917
4918 PR gdb/13860
4919 * inferior.h (print_stop_event): Declare.
4920 * infrun.c (print_stop_event): New, factored out from ...
4921 (normal_stop): ... this.
4922 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4923 of bpstat_print/print_stack_frame.
4924
9c1fcd01
TT
49252014-03-17 Tom Tromey <tromey@redhat.com>
4926
4927 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4928
11aa919a
PMR
49292014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4930
4931 * ada-lang.c (decode_constrained_packed_array): Perform a
4932 minimal coercion for reference with coerce_ref instead of
4933 ada_coerce_ref.
4934
d4ccb5e0
TG
49352014-03-17 Tristan Gingold <gingold@adacore.com>
4936
4937 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4938 (darwin_solib_create_inferior_hook): Emit a warning if version
4939 is unhandled.
4940
49840f2a
UW
49412014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4942
4943 * python/py-value.c (get_field_flag): Cast flag_name argument to
4944 PyObject_GetAttrString to support Python 2.4.
4945
ed4123e5
JK
49462014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4947
4948 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4949 (Global Maintainers): Remove Jan Kratochvil.
4950
d6b64346
PA
49512014-03-14 Pedro Alves <palves@redhat.com>
4952
4953 * inferior.h (terminal_ours_for_output): Rename to ...
4954 (child_terminal_ours_for_output): ... this.
4955 (terminal_save_ours): Rename to ...
4956 (child_terminal_save_ours): ... this.
4957 (terminal_ours): Rename to ...
4958 (child_terminal_ours): ... this.
4959 (terminal_inferior): Rename to ...
4960 (child_terminal_inferior): ... this.
4961 (terminal_init_inferior): Rename to ...
4962 (child_terminal_init_inferior): ... this.
4963 (terminal_init_inferior_with_pgrp): Rename to ...
4964 (child_terminal_init_inferior_with_pgrp): ... this.
4965 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4966 (child_terminal_init_with_pgrp): ... this.
4967 (terminal_save_ours): Rename to ...
4968 (child_terminal_save_ours): ... this.
4969 (terminal_init_inferior): Rename to ...
4970 (child_terminal_init): ... this. Adjust.
4971 (terminal_inferior): Rename to ...
4972 (child_terminal_inferior): ... this.
4973 (terminal_ours_for_output): Rename to ...
4974 (child_terminal_ours_for_output): ... this. Adjust.
4975 (terminal_ours): Rename to ...
4976 (child_terminal_ours): ... this.
4977 (terminal_ours_1): Rename to ...
4978 (child_terminal_ours_1): ... this. Adjust.
4979 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4980 * windows-nat.c (do_initial_windows_stuff): Adjust.
4981 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4982 (gnu_terminal_init): ... this. Adjust.
4983 (gnu_target): Adjust.
4984 * inf-child.c (inf_child_target): Adjust.
4985
5a1e8c7a
DE
49862014-03-13 Doug Evans <xdje42@gmail.com>
4987
4988 PR guile/16612
4989 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4990 new eq?-hashtab.
4991
350e1a76
DE
49922014-03-13 Doug Evans <xdje42@gmail.com>
4993
4994 * value.c (record_latest_value): Call release_value_or_incref
4995 instead of release_value.
4996
a69900ae
PA
49972014-03-13 Pedro Alves <palves@redhat.com>
4998
4999 * procfs.c (procfs_target): Don't override to_shortname,
5000 to_longname or to_doc.
5001
5db9f0bd
PA
50022014-03-13 Pedro Alves <palves@redhat.com>
5003
5004 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5005 Unix in user visible strings.
5006
5e3a2c38
SS
50072014-03-12 Stan Shebs <stan@codesourcery.com>
5008
5009 * gdbtypes.h: Annotate comments for Doxygen, add a page
5010 block comment with some general info.
5011
8bc2fe48
PA
50122014-03-12 Pedro Alves <palves@redhat.com>
5013
5014 * infcmd.c (prepare_execution_command): New function, factored out
5015 from several execution commands.
5016 (run_command_1, continue_command, step_1, jump_command)
5017 (signal_command, until_command, advance_command, finish_command)
5018 (attach_command): Use prepare_execution_command.
5019
638c5f49
OJ
50202014-03-12 Omair Javaid <omair.javaid@linaro.org>
5021
5022 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5023 (MAX_BPTS): Define.
5024 (MAX_WPTS): Define.
5025 (struct arm_linux_thread_points): Removed.
5026 (struct arm_linux_process_info): New.
5027 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5028 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5029 (arm_linux_find_breakpoints_by_tid): Removed.
5030 (struct arch_lwp_info): New.
5031 (arm_linux_find_process_pid): New functions.
5032 (arm_linux_add_process): New functions.
5033 (arm_linux_process_info_get): New functions.
5034 (arm_linux_forget_process): New function.
5035 (arm_linux_get_debug_reg_state): New function.
5036 (struct update_registers_data): New.
5037 (update_registers_callback): New function.
5038 (arm_linux_insert_hw_breakpoint1): Updated.
5039 (arm_linux_remove_hw_breakpoint1): Updated.
5040 (arm_linux_insert_hw_breakpoint): Updated.
5041 (arm_linux_remove_hw_breakpoint): Updated.
5042 (arm_linux_insert_watchpoint): Updated.
5043 (arm_linux_remove_watchpoint): Updated.
5044 (arm_linux_new_thread): Updated.
5045 (arm_linux_prepare_to_resume): New function.
5046 (arm_linux_new_fork): New function.
5047 (_initialize_arm_linux_nat): Updated.
5048
6d03af93
PA
50492014-03-12 Pedro Alves <palves@redhat.com>
5050
5051 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5052
b3ccfe11
TT
50532014-03-12 Tom Tromey <tromey@redhat.com>
5054
5055 * inf-child.c (return_zero): New function.
5056 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5057 * aix-thread.c (aix_thread_inferior_created): New function.
5058 (aix_thread_attach): Remove.
5059 (init_aix_thread_ops): Don't set to_attach.
5060 (_initialize_aix_thread): Register inferior_created observer.
5061 * corelow.c (init_core_ops): Don't set to_attach or
5062 to_create_inferior.
5063 * exec.c (init_exec_ops): Don't set to_attach or
5064 to_create_inferior.
5065 * infcmd.c (run_command_1): Use find_run_target. Make direct
5066 target calls.
5067 (attach_command): Use find_attach_target. Make direct target
5068 calls.
5069 * record-btrace.c (init_record_btrace_ops): Don't set
5070 to_create_inferior.
5071 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5072 Remove.
5073 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5074 set to_create_inferior.
5075 * target.c (complete_target_initialization): Add assertion.
5076 (target_create_inferior): Remove.
5077 (find_default_attach, find_default_create_inferior): Remove.
5078 (find_attach_target, find_run_target): New functions.
5079 (find_default_is_async_p, find_default_can_async_p)
5080 (target_supports_non_stop, target_attach): Remove.
5081 (init_dummy_target): Don't set to_create_inferior or
5082 to_supports_non_stop.
5083 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5084 TARGET_DEFAULT_FUNC.
5085 <to_create_inferior>: Add comment.
5086 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5087 TARGET_DEFAULT_RETURN.
5088 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5089 (find_attach_target, find_run_target): Declare.
5090 (target_create_inferior): Remove.
5091 (target_has_execution_1): Update comment.
5092 (target_supports_non_stop): Remove.
5093 * target-delegates.c: Rebuild.
5094
91f83b02
PA
50952014-03-12 Pedro Alves <palves@redhat.com>
5096
5097 * inf-child.h: Update comment to not mention Unix.
5098
f1aea813
PA
50992014-03-12 Pedro Alves <palves@redhat.com>
5100
5101 * inf-child.c: Update top comment to not mention Unix. Add
5102 generic comment describing how this target is meant to be used.
5103 (inf_child_post_attach, inf_child_post_startup_inferior)
5104 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5105 Unix in comment.
5106
ee8e9165
PA
51072014-03-12 Pedro Alves <palves@redhat.com>
5108
5109 * nto-procfs.c: Include inf-child.h.
5110 (procfs_ops): Delete global.
5111 (procfs_can_run): Delete method.
5112 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5113 target pointer instead of referencing procfs_ops.
5114 (procfs_prepare_to_store): Delete.
5115 (init_procfs_ops): Delete function.
5116 (procfs_target): New function, based on init_procfs_ops, but
5117 inherit inf_child_target.
5118 (_initialize_procfs): Use procfs_target.
5119
51a9c8c5
PA
51202014-03-12 Pedro Alves <palves@redhat.com>
5121
5122 * windows-nat.c: Include inf-child.h.
5123 (windows_ops): Delete global.
5124 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5125 methods.
5126 (init_windows_ops): Delete function.
5127 (windows_target): New function, based on init_windows_ops, but
5128 inherit inf_child_target.
5129 (_initialize_windows_nat): Use windows_target. Install x86
5130 specific target methods here.
5131
c1966e26
DE
51322014-03-10 Doug Evans <xdje42@gmail.com>
5133
5134 * guile/guile.c (call_initialize_gdb_module): New function.
5135 (initialize_guile): Replace call to scm_init_guile with call to
5136 scm_with_guile.
5137
023db19c
JB
51382014-03-10 Joel Brobecker <brobecker@adacore.com>
5139
5140 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5141 in call to TYPE_CODE macro.
5142
5ec18f2b
JG
51432014-03-10 Jerome Guitton <guitton@adacore.com>
5144
8668be63
JB
5145 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5146 Resolve tagged types to full view.
5ec18f2b 5147
7d03f2eb
HZ
51482014-03-10 Hui Zhu <hui@codesourcery.com>
5149
5150 * target.h (target_insert_breakpoint): Remove "hardware" from its
5151 comments.
5152
c5164cbc
DE
51532014-03-07 Doug Evans <dje@google.com>
5154
5155 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5156
c4a3fee2
DE
51572014-03-07 Doug Evans <dje@google.com>
5158
5159 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5160 Remove unused local comp_dir_attr. Assert exactly one of
5161 stub_comp_unit_die, stub_comp_dir is non-NULL.
5162
3156469c
JB
51632014-03-07 Joel Brobecker <brobecker@adacore.com>
5164
5165 * target.h (complete_target_initialization, add_target):
5166 Add comment.
5167
c1a7b7c6
PA
51682014-03-07 Pedro Alves <palves@redhat.com>
5169
5170 * go32-nat.c: Include inf-child.h.
5171 (go32_ops): Delete global.
5172 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5173 Delete methods.
5174 (go32_create_inferior): Push the passed in target pointer instead
5175 of referencing go32_ops.
5176 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5177 (go32_target): New function, based on init_go32_ops, but inherit
5178 inf_child_target.
5179 (_initialize_go32_nat): Use go32_target. Move parts of
5180 init_go32_ops here.
5181
d3c1a85f
JB
51822014-03-06 Joel Brobecker <brobecker@adacore.com>
5183
5184 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5185 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5186 SYMBOL_VALUE_ADDRESS.
5187 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5188
5fa1d40e
YQ
51892014-03-06 Yao Qi <yao@codesourcery.com>
5190
5191 * breakpoint.c (get_tracepoint_by_number): Remove argument
5192 optional_p. All callers updated. Adjust comments. Update
5193 output message.
5194 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5195
0c13193f
YQ
51962014-03-06 Yao Qi <yao@codesourcery.com>
5197
5198 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5199 early if get_number returns zero. Use 'p' instead of 'args'.
5200
2217da06
YQ
52012014-03-06 Yao Qi <yao@codesourcery.com>
5202
5203 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5204 message.
5205
cc3da688
YQ
52062014-03-06 Yao Qi <yao@codesourcery.com>
5207
5208 PR breakpoints/16508
5209 * tracepoint.c (check_trace_running): New function.
5210 (trace_find_command): Move code to check_trace_running and
5211 call check_trace_running.
5212 (trace_find_pc_command): Likewise.
5213 (trace_find_tracepoint_command): Likewise.
5214 (trace_find_line_command): Likewise.
5215 (trace_find_range_command): Likewise.
5216 * tracepoint.h (check_trace_running): Likewise.
5217 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5218
6a5f844b
YQ
52192014-03-06 Yao Qi <yao@codesourcery.com>
5220
5221 * target.h (struct target_ops) <to_traceframe_info>: Use
5222 TARGET_DEFAULT_NORETURN (tcomplain ()).
5223 * target-delegates.c: Regenerated.
5224
0f26cec1
PA
52252014-03-05 Pedro Alves <palves@redhat.com>
5226
5227 PR gdb/16575
5228 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5229 void. Update comment.
5230 (dcache_xfer_memory): Delete.
5231 (dcache_read_memory_partial): New, based on the read bits of
5232 dcache_xfer_memory.
5233 (dcache_update): Add status parameter. Use ULONGEST for len, and
5234 adjust. Discard cache lines if the reason for the update was
5235 error.
5236 * dcache.h (dcache_xfer_memory): Delete declaration.
5237 (dcache_read_memory_partial): New declaration.
5238 (dcache_update): Update prototype.
5239 * target.c (raw_memory_xfer_partial): Update the dcache here.
5240 (memory_xfer_partial_1): Don't handle dcache writes here.
5241
b2b255bd
MF
52422014-03-05 Mike Frysinger <vapier@gentoo.org>
5243
5244 * remote-sim.c (gdbsim_load): Add const to prog.
5245
5d9cf8a4
TT
52462014-03-03 Tom Tromey <tromey@redhat.com>
5247
5248 * elfread.c (probe_key): Change to bfd_data.
5249 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5250 now per-BFD, not per-objfile.
5251 * stap-probe.c (stap_probe_destroy): Update comment.
5252 (handle_stap_probe): Allocate on the per-BFD obstack.
5253
729662a5
TT
52542014-03-03 Tom Tromey <tromey@redhat.com>
5255
5256 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5257 * breakpoint.c (create_longjmp_master_breakpoint): Use
5258 get_probe_address.
5259 (add_location_to_breakpoint, bkpt_probe_insert_location)
5260 (bkpt_probe_remove_location): Update.
5261 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5262 * elfread.c (elf_symfile_relocate_probe): Remove.
5263 (elf_probe_fns): Update.
5264 (insert_exception_resume_breakpoint): Change type of "probe"
5265 parameter to bound_probe.
5266 (check_exception_resume): Update.
5267 * objfiles.c (objfile_relocate1): Don't relocate probes.
5268 * probe.c (bound_probe_s): New typedef.
5269 (parse_probes): Use get_probe_address. Set sal's objfile.
5270 (find_probe_by_pc): Return a bound_probe.
5271 (collect_probes): Return a VEC(bound_probe_s).
5272 (compare_probes): Update.
5273 (gen_ui_out_table_header_info): Change type of "probes"
5274 parameter. Update.
5275 (info_probes_for_ops): Update.
5276 (get_probe_address): New function.
5277 (probe_safe_evaluate_at_pc): Update.
5278 * probe.h (struct probe_ops) <get_probe_address>: New field.
5279 <set_semaphore, clear_semaphore>: Add objfile parameter.
5280 (struct probe) <objfile>: Remove field.
5281 <arch>: New field.
5282 <address>: Update comment.
5283 (struct bound_probe): New.
5284 (find_probe_by_pc): Return a bound_probe.
5285 (get_probe_address): Declare.
5286 * solib-svr4.c (struct probe_and_action) <address>: New field.
5287 (hash_probe_and_action, equal_probe_and_action): Update.
5288 (register_solib_event_probe): Add address parameter.
5289 (solib_event_probe_at): Update.
5290 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5291 get_probe_address.
5292 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5293 (stap_get_probe_address): New function.
5294 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5295 (compile_probe_arg): Update.
5296 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5297 address.
5298 (handle_stap_probe): Don't relocate the probe.
5299 (stap_relocate): Remove.
5300 (stap_gen_info_probes_table_values): Update.
5301 (stap_probe_ops): Remove stap_relocate.
5302 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5303 (debug_sym_probe_fns): Update.
5304 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5305 * symtab.c (init_sal): Use memset.
5306 * symtab.h (struct symtab_and_line) <objfile>: New field.
5307 * tracepoint.c (start_tracing, stop_tracing): Update.
5308
ff887920
TT
53092014-03-03 Tom Tromey <tromey@redhat.com>
5310
5311 * probe.h (parse_probes, find_probe_by_pc)
5312 (find_probes_in_objfile): Fix comments.
5313
f0407826
DE
53142014-03-02 Doug Evans <xdje42@gmail.com>
5315
5316 * infrun.c (handle_signal_stop): Replace test for
5317 TARGET_WAITKIND_STOPPED with an assert.
5318
35e6a711
DE
53192014-03-02 Doug Evans <xdje42@gmail.com>
5320
5321 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5322
667f9d0b
DE
53232014-03-02 Doug Evans <xdje42@gmail.com>
5324
5325 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5326
dc92ace0
MK
53272014-03-01 Mark Kettenis <kettenis@gnu.org>
5328
5329 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5330
a900370f
MK
53312014-03-01 Mark Kettenis <kettenis@gnu.org>
5332
5333 * i386obsd-nat.c: Include "obsd-nat.h".
5334 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5335 add_target.
5336 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5337
b72a7981
MK
53382014-03-01 Mark Kettenis <kettenis@gnu.org>
5339
5340 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5341
96c70aba
MK
53422014-03-01 Mark Kettenis <kettenis@gnu.org>
5343
5344 * mips64obsd-nat.c: Include "obsd-nath".
5345 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5346 add_target
5347 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5348
874a80af
MK
53492014-03-01 Mark Kettenis <kettenis@gnu.org>
5350
8fd408f1
MK
5351 * amd64obsd-nat.c: Include "obsd-nat,h.
5352 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5353 add_target.
874a80af
MK
5354 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5355
9cf95373
SC
53562014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5357
5358 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5359 (find_overload_match): Update call to find_oload_champ.
5360 (find_oload_champ_namespace_loop): Likewise
5361
863e4da4
MK
53622014-02-28 Mark Kettenis <kettenis@gnu.org>
5363
025cac40
MK
5364 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5365
1ed586ce
MK
5366 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5367 * config/sparc/obsd64.mh: New file.
5368 * sparc64obsd-nat.c: New file.
5369
863e4da4
MK
5370 * obsd-nat.h: New file.
5371 * obsd-nat.c: New file.
5372 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5373 (ALLDEPFILES): Add obsd-nat.c.
5374
89de4da4
TT
53752014-02-28 Tom Tromey <tromey@redhat.com>
5376
5377 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5378 * cli-out.h (cli_ui_out_impl): Now const.
5379 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5380 * ui-out.c (struct ui_out) <impl>: Now const.
5381 (default_ui_out_impl): Now const.
5382 (ui_out_new): Make 'impl' parameter const.
5383 * ui-out.h (ui_out_new): Update.
5384
c725e7b6
MK
53852014-02-27 Mark Kettenis <kettenis@gnu.org>
5386
5387 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5388
670b46b3
MK
53892014-02-27 Mark Kettenis <kettenis@gnu.org>
5390
5391 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5392
c91550fc
JK
53932014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 Additional PR 8882 fix.
5396 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5397
2fa0369e
PA
53982014-02-27 Pedro Alves <palves@redhat.com>
5399
5400 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5401 isn't set.
5402
d632a097
PA
54032014-02-27 Pedro Alves <palves@redhat.com>
5404
5405 PR 12702
5406 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5407 * nat/linux-waitpid.c: Include string.h.
5408 (status_to_str): Moved here and made extern.
5409 * nat/linux-waitpid.h (status_to_str): New declaration.
5410
2ebd5a35
HZ
54112014-02-27 Hui Zhu <hui@codesourcery.com>
5412
5413 PR 12702
5414 * infrun.c (ptid_match): Move ...
5415 * common/ptid.c (ptid_match): ... here.
5416 * inferior.h (ptid_match): Move ...
5417 * common/ptid.h (ptid_match): ... here.
5418
3cdd631f
MK
54192014-02-27 Mark Kettenis <kettenis@gnu.org>
5420
5421 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5422 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5423 gdb_target_obs.
5424
bee30a64
MK
54252014-02-27 Mark Kettenis <kettenis@gnu.org>
5426
5427 * obsd-tdep.c (obsd_auxv_parse): New function.
5428 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
5429
5430 * gdbarch.sh (auxv_parse): New.
5431 * gdbarch.h: Regenerated.
5432 * gdbarch.c: Regenerated.
5433 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5434
7a5a839f
LC
54352014-02-26 Ludovic Courtès <ludo@gnu.org>
5436
5437 * guile/scm-value.c (gdbscm_history_append_x): New function.
5438 (value_functions): Add it.
5439
31aa7e4e
JB
54402014-02-27 Joel Brobecker <brobecker@adacore.com>
5441
5442 * dwarf2read.c (attr_value_as_address): New function.
5443 (dwarf2_find_base_address, read_call_site_scope): Use
5444 attr_value_as_address in place of DW_ADDR.
5445 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5446 the low and high addresses. Slight rework of the handling
5447 of the high pc being a constant form, and limit it to
5448 DWARF verson 4 or higher.
5449 (dwarf2_record_block_ranges): Likewise.
5450 (read_partial_die): Likewise.
5451 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5452
9b333ba3
TT
54532014-02-26 Tom Tromey <tromey@redhat.com>
5454
5455 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5456
5f6cac40
TT
54572014-02-26 Tom Tromey <tromey@redhat.com>
5458
5459 * elfread.c (elf_read_minimal_symbols): Return early if
5460 minimal symbols have already been read. Add "ei" parameter.
5461 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5462 * minsyms.c (prim_record_minimal_symbol_full): Update.
5463 * objfiles.h (struct objstats) <n_minsyms>: Move...
5464 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5465 * symmisc.c (print_objfile_statistics): Update.
5466
2750ef27
TT
54672014-02-26 Tom Tromey <tromey@redhat.com>
5468
5469 * elfread.c (elf_read_minimal_symbols): New function, from
5470 elf_symfile_read.
5471 (elf_symfile_read): Call it.
5472
34643a32
TT
54732014-02-26 Tom Tromey <tromey@redhat.com>
5474
5475 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5476 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5477 (lookup_minimal_symbol_solib_trampoline)
5478 (lookup_minimal_symbol_by_pc_section_1)
5479 (lookup_minimal_symbol_and_objfile): Update.
5480 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5481 Don't allocate a minimal symbol if minsyms have already been read.
5482 (build_minimal_symbol_hash_tables): Update.
5483 (install_minimal_symbols): Do nothing if minsyms already read.
5484 Use the per-BFD obstack.
5485 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5486 * objfiles.c (allocate_objfile): Call
5487 terminate_minimal_symbol_table later.
5488 (have_minimal_symbols): Update.
5489 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5490 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5491 Move from struct objfile.
5492 <minsyms_read>: New field.
5493 (struct objfile) <msymbols, minimal_symbol_count,
5494 msymbol_hash, msymbol_demangled_hash>: Move.
5495 (ALL_OBJFILE_MSYMBOLS): Update.
5496 * symfile.c (read_symbols): Set minsyms_read.
5497 (reread_symbols): Update.
5498 * symmisc.c (dump_objfile, dump_msymbols): Update.
5499
2273f0ac
TT
55002014-02-26 Tom Tromey <tromey@redhat.com>
5501
5502 * minsyms.c (msymbols_sort): Remove.
5503 * minsyms.h (msymbols_sort): Remove.
5504 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5505 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5506 * elfread.c (elf_symtab_read): Don't add section offsets.
5507 * xcoffread.c (record_minimal_symbol): Don't add section offset
5508 to minimal symbol address.
5509 * somread.c (text_offset, data_offset): Remove.
5510 (som_symtab_read): Don't add section offsets to minimal symbol
5511 addresses.
5512 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5513 Don't add section offsets to minimal symbols.
5514 * coffread.c (coff_symtab_read): Don't add section offsets
5515 to minimal symbol addresses.
5516 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5517 to minimal symbol addresses.
5518 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5519 section offset to minimal symbol addresses.
5520 * mdebugread.c (parse_partial_symbols): Don't add section
5521 offset to minimal symbol addresses.
5522 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5523 offset to minimal symbol addresses.
5524
77e371c0
TT
55252014-02-26 Tom Tromey <tromey@redhat.com>
5526
5527 * ada-lang.c (ada_main_name): Update.
5528 (ada_add_standard_exceptions): Update.
5529 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5530 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5531 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5532 * auxv.c (ld_so_xfer_auxv): Update.
5533 * avr-tdep.c (avr_scan_prologue): Update.
5534 * ax-gdb.c (gen_var_ref): Update.
5535 * blockframe.c (get_pc_function_start)
5536 (find_pc_partial_function_gnu_ifunc): Update.
5537 * breakpoint.c (create_overlay_event_breakpoint)
5538 (create_longjmp_master_breakpoint)
5539 (create_std_terminate_master_breakpoint)
5540 (create_exception_master_breakpoint): Update.
5541 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5542 * c-valprint.c (c_val_print): Update.
5543 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5544 * common/agent.c (agent_look_up_symbols): Update.
5545 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5546 * dwarf2loc.c (call_site_to_target_addr): Update.
5547 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5548 * elfread.c (elf_gnu_ifunc_record_cache)
5549 (elf_gnu_ifunc_resolve_by_got): Update.
5550 * findvar.c (default_read_var_value): Update.
5551 * frame.c (inside_main_func): Update.
5552 * frv-tdep.c (frv_frame_this_id): Update.
5553 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5554 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5555 Update.
5556 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5557 (hppa_hpux_find_dummy_bpaddr): Update.
5558 * hppa-tdep.c (hppa_symbol_address): Update.
5559 * infcmd.c (until_next_command): Update.
5560 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5561 Update.
5562 * linespec.c (minsym_found, add_minsym): Update.
5563 * linux-nat.c (get_signo): Update.
5564 * linux-thread-db.c (inferior_has_bug): Update.
5565 * m32c-tdep.c (m32c_return_value)
5566 (m32c_m16c_address_to_pointer): Update.
5567 * m32r-tdep.c (m32r_frame_this_id): Update.
5568 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5569 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5570 * maint.c (maintenance_translate_address): Update.
5571 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5572 (frob_address): New function.
5573 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5574 frob_address. Rename parameter to "pc_in".
5575 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5576 addresses.
5577 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5578 Update.
5579 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5580 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5581 * objc-lang.c (find_objc_msgsend): Update.
5582 * objfiles.c (objfile_relocate1): Update.
5583 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5584 * p-valprint.c (pascal_val_print): Update.
5585 * parse.c (write_exp_msymbol): Update.
5586 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5587 (ppc_elfv2_skip_entrypoint): Update.
5588 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5589 * printcmd.c (build_address_symbolic, msym_info)
5590 (address_info): Update.
5591 * proc-service.c (ps_pglobal_lookup): Update.
5592 * psymtab.c (find_pc_sect_psymtab_closer)
5593 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5594 Change msymbol parameter to bound_minimal_symbol.
5595 * ravenscar-thread.c (get_running_thread_id): Update.
5596 * remote.c (remote_check_symbols): Update.
5597 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5598 address.
5599 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5600 * solib-dsbt.c (lm_base): Update.
5601 * solib-frv.c (lm_base, main_got): Update.
5602 * solib-irix.c (locate_base): Update.
5603 * solib-som.c (som_solib_create_inferior_hook)
5604 (link_map_start): Update.
5605 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5606 * solib-svr4.c (elf_locate_base, enable_break): Update.
5607 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5608 (flush_ea_cache): Update.
5609 * stabsread.c (define_symbol, scan_file_globals): Update.
5610 * stack.c (find_frame_funname): Update.
5611 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5612 (debug_qf_find_pc_sect_symtab): Update.
5613 * symfile.c (simple_read_overlay_table)
5614 (simple_overlay_update): Update.
5615 * symfile.h (struct quick_symbol_functions)
5616 <find_pc_sect_symtab>: Change type of msymbol to
5617 bound_minimal_symbol.
5618 * symmisc.c (dump_msymbols): Update.
5619 * symtab.c (find_pc_sect_symtab_via_partial)
5620 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5621 (search_symbols, print_msymbol_info): Update.
5622 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5623 (MSYMBOL_VALUE_ADDRESS): Redefine.
5624 (BMSYMBOL_VALUE_ADDRESS): New macro.
5625 * tracepoint.c (scope_info): Update.
5626 * tui/tui-disasm.c (tui_find_disassembly_address)
5627 (tui_get_begin_asm_address): Update.
5628 * valops.c (find_function_in_inferior): Update.
5629 * value.c (value_static_field, value_fn_field): Update.
5630
3b7344d5
TT
56312014-02-26 Tom Tromey <tromey@redhat.com>
5632
5633 * ada-lang.c (ada_update_initial_language): Update.
5634 (ada_main_name, ada_has_this_exception_support): Update.
5635 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5636 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5637 * arm-tdep.c (arm_skip_stub): Update.
5638 * auxv.c (ld_so_xfer_auxv): Update.
5639 * avr-tdep.c (avr_scan_prologue): Update.
5640 * ax-gdb.c (gen_var_ref): Update.
5641 * breakpoint.c (struct breakpoint_objfile_data)
5642 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5643 type to bound_minimal_symbol.
5644 (create_overlay_event_breakpoint)
5645 (create_longjmp_master_breakpoint)
5646 (create_std_terminate_master_breakpoint)
5647 (create_exception_master_breakpoint): Update.
5648 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5649 * c-exp.y (classify_name): Update.
5650 * coffread.c (coff_symfile_read): Update.
5651 * common/agent.c (agent_look_up_symbols): Update.
5652 * d-lang.c (d_main_name): Update.
5653 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5654 * dec-thread.c (enable_dec_thread): Update.
5655 * dwarf2loc.c (call_site_to_target_addr): Update.
5656 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5657 * eval.c (evaluate_subexp_standard): Update.
5658 * findvar.c (struct minsym_lookup_data) <result>: Change type
5659 to bound_minimal_symbol.
5660 <objfile>: Remove.
5661 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5662 * frame.c (inside_main_func): Update.
5663 * frv-tdep.c (frv_frame_this_id): Update.
5664 * gcore.c (call_target_sbrk): Update.
5665 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5666 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5667 Update.
5668 * go-lang.c (go_main_name): Update.
5669 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5670 (hppa_hpux_find_import_stub_for_addr): Update.
5671 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5672 Update. Change return type.
5673 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5674 type.
5675 * jit.c (jit_breakpoint_re_set_internal): Update.
5676 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5677 Update.
5678 * linux-nat.c (get_signo): Update.
5679 * linux-thread-db.c (inferior_has_bug): Update
5680 * m32c-tdep.c (m32c_return_value)
5681 (m32c_m16c_address_to_pointer): Update.
5682 * m32r-tdep.c (m32r_frame_this_id): Update.
5683 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5684 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5685 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5686 lookup_minimal_symbol. Change return type.
5687 (lookup_minimal_symbol): Remove.
5688 (lookup_bound_minimal_symbol): Update.
5689 (lookup_minimal_symbol_text): Change return type.
5690 (lookup_minimal_symbol_solib_trampoline): Change return type.
5691 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5692 (lookup_minimal_symbol_solib_trampoline): Change return type.
5693 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5694 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5695 (value_nsstring, find_imps): Update.
5696 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5697 * p-lang.c (pascal_main_name): Update.
5698 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5699 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5700 * proc-service.c (ps_pglobal_lookup): Update.
5701 * ravenscar-thread.c (get_running_thread_msymbol): Change
5702 return type.
5703 (has_ravenscar_runtime, get_running_thread_id): Update.
5704 * remote.c (remote_check_symbols): Update.
5705 * sol-thread.c (ps_pglobal_lookup): Update.
5706 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5707 * solib-dsbt.c (lm_base): Update.
5708 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5709 Update.
5710 * solib-irix.c (locate_base): Update.
5711 * solib-som.c (som_solib_create_inferior_hook)
5712 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5713 Update.
5714 * solib-spu.c (spu_enable_break): Update.
5715 * solib-svr4.c (elf_locate_base, enable_break): Update.
5716 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5717 (flush_ea_cache): Update.
5718 * stabsread.c (define_symbol): Update.
5719 * symfile.c (simple_read_overlay_table): Update.
5720 * symtab.c (find_pc_sect_line): Update.
5721 * tracepoint.c (scope_info): Update.
5722 * tui-disasm.c (tui_get_begin_asm_address): Update.
5723 * value.c (value_static_field): Update.
5724
40c1a007
TT
57252014-02-26 Tom Tromey <tromey@redhat.com>
5726
5727 * minsyms.c (prim_record_minimal_symbol_full): Use
5728 SET_MSYMBOL_VALUE_ADDRESS.
5729 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5730 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5731 SET_MSYMBOL_VALUE_ADDRESS.
5732 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5733 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5734
efd66ac6
TT
57352014-02-26 Tom Tromey <tromey@redhat.com>
5736
5737 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5738 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5739 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5740 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5741 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5742 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5743 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5744 * ada-lang.c (ada_main_name): Update.
5745 (ada_lookup_simple_minsym): Update.
5746 (ada_make_symbol_completion_list): Update.
5747 (ada_add_standard_exceptions): Update.
5748 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5749 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5750 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5751 * arm-tdep.c (skip_prologue_function): Update.
5752 (arm_skip_stack_protector, arm_skip_stub): Update.
5753 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5754 (arm_wince_skip_main_prologue): Update.
5755 * auxv.c (ld_so_xfer_auxv): Update.
5756 * avr-tdep.c (avr_scan_prologue): Update.
5757 * ax-gdb.c (gen_var_ref): Update.
5758 * block.c (call_site_for_pc): Update.
5759 * blockframe.c (get_pc_function_start): Update.
5760 (find_pc_partial_function_gnu_ifunc): Update.
5761 * breakpoint.c (create_overlay_event_breakpoint): Update.
5762 (create_longjmp_master_breakpoint): Update.
5763 (create_std_terminate_master_breakpoint): Update.
5764 (create_exception_master_breakpoint): Update.
5765 (resolve_sal_pc): Update.
5766 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5767 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5768 Update.
5769 * c-valprint.c (c_val_print): Update.
5770 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5771 * coffread.c (coff_symfile_read): Update.
5772 * common/agent.c (agent_look_up_symbols): Update.
5773 * dbxread.c (find_stab_function_addr): Update.
5774 (end_psymtab): Update.
5775 * dwarf2loc.c (call_site_to_target_addr): Update.
5776 (func_verify_no_selftailcall): Update.
5777 (tailcall_dump): Update.
5778 (call_site_find_chain_1): Update.
5779 (dwarf_expr_reg_to_entry_parameter): Update.
5780 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5781 (elf_gnu_ifunc_resolve_by_got): Update.
5782 * f-valprint.c (info_common_command): Update.
5783 * findvar.c (read_var_value): Update.
5784 * frame.c (get_prev_frame_1): Update.
5785 (inside_main_func): Update.
5786 * frv-tdep.c (frv_skip_main_prologue): Update.
5787 (frv_frame_this_id): Update.
5788 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5789 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5790 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5791 (gnuv3_skip_trampoline): Update.
5792 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5793 (hppa64_hpux_in_solib_call_trampoline): Update.
5794 (hppa_hpux_skip_trampoline_code): Update.
5795 (hppa64_hpux_search_dummy_call_sequence): Update.
5796 (hppa_hpux_find_import_stub_for_addr): Update.
5797 (hppa_hpux_find_dummy_bpaddr): Update.
5798 * hppa-tdep.c (hppa_symbol_address)
5799 (hppa_lookup_stub_minimal_symbol): Update.
5800 * i386-tdep.c (i386_skip_main_prologue): Update.
5801 (i386_pe_skip_trampoline_code): Update.
5802 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5803 * infcall.c (get_function_name): Update.
5804 * infcmd.c (until_next_command): Update.
5805 * jit.c (jit_breakpoint_re_set_internal): Update.
5806 (jit_inferior_init): Update.
5807 * linespec.c (minsym_found): Update.
5808 (add_minsym): Update.
5809 * linux-fork.c (info_checkpoints_command): Update.
5810 * linux-nat.c (get_signo): Update.
5811 * linux-thread-db.c (inferior_has_bug): Update.
5812 * m32c-tdep.c (m32c_return_value): Update.
5813 (m32c_m16c_address_to_pointer): Update.
5814 (m32c_m16c_pointer_to_address): Update.
5815 * m32r-tdep.c (m32r_frame_this_id): Update.
5816 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5817 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5818 * maint.c (maintenance_translate_address): Update.
5819 * minsyms.c (add_minsym_to_hash_table): Update.
5820 (add_minsym_to_demangled_hash_table): Update.
5821 (msymbol_objfile): Update.
5822 (lookup_minimal_symbol): Update.
5823 (iterate_over_minimal_symbols): Update.
5824 (lookup_minimal_symbol_text): Update.
5825 (lookup_minimal_symbol_by_pc_name): Update.
5826 (lookup_minimal_symbol_solib_trampoline): Update.
5827 (lookup_minimal_symbol_by_pc_section_1): Update.
5828 (lookup_minimal_symbol_and_objfile): Update.
5829 (prim_record_minimal_symbol_full): Update.
5830 (compare_minimal_symbols): Update.
5831 (compact_minimal_symbols): Update.
5832 (build_minimal_symbol_hash_tables): Update.
5833 (install_minimal_symbols): Update.
5834 (terminate_minimal_symbol_table): Update.
5835 (find_solib_trampoline_target): Update.
5836 (minimal_symbol_upper_bound): Update.
5837 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5838 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5839 (mips_skip_pic_trampoline_code): Update.
5840 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5841 * objc-lang.c (selectors_info): Update.
5842 (classes_info): Update.
5843 (find_methods): Update.
5844 (find_imps): Update.
5845 (find_objc_msgsend): Update.
5846 * objfiles.c (objfile_relocate1): Update.
5847 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5848 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5849 * p-valprint.c (pascal_val_print): Update.
5850 * parse.c (write_exp_msymbol): Update.
5851 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5852 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5853 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5854 * printcmd.c (build_address_symbolic): Update.
5855 (sym_info): Update.
5856 (address_info): Update.
5857 * proc-service.c (ps_pglobal_lookup): Update.
5858 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5859 (find_pc_sect_psymtab): Update.
5860 * python/py-framefilter.c (py_print_frame): Update.
5861 * ravenscar-thread.c (get_running_thread_id): Update.
5862 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5863 Update.
5864 * remote.c (remote_check_symbols): Update.
5865 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5866 (rs6000_skip_trampoline_code): Update.
5867 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5868 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5869 * solib-dsbt.c (lm_base): Update.
5870 * solib-frv.c (lm_base): Update.
5871 (main_got): Update.
5872 * solib-irix.c (locate_base): Update.
5873 * solib-som.c (som_solib_create_inferior_hook): Update.
5874 (som_solib_desire_dynamic_linker_symbols): Update.
5875 (link_map_start): Update.
5876 * solib-spu.c (spu_enable_break): Update.
5877 (ocl_enable_break): Update.
5878 * solib-svr4.c (elf_locate_base): Update.
5879 (enable_break): Update.
5880 * spu-tdep.c (spu_get_overlay_table): Update.
5881 (spu_catch_start): Update.
5882 (flush_ea_cache): Update.
5883 * stabsread.c (define_symbol): Update.
5884 (scan_file_globals): Update.
5885 * stack.c (find_frame_funname): Update.
5886 (frame_info): Update.
5887 * symfile.c (simple_read_overlay_table): Update.
5888 (simple_overlay_update): Update.
5889 * symmisc.c (dump_msymbols): Update.
5890 * symtab.c (fixup_section): Update.
5891 (find_pc_sect_line): Update.
5892 (skip_prologue_sal): Update.
5893 (search_symbols): Update.
5894 (print_msymbol_info): Update.
5895 (rbreak_command): Update.
5896 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5897 (completion_list_objc_symbol): Update.
5898 (default_make_symbol_completion_list_break_on): Update.
5899 * tracepoint.c (scope_info): Update.
5900 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5901 (tui_get_begin_asm_address): Update.
5902 * valops.c (find_function_in_inferior): Update.
5903 * value.c (value_static_field): Update.
5904 (value_fn_field): Update.
5905
50e65b17
TT
59062014-02-26 Tom Tromey <tromey@redhat.com>
5907
5908 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5909 bound minimal symbols. Move code that knows about minsym
5910 table layout...
5911 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5912 function.
5913 * minsyms.h (minimal_symbol_upper_bound): Declare.
5914 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5915 minimal_symbol_upper_bound.
5916
1b588015
JB
59172014-02-27 Joel Brobecker <brobecker@adacore.com>
5918
5919 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5920 Use the type's name if its basic type does not have a tag.
5921
dbb9c2b1
JB
59222014-02-27 Joel Brobecker <brobecker@adacore.com>
5923
5924 * dwarf2read.c (read_subrange_type): Add comment.
5925
55426c9d
JB
59262014-02-27 Joel Brobecker <brobecker@adacore.com>
5927
5928 * dwarf2read.c (update_enumeration_type_from_children): New
5929 function, mostly extracted from process_structure_scope.
5930 (read_enumeration_type): Call update_enumeration_type_from_children.
5931 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5932 and flag_flag_enum fields.
5933
f2fce0ca
PA
59342014-02-26 Pedro Alves <palves@redhat.com>
5935
5936 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5937 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5938 to_xfer_partial method.
5939
7a44e40e
PA
59402014-02-26 Pedro Alves <palves@redhat.com>
5941
5942 * target.c (complete_target_initialization): Don't install
5943 default_xfer_partial as to_xfer_partial hook.
5944 (nomemory): Delete.
5945 (update_current_target): Don't INHERIT nor de_fault
5946 deprecated_xfer_memory. Delete de_fault macro.
5947 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5948 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5949 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5950 field.
5951
bd265cd0
PA
59522014-02-26 Pedro Alves <palves@redhat.com>
5953
5954 * go32-nat.c (my_write_child): New function.
5955 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5956 (go32_xfer_partial): New function.
5957 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5958 Instead install a to_xfer_partial hook.
5959
9d46c4e5
PA
59602014-02-26 Pedro Alves <palves@redhat.com>
5961
5962 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5963 to_xfer_partial helper. Rewrite.
5964 (procfs_xfer_partial): New function.
5965 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5966 Install a to_xfer_partial hook.
5967
a1583b1f
PA
59682014-02-26 Pedro Alves <palves@redhat.com>
5969
5970 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5971 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5972 (m32r_xfer_partial): New function.
5973 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5974 Install a to_xfer_partial hook.
5975
6df1b29f
PA
59762014-02-26 Pedro Alves <palves@redhat.com>
5977
5978 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5979 helper.
5980 (mips_xfer_partial): New function.
5981 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5982 hook. Install a to_xfer_partial hook.
5983
dc53a7ad
JB
59842014-02-26 Joel Brobecker <brobecker@adacore.com>
5985
5986 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5987 * gdbtypes.c (create_array_type_with_stride): New function,
5988 renaming create_array_type, but with an added parameter
5989 called "bit_stride".
5990 (create_array_type): Re-implement using
5991 create_array_type_with_stride.
5992 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5993 and DW_AT_bit_stride attributes.
5994
12ab52e9
PA
59952014-02-26 Pedro Alves <palves@redhat.com>
5996
5997 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5998 task-specific breakpoints.
5999
d16461ae
PA
60002014-02-25 Pedro Alves <palves@redhat.com>
6001
6002 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6003 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6004
a8b16220
SS
60052014-02-25 Stan Shebs <stan@codesourcery.com>
6006
6007 * defs.h: Annotate comments for Doxygen.
6008
b9e795ee
TT
60092014-02-25 Tom Tromey <tromey@redhat.com>
6010
6011 * target.h (target_ignore): Don't declare.
6012 * target.c (target_ignore): Remove.
6013
849c862e
JK
60142014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6015
6016 PR gdb/16626
6017 * auto-load.c (auto_load_objfile_script_1): Change filename to
6018 debugfile.
6019
475109d8
JB
60202014-02-25 Joel Brobecker <brobecker@adacore.com>
6021
6022 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6023 documentation. Adjust prototype to match the target_ops
6024 to_xfer_partial method. Adjust implementation accordingly.
6025
e186c3bd
HZ
60262014-02-25 Hui Zhu <hui@codesourcery.com>
6027
6028 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6029 to_traceframe_info.
6030
6d451942
KB
60312014-02-25 Kevin Buettner <kevinb@redhat.com>
6032
041ab8b4 6033 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6034 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6035 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6036 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6037 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6038 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6039 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6040 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6041 New constants.
6042 (rl78_register_type): Use a data pointer type for SP and
6043 new pseudo registers mentioned above. Use a 16 bit integer
6044 type for all other register pairs.
6045 (rl78_register_name, rl78_g10_register_name): Update for
6046 new pseudo registers.
6047 (rl78_pseudo_register_read): Likewise.
6048 (rl78_pseudo_register_write): Likewise.
6049 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6050 to the newly added pseudo registers.
6051
eddf0bae
DE
60522014-02-24 Doug Evans <dje@google.com>
6053
6054 * value.c (record_latest_value): Fix comment.
6055 * printcmd.c (print_command_1): Remove code to handle -1 return from
6056 record_latest_value.
6057
e96027e0
PA
60582014-02-24 Pedro Alves <palves@redhat.com>
6059
6060 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6061 deprecated_xfer_memory hook.
6062 (procfs_xfer_partial): Call procfs_xfer_memory instead
6063 of the deprecated_xfer_memory target hook.
6064 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6065 helper.
6066
0837c976
YZ
60672014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6068
6069 * windows-nat.c (windows_xfer_shared_libraries): Return
6070 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6071 requested object is TARGET_OBJECT_LIBRARIES.
6072
bc113b4e
YQ
60732014-02-24 Yao Qi <yao@codesourcery.com>
6074
6075 * target.h (enum target_xfer_status)
6076 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6077 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6078 explicitly. New.
6079 * corefile.c (memory_error_message): User updated.
6080 * exec.c (section_table_read_available_memory): Likewise.
6081 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6082 * target.c (target_xfer_status_to_string): Likewise.
6083 (raw_memory_xfer_partial): Likewise.
6084 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6085 * valops.c (read_value_memory): Likewise.
6086 * exec.h: Update comments.
6087
01cb8804
YQ
60882014-02-24 Yao Qi <yao@codesourcery.com>
6089
6090 * target.c (target_xfer_status_to_string): Rename argument err
6091 to status.
6092 * target.h (target_xfer_status_to_string): Update declaration.
6093 Replace target_xfer_error_to_string with
6094 target_xfer_status_to_string in comment.
6095
93063aa6
YQ
60962014-02-24 Yao Qi <yao@codesourcery.com>
6097
6098 * mips-linux-nat.c (super_close): Update its type.
6099 (mips_linux_close): Pass 'self' to super_close.
6100
5c328c05
YQ
61012014-02-24 Yao Qi <yao@codesourcery.com>
6102
6103 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6104 * corefile.c (read_memory): Adjusted.
6105 * target.c (target_write_with_progress): Adjusted.
6106
f73023dd
YQ
61072014-02-23 Yao Qi <yao@codesourcery.com>
6108
6109 Revert two patches:
6110
6111 2013-10-25 Yao Qi <yao@codesourcery.com>
6112
6113 * remote.c (remote_traceframe_info): Return early if
6114 traceframe is not selected.
6115
6116 2013-07-19 Yao Qi <yao@codesourcery.com>
6117
6118 * target.c (update_current_target): Change the default action
6119 of 'to_traceframe_info' from tcomplain to return_zero.
6120 * target.h (struct target_ops) <to_traceframe_info>: Add more
6121 comments.
6122
5a2eb0ef
YQ
61232014-02-23 Yao Qi <yao@codesourcery.com>
6124
6125 * valops.c (read_value_memory): Rewrite it. Call
6126 target_xfer_partial in a loop.
6127 * exec.h (section_table_available_memory): Remove declaration.
6128 Move comments to ...
6129 * exec.c (section_table_available_memory): ... here. Make it
6130 static.
6131
1ee79381
YQ
61322014-02-23 Yao Qi <yao@codesourcery.com>
6133
6134 * exec.c (section_table_read_available_memory): New function.
6135 * exec.h (section_table_read_available_memory): Declare.
6136 * ctf.c (ctf_xfer_partial): Call
6137 section_table_read_available_memory.
6138 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6139
1ca49d37
YQ
61402014-02-23 Yao Qi <yao@codesourcery.com>
6141
6142 * ctf.c (ctf_xfer_partial): Move code to ...
6143 * exec.c (exec_read_partial_read_only): ... it. New function.
6144 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6145 * tracefile.c: Include "exec.h".
6146 * exec.h (exec_read_partial_read_only): Declare.
6147
a283690e
YQ
61482014-02-23 Yao Qi <yao@codesourcery.com>
6149
6150 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6151 (tfile_has_memory): Remove.
6152 (init_tfile_ops): Don't set fields to_has_all_memory and
6153 to_has_memory of tfile_ops.
6154 * tracefile.c (tracefile_has_all_memory): New function.
6155 (tracefile_has_memory): New function.
6156 (init_tracefile_ops): Initialize fields to_has_all_memory and
6157 to_has_memory of 'ops'.
6158
12e03cd0
YQ
61592014-02-23 Yao Qi <yao@codesourcery.com>
6160
6161 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6162 (ctf_thread_alive, ctf_get_trace_status): Remove.
6163 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6164 init_tracefile_ops.
6165 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6166 (tfile_has_stack, tfile_has_registers): Remove.
6167 (tfile_thread_alive): Remove.
6168 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6169 init_tracefile_ops.
6170 * tracefile.c (tracefile_has_stack): New function.
6171 (tracefile_has_registers): New function.
6172 (tracefile_thread_alive): New function.
6173 (tracefile_get_trace_status): New function.
6174 (init_tracefile_ops): New function.
6175 * tracefile.h (init_tracefile_ops): Declare.
6176
11395323
YQ
61772014-02-23 Yao Qi <yao@codesourcery.com>
6178
6179 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6180 (O_LARGEFILE): Likewise.
6181 (tfile_ops): Likewise.
6182 (TRACE_HEADER_SIZE): Likewise.
6183 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6184 (cur_data_size): Likewise.
6185 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6186 (tfile_close, tfile_files_info): Likewise.
6187 (tfile_get_trace_status): Likewise.
6188 (tfile_get_tracepoint_status): Likewise.
6189 (tfile_get_traceframe_address): Likewise.
6190 (tfile_trace_find, match_blocktype): Likewise.
6191 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6192 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6193 (tfile_get_trace_state_variable_value): Likewise.
6194 (tfile_has_all_memory, tfile_has_memory): Likewise.
6195 (tfile_has_stack, tfile_has_registers): Likewise.
6196 (tfile_thread_alive, build_traceframe_info): Likewise.
6197 (tfile_traceframe_info, init_tfile_ops): Likewise.
6198 (_initialize_tracepoint): Don't call init_tfile_ops
6199 and add_target_with_completer.
6200 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6201 exec.h, completer.h and filenames.h.
6202 (_initialize_tracefile_tfile): New function.
6203
7951c4eb
YQ
62042014-02-23 Yao Qi <yao@codesourcery.com>
6205
6206 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6207 tracefile-tfile.o.
6208 (HFILES_NO_SRCDIR): Add tracefile.h.
6209 * ctf.c: Include "tracefile.h".
6210 * tracefile.h: New file.
6211 * tracefile.c: New file
6212 * tracefile-tfile.c: New file.
6213 * tracepoint.c: Include "tracefile.h".
6214 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6215 (stop_reason_names): Add const.
6216 (trace_file_writer_xfree): Move it to tracefile.c.
6217 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6218 (trace_save_ctf): Likewise.
6219 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6220 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6221 (tfile_write_header, tfile_write_regblock_type): Likewise.
6222 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6223 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6224 (tfile_write_raw_data, tfile_end): Likewise.
6225 (tfile_trace_file_writer_new): Likewise.
6226 (free_uploaded_tp): Make it extern.
6227 (free_uploaded_tsv): Make it extern.
6228 (_initialize_tracepoint): Move code to register command 'tsave'
6229 to tracefile.c.
6230 * tracepoint.h (stop_reason_names): Declare.
6231 (struct trace_frame_write_ops): Move it to tracefile.h.
6232 (struct trace_file_write_ops): Likewise.
6233 (struct trace_file_writer): Likewise.
6234 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6235
184cd072
JK
62362014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6237
6238 PR gdb/16594
6239 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6240 process name.
6241 (get_cores_used_by_process): New parameter num_cores, use it.
6242 (linux_xfer_osdata_processes): Pass num_cores to it.
6243 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6244 process name.
6245
c63528fc
AK
62462014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6247
6248 * target.c (memory_xfer_partial): Fix length arg in call to
6249 breakpoint_xfer_memory.
6250
d7b30f67
SDJ
62512014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6252
6253 PR tdep/16397
6254 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6255 number comes after the + or - signs. Adjust length of register
6256 name to be extracted.
6257
8838afaf
TT
62582014-02-20 Tom Tromey <tromey@redhat.com>
6259
6260 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6261 (ada_varobj_ops): Mark "extern".
6262
05227d14
TT
62632014-02-20 Tom Tromey <tromey@redhat.com>
6264
6265 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6266
1254eefc
DE
62672014-02-20 Doug Evans <xdje42@gmail.com>
6268
6269 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6270 All callers updated.
6271 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6272 All callers updated.
6273 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6274 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6275
adde2bff
DE
62762014-02-20 lin zuojian <manjian2006@gmail.com>
6277 Joel Brobecker <brobecker@adacore.com>
6278 Doug Evans <xdje42@gmail.com>
6279
6280 PR symtab/16581
6281 * dwarf2read.c (struct die_info): New member in_process.
6282 (reset_die_in_process): New function.
6283 (process_die): Set it at the start, reset when returning.
6284 (inherit_abstract_dies): Only call process_die if origin_child_die
6285 not already being processed.
6286
3be75f87
JB
62872014-02-20 Joel Brobecker <brobecker@adacore.com>
6288
6289 * windows-nat.c (handle_unload_dll): Add function documentation.
6290 (do_initial_windows_stuff): Add comment explaining why we wait
6291 until after inferior initialization has finished before
6292 processing all DLLs.
6293
47f7ffdb
JB
62942014-02-20 Joel Brobecker <brobecker@adacore.com>
6295
6296 * windows-nat.c (get_module_name): Delete.
6297 (windows_get_exec_module_filename): New function, mostly
6298 inspired from get_module_name.
6299 (windows_pid_to_exec_file): Replace call to get_module_name
6300 by call to windows_get_exec_module_filename.
6301
1cd9feab
JB
63022014-02-20 Joel Brobecker <brobecker@adacore.com>
6303
6304 * windows-nat.c (handle_load_dll): Rewrite this function's
6305 introductory comment. Remove code using get_module_name
6306 to get the DLL's name.
6307
ea39ad35
JB
63082014-02-20 Joel Brobecker <brobecker@adacore.com>
6309
6310 * windows-nat.c (get_windows_debug_event): Ignore
6311 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6312 if windows_initialization_done == 0.
6313 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6314 Adjust implementation to always load all DLLs.
6315 (do_initial_windows_stuff): Replace call to
6316 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6317
95060284
JB
63182014-02-20 Joel Brobecker <brobecker@adacore.com>
6319
6320 * windows-nat.c (_initialize_windows_nat): Deprecate the
6321 "dll-symbols" command. Turn the "add-shared-symbol-files"
6322 and "assf" aliases into commands, and deprecate them as well.
6323 * NEWS: Add entry explaining that "dll-symbols" and its two
6324 aliases are now deprecated.
6325
8d4fdb12
JB
63262014-02-20 Joel Brobecker <brobecker@adacore.com>
6327
6328 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6329 new-line in debug string. Remove trailing spaces.
6330
1b281443
SS
63312014-02-19 Stan Shebs <stan@codesourcery.com>
6332
6333 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6334
f7bd0f78
SC
63352014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6336
6337 * NEWS: Add entry for the new feature
6338 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6339 and class values.
6340
399ebc3d
SS
63412014-02-19 Stan Shebs <stan@codesourcery.com>
6342
6343 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6344
c658158d
PA
63452014-02-19 Pedro Alves <palves@redhat.com>
6346
6347 * common/ptid.h (struct ptid): Mention that process_stratum
6348 targets should prefer ptid.lwp.
6349
ba348170
PA
63502014-02-19 Pedro Alves <palves@redhat.com>
6351
6352 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6353 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6354 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6355 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6356 store remote thread ids rather than ptid.tid.
6357 (_initialize_remote): Adjust.
6358
ac01945b
TT
63592014-02-19 Tom Tromey <tromey@redhat.com>
6360
6361 * target.c (target_get_unwinder): Rewrite.
6362 (target_get_tailcall_unwinder): Rewrite.
6363 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6364 (record_btrace_to_get_tailcall_unwinder): New function.
6365 (init_record_btrace_ops): Update.
6366 * target.h (struct target_ops) <to_get_unwinder,
6367 to_get_tailcall_unwinder>: Now function pointers. Use
6368 TARGET_DEFAULT_RETURN.
6369
8476dc92
TT
63702014-02-19 Tom Tromey <tromey@redhat.com>
6371
6372 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6373 argument.
6374 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6375
c0eca49f
TT
63762014-02-19 Tom Tromey <tromey@redhat.com>
6377
6378 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6379 directly.
6380 * target-delegates.c: Rebuild.
6381 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6382 TARGET_DEFAULT_FUNC.
6383 * target.c (default_target_decr_pc_after_break): Rename from
6384 forward_target_decr_pc_after_break. Simplify.
6385 (target_decr_pc_after_break): Rely on delegation.
6386
596b6b39
TT
63872014-02-19 Tom Tromey <tromey@redhat.com>
6388
6389 * target.c (update_current_target): Do not INHERIT to_doc or
6390 to_magic. Do not de_fault to_open or to_close.
6391
b427c1bc
TT
63922014-02-19 Tom Tromey <tromey@redhat.com>
6393
6394 * gcore.h (objfile_find_memory_regions): Declare.
6395 * gcore.c (objfile_find_memory_regions): No longer static. Add
6396 "self" argument.
6397 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6398 * exec.c: Include gcore.h.
6399 (exec_set_find_memory_regions): Remove.
6400 (exec_find_memory_regions): Remove.
6401 (exec_do_find_memory_regions): Remove.
6402 (init_exec_ops): Update.
6403 * defs.h (exec_set_find_memory_regions): Remove.
6404
9b144037
TT
64052014-02-19 Tom Tromey <tromey@redhat.com>
6406
6407 * target-delegates.c: Rebuild.
6408 * target.h (struct target_ops) <to_extra_thread_info,
6409 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6410 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6411 not 0, in TARGET_DEFAULT_RETURN.
6412
555bbdeb
TT
64132014-02-19 Tom Tromey <tromey@redhat.com>
6414
6415 * target.c (complete_target_initialization): Remove casts. Use
6416 return_zero_has_execution.
6417 (return_zero): Add "ignore" argument.
6418 (return_zero_has_execution): New function.
6419 (init_dummy_target): Remove casts. Use
6420 return_zero_has_execution.
6421
be4ddd36
TT
64222014-02-19 Tom Tromey <tromey@redhat.com>
6423
6424 * target.c (update_current_target): Update comments. Do not
6425 INHERIT to_stratum.
6426
2117c711
TT
64272014-02-19 Tom Tromey <tromey@redhat.com>
6428
6429 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6430 needed.
6431 * corelow.c (core_read_description): Delegate when needed.
6432 * remote.c (remote_read_description): Delegate when needed.
6433 * target-delegates.c: Rebuild.
6434 * target.c (target_read_description): Rewrite.
6435 * target.h (struct target_ops) <to_read_description>: Update
6436 comment. Use TARGET_DEFAULT_RETURN.
6437
e88ef65c
TT
64382014-02-19 Tom Tromey <tromey@redhat.com>
6439
6440 * target-delegates.c: Rebuild.
6441 * target.c (update_current_target): Don't inherit or default
6442 to_can_run.
6443 (find_default_run_target): Check against delegate_can_run.
6444 * target.h (struct target_ops) <to_can_run>: Use
6445 TARGET_DEFAULT_RETURN.
6446
86a0854a
TT
64472014-02-19 Tom Tromey <tromey@redhat.com>
6448
6449 * target-delegates.c: Rebuild.
6450 * target.c (target_disconnect): Unconditionally delegate.
6451 * target.h (struct target_ops) <to_disconnect>: Use
6452 TARGET_DEFAULT_NORETURN.
6453
ee97f592
TT
64542014-02-19 Tom Tromey <tromey@redhat.com>
6455
6456 * record.c (record_stop): Unconditionally delegate.
6457 * target-delegates.c: Rebuild.
6458 * target.c (target_stop_recording): Unconditionally delegate.
6459 * target.h (struct target_ops) <to_stop_recording>: Use
6460 TARGET_DEFAULT_IGNORE.
6461
6dc7fcf4
TT
64622014-02-19 Tom Tromey <tromey@redhat.com>
6463
6464 * target-delegates.c: Rebuild.
6465 * target.c (target_enable_btrace): Unconditionally delegate.
6466 * target.h (struct target_ops) <to_enable_btrace>: Use
6467 TARGET_DEFAULT_NORETURN.
6468
eb5b20d4
TT
64692014-02-19 Tom Tromey <tromey@redhat.com>
6470
6471 * target-delegates.c: Rebuild.
6472 * target.c (target_read_btrace): Unconditionally delegate.
6473 * target.h (struct target_ops) <to_read_btrace>: Use
6474 TARGET_DEFAULT_NORETURN.
6475
9ace480d
TT
64762014-02-19 Tom Tromey <tromey@redhat.com>
6477
6478 * target-delegates.c: Rebuild.
6479 * target.c (target_teardown_btrace): Unconditionally delegate.
6480 * target.h (struct target_ops) <to_teardown_btrace>: Use
6481 TARGET_DEFAULT_NORETURN.
6482
8dc292d3
TT
64832014-02-19 Tom Tromey <tromey@redhat.com>
6484
6485 * target-delegates.c: Rebuild.
6486 * target.c (target_disable_btrace): Unconditionally delegate.
6487 * target.h (struct target_ops) <to_disable_btrace>: Use
6488 TARGET_DEFAULT_NORETURN.
6489
58a5184e
TT
64902014-02-19 Tom Tromey <tromey@redhat.com>
6491
6492 * target-delegates.c: Rebuild.
6493 * target.c (default_search_memory): New function.
6494 (simple_search_memory): Update comment.
6495 (target_search_memory): Unconditionally delegate.
6496 * target.h (struct target_ops) <to_search_memory>: Use
6497 TARGET_DEFAULT_FUNC.
6498
8de71aab
TT
64992014-02-19 Tom Tromey <tromey@redhat.com>
6500
6501 * auxv.c (default_auxv_parse): No longer static.
6502 (target_auxv_parse): Unconditionally delegate.
6503 * auxv.h (default_auxv_parse): Declare.
6504 * target-delegates.c: Rebuild.
6505 * target.c: Include auxv.h.
6506 * target.h (struct target_ops) <to_auxv_parse>: Use
6507 TARGET_DEFAULT_FUNC.
6508
6b2c5a57
TT
65092014-02-19 Tom Tromey <tromey@redhat.com>
6510
6511 * target-delegates.c: Rebuild.
6512 * target.c (target_memory_map): Unconditionally delegate.
6513 * target.h (struct target_ops) <to_memory_map>: Use
6514 TARGET_DEFAULT_RETURN.
6515
cbffc065
TT
65162014-02-19 Tom Tromey <tromey@redhat.com>
6517
6518 * target-delegates.c: Rebuild.
6519 * target.c (target_thread_alive): Unconditionally delegate.
6520 * target.h (struct target_ops) <to_thread_alive>: Use
6521 TARGET_DEFAULT_RETURN.
6522
f09e2107
TT
65232014-02-19 Tom Tromey <tromey@redhat.com>
6524
6525 * target-delegates.c: Rebuild.
6526 * target.c (target_save_record): Unconditionally delegate.
6527 * target.h (struct target_ops) <to_save_record>: Use
6528 TARGET_DEFAULT_NORETURN.
6529
07366925
TT
65302014-02-19 Tom Tromey <tromey@redhat.com>
6531
6532 * target-delegates.c: Rebuild.
6533 * target.c (target_delete_record): Unconditionally delegate.
6534 * target.h (struct target_ops) <to_delete_record>: Use
6535 TARGET_DEFAULT_NORETURN.
6536
dd2e9d25
TT
65372014-02-19 Tom Tromey <tromey@redhat.com>
6538
6539 * target-delegates.c: Rebuild.
6540 * target.c (target_record_is_replaying): Unconditionally
6541 delegate.
6542 * target.h (struct target_ops) <to_record_is_replaying>: Use
6543 TARGET_DEFAULT_RETURN.
6544
671e76cc
TT
65452014-02-19 Tom Tromey <tromey@redhat.com>
6546
6547 * target-delegates.c: Rebuild.
6548 * target.c (target_goto_record_begin): Unconditionally delegate.
6549 * target.h (struct target_ops) <to_goto_record_begin>: Use
6550 TARGET_DEFAULT_NORETURN.
6551
e9179bb3
TT
65522014-02-19 Tom Tromey <tromey@redhat.com>
6553
6554 * target-delegates.c: Rebuild.
6555 * target.c (target_goto_record_end): Unconditionally delegate.
6556 * target.h (struct target_ops) <to_goto_record_end>: Use
6557 TARGET_DEFAULT_NORETURN.
6558
05969c84
TT
65592014-02-19 Tom Tromey <tromey@redhat.com>
6560
6561 * target-delegates.c: Rebuild.
6562 * target.c (target_goto_record): Unconditionally delegate.
6563 * target.h (struct target_ops) <to_goto_record>: Use
6564 TARGET_DEFAULT_NORETURN.
6565
3679abfa
TT
65662014-02-19 Tom Tromey <tromey@redhat.com>
6567
6568 * target-delegates.c: Rebuild.
6569 * target.c (target_insn_history): Unconditionally delegate.
6570 * target.h (struct target_ops) <to_insn_history>: Use
6571 TARGET_DEFAULT_NORETURN.
6572
8444ab58
TT
65732014-02-19 Tom Tromey <tromey@redhat.com>
6574
6575 * target-delegates.c: Rebuild.
6576 * target.c (target_insn_history_from): Unconditionally delegate.
6577 * target.h (struct target_ops) <to_insn_history_from>: Use
6578 TARGET_DEFAULT_NORETURN.
6579
c29302cc
TT
65802014-02-19 Tom Tromey <tromey@redhat.com>
6581
6582 * target-delegates.c: Rebuild.
6583 * target.c (target_insn_history_range): Unconditionally delegate.
6584 * target.h (struct target_ops) <to_insn_history_range>: Use
6585 TARGET_DEFAULT_NORETURN.
6586
170049d4
TT
65872014-02-19 Tom Tromey <tromey@redhat.com>
6588
6589 * target-delegates.c: Rebuild.
6590 * target.c (target_call_history): Unconditionally delegate.
6591 * target.h (struct target_ops) <to_call_history>: Use
6592 TARGET_DEFAULT_NORETURN.
6593
16fc27d6
TT
65942014-02-19 Tom Tromey <tromey@redhat.com>
6595
6596 * target-delegates.c: Rebuild.
6597 * target.c (target_call_history_from): Unconditionally delegate.
6598 * target.h (struct target_ops) <to_call_history_from>: Use
6599 TARGET_DEFAULT_NORETURN.
6600
115d9817
TT
66012014-02-19 Tom Tromey <tromey@redhat.com>
6602
6603 * target-delegates.c: Rebuild.
6604 * target.c (target_call_history_range): Unconditionally delegate.
6605 * target.h (struct target_ops) <to_call_history_range>: Use
6606 TARGET_DEFAULT_NORETURN.
6607
eb276a6b
TT
66082014-02-19 Tom Tromey <tromey@redhat.com>
6609
6610 * target-delegates.c: Rebuild.
6611 * target.c (target_verify_memory): Unconditionally delegate.
6612 * target.h (struct target_ops) <to_verify_memory>: Use
6613 TARGET_DEFAULT_NORETURN.
6614
9e538d0d
TT
66152014-02-19 Tom Tromey <tromey@redhat.com>
6616
6617 * target-delegates.c: Rebuild.
6618 * target.c (target_core_of_thread): Unconditionally delegate.
6619 * target.h (struct target_ops) <to_core_of_thread>: Use
6620 TARGET_DEFAULT_RETURN.
6621
f6fb2925
TT
66222014-02-19 Tom Tromey <tromey@redhat.com>
6623
6624 * target-delegates.c: Rebuild.
6625 * target.c (target_flash_done): Unconditionally delegate.
6626 * target.h (struct target_ops) <to_flash_done>: Use
6627 TARGET_DEFAULT_NORETURN.
6628
e8a6c6ac
TT
66292014-02-19 Tom Tromey <tromey@redhat.com>
6630
6631 * target-delegates.c: Rebuild.
6632 * target.c (target_flash_erase): Unconditionally delegate.
6633 * target.h (struct target_ops) <to_flash_erase>: Use
6634 TARGET_DEFAULT_NORETURN.
6635
7e35c012
TT
66362014-02-19 Tom Tromey <tromey@redhat.com>
6637
6638 * target-delegates.c: Rebuild.
6639 * target.c (target_get_section_table): Unconditionally delegate.
6640 * target.h (struct target_ops) <to_get_section_table>: Use
6641 TARGET_DEFAULT_RETURN.
6642
770234d3
TT
66432014-02-19 Tom Tromey <tromey@redhat.com>
6644
6645 * target-delegates.c: Rebuild.
6646 * target.c (target_pid_to_str): Unconditionally delegate.
6647 (init_dummy_target): Don't initialize to_pid_to_str.
6648 (default_pid_to_str): Rename from dummy_pid_to_str.
6649 * target.h (struct target_ops) <to_pid_to_str>: Use
6650 TARGET_DEFAULT_FUNC.
6651
09b0dc2b
TT
66522014-02-19 Tom Tromey <tromey@redhat.com>
6653
6654 * target-delegates.c: Rebuild.
6655 * target.c (target_find_new_threads): Unconditionally delegate.
6656 * target.h (struct target_ops) <to_find_new_threads>: Use
6657 TARGET_DEFAULT_RETURN.
6658
7d4f8efa
TT
66592014-02-19 Tom Tromey <tromey@redhat.com>
6660
6661 * target-delegates.c: Rebuild.
6662 * target.c (target_program_signals): Unconditionally delegate.
6663 * target.h (struct target_ops) <to_program_signals>: Use
6664 TARGET_DEFAULT_IGNORE.
6665
035cad7f
TT
66662014-02-19 Tom Tromey <tromey@redhat.com>
6667
6668 * target-delegates.c: Rebuild.
6669 * target.c (target_pass_signals): Unconditionally delegate.
6670 * target.h (struct target_ops) <to_pass_signals>: Use
6671 TARGET_DEFAULT_IGNORE.
6672
8d657035
TT
66732014-02-19 Tom Tromey <tromey@redhat.com>
6674
6675 * target-delegates.c: Rebuild.
6676 * target.c (default_mourn_inferior): New function.
6677 (target_mourn_inferior): Unconditionally delegate.
6678 * target.h (struct target_ops) <to_mourn_inferior>: Use
6679 TARGET_DEFAULT_FUNC.
6680
098dba18
TT
66812014-02-19 Tom Tromey <tromey@redhat.com>
6682
6683 * target-delegates.c: Rebuild.
6684 * target.c (default_follow_fork): New function.
6685 (target_follow_fork): Unconditionally delegate.
6686 * target.h (struct target_ops) <to_follow_fork>: Use
6687 TARGET_DEFAULT_FUNC.
6688
423a4807
TT
66892014-02-19 Tom Tromey <tromey@redhat.com>
6690
6691 * target-delegates.c: Rebuild.
6692 * target.c (target_kill): Unconditionally delegate.
6693 * target.h (struct target_ops) <to_kill>: Use
6694 TARGET_DEFAULT_NORETURN.
6695
6c7e5e5c
TT
66962014-02-19 Tom Tromey <tromey@redhat.com>
6697
6698 * target-delegates.c: Rebuild.
6699 * target.c (target_masked_watch_num_registers): Unconditionally
6700 delegate.
6701 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6702 Use TARGET_DEFAULT_RETURN.
6703
8b1c364c
TT
67042014-02-19 Tom Tromey <tromey@redhat.com>
6705
6706 * target-delegates.c: Rebuild.
6707 * target.c (target_remove_mask_watchpoint): Unconditionally
6708 delegate.
6709 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6710 TARGET_DEFAULT_RETURN.
6711
cd4ae029
TT
67122014-02-19 Tom Tromey <tromey@redhat.com>
6713
6714 * target-delegates.c: Rebuild.
6715 * target.c (target_insert_mask_watchpoint): Unconditionally
6716 delegate.
6717 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6718 TARGET_DEFAULT_RETURN.
6719
a134316b
TT
67202014-02-19 Tom Tromey <tromey@redhat.com>
6721
6722 * target-delegates.c: Rebuild.
6723 * target.c (target_ranged_break_num_registers): Unconditionally
6724 delegate.
6725 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6726 Use TARGET_DEFAULT_RETURN.
6727
ad5989bd
TT
67282014-02-19 Tom Tromey <tromey@redhat.com>
6729
6730 * target-delegates.c: Rebuild.
6731 * target.c (target_fetch_registers): Unconditionally delegate.
6732 * target.h (struct target_ops) <to_fetch_registers>: Use
6733 TARGET_DEFAULT_NORETURN.
6734
46ee7e8d
TT
67352014-02-19 Tom Tromey <tromey@redhat.com>
6736
6737 * target-delegates.c: Rebuild.
6738 * target.c (update_current_target): Don't inherit or default
6739 to_stop.
6740 * target.h (struct target_ops) <to_stop>: Use
6741 TARGET_DEFAULT_IGNORE.
6742
843f59ed
TT
67432014-02-19 Tom Tromey <tromey@redhat.com>
6744
6745 * target-delegates.c: Rebuild.
6746 * target.c (update_current_target): Don't inherit or default
6747 to_can_run_breakpoint_commands.
6748 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6749 Use TARGET_DEFAULT_RETURN.
6750
ccfde2a0
TT
67512014-02-19 Tom Tromey <tromey@redhat.com>
6752
6753 * target-delegates.c: Rebuild.
6754 * target.c (update_current_target): Don't inherit or default
6755 to_supports_evaluation_of_breakpoint_conditions.
6756 * target.h (struct target_ops)
6757 <to_supports_evaluation_of_breakpoint_conditions>: Use
6758 TARGET_DEFAULT_RETURN.
6759
0de91722
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_augmented_libraries_svr4_read.
6765 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6766 Use TARGET_DEFAULT_RETURN.
6767
9a7d8b48
TT
67682014-02-19 Tom Tromey <tromey@redhat.com>
6769
6770 * target-delegates.c: Rebuild.
6771 * target.c (update_current_target): Don't inherit or default
6772 to_can_use_agent.
6773 * target.h (struct target_ops) <to_can_use_agent>: Use
6774 TARGET_DEFAULT_RETURN.
6775
d9db5b21
TT
67762014-02-19 Tom Tromey <tromey@redhat.com>
6777
6778 * target-delegates.c: Rebuild.
6779 * target.c (update_current_target): Don't inherit or default
6780 to_use_agent.
6781 * target.h (struct target_ops) <to_use_agent>: Use
6782 TARGET_DEFAULT_NORETURN.
6783
92155eeb
TT
67842014-02-19 Tom Tromey <tromey@redhat.com>
6785
6786 * target-delegates.c: Rebuild.
6787 * target.c (update_current_target): Don't inherit or default
6788 to_traceframe_info.
6789 (return_null): Remove.
6790 * target.h (struct target_ops) <to_traceframe_info>: Use
6791 TARGET_DEFAULT_RETURN.
6792
d6522a22
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_static_tracepoint_markers_by_strid.
6798 * target.h (struct target_ops)
6799 <to_static_tracepoint_markers_by_strid>: Use
6800 TARGET_DEFAULT_NORETURN.
6801
4c3e4425
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_marker_at.
6807 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6808 Use TARGET_DEFAULT_RETURN.
6809
dcd6917f
TT
68102014-02-19 Tom Tromey <tromey@redhat.com>
6811
6812 * target-delegates.c: Rebuild.
6813 * target.c (update_current_target): Don't inherit or default
6814 to_set_permissions.
6815 * target.h (struct target_ops) <to_set_permissions>: Use
6816 TARGET_DEFAULT_IGNORE.
6817
22bcceee
TT
68182014-02-19 Tom Tromey <tromey@redhat.com>
6819
6820 * target-delegates.c: Rebuild.
6821 * target.c (update_current_target): Don't inherit or default
6822 to_get_tib_address.
6823 * target.h (struct target_ops) <to_get_tib_address>: Use
6824 TARGET_DEFAULT_NORETURN.
6825
8586ccaa
TT
68262014-02-19 Tom Tromey <tromey@redhat.com>
6827
6828 * target-delegates.c: Rebuild.
6829 * target.c (update_current_target): Don't inherit or default
6830 to_set_trace_notes.
6831 * target.h (struct target_ops) <to_set_trace_notes>: Use
6832 TARGET_DEFAULT_RETURN.
6833
91df8d1d
TT
68342014-02-19 Tom Tromey <tromey@redhat.com>
6835
6836 * target-delegates.c: Rebuild.
6837 * target.c (update_current_target): Don't initialize
6838 to_set_trace_buffer_size.
6839 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6840 TARGET_DEFAULT_IGNORE.
6841
8d526939
TT
68422014-02-19 Tom Tromey <tromey@redhat.com>
6843
6844 * target-delegates.c: Rebuild.
6845 * target.c (update_current_target): Don't inherit or default
6846 to_set_circular_trace_buffer.
6847 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6848 TARGET_DEFAULT_IGNORE.
6849
0bcfeddf
TT
68502014-02-19 Tom Tromey <tromey@redhat.com>
6851
6852 * target-delegates.c: Rebuild.
6853 * target.c (update_current_target): Don't inherit or default
6854 to_set_disconnected_tracing.
6855 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6856 TARGET_DEFAULT_IGNORE.
6857
9249843f
TT
68582014-02-19 Tom Tromey <tromey@redhat.com>
6859
6860 * target-delegates.c: Rebuild.
6861 * target.c (update_current_target): Don't inherit or default
6862 to_get_min_fast_tracepoint_insn_len.
6863 (return_minus_one): Remove.
6864 * target.h (struct target_ops)
6865 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6866
ace92e7d
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_raw_trace_data.
6872 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6873 TARGET_DEFAULT_NORETURN.
6874
08120467
TT
68752014-02-19 Tom Tromey <tromey@redhat.com>
6876
6877 * target-delegates.c: Rebuild.
6878 * target.c (update_current_target): Don't inherit or default
6879 to_upload_trace_state_variables.
6880 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6881 Use TARGET_DEFAULT_RETURN.
6882
1e949b00
TT
68832014-02-19 Tom Tromey <tromey@redhat.com>
6884
6885 * target-delegates.c: Rebuild.
6886 * target.c (update_current_target): Don't inherit or default
6887 to_upload_tracepoints.
6888 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6889 TARGET_DEFAULT_RETURN.
6890
a2e6c147
TT
68912014-02-19 Tom Tromey <tromey@redhat.com>
6892
6893 * target-delegates.c: Rebuild.
6894 * target.c (update_current_target): Don't inherit or default
6895 to_save_trace_data.
6896 * target.h (struct target_ops) <to_save_trace_data>: Use
6897 TARGET_DEFAULT_NORETURN.
6898
959bcd0b
TT
68992014-02-19 Tom Tromey <tromey@redhat.com>
6900
6901 * target-delegates.c: Rebuild.
6902 * target.c (update_current_target): Don't inherit or default
6903 to_get_trace_state_variable_value.
6904 * target.h (struct target_ops)
6905 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6906
afc94e66
TT
69072014-02-19 Tom Tromey <tromey@redhat.com>
6908
6909 * target-delegates.c: Rebuild.
6910 * target.c (update_current_target): Don't inherit or default
6911 to_trace_find.
6912 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6913
e51c07ea
TT
69142014-02-19 Tom Tromey <tromey@redhat.com>
6915
6916 * target-delegates.c: Rebuild.
6917 * target.c (update_current_target): Don't inherit or default
6918 to_trace_stop.
6919 * target.h (struct target_ops) <to_trace_stop>: Use
6920 TARGET_DEFAULT_NORETURN.
6921
6fea14cd
TT
69222014-02-19 Tom Tromey <tromey@redhat.com>
6923
6924 * target-delegates.c: Rebuild.
6925 * target.c (update_current_target): Don't inherit or default
6926 to_get_tracepoint_status.
6927 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6928 TARGET_DEFAULT_NORETURN.
6929
4072d4ff
TT
69302014-02-19 Tom Tromey <tromey@redhat.com>
6931
6932 * target-delegates.c: Rebuild.
6933 * target.c (update_current_target): Don't inherit or default
6934 to_get_trace_status.
6935 * target.h (struct target_ops) <to_get_trace_status>: Use
6936 TARGET_DEFAULT_RETURN.
6937
25da2e80
TT
69382014-02-19 Tom Tromey <tromey@redhat.com>
6939
6940 * target-delegates.c: Rebuild.
6941 * target.c (update_current_target): Don't inherit or default
6942 to_trace_start.
6943 * target.h (struct target_ops) <to_trace_start>: Use
6944 TARGET_DEFAULT_NORETURN.
6945
86dd181d
TT
69462014-02-19 Tom Tromey <tromey@redhat.com>
6947
6948 * target-delegates.c: Rebuild.
6949 * target.c (update_current_target): Don't inherit or default
6950 to_trace_set_readonly_regions.
6951 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6952 Use TARGET_DEFAULT_NORETURN.
6953
05c41993
TT
69542014-02-19 Tom Tromey <tromey@redhat.com>
6955
6956 * target-delegates.c: Rebuild.
6957 * target.c (update_current_target): Don't inherit or default
6958 to_disable_tracepoint.
6959 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6960 TARGET_DEFAULT_NORETURN.
6961
151f70f1
TT
69622014-02-19 Tom Tromey <tromey@redhat.com>
6963
6964 * target-delegates.c: Rebuild.
6965 * target.c (update_current_target): Don't inherit or default
6966 to_enable_tracepoint.
6967 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6968 TARGET_DEFAULT_NORETURN.
6969
94eb98b9
TT
69702014-02-19 Tom Tromey <tromey@redhat.com>
6971
6972 * target-delegates.c: Rebuild.
6973 * target.c (update_current_target): Don't inherit or default
6974 to_download_trace_state_variable.
6975 * target.h (struct target_ops) <to_download_trace_state_variable>:
6976 Use TARGET_DEFAULT_NORETURN.
6977
719acc4a
TT
69782014-02-19 Tom Tromey <tromey@redhat.com>
6979
6980 * target-delegates.c: Rebuild.
6981 * target.c (update_current_target): Don't inherit or default
6982 to_can_download_tracepoint.
6983 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6984 TARGET_DEFAULT_RETURN.
6985
9a980a22
TT
69862014-02-19 Tom Tromey <tromey@redhat.com>
6987
6988 * target-delegates.c: Rebuild.
6989 * target.c (update_current_target): Don't inherit or default
6990 to_download_tracepoint.
6991 * target.h (struct target_ops) <to_download_tracepoint>: Use
6992 TARGET_DEFAULT_NORETURN.
6993
5536135b
TT
69942014-02-19 Tom Tromey <tromey@redhat.com>
6995
6996 * target-delegates.c: Rebuild.
6997 * target.c (update_current_target): Don't inherit or default
6998 to_trace_init.
6999 * target.h (struct target_ops) <to_trace_init>: Use
7000 TARGET_DEFAULT_RETURN.
7001
9409d39e
TT
70022014-02-19 Tom Tromey <tromey@redhat.com>
7003
7004 * target-delegates.c: Rebuild.
7005 * target.c (update_current_target): Don't inherit or default
7006 to_supports_string_tracing.
7007 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7008 TARGET_DEFAULT_RETURN.
7009
aab1b22d
TT
70102014-02-19 Tom Tromey <tromey@redhat.com>
7011
7012 * target-delegates.c: Rebuild.
7013 * target.c (update_current_target): Don't inherit or default
7014 to_supports_enable_disable_tracepoint.
7015 * target.h (struct target_ops)
7016 <to_supports_enable_disable_tracepoint>: Use
7017 TARGET_DEFAULT_RETURN.
7018
a7304748
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_multi_process.
7024 * target.h (struct target_ops) <to_supports_multi_process>: Use
7025 TARGET_DEFAULT_RETURN.
7026
4229b31d
TT
70272014-02-19 Tom Tromey <tromey@redhat.com>
7028
7029 * target-delegates.c: Rebuild.
7030 * target.c (update_current_target): Don't inherit or default
7031 to_get_ada_task_ptid.
7032 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7033 TARGET_DEFAULT_FUNC.
7034
43eba180
TT
70352014-02-19 Tom Tromey <tromey@redhat.com>
7036
7037 * target-delegates.c: Rebuild.
7038 * target.c (update_current_target): Don't inherit or default
7039 to_thread_architecture.
7040 * target.h (struct target_ops) <to_thread_architecture>: Use
7041 TARGET_DEFAULT_FUNC.
7042
fe31bf5b
TT
70432014-02-19 Tom Tromey <tromey@redhat.com>
7044
7045 * target-delegates.c: Rebuild.
7046 * target.c (update_current_target): Don't inherit or default
7047 to_execution_direction.
7048 * target.h (struct target_ops) <to_execution_direction>: Use
7049 TARGET_DEFAULT_FUNC.
7050
53e1cfc7
TT
70512014-02-19 Tom Tromey <tromey@redhat.com>
7052
7053 * target-delegates.c: Rebuild.
7054 * target.c (update_current_target): Don't inherit or default
7055 to_can_execute_reverse.
7056 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7057 TARGET_DEFAULT_RETURN.
7058 (target_can_execute_reverse): Unconditionally delegate.
7059
9bb9d61d
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_goto_bookmark.
7065 (dummy_goto_bookmark): Remove.
7066 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7067 * target.h (struct target_ops) <to_goto_bookmark>: Use
7068 TARGET_DEFAULT_NORETURN.
7069
3dbafbbb
TT
70702014-02-19 Tom Tromey <tromey@redhat.com>
7071
7072 * target-delegates.c: Rebuild.
7073 * target.c (update_current_target): Don't inherit or default
7074 to_get_bookmark.
7075 (dummy_get_bookmark): Remove.
7076 (init_dummy_target): Don't inherit or default to_get_bookmark.
7077 * target.h (struct target_ops) <to_get_bookmark>: Use
7078 TARGET_DEFAULT_NORETURN
7079
16f796b1
TT
70802014-02-19 Tom Tromey <tromey@redhat.com>
7081
7082 * target-delegates.c: Rebuild.
7083 * target.c (update_current_target): Don't inherit or default
7084 to_make_corefile_notes.
7085 (init_dummy_target): Don't initialize to_make_corefile_notes.
7086 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7087 TARGET_DEFAULT_FUNC.
7088
0b5a2719
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_find_memory_regions.
7094 (init_dummy_target): Don't initialize to_find_memory_regions.
7095 * target.h (struct target_ops) <to_find_memory_regions>: Use
7096 TARGET_DEFAULT_FUNC.
7097
d9cb0195
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_log_command.
7103 * target.h (struct target_ops) <to_log_command>: Use
7104 TARGET_DEFAULT_IGNORE.
7105 (target_log_command): Unconditionally delegate.
7106
830ca330
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_pid_to_exec_file.
7112 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7113 TARGET_DEFAULT_RETURN.
7114
825828fc
TT
71152014-02-19 Tom Tromey <tromey@redhat.com>
7116
7117 * target-delegates.c: Rebuild.
7118 * target.c (update_current_target): Don't inherit or default
7119 to_thread_name.
7120 (target_thread_name): Unconditionally delegate.
7121 * target.h (struct target_ops) <to_thread_name>: Use
7122 TARGET_DEFAULT_RETURN.
7123
4a7e6dda
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_extra_thread_info.
7129 * target.h (struct target_ops) <to_extra_thread_info>: Use
7130 TARGET_DEFAULT_RETURN.
7131
0db88c1d
TT
71322014-02-19 Tom Tromey <tromey@redhat.com>
7133
7134 * target-delegates.c: Rebuild.
7135 * target.c (update_current_target): Don't inherit or default
7136 to_has_exited.
7137 * target.h (struct target_ops) <to_has_exited>: Use
7138 TARGET_DEFAULT_RETURN..
7139
6a9fa051
TT
71402014-02-19 Tom Tromey <tromey@redhat.com>
7141
7142 * target-delegates.c: Rebuild.
7143 * target.c (update_current_target): Don't inherit or default
7144 to_set_syscall_catchpoint.
7145 (return_one): Remove.
7146 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7147 TARGET_DEFAULT_RETURN.
7148
62f64d7a
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_insert_exec_catchpoint.
7154 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7155 TARGET_DEFAULT_RETURN.
7156
cda0f38c
TT
71572014-01-08 Tom Tromey <tromey@redhat.com>
7158
7159 * target-delegates.c: Rebuild.
7160 * target.c (update_current_target): Don't inherit or default
7161 to_insert_exec_catchpoint.
7162 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7163 TARGET_DEFAULT_RETURN.
7164
95c3375e
TT
71652014-02-19 Tom Tromey <tromey@redhat.com>
7166
7167 * target-delegates.c: Rebuild.
7168 * target.c (update_current_target): Don't inherit or default
7169 to_remove_vfork_catchpoint.
7170 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7171 TARGET_DEFAULT_RETURN.
7172
7e18a8dc
TT
71732014-02-19 Tom Tromey <tromey@redhat.com>
7174
7175 * target-delegates.c: Rebuild.
7176 * target.c (update_current_target): Don't inherit or default
7177 to_insert_vfork_catchpoint.
7178 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7179 TARGET_DEFAULT_RETURN.
7180
e1a21fb7
TT
71812014-02-19 Tom Tromey <tromey@redhat.com>
7182
7183 * target-delegates.c: Rebuild.
7184 * target.c (update_current_target): Don't inherit or default
7185 to_remove_fork_catchpoint.
7186 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7187 TARGET_DEFAULT_RETURN.
7188
5958ebeb
TT
71892014-02-19 Tom Tromey <tromey@redhat.com>
7190
7191 * target-delegates.c: Rebuild.
7192 * target.c (update_current_target): Don't inherit or default
7193 to_insert_fork_catchpoint.
7194 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7195 TARGET_DEFAULT_RETURN.
7196
340ba4bf
TT
71972014-02-19 Tom Tromey <tromey@redhat.com>
7198
7199 * target-delegates.c: Rebuild.
7200 * target.c (update_current_target): Don't inherit or default
7201 to_post_startup_inferior.
7202 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7203 TARGET_DEFAULT_IGNORE.
7204
7634da87
TT
72052014-02-19 Tom Tromey <tromey@redhat.com>
7206
7207 * target-delegates.c: Rebuild.
7208 * target.c (update_current_target): Don't inherit or default
7209 to_load.
7210 * target.h (struct target_ops) <to_load>: Use
7211 TARGET_DEFAULT_NORETURN.
7212
e19e919f
TT
72132014-02-19 Tom Tromey <tromey@redhat.com>
7214
7215 * target-delegates.c: Rebuild.
7216 * target.c (update_current_target): Don't inherit or default
7217 to_terminal_info.
7218 * target.h (struct target_ops) <to_terminal_info>: Use
7219 TARGET_DEFAULT_FUNC.
7220
c6ea8f79
TT
72212014-02-19 Tom Tromey <tromey@redhat.com>
7222
7223 * target-delegates.c: Rebuild.
7224 * target.c (update_current_target): Don't inherit or default
7225 to_terminal_save_ours.
7226 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7227 TARGET_DEFAULT_IGNORE.
7228
e4a733f1
TT
72292014-02-19 Tom Tromey <tromey@redhat.com>
7230
7231 * target-delegates.c: Rebuild.
7232 * target.c (update_current_target): Don't inherit or default
7233 to_terminal_ours.
7234 * target.h (struct target_ops) <to_terminal_ours>: Use
7235 TARGET_DEFAULT_IGNORE.
7236
74fcbef9
TT
72372014-02-19 Tom Tromey <tromey@redhat.com>
7238
7239 * target-delegates.c: Rebuild.
7240 * target.c (update_current_target): Don't inherit or default
7241 to_terminal_ours_for_output.
7242 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7243 TARGET_DEFAULT_IGNORE.
7244
ddeaacc9
TT
72452014-02-19 Tom Tromey <tromey@redhat.com>
7246
7247 * target-delegates.c: Rebuild.
7248 * target.c (update_current_target): Don't inherit or default
7249 to_terminal_inferior.
7250 * target.h (struct target_ops) <to_terminal_inferior>: Use
7251 TARGET_DEFAULT_IGNORE.
7252
0343661d
TT
72532014-02-19 Tom Tromey <tromey@redhat.com>
7254
7255 * target-delegates.c: Rebuild.
7256 * target.c (update_current_target): Don't inherit or default
7257 to_terminal_init.
7258 * target.h (struct target_ops) <to_terminal_init>: Use
7259 TARGET_DEFAULT_IGNORE.
7260
77cdffe9
TT
72612014-02-19 Tom Tromey <tromey@redhat.com>
7262
7263 * target-delegates.c: Rebuild.
7264 * target.c (update_current_target): Don't inherit or default
7265 to_can_accel_watchpoint_condition.
7266 * target.h (struct target_ops)
7267 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7268
d03655e4
TT
72692014-02-19 Tom Tromey <tromey@redhat.com>
7270
7271 * target-delegates.c: Rebuild.
7272 * target.c (update_current_target): Don't inherit or default
7273 to_region_ok_for_hw_watchpoint.
7274 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7275 Use TARGET_DEFAULT_FUNC.
7276
65f160a9
TT
72772014-02-19 Tom Tromey <tromey@redhat.com>
7278
7279 * target-delegates.c: Rebuild.
7280 * target.c (update_current_target): Don't inherit or default
7281 to_watchpoint_addr_within_range.
7282 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7283 Use TARGET_DEFAULT_FUNC.
7284
61dd109f
TT
72852014-02-19 Tom Tromey <tromey@redhat.com>
7286
7287 * target-delegates.c: Rebuild.
7288 * target.c (update_current_target): Don't inherit or default
7289 to_remove_watchpoint.
7290 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7291 TARGET_DEFAULT_NORETURN.
7292
016facd4
TT
72932014-02-19 Tom Tromey <tromey@redhat.com>
7294
7295 * target-delegates.c: Rebuild.
7296 * target.c (update_current_target): Don't inherit or default
7297 to_insert_watchpoint.
7298 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7299 TARGET_DEFAULT_RETURN.
7300
418dabac
TT
73012014-02-19 Tom Tromey <tromey@redhat.com>
7302
7303 * target-delegates.c: Rebuild.
7304 * target.c (update_current_target): Don't inherit or default
7305 to_remove_hw_breakpoint.
7306 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7307 TARGET_DEFAULT_RETURN.
7308
61b371f9
TT
73092014-02-19 Tom Tromey <tromey@redhat.com>
7310
7311 * target-delegates.c: Rebuild.
7312 * target.c (update_current_target): Don't inherit or default
7313 to_insert_hw_breakpoint.
7314 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7315 TARGET_DEFAULT_RETURN.
7316
52b51d06
TT
73172014-02-19 Tom Tromey <tromey@redhat.com>
7318
7319 * target-delegates.c: Rebuild.
7320 * target.c (update_current_target): Don't inherit or default
7321 to_can_use_hw_breakpoint.
7322 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7323 TARGET_DEFAULT_RETURN.
7324
f86e59b2
TT
73252014-02-19 Tom Tromey <tromey@redhat.com>
7326
7327 * target-delegates.c: Rebuild.
7328 * target.c (update_current_target): Don't inherit or default
7329 to_files_info.
7330 * target.h (struct target_ops) <to_files_info>: Use
7331 TARGET_DEFAULT_IGNORE.
7332
6c628163
TT
73332014-02-19 Tom Tromey <tromey@redhat.com>
7334
7335 * target-delegates.c: Rebuild.
7336 * target.c (update_current_target): Don't inherit or default
7337 to_store.
7338 * target.h (struct target_ops) <to_store>: Use
7339 TARGET_DEFAULT_NORETURN.
7340
bebd3233
TT
73412014-02-19 Tom Tromey <tromey@redhat.com>
7342
7343 * target-delegates.c: Rebuild.
7344 * target.c (update_current_target): Don't inherit or default
7345 to_post_attach.
7346 * target.h (struct target_ops) <to_post_attach>: Use
7347 TARGET_DEFAULT_IGNORE.
7348
a53f3625
TT
73492014-02-19 Tom Tromey <tromey@redhat.com>
7350
7351 * target-delegates.c: Rebuild.
7352 * target.c (update_current_target): Don't inherit or default
7353 to_rcmd.
7354 (default_rcmd): New function.
7355 (do_monitor_command): Unconditionally delegate.
7356 * target.h (struct target_ops) <to_rmcd>: Use
7357 TARGET_DEFAULT_FUNC.
7358
e9a29200
TT
73592014-02-19 Tom Tromey <tromey@redhat.com>
7360
7361 * target-delegates.c: Rebuild.
7362 * target.c (init_dummy_target): Don't initialize to_attach.
7363 (target_attach): Unconditionally delegate.
7364 * target.h (struct target_ops) <to_attach>: Use
7365 TARGET_DEFAULT_FUNC.
7366
09da0d0a
TT
73672014-02-19 Tom Tromey <tromey@redhat.com>
7368
7369 * target-delegates.c: Rebuild.
7370 * target.c (target_detach): Unconditionally delegate.
7371 (init_dummy_target): Don't initialize to_detach.
7372 * target.h (struct target_ops) <to_detach>: Use
7373 TARGET_DEFAULT_IGNORE.
7374
5436ff03
TT
73752014-02-19 Tom Tromey <tromey@redhat.com>
7376
7377 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7378 Add argument.
7379 (target_augmented_libraries_svr4_read): Add argument.
7380 * target.c (update_current_target): Update.
7381 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7382 argument.
7383
f0d960ea
TT
73842014-02-19 Tom Tromey <tromey@redhat.com>
7385
7386 * target.h (struct target_ops) <to_call_history_range>: Add
7387 argument.
7388 * target.c (target_call_history_range): Add argument.
7389 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7390 argument.
7391 (record_btrace_call_history_from): Update.
7392
ec0aea04
TT
73932014-02-19 Tom Tromey <tromey@redhat.com>
7394
7395 * target.h (struct target_ops) <to_call_history_from>: Add
7396 argument.
7397 * target.c (target_call_history_from): Add argument.
7398 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7399 argument.
7400
5df2fcba
TT
74012014-02-19 Tom Tromey <tromey@redhat.com>
7402
7403 * target.h (struct target_ops) <to_call_history>: Add argument.
7404 * target.c (target_call_history): Add argument.
7405 * record-btrace.c (record_btrace_call_history): Add 'self'
7406 argument.
7407
4e99c6b7
TT
74082014-02-19 Tom Tromey <tromey@redhat.com>
7409
7410 * target.h (struct target_ops) <to_insn_history_range>: Add
7411 argument.
7412 * target.c (target_insn_history_range): Add argument.
7413 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7414 argument.
7415 (record_btrace_insn_history_from): Update.
7416
9abc3ff3
TT
74172014-02-19 Tom Tromey <tromey@redhat.com>
7418
7419 * target.h (struct target_ops) <to_insn_history_from>: Add
7420 argument.
7421 * target.c (target_insn_history_from): Add argument.
7422 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7423 argument.
7424
7a6c5609
TT
74252014-02-19 Tom Tromey <tromey@redhat.com>
7426
7427 * target.h (struct target_ops) <to_insn_history>: Add argument.
7428 * target.c (target_insn_history): Add argument.
7429 * record-btrace.c (record_btrace_insn_history): Add 'self'
7430 argument.
7431
606183ac
TT
74322014-02-19 Tom Tromey <tromey@redhat.com>
7433
7434 * target.h (struct target_ops) <to_goto_record>: Add argument.
7435 * target.c (target_goto_record): Add argument.
7436 * record-full.c (record_full_goto): Add 'self' argument.
7437 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7438
307a1b91
TT
74392014-02-19 Tom Tromey <tromey@redhat.com>
7440
7441 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7442 * target.c (target_goto_record_end): Add argument.
7443 * record-full.c (record_full_goto_end): Add 'self' argument.
7444 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7445
08475817
TT
74462014-02-19 Tom Tromey <tromey@redhat.com>
7447
7448 * target.h (struct target_ops) <to_goto_record_begin>: Add
7449 argument.
7450 * target.c (target_goto_record_begin): Add argument.
7451 * record-full.c (record_full_goto_begin): Add 'self' argument.
7452 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7453 argument.
7454
1c63c994
TT
74552014-02-19 Tom Tromey <tromey@redhat.com>
7456
7457 * target.h (struct target_ops) <to_record_is_replaying>: Add
7458 argument.
7459 * target.c (target_record_is_replaying): Add argument.
7460 * record-full.c (record_full_is_replaying): Add 'self' argument.
7461 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7462 argument.
7463 (record_btrace_xfer_partial, record_btrace_store_registers)
7464 (record_btrace_prepare_to_store, record_btrace_resume)
7465 (record_btrace_wait, record_btrace_decr_pc_after_break)
7466 (record_btrace_find_new_threads, record_btrace_thread_alive):
7467 Update.
7468
d1b55219
TT
74692014-02-19 Tom Tromey <tromey@redhat.com>
7470
7471 * target.h (struct target_ops) <to_delete_record>: Add argument.
7472 * target.c (target_delete_record): Add argument.
7473 * record-full.c (record_full_delete): Add 'self' argument.
7474
1390f529
TT
74752014-02-19 Tom Tromey <tromey@redhat.com>
7476
7477 * target.h (struct target_ops) <to_save_record>: Add argument.
7478 * target.c (target_save_record): Add argument.
7479 * record-full.c (record_full_save): Add 'self' argument.
7480 (record_full_save): Add 'self' argument.
7481
630d6a4a
TT
74822014-02-19 Tom Tromey <tromey@redhat.com>
7483
7484 * target.h (struct target_ops) <to_info_record>: Add argument.
7485 * target.c (target_info_record): Add argument.
7486 * record.c (info_record_command): Add argument.
7487 * record-full.c (record_full_info): Add 'self' argument.
7488 * record-btrace.c (record_btrace_info): Add 'self' argument.
7489
c6cd7c02
TT
74902014-02-19 Tom Tromey <tromey@redhat.com>
7491
7492 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7493 * target.c (target_stop_recording): Add argument.
7494 * record.c (record_stop): Add argument.
7495 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7496 argument.
7497
39c49f83
TT
74982014-02-19 Tom Tromey <tromey@redhat.com>
7499
7500 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7501 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7502 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7503 argument.
7504 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7505 (_initialize_amd64_linux_nat): Use it.
7506 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7507 (_initialize_i386_linux_nat): Use it.
7508
1777056d
TT
75092014-02-19 Tom Tromey <tromey@redhat.com>
7510
7511 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7512 * target.c (target_teardown_btrace): Add argument.
7513 * remote.c (remote_teardown_btrace): Add 'self' argument.
7514 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7515 argument.
7516 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7517 argument.
7518
25e95349
TT
75192014-02-19 Tom Tromey <tromey@redhat.com>
7520
7521 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7522 * target.c (target_disable_btrace): Add argument.
7523 * remote.c (remote_disable_btrace): Add 'self' argument.
7524 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7525 argument.
7526 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7527 argument.
7528
e3c49f88
TT
75292014-02-19 Tom Tromey <tromey@redhat.com>
7530
7531 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7532 * target.c (target_enable_btrace): Add argument.
7533 * remote.c (remote_enable_btrace): Add 'self' argument.
7534 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7535 argument.
7536 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7537 argument.
7538
fe38f897
TT
75392014-02-19 Tom Tromey <tromey@redhat.com>
7540
7541 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7542 (target_can_use_agent): Add argument.
7543 * target.c (update_current_target): Update.
7544 * remote.c (remote_can_use_agent): Add 'self' argument.
7545 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7546
2c152180
TT
75472014-02-19 Tom Tromey <tromey@redhat.com>
7548
7549 * target.h (struct target_ops) <to_use_agent>: Add argument.
7550 (target_use_agent): Add argument.
7551 * target.c (update_current_target): Update.
7552 * remote.c (remote_use_agent): Add 'self' argument.
7553 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7554
a893e81f
TT
75552014-02-19 Tom Tromey <tromey@redhat.com>
7556
7557 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7558 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7559 (target_traceframe_info): Add argument.
7560 * target.c (update_current_target): Update.
7561 * remote.c (remote_traceframe_info): Add 'self' argument.
7562 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7563
c686c57f
TT
75642014-02-19 Tom Tromey <tromey@redhat.com>
7565
7566 * target.h (target_static_tracepoint_markers_by_strid): Add
7567 argument.
7568 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7569 'self' argument.
7570 * target.c (update_current_target): Update.
7571 * remote.c (struct target_ops)
7572 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7573 * linux-nat.c (struct target_ops)
7574 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7575
61fc905d
TT
75762014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7579 Add argument.
7580 (target_static_tracepoint_marker_at): Add argument.
7581 * target.c (update_current_target): Update.
7582 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7583 argument.
7584
c378d69d
TT
75852014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7588 (target_set_permissions): Add argument.
7589 * target.c (update_current_target): Update.
7590 * remote.c (remote_set_permissions): Add 'self' argument.
7591 (remote_start_remote): Update.
7592
bd7ae0f5
TT
75932014-02-19 Tom Tromey <tromey@redhat.com>
7594
7595 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7596 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7597 (target_get_tib_address): Add argument.
7598 * target.c (update_current_target): Update.
7599 * remote.c (remote_get_tib_address): Add 'self' argument.
7600
d9e68a2c
TT
76012014-02-19 Tom Tromey <tromey@redhat.com>
7602
7603 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7604 (target_set_trace_notes): Add argument.
7605 * target.c (update_current_target): Update.
7606 * remote.c (remote_set_trace_notes): Add 'self' argument.
7607
4da384be
TT
76082014-02-19 Tom Tromey <tromey@redhat.com>
7609
7610 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7611 argument.
7612 (target_set_trace_buffer_size): Add argument.
7613 * target.c (update_current_target): Update.
7614 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7615
736d5b1f
TT
76162014-02-19 Tom Tromey <tromey@redhat.com>
7617
7618 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7619 argument.
7620 (target_set_circular_trace_buffer): Add argument.
7621 * target.c (update_current_target): Update.
7622 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7623 argument.
7624
37b25738
TT
76252014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7628 argument.
7629 (target_set_disconnected_tracing): Add argument.
7630 * target.c (update_current_target): Update.
7631 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7632
0e67620a
TT
76332014-02-19 Tom Tromey <tromey@redhat.com>
7634
7635 * target.h (struct target_ops)
7636 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7637 (target_get_min_fast_tracepoint_insn_len): Add argument.
7638 * target.c (update_current_target): Update.
7639 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7640 argument.
7641
88ee6f45
TT
76422014-02-19 Tom Tromey <tromey@redhat.com>
7643
7644 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7645 argument.
7646 (target_get_raw_trace_data): Add argument.
7647 * target.c (update_current_target): Update.
7648 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7649
181e3713
TT
76502014-02-19 Tom Tromey <tromey@redhat.com>
7651
7652 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7653 Add argument.
7654 (target_upload_trace_state_variables): Add argument.
7655 * target.c (update_current_target): Update.
7656 * remote.c (remote_upload_trace_state_variables): Add 'self'
7657 argument.
7658 (remote_start_remote): Update.
7659
ab6617cc
TT
76602014-02-19 Tom Tromey <tromey@redhat.com>
7661
7662 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7663 argument.
7664 (target_upload_tracepoints): Add argument.
7665 * target.c (update_current_target): Update.
7666 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7667 (remote_start_remote): Update.
7668
dc3decaf
TT
76692014-02-19 Tom Tromey <tromey@redhat.com>
7670
7671 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7672 (target_save_trace_data): Add argument.
7673 * target.c (update_current_target): Update.
7674 * remote.c (remote_save_trace_data): Add 'self' argument.
7675
4011015b
TT
76762014-02-19 Tom Tromey <tromey@redhat.com>
7677
7678 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7679 argument.
7680 * target.h (struct target_ops)
7681 <to_get_trace_state_variable_value>: Add argument.
7682 (target_get_trace_state_variable_value): Add argument.
7683 * target.c (update_current_target): Update.
7684 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7685 argument.
7686 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7687
bd4c6793
TT
76882014-02-19 Tom Tromey <tromey@redhat.com>
7689
7690 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7691 * target.h (struct target_ops) <to_trace_find>: Add argument.
7692 (target_trace_find): Add argument.
7693 * target.c (update_current_target): Update.
7694 * remote.c (remote_trace_find): Add 'self' argument.
7695 * ctf.c (ctf_trace_find): Add 'self' argument.
7696
74499f1b
TT
76972014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7700 (target_trace_stop): Add argument.
7701 * target.c (update_current_target): Update.
7702 * remote.c (remote_trace_stop): Add 'self' argument.
7703
db90e85c
TT
77042014-02-19 Tom Tromey <tromey@redhat.com>
7705
7706 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7707 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7708 argument.
7709 (target_get_tracepoint_status): Add argument.
7710 * target.c (update_current_target): Update.
7711 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7712
8bd200f1
TT
77132014-02-19 Tom Tromey <tromey@redhat.com>
7714
7715 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7716 * target.h (struct target_ops) <to_get_trace_status>: Add
7717 argument.
7718 (target_get_trace_status): Add argument.
7719 * target.c (update_current_target): Update.
7720 * remote.c (remote_get_trace_status): Add 'self' argument.
7721 (remote_start_remote, remote_can_download_tracepoint): Update.
7722 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7723
e2d1aae3
TT
77242014-02-19 Tom Tromey <tromey@redhat.com>
7725
7726 * target.h (struct target_ops) <to_trace_start>: Add argument.
7727 (target_trace_start): Add argument.
7728 * target.c (update_current_target): Update.
7729 * remote.c (remote_trace_start): Add 'self' argument.
7730
583f9a86
TT
77312014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7734 Add argument.
7735 (target_trace_set_readonly_regions): Add argument.
7736 * target.c (update_current_target): Update.
7737 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7738 argument.
7739
780b049c
TT
77402014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7743 argument.
7744 (target_disable_tracepoint): Add argument.
7745 * target.c (update_current_target): Update.
7746 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7747
46670d57
TT
77482014-02-19 Tom Tromey <tromey@redhat.com>
7749
7750 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7751 argument.
7752 (target_enable_tracepoint): Add argument.
7753 * target.c (update_current_target): Update.
7754 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7755
559d2b81
TT
77562014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * target.h (struct target_ops) <to_download_trace_state_variable>:
7759 Add argument.
7760 (target_download_trace_state_variable): Add argument.
7761 * target.c (update_current_target): Update.
7762 * remote.c (remote_download_trace_state_variable): Add 'self'
7763 argument.
7764
a52a8357
TT
77652014-02-19 Tom Tromey <tromey@redhat.com>
7766
7767 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7768 argument.
7769 (target_can_download_tracepoint): Add argument.
7770 * target.c (update_current_target): Update.
7771 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7772
548f7808
TT
77732014-02-19 Tom Tromey <tromey@redhat.com>
7774
7775 * target.h (struct target_ops) <to_download_tracepoint>: Add
7776 argument.
7777 (target_download_tracepoint): Add argument.
7778 * target.c (update_current_target): Update.
7779 * remote.c (remote_download_tracepoint): Add 'self' argument.
7780
ecae04e1
TT
77812014-02-19 Tom Tromey <tromey@redhat.com>
7782
7783 * target.h (struct target_ops) <to_trace_init>: Add argument.
7784 (target_trace_init): Add argument.
7785 * target.c (update_current_target): Update.
7786 * remote.c (remote_trace_init): Add 'self' argument.
7787
fab5aa7c
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7791 * target.c (target_fileio_readlink): Add argument.
7792 * remote.c (remote_hostio_readlink): Add 'self' argument.
7793 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7794
dbbca37d
TT
77952014-02-19 Tom Tromey <tromey@redhat.com>
7796
7797 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7798 * target.c (target_fileio_unlink): Add argument.
7799 * remote.c (remote_hostio_unlink): Add 'self' argument.
7800 (remote_file_delete): Update.
7801 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7802
df39ea25
TT
78032014-02-19 Tom Tromey <tromey@redhat.com>
7804
7805 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7806 * target.c (target_fileio_close): Add argument.
7807 * remote.c (remote_hostio_close): Add 'self' argument.
7808 (remote_hostio_close_cleanup): Update.
7809 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7810 Update.
7811 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7812
a3be983c
TT
78132014-02-19 Tom Tromey <tromey@redhat.com>
7814
7815 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7816 * target.c (target_fileio_pread): Add argument.
7817 * remote.c (remote_hostio_pread): Add 'self' argument.
7818 (remote_bfd_iovec_pread, remote_file_get): Update.
7819 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7820
0d866f62
TT
78212014-02-19 Tom Tromey <tromey@redhat.com>
7822
7823 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7824 * target.c (target_fileio_pwrite): Add argument.
7825 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7826 (remote_file_put): Update.
7827 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7828
cd897586
TT
78292014-02-19 Tom Tromey <tromey@redhat.com>
7830
7831 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7832 * target.c (target_fileio_open): Add argument.
7833 * remote.c (remote_hostio_open): Add 'self' argument.
7834 (remote_bfd_iovec_open): Add 'self' argument.
7835 (remote_file_put): Add 'self' argument.
7836 (remote_file_get): Add 'self' argument.
7837 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7838
78eff0ec
TT
78392014-02-19 Tom Tromey <tromey@redhat.com>
7840
7841 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7842 Add argument.
7843 (target_can_run_breakpoint_commands): Add argument.
7844 * target.c (update_current_target): Update.
7845 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7846 argument.
7847 (remote_insert_breakpoint): Add 'self' argument.
7848 (remote_insert_hw_breakpoint): Add 'self' argument.
7849 (remote_can_run_breakpoint_commands): Add 'self' argument.
7850
efcc2da7
TT
78512014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target.h (struct target_ops)
7854 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7855 (target_supports_evaluation_of_breakpoint_conditions): Add
7856 argument.
7857 * target.c (update_current_target): Update.
7858 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7859 argument.
7860 (remote_insert_breakpoint): Add 'self' argument.
7861 (remote_insert_hw_breakpoint): Add 'self' argument.
7862 (remote_supports_cond_breakpoints): Add 'self' argument.
7863
6de37a3a
TT
78642014-02-19 Tom Tromey <tromey@redhat.com>
7865
7866 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7867 argument.
7868 (target_supports_string_tracing): Add argument.
7869 * target.c (update_current_target): Update.
7870 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7871
2bfc0540
TT
78722014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target.h (struct target_ops)
7875 <to_supports_disable_randomization>: Add argument.
7876 * target.c (find_default_supports_disable_randomization): Add
7877 argument.
7878 (target_supports_disable_randomization): Add argument.
7879 (find_default_supports_disable_randomization): Add 'self'
7880 argument.
7881 * remote.c (extended_remote_supports_disable_randomization): Add
7882 'self' argument.
7883 (remote_supports_disable_randomization): Add 'self' argument.
7884 (extended_remote_create_inferior): Update.
7885 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7886 'self' argument.
7887
7d178d6a
TT
78882014-02-19 Tom Tromey <tromey@redhat.com>
7889
7890 * target.h (struct target_ops)
7891 <to_supports_enable_disable_tracepoint>: Add argument.
7892 (target_supports_enable_disable_tracepoint): Add argument.
7893 * target.c (update_current_target): Update.
7894 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7895 argument.
7896
86ce2668
TT
78972014-02-19 Tom Tromey <tromey@redhat.com>
7898
7899 * target.h (struct target_ops) <to_supports_multi_process>: Add
7900 argument.
7901 (target_supports_multi_process): Add argument.
7902 * target.c (update_current_target): Update.
7903 * remote.c (remote_supports_multi_process): Add 'self' argument.
7904 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7905 argument.
7906 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7907 argument.
7908
4c612759
TT
79092014-02-19 Tom Tromey <tromey@redhat.com>
7910
7911 * target.h (struct target_ops) <to_execution_direction>: Add
7912 argument.
7913 (target_execution_direction): Add argument.
7914 * target.c (default_execution_direction): Add 'self' argument.
7915 * record-full.c (record_full_execution_direction): Add 'self'
7916 argument.
7917
19db3e69
TT
79182014-02-19 Tom Tromey <tromey@redhat.com>
7919
7920 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7921 argument.
7922 (target_can_execute_reverse): Add argument.
7923 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7924 * record-full.c (record_full_can_execute_reverse): Add 'self'
7925 argument.
7926 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7927 argument.
7928
1e6b91a4
TT
79292014-02-19 Tom Tromey <tromey@redhat.com>
7930
7931 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7932 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7933 argument.
7934 (target_get_ada_task_ptid): Add argument.
7935 * target.c (update_current_target): Update.
7936 (default_get_ada_task_ptid): Add 'self' argument.
7937 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7938 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7939 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7940 argument.
7941 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7942 argument.
7943 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7944 argument.
7945 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7946 argument.
7947 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7948 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7949 argument.
7950
3c80fb48
TT
79512014-02-19 Tom Tromey <tromey@redhat.com>
7952
7953 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7954 (target_goto_bookmark): Add argument.
7955 * target.c (dummy_goto_bookmark): Add 'self' argument.
7956 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7957
dd0e2830
TT
79582014-02-19 Tom Tromey <tromey@redhat.com>
7959
7960 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7961 (target_get_bookmark): Add argument.
7962 * target.c (dummy_get_bookmark): Add 'self' argument.
7963 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7964
fc6691b2
TT
79652014-02-19 Tom Tromey <tromey@redhat.com>
7966
7967 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7968 argument.
7969 (target_make_corefile_notes): Add argument.
7970 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7971 * procfs.c (procfs_make_note_section): Add 'self' argument.
7972 (procfs_make_note_section): Add 'self' argument.
7973 (procfs_make_note_section): Add 'self' argument.
7974 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7975 argument.
7976 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7977 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7978 * exec.c (exec_make_note_section): Add 'self' argument.
7979 (exec_make_note_section): Add 'self' argument.
7980
2e73927c
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target.h (struct target_ops) <to_find_memory_regions>: Add
7984 argument.
7985 (target_find_memory_regions): Add argument.
7986 * target.c (dummy_find_memory_regions): Add 'self' argument.
7987 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7988 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7989 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7990 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7991 * exec. (exec_do_find_memory_regions): New global.
7992 (exec_set_find_memory_regions): Rewrite.
7993 (exec_find_memory_regions): New function.
7994 (init_exec_ops): Use exec_find_memory_regions.
7995
2a9a2795
TT
79962014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target.h (struct target_ops) <to_supports_non_stop>: Add
7999 argument.
8000 * target.c (find_default_supports_non_stop): Add argument.
8001 (target_supports_non_stop): Add argument.
8002 (find_default_supports_non_stop): Add 'self' argument.
8003 * remote.c (remote_supports_non_stop): Add 'self' argument.
8004 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8005
4ab76ea3
TT
80062014-02-19 Tom Tromey <tromey@redhat.com>
8007
8008 * target.h (struct target_ops) <to_log_command>: Add argument.
8009 (target_log_command): Add argument.
8010 * serial.h (serial_log_command): Add 'self' argument.
8011 * serial.c (serial_log_command): Add 'self' argument.
8012
8dd27370
TT
80132014-02-19 Tom Tromey <tromey@redhat.com>
8014
8015 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8016 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8017 argument.
8018 (target_pid_to_exec_file): Add argument.
8019 * target.c (debug_to_pid_to_exec_file): Add argument.
8020 (update_current_target): Update.
8021 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8022 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8023 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8024 (linux_handle_extended_wait): Update.
8025 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8026 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8027 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8028 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8029
1aac633b
TT
80302014-02-19 Tom Tromey <tromey@redhat.com>
8031
8032 * target.h (struct target_ops) <to_rcmd>: Add argument.
8033 (target_rcmd): Add argument.
8034 * target.c (debug_to_rcmd): Add argument.
8035 (update_current_target, do_monitor_command): Update.
8036 * remote.c (remote_rcmd): Add 'self' argument.
8037 * monitor.c (monitor_rcmd): Add 'self' argument.
8038
1eab8a48
TT
80392014-02-19 Tom Tromey <tromey@redhat.com>
8040
8041 * windows-nat.c (windows_stop): Add 'self' argument.
8042 * target.h (struct target_ops) <to_stop>: Add argument.
8043 * target.c (target_stop): Add argument.
8044 (debug_to_stop): Add argument.
8045 (update_current_target): Update.
8046 * remote.c (remote_stop): Add 'self' argument.
8047 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8048 (gdbsim_cntrl_c): Update.
8049 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8050 * procfs.c (procfs_stop): Add 'self' argument.
8051 * nto-procfs.c (procfs_stop): Add 'self' argument.
8052 * monitor.c (monitor_stop): Add 'self' argument.
8053 (monitor_open): Update.
8054 * linux-nat.c (linux_nat_stop): Add argument.
8055 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8056 * gnu-nat.c (gnu_stop): Add 'self' argument.
8057 * darwin-nat.c (darwin_stop): Add 'self' argument.
8058
503a628d
TT
80592014-02-19 Tom Tromey <tromey@redhat.com>
8060
8061 * target.h (struct target_ops) <to_thread_name>: Add argument.
8062 * target.c (target_thread_name): Add argument.
8063 (update_current_target): Update.
8064 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8065
c15906d8
TT
80662014-02-19 Tom Tromey <tromey@redhat.com>
8067
8068 * target.h (struct target_ops) <to_extra_thread_info>: Add
8069 argument.
8070 (target_extra_thread_info): Add argument.
8071 * target.c (update_current_target): Update.
8072 * remote.c (remote_threads_extra_info): Add 'self' argument.
8073 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8074 argument.
8075 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8076 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8077 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8078 argument.
8079 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8080 argument.
8081 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8082 argument.
8083 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8084 argument.
8085
daf5e9b6
TT
80862014-02-19 Tom Tromey <tromey@redhat.com>
8087
8088 * target.h (struct target_ops) <to_program_signals>: Add argument.
8089 * target.c (target_program_signals): Add argument.
8090 * remote.c (remote_program_signals): Add 'self' argument.
8091
94bedb42
TT
80922014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8095 * target.c (target_pass_signals): Add argument.
8096 * remote.c (remote_pass_signals): Add 'self' argument.
8097 (remote_start_remote): Update.
8098 * procfs.c (procfs_pass_signals): Add 'self' argument.
8099 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8100 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8101 (linux_nat_create_inferior, linux_nat_attach): Update.
8102
da82bd6b
TT
81032014-02-19 Tom Tromey <tromey@redhat.com>
8104
8105 * windows-nat.c (windows_can_run): Add 'self' argument.
8106 * target.h (struct target_ops) <to_can_run>: Add argument.
8107 (target_can_run): Add argument.
8108 * target.c (debug_to_can_run): Add argument.
8109 (update_current_target): Update.
8110 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8111 * inf-child.c (inf_child_can_run): Add 'self' argument.
8112 * go32-nat.c (go32_can_run): Add 'self' argument.
8113
d796e1d6
TT
81142014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * target.h (struct target_ops) <to_has_exited>: Add argument.
8117 (target_has_exited): Add argument.
8118 * target.c (debug_to_has_exited): Add argument.
8119 (update_current_target): Update.
8120
ff214e67
TT
81212014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8124 argument.
8125 (target_set_syscall_catchpoint): Add argument.
8126 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8127 argument.
8128 * target.c (update_current_target): Update.
8129
758e29d2
TT
81302014-02-19 Tom Tromey <tromey@redhat.com>
8131
8132 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8133 argument.
8134 (target_remove_exec_catchpoint): Add argument.
8135 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8136 (update_current_target): Update.
8137 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8138 argument.
8139
ba025e51
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8143 argument.
8144 (target_insert_exec_catchpoint): Add argument.
8145 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8146 (update_current_target): Update.
8147 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8148 argument.
8149
e98cf0cd
TT
81502014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8153 argument.
8154 (target_remove_vfork_catchpoint): Add argument.
8155 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8156 (update_current_target): Update.
8157 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8158 argument.
8159
3ecc7da0
TT
81602014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8163 argument.
8164 (target_insert_vfork_catchpoint): Add argument.
8165 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8166 (update_current_target): Update.
8167 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8168 argument.
8169
973fc227
TT
81702014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8173 argument.
8174 (target_remove_fork_catchpoint): Add argument.
8175 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8176 (update_current_target): Update.
8177 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8178 argument.
8179
a863b201
TT
81802014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8183 argument.
8184 (target_insert_fork_catchpoint): Add argument.
8185 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8186 (update_current_target): Update.
8187 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8188 argument.
8189
2e97a79e
TT
81902014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8193 argument.
8194 (target_post_startup_inferior): Add argument.
8195 * target.c (debug_to_post_startup_inferior): Add argument.
8196 (update_current_target): Update.
8197 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8198 argument.
8199 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8200 argument.
8201 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8202 argument.
8203 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8204 argument.
8205 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8206 'self' argument.
8207 (super_post_startup_inferior): Likewise.
8208 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8209 'self' argument.
8210 (super_post_startup_inferior): Likewise.
8211 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8212 Add 'self' argument.
8213 (super_post_startup_inferior): Likewise.
8214
71a9f134
TT
82152014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target.h (struct target_ops) <to_load>: Add argument.
8218 * target.c (target_load): Add argument.
8219 (debug_to_load): Add argument.
8220 (update_current_target): Update.
8221 * remote.c (remote_load): Add 'self' argument.
8222 * remote-sim.c (gdbsim_load): Add 'self' argument.
8223 * remote-mips.c (mips_load): Add 'self' argument.
8224 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8225 * monitor.c (monitor_load): Add 'self' argument.
8226 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8227
0a4f40a2
TT
82282014-02-19 Tom Tromey <tromey@redhat.com>
8229
8230 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8231 (target_terminal_info): Add argument.
8232 * target.c (debug_to_terminal_info): Add argument.
8233 (default_terminal_info): Likewise.
8234 * inflow.c (child_terminal_info): Add 'self' argument.
8235 * inferior.h (child_terminal_info): Add 'self' argument.
8236 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8237
ae3bd431
TT
82382014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8241 argument.
8242 (target_terminal_save_ours): Add argument.
8243 * target.c (debug_to_terminal_save_ours): Add argument.
8244 (update_current_target): Update.
8245 * inflow.c (terminal_save_ours): Add 'self' argument.
8246 * inferior.h (terminal_save_ours): Add 'self' argument.
8247
e3594fd1
TT
82482014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8251 (target_terminal_ours): Add argument.
8252 * target.c (debug_to_terminal_ours): Add argument.
8253 (update_current_target): Update.
8254 * remote.c (remote_terminal_ours): Add 'self' argument.
8255 (remote_close): Update.
8256 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8257 * inflow.c (terminal_ours): Add 'self' argument.
8258 * inferior.h (terminal_ours): Add 'self' argument.
8259 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8260
2e1e1a19
TT
82612014-02-19 Pedro Alves <palves@redhat.com>
8262 Tom Tromey <tromey@redhat.com>
8263
8264 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8265 argument.
8266 (target_terminal_ours_for_output): Add argument.
8267 * target.c (debug_to_terminal_ours_for_output): Add argument.
8268 (update_current_target): Update.
8269 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8270 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8271 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8272
d2f640d4
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target.h (struct target_ops) <to_terminal_inferior>: Add
8276 argument.
8277 * target.c (target_terminal_inferior): Add argument.
8278 (update_current_target): Update.
8279 * remote.c (remote_terminal_inferior): Add 'self' argument.
8280 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8281 * inflow.c (terminal_inferior): Add 'self' argument.
8282 * inferior.h (terminal_inferior): Add 'self' argument.
8283 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8284 (go32_terminal_inferior): Add 'self' argument.
8285
c42bf286
TT
82862014-02-19 Tom Tromey <tromey@redhat.com>
8287
8288 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8289 (target_terminal_init): Add argument.
8290 * target.c (debug_to_terminal_init): Add argument.
8291 (update_current_target): Update.
8292 * inflow.c (terminal_init_inferior): Add 'self' argument.
8293 * inferior.h (terminal_init_inferior): Add 'self' argument.
8294 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8295 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8296
c3a5ff89
TT
82972014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * target.h (struct target_ops)
8300 <to_can_accel_watchpoint_condition>: Add argument.
8301 (target_can_accel_watchpoint_condition): Add argument.
8302 * target.c (debug_to_can_accel_watchpoint_condition): Add
8303 argument.
8304 (update_current_target): Update.
8305 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8306 'self' argument.
8307
31568a15
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8311 Add argument.
8312 (target_region_ok_for_hw_watchpoint): Add argument.
8313 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8314 (default_region_ok_for_hw_watchpoint): Add argument.
8315 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8316 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8317 argument.
8318 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8319 argument.
8320 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8321 argument.
8322 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8323 'self' argument.
8324 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8325 'self' argument.
8326 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8327 'self' argument.
8328 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8329 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8330 'self' argument.
8331 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8332 Add 'self' argument.
8333
7bb99c53
TT
83342014-02-19 Tom Tromey <tromey@redhat.com>
8335
8336 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8337 argument.
8338 (target_insert_watchpoint): Add argument.
8339 * target.c (debug_to_insert_watchpoint): Add argument.
8340 (update_current_target): Update.
8341 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8342 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8343 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8344 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8345 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8346 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8347 argument.
8348 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8349 (procfs_insert_hw_watchpoint): Add 'self' argument.
8350 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8351 argument.
8352 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8353 argument.
8354 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8355 argument.
8356 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8357 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8358 argument.
8359 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8360 'self' argument.
8361
11b5219a
TT
83622014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8365 argument.
8366 (target_remove_watchpoint): Add argument.
8367 * target.c (debug_to_remove_watchpoint): Add argument.
8368 (update_current_target): Update.
8369 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8370 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8371 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8372 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8373 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8374 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8375 argument.
8376 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8377 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8378 argument.
8379 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8380 argument.
8381 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8382 argument.
8383 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8384 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8385 argument.
8386 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8387 'self' argument.
8388
a64dc96c
TT
83892014-02-19 Tom Tromey <tromey@redhat.com>
8390
8391 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8392 argument.
8393 (target_remove_hw_breakpoint): Add argument.
8394 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8395 (update_current_target): Update.
8396 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8397 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8398 argument.
8399 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8400 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8401 argument.
8402 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8403 'self' argument.
8404
23a26771
TT
84052014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8408 argument.
8409 (target_insert_hw_breakpoint): Add argument.
8410 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8411 (update_current_target): Update.
8412 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8413 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8414 argument.
8415 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8416 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8417 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8418 argument.
8419 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8420 'self' argument.
8421
5461485a
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8425 argument.
8426 (target_can_use_hardware_watchpoint): Add argument.
8427 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8428 (update_current_target): Update.
8429 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8430 argument.
8431 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8432 argument.
8433 * remote.c (remote_check_watch_resources): Add 'self' argument.
8434 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8435 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8436 argument.
8437 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8438 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8439 argument.
8440 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8441 argument.
8442 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8443 argument.
8444 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8445 argument.
8446 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8447 argument.
8448 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8449 argument.
8450 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8451 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8452 argument.
8453 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8454 'self' argument.
8455
f045800c
TT
84562014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target.h (struct target_ops) <to_post_attach>: Add argument.
8459 (target_post_attach): Add argument.
8460 * target.c (debug_to_post_attach): Add argument.
8461 (update_current_target): Update.
8462 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8463 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8464 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8465 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8466 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8467
de90e03d
TT
84682014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * windows-nat.c (windows_close): Add 'self' argument.
8471 * tracepoint.c (tfile_close): Add 'self' argument.
8472 * target.h (struct target_ops) <to_close>: Add argument.
8473 * target.c (target_close): Add argument.
8474 (update_current_target): Update.
8475 * remote.c (remote_close): Add 'self' argument.
8476 * remote-sim.c (gdbsim_close): Add 'self' argument.
8477 * remote-mips.c (mips_close): Add 'self' argument.
8478 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8479 * record-full.c (record_full_close): Add 'self' argument.
8480 * record-btrace.c (record_btrace_close): Add 'self' argument.
8481 * monitor.h (monitor_close): Add 'self' argument.
8482 * monitor.c (monitor_close): Add 'self' argument.
8483 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8484 * linux-nat.c (linux_nat_close): Add argument.
8485 * go32-nat.c (go32_close): Add 'self' argument.
8486 * exec.c (exec_close_1): Add 'self' argument.
8487 * ctf.c (ctf_close): Add 'self' argument.
8488 * corelow.c (core_close): Add 'self' argument.
8489 (core_close_cleanup): Update.
8490 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8491 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8492
9dd130a0
TT
84932014-02-19 Tom Tromey <tromey@redhat.com>
8494
8495 * remote.c (remote_load): New function.
8496 (init_remote_ops): Use it.
8497
46917d26
TT
84982014-02-19 Tom Tromey <tromey@redhat.com>
8499
8500 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8501 argument.
8502 * common/linux-btrace.h (linux_supports_btrace): Update.
8503 * remote.c (remote_supports_btrace): Add "self" argument.
8504 * target-delegates.c: Rebuild.
8505 * target.c (target_supports_btrace): Remove.
8506 * target.h (struct target_ops) <to_supports_btrace>: Add
8507 target_ops argument.
8508 (target_supports_btrace): New define.
8509
6b84065d
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * record-full.c (record_full_beneath_to_resume_ops)
8513 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8514 (record_full_beneath_to_wait)
8515 (record_full_beneath_to_store_registers_ops)
8516 (record_full_beneath_to_store_registers)
8517 (record_full_beneath_to_xfer_partial_ops)
8518 (record_full_beneath_to_xfer_partial)
8519 (record_full_beneath_to_insert_breakpoint_ops)
8520 (record_full_beneath_to_insert_breakpoint)
8521 (record_full_beneath_to_remove_breakpoint_ops)
8522 (record_full_beneath_to_remove_breakpoint)
8523 (record_full_beneath_to_stopped_by_watchpoint)
8524 (record_full_beneath_to_stopped_data_address)
8525 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8526 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8527 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8528 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8529 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8530 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8531 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8532 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8533 (record_full_resume, record_full_wait_1)
8534 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8535 (record_full_store_registers, record_full_xfer_partial)
8536 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8537 (record_full_async, record_full_core_xfer_partial): Use target
8538 delegation.
8539 * target-delegates.c: Rebuild.
8540 * target.c (current_xfer_partial): Remove.
8541 (update_current_target): Do not INHERIT or de_fault
8542 to_insert_breakpoint, to_remove_breakpoint,
8543 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8544 to_is_async_p, to_async. Do not set to_xfer_partial field.
8545 (default_xfer_partial): Simplify.
8546 (current_xfer_partial): Remove.
8547 (target_wait, target_resume): Simplify.
8548 (find_default_can_async_p, find_default_is_async_p): Update.
8549 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8550 to_xfer_partial, to_stopped_by_watchpoint,
8551 to_stopped_data_address.
8552 (target_store_registers): Simplify.
8553 (forward_target_remove_breakpoint)
8554 (forward_target_insert_breakpoint): Remove.
8555 (target_remove_breakpoint, target_insert_breakpoint)
8556 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8557 * target.h (struct target_ops) <to_resume, to_wait,
8558 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8559 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8560 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8561 markup.
8562 (forward_target_remove_breakpoint)
8563 (forward_target_insert_breakpoint): Remove.
8564 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8565 directly.
8566 (record_btrace_insert_breakpoint): Delegate directly.
8567
1101cb7b
TT
85682014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 PR build/7701:
8571 * target-delegates.c: New file.
8572 * target.c: Include target-delegates.c.
8573 (init_dummy_target): Call install_dummy_methods.
8574 (complete_target_initialization): Call install_delegators.
8575 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8576 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8577 * make-target-delegates: New file.
8578
8b06beed
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * record.c (find_record_target): Use find_target_at.
8582 * target.c (find_target_at): New function.
8583 * target.h (find_target_at): Declare.
8584
6a109b6b
TT
85852014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8588 Add 'ops' argument.
8589 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8590 'ops' argument.
8591 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8592 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8593 'ops' argument.
8594 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8595 argument.
8596 * linux-nat.c (save_sigtrap): Update.
8597 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8598 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8599 (linux_nat_close): Update.
8600 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8601 argument.
8602 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8603 argument.
8604 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8605 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8606 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8607 (tmp_to_async): Add 'ops' argument.
8608 (record_full_stopped_by_watchpoint, record_full_async)
8609 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8610 argument.
8611 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8612 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8613 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8614 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8615 (remote_is_async_p, remote_async): Add 'ops' argument.
8616 (remote_stopped_data_address): Update.
8617 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8618 * target.c (update_current_target)
8619 (find_default_can_async_p, find_default_is_async_p): Update.
8620 (init_dummy_target): Update.
8621 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8622 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8623 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8624 (target_can_async_p, target_is_async_p, target_async)
8625 (target_stopped_by_watchpoint): Update.
8626
e095146b
YQ
86272014-02-19 Yao Qi <yao@codesourcery.com>
8628
8629 PR gdb/16220
8630 * gdbarch.sh: Remove startup_gdbarch.
8631 * gdbarch.c: Regenerated.
8632 * gdbarch.h: Likewise.
8633
bc3c6b36
KB
86342014-02-17 Kevin Buettner <kevinb@redhat.com>
8635
8636 * rl78-tdep.c (rl78_g10_register_name): New function.
8637 (rl78_return_value): Add g10 support.
8638 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8639 g10.
8640
98dc0167 86412014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
8642
8643 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8644 (SUBDIR_GUILE_SRCS): Ditto.
8645 (scm-gsmob.o): Ditto.
8646
842c05cd
YQ
86472014-02-17 Yao Qi <yao@codesourcery.com>
8648
8649 * gnu-nat.c (ILL_RPC): Declare defined function.
8650
25c0bd04
YQ
86512014-02-17 Yao Qi <yao@codesourcery.com>
8652
8653 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8654 mach_msg_type_number_t.
8655 (gnu_write_inferior): Likewise.
8656
a9a758e3
YQ
86572014-02-17 Yao Qi <yao@codesourcery.com>
8658
8659 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8660 in format string.
8661 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8662 (inf_validate_procs, inf_signal): Likewise.
8663 (S_exception_raise_request): Likewise.
8664 (do_mach_notify_dead_name): Likewise.
8665 (steal_exc_port): Likewise.
8666 (gnu_read_inferior): Change 'copy_count''s type to
8667 mach_msg_type_number_t.
8668 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8669 format string.
8670
bae8023e
TS
86712014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8672
c82f56d9
TS
8673 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8674 flag. Adjust all users; in particular...
8675 (gnu_wait): ..., don't decrement its value in here...
8676 (gnu_create_inferior): ..., and instead set the flag in here,
8677 around the startup_inferior call, and call that one with
8678 START_INFERIOR_TRAPS_EXPECTED.
8679
3398af6a
TS
8680 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8681 (ILL_RPC): ... new macro.
8682 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8683 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8684 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8685 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8686 functions with ILL_RPC macro.
8687 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8688 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8689 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8690 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8691 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8692 (S_proc_getlogin_reply, S_proc_getsid_reply)
8693 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8694 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8695 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8696 (S_proc_getnports_reply, S_proc_is_important_reply)
8697 (S_proc_get_code_reply): New stub functions, generated with
8698 ILL_RPC macro.
8699
d47642c9
TS
8700 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8701 collected the type check structures.
8702
bae8023e
TS
8703 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8704
8a55ffb0
DE
87052014-02-14 Doug Evans <dje@google.com>
8706
8707 * target.c (target_write_partial): Fix result type.
8708
c2853f3d
JM
87092014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8710
8711 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8712 the proper offsets to access fpregset_t.
8713
ac61d2db
SA
87142014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8715
8716 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8717 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8718 * h8300-tdep.c (setmachinelist): Remove global.
8719 * hppa-tdep.c (hppa_sigtramp): Remove global.
8720 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8721 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8722 * ravenscar-thread.c (update_target_observer): Remove global.
8723 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8724
9d2d0b8b
TT
87252014-02-12 Tom Tromey <tromey@redhat.com>
8726
8727 * common/rsp-low.c: Update comments.
8728 * common/rsp-low.h: Update comments.
8729
a7191e8b
TT
87302014-02-12 Tom Tromey <tromey@redhat.com>
8731
8732 * common/rsp-low.c (convert_ascii_to_int): Remove.
8733 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8734
ff0e980e
TT
87352014-02-12 Tom Tromey <tromey@redhat.com>
8736
8737 * common/rsp-low.h (unhexify): Don't declare.
8738 * common/rsp-low.c (unhexify): Remove.
8739
e9371aff
TT
87402014-02-12 Tom Tromey <tromey@redhat.com>
8741
8742 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8743 * common/rsp-low.c (convert_int_to_ascii): Remove.
8744
971dc0b8
TT
87452014-02-12 Tom Tromey <tromey@redhat.com>
8746
8747 * common/rsp-low.h (hexify): Don't declare.
8748 * common/rsp-low.c (hexify): Remove.
8749
0a822afb
TT
87502014-02-12 Tom Tromey <tromey@redhat.com>
8751
8752 * common/rsp-low.c (hexify): Never take strlen of argument.
8753
9f1b45b0
TT
87542014-02-12 Tom Tromey <tromey@redhat.com>
8755
8756 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8757 * remote.c (extended_remote_run, remote_rcmd)
8758 (remote_download_trace_state_variable, remote_save_trace_data)
8759 (remote_set_trace_notes): Update.
8760 * tracepoint.c (encode_source_string, tfile_write_status)
8761 (tfile_write_uploaded_tsv): Update.
8762
9c3d6531
TT
87632014-02-12 Tom Tromey <tromey@redhat.com>
8764
8765 * tracepoint.c: Include rsp-low.h.
8766 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8767 * remote.c: Include rsp-low.h.
8768 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8769 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8770 (remote_unescape_input): Move to common/rsp-low.c.
8771 * common/rsp-low.h: New file.
8772 * common/rsp-low.c: New file.
8773 * Makefile.in (SFILES): Add common/rsp-low.c.
8774 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8775 (COMMON_OBS): Add rsp-low.o.
8776 (rsp-low.o): New target.
8777
01fd3ea5
TT
87782014-02-12 Tom Tromey <tromey@redhat.com>
8779
8780 * utils.h: Include print-utils.h.
8781 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8782 (int_string, core_addr_to_string, core_addr_to_string_nz)
8783 (hex_string, hex_string_custom): Don't declare.
8784 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8785 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8786 (hex_string_custom, int_string, core_addr_to_string)
8787 (core_addr_to_string_nz, host_address_to_string): Move to
8788 common/print-utils.c.
8789 * common/print-utils.h: New file.
8790 * common/print-utils.c: New file
8791 * Makefile.in (SFILES): Add common/print-utils.c.
8792 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8793 (COMMON_OBS): Add print-utils.o.
8794 (print-utils.o): New target.
8795
9fb50108
TT
87962014-02-12 Tom Tromey <tromey@redhat.com>
8797
8798 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8799
0548b5db
MK
88002014-02-12 Mark Kettenis <kettenis@gnu.org>
8801
8802 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8803
493443a4
MK
88042014-02-12 Mark Kettenis <kettenis@gnu.org>
8805
8806 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8807 if a PT_IO ptrace request returns sucessfully but indicates that 0
8808 bytes were transferred.
8809
706d0883
PA
88102014-02-12 Pedro Alves <palves@redhat.com>
8811 Kevin Buettner <kevinb@redhat.com>
8812
8813 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8814 TYPE_INSTANCE_FLAG_CODE_SPACE.
8815
5caa2f0b
PA
88162014-02-12 Pedro Alves <palves@redhat.com>
8817
8818 * h8300-tdep.c (pseudo_from_raw_register)
8819 (raw_from_pseudo_register): New functions.
8820 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8821 them.
8822
76fd5f74
PA
88232014-02-12 Pedro Alves <palves@redhat.com>
8824
8825 * h8300-tdep.c (h8300_register_sim_regno): New function.
8826 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8827 gdbarch_register_sim_regno hook.
8828
8f008406
SA
88292014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8830
8831 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8832
195abc10
SA
88332014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8834
8835 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8836
93ffa5b9
MK
88372014-02-12 Mark Kettenis <kettenis@gnu.org>
8838
8839 * obsd-tdep.h (obsd_init_abi): New prototype.
8840 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8841 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8842 (obsd_init_abi): New functions.
8843 * i386obsd-tdep.c: Include "obsd-tdep.h".
8844 (i386obsd_init_abi): Call obsd_init_abi.
8845 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8846 (amd64obsd_init_abi): Call obsd_init_abi.
8847 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8848 obsd-tdep.c to gdb_target_obs.
8849
49caec94
JM
88502014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8851
8852 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8853 double float arguments to 16-byte in the argument slots.
8854
e1402065
DE
88552014-02-11 Doug Evans <xdje42@gmail.com>
8856
8857 * configure.ac: Don't crash if pkg-config is not found and guile
8858 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8859 in guile checks.
8860 * configure: Regenerate.
8861
edcc890f
YQ
88622014-02-11 Yao Qi <yao@codesourcery.com>
8863
8864 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8865 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8866 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8867 * gnu-nat.c (gnu_xfer_memory): Likewise.
8868 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8869 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8870 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8871 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8872
9b409511
YQ
88732014-02-11 Yao Qi <yao@codesourcery.com>
8874
8875 * target.h (enum target_xfer_error): Rename to ...
8876 (enum target_xfer_status): ... it. New. All users updated.
8877 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8878 New.
8879 (TARGET_XFER_STATUS_ERROR_P): New macro.
8880 (target_xfer_error_to_string): Remove declaration.
8881 (target_xfer_status_to_string): Declare.
8882 (target_xfer_partial_ftype): Adjust it.
8883 (struct target_ops) <to_xfer_partial>: Return
8884 target_xfer_status. Add argument xfered_len. Update
8885 comments.
8886 * target.c (target_xfer_error_to_string): Rename to ...
8887 (target_xfer_status_to_string): ... it. New. All callers
8888 updated.
8889 (target_read_live_memory): Likewise. Call target_xfer_partial
8890 instead of target_read.
8891 (memory_xfer_live_readonly_partial): Return
8892 target_xfer_status. Add argument xfered_len.
8893 (raw_memory_xfer_partial): Likewise.
8894 (memory_xfer_partial_1): Likewise.
8895 (memory_xfer_partial): Likewise.
8896 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8897 properly. Update debug message.
8898 (default_xfer_partial, current_xfer_partial): Likewise.
8899 (target_write_partial): Likewise.
8900 (target_read_partial): Likewise. All callers updated.
8901 (read_whatever_is_readable): Likewise.
8902 (target_write_with_progress): Likewise.
8903 (target_read_alloc_1): Likewise.
8904
8905 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8906 * auxv.c (procfs_xfer_auxv): Likewise.
8907 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8908 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8909 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8910 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8911 * corefile.c (read_memory): Adjust.
8912 * corelow.c (core_xfer_partial): Likewise.
8913 * ctf.c (ctf_xfer_partial): Likewise.
8914 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8915 updated.
8916 (darwin_xfer_partial): Likewise.
8917 * exec.c (section_table_xfer_memory_partial): Likewise. All
8918 callers updated.
8919 (exec_xfer_partial): Likewise.
8920 * exec.h (section_table_xfer_memory_partial): Update
8921 declaration.
8922 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8923 negative.
8924 (gnu_xfer_partial): Likewise.
8925 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8926 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8927 (ia64_hpux_xfer_solib_got): Likewise.
8928 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8929 type of 'partial_len' to ULONGEST.
8930 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8931 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8932 (linux_nat_xfer_partial): Likewise.
8933 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8934 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8935 * monitor.c (monitor_xfer_memory): Likewise.
8936 (monitor_xfer_partial): Likewise.
8937 * procfs.c (procfs_xfer_partial): Likewise.
8938 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8939 * record-full.c (record_full_xfer_partial): Likewise.
8940 (record_full_core_xfer_partial): Likewise.
8941 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8942 (gdbsim_xfer_partial): Likewise.
8943 * remote.c (remote_write_bytes_aux): Likewise. All callers
8944 updated.
8945 (remote_write_bytes, remote_read_bytes): Likewise. All
8946 callers updated.
8947 (remote_flash_erase): Likewise. All callers updated.
8948 (remote_write_qxfer): Likewise. All callers updated.
8949 (remote_read_qxfer): Likewise. All callers updated.
8950 (remote_xfer_partial): Likewise.
8951 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8952 (rs6000_xfer_shared_libraries): Likewise.
8953 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8954 (sol_thread_xfer_partial): Likewise.
8955 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8956 (sparc_xfer_partial): Likewise.
8957 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8958 updated.
8959 (spu_xfer_partial): Likewise.
8960 * spu-multiarch.c (spu_xfer_partial): Likewise.
8961 * tracepoint.c (tfile_xfer_partial): Likewise.
8962 * windows-nat.c (windows_xfer_memory): Likewise.
8963 (windows_xfer_shared_libraries): Likewise.
8964 (windows_xfer_partial): Likewise.
8965 * valprint.c: Replace 'target_xfer_error' with
8966 'target_xfer_status' in comments.
8967
a8e63083
JB
89682014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8969
8970 Checked in by Joel Brobecker <brobecker@adacore.com>.
8971 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8972
e86b67d3
JB
89732014-02-11 Joel Brobecker <brobecker@adacore.com>
8974
8975 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8976 function parameters.
8977
4b7d1f7f
WN
89782014-02-10 Will Newton <will.newton@linaro.org>
8979
8980 * elfread.c (elf_rel_plt_read): Look for a .got section if
8981 looking up .got.plt fails.
8982 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8983 on address passed to elf_gnu_ifunc_record_cache.
8984 (elf_gnu_ifunc_resolve_addr): Likewise.
8985 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8986
961842b2
JM
89872014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8988
8989 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8990 (X_RETTURN): New macro.
8991 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8992
8993 * sparc64-tdep.c (sparc64_init_abi): Hook
8994 sparc_in_function_epilogue_p.
8995
3f03e7b1
GB
89962014-02-10 Gary Benson <gbenson@redhat.com>
8997
8998 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8999 Rename name_matcher to symbol_matcher.
9000
96f861ef
GB
90012014-02-10 Gary Benson <gbenson@redhat.com>
9002
9003 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9004 Use expand_symtabs_file_matcher_ftype and
9005 expand_symtabs_symbol_matcher_ftype.
9006
ee01b665
JB
90072014-02-10 Joel Brobecker <brobecker@adacore.com>
9008
9009 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9010 (struct ada_symbol_cache): New.
9011 (ada_free_symbol_cache): Forward declare.
9012 (struct ada_pspace_data): New.
9013 (ada_pspace_data_handle): New static global.
9014 (get_ada_pspace_data, ada_pspace_data_cleanup)
9015 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9016 (cache_space, cache): Delete, now folded inside struct
9017 ada_pspace_data.
9018 (ada_get_symbol_cache): New function.
9019 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9020 implementation.
9021 (_initialize_ada_language): Remove initialization of cache_space.
9022 Move call to observer_attach_inferior_exit up, grouping it
9023 with the other observer registrations inside this function.
9024 Rename command to be more general. Add call to
9025 register_program_space_data_with_cleanup.
9026
143adbbf
JB
90272014-02-10 Joel Brobecker <brobecker@adacore.com>
9028
9029 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9030 ada_new_objfile_observer.
9031 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9032 (_initialize_tasks): Update uses of ada_new_objfile_observer
9033 and ada_tasks_normal_stop_observer.
9034
aa4fb036
JB
90352014-02-10 Joel Brobecker <brobecker@adacore.com>
9036
9037 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9038 returned by the 'Length attribute to integer.
9039
9dee8cc6
JB
90402014-02-10 Joel Brobecker <brobecker@adacore.com>
9041
9042 * ada-lang.c (_initialize_ada_language): Initialize
9043 cache_space obstack.
9044
3d9434b5
JB
90452014-02-10 Joel Brobecker <brobecker@adacore.com>
9046
9047 * ada-lang.c (HASH_SIZE): New macro.
9048 (struct cache_entry): New type.
9049 (cache_space, cache): New static globals.
9050 (ada_clear_symbol_cache, find_entry): New functions.
9051 (lookup_cached_symbol, cache_symbol): Implement.
9052 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9053 (_initialize_ada_language): Attach ada_new_objfile_observer
9054 and ada_free_objfile_observer.
9055
f0c5f9b2
JB
90562014-02-10 Joel Brobecker <brobecker@adacore.com>
9057
9058 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9059 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9060 struct block * parameter.
9061 (ada_lookup_symbol_list_worker): Constify local variable "block".
9062 Remove cast which is no longer necessary.
9063
ed3ef339
DE
90642014-02-10 Doug Evans <xdje42@gmail.com>
9065
9066 Add Guile as an extension language.
9067 * NEWS: Mention Guile scripting.
9068 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9069 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9070 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9071 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9072 (CLIBS): Add GUILE_LIBS.
9073 (install-guile): New rule.
9074 (guile.o): New rule.
9075 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9076 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9077 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9078 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9079 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9080 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9081 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9082 * configure.ac: New option --with-guile.
9083 * configure: Regenerate.
9084 * config.in: Regenerate.
9085 * auto-load.c: Remove #include "python/python.h". Add #include
9086 "gdb/section-scripts.h".
9087 (source_section_scripts): Handle Guile scripts.
9088 (_initialize_auto_load): Add name of Guile objfile script to
9089 scripts-directory help text.
9090 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9091 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9092 (struct breakpoint): New member scm_bp_object.
9093 * defs.h (enum command_control_type): New value guile_control.
9094 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9095 "extension.h".
9096 (show_user): Update comment.
9097 (_initialize_cli_cmds): Update help text for "show user". Update help
9098 text for max-user-call-depth.
9099 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9100 "extension.h".
9101 (multi_line_command_p): Add guile_control.
9102 (print_command_lines): Handle guile_control.
9103 (execute_control_command, recurse_read_control_structure): Ditto.
9104 (process_next_line): Recognize "guile" commands.
9105 * disasm.c (gdb_disassemble_info): Make non-static.
9106 * disasm.h: #include "dis-asm.h".
9107 (struct gdbarch): Add forward decl.
9108 (gdb_disassemble_info): Declare.
9109 * extension.c: #include "guile/guile.h".
9110 (extension_languages): Add guile.
9111 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9112 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9113 * gdbtypes.c (get_unsigned_type_max): New function.
9114 (get_signed_type_minmax): New function.
9115 * gdbtypes.h (get_unsigned_type_max): Declare.
9116 (get_signed_type_minmax): Declare.
9117 * guile/README: New file.
9118 * guile/guile-internal.h: New file.
9119 * guile/guile.c: New file.
9120 * guile/guile.h: New file.
9121 * guile/scm-arch.c: New file.
9122 * guile/scm-auto-load.c: New file.
9123 * guile/scm-block.c: New file.
9124 * guile/scm-breakpoint.c: New file.
9125 * guile/scm-disasm.c: New file.
9126 * guile/scm-exception.c: New file.
9127 * guile/scm-frame.c: New file.
9128 * guile/scm-gsmob.c: New file.
9129 * guile/scm-iterator.c: New file.
9130 * guile/scm-lazy-string.c: New file.
9131 * guile/scm-math.c: New file.
9132 * guile/scm-objfile.c: New file.
9133 * guile/scm-ports.c: New file.
9134 * guile/scm-pretty-print.c: New file.
9135 * guile/scm-safe-call.c: New file.
9136 * guile/scm-string.c: New file.
9137 * guile/scm-symbol.c: New file.
9138 * guile/scm-symtab.c: New file.
9139 * guile/scm-type.c: New file.
9140 * guile/scm-utils.c: New file.
9141 * guile/scm-value.c: New file.
9142 * guile/lib/gdb.scm: New file.
9143 * guile/lib/gdb/boot.scm: New file.
9144 * guile/lib/gdb/experimental.scm: New file.
9145 * guile/lib/gdb/init.scm: New file.
9146 * guile/lib/gdb/iterator.scm: New file.
9147 * guile/lib/gdb/printing.scm: New file.
9148 * guile/lib/gdb/types.scm: New file.
9149 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9150 (VPATH): Add $(GUILE_SRCDIR).
9151 (GUILE_DIR): New variable.
9152 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9153 (all): Add stamp-guile dependency.
9154 (stamp-guile): New rule.
9155 (clean-guile, install-guile, uninstall-guile): New rules.
9156 (install-only): Add install-guile dependency.
9157 (uninstall): Add uninstall-guile dependency.
9158 (clean): Add clean-guile dependency.
9159
ac020ec5
DE
91602014-02-09 Doug Evans <xdje42@gmail.com>
9161
9162 Revert this patch (which I approved, mea culpa).
9163
9164 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9165
9166 * Makefile.in (all-lib): Remove.
9167 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9168
2a081c59
JK
91692014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9170
9171 Fix Python stack corruption.
9172 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9173 gdb_py_longest.
9174
0a6bd22d
MK
91752014-02-08 Mark Kettenis <kettenis@gnu.org>
9176
9177 * Makefile.in (all-lib): Remove.
9178 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9179
1a860409
DE
91802014-02-07 Doug Evans <dje@google.com>
9181
9182 * extension-priv.h (extension_language_script_ops): Add comment.
9183 (extension_language_ops): Add comment.
caf5a491 9184 (active_ext_lang_state): Fix typo in comment.
1a860409 9185
d137e6dc
PA
91862014-02-07 Pedro Alves <palves@redhat.com>
9187
0dcb32c3 9188 PR breakpoints/16292
d137e6dc
PA
9189 * infrun.c (handle_signal_stop) <signal arrives while stepping
9190 over a breakpoint>: Switch back to the stepping thread.
9191
ce6d0892
YQ
91922014-02-07 Yao Qi <yao@codesourcery.com>
9193
9194 * target.c (target_xfer_partial): Return zero if LEN is zero.
9195
2ed4b548
YQ
91962014-02-07 Yao Qi <yao@codesourcery.com>
9197
9198 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9199 (ld_so_xfer_auxv): Likewise.
9200 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9201 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9202 * corelow.c (core_xfer_partial): Likewise.
9203 * ctf.c (ctf_xfer_partial): Likewise.
9204 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9205 (darwin_xfer_partial): Likewise.
9206 * exec.c (exec_xfer_partial): Likewise.
9207 * gnu-nat.c (gnu_xfer_partial): Likewise.
9208 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9209 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9210 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9211 * linux-nat.c (linux_xfer_siginfo): Likewise.
9212 (linux_proc_xfer_spu): Likewise.
9213 * procfs.c (procfs_xfer_partial): Likewise.
9214 * record-full.c (record_full_xfer_partial): Likewise.
9215 (record_full_core_xfer_partial): Likewise.
9216 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9217 * remote.c (remote_write_qxfer): Likewise.
9218 (remote_write_qxfer, remote_read_qxfer): Likewise.
9219 (remote_xfer_partial): Likewise.
9220 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9221 (rs6000_xfer_shared_libraries): Likewise.
9222 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9223 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9224 (spu_xfer_partial): Likewise.
9225 * target.c (memory_xfer_partial_1): Likewise.
9226 * tracepoint.c (tfile_xfer_partial): Likewise.
9227 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9228 (windows_xfer_partial): Likewise.
9229
c09f20e4
YQ
92302014-02-07 Yao Qi <yao@codesourcery.com>
9231
9232 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9233 comments.
9234 (core_xfer_shared_libraries_aix): Likewise.
9235 * gdbarch.c, gdbarch.h: Regenerated.
9236 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9237 ULONGEST. Change 'len_avail' type to ULONGEST.
9238 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9239 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9240 declaration.
9241 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9242
8635b3bf
YQ
92432014-02-07 Yao Qi <yao@codesourcery.com>
9244
9245 * corefile.c (memory_error): Get 'exception' from ERR and pass
9246 'exception' to throw_error.
9247
6dddc817
DE
92482014-02-06 Doug Evans <xdje42@gmail.com>
9249
9250 * configure.ac (libpython checking): Remove all but python.o from
9251 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9252 * configure: Regenerate.
9253
9254 * Makefile.in (SFILES): Add extension.c.
9255 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9256 (COMMON_OBS): Add extension.o.
9257 * extension.h: New file.
9258 * extension-priv.h: New file.
9259 * extension.c: New file.
9260
9261 * python/python-internal.h: #include "extension.h".
9262 (gdbpy_auto_load_enabled): Declare.
9263 (gdbpy_apply_val_pretty_printer): Declare.
9264 (gdbpy_apply_frame_filter): Declare.
9265 (gdbpy_preserve_values): Declare.
9266 (gdbpy_breakpoint_cond_says_stop): Declare.
9267 (gdbpy_breakpoint_has_cond): Declare.
9268 (void source_python_script_for_objfile): Delete.
9269 * python/python.c: #include "extension-priv.h".
9270 Delete inclusion of "observer.h".
9271 (extension_language_python): Moved here and renamed from
9272 script_language_python in py-auto-load.c.
9273 Redefined to be of type extension_language_defn.
9274 (python_extension_script_ops): New global.
9275 (python_extension_ops): New global.
9276 (struct python_env): New member previous_active.
9277 (restore_python_env): Call restore_active_ext_lang.
9278 (ensure_python_env): Call set_active_ext_lang.
9279 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9280 New arg extlang.
9281 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9282 New arg extlang.
9283 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9284 New arg extlang.
9285 (gdbpy_eval_from_control_command): Renamed from
9286 eval_python_from_control_command, made static. New arg extlang.
9287 (gdbpy_source_script) Renamed from source_python_script, made static.
9288 New arg extlang.
9289 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9290 result to int. New arg extlang.
9291 (gdbpy_source_objfile_script): Renamed from
9292 source_python_script_for_objfile, made static. New arg extlang.
9293 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9294 static. New args extlang, extlang_printers. Change result type to
9295 "void".
9296 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9297 static. New arg extlang. Rename arg printers to extlang_printers
9298 and change type to ext_lang_type_printers *.
9299 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9300 static. Replace argument arg with extlang, extlang_printers.
9301 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9302 (!HAVE_PYTHON, source_python_script): Delete.
9303 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9304 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9305 (!HAVE_PYTHON, start_type_printers): Delete.
9306 (!HAVE_PYTHON, apply_type_printers): Delete.
9307 (!HAVE_PYTHON, free_type_printers): Delete.
9308 (_initialize_python): Delete call to observer_attach_before_prompt.
9309 (finalize_python): Set/restore active extension language.
9310 (gdbpy_finish_initialization) Renamed from
9311 finish_python_initialization, made static. New arg extlang.
9312 (gdbpy_initialized): New function.
9313 * python/python.h: #include "extension.h". Delete #include
9314 "value.h", "mi/mi-cmds.h".
9315 (extension_language_python): Declare.
9316 (GDBPY_AUTO_FILE_NAME): Delete.
9317 (enum py_bt_status): Moved to extension.h and renamed to
9318 ext_lang_bt_status.
9319 (enum frame_filter_flags): Moved to extension.h.
9320 (enum py_frame_args): Moved to extension.h and renamed to
9321 ext_lang_frame_args.
9322 (finish_python_initialization): Delete.
9323 (eval_python_from_control_command): Delete.
9324 (source_python_script): Delete.
9325 (apply_val_pretty_printer): Delete.
9326 (apply_frame_filter): Delete.
9327 (preserve_python_values): Delete.
9328 (gdbpy_script_language_defn): Delete.
9329 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9330 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9331
9332 * auto-load.c: #include "extension.h".
9333 (GDB_AUTO_FILE_NAME): Delete.
9334 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9335 (script_language_gdb): Delete, moved to extension.c and renamed to
9336 extension_language_gdb.
9337 (source_gdb_script_for_objfile): Delete.
9338 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9339 (loaded_script): Change type of language member to
9340 struct extension_language_defn *.
9341 (init_loaded_scripts_info): Initialize
9342 unsupported_script_warning_printed.
9343 (maybe_add_script): Make static. Change type of language arg to
9344 struct extension_language_defn *.
9345 (clear_section_scripts): Reset unsupported_script_warning_printed.
9346 (auto_load_objfile_script_1): Rewrite to use extension language API.
9347 (auto_load_objfile_script): Make public. Remove support-compiled-in
9348 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9349 (source_section_scripts): Rewrite to use extension language API.
9350 (load_auto_scripts_for_objfile): Rewrite to use
9351 auto_load_scripts_for_objfile.
9352 (collect_matching_scripts_data): Change type of language member to
9353 struct extension_language_defn *.
9354 (auto_load_info_scripts): Change type of language arg to
9355 struct extension_language_defn *.
9356 (unsupported_script_warning_print): New function.
9357 (script_not_found_warning_print): Make static.
9358 (_initialize_auto_load): Rewrite construction of scripts-directory
9359 help.
9360 * auto-load.h (struct objfile): Add forward decl.
9361 (struct script_language): Delete.
9362 (struct auto_load_pspace_info): Add forward decl.
9363 (struct extension_language_defn): Add forward decl.
9364 (maybe_add_script): Delete.
9365 (auto_load_objfile_script): Declare.
9366 (script_not_found_warning_print): Delete.
9367 (auto_load_info_scripts): Update prototype.
9368 (auto_load_gdb_scripts_enabled): Declare.
9369 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9370 auto_load_python_scripts_enabled and made public.
9371 (script_language_python): Delete, moved to python.c.
9372 (gdbpy_script_language_defn): Delete.
9373 (info_auto_load_python_scripts): Update to use
9374 extension_language_python.
9375
9376 * breakpoint.c (condition_command): Replace call to
9377 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9378 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9379 with call to breakpoint_ext_lang_cond_says_stop.
9380 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9381 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9382 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9383 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9384 New arg slang.
9385 (local_setattro): Print name of extension language with existing
9386 stop condition.
9387
9388 * valprint.c (val_print, value_print): Update to call
9389 apply_ext_lang_val_pretty_printer.
9390 * cp-valprint.c (cp_print_value): Update call to
9391 apply_ext_lang_val_pretty_printer.
9392 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9393 (gdbpy_apply_val_pretty_printer): Renamed from
9394 apply_val_pretty_printer. New arg extlang.
9395 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9396
9397 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9398 extension language API.
9399 * cli/cli-script.c (execute_control_command): Update to call
9400 eval_ext_lang_from_control_command.
9401
9402 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9403 enum ext_lang_bt_status values. Update call to
9404 apply_ext_lang_frame_filter.
9405 (mi_cmd_stack_list_locals): Ditto.
9406 (mi_cmd_stack_list_args): Ditto.
9407 (mi_cmd_stack_list_variables): Ditto.
9408 * mi/mi-main.c: Delete #include "python/python-internal.h".
9409 Add #include "extension.h".
9410 (mi_cmd_list_features): Replace reference to python internal variable
9411 gdb_python_initialized with call to ext_lang_initialized_p.
9412
9413 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9414 Update to use enum ext_lang_frame_args. Update to call
9415 apply_ext_lang_frame_filter.
9416 * python/py-framefilter.c (extract_sym): Update to use enum
9417 ext_lang_bt_status.
9418 (extract_value, py_print_type, py_print_value): Ditto.
9419 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9420 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9421 (py_print_frame): Ditto.
9422 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9423 New arg extlang. Update to use enum ext_lang_bt_status.
9424
9425 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9426 finish_python_initialization. Replace with call to
9427 finish_ext_lang_initialization.
9428
9429 * typeprint.c (do_free_global_table): Update to call
9430 free_ext_lang_type_printers.
9431 (create_global_typedef_table): Update to call
9432 start_ext_lang_type_printers.
9433 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9434 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9435 (type_print_options): Change type of global_printers from "void *"
9436 to "struct ext_lang_type_printers *".
9437
9438 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9439 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9440 (gdbpy_preserve_values): Renamed from preserve_python_values.
9441 New arg extlang.
9442 (!HAVE_PYTHON, preserve_python_values): Delete.
9443
9444 * utils.c (quit_flag): Delete, moved to extension.c.
9445 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9446 extension.c.
9447
9448 * eval.c: Delete #include "python/python.h".
9449 * main.c: Delete #include "python/python.h".
9450
9451 * defs.h: Update comment.
9452
6af79985
JB
94532014-02-06 Joel Brobecker <brobecker@adacore.com>
9454
9455 GDB 7.7 released.
9456
12c5175d
MK
94572014-02-05 Mark Kettenis <kettenis@gnu.org>
9458
9459 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9460 defined.
9461
8dc5b319
YQ
94622014-02-05 Yao Qi <yao@codesourcery.com>
9463
9464 * remote.c (remote_pass_signals): Remove local 'buf' and use
9465 rs->buf.
9466 (remote_program_signals): Likewise.
9467
de7b2893
YQ
94682014-02-05 Yao Qi <yao@codesourcery.com>
9469
9470 * ctf.c: Include "inferior.h" and "gdbthread.h".
9471 (CTF_PID): A new macro.
9472 (ctf_open): Call inferior_appeared and add_thread_silent.
9473 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9474 (ctf_thread_alive): New function.
9475 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9476
66d032ac
YQ
94772014-02-05 Yao Qi <yao@codesourcery.com>
9478
9479 Revert this patch:
9480
9481 2013-05-24 Yao Qi <yao@codesourcery.com>
9482
9483 * tracepoint.c (TFILE_PID): Remove.
9484 (tfile_open): Don't add thread and inferior.
9485 (tfile_close): Don't set 'inferior_ptid'. Don't call
9486 exit_inferior_silent.
9487 (tfile_thread_alive): Remove.
9488 (init_tfile_ops): Don't set field 'to_thread_alive' of
9489 tfile_ops.
9490
f4ccffad
CE
94912014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9492
9493 * remote.c (remote_start_remote): Call remote_check_symbols even
9494 if only symbol-file (not file) has been given.
9495
591a12a1
UW
94962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9497
9498 * gdbarch.sh (skip_entrypoint): New callback.
9499 * gdbarch.c, gdbarch.h: Regenerate.
9500 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9501 * infrun.c (fill_in_stop_func): Likewise.
9502 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9503 (ppc_elfv2_elf_make_msymbol_special): New function.
9504 (ppc_elfv2_skip_entrypoint): Likewise.
9505 (ppc_linux_init_abi): Install them for ELFv2.
9506
cc0e89c5
UW
95072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9508
9509 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9510 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9511 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9512 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9513 structures returned in GPRs.
9514
52f548e4
UW
95152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9516
9517 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9518 offset to the stack parameter list for the ELFv2 ABI.
9519
d4094b6a
UW
95202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9521
9522 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9523 set_gdbarch_convert_from_func_ptr_addr and
9524 set_gdbarch_elf_make_msymbol_special for ELFv1.
9525 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9526 function descriptors on ELFv1.
9527 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9528 set up r12 at function entry.
9529
cd453cd0
UW
95302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9531
9532 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9533 (struct gdbarch_tdep): New member elf_abi.
9534
9535 * rs6000-tdep.c: Include "elf/ppc64.h".
9536 (rs6000_gdbarch_init): Detect ELF ABI version.
9537
0ff3e01f
UW
95382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9539
9540 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9541 within a register pair holding a DFP 128-bit value on little-endian.
9542 (ppc64_sysv_abi_return_value_base): Likewise.
9543 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9544 (dfp_pseudo_register_write): Likewise.
9545
5b757e5d
UW
95462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9547
9548 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9549 offset on little-endian when passing _Decimal32.
9550 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9551
084ee545
UW
95522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9553
9554 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9555 of the overlapped FP register within the VSX register on little-
9556 endian platforms.
9557 (efpr_pseudo_register_write): Likewise.
9558
d63167af
UW
95592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9560
9561 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9562 offset on little-endian when passing small structures.
9563
e765b44c
UW
95642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9565
9566 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9567 (struct ppc64_sysv_argpos): New data structure.
9568 (ppc64_sysv_abi_push_float): Remove.
9569 (ppc64_sysv_abi_push_val): New function.
9570 (ppc64_sysv_abi_push_integer): Likewise.
9571 (ppc64_sysv_abi_push_freg): Likewise.
9572 (ppc64_sysv_abi_push_vreg): Likewise.
9573 (ppc64_sysv_abi_push_param): Likewise.
9574 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9575 (ppc64_sysv_abi_return_value_base): New function.
9576 (ppc64_sysv_abi_return_value): Refactor to use it.
9577
36c24d95
UW
95782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9579
9580 * NEWS: Document new target powerpc64le-*-linux*.
9581
26fd9228
MK
95822014-02-04 Mark Kettenis <kettenis@gnu.org>
9583
9584 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9585 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9586 core dumps.
9587 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9588 register set used in ELF core dumps. Add floating-point register set.
9589
c5bb7362
KB
95902014-02-03 Kevin Buettner <kevinb@redhat.com>
9591
74228e77 9592 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
9593 dwarf2_to_gdb[] table using symbolic constants. Adjust
9594 penultimate entry from number representing the PC register
9595 to symbolic constant representing the MDR register. Add
9596 constant for the PC register to the end of the table.
9597
af09351e
MK
95982014-02-03 Mark Kettenis <kettenis@gnu.org>
9599
9600 * bsd-kvm.c: Include <sys/param.h>
9601
8507e05d
MK
96022014-02-03 Mark Kettenis <kettenis@gnu.org>
9603
9604 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9605
ae56bfb8
JB
96062014-01-31 Joel Brobecker <brobecker@adacore.com>
9607
9608 * ada-lang.h (clear_ada_sym_cache): Delete.
9609
718ee4dc
UW
96102014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9611
9612 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9613
401e27fd
JM
96142014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9615
9616 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9617 the sigreturn register save area only if the syscall is
9618 sigreturn.
9619
a7c88acd
JB
96202014-01-29 Joel Brobecker <brobecker@adacore.com>
9621
9622 * valops.c (value_slice): Minor reformatting.
9623
fa0079ea
UW
96242014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9625
9626 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9627
c6044dd1
JB
96282014-01-28 Joel Brobecker <brobecker@adacore.com>
9629
9630 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9631 New static globals.
9632 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9633 (ada_ignore_descriptive_types_p): New static global.
9634 (find_parallel_type_by_descriptive_type): Return immediately
9635 if ada_ignore_descriptive_types_p is set.
9636 (_initialize_ada_language): Register new commands "maintenance
9637 set ada", "maintenance show ada", "maintenance set ada
9638 ignore-descriptive-types" and "maintenance show ada
9639 ignore-descriptive-types".
9640 * NEWS: Add entry for new "maint ada set/show
9641 ignore-descriptive-types" commands.
9642
568e808b
MM
96432014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9644
9645 * record-btrace.c (record_btrace_close): Call btrace_teardown
9646 for all threads.
9647
467d141b
JB
96482014-01-27 Joel Brobecker <brobecker@adacore.com>
9649
9650 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9651 "ui-out.h".
9652
fb151210
JB
96532014-01-27 Joel Brobecker <brobecker@adacore.com>
9654
9655 * ada-typeprint (type_is_full_subrange_of_target_type):
9656 New function.
9657 (print_range): Add parameter bounds_prefered_p. If not set,
9658 try printing range types using the name of their base type.
9659 (print_range_type): Add parameter bounds_prefered_p.
9660 Use it in call to print_range.
9661 (print_array_type, ada_print_type): Update calls to print_range
9662 and print_range_type.
9663
aba02109
JB
96642014-01-27 Joel Brobecker <brobecker@adacore.com>
9665
9666 * ada-typeprint.c (print_array_type, print_choices, print_range)
9667 (print_range_bound, print_dynamic_range_bound, print_range_type):
9668 Remove declaration.
9669
e62e21fd
JB
96702014-01-27 Joel Brobecker <brobecker@adacore.com>
9671
9672 * ada-typeprint.c (print_range): Add missing empty line
9673 after local declaration.
9674
859cf5d1
JB
96752014-01-27 Joel Brobecker <brobecker@adacore.com>
9676
9677 * ada-valprint.c (print_optional_low_bound): Get index_type's
9678 target type for as long as it is a TYPE_CODE_RANGE.
9679
25790f6f
JB
96802014-01-27 Joel Brobecker <brobecker@adacore.com>
9681
9682 * procfs.c (procfs_make_note_section): Remove assertion and
9683 associated comment.
9684
6b6aa828
YQ
96852014-01-24 Yao Qi <yao@codesourcery.com>
9686
9687 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9688 * corelow.c (get_core_siginfo): Likewise.
9689
5d6df423
YQ
96902014-01-24 Yao Qi <yao@codesourcery.com>
9691
9692 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9693 ULONGEST. Don't check 'len' is negative.
9694 (remote_write_bytes): Change type of 'len' to ULONGEST.
9695
83b645b8
TT
96962014-01-23 Tom Tromey <tromey@redhat.com>
9697
9698 PR python/16485:
9699 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9700 Handle exception from frame.block.
9701 (FrameVars.fetch_frame_locals): Likewise.
9702
0740f8d8
TT
97032014-01-23 Tom Tromey <tromey@redhat.com>
9704
9705 PR python/16487:
9706 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9707 on a NULL pointer. Move "goto error" to correct place.
9708
21909fa1
TT
97092014-01-23 Tom Tromey <tromey@redhat.com>
9710
9711 PR python/16491:
9712 * python/py-framefilter.c (apply_frame_filter): Call
9713 ensure_python_env after computing gdbarch.
9714
17fde6d0
YQ
97152014-01-23 Yao Qi <yao@codesourcery.com>
9716
9717 * target.c (raw_memory_xfer_partial): Change argument type
9718 from void * to gdb_byte *.
9719 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9720
87ce2a04
DE
97212014-01-22 Doug Evans <dje@google.com>
9722
9723 New gdbserver option --debug-format=timestamp.
9724 * NEWS: Mention it.
9725
237b092b
AA
97262014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9727
9728 * syscalls/s390x-linux.xml: New file.
9729 * syscalls/s390-linux.xml: New file.
9730 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9731 (XML_SYSCALL_FILENAME_S390X): Likewise.
9732 (op_svc): New enum value for SVC opcode.
9733 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9734 (s390_linux_get_syscall_number): New function.
9735 (s390_gdbarch_init): Register '*get_syscall_number' and the
9736 syscall xml file name.
9737 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9738 "s390-linux.xml" and "s390x-linux.xml".
9739 * NEWS: Announce new feature.
9740
54bff650
BS
97412014-01-22 Baruch Siach <baruch@tkos.co.il>
9742
9743 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9744
14e361d7
PA
97452014-01-22 Pedro Alves <palves@redhat.com>
9746
9747 * xtensa-config.c: Include defs.h.
9748
46bbb3ed
JB
97492014-01-22 Joel Brobecker <brobecker@adacore.com>
9750
9751 * common/common-utils.h: Add "ARI:" comment beside __func__
9752 reference.
9753
3a80edfc
JB
97542014-01-22 Joel Brobecker <brobecker@adacore.com>
9755
9756 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9757 documentation a bit.
9758
4869db5e
RM
97592014-01-21 Roland McGrath <mcgrathr@google.com>
9760
9761 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9762 * configure: Regenerate.
9763 * aclocal.m4: Regenerate.
9764 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9765 New substituted variables.
9766 (install-strip): New target.
9767 (INSTALL_SCRIPT): New substituted variable.
9768 (FLAGS_TO_PASS): Add it.
9769 (install-only): Use $(INSTALL_SCRIPT) rather than
9770 $(INSTALL_PROGRAM) for gcore.
9771
9ea4267d
TT
97722014-01-20 Tom Tromey <tromey@redhat.com>
9773
9774 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9775 together.
9776
1f2bdf09
TT
97772014-01-20 Tom Tromey <tromey@redhat.com>
9778
9779 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9780 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9781 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9782 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9783 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9784 (struct cmd_list_element) <flags>: Remove.
9785 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9786 doc_allocated>: New fields.
9787 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9788 bitfields.
9789 * maint.c (maintenance_do_deprecate): Update.
9790 * top.c (execute_command): Update.
9791
e671835b
BS
97922014-01-20 Baruch Siach <baruch@tkos.co.il>
9793
9794 * xtensa-linux-nat.c: Include asm/ptrace.h.
9795
50367cd2
IB
97962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9797
9798 * Makefile.in (SFILES): Add d-support.c.
9799 (COMMON_OBS): Add d-support.o.
9800 * d-lang.h (d_parse_symbol): Add comment, now defined in
9801 d-support.c.
9802 * d-lang.c (parse_call_convention)
9803 (parse_attributes, parse_function_types)
9804 (parse_function_args, parse_type, parse_identifier)
9805 (call_convention_p, d_parse_symbol): Move functions to ...
9806 * d-support.c: ... New file.
9807
ec9f644a
IB
98082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9809
9810 * d-lang.h (d_parse_symbol): Add declaration.
9811 * d-lang.c (extract_identifiers)
9812 (extract_type_info): Remove functions.
9813 (parse_call_convention, parse_attributes)
9814 (parse_function_types, parse_function_args)
9815 (parse_type, parse_identifier, call_convention_p)
9816 (d_parse_symbol): New functions.
9817 (d_demangle): Use d_parse_symbol to demangle D symbols.
9818
94b1b47e
IB
98192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9820
9821 * d-lang.h (struct builtin_d_type): New data type.
9822 (builtin_d_type): Add declaration.
9823 * d-lang.c (d_language_arch_info, build_d_types)
9824 (builtin_d_type): New functions.
9825 (enum d_primitive_types): New data type.
9826 (d_language_defn): Change c_language_arch_info to
9827 d_language_arch_info.
9828 (d_type_data): New static variable.
9829 (_initialize_d_language): Initialize d_type_data.
9830
63778547
IB
98312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9832
9833 * d-lang.h (d_main_name): Add declaration.
9834 * d-lang.c (d_main_name): New function.
9835 * symtab.c (find_main_name): Add call to d_main_name.
9836
3271ba66
IB
98372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9838
9839 * d-lang.c (d_language_defn): Change macro_expansion_c to
9840 macro_expansion_no.
9841
d36b3012
IB
98422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9843
9844 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9845
c90a6fb7
SDJ
98462014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9847
9848 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9849 gdb_exception" declaration.
9850 * remote.c (getpkt_or_notif_sane): Likewise.
9851
749234e5
DE
98522014-01-17 Doug Evans <dje@google.com>
9853
9854 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9855 function, contents of dirnames_to_char_ptr_vec_append moved here.
9856 (delim_string_to_char_ptr_vec): New function.
9857 (dirnames_to_char_ptr_vec_append): Rewrite.
9858 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9859
df049a58
DE
98602014-01-17 Doug Evans <dje@google.com>
9861
9862 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9863 and moved here ...
9864 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9865 #include "common-utils.h".
9866 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9867 * common/vec.h (VEC_ASSERT_PASS): Update.
9868 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9869 (MACH_CHECK_ERROR): Update.
9870
69f97648
SM
98712014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9872
9873 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9874 comments.
9875 * gdbarch.h: Regenerate.
9876
98b1cfdc
TT
98772014-01-16 Tom Tromey <tromey@redhat.com>
9878
9879 * value.c (struct value) <regnum>: Move earlier.
9880
77a19445
TT
98812014-01-16 Tom Tromey <tromey@redhat.com>
9882
9883 * remote.c (extended_remote_create_inferior): Rename from
9884 extended_remote_create_inferior_1. Add "ops" argument. Remove
9885 old implementation.
9886
62261490
PA
98872014-01-16 Pedro Alves <palves@redhat.com>
9888
9889 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9890 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9891 the backchain.
9892
4d65956b
DE
98932014-01-16 Doug Evans <dje@google.com>
9894
9895 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9896
52834460
MM
98972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9898
9899 * btrace.h (btrace_thread_flag): New.
9900 (struct btrace_thread_info) <flags>: New.
9901 * record-btrace.c (record_btrace_resume_thread)
9902 (record_btrace_find_thread_to_move, btrace_step_no_history)
9903 (btrace_step_stopped, record_btrace_start_replaying)
9904 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9905 (record_btrace_find_resume_thread): New.
9906 (record_btrace_resume, record_btrace_wait): Extend.
9907 (record_btrace_can_execute_reverse): New.
9908 (record_btrace_open): Fail in non-stop mode.
9909 (record_btrace_set_replay): Split into this, ...
9910 (record_btrace_stop_replaying): ... this, ...
9911 (record_btrace_clear_histories): ... and this.
9912 (init_record_btrace_ops): Init to_can_execute_reverse.
9913 * NEWS: Announce it.
9914
118e6252
MM
99152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9916
9917 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9918 (forward_target_decr_pc_after_break)
9919 (target_decr_pc_after_break): New.
9920 * target.c (forward_target_decr_pc_after_break)
9921 (target_decr_pc_after_break): New.
9922 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9923 instead of gdbarch_decr_pc_after_break.
9924 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9925 instead of gdbarch_decr_pc_after_break.
9926 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9927 instead of gdbarch_decr_pc_after_break.
9928 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9929 instead of gdbarch_decr_pc_after_break.
9930 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9931 instead of gdbarch_decr_pc_after_break.
9932 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9933 instead of gdbarch_decr_pc_after_break.
9934
6e07b1d2
MM
99352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9936
9937 * btrace.c: Include regcache.h.
9938 (btrace_add_pc): New.
9939 (btrace_enable): Call btrace_add_pc.
9940 (btrace_is_empty): New.
9941 * btrace.h (btrace_is_empty): New.
9942 * record-btrace.c (require_btrace, record_btrace_info): Call
9943 btrace_is_empty.
9944
969c39fb
MM
99452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9946
9947 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9948 Support delta reads.
9949 (linux_disable_btrace): Change return type.
9950 * common/linux-btrace.h (linux_read_btrace): Change parameters
9951 and return type to allow error reporting. Update users.
9952 (linux_disable_btrace): Change return type. Update users.
9953 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9954 New.
9955 (btrace_error): New.
9956 (btrace_block) <begin>: Comment on BEGIN == 0.
9957 * btrace.c (btrace_compute_ftrace): Start from the end of
9958 the current trace.
9959 (btrace_stitch_trace, btrace_clear_history): New.
9960 (btrace_fetch): Read delta trace, return if replaying.
9961 (btrace_clear): Move clear history code to btrace_clear_history.
9962 (parse_xml_btrace): Throw an error if parsing failed.
9963 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9964 and return type to allow error reporting.
9965 (target_read_btrace): Change parameters and return type to allow
9966 error reporting.
9967 * target.c (target_read_btrace): Update.
9968 * remote.c (remote_read_btrace): Support delta reads. Pass
9969 errors on.
9970 * NEWS: Announce it.
9971
0b722aec
MM
99722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9973
9974 * record.h (record_btrace_frame_unwind)
9975 (record_btrace_tailcall_frame_unwind): New declarations.
9976 * dwarf2-frame: Include record.h
9977 (dwarf2_frame_cfa): Throw an error for btrace frames.
9978 * record-btrace.c: Include hashtab.h.
9979 (btrace_get_bfun_name): New.
9980 (btrace_call_history): Call btrace_get_bfun_name.
9981 (struct btrace_frame_cache): New.
9982 (bfcache): New.
9983 (bfcache_hash, bfcache_eq, bfcache_new): New.
9984 (btrace_get_frame_function): New.
9985 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9986 (record_btrace_frame_this_id): Compute own id.
9987 (record_btrace_frame_prev_register): Provide PC, throw_error
9988 for all other registers.
9989 (record_btrace_frame_sniffer): Detect btrace frames.
9990 (record_btrace_tailcall_frame_sniffer): New.
9991 (record_btrace_frame_dealloc_cache): New.
9992 (record_btrace_frame_unwind): Add new functions.
9993 (record_btrace_tailcall_frame_unwind): New.
9994 (_initialize_record_btrace): Allocate cache.
9995 * btrace.c (btrace_clear): Call reinit_frame_cache.
9996 * NEWS: Announce it.
9997
066ce621
MM
99982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9999
10000 * record-btrace.c (record_btrace_set_replay)
10001 (record_btrace_goto_begin, record_btrace_goto_end)
10002 (record_btrace_goto): New.
10003 (init_record_btrace_ops): Initialize them.
10004 * NEWS: Announce it.
10005
e2887aa3
MM
100062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10007
10008 * record-btrace.c (record_btrace_find_new_threads)
10009 (record_btrace_thread_alive): New.
10010 (init_record_btrace_ops): Initialize to_find_new_threads and
10011 to_thread_alive.
10012
b2f4cfde
MM
100132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10014
10015 * record-btrace.c (record_btrace_resume): New.
10016 (record_btrace_wait): New.
10017 (init_record_btrace_ops): Initialize to_wait and to_resume.
10018
633785ff
MM
100192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10020
10021 * record-btrace.c (record_btrace_xfer_partial)
10022 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10023 (record_btrace_allow_memory_access): New.
10024 (init_record_btrace_ops): Initialize new methods.
10025 * target.c (raw_memory_xfer_partial): Bail out if target reports
10026 that this memory is not available.
10027
3db08215
MM
100282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10029
10030 * target.h (target_ops) <to_insert_breakpoint>
10031 <to_remove_breakpoint>: Add target_ops parameter.
10032 (forward_target_insert_breakpoint): New.
10033 (forward_target_remove_breakpoint): New.
10034 (memory_remove_breakpoint, memory_insert_breakpoint):
10035 Add target_ops parameter.
10036 * target.c (target_insert_breakpoint): Split into this and ...
10037 (forward_target_insert_breakpoint): ... this.
10038 (target_remove_breakpoint): Split into this and ...
10039 (forward_target_remove_breakpoint): ... this.
10040 (debug_to_insert_breakpoint): Add target_ops parameter.
10041 Call forward_target_insert_breakpoint.
10042 (debug_to_remove_breakpoint): Add target_ops parameter.
10043 Call forward_target_remove_breakpoint.
10044 (update_current_target): Do not inherit or default to_insert_breakpoint
10045 and to_remove_breakpoint.
10046 * corelow.c (ignore): Add target_ops parameter.
10047 * exec.c (ignore): Add target_ops parameter.
10048 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10049 Add target_ops parameter.
10050 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10051 Add target_ops parameter.
10052 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10053 Add target_ops parameter.
10054 * record-full.c (record_full_beneath_to_insert_breakpoint)
10055 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10056 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10057 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10058 (record_full_core_remove_breakpoint): Add target_ops parameter.
10059 Update users.
10060 (record_full_beneath_to_insert_breakpoint_ops)
10061 (record_full_beneath_to_remove_breakpoint_ops)
10062 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10063 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10064 tmp_to_remove_breakpoint_ops,
10065 record_full_beneath_to_insert_breakpoint_ops, and
10066 record_full_beneath_to_remove_breakpoint_ops.
10067 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10068 (m32r_remove_breakpoint): Add target_ops parameter.
10069 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10070 Add target_ops parameter.
10071 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10072 Add target_ops parameter.
10073
cecac1ab
MM
100742014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10075 Markus Metzger <markus.t.metzger@intel.com>
10076
10077 * record-btrace.c: Include frame-unwind.h.
10078 (record_btrace_frame_unwind_stop_reason)
10079 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10080 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10081 New.
10082 (init_record_btrace_ops): Install it.
10083
824344ca
MM
100842014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10085
10086 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10087 get_prev_frame_1.
10088
32261e52
MM
100892014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10090
10091 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10092 earlier.
10093
ea001bdc
MM
100942014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10095
10096 * frame-unwind.c: Include target.h.
10097 (frame_unwind_try_unwinder): New function with code from ...
10098 (frame_unwind_find_by_frame): ... here. New variable
10099 unwinder_from_target, call also target_get_unwinder)
10100 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10101 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10102 * target.h (struct target_ops): New fields to_get_unwinder and
10103 to_get_tailcall_unwinder.
10104 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10105
1f3ef581
MM
101062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10107
10108 * record-btrace.c (record_btrace_fetch_registers)
10109 (record_btrace_store_registers)
10110 (record_btrace_to_prepare_to_store): New.
10111 (init_record_btrace_ops): Add the above.
10112
f32dbf8c
MM
101132014-01-16 Tom Tromey <tromey@redhat.com>
10114
10115 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10116 * target.h (struct target_ops) <to_prepare_to_store>: Add
10117 argument.
10118 (target_prepare_to_store): Add argument.
10119 * target.c (debug_to_prepare_to_store): Add argument.
10120 (update_current_target): Update.
10121 * remote.c (remote_prepare_to_store): Add 'self' argument.
10122 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10123 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10124 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10125 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10126 argument.
10127 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10128 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10129 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10130 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10131 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10132
07bbe694
MM
101332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10134
10135 * btrace.h (replay) <replay>: New.
10136 (btrace_is_replaying): New.
10137 * btrace.c (btrace_clear): Free replay iterator.
10138 (btrace_is_replaying): New.
10139 * record-btrace.c (record_btrace_is_replaying): New.
10140 (record_btrace_info): Print insn number if replaying.
10141 (record_btrace_insn_history): Start at replay position.
10142 (record_btrace_call_history): Start at replay position.
10143 (init_record_btrace_ops): Init to_record_is_replaying.
10144
0688d04e
MM
101452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10146
10147 * record-btrace.c (record_btrace_insn_history_range): Include
10148 end.
10149 (record_btrace_insn_history_from): Adjust range.
10150 (record_btrace_call_history_range): Include
10151 end.
10152 (record_btrace_call_history_from): Adjust range.
10153 * NEWS: Announce changes.
10154
8710b709
MM
101552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10156
10157 * record.h (enum record_print_flag)
10158 <record_print_indent_calls>: New.
10159 * record.c (get_call_history_modifiers): Recognize /c modifier.
10160 (_initialize_record): Document /c modifier.
10161 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10162 Reorder fields. Optionally indent the function name. Update
10163 all users.
10164 * NEWS: Announce changes.
10165
d0fa7535
MM
101662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10167
10168 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10169
5de9129b
MM
101702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10171
10172 * btrace.c (ftrace_new_function): Start counting at one.
10173 * record-btrace.c (record_btrace_info): Adjust number of calls
10174 and insns.
10175 * NEWS: Announce it.
10176
7acbe133
MM
101772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10178
10179 * record-btrace.c (btrace_call_history_insn_range): Print
10180 insn range as [begin, end].
10181
23a7fe75
MM
101822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10183
10184 * btrace.h (struct btrace_func_link): New.
10185 (enum btrace_function_flag): New.
10186 (struct btrace_inst): Rename to ...
10187 (struct btrace_insn): ...this. Update all users.
10188 (struct btrace_func) <ibegin, iend>: Remove.
10189 (struct btrace_func_link): New.
10190 (struct btrace_func): Rename to ...
10191 (struct btrace_function): ...this. Update all users.
10192 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10193 (number, level, flags>: New.
10194 (struct btrace_insn_iterator): Rename to ...
10195 (struct btrace_insn_history): ...this.
10196 Update all users.
10197 (struct btrace_insn_iterator, btrace_call_iterator): New.
10198 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10199 (struct btrace_target_info) <begin, end, level>
10200 <insn_history, call_history>: New.
10201 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10202 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10203 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10204 (btrace_call_number, btrace_call_begin, btrace_call_end)
10205 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10206 (btrace_find_function_by_number, btrace_set_insn_history)
10207 (btrace_set_call_history): New.
10208 * btrace.c (btrace_init_insn_iterator)
10209 (btrace_init_func_iterator, compute_itrace): Remove.
10210 (ftrace_print_function_name, ftrace_print_filename)
10211 (ftrace_skip_file): Change
10212 parameter to const.
10213 (ftrace_init_func): Remove.
10214 (ftrace_debug): Use new btrace_function fields.
10215 (ftrace_function_switched): Also consider gaining and
10216 losing symbol information).
10217 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10218 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10219 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10220 New.
10221 (ftrace_new_function): Move. Remove debug print.
10222 (ftrace_update_lines, ftrace_update_insns): New.
10223 (ftrace_update_function): Check for call, ret, and jump.
10224 (compute_ftrace): Renamed to ...
10225 (btrace_compute_ftrace): ...this. Rewritten to compute call
10226 stack.
10227 (btrace_fetch, btrace_clear): Updated.
10228 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10229 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10230 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10231 (btrace_call_number, btrace_call_begin, btrace_call_end)
10232 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10233 (btrace_find_function_by_number, btrace_set_insn_history)
10234 (btrace_set_call_history): New.
10235 * record-btrace.c (require_btrace): Use new btrace thread
10236 info fields.
10237 (record_btrace_info, btrace_insn_history)
10238 (record_btrace_insn_history, record_btrace_insn_history_range):
10239 Use new btrace thread info fields and new iterator.
10240 (btrace_func_history_src_line): Rename to ...
10241 (btrace_call_history_src_line): ...this. Use new btrace
10242 thread info fields.
10243 (btrace_func_history): Rename to ...
10244 (btrace_call_history): ...this. Use new btrace thread info
10245 fields and new iterator.
10246 (record_btrace_call_history, record_btrace_call_history_range):
10247 Use new btrace thread info fields and new iterator.
10248
8372a7cb
MM
102492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10250
10251 * frame.h (frame_id_build_unavailable_stack_special): New.
10252 * frame.c (frame_id_build_unavailable_stack_special): New.
10253
c2170eef
MM
102542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10255
10256 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10257 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10258 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10259 to gdbarch.
10260 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10261 (i386_insn_is_jump, i386_jmp_p): New.
10262 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10263 insn_is_jump to gdbarch.
10264 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10265 * gdbarch.h: Regenerated.
10266 * gdbarch.c: Regenerated.
10267 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10268 (default_insn_is_jump): New.
10269 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10270 (default_insn_is_jump): New.
10271
864089d2
MM
102722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10273
10274 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10275 Change to ...
10276 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10277 (btrace_read_type) <btrace_read_new>: Change to ...
10278 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10279
ed9edfb5
MM
102802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10281
10282 * common/linux-btrace.c (linux_read_btrace): Free trace from
10283 previous iteration.
10284
fbcbc3fd
DE
102852014-01-15 Doug Evans <dje@google.com>
10286
10287 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10288 uint32_t.
10289
3d548a53
TT
102902014-01-15 Tom Tromey <tromey@redhat.com>
10291
10292 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10293 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10294 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10295 (set_objfile_main_name): New function.
10296 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10297 language_of_main>: New fields.
10298 (set_objfile_main_name): Declare.
10299 * symtab.c (find_main_name): Loop over objfiles to find the main
10300 name and language.
10301 (set_main_name): Now static.
10302 (get_main_info): Add comment.
10303 * symtab.h (set_main_name): Don't declare.
10304
32ac0d11
TT
103052014-01-15 Tom Tromey <tromey@redhat.com>
10306
10307 * symtab.c (main_progspace_key): New global.
10308 (struct main_info): New.
10309 (name_of_main, language_of_main): Remove.
10310 (get_main_info, main_info_cleanup): New function.
10311 (set_main_name, main_name, main_language): Use get_main_info.
10312 (_initialize_symtab): Initialize main_progspace_key.
10313
9e6c82ad
TT
103142014-01-15 Tom Tromey <tromey@redhat.com>
10315
10316 * dbxread.c (process_one_symbol): Update.
10317 * dwarf2read.c (read_partial_die): Update.
10318 * symfile.c (set_initial_language): Call main_language.
10319 * symtab.c (language_of_main): Now static.
10320 (set_main_name): Add 'lang' parameter.
10321 (find_main_name): Update.
10322 (main_language): New function.
10323 (symtab_observer_executable_changed): Update.
10324 * symtab.h (set_main_name): Update.
10325 (language_of_main): Remove.
10326 (main_language): Declare.
10327
6ef55de7
TT
103282014-01-15 Tom Tromey <tromey@redhat.com>
10329
10330 * symfile.c (init_entry_point_info): Use new "initialized" field.
10331 Update.
10332 * objfiles.h (struct entry_point) <initialized>: New field.
10333 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10334 (struct objfile) <ei>: ...here. Remove.
10335 * objfiles.c (entry_point_address_query): Update.
10336
53eddfa6
TT
103372014-01-15 Tom Tromey <tromey@redhat.com>
10338
10339 * objfiles.c (entry_point_address_query): Relocate entry point
10340 address.
10341 (objfile_relocate1): Do not relocate entry point address.
10342 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10343 <the_bfd_section_index>: New field.
10344 * symfile.c (init_entry_point_info): Find the entry point's
10345 section.
10346
d56e56aa
TT
103472014-01-15 Tom Tromey <tromey@redhat.com>
10348
10349 * solib-frv.c (enable_break): Use entry_point_address_query.
10350
33a97bbe
OJ
103512014-01-15 Omair Javaid <omair.javaid@linaro.org>
10352
10353 * NEWS: Add note on improved process record-replay on
10354 arm*-linux* targets.
10355
c6ec2b30
OJ
103562014-01-15 Omair Javaid <omair.javaid@linaro.org>
10357
10358 * arm-tdep.c (enum arm_record_result): New enum.
10359 (arm_record_unsupported_insn): New function.
10360 (arm_record_coproc_data_proc): Removed.
10361 (thumb2_record_ld_st_multiple): New function.
10362 (thumb2_record_ld_st_dual_ex_tbb): New function.
10363 (thumb2_record_data_proc_sreg_mimm): New function.
10364 (thumb2_record_ps_dest_generic): New function.
10365 (thumb2_record_branch_misc_cntrl): New function.
10366 (thumb2_record_str_single_data): New function.
10367 (thumb2_record_ld_mem_hints): New function.
10368 (thumb2_record_ld_word): New function.
10369 (thumb2_record_lmul_lmla_div): New function.
10370 (thumb2_record_decode_insn_handler): New function.
10371 (decode_insn): Add thumb32 instruction handlers.
10372
97dfe206
OJ
103732014-01-15 Omair Javaid <omair.javaid@linaro.org>
10374
10375 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10376 (struct arm_linux_record_tdep): Declare.
10377 (arm_canonicalize_syscall): New function.
10378 (arm_all_but_pc_registers_record): New function.
10379 (arm_linux_syscall_record): New function.
10380 (arm_linux_init_abi): Add syscall recording constructs.
10381 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10382 decoding. (arm_record_coproc_data_proc): Update arm syscall
10383 decoding.
10384 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10385 <arm_syscall_record>: New field.
10386 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10387 gdb_target_obs.
10388
9904a494
OJ
103892014-01-15 Omair Javaid <omair.javaid@linaro.org>
10390
10391 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10392 register for push instruction recording.
10393
f969241e
OJ
103942014-01-15 Omair Javaid <omair.javaid@linaro.org>
10395
10396 * arm-tdep.c (thumb_record_misc): Update to correct logical
10397 error while recording ldm, ldmia and pop instructions.
10398
bfbbec00
OJ
103992014-01-15 Omair Javaid <omair.javaid@linaro.org>
10400
10401 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10402
e40adcc9
PA
104032014-01-15 Pedro Alves <palves@redhat.com>
10404
10405 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10406 (go32_resume, go32_fetch_registers, store_register)
10407 (go32_store_registers, go32_prepare_to_store)
10408 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10409 (go32_create_inferior, go32_can_run, go32_terminal_init)
10410 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10411 declarations.
10412
b0a16e66
TT
104132014-01-15 Tom Tromey <tromey@redhat.com>
10414
10415 * target.h (async_callback_ftype): New typedef.
10416 (struct target_ops) <to_async>: Use it.
10417
bf7105a4
JB
104182014-01-15 Joel Brobecker <brobecker@adacore.com>
10419
10420 * python/py-value.c (get_field_type): Remove unnecessary curly
10421 braces for single-statement if block.
10422
a8f35c2e
JB
104232014-01-15 Joel Brobecker <brobecker@adacore.com>
10424
10425 * python/py-type.c (convert_field): Add missing empty line
10426 after declarations.
10427
bb4142cf
DE
104282014-01-14 Doug Evans <dje@google.com>
10429
10430 * symfile.h (expand_symtabs_matching): Renamed from
10431 expand_partial_symbol_names. Update prototype.
10432 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10433 * symfile.c (expand_symtabs_matching): Renamed from
10434 expand_partial_symbol_names. New args file_matcher, kind.
10435 Rename arg fun to symbol_matcher.
10436 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10437 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10438 ada_expand_partial_symbol_name.
10439 (ada_make_symbol_completion_list): Update to call
10440 expand_symtabs_matching.
10441 (ada_add_global_exceptions): Call expand_symtabs_matching.
10442 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10443 call map_symbol_filenames.
10444 * symtab.c (sources_info): Update to call map_symbol_filenames.
10445 (search_symbols): Call expand_symtabs_matching.
10446 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10447 (default_make_symbol_completion_list_break_on): Update to call
10448 expand_symtabs_matching.
10449 (make_source_files_completion_list): Update to call
10450 map_symbol_filenames.
10451
206f2a57
DE
104522014-01-14 Doug Evans <dje@google.com>
10453
10454 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10455 (expand_symtabs_symbol_matcher_ftype): New typedef.
10456 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10457 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10458 * symfile.c (expand_partial_symbol_names): Update to use
10459 expand_symtabs_symbol_matcher_ftype.
10460 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10461 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10462 Arg name_matcher renamed to symbol_matcher.
10463 * psymtab.c (recursively_search_psymtabs): Update to use
10464 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10465 sym_matcher.
10466 (expand_symtabs_matching_via_partial): Update to use
10467 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10468 Arg name_matcher renamed to symbol_matcher.
10469
540c2971
DE
104702014-01-14 Doug Evans <dje@google.com>
10471
10472 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10473 (map_partial_symbol_filenames): Ditto.
10474 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10475 (map_partial_symbol_filenames): Ditto.
10476 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10477 (map_partial_symbol_filenames): Ditto.
10478 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10479 (map_partial_symbol_filenames): Ditto.
10480 * symtab.c: Delete #include "psymtab.h".
10481
8213266a
PA
104822014-01-14 Pedro Alves <palves@redhat.com>
10483 Tom Tromey <tromey@redhat.com>
10484
10485 * infrun.c (use_displaced_stepping): Use find_record_target
10486 instead of RECORD_IS_USED.
10487 (adjust_pc_after_break): Use record_full_is_used instead of
10488 RECORD_IS_USED.
10489 * record-btrace.c (record_btrace_open): Call record_preopen
10490 instead of checking RECORD_IS_USED.
10491 * record-full.c (record_full_shortname)
10492 (record_full_core_shortname): New globals.
10493 (record_full_is_used): New function.
10494 (find_full_open): Call record_preopen instead of checking
10495 RECORD_IS_USED.
10496 (init_record_full_ops): Set the target's shortname to
10497 record_full_shortname.
10498 (init_record_full_core_ops): Set the target's shortname to
10499 record_full_core_shortname.
10500 * record-full.h (record_full_is_used): Declare.
10501 * record.c (find_record_target): Make extern.
10502 (record_preopen): New function.
10503 * record.h (RECORD_IS_USED): Delete macro.
10504 (find_record_target, record_preopen): Declare functions.
10505
7ec1862d
YQ
105062014-01-14 Yao Qi <yao@codesourcery.com>
10507
10508 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10509 'len''s type to ULONGEST.
10510 (core_xfer_shared_libraries_aix): Likewise.
10511 * gdbarch.c, gdbarch.h: Regenerated.
10512 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10513 Change type of 'len' to ULONGEST.
10514 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10515 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10516
dea80a27
YQ
105172014-01-14 Yao Qi <yao@codesourcery.com>
10518
10519 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10520 type of 'len' to ULONGEST.
10521 (linux_xfer_osdata_processgroups): Likewise.
10522 (linux_xfer_osdata_threads): Likewise.
10523 (linux_xfer_osdata_fds): Likewise.
10524 (linux_xfer_osdata_isockets): Likewise.
10525 (linux_xfer_osdata_shm): Likewise.
10526 (linux_xfer_osdata_sem): Likewise.
10527 (linux_xfer_osdata_msg): Likewise.
10528 (linux_common_xfer_osdata): Likewise.
10529 (struct osdata_type) <getter>: Likewise.
10530 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10531 the declaration.
10532
b55e14c7
YQ
105332014-01-14 Yao Qi <yao@codesourcery.com>
10534
10535 * target.h (target_xfer_partial_ftype): Update.
10536 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10537 ULONGEST.
10538 * aix-thread.c (aix_thread_xfer_partial): Change type of
10539 argument 'len' to ULONGEST.
10540 * auxv.c (procfs_xfer_auxv): Likewise.
10541 (ld_so_xfer_auxv): Likewise.
10542 (memory_xfer_auxv): Likewise.
10543 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10544 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10545 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10546 * corelow.c (core_xfer_partial): Likewise.
10547 * ctf.c (ctf_xfer_partial): Likewise.
10548 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10549 '%u'.
10550 (darwin_read_dyld_info): Likewise.
10551 (darwin_xfer_partial): Likewise.
10552 * exec.c (section_table_xfer_memory_partial): Likewise.
10553 (exec_xfer_partial): Likewise.
10554 * exec.h (section_table_xfer_memory_partial): Update
10555 declaration.
10556 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10557 instead of plongest.
10558 (gnu_xfer_partial): Likewise.
10559 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10560 (ia64_hpux_xfer_solib_got): Likewise.
10561 (ia64_hpux_xfer_partial): Likewise.
10562 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10563 * inf-ptrace.c (inf_ptrace_xfer_partial):
10564 * inf-ttrace.c (inf_ttrace_xfer_partial):
10565 * linux-nat.c (linux_xfer_siginfo): Likewise.
10566 (linux_nat_xfer_partial): Likewise.
10567 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10568 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10569 * monitor.c (monitor_xfer_memory): Likewise.
10570 (monitor_xfer_partial): Likewise.
10571 * procfs.c (procfs_xfer_partial): Likewise.
10572 * record-full.c (record_full_xfer_partial): Likewise.
10573 (record_full_core_xfer_partial): Likewise.
10574 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10575 instead of plongest.
10576 (gdbsim_xfer_partial): Likewise.
10577 * remote.c (remote_xfer_partial): Likewise.
10578 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10579 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10580 declaration.
10581 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10582 (rs6000_xfer_shared_libraries): Likewise.
10583 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10584 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10585 (sparc_xfer_partial): Likewise.
10586 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10587 (spu_xfer_partial): Likewise.
10588 * spu-multiarch.c (spu_xfer_partial): Likewise.
10589 * target.c (target_read_live_memory): Likewise.
10590 (memory_xfer_live_readonly_partial): Likewise.
10591 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10592 (target_xfer_partial, default_xfer_partial): Likewise.
10593 (current_xfer_partial): Likewise.
10594 * tracepoint.c (tfile_xfer_partial): Likewise.
10595 * windows-nat.c (windows_xfer_memory): Likewise. Call
10596 pulongest instead of plongest.
10597 (windows_xfer_partial): Likewise.
10598 (windows_xfer_shared_libraries): Likewise.
10599
05804640
YQ
106002014-01-14 Yao Qi <yao@codesourcery.com>
10601
10602 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10603 target_xfer_partial_ftype.
10604
b5b08fb4
SC
106052014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10606
10607 PR python/15464
10608 PR python/16113
10609 * valops.c (value_struct_elt_bitpos): New function
10610 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10611 object to 'None' if the field name is an empty string ("").
10612 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10613 attribute to look for a field when 'name' is 'None'.
10614 (get_field_type): New function
10615
13aaf454
DE
106162014-01-13 Doug Evans <dje@google.com>
10617
10618 PR symtab/16426
10619 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10620 (try_open_dwop_file): Ditto.
10621 * gdb_bfd.c: #include "vec.h".
10622 (bfdp): New typedef.
10623 (struct gdb_bfd_data): New member included_bfds.
10624 (gdb_bfd_unref): Unref all included bfds.
10625 (gdb_bfd_record_inclusion): New function.
10626 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10627
c2cec97c
TT
106282014-01-13 Tom Tromey <tromey@redhat.com>
10629
10630 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10631
78e5999d
TT
106322014-01-13 Tom Tromey <tromey@redhat.com>
10633
10634 * defs.h (use_windows): Remove.
10635 * gdb.c (main): Update.
10636 * main.c (captured_main, gdb_main): Update.
10637 * main.h (struct captured_main_args) <use_windows>: Remove.
10638 * top.c (use_windows): Remove.
10639
f2052bbe
TT
106402014-01-13 Tom Tromey <tromey@redhat.com>
10641
10642 * defs.h (deprecated_flush_hook): Remove.
10643
fde4f8ed
JK
106442014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 PR threads/16216
10647 * linux-thread-db.c (try_thread_db_load): Add parameter
10648 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10649 (try_thread_db_load_from_pdir_1): Move it there from here.
10650 (try_thread_db_load_from_sdir): Update caller.
10651 (try_thread_db_load_from_dir): Move it there from here.
10652
bdf61915
PP
106532014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10654
10655 * regformats/regdat.sh: Always rewrite the register file.
10656
f71e1a8d
PA
106572014-01-13 Pedro Alves <palves@redhat.com>
10658
10659 * Makefile.in (CHECK_HEADERS): New variable.
10660 (check-headers:): New rule.
10661
42c85435
TT
106622014-01-13 Tom Tromey <tromey@redhat.com>
10663
10664 * cli/cli-setshow.c (do_set_command): Update.
10665 * defs.h (deprecated_set_hook): Remove.
10666 * top.c (deprecated_set_hook): Remove.
10667
f8de5129
PA
106682014-01-13 Pedro Alves <palves@redhat.com>
10669
10670 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10671 the tracepoint if the PC is a pseudo-register.
10672
fc270c35
TT
106732014-01-13 Tom Tromey <tromey@redhat.com>
10674
10675 * defs.h (XCALLOC): Remove.
10676 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10677 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10678 * dwarf2loc.c (allocate_piece_closure): Likewise.
10679 * elfread.c (elf_symfile_segments): Likewise.
10680 (elf_symfile_segments): Likewise.
10681 * gdbtypes.c (copy_type_recursive): Likewise.
10682 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10683 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10684 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10685 XCALLOC.
10686 * mt-tdep.c (mt_gdbarch_init): Likewise.
10687 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10688 XCALLOC.
10689 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10690 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10691 * registry.c (registry_alloc_data): Likewise.
10692 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10693 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10694 * serial.c (serial_fdopen_ops): Likewise.
10695 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10696 XCALLOC.
10697 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10698 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10699 not XCALLOC.
10700
70ba0933
TT
107012014-01-13 Tom Tromey <tromey@redhat.com>
10702
10703 * defs.h (XMALLOC): Remove.
10704 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10705 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10706 * cli-out.c (struct ui_out *): Likewise.
10707 * cli/cli-dump.c (add_dump_command): Likewise.
10708 (add_dump_command): Likewise.
10709 * complaints.c (get_complaints): Likewise.
10710 (find_complaint): Likewise.
10711 * dwarf2-frame.c (execute_cfa_program): Likewise.
10712 * dwarf2read.c (abbrev_table_read_table): Likewise.
10713 * gdbarch.sh: Likewise.
10714 * gdbarch.c: Rebuild.
10715 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10716 * interps.c (interp_new): Likewise.
10717 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10718 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10719 * mi/mi-console.c (mi_console_file_new): Likewise.
10720 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10721 * mi/mi-out.c (mi_out_new): Likewise.
10722 * mi/mi-parse.c (mi_parse): Likewise.
10723 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10724 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10725 * observer.c (xalloc_observer_list_node): Likewise.
10726 * regcache.c (regcache_xmalloc_1): Likewise.
10727 * reggroups.c (reggroup_new): Likewise.
10728 (_initialize_reggroup): Likewise.
10729 * registry.c (register_data_with_cleanup): Likewise.
10730 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10731 * ser-base.c (serial_ttystate): Likewise.
10732 * ser-mingw.c (make_pipe_state): Likewise.
10733 * ser-pipe.c (pipe_open): Likewise.
10734 * serial.c (serial_open): Likewise.
10735 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10736 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10737 (tui_alloc_win_info): Likewise.
10738 (tui_add_content_elements): Likewise.
10739 * tui/tui-file.c (tui_file_new): Likewise.
10740 * tui/tui-out.c (tui_out_new): Likewise.
10741 * ui-file.c (mem_file_new): Likewise.
10742 * ui-out.c (push_level): Likewise.
10743 (make_cleanup_ui_out_end): Likewise.
10744 (append_header_to_list): Likewise.
10745 (ui_out_new): Likewise.
10746 * user-regs.c (user_reg_add_builtin): Likewise.
10747
41bf6aca
TT
107482014-01-13 Tom Tromey <tromey@redhat.com>
10749
10750 * defs.h (XZALLOC): Remove.
10751 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10752 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10753 (get_ada_tasks_inferior_data): Likewise.
10754 * auto-load.c (get_auto_load_pspace_data): Likewise.
10755 * auxv.c (get_auxv_inferior_data): Likewise.
10756 * bfd-target.c (target_bfd_reopen): Likewise.
10757 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10758 (deprecated_insert_raw_breakpoint): Likewise.
10759 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10760 * corelow.c (core_open): Likewise.
10761 * darwin-nat.c (darwin_check_new_threads): Likewise.
10762 (darwin_attach_pid): Likewise.
10763 * dummy-frame.c (dummy_frame_push): Likewise.
10764 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10765 * dwarf2loc.c (allocate_piece_closure): Likewise.
10766 * elfread.c (elf_symfile_segments): Likewise.
10767 * eval.c (ptrmath_type_p): Likewise.
10768 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10769 * gdbtypes.c (alloc_type_arch): Likewise.
10770 (alloc_type_instance): Likewise.
10771 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10772 * inf-child.c (inf_child_can_use_agent): Likewise.
10773 * inflow.c (get_inflow_inferior_data): Likewise.
10774 * infrun.c (save_infcall_suspend_state): Likewise.
10775 * jit.c (jit_reader_load): Likewise.
10776 (get_jit_objfile_data): Likewise.
10777 (get_jit_program_space_data): Likewise.
10778 (jit_object_open_impl): Likewise.
10779 (jit_symtab_open_impl): Likewise.
10780 (jit_block_open_impl): Likewise.
10781 (jit_frame_sniffer): Likewise.
10782 * linux-fork.c (add_fork): Likewise.
10783 * maint.c (make_command_stats_cleanup): Likewise.
10784 * objfiles.c (get_objfile_pspace_data): Likewise.
10785 * opencl-lang.c (struct lval_closure): Likewise.
10786 * osdata.c (osdata_start_osdata): Likewise.
10787 * progspace.c (new_address_space): Likewise.
10788 (add_program_space): Likewise.
10789 * remote-sim.c (get_sim_inferior_data): Likewise.
10790 * sh-tdep.c (sh_gdbarch_init): Likewise.
10791 * skip.c (Ignore): Likewise.
10792 (skip_delete_command): Likewise.
10793 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10794 (library_list_start_library): Likewise.
10795 (solib_aix_current_sos): Likewise.
10796 * solib-darwin.c (get_darwin_info): Likewise.
10797 (darwin_current_sos): Likewise.
10798 * solib-dsbt.c (get_dsbt_info): Likewise.
10799 * solib-ia64-hpux.c (new_so_list): Likewise.
10800 (ia64_hpux_get_solib_linkage_addr): Likewise.
10801 * solib-spu.c (append_ocl_sos): Likewise.
10802 (spu_current_sos): Likewise.
10803 * solib-svr4.c (get_svr4_info): Likewise.
10804 (svr4_keep_data_in_core): Likewise.
10805 (library_list_start_library): Likewise.
10806 (svr4_default_sos): Likewise.
10807 (svr4_read_so_list): Likewise.
10808 * solib-target.c (library_list_start_library): Likewise.
10809 (solib_target_current_sos): Likewise.
10810 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10811 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10812 * symfile.c (default_symfile_segments): Likewise.
10813 * target-descriptions.c (tdesc_data_init): Likewise.
10814 (tdesc_create_reg): Likewise.
10815 (struct tdesc_type *): Likewise.
10816 (tdesc_create_vector): Likewise.
10817 (tdesc_set_struct_size): Likewise.
10818 (struct tdesc_type *): Likewise.
10819 (tdesc_free_feature): Likewise.
10820 (tdesc_create_feature): Likewise.
10821 * windows-nat.c (windows_add_thread): Likewise.
10822 (windows_make_so): Likewise.
10823 * xml-support.c (gdb_xml_body_text): Likewise.
10824 (gdb_xml_create_parser_and_cleanup): Likewise.
10825 (xml_process_xincludes): Likewise.
10826 * xml-syscall.c (allocate_syscalls_info): Likewise.
10827 (syscall_create_syscall_desc): Likewise.
10828
5acfdbae
SDJ
108292014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10830
10831 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10832 function, with code from i386_stap_parse_special_token.
10833 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10834 (i386_stap_parse_special_token): Move code to the two functions
10835 above; simplify it.
10836
0000e5cc
PA
108372014-01-09 Pedro Alves <palves@redhat.com>
10838 Hui Zhu <hui@codesourcery.com>
10839
10840 PR gdb/16101
10841 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10842 bp_err_string. Don't mark the location shlib_disabled if the
10843 error thrown wasn't a generic or memory error. Catch errors
10844 thrown while inserting breakpoints in overlayed code. Output
10845 error message of software breakpoints.
10846 * remote.c (remote_insert_breakpoint): If this breakpoint has
10847 target-side commands but this stub doesn't support Z0 packets,
10848 throw NOT_SUPPORTED_ERROR error.
10849 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10850 * target.h (target_insert_breakpoint): Extend comment.
10851 (target_insert_hw_breakpoint): Add comment.
10852
b7ea362b
PA
108532014-01-08 Pedro Alves <palves@redhat.com>
10854
10855 * remote.c (remote_add_thread): Add threads silently if starting
10856 up.
10857 (remote_notice_new_inferior): If in all-stop, and starting up,
10858 don't call notice_new_inferior.
10859 (get_current_thread): New function, factored out from ...
10860 (add_current_inferior_and_thread): ... this. Adjust.
10861 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10862 found any thread, then select the remote's current thread as GDB's
10863 current thread too.
10864
b7bba001
JB
108652014-01-08 Joel Brobecker <brobecker@adacore.com>
10866
10867 * NEWS: Create a new section for the next release branch.
10868 Rename the section of the current branch, now that it has
10869 been cut.
10870
16dfbded
JB
108712014-01-08 Joel Brobecker <brobecker@adacore.com>
10872
10873 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10874 * version.in: Bump version to 7.7.50.DATE-cvs.
10875
22c90ac1
YQ
108762014-01-08 Yao Qi <yao@codesourcery.com>
10877
10878 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10879 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10880 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10881
d64ad97c
YQ
108822014-01-08 Yao Qi <yao@codesourcery.com>
10883
10884 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10885 return value of bfd_get_filename to symbol_file_add_from_bfd.
10886
f93ba80c
PM
108872014-01-08 Pierre Muller <muller@sourceware.org>
10888
10889 Fix PR16201.
10890 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10891 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10892 to prim_record_mininal_symbol_and_info.
10893 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10894 in call to prim_record_minimal_symbol_and_info.
10895 (read_pe_exported_syms): Set index field of section_data.
10896
a4d9ba85
AP
108972014-01-07 Andrew Pinski <apinski@cavium.com>
10898
10899 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10900 * features/aarch64.c: Regenerate.
10901
1b67eb02
AS
109022014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10903
10904 * target.c (return_null): Define.
10905 (update_current_target): Use it instead of return_zero for
10906 functions that return a pointer.
10907
5e3f4fab
EBM
109082014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10909
10910 * source.c (add_path): Fix check for duplicated paths in the previously
10911 included paths.
10912
e2616788
HK
109132014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10914
10915 * ada-lang.c: Remove duplicated include statements.
10916 * alphabsd-nat.c: Ditto.
10917 * amd64-darwin-tdep.c: Ditto.
10918 * amd64fbsd-nat.c: Ditto.
10919 * auto-load.c: Ditto.
10920 * ax-gdb.c: Ditto.
10921 * breakpoint.c: Ditto.
10922 * dbxread.c: Ditto.
10923 * fork-child.c: Ditto.
10924 * gdb_usleep.c: Ditto.
10925 * i386-darwin-tdep.c: Ditto.
10926 * i386fbsd-nat.c: Ditto.
10927 * infcmd.c: Ditto.
10928 * inferior.c: Ditto.
10929 * jv-lang.c: Ditto.
10930 * linux-nat.c: Ditto.
10931 * linux-tdep.c: Ditto.
10932 * m68kbsd-nat.c: Ditto.
10933 * m68klinux-nat.c: Ditto.
10934 * microblaze-tdep.c: Ditto.
10935 * mips-linux-tdep.c: Ditto.
10936 * mn10300-tdep.c: Ditto.
10937 * nto-tdep.c: Ditto.
10938 * opencl-lang.c: Ditto.
10939 * osdata.c: Ditto.
10940 * printcmd.c: Ditto.
10941 * regcache.c: Ditto.
10942 * remote-m32r-sdi.c: Ditto.
10943 * remote.c: Ditto.
10944 * symfile.c: Ditto.
10945 * symtab.c: Ditto.
10946 * tilegx-linux-nat.c: Ditto.
10947 * tilegx-tdep.c: Ditto.
10948 * tracepoint.c: Ditto.
10949 * valops.c: Ditto.
10950 * vaxbsd-nat.c: Ditto.
10951 * windows-nat.c: Ditto.
10952 * xtensa-tdep.c: Ditto.
10953
bd1f7788
YQ
109542014-01-07 Yao Qi <yao@codesourcery.com>
10955
10956 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10957
79301218
JB
109582014-01-07 Yao Qi <yao@codesourcery.com>
10959 Joel Brobecker <brobecker@adacore.com>
10960
10961 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10962 (pdc_write_regs): Likewise.
10963 (fetch_regs_kernel_thread): Likewise.
10964 (store_regs_kernel_thread): Likewise.
10965
109662014-01-07 Joel Brobecker <brobecker@adacore.com>
10967
10968 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10969 tagged type objects to their actual type.
10970
8e355c5d
JB
109712014-01-07 Joel Brobecker <brobecker@adacore.com>
10972
10973 * ada-valprint.c (print_field_values): Add "language" parameter.
10974 Update calls to print_field_values and print_variant_part.
10975 Pass new parameter "language" in call to val_print instead
10976 of "current_language". Replace call to ada_val_print by call
10977 to val_print.
10978 (print_variant_part): Add "language" parameter.
10979 (ada_val_print_struct_union): Update call to print_field_values.
10980
4fbf5aa5
JB
109812014-01-07 Joel Brobecker <brobecker@adacore.com>
10982
10983 * ada-valprint.c (ui_memcpy): Delete.
10984 (ada_print_floating): Update documentation. Add empty line
10985 between between function documentation and implementation.
10986 Delete variable "buffer". Use ui_file_xstrdup in place of
10987 ui_file_put. Minor adjustments following this change.
10988
71855601
JB
109892014-01-07 Joel Brobecker <brobecker@adacore.com>
10990
10991 * ada-valprint.c (ada_val_print_string): New function,
10992 extracted from ada_val_print_array.
10993 (ada_val_print_array): Replace extracted code by call
10994 to ada_val_print_string followed by a return. Move
10995 "else" branch to the function's top block.
10996
4eb27a30
JB
109972014-01-07 Joel Brobecker <brobecker@adacore.com>
10998
10999 * ada-valprint.c (ada_val_print_array): Move implementation
11000 down. Rename parameter "offset" and "val" into "offset_aligned"
11001 and "original_value" respectively. Add parameter "offset".
11002
34b27950
JB
110032014-01-07 Joel Brobecker <brobecker@adacore.com>
11004
11005 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11006 re-organizing the code. Change the "???" message printed
11007 when target type is a TYPE_CODE_UNDEF into
11008 "<ref to undefined type>".
11009
079e4591
JB
110102014-01-07 Joel Brobecker <brobecker@adacore.com>
11011
11012 * ada-valprint.c (print_record): Delete, implementation inlined...
11013 (ada_val_print_struct_union): ... here. Remove call to
11014 ada_check_typedef in inlined implementation.
11015
8004dfd1
JB
110162014-01-07 Joel Brobecker <brobecker@adacore.com>
11017
11018 * ada-valprint.c (ada_val_print_gnat_array): New function,
11019 extracted from ada_val_print_1;
11020 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11021 (ada_val_print_flt, ada_val_print_struct_union)
11022 (ada_val_print_ref): Likewise.
11023 (ada_val_print_1): Delete variables i and elttype.
11024 Replace extracted-out code by call to corresponding
11025 new functions.
11026
760a2db0
JB
110272014-01-07 Joel Brobecker <brobecker@adacore.com>
11028
11029 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11030
3a92c861
JB
110312014-01-07 Joel Brobecker <brobecker@adacore.com>
11032
11033 * ada-valprint.c (ada_val_print_1): Replace calls to
11034 ada_val_print_1 by calls to val_print.
11035
cd1630f9
JB
110362014-01-07 Joel Brobecker <brobecker@adacore.com>
11037
11038 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11039 Update calls to self accordingly. Replace calls to c_val_print
11040 by calls to val_print.
11041
bdf779a0
JB
110422014-01-07 Joel Brobecker <brobecker@adacore.com>
11043
11044 * ada-valprint.c (print_record): Delete declaration.
11045 (adjust_type_signedness, ada_val_print_1): Likewise.
11046 (ada_val_print): Move function implementation down.
11047 (print_variant_part, print_field_values, print_record):
11048 Move function implementation up.
11049
c0d48811
JB
110502014-01-07 Joel Brobecker <brobecker@adacore.com>
11051
11052 * python/py-type.c (typy_get_name): New function.
11053 (type_object_getset): Add entry for attribute "name".
11054 * NEWS: Add entry mentioning this new attribute.
11055
c26e9cbb
YQ
110562014-01-07 Yao Qi <yao@codesourcery.com>
11057
11058 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11059 statement.
11060
0cc6f43d
YQ
110612014-01-07 Yao Qi <yao@codesourcery.com>
11062
11063 * gnu-nat.c (info_port_rights): Add qualifier const to
11064 argument args.
11065
eec03155
YQ
110662014-01-07 Yao Qi <yao@codesourcery.com>
11067
11068 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11069
f04a82ef
YQ
110702014-01-07 Yao Qi <yao@codesourcery.com>
11071
11072 * gnu-nat.c (make_inf) Update declaration.
11073 (make_inf): Make it static.
11074 (inf_set_traced): Likewise.
11075 (inf_port_to_thread, inf_task_died_status): Likewise.
11076
d57dda0a
YQ
110772014-01-07 Yao Qi <yao@codesourcery.com>
11078
11079 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11080
3aa8c969
YQ
110812014-01-07 Yao Qi <yao@codesourcery.com>
11082
11083 * gnu-nat.c (_initialize_gnu_nat): Declare.
11084
94123b4f
YQ
110852014-01-07 Yao Qi <yao@codesourcery.com>
11086
11087 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11088 'enum bfd_endian'.
11089 (struct gdbarch_info) <byte_order>: Change type to
11090 'enum bfd_endian'.
11091 <byte_order_for_code>: Likewise.
11092 * gdbarch.c, gdbarch.h: Regenerated.
11093
dc81d70a
TT
110942014-01-06 Sasha Smundak <asmundak@google.com>
11095
11096 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11097
cc2f3c35
TT
110982014-01-06 Tom Tromey <tromey@redhat.com>
11099
11100 * doublest.c (convert_doublest_to_floatformat): Use const, not
11101 CONST.
11102 * somread.c (som_symtab_read): Likewise.
11103
adcf2eed
HZ
111042014-01-07 Hui Zhu <hui@codesourcery.com>
11105
11106 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11107 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11108 (gdb_bfd_fopen): Ditto.
11109 (gdb_bfd_openr): Ditto.
11110 (gdb_bfd_openw): Ditto.
11111 (gdb_bfd_openr_iovec): Ditto.
11112 (gdb_bfd_fdopenr): Ditto.
11113 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11114 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11115 with xstrdup.
11116 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11117 with xstrdup.
11118 * symfile-mem.c (symbol_file_add_from_memory): Removed
11119 gdb_bfd_stash_filename.
11120
50722198
DE
111212014-01-03 Doug Evans <dje@google.com>
11122
11123 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11124 output.
11125
2fa4b862
JB
111262014-01-01 Joel Brobecker <brobecker@adacore.com>
11127
11128 Update year range in copyright notice of all files.
11129
28498c42
JB
111302014-01-01 Joel Brobecker <brobecker@adacore.com>
11131
11132 * top.c (print_gdb_version): Set copyright year to 2014.
11133
7b6e1046
JB
111342014-01-01 Joel Brobecker <brobecker@adacore.com>
11135
11136 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11137
df96af55 11138For older changes see ChangeLog-2013.
c906108c
SS
11139\f
11140Local Variables:
11141mode: change-log
11142left-margin: 8
11143fill-column: 74
11144version-control: never
57da7796 11145coding: utf-8
c906108c 11146End:
This page took 2.078559 seconds and 4 git commands to generate.